0x192 / universal-android-debloater

Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device.
GNU General Public License v3.0
15.1k stars 804 forks source link

Revoke uneeded dangerous runtime permissions #449

Open 0x192 opened 1 year ago

0x192 commented 1 year ago

It is possible to revoke dangerous runtime permissions of an app from ADB. This is something that can be done directly from the settings panel of an Android device but being able to quickly remove a permission for multiple apps at the same time is nice feature to have.

Example from CLI:

adb shell pm revoke com.sec.android.app.samsungapps android.permission.READ_PHONE_STATE
F640 commented 1 year ago

Some extra information if you use Xiaomi device

You will need to enable USB debugging (security settings) in order to change app permission in ADB and it requires MI account, but you can just make throwaway MI account with disposable email services, log in with it, enable it, then log out. Don't worry, it stays enabled even if you logged out (i've tried it in MIUI 12.5.6.0 RGGIDXM), before doing this you need to make sure App Vault (possibly other bloatware) is installed or you will be locked out from your phone.

IMG_20230322_070854

Note: If you see "your email is unsafe" warning or something like that while creating MI account, just try another disposable email service. They're just trying to scare you for using fake email. Extra info: install via USB also needs you to log in to MI account (or your SIM card)