joaomgcd/Tasker-Permissions

Is there a list of all the ADB commands you wrap in this app?

puterboy opened this issue · 5 comments

For me, it's easier just to run a shell script on my Linux box that runs the required ADB commands rather than having to install an entire package.

Assuming this app is just a wrapper for ADB commands as you mention in the README, would it be possible to share them in text form?

Thanks!!!

Thanks :)
Unfortunately I don't really know Java so not sure how to translate this into a bash-like shell script...
I had hoped there would just be a series of simple adb shell commands like:

adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
which I ran to get the "Key Accessibility Enabled" profile working as per
https://tasker.joaoapps.com/userguide/en/help/ah_secure_setting_grant.html

Basically all permissions that say "isPmGrant: true" on that page you can use with the same command as the example you posted :)

if it's not a pm grant the use "appops set" instead but instead of "grant" use "allow"

The permissions are listed on that page on each line that says "permission: PERMISSION_NAME_HERE".

Does this help? 😅

@puterboy might wanna proof read this but

appops set net.dinglisch.android.taskerm SYSTEM_ALERT_WINDOW allow
appops set com.joaomgcd.join SYSTEM_ALERT_WINDOW allow 

pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
pm grant com.joaomgcd.taskersettings android.permission.WRITE_SECURE_SETTINGS
pm grant com.joaomgcd.join android.permission.WRITE_SECURE_SETTINGS
pm grant com.joaomgcd.autoinput android.permission.WRITE_SECURE_SETTINGS
pm grant com.joaomgcd.autowear android.permission.WRITE_SECURE_SETTINGS
pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS 

pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
pm grant com.joaomgcd.join android.permission.READ_LOGS 

pm grant net.dinglisch.android.taskerm android.permission.DUMP 

pm grant net.dinglisch.android.taskerm android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER 

pm grant net.dinglisch.android.taskerm android.permission.SET_MEDIA_KEY_LISTENER 

appops set net.dinglisch.android.taskerm PROJECT_MEDIA allow
appops set com.joaomgcd.join PROJECT_MEDIA allow
appops set com.joaomgcd.autoinput PROJECT_MEDIA allow 

appops set net.dinglisch.android.taskerm GET_USAGE_STATS allow 

appops set net.dinglisch.android.taskerm WRITE_SETTINGS allow 

pm grant net.dinglisch.android.taskerm android.permission.CHANGE_CONFIGURATION 

pm grant net.dinglisch.android.taskerm android.permission.BIND_DEVICE_ADMIN 

pm grant net.dinglisch.android.taskerm android.permission.BIND_NOTIFICATION_LISTENER_SERVICE
pm grant com.joaomgcd.join android.permission.BIND_NOTIFICATION_LISTENER_SERVICE 

pm grant net.dinglisch.android.taskerm android.permission.PACKAGE_USAGE_STATS 

settings put global hidden_api_policy 1 

pm grant net.dinglisch.android.taskerm android.permission.BIND_ACCESSIBILITY_SERVICE

I compiled this for use with LADB, so you'll have to add adb shell in front of everything of course.

@joaomgcd why were three permissions commented out?

Because they are able to be granted through normal Android UI so I decided to not include them :)

Thank you very much for the list!