Skip to content

Instantly share code, notes, and snippets.

@vmx
Forked from romanbb/gist:8011102
Last active October 14, 2016 09:02
Show Gist options
  • Save vmx/6545554da37b8d68730728297daa3438 to your computer and use it in GitHub Desktop.
Save vmx/6545554da37b8d68730728297daa3438 to your computer and use it in GitHub Desktop.
compile, push, and start SystemUI.apk
#!/bin/bash
# Works for me on Android 7.0 (Nougat)
# You might need to edit `frameworks/base/packages/SystemUI/Android.mk` and add
# `LOCAL_JACK_FLAGS := --multi-dex native` to the `SYSTEM_UI_INCREMENTAL_BUILDS`
# case
. build/envsetup.sh
SYSTEM_UI_INCREMENTAL_BUILDS=true make -j 4
adb start-server
adb shell pkill -TERM -f com.android.systemui
adb remount
adb push $OUT/system/priv-app/SystemUI/SystemUI.apk /system/priv-app/SystemUI/SystemUI.apk
adb shell pkill -TERM -f com.android.systemui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment