Resolved! Solved

Original topic:

"Remove permissions if app is unused"

(Topic created on: 08-10-2023 01:42 AM)
1159 Views
PrashiPatel
Expert Level 1
Options
Galaxy S
 Is there any option to disable "Remove permissions if app is unused" in one place so that it applies to all the apps? I use S20 FE 5g. Please someone explain the benefits and disadvantages of the same. Thank you
22 Comments
demetry14
Beginner Level 2
Galaxy S

I used:

adb shell

to get all package names I did:

pm list packages

then to remove permissions:

appops set <PackageName> AUTO_REVOKE_PERMISSIONS_IF_UNUSED ignore

and

appops set --uid <PackageName> AUTO_REVOKE_PERMISSIONS_IF_UNUSED ignore

 

I put all the package names in Notepad++ and replaced package: with appops set and appops set --uid and then added the permission and ignore to the end of every line.  Then copied everything and pasted it into the adb shell.

 

Hope this helps!

shwethabr
Beginner Level 2
Galaxy S
Remove permissions if app is unused
0 Likes
xorem
Beginner Level 2
Galaxy S
My camera unused button is not clicking I try to on but my camera unused button is not working how to fix it
0 Likes