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
14.73k stars 799 forks source link

Uninstallation commands and installation on Linux #815

Open Gibtnix opened 12 months ago

Gibtnix commented 12 months ago

Hi,

First of all, great work! Adding a GUI to ADB for debloating Android is extremly useful, thanks a lot! 👍

Still, I have a two minor questions that I tried to answer by inspecting the source code, however I did not find an easy answer. I don't know whether feature request is the right form, still I found it the best matching one. Therefore, I'd like to quickly ask:

  1. How are the respective packages removed? On the command line, I noticed that usually two commands are required:
    
    # first, uninstall any updates that might have been installed (without this step, they might be kept)
    adb uninstall <package>

disable the app and delete user data (adding '-k' keeps the data)

adb shell pm uninstall --user 0



Doing so, I never had any automatic re-installations or re-activations (as noted). Therefore, I wanted to ask whether both steps are performed here, too? If not, it might be worth extending, but I'm not an ADB expert...

2. Besides this functional issue, I am curious whether there is a way for a system-wide install on Linux, in particular for Debian-/ubuntu-based distributions?

As far as I see, there are no configuration files created (or are there any?) and besides ADB, there seems to be no real dependency, i.e. installing can be done by copying the binary to `/usr/local/bin` (or a similar path on other distros). If this is the easiest option (or is there maybe a PPA somewhere?), I think this could be realized using a small shell script that downloads the latest binary from GitHub. Do you have any interest in adding such a script to the repo? If so, I would create one as soon as I find the time for it...