Désinstaller les pubiciels embarqués de force sur votre terminal Android depuis un ordinateur.
1. Remove
1.1. Uninstall
$ adb shell pm uninstall --user 0 com.facebook.services
1.1.1. adb shell
This implies that your first got adb shell
to work for your device. Using
GNU+Linux it may be well packaged in your Artix Linux distribution, or outdated
in a Debian stable. In this second case you can download the lastest
platform-tools
from Google and use platform-tools/adb
binary instead. I
recommand to add your platform-tools/
folder to your current path to allow
scripts to use it : $ export PATH=$PATH:/path/to/unzipped/platform-tools/
.
1.2. Disable (if root)
You might want to disable only (in a first time) to check if it’s safe to remove it later…
$ adb shell pm disable com.google.android.onetimeinitializer
A disabled package is hidden anywhere in your device.
2. Re-install a package
2.1. Re-install
$ adb shell pm install --user 0 $(pm dump <package name> | awk '/path/{ print $2 }')
This will locate .apk
of the uninstalled package and search for a line starting with its /path/
(as per this StackOverflow answer).
2.2. Enable (if root)
If you just disabled it :
$ adb shell pm enable com.google.android.onetimeinitializer
3. What can safely be uninstalled ?
Everything that looks like coming from GAFAM :
com.facebook.*
com.microsoft.*
com.linkedin.android
com.samsung.knox.*
com.samsung.android.voicewakeup
com.google.android.youtube
com.google.android.googlequicksearchbox
…
I got around an hundred packages out of a Samsung Galaxy A3 2017 needing more internal space.
Bigger list here : https://github.com/alex-quiniou/remove-bloatware-galaxy-s10e
4. Find more packages to remove
$ adb shell pm list packages -f (1)
1 | You may want to list only system packages with -s third party packages with -3 or disabled packages with -d instead of -f |