Skip to content

Instantly share code, notes, and snippets.

@danpawlik
Last active November 28, 2023 07:50
Show Gist options
  • Save danpawlik/2afdd6c8b0a6260de85f558ed1a240e3 to your computer and use it in GitHub Desktop.
Save danpawlik/2afdd6c8b0a6260de85f558ed1a240e3 to your computer and use it in GitHub Desktop.
Debloat Huawei P30 Pro apps
#!/bin/bash
sudo adb shell pm list packages -u | cut -f2 -d: | sort > ~/huawei-dump-packages
for app in $(grep -E 'com.amazon.mShop.android.shopping|com.amazon.appmanager|com.booking|com.facebook.appmanager|com.facebook.katana|com.facebook.services|com.facebook.system|com.huawei.browser|com.huawei.browserhomepage|com.huawei.hwread.dz|com.huawei.ohos.inputmethod|com.google.android.apps.docs|com.google.android.apps.docs.editors.docs|com.google.android.apps.docs.editors.sheets|com.google.android.apps.docs.editors.slides|com.huawei.gamebox|com.google.android.videos|com.google.android.music|com.huawei.health|com.huawei.meetime|com.example.android.notepad|com.huawei.maps.app|com.huawei.hwsearch|com.huawei.mycenter|com.huawei.tips$|com.google.android.apps.tachyon|com.huawei.videoeditor|com.huawei.himovie.overseas|com.huawei.phoneservice' ~/huawei-dump-packages); do sudo adb shell pm uninstall --user 0 "${app}"; sudo adb shell pm disable-user --user 0 "${app}"; done
# to install
# Google dialer
# Google keep
# Google calendar ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment