android開發秘籍:如何快速學習複製其他產品UI

來源:互聯網
上載者:User

標籤:

1、逆向對應的產品,工具可以在我的github中下載。

git clone https://github.com/zencodex/hack-android.git

2、下載我做好的一個空的工程,就是類似HelloWorld的利用嚮導產生的,帶git倉儲,方便git reset 初始狀態,反覆利用。

git clone https://github.com/zencodex/hackit.git

3、將逆向出來的產品目錄的res/ 目錄下的所有檔案,複製覆蓋到hackit工程下的

4、去layout可以看它的布局了,但有些布局裡的class引用了代碼中的,會有錯誤提示。

所以可以利用dex2jar.sh 把classes.dex轉換成jar包,然後添加到hackit工程,So perfect,如下:

[[email protected]:/crackTools/dex2jar]$ unzip -j ../out/mcontact_3.3.0_201406192102_mcontact_www.apk classes.dexArchive:  ../out/mcontact_3.3.0_201406192102_mcontact_www.apkreplace classes.dex? [y]es, [n]o, [A]ll, [N]one, [r]ename: y  inflating: classes.dex[[email protected]:/crackTools/dex2jar]$ ./dex2jar.sh classes.dexthis cmd is deprecated, use the d2j-dex2jar if possibledex2jar version: translator-0.0.9.15dex2jar classes.dex -> classes_dex2jar.jarDone.

著作權屬於: 扣丁禪師

原文地址: http://www.yinqisen.cn/blog-708.html

android開發秘籍:如何快速學習複製其他產品UI

聯繫我們

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