apk反編譯,apk反編譯教程

來源:互聯網
上載者:User

apk反編譯,apk反編譯教程
工具

反編譯需要的工具


上面都是命令列反編譯,還有androidfly是圖形介面,但是我所下載的反編譯後的jar包無法查看,應該是因為不是最新的。


反編譯出資源檔

使用apktool,辦要反編譯的apk複製到apktool檔案加下:


啟動cmd,進入apktool目錄下,然後運行如下命令(路徑各有不同):

C:\Users\ASUS>f:
F:\>cd \workDocument\uncomfile_tools\apktool

F:\workDocument\uncomfile_tools\apktool>apktool.bat d -f android_libs.apk android_libs
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ASUS\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...‘

運行結果如下,在目錄下多來一個檔案夾,裡面就是要的資源檔


反編譯命令格式

apktool.bat   d  -f    [apk檔案 ]   [輸出檔案夾]

重新打包成apk命令格式
apktool.bat   b    輸出檔案夾


反編譯出java代碼

將要反編譯的apk重新命名為rar或者zip為檔案結尾,然後解壓,如下:


將檔案夾下的classes.dex複製到dex2jar-0.0.9.15中去,然後運行如下命令:

F:\workDocument\uncomfile_tools>cd dex2jar-0.0.9.15
F:\workDocument\uncomfile_tools\dex2jar-0.0.9.15>dex2jar.bat  classes.dex
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.15
dex2jar classes.dex -> classes_dex2jar.jar
Done.

結果產生classes_dex2jar.jar檔案


classes_dex2jar.jar檔案就是我們要的,使用jd-gui.exe開啟它



恐怖吧!


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.