shikato / info-dumper

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Download

info-dumper

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

screen gif

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

About

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

License:MIT License


Languages

Language:Java 100.0%