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.62k stars 825 forks source link

I can't get permission to uninstall. #354

Closed Helloeveryone01992877373 closed 2 years ago

Helloeveryone01992877373 commented 2 years ago

I have been trying to get adb to uninstall apps on my Samsung Tablet, but for some reason I get a error saying no users have android permission to uninstall. I added debugging and everything. Can someone help?

0x192 commented 2 years ago

Why didn't you follow the issue template?

I need the logfile

AnonymousWP commented 2 years ago

Why didn't you follow the issue template?

I need the logfile

This doesn't help

What doesn't help is the fact that he's asking for a logfile and you seem to refuse to share it. How can you then expect him to help you properly?

Helloeveryone01992877373 commented 2 years ago

This logfile? 2022-09-02 01:17:58 DEBUG [src/core/update.rs:178] Checking for UAD update 2022-09-02 01:17:58 WARN [src/gui/mod.rs:102] Trying to download remote UAD list 2022-09-02 01:18:00 INFO [src/gui/mod.rs:457] ----------------------------------------------------------------- 2022-09-02 01:18:00 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280 2022-09-02 01:18:02 INFO [src/gui/views/list.rs:141] Custom selection has been successfully imported 2022-09-02 01:22:56 WARN [src/gui/mod.rs:102] Trying to download remote UAD list 2022-09-02 01:22:58 INFO [src/gui/mod.rs:457] ----------------------------------------------------------------- 2022-09-02 01:22:58 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280 2022-09-02 01:22:59 INFO [src/gui/views/list.rs:141] Custom selection has been successfully imported 2022-09-02 01:23:53 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:54 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success 2022-09-02 01:23:54 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:55 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success 2022-09-02 01:23:55 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:55 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success

AnonymousWP commented 2 years ago

This logfile? 2022-09-02 01:17:58 DEBUG [src/core/update.rs:178] Checking for UAD update 2022-09-02 01:17:58 WARN [src/gui/mod.rs:102] Trying to download remote UAD list 2022-09-02 01:18:00 INFO [src/gui/mod.rs:457] ----------------------------------------------------------------- 2022-09-02 01:18:00 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280 2022-09-02 01:18:02 INFO [src/gui/views/list.rs:141] Custom selection has been successfully imported 2022-09-02 01:22:56 WARN [src/gui/mod.rs:102] Trying to download remote UAD list 2022-09-02 01:22:58 INFO [src/gui/mod.rs:457] ----------------------------------------------------------------- 2022-09-02 01:22:58 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280 2022-09-02 01:22:59 INFO [src/gui/views/list.rs:141] Custom selection has been successfully imported 2022-09-02 01:23:53 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:54 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success 2022-09-02 01:23:54 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:55 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success 2022-09-02 01:23:55 ERROR [src/core/utils.rs:219] [Recommended] pm hide --user 0 com.samsung.android.sm -> Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS. 2022-09-02 01:23:55 INFO [src/core/utils.rs:222] [Recommended] pm clear --user 0 com.samsung.android.sm -> Success

As I said in this thread: because you can't uninstall system apps without root. Try disabling them instead (see UAD's settings).

Helloeveryone01992877373 commented 2 years ago

I can't do that on UAD

AnonymousWP commented 2 years ago

I can't do that on UAD

What do you mean? You can disable packages. Go into the settings.

Helloeveryone01992877373 commented 2 years ago

That option is unavailable. I just can't disable or uninstall?

AnonymousWP commented 2 years ago

That option is unavailable. I just can't disable or uninstall?

I think you're running Android 6 or lower, see: https://github.com/0x192/universal-android-debloater/wiki/FAQ#why-is-the-disable-mode-setting-not-available-for-my-device

Before Android 6.x (Marshmallow), pm disable <package> or pm disable-user --user <user> <package> can't be used without root permission.

Your log file also indicates this:

2022-09-02 01:18:00 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280

Level 22 = Android 5.1.

Helloeveryone01992877373 commented 2 years ago

That option is unavailable. I just can't disable or uninstall?

I think you're running Android 6 or lower, see: https://github.com/0x192/universal-android-debloater/wiki/FAQ#why-is-the-disable-mode-setting-not-available-for-my-device

Before Android 6.x (Marshmallow), pm disable <package> or pm disable-user --user <user> <package> can't be used without root permission.

Your log file also indicates this:

2022-09-02 01:18:00 INFO [src/gui/mod.rs:458] ANDROID_SDK: 22 | PHONE: samsung SM-T280

Level 22 = Android 5.1.

Yeah it is android 5.1, it's all okay