-
Notifications
You must be signed in to change notification settings - Fork 4
How to use ADB to grant permissions
You must have developer options and USB debugging enabled on the device.
Download the official package for your OS from the Android Developer Web site.
Extract the downloaded zip package.
Follow the steps for your OS:
Open a terminal session and follow 3 steps:
Check if the device is connected
If adb is not in your PATH, you should cd to the extracted folder.
Enter this command in a terminal session:
adb devices
This is how the output should look like:
Grant WRITE_SECURE_SETTINGS permission
Enter this command in a terminal session:
adb shell pm grant com.rascarlo.quick.settings.tiles android.permission.WRITE_SECURE_SETTINGS
This is how the output should look like:
Grant DUMP permission
Enter this command in a terminal session:
adb shell pm grant com.rascarlo.quick.settings.tiles android.permission.DUMP
Check for granted permissions
Enter this command in a terminal session:
adb shell dumpsys package com.rascarlo.quick.settings.tiles
If you see android.permission.WRITE_SECURE_SETTINGS: granted=true and/or android.permission.DUMP: granted=true in the install permissions list, you are done.
Screenshots taken on a virtualbox with Windows 10.
Use the file manager to navigate to the folder where the zip package has been downloaded.
Extract the zip package.
Enter the folder of the extracted package.
Open PowerShell window here. You can use SHIFT+right click. Or you can search the internet if you like to read more about it.
This is the PowerShell window.
Enter the following command and hit ENTER:
.\adb devices
Enter the following command and hit ENTER:
.\adb shell pm grant com.rascarlo.quick.settings.tiles android.permission.WRITE_SECURE_SETTINGS
To grant DUMP permission, enter the following command and hit ENTER:
.\adb shell pm grant com.rascarlo.quick.settings.tiles android.permission.DUMP
Official SDK Platform Tools is available for Windows, Mac and Linux here
WRITE_SECURE_SETTINGS permission documentation is available here
Android Device Bridge (adb) documentation is available here
Tiles on Google Play