Skip to content

Instantly share code, notes, and snippets.

@ericosur
Forked from romanbb/gist:8011102
Last active August 31, 2020 03:45
Show Gist options
  • Save ericosur/8c945b2e59729d86165e28af2f3ba839 to your computer and use it in GitHub Desktop.
Save ericosur/8c945b2e59729d86165e28af2f3ba839 to your computer and use it in GitHub Desktop.
compile, push, and start SystemUI.apk
#!/bin/bash
# build systemui
. build/envsetup.sh
mmm frameworks/base/packages/SystemUI/
adb start-server
adb root
adb remount
adb disable-verify
adb shell pkill -TERM -f com.android.systemui
adb push $OUT/system/priv-app/SystemUI.apk /system/priv-app/SystemUI.apk
adb shell pkill -TERM -f com.android.systemui
adb shell chmod 0644 /system/app-priv/SystemUI.apk
sleep 2
adb shell am startservice -n com.android.systemui/.SystemUIService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment