Android development cheats: how to quickly learn to copy other product UI

1. Reverse corresponding products, tools can be downloaded in my github.

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

2. Download an empty project I made, which is generated by a wizard similar to HelloWorld, with a git repository, which is convenient for git reset to the initial state and reused.

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

3. Copy all the files in the res/ directory of the reversed product directory to the ones under the hackit project

4. Go to the layout to see its layout, but some classes in the layout refer to the code, and there will be an error message.

So you can use dex2jar.sh to convert classes.dex into a jar package, and then add it to the hackit project, So perfect, as follows:

[qisen@pandora:/crackTools/dex2jar]$ unzip -j ../out/mcontact_3.3.0_201406192102_mcontact_www.apk classes.dex
Archive:  ../out/mcontact_3.3.0_201406192102_mcontact_www.apk
replace classes.dex? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating: classes.dex
[qisen@pandora:/crackTools/dex2jar]$ ./dex2jar.sh 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.
The technical article is transferred from: http://www.yinqisen.cn/blog-708.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643340&siteId=291194637