Closed Lost-Entrepreneur439 closed 1 month ago
The program uses the --user option to uninstall apps, Jelly Bean doesn't understand the "user" as it was not existent back then. a solution would be an option for rooted devices in the program that removes the --user key to remove it with root privileges. example: ADB shell pm uninstall "com.package.name" instead of ADB shell pm uninstall --user 0 "com.package.name", which JB can't run.
We could add a setting to remove the user tag, or detect android version and do it automatically.
This behavior does not seem to be triggered by the --user
flag (see the logs) since we check for the android sdk. This xda thread mentions pm block
.
Our code in sync.rs
is deferring to pm uninstall
instead of pm block
for SDK versions below 19 (@Lost-Entrepreneur439 has a device with SDK version 17). I'll follow up with a PR tomorrow.
This behavior does not seem to be triggered by the
--user
flag (see the logs) since we check for the android sdk. This xda thread mentionspm block
. Our code insync.rs
is deferring topm uninstall
instead ofpm block
for SDK versions below 19 (@Lost-Entrepreneur439 has a device with SDK version 17). I'll follow up with a PR tomorrow.
After doing another check at logs, the issue isnt related exactly the --user flag, which doesnt exist in older versions of Android. Logs are telling that it ADB Shell does not have Root permissions to uninstall these apps from the OS.
Unless he gets ADB Shell root access, the debloat is gonna fail (unless you disable them instead of uninstalling).
Describe the bug
Nothing appears to happen when uninstalling apps on older Android versions, I am unsure of the exact versions affected, however this issue does occur on my Motorola Milestone 3 (model number XT860, codename umts_solana) running CyanogenMod 10.1 (Android 4.2.2). In the wiki, it mentions you need root for Android Jellybean and earlier, but I'm rooted and still can't uninstall anything.
Expected behavior
I'd expect UAD to actually uninstall the application.
You have a solution?
No response
Provide logs
UAD_20240402.log
Acknowledgements