Git Product home page Git Product logo

android-classyshark's Introduction

ClassyShark

This is not an official Google product

Introduction

ClassyShark is a standalone tool for Android developers. It can reliably browse any Android executable and show important info such as class interfaces and members, dex counts and dependencies. The browser supports multiple formats including libraries (.dex, .aar, .so), executables (.apk, .jar, .class) and AndroidManifest (.xml).

Screen Flow Demo

Use cases

Obfuscation

Understand the contents of your APK

  • Verify that the business crucial data is properly obfuscated
  • Troubleshoot Proguard mis configs (various -keep* flags)
  • Analyze obfuscated stack traces

Dependencies

Manage your APK dependencies

  • Identify all your app dependencies, both Java and native
  • Identify test depeendencies
  • Generate stub testing classes
  • Checking hidden APIs

Multidex

Understand the contents of multidex apps

  • Browse the content of each classes.dex file
  • See the dex counts for packages, methods, classes, strings etc
  • See method count for jars (to measure the dex cost of that jar)
  • Dump dex string tables

Native Code

Troublshoot JNI problems including:

  • Identify missing native libraries
  • Browse native methods per classes.dex

Troublshoot native code problems including:

  • See native depedendencies
  • See dynamic symbols

Command line

  1. Open APK java -jar ClassyShark.jar -open <YOUR_APK.apk>
  2. Export all generated data to a text file java -jar ClassyShark.jar -dump <BINARY_FILE>
  3. Export generated file from a specific class to a text file java -jar ClassyShark.jar -dump <BINARY_FILE> <FULLY_QUALIFIED_CLASS_NAME>
  4. Open ClassyShark and display a specific class in the GUI java -jar ClassyShark.jar -open <BINARY_FILE> <FULLY_QUALIFIED_CLASS_NAME>
  5. Inspect APK java -jar ClassyShark.jar -inspect <YOUR_APK.apk>
  6. Dump all strings (combined classes.dex string tables) from your APK java -jar ClassyShark.jar -stringdump <YOUR_APK.apk>

Downloads

To run, grab the latest jar from [here] (https://github.com/google/android-classyshark/releases) and type java -jar ClassyShark.jar.

Start developing

Android

Clone this repository and import the ClassySharkAndroid folder in Android Studio.

Desktop

Clone this repository and import the ClassySharkWS folder in your favorite IDE. For releases RetroBuild, a fast jar build system is used.

Dependencies

Support

If you've found an error, please file an issue:

https://github.com/google/android-classyshark/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

License

Copyright 2015 Google, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-classyshark's People

Contributors

borisf avatar andreban avatar dturner avatar readmecritic avatar sschuberth avatar rock3r avatar

Watchers

James Cloos avatar BobJi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.