Categories: Android

How to decompile an APK

Apk decompiler. It’s comparatively simple to decompile an APK and read its contents. this article will assist you to perceive how a hacker will approach your APK.

There are a selection of the way to do that, however I favor to make use of the adb command (Android debug bridge) device that comes with the Android Developer Package as a part of the Android SDK. The adb command permits you to pull a duplicate of the APK off the phone onto your PC for additional evaluation.

An APK file is nothing, however, a ZIP file and renaming the APK file as a ZIP file will allow you to open it with any ZIP file explorer. These can be found underneath the /data/app directory. You’ll be able to pull it onto your machine utilizing the adb pull command. In there, you can see the manifest file, resources, assets, and others.

Next, using the dexdump utility provided in Android, the classes under the /data/dalvik-cache directory can be dumped.

For example, to dump data@app@com.example.example1-1.apk@classes.dex into a file called dump, the command to be used is:

dexdump –d –f –h data@app@com.example.example1-1.apk@classes .dex > dump                                

This dump will be in the form of the jump statements and is hard to read. A DEX de-compiler such as baksmali or dedexer can be used to make these files much more readable.

Deven Rathore @http://twitter.com/devenrathore2

Entrepreneur, blogger and, Programmer, Constantly learning and experiencing new things.

Share
Published by

Recent Posts

11 Best R Programming IDE and editors

R is a programming language meant for statistical computing and data science. R programming is a software supported by R…

2 days ago

5 best CMS Built using NodeJs

Node.JS is a runtime environment based on JavaScript, allowing the developers to run JS on the server-side. Even though it…

1 week ago

11 Best Python Compilers & Interpreters

Python is a beginner's programming language. It is a high-level language that is very versatile, interpreted and object-oriented language. It is very easy…

2 weeks ago

Django vs Node.JS: Choosing the best

Node.JS and Django are two powerful tools used to build web applications. Django is an open-source Python-based web framework, based…

4 weeks ago

11 Best JavaScript File Downloader Libraries

Introduction These are JavaScript libraries designed to customize file download options on your browsers. They give developers a chance to…

4 weeks ago

15 Best PHP Templates engine

A PHP template engine is a concise syntax used by front-end developers to display data prepared by back-end developers. A…

1 month ago