r/tasker • u/threemoneys • Nov 27 '19
ADB Additional Permissions List
Edit: Some exciting news from Joao, explained below! I'll keep my post here but I'll link to the news below.
Some exciting news - Joao just released a Windows app that grants all adb permissions by just plugging your device into a PC. No more typing/cutting/pasting or command line stuff needed :) Here is the release thread and info - https://www.reddit.com/r/tasker/comments/oterk2/dev_tasker_permissions_001_desktop_app_to_easily/
Hi all! It has happened to me a few times that I encountered something in Tasker that requires extra permissions to be granted through ADB. I would grant the permission, then some time later I would come across a new permission and I'd have to grant that one too. I really wanted a list of all of the commands that you can do so I could just pick what I wanted, do them all at once and be done with it. I couldn't find one on here so I decided to make one. These were just the five that I found, I don't know if there are more. Below I listed what each permission does and the thing that Tasker uses it for, with the actual code below it. Hope this is helpful!
Edit: I've updated the list to include more settings that were mentioned below. As /u/mawvius mentioned in his comment, there is another thread for this subject that contains some more settings. I included them here as well.
Permissions related to built-in Tasker functions
- Check running services (Context - Application)
adb shell pm grant net.dinglisch.android.taskerm android.permission.DUMP
- Media Key Press Handling (Context - State - Media Button)
adb shell pm grant net.dinglisch.android.taskerm android.permission.SET_MEDIA_KEY_LISTENER
- Read System Logs (Context - Event - LogCat Entry)
adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
adb shell am force-stop net.dinglisch.android.taskerm
- Volume Key Long Press Handling (Context - Event - Hardware - Volume Long Press)
adb shell pm grant net.dinglisch.android.taskerm android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER
- Write Secure Settings (Action - Settings - Custom Setting)
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
Permissions Related to AutoApps
- LogCat for AutoTools
adb shell pm grant com.joaomgcd.autotools android.permission.READ_LOGS
- Secure Settings for AutoTools
adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
- Remove screen recording warning from AutoInput
adb shell appops set com.joaomgcd.autoinput PROJECT_MEDIA allow
- Secure Settings for AutoInput (not sure exactly which action from AI needs secure settings)
adb shell pm grant com.joaomgcd.autoinput android.permission.WRITE_SECURE_SETTINGS
- Secure Settings for AutoWear
adb shell pm grant com.joaomgcd.autowear android.permission.WRITE_SECURE_SETTINGS
Join Permissions
- Read Clipboard Permissions
adb -d shell appops set com.joaomgcd.join SYSTEM_ALERT_WINDOW allow
adb shell pm grant com.joaomgcd.join android.permission.WRITE_SECURE_SETTINGS
adb shell pm grant com.joaomgcd.join android.permission.READ_LOGS
adb shell am force-stop com.joaomgcd.join
Other Permissions (Courtesy of /u/DutchOfBurdock)
- Change System Locale
adb shell pm grant net.dinglisch.android.taskerm android.permission.CHANGE_CONFIGURATION
- Draw over other apps for web screens
adb shell pm grant net.dinglisch.android.taskerm android.permission.SYSTEM_ALERT_WINDOW
- To lock screen + other administrative actions
adb shell pm grant net.dinglisch.android.taskerm android.permission.BIND_DEVICE_ADMIN
- To react to notifications received, cleared and clicked from other apps
adb shell pm grant net.dinglisch.android.taskerm android.permission.BIND_NOTIFICATION_LISTENER_SERVICE
- To react to app changes, get app information, run times and more!
adb shell pm grant net.dinglisch.android.taskerm android.permission.PACKAGE_USAGE_STATS
- Use accessibility service to detect app launches and other information
adb shell pm grant net.dinglisch.android.taskerm android.permission.BIND_ACCESSIBILITY_SERVICE
- Phone Calls
adb shell pm grant net.dinglisch.android.taskerm android.permission.ANSWER_PHONE_CALLS
adb shell pm grant net.dinglisch.android.taskerm android.permission.CALL_PHONE
4
u/egerardoqd ☕ Nov 27 '19
Thanks for sharing!
4
u/mawvius 🎩 Tasker Engolfer|800+ Core Profiles|G892A|Android7|Root|xPosed Nov 27 '19
If it helps, there's also some useful ones in this previous post.
6
u/Nek_NY Jan 07 '20
Perhaps useful to include the Join Clipboard permissions to have a one-stop-shop for all permissions ?
https://joaoapps.com/AutoApps/Help/Info/com.joaomgcd.join/android_10_read_logs.html
2
u/Gianckarlo Nov 27 '19
Pretty helpful. Thanks!
12
u/paulusversluis Feb 07 '20 edited Feb 07 '20
Tasker project to execute these commands using ADB Wifi:
https://taskernet.com/shares/?user=AS35m8nMlqf8LZK%2BSxkCZop9Fu9q5wpeQT3onCjW9rY%2BFt9Qyh2PCE8xq29XYcDW6ZCsAI7FftE%3D&id=Project%3AADB+Additional+Permissions
6
u/bbobeckyj Pixel 7 Nov 27 '19
These are the ones I have saved
./adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
./adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
./adb shell am force-stop net.dinglisch.android.taskerm
./adb shell pm grant net.dinglisch.android.taskerm android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER
./adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
./adb shell pm grant com.joaomgcd.autoinput android.permission.WRITE_SECURE_SETTINGS
./adb shell pm grant com.joaomgcd.autowear android.permission.WRITE_SECURE_SETTINGS
1
u/leochenfc Jan 19 '20
Is there any way to list all granted permission?
2
u/bcn88 Nov 28 '19
great! thank you!
2
u/Nek_NY Jan 07 '20 edited Jan 07 '20
When applying some of the permissions
I am getting Securtiy exception:
Would anyone be able to help with that ? I checked Tasker's permissions in the app info and all have been granted.
2
u/palmuse Feb 14 '20
Neat!! Thanks!
2
u/Sauvage2020 Jun 22 '23
I know this thread hasn't had a response in a year but I have made a website for the ADB permissions where you can copy to clipboard by clicking. I have found copying commands to be clunky and dont always have my computer available. It would be useful for people who regularly use ADB OTG. Please let me know your thoughts guys. I can have a feature to toggle adding adb shell I'd necessary. https://adb-permissions.netlify.app/
1
u/SuckMyWifi Nov 28 '19
Just this morning I thought I should make a list like this and store it, thanks for sharing!
1
u/Rucent88 Jan 18 '20
Looks like with the new release of Tasker, this list has become all the more valuable. I tried to repost it, but the Tasker subreddit doesn't allow posting links. It would be good to see more permissions with descriptions added. Perhaps a mod could temporarily sticky this thread.
1
u/Fanntm Mar 27 '25
What permission should I give app Manager
1
u/VonLoewe May 01 '22
This is missing DUMP permission for Tasker.
1
u/ronjon123 Aug 14 '23
Thank you! Really helpful information all in one place. 🙂
0
u/[deleted] Jan 16 '20
[deleted] — view deleted comment