美文网首页
Android 反编译 Apk 的问题

Android 反编译 Apk 的问题

作者: 喜欢书的女孩 | 来源:发表于2018-02-08 14:03 被阅读291次

1》Installation for Apktool
我的是 Mac系统,其他系统的可参考官网Install Instructions.

  • Mac OS X:
    1. Download Mac wrapper script (Right click, Save Link As apktool)
    2. Download apktool-2 (find newest here)
    3. Rename downloaded jar to apktool.jar
    4. Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)
    5. Make sure both files are executable (chmod +x)
    6. Try running apktool via cli

2》遇到的问题一

$ chmod +x
Password:
usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...

解决方法:

$ chmod +x /Users/apktool.jar 
$ chmod +x /Users/apktool.txt 

3》遇到问题二

-bash: /Users/apktool.txt: Permission denied
-bash: /Users/apktool: No such file or directory

原因:目录错了/Users/local/bin/和/usr/local/bin/是不一样的。

解决方法:
Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)

$ cd  /usr/local/bin/
$ mv apktool.txt apktool
$ chmod +x apktool.jar
$ chmod +x apktool
$ apktool -v

4》反编译 facebook apk

$ cd /Users/emily/Documents/MyTool    //apk 文件目录
MyTool emily$ apktool d facebook-156-0-0-36-100.apk 

在相同目录下看到 facebook 文件夹,里面有源码文件。

5》完整正确流程

  • Mac OS X:
  1. Download Mac wrapper script (Right click, Save Link As apktool), 命名为 apktool,存储格式为所有文件(系统默认是txt)
  1. Download apktool-2 (find newest here)

  2. Rename downloaded jar to apktool.jar

  3. Move both files (apktool.jar & apktool) to /usr/local/bin (root needed)

  4. Make sure both files are executable (chmod +x)
    打开 Terminal

$ cd /usr/local/bin/
$ mv apktool.txt apktool  // 把apktool.txt 改名为apktool
$ chmod +x apktool.jar
$ chmod +x apktool
$ apktool -v  //到这一步就是安装好了
$ cd /Users/emily/Documents/MyTool   //需要反编译的 apk 所在目录
$ apktool d facebook-156-0-0-36-100.apk 
  1. 反编译结果
I: Using Apktool 2.3.1 on facebook-156-0-0-36-100.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (/Users/emily/Library/apktool/framework), using /var/folders/px/72q9wmwx10jbv32_2pbhc3740000gn/T/ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: /var/folders/px/72q9wmwx10jbv32_2pbhc3740000gn/T/1.apk
I: Regular manifest package...
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: b9b.g.png
S: Could not decode file, replacing by FALSE value: bcc.9.png
S: Could not decode file, replacing by FALSE value: b59.png
S: Could not decode file, replacing by FALSE value: cz4.png
S: Could not decode file, replacing by FALSE value: bt5.g.png
S: Could not decode file, replacing by FALSE value: gjq.g.png
S: Could not decode file, replacing by FALSE value: be1.g.png
S: Could not decode file, replacing by FALSE value: dqa.g.png
S: Could not decode file, replacing by FALSE value: bvw.g.png
S: Could not decode file, replacing by FALSE value: hd9.png
S: Could not decode file, replacing by FALSE value: cjb.png
S: Could not decode file, replacing by FALSE value: ds3.
S: Could not decode file, replacing by FALSE value: hng.
S: Could not decode file, replacing by FALSE value: cy3.g.png
S: Could not decode file, replacing by FALSE value: gxy.png
S: Could not decode file, replacing by FALSE value: bjp.png
S: Could not decode file, replacing by FALSE value: pf.9.png
···

相关文章

  • 反编译Android APK及防止APK程序被反编译

    反编译Android APK及防止APK程序被反编译 怎么逆向工程对Android Apk 进行反编译 googl...

  • 反编译

    Android APK反编译easy 详解

  • 2018-08-24学习笔记

    手把手教你使用Android studio生成正式签名的APK文件 9.5.3 Android Apk 反编译 &...

  • Android逆向工程

    一 : 反编译 获取到需要的apk 包,利用反编译工具进行反编译. 反编译工具:Android Killer 首先...

  • Android APK 反编译与安全

    APK 反编译 一、APK反编译基本原理 1.APK分析 assets文件夹:原始资源文件夹,对应着Android...

  • smali 语言

    smali是android apk反编译后得到的文件,android反编译后可以得到jar或者得到smali文件A...

  • Android逆向助手反编译失败问题

    问题 在使用Android逆向助手反编译Apk时,日志显示反编译已经完成,但是打开反编译出来的文件夹发现文件夹为空...

  • Mac上使用ApkTool进行反编译

    Android 反编译 资源文件获取: -> 打开AndroidCrackTool软件对指定apk文件进行反编译 ...

  • Apktool 使用教程

    Apktool 是一个反编译Android Apk的第三方工具。它可以反编译资源,并在进行修改之后重新打包Apk。...

  • APK反编译(Mac平台)

    APK反编译(Mac平台) Android反编译使用到的工具有: apktool -- 反编译出资源文件 dex2...

网友评论

      本文标题:Android 反编译 Apk 的问题

      本文链接:https://www.haomeiwen.com/subject/vrtttftx.html