Universal-Debloater-Alliance / universal-android-debloater-next-generation

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
2.2k stars 74 forks source link

unloading android.packageinstaller caused rescueparty to fire up #157

Open Jopp-gh opened 8 months ago

Jopp-gh commented 8 months ago

Your phone model: motorola e40 (cyprus)

Describe the issue after unloading com.google.android.packageinstaller, this phone isnt able to boot anymore and brings up the rescueparty command to wipe all phone data to fakktory defaults. Hate motorola for making it super-difficult to flash this phone, wont pick this brand anymore thats sure. I used your debloater with success for a longer time, yesterday i did it wrong- since I use another package manager and other marketplaces to update apps, I thought it is fine to unload the preinstalled packageinstaller. Please see the log at the bottom

You have a solution? The point is, adb or the commands integrated in your app are unable to detect my model - it should be possible to add my phone model manually and restore everything to default settings from my computer. Probably Debloaters commands are not powerful enough to modify phone settings during boot or in recovery mode. But exactly this can happen if the wrong settings are ticked and you restart your phone.

To prevent such accidents, first and foremost: exclude com.google.android.packageinstaller because it breaks a phone second: not sure if possible but add some test-mechanism to simulate if debloaters new settings are really healthy for a phone.

UAD-ng log

2024-01-04 10:54:28 WARN  [src/core/uad_lists.rs:218] Could not load remote debloat list: https://raw.githubusercontent.com/0x192/universal-android-debloater/main/resources/assets/uad_lists.json: Dns Failed: resolve dns name 'raw.githubusercontent.com:443': failed to lookup address information: nodename nor servname provided, or not known
2024-01-04 11:03:27 INFO  [src/core/utils.rs:222] [Expert] pm uninstall --user 0 com.google.android.packageinstaller -> Success
2024-01-04 11:08:12 INFO  [src/core/utils.rs:222] [Advanced] pm uninstall --user 0 com.google.android.ims -> Success
Blitz517 commented 8 months ago

Before uninstalling read if its recommended or unsafe because this app is unsafe so better check recommended and advanced packages, alternatively expert if you want.

Jopp-gh commented 8 months ago

No, this app is safe, but some packages need to be removed. I put some time to write a meaningful report, so please re-read my report if something isn't clear, everything is written above. Thanks

Blitz517 commented 8 months ago

If you dont have com.android.packageinstaller app then its not safe

Jopp-gh commented 8 months ago

I meant Debloater is safe. com.google.android.packageinstaller is not safe, so why is it in the list at all? Expert mode is meaningless if com.google.android.packageinstaller breaks a phone from starting up.

Blitz517 commented 8 months ago

List all shows all apps but unsafe apps uninstall button is disabled. About packageinstaller app: Its weird, only on xiaomi miui china i have seen disabled stock packageinstaller and enabled com.miui.packageinstaller. Myabe try disable instead removing this app? It looks still unsafe btw.

Jopp-gh commented 8 months ago

I am sure I didnt check the uninstall button. Usually I unloaded packages, but the log says clearly "uninstall", that is confusing. Should be there "unload" instead of "uninstall" or are both synonyms ?

Well now the damage is done. Debloater is unable to reveal my phone model and does not load anything in the list, so I could change and revert settings. Only a working and booted phone loads Debloaters list.

AnonymousWP commented 8 months ago

Uhh? Unload? You mean disable? Disabling is something you need to explicitly enable in the settings.

What do you want us to do now exactly? I'm slightly confused.

AnonymousWP commented 6 months ago

@Jopp-gh Please follow-up on this.