Package: dumpey
Dumpey is a simple Python script that helps youpull any installed APKstop and clear data of any packagedo a memory dumpcreate a series of snapshotsrun the monkey stress test and extract memory dumps before and/or
after itinstall and uninstall multiple packageslist installed packageson all attached devices, or just the ones you specify. Most commands can
be executed with a specificpackage nameor aregex.Dumpey expects Android platform tools to be part of the system path.Currently supports Python 2.7 - 3.3, inclusive.Get it withpip install dumpeyExamplesIf 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 youtubewill download the Youtube APK to current working directory. Flag-rdenotes a regex string.$ dumpey i -o /my/dirwill install every APK it finds in the/my/dirdirectory. You can
use-ror--recursiveflag to install APKs from subdirectories,
too.$ dumpey h -r youtubewill create a converted hprof file in your current working directory.
Just open it with MAT.$ dumpey u -p com.google.android.youtubewill uninstall the Youtube app from all attached devices.$ dumpey r -s 32041cce74b52267will reboot the device with serial number 32041cce74b52267.$ dumpey c -f -r googlewill force stop and clear all the data from each package that includes a
‘google’ string.$ dumpey m -p com.google.android.youtube --dump bawill create a hprof file with a memory dump from the Youtube 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.badenotesbefore andafterBut wait, there’s more!Here’s the list of all Dumpey commands:usage: dumpey.py [-h] {i,u,a,c,r,h,l,m,s} ...

Dumpey, an Android Debug Bridge utility tool.

optional arguments:
  -h, --help           show this help message and exit

dumpey commands:
  {i,u,a,c,r,h,l,m,s}  commands
    i                  install APKs from path
    u                  uninstall apps
    a                  download APKs
    c                  stop and clear package data
    r                  reboot devices
    h                  do a heap dump
    l                  list installed packages
    m                  run the monkey
    s                  make snapshoteach command accepts a-hor--helpflag which’ll tell you the
various ways to use Dumpey.Dumpey can also serve as a library, since it enables you to interact
with the ADB, with some of the plumbing taken care of.Installpip install dumpeyHave a suggestion, a fix, a complaint or feature request?Open an issue, or better yet, create a pull request!LicenseThe MIT License (MIT)Copyright (c) 2015 Tadej SlamicPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.