HowTo Decompile / Reverse Engineer Android APK [app]

Reverse engineering is everywhere. Reverse engineering made it possible for GeoHot to hack the iPhone, PS3. Reverse engineering is what make hackers develop exploits, viruses and trojans for systems. So what about decompiling existing apps.

Decompiling binaries for Java and other languages has been around for a long while. There are large number of tools that let you decompile app binaries back to the source code which in most cases is readable and understandable with some effort.

XdaDeveloper Brut.all has been working on a decompiler for Android apps for a while now. He had find the first workaround for enabling Google Maps Navigation outside US by actually decompiling Google maps for android. The tools is called APKTool and is obviously open source.

Method 2: Alternatively, you can use a tool called dex2jar ,which is made by a chinese student. It will translate dex to jar file. For the next step, you can use jd-gui, the source code is quite readable as dex2jar makes some optimizations.

Method 3: Another Option is to use Smali (http://code.google.com/p/smali/). It provides BAKSMALI which is a most excellent reverse-engineering tool for DEX files. The tool is made by JesusFreke, he’s famous for making popular ROMs for Android.

Method 4: Android comes with a dissambler called dexdump. The location of this tool is not intuitive, it runs on the Linux platform that hosts Android. Details here.

Update: Method 5: UI based tool to Decompile Android APK to Java
Lets talk about APKTool in detail since its more popular:

It is a tool for reengineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.

It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.

Features:

  • decoding resources to nearly original form (including resources.arsc, XMLs and 9.png files) and rebuilding them
  • smali debugging: SmaliDebugging
  • helping with some repetitive tasks

Pre-requisites:

  • JRE 1.5+
  • aapt command in PATH environment variable
  • Basics of Android SDK

How to Install APKTool

Windows:

  1. Download apktool-install-windows-* file
  2. Download apktool-* file
  3. Unpack both to your Windows directory

Linux:

  1. Download apktool-install-linux-* file
  2. Download apktool-* file
  3. Unpack both to /usr/local/bin directory (you must have root permissions)

Mac OS X:

  1. Download apktool-install-macos-* file
  2. Download apktool-* file
  3. Unpack both to /usr/local/bin directory (you must have root permissions)

Installation of framework files

Usage:

  • Open terminal/command line and type “apktool <enter>“. Then you should see usage help.

Video Tutorials:





转:http://geeknizer.com/decompile-reverse-engineer-android-apk/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
答: 三百字时间有限,我尽我所能回答你的问题。中文是世界上最古老的文字之一,它源于中国,是汉字的表达方式。中文包含了很多音节和意义丰富的词汇,它独特的书写系统使它成为了一种独特而美丽的语言。中文也是世界上使用者最多的语言之一,在中国以及东亚地区有很多人使用中文作为母语。 学习中文可以给你很多好处。首先,学习中文可以帮助你更好地了解中国的文化和历史。中国是世界上最古老和最有影响力的文化之一,学习中文可以帮助你更好地理解中国的传统艺术,哲学和道德观念。其次,学习中文可以帮助你在商业领域有更多机会。中国是世界上最大的经济体之一,学习中文可以帮助你更好地与中国人交流和合作。此外,学习中文还可以提升你的思维能力,因为学习中文需要记忆和理解大量的汉字和词汇。 虽然学习中文有一些困难,但是通过持续的学习和练习,你可以慢慢掌握它。你可以参加中文课程,找一个好的老师来指导你学习,或者参加语言交流活动来提高你的口语能力。在学习过程中要有耐心和毅力,每天都坚持练习才能取得进步。最重要的是要保持兴趣和热情,因为只有你对学习中文有兴趣,才能持续地进行下去。 总之,学习中文是一项具有挑战性但又充满乐趣的任务。它可以帮助你更好地了解中国文化,增加你的商业机会,并提升你的思维能力。无论你学习中文的目的是什么,都要坚持下去,相信自己一定能够成功。希望我的回答对你有帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值