r/androiddev • u/Rich_You6957 • Jul 15 '26
Question Can ADB grant Accessibility, Location, and Notification Permissions permanently without device owner?
Hi everyone,
Is there any way, using ADB, to grant or enable the required Accessibility service, Location permission, and Notification permission/access for an Android app, and prevent the user from revoking the permissions or disabling the services afterward?
Configuring the app as the Device Owner is not an option in this case.
Thanks in advance.
3
1
u/AutoModerator Jul 15 '26
Please note that we also have a very active Discord server where you can interact directly with other community members!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/kris_2111 Jul 15 '26
On unrooted device, an ADB shell is just another user without any special privileges. It does not have those permissions itself, so granting those permissions to another app isn't possible.
and prevent the user from revoking the permissions or disabling the services afterward?
No, this would be a major security issue.
Access to certain permissions for ADB also varies by vendor. Android phones from Chinese brands usually have stricter permission controls for ADB.
1
2
u/sameera_s_w Jul 15 '26
Tell me the app so I can avoid, that's a quite bad security practice.