mirror of
https://gitlab.com/W1nst0n/universal-android-debloater.git
synced 2024-05-18 21:52:26 +12:00
New apps added
This commit is contained in:
parent
62db3fd823
commit
7a3c3d988e
58
README.md
58
README.md
|
@ -1,22 +1,32 @@
|
|||
# Universal Android Debloater
|
||||
|
||||
**DISCLAIMER** : I am not responsible for thermonuclear war, you getting fired because you broke the alarm app or for anything that could happen to your phone actually.
|
||||
**DISCLAIMER** : I am not responsible for thermonuclear war, you getting fired because you broke the alarm app or for anything that could happen to your phone actually.
|
||||
|
||||
|
||||
Don't worry, this script is (pretty) safe if you only use my debloat lists. If not, the worse thing you can do is preventing a essential system process to be loaded during boot and causing thus an unfortunate bootloop. After about 5 failed system boot, the phone will automatically boot into recovery mode and you'll have to perform a FACTORY RESET.
|
||||
But don't worry. This script *should* be safe as long as you only use my debloat lists and the stable release. If not, the worse thing you can do is preventing a essential system process to be loaded during boot thus causing an unfortunate bootloop. After about 5 failed system boot, the phone will automatically boot into recovery mode and you'll have to perform a FACTORY RESET.
|
||||
|
||||
In any case, you can NOT brick your device with this script ! That's the main thing, right ? :smiley:
|
||||
|
||||
**Don't forget to backup importants things before doing anythings ! You can never be too careful**
|
||||
|
||||
## Features :
|
||||
* [X] Quick search among all the packages of a phone
|
||||
* [X] Uninstall system/user package
|
||||
* [X] Reinstall system package
|
||||
* [X] Backup all .apk from system/user apps stored in internal memory
|
||||
* [X] Restore an existed backup
|
||||
* [X] Quick search among all the packages of your phone
|
||||
* [X] Uninstall any system/user package
|
||||
* [X] Reinstall system packages
|
||||
* [X] ADB backup (see FAQ)
|
||||
* [X] Brand device detection and auto-selection of the appropriate debloat list
|
||||
* [X] Light/heavy debloat
|
||||
* [ ] Installation of alternative FOSS apps replacing stock apps (list in the WIKI section)
|
||||
|
||||
## Supported brands :
|
||||
## Universal debloat lists :
|
||||
* [X] Amazon
|
||||
* [X] Manufacturer bloat
|
||||
* [X] Facebook
|
||||
* [X] Generic Android bloat
|
||||
* [X] Google
|
||||
* [X] Microsoft
|
||||
* [X] Miscellaneous
|
||||
|
||||
## Manufacturers debloat list:
|
||||
* [ ] Archos
|
||||
* [X] Asus
|
||||
* [X] LG
|
||||
|
@ -31,27 +41,19 @@ In any case, you can NOT brick your device with this script ! That's the main th
|
|||
* [ ] Wiko
|
||||
* [X] Xiaomi
|
||||
|
||||
## Debloat lists :
|
||||
* [X] Amazon
|
||||
* [X] Brand's firmware specific
|
||||
* [X] Facebook
|
||||
* [X] Generic Android bloat
|
||||
* [X] Google
|
||||
* [X] Microsoft
|
||||
* [X] Miscellaneous
|
||||
|
||||
Phone carriers :
|
||||
* [X] T-Mobile
|
||||
* [ ] Verizon
|
||||
* [ ] AT&T
|
||||
* [ ] Free
|
||||
* [ ] SFR
|
||||
* [ ] Orange
|
||||
* [ ] Bouygues Telecom
|
||||
|
||||
## Phone carriers debloat list :
|
||||
- France
|
||||
* [ ] Free
|
||||
* [ ] SFR
|
||||
* [ ] Orange
|
||||
* [ ] Bouygues Telecom
|
||||
- USA
|
||||
* [X] T-Mobile
|
||||
* [ ] Verizon
|
||||
* [ ] AT&T
|
||||
|
||||
## How to use it (Newbies) :
|
||||
- **Read the [FAQ](https://gitlab.com/W1nst0n/universal-android-debloater/wikis/FAQ) !!**
|
||||
- **Read the [FAQ](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/FAQ) !!**
|
||||
- Install *Android plateform tools* with your package manager :
|
||||
|
||||
Debian Base :
|
||||
|
|
|
@ -136,11 +136,16 @@ declare -a google_bloat=(
|
|||
declare -a samsung_bloat=(
|
||||
"com.android.dreams.phototable"
|
||||
"com.android.exchange"
|
||||
#"com.sec.android.app.desktoplauncher"
|
||||
#"com.samsung.android.mdx"
|
||||
"com.dsi.ant.plugins.antplus" #Samsung+ ?
|
||||
"com.enhance.gameservice"
|
||||
"com.samsung.android.calendar"
|
||||
"com.samsung.android.app.episodes"
|
||||
"com.samsung.android.app.ledcoverdream"
|
||||
"com.samsung.android.app.memo"
|
||||
"com.samsung.android.app.reminder"
|
||||
"com.samsung.android.smartmirroring"
|
||||
"com.samsung.android.app.sbrowseredge"
|
||||
"com.samsung.android.app.storyalbumwidge"
|
||||
"com.samsung.android.app.vrsetupwizardstub"
|
||||
|
@ -159,6 +164,7 @@ declare -a samsung_bloat=(
|
|||
"com.samsung.android.spdfnote"
|
||||
"com.samsung.android.svoice"
|
||||
"com.samsung.android.tripwidget"
|
||||
#"com.samsung.android.mobileservice"
|
||||
"com.samsung.android.voicewakeup"
|
||||
"com.samsung.android.weather" # Météo
|
||||
"com.samsung.android.widgetapp.yahooedge.finance"
|
||||
|
@ -166,7 +172,6 @@ declare -a samsung_bloat=(
|
|||
"com.samsung.groupcast"
|
||||
"com.samsung.svoice.sync"
|
||||
"com.samsung.voiceserviceplatform"
|
||||
#"com.sec.android.app.desktoplauncher" #Samsung Launcher
|
||||
"com.sec.android.app.gamehub"
|
||||
"com.sec.android.app.ocr"
|
||||
"com.sec.android.app.samsungapps"
|
||||
|
@ -305,6 +310,17 @@ declare -a misc_bloat=(
|
|||
"com.netflix.mediaclient"
|
||||
"com.spotify.music"
|
||||
"com.evernote"
|
||||
"com.UCMobile.intl"
|
||||
"com.opera.mini.native"
|
||||
"com.opera.app.news"
|
||||
"com.til.timesnews"
|
||||
"com.opera.branding"
|
||||
"in.mohalla.sharechat"
|
||||
"com.micredit.in"
|
||||
"flipboard.boxer.app"
|
||||
"com.s.antivirus"
|
||||
"com.enhance.gameservice"
|
||||
"com.linkedin.android"
|
||||
)
|
||||
|
||||
declare -a microsoft_bloat=(
|
||||
|
@ -312,7 +328,13 @@ declare -a microsoft_bloat=(
|
|||
"com.skype.raider"
|
||||
"com.microsoft.office.excel"
|
||||
"com.microsoft.office.word"
|
||||
"com.microsoft.office.outlook"
|
||||
"com.microsoft.office.powerpoint"
|
||||
"com.skype.m2"
|
||||
"com.microsoft.office.officehubhl"
|
||||
"com.microsoft.office.officehub"
|
||||
"com.microsoft.office.officehubrow"
|
||||
"com.microsoft.appmanager"
|
||||
)
|
||||
|
||||
declare -a generic_bloat=(
|
||||
|
@ -344,7 +366,7 @@ declare -a generic_bloat=(
|
|||
"com.android.pacprocessor" #PAC stands for proxy auto-config, and this file defines how web browsers and other agents can automatically define the correct proxy server for fetching an URL. Removable, if you don't use proxies on your phone.
|
||||
"com.android.partnerbrowsercustomizations.chromeHomepage"
|
||||
"com.android.phasebeam" #Wallpaper.
|
||||
"com.android.printservice.reccomendation" #Keep it, if you need to print directly via your phone.
|
||||
"com.android.printservice.recommendation" #Keep it, if you need to print directly via your phone.
|
||||
"com.android.printspooler" #Keep it, if you need to print directly via your phone.
|
||||
"com.android.providers.partnerbookmarks" #Provides bookmarks about partners of Google in Chrome.
|
||||
"com.android.quicksearchbox" #Search box.
|
||||
|
@ -373,9 +395,7 @@ declare -a generic_bloat=(
|
|||
"com.android.providers.calendar" #Stock calendar app
|
||||
"com.android.calendar" #Stock calendar app.
|
||||
"com.android.contacts" #Stock contacts app.
|
||||
"com.android.providers.downloads" #Stock download app
|
||||
"com.android.providers.downloads.ui" #Stock download app
|
||||
"com.android.providers.contacts" #Sync for stock contacts app
|
||||
"com.android.email" #Stock Email app (not Gmail).
|
||||
#"com.android.emergency" #Emergency Contacts. Remove it if you don't use this feature.
|
||||
"com.android.facelock" #Essential if you wanna use Face Unlock features, removable if you don't want to.
|
||||
|
@ -487,6 +507,7 @@ declare -a xiaomi_bloat=(
|
|||
"com.miui.contentcatcher"
|
||||
"com.miui.daemon"
|
||||
"com.miui.enbbs" # Xiaomi Forums
|
||||
"com.eterno"
|
||||
"com.miui.fm"
|
||||
"com.miui.greenguard"
|
||||
"com.miui.hybrid"
|
||||
|
@ -517,6 +538,7 @@ declare -a xiaomi_bloat=(
|
|||
"com.miui.weather2"
|
||||
"com.miui.yellowpage"
|
||||
"com.opera.preinstall"
|
||||
"com.phonepe.app"
|
||||
"com.qiyi.video"
|
||||
"com.samsung.aasaservice"
|
||||
"com.sec.android.AutoPreconfig"
|
||||
|
@ -535,6 +557,7 @@ declare -a xiaomi_bloat=(
|
|||
"com.xiaomi.mipicks"
|
||||
"com.xiaomi.mirecycle"
|
||||
"com.xiaomi.o2o"
|
||||
"com.xiaomi.oversea.ecom"
|
||||
"com.xiaomi.pass"
|
||||
"com.xiaomi.payment"
|
||||
"com.xiaomi.providers.appindex"
|
||||
|
|
|
@ -2,51 +2,47 @@
|
|||
|
||||
source debloat_lists.sh
|
||||
|
||||
# Colors used for printing
|
||||
RED='\033[0;31m'
|
||||
BLUE='\033[0;34m'
|
||||
BBLUE='\033[1;34m'
|
||||
GREEN='\033[0;32m'
|
||||
ORANGE='\033[0;33m'
|
||||
CYAN='\033[0;36m'
|
||||
NC='\033[0m' # No Color
|
||||
bold=$(tput bold)
|
||||
normal=$(tput sgr0)
|
||||
Bold=$(tput B)
|
||||
nBold=$(tput sgr0)
|
||||
|
||||
|
||||
function debloat {
|
||||
name=$1[@]
|
||||
bloat=("${!name}")
|
||||
printf "${RED}${bold}=== $brand debloat list ===${normal}${NC}\n"
|
||||
for i in "${bloat[@]}"; do
|
||||
printf "${RED}$i${NC} -->"
|
||||
adb shell "
|
||||
pm uninstall --user 0 $i
|
||||
"
|
||||
#bloat=("${!name}")
|
||||
printf "${RED}${Bold}=== $brand debloat list ===${nBold}\n"
|
||||
for i in "${name[@]}"; do
|
||||
printf "${RED}$i${nBold} -->"
|
||||
adb shell "pm uninstall --user 0 $i ${NC}"
|
||||
done
|
||||
}
|
||||
|
||||
function list {
|
||||
printf "\n${RED}${bold}Rechercher des paquets : ${normal}${NC}"
|
||||
read -r package
|
||||
read -r -p "\n${RED}${Bold}Search for packages : ${nBold}${NC} "
|
||||
printf "\n"
|
||||
adb shell "
|
||||
pm list packages | grep $package
|
||||
"
|
||||
adb shell "pm list packages | grep $REPLY"
|
||||
}
|
||||
|
||||
function remove {
|
||||
printf "\n${RED}${bold}Nom du paquet à désinstaller : ${normal}${NC}"
|
||||
read -r nom_paquet
|
||||
adb shell "
|
||||
pm uninstall --user 0 $nom_paquet
|
||||
"
|
||||
read -r -p "\n${RED}${Bold}package name to remove : ${nBold}${NC} "
|
||||
adb shell "pm uninstall --user 0 $REPLY"
|
||||
}
|
||||
|
||||
function install {
|
||||
printf "\n${RED}${bold}Nom du paquet à installer : ${normal}${NC}"
|
||||
read -r nom_paquet
|
||||
adb shell "
|
||||
cmd package install-existing $nom_paquet
|
||||
"
|
||||
read -r -p "\n${RED}${Bold}package name to reinstall : ${nBold}${NC} "
|
||||
adb shell "cmd package install-existing $REPLY"
|
||||
}
|
||||
|
||||
function restore {
|
||||
printf "${RED}${bold}Restaurer une sauvegarde${normal}${NC}\n"
|
||||
read -p "Nom ${bold}exact${normal} de la sauvegarde : "
|
||||
printf "${RED}${Bold}Restore a backup\n ${nBold}${NC}"
|
||||
read -p -r "Nom ${Bold}exact ${nBold} de la sauvegarde : "
|
||||
adb restore $REPLY
|
||||
}
|
||||
|
||||
|
@ -56,8 +52,8 @@ function check_backup_integrity {
|
|||
echo "Vérification de la sauvegarde ($a)";
|
||||
dd if="$a" bs=24 skip=1 | zlib-flate -uncompress | tar tf - >/dev/null;
|
||||
if [ $? = 0 ]; then
|
||||
printf "${RED}${bold}La sauvegarde générée est intègre${normal}${NC}\n"
|
||||
else printf "${RED}${bold}La sauvegarde générée est corrompue ! ${normal}${NC}\n"
|
||||
printf "${RED}${Bold}La sauvegarde générée est intègre${nBold}\n"
|
||||
else printf "${GREEN}${Bold}La sauvegarde générée est corrompue ! ${nBold}\n"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
@ -102,14 +98,14 @@ printf " # #\n"
|
|||
printf " # SCRIPT ----- DEBLOAT #\n"
|
||||
printf " # ALL DEVICES COMPATIBLE (WIP) #\n"
|
||||
printf " # #\n"
|
||||
printf " # %13s${RED}${bold}v1.2.1 (21-04-2019)${normal}${NC}%13s#\n"
|
||||
printf " # %10s${RED}${Bold}v1.3 (23 September 2019)${nBold}%11s#\n"
|
||||
printf " # #\n"
|
||||
printf " ================================================\n"
|
||||
echo
|
||||
|
||||
adb devices
|
||||
printf "${RED}${bold}AVERTISSEMENT : Lisez attentivement la FAQ avant de vous servir de ce script\n\n"
|
||||
printf "Voulez vous faire une sauvegarde de toutes les applications du téléphone [Yes/No] ? (recommandé)\n\n${normal}${NC}"
|
||||
printf "${RED}${Bold}AVERTISSEMENT : Lisez attentivement la FAQ avant de vous servir de ce script\n\n"
|
||||
printf "Voulez vous faire une sauvegarde de toutes les applications du téléphone [Yes/No] ?\n\n${nBold}"
|
||||
printf "RAPPEL : Il est probable que toutes les applications ne soient pas sauvegardées (cf. FAQ).\n\n"
|
||||
read
|
||||
if [[ $REPLY =~ [Yy]+[Ee]*[Ss]* ]]; then
|
||||
|
@ -117,34 +113,39 @@ if [[ $REPLY =~ [Yy]+[Ee]*[Ss]* ]]; then
|
|||
adb backup -apk -all -system -f "${PHONE:-phone}-`date +%Y%m%d-%H%M%S`.adb" # -noshare option is default
|
||||
echo "Verification de l'intégrité de la sauvegarde..."
|
||||
check_backup_integrity;
|
||||
else printf "${RED}${bold}Pas de sauvegarde${normal}${NC}\n"
|
||||
else printf "${RED}${Bold}Pas de sauvegarde${nBold}\n"
|
||||
fi
|
||||
|
||||
brand=$(brand_detection)
|
||||
|
||||
while true; do
|
||||
printf "\n${bold}======= MENU PRINCIPAL ======= ${normal}\n\n"
|
||||
printf "1 - Lister des paquets\n"
|
||||
printf "2 - Désinstaller un paquet\n"
|
||||
printf "3 - Réinstaller un paquet\n"
|
||||
printf "4 - Auto-Debloat\n"
|
||||
printf "5 - Restaurer une sauvegarde\n"
|
||||
printf "6 - Debloat Google\n"
|
||||
printf "7 - Debloat T-Mobile\n"
|
||||
printf "8 - Debloat Amazon\n"
|
||||
printf "9 - Debloat Facebook\n"
|
||||
printf "10 - Debloat Microsoft\n"
|
||||
printf "11 - Debloat Divers\n"
|
||||
printf "12 - Debloat Android\n"
|
||||
printf "exit - Quitter\n\n"
|
||||
printf "${RED}${bold}PENSEZ À REDEMARRER VOTRE TELEPHONE UNE FOIS LE DEBLOAT TERMINE. ${normal}${NC}\n\n"
|
||||
read -p "${bold}Choisissez une action : ${normal}" action
|
||||
printf "\n${Bold}${ORANGE}======= MENU PRINCIPAL ======= ${NC}${nBold}\n\n"
|
||||
printf " 1 - Lister des paquets\n"
|
||||
printf " 2 - Désinstaller un paquet\n"
|
||||
printf " 3 - Réinstaller un paquet\n"
|
||||
printf " 4 - Restaurer une sauvegarde\n"
|
||||
printf "\n${Bold}${BBLUE}------- DEBLOAT -------${NC}${nBold}\n"
|
||||
printf " 5 - ${brand}\n"
|
||||
printf " 6 - Google\n"
|
||||
printf " 7 - T-Mobile\n"
|
||||
printf " 8 - Amazon\n"
|
||||
printf " 9 - Facebook\n"
|
||||
printf " 10 - Microsoft\n"
|
||||
printf " 11 - Divers\n"
|
||||
printf " 12 - Générique\n"
|
||||
printf "\n exit - Quitter\n\n"
|
||||
printf "${Bold}${ORANGE}==============================${NC}${nBold}\n\n"
|
||||
|
||||
printf "${RED}${Bold}PENSEZ À REDEMARRER VOTRE TELEPHONE UNE FOIS LE DEBLOAT TERMINE. ${nBold}${NC}\n\n"
|
||||
read -p "${Bold}Choisissez une action : ${nBold}" action
|
||||
echo
|
||||
|
||||
brand=$(brand_detection)
|
||||
case $action in
|
||||
1) list ;;
|
||||
2) remove ;;
|
||||
3) install ;;
|
||||
4) debloat $brand ;;
|
||||
5) restore ;;
|
||||
4) restore ;;
|
||||
5) debloat $brand ;;
|
||||
6) debloat google_bloat ;;
|
||||
7) debloat T_Mobile_bloat ;;
|
||||
8) debloat amazon_bloat ;;
|
||||
|
|
Loading…
Reference in a new issue