Skip to content

Instantly share code, notes, and snippets.

@PL125
Created August 31, 2024 14:48
Show Gist options
  • Select an option

  • Save PL125/bd4acd6c2756e3d3d777be324611395c to your computer and use it in GitHub Desktop.

Select an option

Save PL125/bd4acd6c2756e3d3d777be324611395c to your computer and use it in GitHub Desktop.
Huawei Debloat Script
#!/bin/bash
function debloat() {
local bloatware=(
"com.huawei.tips"
"com.huawei.hwid"
"com.huawei.gamebox"
"com.huawei.browser"
"com.huawei.scanner"
"com.huawei.hwsearch"
"com.huawei.maps.app"
"com.huawei.mycenter"
"com.huawei.appmarket"
"com.huawei.welinknow"
"com.huawei.hwread.dz"
"com.huawei.android.tips"
"com.huawei.android.hwouc"
"com.huawei.gameassistant"
"com.huawei.ohos.inputmethod"
"com.gameloft.android.GloftANPH" # Asphalt Nitro game
"com.gameloft.android.GloftDMKF" # Disney Magic Kingdom game
"com.gameloft.android.GloftSCCA" # Top Games
"com.gameloft.android.GloftSMIF" # Spider Man Ultimate Power game
"com.tripadvisor.tripadvisor"
"com.hp.android.printservice"
"com.android.email"
"com.twitter.android"
"com.instagram.android"
"com.facebook.katana"
"com.facebook.system"
"com.facebook.appmanager"
)
for app in "${bloatware[@]}"; do
#printf '%b' "App: ${app}\n"
adb shell pm uninstall --user 0 ${app}
#adb shell pm uninstall ${app}
sleep 0.2
done
}
debloat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment