This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |