Skip to content

Instantly share code, notes, and snippets.

@vmx
vmx / update_systemui.sh
Last active October 14, 2016 09:02 — forked from romanbb/gist:8011102
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
#!/bin/sh
scanimage --resolution 300 --mode Gray --format=tiff --custom-gamma=yes --custom-gamma=yes --gamma-table [0]0-[165]65535,[165]65535-[255]65535 --buffer-size=128 > output.tiff