Created
May 21, 2021 01:56
-
-
Save jfsso/32bdd39f40ed162debff0662999a91c9 to your computer and use it in GitHub Desktop.
Remove DoCoMo Bloatware on Galaxy S21 5G SC-51B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# Confirmed most pre-installed DoCoMo bloatware were removed with this script on Galaxy S21 5G SC-51B. | |
# I recommend adjusting the script to your own preferences: | |
# It keeps some apps that I use, for example: Mobile Suica and Osaifu-Keitai. | |
# It removes other apps that I dislike: Facebook, Amazon and some others. | |
# Please understand that this script WILL remove and disable apps on your system and has risks of data loss or making the system unstable or inoperable. | |
# Taking backups before executing is ENCOURAGED. Run at your own risk. I do not take responsibility for any losses this script may cause. | |
################################################ | |
# Disable/Uninstall obvious NTT DoCoMo bloatware | |
# (40 packages were uninstalled on a fresh SC-51B) | |
################################################ | |
# disable all packages with docomo in their name | |
adb shell 'pm list packages -f' | grep docomo | sed -e 's/.*=//' | xargs -n1 -t adb shell pm disable-user --user 0 | |
# uninstall all packages with docomo in their name (some will fail) | |
adb shell 'pm list packages -f' | grep docomo | sed -e 's/.*=//' | xargs -n1 -t adb shell pm uninstall | |
# uninstall all packages with docomo in their name for user 0 | |
adb shell 'pm list packages -f' | grep docomo | sed -e 's/.*=//' | xargs -n1 -t adb shell pm uninstall --user 0 | |
################################################ | |
# Disable disguised NTT DoCoMo bloatware | |
################################################ | |
# disable more docomo preinstalled apps | |
adb shell pm disable-user --user 0 com.android.contacts # docomo phonebook app | |
################################################ | |
# Remove other bloatware | |
################################################ | |
bloatware=( | |
"jp.dmapnavi.navi02" # ドコモ地図ナビ | |
"com.rsupport.rs.activity.ntt" # 遠隔サポート – RemoteCall | |
"com.sec.android.japan.manual.sc51b" # SC-51B 取扱説明書 | |
"jp.id_credit_sp.android" # iDアプリ | |
"jp.co.mcdonalds.android" # McDonald's | |
"jp.co.disney.apps.gm.disneydx" # Disney DX | |
"com.amazon.appmanager" # Amazon apps | |
"com.amazon.mShop.android.shopping" | |
"com.amazon.kindle" | |
"com.microsoft.appmanager" # Microsoft apps | |
"com.microsoft.skydrive" | |
"com.microsoft.office.officehubrow" | |
"com.microsoft.office.outlook" | |
"com.linkedin.android" # LinkedIn | |
"com.facebook.system" # Facebook apps | |
"com.facebook.services" | |
"com.facebook.katana" | |
"com.facebook.appmanager" | |
) | |
for app in "${bloatware[@]}" ; do | |
adb shell pm uninstall ${app} | |
adb shell pm uninstall --user 0 ${app} | |
done |
Hi, jfsso! Which linux distribution is suitable? i try Debian, Ubuntu 20.04 - but errors.
@ilyaburyy26 I've used this on Ubuntu 18.04 and MacOX. Make sure you have adb
installed and only one device Android device connected to the computer.
Great script! Thank you!
i don't get it how to remove pls make a video i can't find a single video on this topic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Packages removed on an SC-51B immediately after the first boot: