Skip to content

Instantly share code, notes, and snippets.

@frankIT
Last active July 31, 2021 09:34
Show Gist options
  • Save frankIT/9ff02a4919d1fa05ede7d5764d6b6577 to your computer and use it in GitHub Desktop.
Save frankIT/9ff02a4919d1fa05ede7d5764d6b6577 to your computer and use it in GitHub Desktop.
Uninstall vendor system packages through adb shell
#!/bin/bash
# Uninstall vendor system packages through adb shell.
# Stock ROM Samsung Galaxy J3 - J330F
apps=(
'com.samsung.android.calendar'
'com.google.android.music'
'com.google.android.videos'
'com.microsoft.office.excel'
'com.microsoft.office.word'
'com.microsoft.office.powerpoint'
'com.microsoft.skydrive' # microsoft one drive
'com.skype.raider'
'com.samsung.android.app.notes'
'com.sec.android.app.sbrowser'
'com.sec.android.app.shealth'
'com.samsung.android.scloud'
'com.samsung.android.app.reminder'
'com.samsung.android.email.provider'
'com.samsung.android.themestore' # galaxy theme store
'de.axelspringer.yana.zeropage' # upday
)
# Stock lollipop (WW_3.24.40.87) ROM - ASUS Zenfone 5 A501CG
#apps=(
# 'com.asus.email'
# 'com.asus.browser'
# 'com.asus.gallery'
# 'com.asus.calendar'
# 'com.asus.quickmemo'
# 'com.ecareme.asuswebstorage'
# 'com.asus.livedemo'
# 'com.asus.task'
# 'com.asus.easylauncher'
# 'com.asus.weathertime'
# 'com.asus.microfilm'
# 'com.asus.music'
# 'com.asus.ia.asusapp'
# 'com.asus.wifip2p.networkgrouping'
# 'com.asus.collage'
# 'com.asus.linkrim'
# 'com.asus.supernote'
# 'com.asus.sitd.whatsnext'
# 'com.asus.mirror'
# 'com.asus.backuprestore'
# 'com.asus.userfeedback'
# 'com.asus.splendid'
# 'com.asus.remotelink.full'
# 'com.asus.sharerim'
# 'com.tf.thinkdroid.asus'
# 'com.bluebeam'
# 'com.google.android.music'
# 'com.google.android.videos'
# 'com.google.android.play.games'
# 'com.google.android.apps.plus'
# 'com.google.android.apps.books'
# 'com.google.android.apps.magazines'
# 'com.bbbler.actorsforomlet'
# 'com.cleanmaster.mguard'
# 'com.gameloft.android.GloftPZOO'
# 'com.zinio.mobile.android.reader'
#)
for a in ${apps[@]}; do
if adb shell 'pm list packages -f' | grep $a > /dev/null; then
adb shell pm uninstall -k --user 0 $a;
fi
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment