New apps added

This commit is contained in:
w1nst0n 2019-12-15 23:21:39 +01:00
parent 62db3fd823
commit 7a3c3d988e
3 changed files with 109 additions and 83 deletions

View file

@ -1,22 +1,32 @@
# Universal Android Debloater # 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.
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.
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.
In any case, you can NOT brick your device with this script ! That's the main thing, right ? :smiley: 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 : ## Features :
* [X] Quick search among all the packages of a phone * [X] Quick search among all the packages of your phone
* [X] Uninstall system/user package * [X] Uninstall any system/user package
* [X] Reinstall system package * [X] Reinstall system packages
* [X] Backup all .apk from system/user apps stored in internal memory * [X] ADB backup (see FAQ)
* [X] Restore an existed backup
* [X] Brand device detection and auto-selection of the appropriate debloat list * [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) * [ ] 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 * [ ] Archos
* [X] Asus * [X] Asus
* [X] LG * [X] LG
@ -31,27 +41,19 @@ In any case, you can NOT brick your device with this script ! That's the main th
* [ ] Wiko * [ ] Wiko
* [X] Xiaomi * [X] Xiaomi
## Debloat lists : ## Phone carriers debloat list :
* [X] Amazon - France
* [X] Brand's firmware specific * [ ] Free
* [X] Facebook * [ ] SFR
* [X] Generic Android bloat * [ ] Orange
* [X] Google * [ ] Bouygues Telecom
* [X] Microsoft - USA
* [X] Miscellaneous * [X] T-Mobile
* [ ] Verizon
Phone carriers : * [ ] AT&T
* [X] T-Mobile
* [ ] Verizon
* [ ] AT&T
* [ ] Free
* [ ] SFR
* [ ] Orange
* [ ] Bouygues Telecom
## How to use it (Newbies) : ## 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 : - Install *Android plateform tools* with your package manager :
Debian Base : Debian Base :

View file

@ -136,11 +136,16 @@ declare -a google_bloat=(
declare -a samsung_bloat=( declare -a samsung_bloat=(
"com.android.dreams.phototable" "com.android.dreams.phototable"
"com.android.exchange" "com.android.exchange"
#"com.sec.android.app.desktoplauncher"
#"com.samsung.android.mdx"
"com.dsi.ant.plugins.antplus" #Samsung+ ? "com.dsi.ant.plugins.antplus" #Samsung+ ?
"com.enhance.gameservice" "com.enhance.gameservice"
"com.samsung.android.calendar"
"com.samsung.android.app.episodes" "com.samsung.android.app.episodes"
"com.samsung.android.app.ledcoverdream" "com.samsung.android.app.ledcoverdream"
"com.samsung.android.app.memo" "com.samsung.android.app.memo"
"com.samsung.android.app.reminder"
"com.samsung.android.smartmirroring"
"com.samsung.android.app.sbrowseredge" "com.samsung.android.app.sbrowseredge"
"com.samsung.android.app.storyalbumwidge" "com.samsung.android.app.storyalbumwidge"
"com.samsung.android.app.vrsetupwizardstub" "com.samsung.android.app.vrsetupwizardstub"
@ -159,6 +164,7 @@ declare -a samsung_bloat=(
"com.samsung.android.spdfnote" "com.samsung.android.spdfnote"
"com.samsung.android.svoice" "com.samsung.android.svoice"
"com.samsung.android.tripwidget" "com.samsung.android.tripwidget"
#"com.samsung.android.mobileservice"
"com.samsung.android.voicewakeup" "com.samsung.android.voicewakeup"
"com.samsung.android.weather" # Météo "com.samsung.android.weather" # Météo
"com.samsung.android.widgetapp.yahooedge.finance" "com.samsung.android.widgetapp.yahooedge.finance"
@ -166,7 +172,6 @@ declare -a samsung_bloat=(
"com.samsung.groupcast" "com.samsung.groupcast"
"com.samsung.svoice.sync" "com.samsung.svoice.sync"
"com.samsung.voiceserviceplatform" "com.samsung.voiceserviceplatform"
#"com.sec.android.app.desktoplauncher" #Samsung Launcher
"com.sec.android.app.gamehub" "com.sec.android.app.gamehub"
"com.sec.android.app.ocr" "com.sec.android.app.ocr"
"com.sec.android.app.samsungapps" "com.sec.android.app.samsungapps"
@ -305,6 +310,17 @@ declare -a misc_bloat=(
"com.netflix.mediaclient" "com.netflix.mediaclient"
"com.spotify.music" "com.spotify.music"
"com.evernote" "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=( declare -a microsoft_bloat=(
@ -312,7 +328,13 @@ declare -a microsoft_bloat=(
"com.skype.raider" "com.skype.raider"
"com.microsoft.office.excel" "com.microsoft.office.excel"
"com.microsoft.office.word" "com.microsoft.office.word"
"com.microsoft.office.outlook"
"com.microsoft.office.powerpoint" "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=( 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.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.partnerbrowsercustomizations.chromeHomepage"
"com.android.phasebeam" #Wallpaper. "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.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.providers.partnerbookmarks" #Provides bookmarks about partners of Google in Chrome.
"com.android.quicksearchbox" #Search box. "com.android.quicksearchbox" #Search box.
@ -373,9 +395,7 @@ declare -a generic_bloat=(
"com.android.providers.calendar" #Stock calendar app "com.android.providers.calendar" #Stock calendar app
"com.android.calendar" #Stock calendar app. "com.android.calendar" #Stock calendar app.
"com.android.contacts" #Stock contacts 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.downloads.ui" #Stock download app
"com.android.providers.contacts" #Sync for stock contacts app
"com.android.email" #Stock Email app (not Gmail). "com.android.email" #Stock Email app (not Gmail).
#"com.android.emergency" #Emergency Contacts. Remove it if you don't use this feature. #"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. "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.contentcatcher"
"com.miui.daemon" "com.miui.daemon"
"com.miui.enbbs" # Xiaomi Forums "com.miui.enbbs" # Xiaomi Forums
"com.eterno"
"com.miui.fm" "com.miui.fm"
"com.miui.greenguard" "com.miui.greenguard"
"com.miui.hybrid" "com.miui.hybrid"
@ -517,6 +538,7 @@ declare -a xiaomi_bloat=(
"com.miui.weather2" "com.miui.weather2"
"com.miui.yellowpage" "com.miui.yellowpage"
"com.opera.preinstall" "com.opera.preinstall"
"com.phonepe.app"
"com.qiyi.video" "com.qiyi.video"
"com.samsung.aasaservice" "com.samsung.aasaservice"
"com.sec.android.AutoPreconfig" "com.sec.android.AutoPreconfig"
@ -535,6 +557,7 @@ declare -a xiaomi_bloat=(
"com.xiaomi.mipicks" "com.xiaomi.mipicks"
"com.xiaomi.mirecycle" "com.xiaomi.mirecycle"
"com.xiaomi.o2o" "com.xiaomi.o2o"
"com.xiaomi.oversea.ecom"
"com.xiaomi.pass" "com.xiaomi.pass"
"com.xiaomi.payment" "com.xiaomi.payment"
"com.xiaomi.providers.appindex" "com.xiaomi.providers.appindex"

View file

@ -2,51 +2,47 @@
source debloat_lists.sh source debloat_lists.sh
# Colors used for printing
RED='\033[0;31m' 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 NC='\033[0m' # No Color
bold=$(tput bold) Bold=$(tput B)
normal=$(tput sgr0) nBold=$(tput sgr0)
function debloat { function debloat {
name=$1[@] name=$1[@]
bloat=("${!name}") #bloat=("${!name}")
printf "${RED}${bold}=== $brand debloat list ===${normal}${NC}\n" printf "${RED}${Bold}=== $brand debloat list ===${nBold}\n"
for i in "${bloat[@]}"; do for i in "${name[@]}"; do
printf "${RED}$i${NC} -->" printf "${RED}$i${nBold} -->"
adb shell " adb shell "pm uninstall --user 0 $i ${NC}"
pm uninstall --user 0 $i
"
done done
} }
function list { function list {
printf "\n${RED}${bold}Rechercher des paquets : ${normal}${NC}" read -r -p "\n${RED}${Bold}Search for packages : ${nBold}${NC} "
read -r package
printf "\n" printf "\n"
adb shell " adb shell "pm list packages | grep $REPLY"
pm list packages | grep $package
"
} }
function remove { function remove {
printf "\n${RED}${bold}Nom du paquet à désinstaller : ${normal}${NC}" read -r -p "\n${RED}${Bold}package name to remove : ${nBold}${NC} "
read -r nom_paquet adb shell "pm uninstall --user 0 $REPLY"
adb shell "
pm uninstall --user 0 $nom_paquet
"
} }
function install { function install {
printf "\n${RED}${bold}Nom du paquet à installer : ${normal}${NC}" read -r -p "\n${RED}${Bold}package name to reinstall : ${nBold}${NC} "
read -r nom_paquet adb shell "cmd package install-existing $REPLY"
adb shell "
cmd package install-existing $nom_paquet
"
} }
function restore { function restore {
printf "${RED}${bold}Restaurer une sauvegarde${normal}${NC}\n" printf "${RED}${Bold}Restore a backup\n ${nBold}${NC}"
read -p "Nom ${bold}exact${normal} de la sauvegarde : " read -p -r "Nom ${Bold}exact ${nBold} de la sauvegarde : "
adb restore $REPLY adb restore $REPLY
} }
@ -56,8 +52,8 @@ function check_backup_integrity {
echo "Vérification de la sauvegarde ($a)"; echo "Vérification de la sauvegarde ($a)";
dd if="$a" bs=24 skip=1 | zlib-flate -uncompress | tar tf - >/dev/null; dd if="$a" bs=24 skip=1 | zlib-flate -uncompress | tar tf - >/dev/null;
if [ $? = 0 ]; then if [ $? = 0 ]; then
printf "${RED}${bold}La sauvegarde générée est intègre${normal}${NC}\n" printf "${RED}${Bold}La sauvegarde générée est intègre${nBold}\n"
else printf "${RED}${bold}La sauvegarde générée est corrompue ! ${normal}${NC}\n" else printf "${GREEN}${Bold}La sauvegarde générée est corrompue ! ${nBold}\n"
fi fi
done done
} }
@ -102,14 +98,14 @@ printf " # #\n"
printf " # SCRIPT ----- DEBLOAT #\n" printf " # SCRIPT ----- DEBLOAT #\n"
printf " # ALL DEVICES COMPATIBLE (WIP) #\n" printf " # ALL DEVICES COMPATIBLE (WIP) #\n"
printf " # #\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"
printf " ================================================\n" printf " ================================================\n"
echo echo
adb devices adb devices
printf "${RED}${bold}AVERTISSEMENT : Lisez attentivement la FAQ avant de vous servir de ce script\n\n" 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 "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" printf "RAPPEL : Il est probable que toutes les applications ne soient pas sauvegardées (cf. FAQ).\n\n"
read read
if [[ $REPLY =~ [Yy]+[Ee]*[Ss]* ]]; then 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 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..." echo "Verification de l'intégrité de la sauvegarde..."
check_backup_integrity; check_backup_integrity;
else printf "${RED}${bold}Pas de sauvegarde${normal}${NC}\n" else printf "${RED}${Bold}Pas de sauvegarde${nBold}\n"
fi fi
brand=$(brand_detection)
while true; do while true; do
printf "\n${bold}======= MENU PRINCIPAL ======= ${normal}\n\n" printf "\n${Bold}${ORANGE}======= MENU PRINCIPAL ======= ${NC}${nBold}\n\n"
printf "1 - Lister des paquets\n" printf " 1 - Lister des paquets\n"
printf "2 - Désinstaller un paquet\n" printf " 2 - Désinstaller un paquet\n"
printf "3 - Réinstaller un paquet\n" printf " 3 - Réinstaller un paquet\n"
printf "4 - Auto-Debloat\n" printf " 4 - Restaurer une sauvegarde\n"
printf "5 - Restaurer une sauvegarde\n" printf "\n${Bold}${BBLUE}------- DEBLOAT -------${NC}${nBold}\n"
printf "6 - Debloat Google\n" printf " 5 - ${brand}\n"
printf "7 - Debloat T-Mobile\n" printf " 6 - Google\n"
printf "8 - Debloat Amazon\n" printf " 7 - T-Mobile\n"
printf "9 - Debloat Facebook\n" printf " 8 - Amazon\n"
printf "10 - Debloat Microsoft\n" printf " 9 - Facebook\n"
printf "11 - Debloat Divers\n" printf " 10 - Microsoft\n"
printf "12 - Debloat Android\n" printf " 11 - Divers\n"
printf "exit - Quitter\n\n" printf " 12 - Générique\n"
printf "${RED}${bold}PENSEZ À REDEMARRER VOTRE TELEPHONE UNE FOIS LE DEBLOAT TERMINE. ${normal}${NC}\n\n" printf "\n exit - Quitter\n\n"
read -p "${bold}Choisissez une action : ${normal}" action 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 echo
brand=$(brand_detection)
case $action in case $action in
1) list ;; 1) list ;;
2) remove ;; 2) remove ;;
3) install ;; 3) install ;;
4) debloat $brand ;; 4) restore ;;
5) restore ;; 5) debloat $brand ;;
6) debloat google_bloat ;; 6) debloat google_bloat ;;
7) debloat T_Mobile_bloat ;; 7) debloat T_Mobile_bloat ;;
8) debloat amazon_bloat ;; 8) debloat amazon_bloat ;;