DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Exporting types from Android App Using ClassyShark

Exporting types from Android App Using ClassyShark

In this post, MVB Boris Farber gives a quick tutorial on how to export types from an Android mobile application, using the tool ClassyShark.

Boris Farber user avatar by
Boris Farber
·
Mar. 18, 17 · Mobile Zone · Tutorial
Like (1)
Save
Tweet
3.84K Views

Join the DZone community and get the full member experience.

Join For Free

Following my recent article, I got a few suggestions asking about adding a type analysis export to the ClassyShark output.

Types analysis is important for Android developers when dealing with deprecated APIs, duplicate dependencies, and security analysis.

The tricky part is: we need to pay attention to both app and library types. The app own types are easy, as one can see them in their IDE, however, the dependencies are more difficult to grasp. On top of that, for Android, there is no distinction between the types in the app and the ones in dependencies (like third-party libraries).

For code inside the app a few surprises might come with inner classes and synthetic methods that add to class and method count (see the multidex limit) to the ClassyShark output, so in this article, I would like to describe how to use this feature.

You can find the same minimalistic UI here and a released jar (classyshark-types-export.jar) here. Say hello to ClassyShark Types Exporter!

How do you use the exporter? It is pretty easy:

  • Double click on the jar, and then the file chooser pops up.
  • Select your APK.

  • Once the APK is selected the exporter starts to export, showing the export progress that might take 30–40 secs (checked with MacBook Pro).
  • Once the exporter finishes the work, it creates a text file in the same folder as the running jar. This text file holds a list with all types from the APK.

Happy coding!

app Android (robot)

Published at DZone with permission of Boris Farber, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Migrating Legacy Applications and Services to Low Code
  • Progressive Web Apps vs Native Apps: Differences and Similarities
  • Java’s Encapsulation - When the Getter and Setter Became Your Enemy
  • Is DataOps the Future of the Modern Data Stack?

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo