Android implements a simple Chinese version of the English APK application. The effect is similar to this:
The specific steps are as follows:
First, decompress the APK file using the decompression tool. The directory structure after decompression is as follows:
Then, use the smali tool to decompile and compile classes. Dex, and change "help" to "help ". Smalihttp: // response.
Decompile classes. DEX:
Ubuntu @ Ubuntu-desktop :~ /Fanxiang/hanhua $./baksmali com.braveo.langaid.apk _ FILES/classes. Dex
The out folder is generated in the current directory:
The out folder contains files ending with smali,
Here I open the langaidview. smali file. Modify:
Const-string V1, "help" is const-string V1, "help"
Then compile the out folder using the following command:
Ubuntu @ Ubuntu-desktop :~ /Fanxiang/hanhua $./smali out
Replace clesses. Dex in the extracted file with the generated out. Dex. At the same time, only manifest. mf is retained under the META-INF folder, and all other files are deleted.
Then, use the zip tool to compress the decompressed folder into a zip package and change the file suffix to APK.
Finally, sign the APK file. The procedure is as follows:
Ubuntu @ Ubuntu-desktop :~ /Fanxiang/hanhua $ keytool-genkey-alias my. keystore-keyalg RSA-validity 20000-keystore my. keystore
Enter the password and other information, and press enter as follows:
In this way, the signature file my. keystore is generated. Use the following command to sign the APK:
Ubuntu @ Ubuntu-desktop :~ /Fanxiang/hanhua/com.braveo.langaid.apk _ FILES $ jarsigner-verbose-keystore my. keystore-signedjar wendy_signed.apk com.braveo.langaid.apk_files.apk my. keystore
In the command, the final signature APK of wendy_signed.apk must be generated, and com.braveo.langaid.apk_files.apk indicates the APK to be signed. Enter the password. The signature is successful as follows:
Wendy_signed.apk can be directly installed on your mobile phone.
From: http://bigcat.easymorse.com /? P = 729