Frequently Asked Question
Enhance your Cometin experience with Secure Settings!
Last Updated 5 years ago
Some modules in Cometin work better by giving Cometin WRITE_SECURE_SETTINGS permissions. Modules don't have to work-around some things and can apply settings to your device right away. To give Cometin WRITE_SECURE_SETTINGS permissions you need a PC.
There are 2 methods to grant this permission:
Method 1 (Windows only)
Method 2
Modules using Secure settings will get a blue tint when activated.
There are 2 methods to grant this permission:
Method 1 (Windows only)
- Install USB drivers for your particular device OEM (Google provides a list of some universal USB drivers here). Likely only necessary for users on Windows.
- Download the latest version of Cometin Permission Granter
- Follow the instructions on screen
- I recommend disabled ADB when you don't need it anymore
- Make sure to enable Secure Settings in the settings of cometin (turn on the switch)
Method 2
- Install USB drivers for your particular device OEM (Google provides a list of some universal USB drivers here). Likely only necessary for users on Windows.
- Download the ADB binary for your particular operating system (Windows, Mac, Linux).
- Extract the contents of the ZIP file above into an easily accessible folder on your PC (like Downloads).
- Go to the Settings app on your phone and tap on the About Phone option. Depending on the OEM, this may be in a separate tab. When in doubt, just use the search feature in Settings to find it.
- Find the “Build Number” value in About Phone and tap on it 7 times to enable Developer Mode.
- Go back to the Settings main menu and enter Developer Options so you can enable USB Debugging Mode. Find it and enable it.
- Plug your phone into the computer and change it from “charge only” mode to “file transfer (MTP)” mode. This is not always necessary but it may be required on your device, but there’s no harm in doing this step.
- Go back to the PC and navigate to the directory where you extracted the ADB binary from before.
- Launch a Command Prompt/Terminal in this ADB directory. For Windows users, you can easily do this by holding Shift and then Right-clicking then choosing the “open command prompt here” option.
- Once in the Command Prompt/Terminal environment, enter the following command:
adb devices
- This will start the ADB daemon. If this is your first time running ADB, you will also see a prompt you to authorize a connection with the computer. Allow it.
- Now re-run the adb devices command from step 10, and you’ll see the serial number of your device in the output. If so, then you’re ready to move on. If not, then the USB drivers need to be re-installed.
- Execute the following command in the command prompt or terminal:
adb shell
- Then execute the following command to allow SecureTask to work properly here:
pm grant host.stjin.cometin android.permission.WRITE_SECURE_SETTINGS
- I recommend disabled ADB when you don't need it anymore
- Make sure to enable Secure Settings in the settings of cometin (turn on the switch)
Modules using Secure settings will get a blue tint when activated.