Skip to content

Instantly share code, notes, and snippets.

@drakulaboy
Forked from romanbb/gist:8011102
Created December 21, 2021 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drakulaboy/295eb18f934e028b9f55fff38c82321d to your computer and use it in GitHub Desktop.
Save drakulaboy/295eb18f934e028b9f55fff38c82321d to your computer and use it in GitHub Desktop.
compile, push, and start SystemUI.apk
#!/bin/bash
. build/envsetup.sh
mmm frameworks/base/packages/SystemUI/
adb start-server
adb shell pkill -TERM -f com.android.systemui
adb remount
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