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

Issue Debloating Samsung Galaxy S5 #691

Open BigBaconCA opened 1 year ago

BigBaconCA commented 1 year ago

I am trying to debloat a connected Samsung Galaxy S5. ADB shows the device as connected and UAD can connect as normal. However, I noticed when it looks for the recommended package for the S5 it fails.

2023-04-10 11:10:27 INFO [src\gui\mod.rs:458] ANDROID_SDK: 23 | PHONE: samsung SAMSUNG-SM-G900A 2023-04-10 11:10:31 WARN [src\gui\views\list.rs:142] No custom selection imported: The system cannot find the file specified. (os error 2)

It does recognize all of the SDK's under All Packages but none can be enabled or uninstalled. (examples)

2023-04-10 11:10:54 ERROR [src\core\utils.rs:219] [Unlisted] pm enable --user 0 com.att.myWireless -> Error: java.lang.IllegalArgumentException: Unknown package: com.att.myWireless 2023-04-10 11:11:34 ERROR [src\core\utils.rs:219] [Unlisted] pm uninstall --user 0 com.google.android.feedback -> Failure - not installed for 0

I was able to debloat a Samsung S23 using the same equipment as a control test while trying to figure this out. Any help is appreciated.

UAD_20230410.log

BigBaconCA commented 1 year ago

Update: All of the commands in ADB work manually to remove packages. It's just the GUI that doesn't work.

AnonymousWP commented 1 year ago

Try disabling instead of uninstalling.

BigBaconCA commented 1 year ago

Both disabling and uninstalling just don't work in the GUI and the errors are in the log. I can disable and uninstall using the command line in ADB though.

AnonymousWP commented 1 year ago

Maybe select a different user? Because it seems like they don't exist for user 0.