Skip to content

Instantly share code, notes, and snippets.

@jfsso
Created May 21, 2021 01:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfsso/32bdd39f40ed162debff0662999a91c9 to your computer and use it in GitHub Desktop.
Save jfsso/32bdd39f40ed162debff0662999a91c9 to your computer and use it in GitHub Desktop.
Remove DoCoMo Bloatware on Galaxy S21 5G SC-51B
#!/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
@jfsso
Copy link
Author

jfsso commented May 21, 2021

Packages removed on an SC-51B immediately after the first boot:

com.nttdocomo.android.accountauthenticator
com.nttdocomo.android.anmane2
com.nttdocomo.android.anshinsecurity
com.nttdocomo.android.apnsw
com.nttdocomo.android.applicationmanager
com.nttdocomo.android.applicationmanagerrecommendshortcut
com.nttdocomo.android.applicationmanagersub
com.nttdocomo.android.cloudset
com.nttdocomo.android.cloudstorageservice
com.nttdocomo.android.databackup
com.nttdocomo.android.devicehelp
com.nttdocomo.android.dmenu2
com.nttdocomo.android.docomoset
com.nttdocomo.android.dpoint
com.nttdocomo.android.felicaremotelock
com.nttdocomo.android.homezozo
com.nttdocomo.android.idmanager
com.nttdocomo.android.initialization
com.nttdocomo.android.mascot
com.nttdocomo.android.msg
com.nttdocomo.android.mydocomo
com.nttdocomo.android.mymagazine
com.nttdocomo.android.networkservice
com.nttdocomo.android.pf.dcmippushaggregator
com.nttdocomo.android.pf.dcmwappush
com.nttdocomo.android.phonemotion
com.nttdocomo.android.photocollection
com.nttdocomo.android.remotelock
com.nttdocomo.android.schedulememo
com.nttdocomo.android.sdcardbackup
com.nttdocomo.android.store
com.nttdocomo.android.voicetranslation
com.nttdocomo.android.wipe
com.nttdocomo.dcard
com.nttdocomo.keitai.payment
jp.co.nttdocomo.anshinmode
jp.co.nttdocomo.bridgelauncher
jp.co.nttdocomo.carriermail
jp.co.nttdocomo.lcsapp
jp.co.nttdocomo.saigaiban

@ilyaburyy26
Copy link

ilyaburyy26 commented Oct 28, 2022

Hi, jfsso! Which linux distribution is suitable? i try Debian, Ubuntu 20.04 - but errors.

@jfsso
Copy link
Author

jfsso commented Nov 7, 2022

@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.

@artembolotov
Copy link

Great script! Thank you!

@kausht
Copy link

kausht commented Apr 6, 2024

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