Skip to content

Instantly share code, notes, and snippets.

@romanbb
Last active April 11, 2022 01:58
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save romanbb/8011102 to your computer and use it in GitHub Desktop.
Save romanbb/8011102 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
Copy link

ghost commented Dec 17, 2013

what does "mmm" do? is that a custom script or command that makes SystemUI?

@Stevespear426
Copy link

mm and mmm are build commands like make but faster since they don't read all the make files. You can cd into any of the dir with a .mk file and mm.

@pierreem
Copy link

Perfect script to custom SystemUI or other android source app, but i have to make some modification to make it work:

-pkill not install use this line instead:
adb shell ps | grep com.android.systemui | awk '{print $2}' | xargs adb shell kill

-chmod incorrect cause loop crash of SystemUI (it has to be executable)
adb shell chmod 0755 -R /system/priv-app/SystemUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment