Simple Chinese Implementation of Android APK with smali

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.