info-dumper

Additional

Language
Java
Version
0.0.4 (Mar 19, 2016)
Created
May 27, 2015
Updated
Sep 15, 2016
Owner
shikato
Contributor
shikato
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

info-dumper

Info-dumper is Stetho dumpapp plugin to show your android application's information.

Download

build.gradle

dependencies {
    compile 'org.shikato.infodumper:info-dumper:0.0.4'
}

https://bintray.com/shikato/maven/info-dumper/view

Setup

Stetho dumpapp setup is necessary at first.

Your Application Class

  @Override
  public void onCreate() {
    super.onCreate();
    
    Stetho.initialize(
        Stetho.newInitializerBuilder(context)
            .enableDumpapp(new MyDumperPluginsProvider(context))
            .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(context))
            .build());
  }

  private static class MyDumperPluginsProvider implements DumperPluginsProvider {
    private final Context mContext;

    public MyDumperPluginsProvider(Context context) {
      mContext = context;
    }

    @Override
    public Iterable<DumperPlugin> get() {
      List<DumperPlugin> plugins = new ArrayList<>();
      for (DumperPlugin defaultPlugin : Stetho.defaultDumperPluginsProvider(mContext).get()) {
        plugins.add(defaultPlugin);
      }
      // Add InfoDumperPlugin
      plugins.add(new InfoDumperPlugin(mContext));
      return plugins;
    }
  }

Usage

Example

dumpapp info dpi
dumpapp info buildconf

Commands

Command Action
buildconf BuildConfig fields
id AndroidID, UUID, Advertising ID
dpi dpi info
memory Memory info
network Network info
permission Required permissions
lastupdate Lastupdate time
error Error state info
tel TelephonyManager info
appinfo android.content.pm.ApplicationInfo fields
osbuild android.os.Build fields
all all

Other documents

Qiita

License

MIT