Android調試橋實用工具:Dumpey

cymt 9年前發布 | 10K 次閱讀 Dumpey Android開發 移動開發

Dumpey是一個簡單的 Python 腳本能夠幫助你:

  • pull any installed APK
  • stop and clear data of any package
  • do a memory dump
  • create a series of snapshots
  • run the monkey stress test and extract memory dumps before and/or after it
  • install and uninstall multiple packages
  • list installed packages

on all attached devices, or just the ones you specify. Most commands can be executed with a specific package name or a regex.

Dumpey expects Android platform tools to be part of the system path. Currently supports Python 2.7 - 3.3, inclusive.

Get it with

pip install dumpey

Examples

If a command is executed with a regex and multiple packages are found, Dumpey will warn you, but won't do anything unless you explicitly specify the-for--forceflag. To cherry pick devices, specify serials with a-sor--serialsflag.

$ dumpey a -r 油Tube

will download the 油Tube APK to current working directory. Flag-rdenotes a regex string.

$ dumpey i -o /my/dir

will install every APK it finds in the/my/dirdirectory. You can use-ror--recursiveflag to install APKs from subdirectories, too.

$ dumpey h -r 油Tube

will create a converted hprof file in your current working directory. Just open it with MAT.

$ dumpey u -p com.google.android.油Tube

will uninstall the 油Tube app from all attached devices.

$ dumpey r -s 32041cce74b52267

will reboot the device with serial number 32041cce74b52267.

$ dumpey c -f -r google

will force stop and clear all the data from each package that includes a 'google' string.

$ dumpey m -p com.google.android.油Tube --dump ba

will create a hprof file with a memory dump from the 油Tube app. It'll then do a monkey stress test. After monkey is done, another hprof file with a memory dump after the monkey is created. All you have to do is open them in MAT and compare.badenotes before and after


項目主頁:
http://www.baiduhome.net/lib/view/home/1430624551169

 本文由用戶 cymt 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!