Skip to content

Instantly share code, notes, and snippets.

@joninvski
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joninvski/9345566 to your computer and use it in GitHub Desktop.
Save joninvski/9345566 to your computer and use it in GitHub Desktop.
# Write on
mount -o remount,rw -t ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system
# Take a screenshot
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
# verbose logging in sqlite
adb shell setprop log.tag.SQLiteLog V
adb shell setprop log.tag.SQLiteStatements V
adb shell stop
adb shell start
# Check dependencies of app subproject
$ ./gradlew app:dependencies --configuration "compile"
# Check the properties of the app subproject
$ ./gradlew app:properties
# Indent code with astyle
astyle --style=java --recursive \*.java
#
expect -c '
set timeout -1 ;
spawn android update sdk -u;
expect {
"Do you accept the license" { exp_send "y\r" ; exp_continue }
eof
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment