Skip to content

Instantly share code, notes, and snippets.

@ricklentz
Created June 8, 2017 00:10
Show Gist options
  • Select an option

  • Save ricklentz/8d13150fb8033f5de15c410e05b0e600 to your computer and use it in GitHub Desktop.

Select an option

Save ricklentz/8d13150fb8033f5de15c410e05b0e600 to your computer and use it in GitHub Desktop.
FIX trace issue analysis
install wireshark and launch a capture session with the tcp filter enabled
install ARC Welder, link to the .apk, and launch with metadata {"stderrLog": "V"}
set up the app by inspecting chrome://inspect/#apps and then opening the plugin shell plugin.shell('adbd') via the javascript console
launch adb using shell: .platform-tools/adb shell -e 0
pm list packages -f
@ricklentz
Copy link
Author

./adb shell "input keyevent KEYCODE_A && input keyevent KEYCODE_A && input keyevent KEYCODE_P && input keyevent KEYCODE_L && input keyevent KEYCODE_ENTER"

@ricklentz
Copy link
Author

function android_clear_input {
adb shell input keyevent KEYCODE_MOVE_END

for i in $(seq 50); do
    adb shell input keyevent KEYCODE_DEL
done

}

@ricklentz
Copy link
Author

adb shell "input keyevent KEYCODE_S && input keyevent KEYCODE_P && input keyevent KEYCODE_Y && input keyevent KEYCODE_ENTER"

@ricklentz
Copy link
Author

adb shell /system/bin/input keyevent 23

@ricklentz
Copy link
Author

adb shell input keyevent KEYCODE_DPAD_DOWN

@ricklentz
Copy link
Author

adb shell input keyevent KEYCODE_TAB

@ricklentz
Copy link
Author

adb shell input keyevent KEYCODE_BACK

@ricklentz
Copy link
Author

screencapture -t png sample.png

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