What is WRITE_SECURE_SETTINGS permission
WRITE_SECURE_SETTINGS is an android permission that allows an application to read or write the secure
system settings. In order for the System Database Editor app to change those settings, this permission must be granted; however, if you don't
want to change those setttings and just want to see the values of the different settings you can skip this tutorial. To access the settings,
the System Database Editor app uses a wrapper package that we call the provider package around the system's database, it acts like a bridge between the user space and system space.
The provider package in turn also needs this permission to function properly. Once the permission is granted, you have compelete control over the secure system settings and you can start modifying them immediately.
What is ADB
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with an Android device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.
How to setup ADB
Setting up ADB on the computer is just half the equation since you’ll also need to do some things on the smartphone or tablet to accept the ADB commands.
Phone Setup
- Launch the Settings application on your phone.
- Tap the About Phone option generally near the bottom of the list.
- Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.
- Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
- Go in there and enable the USB Debugging mode option.
- You are partially done with the phone setup process. Next up, you will need to scroll below and follow the rest of the instructions for your particular operating system.
Follow along for the operating system on your computer.
Microsoft Windows Setup
- Download the Android SDK Platform Tools ZIP file for Windows.
- Extract the contents of this ZIP file into an easily accessible folder (such as C:\platform-tools).
- Open Windows explorer and browse to where you extracted the contents of this ZIP file
- Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “Open command window here” option. (Some Windows 10 users may see “PowerShell” instead of “command window”.)
- Connect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
- In the Command Prompt window, enter the following command to launch the ADB daemon:
adb shell
- On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
- Type the following command to grant the System Database Editor app the permission
pm grant com.netvor.settings.database.editor android.permission.WRITE_SECURE_SETTINGS
- Finally, head over the App requirements in the app and install the provider package. Type the following command to grant the Provider package app the permission
pm grant com.netvor.settings.database.provider android.permission.WRITE_SECURE_SETTINGS
If you don't want to change the secure system settings and just want to see their value, please do not grant any permission