Skip to content

Instantly share code, notes, and snippets.

@Haosvit
Last active August 15, 2019 20:11
Show Gist options
  • Select an option

  • Save Haosvit/0f9cbad8baf5d74819e044b621da911e to your computer and use it in GitHub Desktop.

Select an option

Save Haosvit/0f9cbad8baf5d74819e044b621da911e to your computer and use it in GitHub Desktop.
Release apk
  1. Build release mode
  2. Archive Adhoc, create keystore
  3. Zip align:
$ <Drive>\Program Files (x86)\Android\android-sdk\build-tools\28.0.3\zipalign
-v -p 4 <apk input> <apk output dir & name>

Demo:

  1. using abd to capture/record screen:
    adb shell screenrecord /sdcard/video.mp4
    Ctrl + C to stop
  2. pull file to local:
    abd pull /sdcard/video.mp4 <destination/filename.mp4>
  3. remove unused video in /sdcard
    adb shell rm /sdcard/video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment