shikato/info-dumper


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

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.shikato:info-dumper:0.0.2'
	}
	dependencies {
		implementation("com.github.shikato:info-dumper:0.0.2")
	}
	<dependency>
	    <groupId>com.github.shikato</groupId>
	    <artifactId>info-dumper</artifactId>
	    <version>0.0.2</version>
	</dependency>

                            
    libraryDependencies += "com.github.shikato" % "info-dumper" % "0.0.2"
        
        

                            
    :dependencies [[com.github.shikato/info-dumper "0.0.2"]]
        
        

Readme


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