android 反編 apk

來源:互聯網
上載者:User

1.反編資源檔

用 AXMLPrinter2.jar反編xml 檔案:

1.將apk的res檔案拿到 (將res/layout/main.xml解壓出來),同時將AXMLPrinter2.jar 放入此目錄下面

2.開啟cmd終端,一直進入到layout目錄結構下面,輸入如下命令:

java -jar AXMLPrinter2.jar layout.xml > layout.txt

3。查看layout.txt 就看出結果了。AXMLPrinter2.jar 我已經上傳,網址如下:

http://download.csdn.net/detail/hellolinshoujie/5079804

我的部落格資源下載中

2.反編apk java代碼,demo如下:

1,將class。dex檔案放入和dex2jar同目錄下,然後在在doc中進入這個目錄下
(cd E:\apk編譯\dex2jar-0.0.7.4-SNAPSHOT\dex2jar-0.0.7.4-SNAPSHOT)
改成cd E:\apk編譯\E:\apk編譯\dex2jar

2,然後執行:dex2jar classes.dex 
3,最後使用jd-gui開啟產生的jar檔案

使用到的工具 dexjar 這裡提供3個版本,針對不同的apk,需要自己去嘗試哪個dexjar 適合哪個apk,下來路徑提供:

http://download.csdn.net/detail/hellolinshoujie/5080168

d-gui 工具提供路徑:

http://download.csdn.net/detail/hellolinshoujie/5080149

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.