Skip to content

Instantly share code, notes, and snippets.

@murano500k
Created June 14, 2017 09:11
Show Gist options
  • Save murano500k/c90001df6e056e266a429848a0bd87c4 to your computer and use it in GitHub Desktop.
Save murano500k/c90001df6e056e266a429848a0bd87c4 to your computer and use it in GitHub Desktop.
adb shell dumpsys window windows | grep 'mCurrentFocus'
adb shell am start -n com.example.demo/com.example.test.MainActivity
am start -n "com.example.app.dev/com.example.app.phonebook.PhoneBookActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
adb shell am start -n net.kishonti.gfxbench.gl.v50000.corporate/net.kishonti.benchui.initialization.InitActivity
net.kishonti.app.MainActivity
/storage/emulated/0/Android/data/net.kishonti.gfxbench.gl.v50000.corporate/files/data/top-results.sqlite
adb install sgfxbench_gl-5.0.0-RC5+corporate.armeabi-v7a.x86_64.arm64-v8a.x86.apk
.adb shell am start -n net.kishonti.gfxbench.gl.v50000.corporate/net.kishonti.app.MainActivity
#% before, # after
TEMP=`adb shell dumpsys display |grep mDisplayHeight`
H="${TEMP#*=}"
TEMP=`adb shell dumpsys display |grep mDisplayWidth`
W="${TEMP#*=}"
adb shell input tap $W $H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment