Robot modification-localization of Android software without human access

Source: Internet
Author: User

According to foreign media reports, the number of software in the mobile phone software store of Google Android Market has exceeded 20 thousand, but most of these rich software is in English, which is inconvenient for friends who are not good at E. Don't be afraid of E. Let's develop our own hands-on and full-fledged spirit and turn our favorite software into Chinese.

Chinese principles

The Chinese software, which sounds highly technical, is not difficult to implement. On the Android platform,ProgramThe file suffix is ". APK". APK is the abbreviation of Android package, which means the android installation package. It is similar to the file format of WM system ". Cab" and Symbian system ". Sis. The APK file can be decompressed by decompressed software such as WinRAR. extract the ARSC file and use the Chinese tool to decompress it. translate the English resources in The ARSC file into Chinese. Modify the pictures that contain English, replace the original file, and then re-sign the APK file.

Preparations

To do well, you must first sharpen your tools. You must download and install the following tools in advance:

1. Java

2. decompression software: WinRAR

3. Localization tool: androidresedit (supported by. NET Framework 2.0 is required)

4. Image Chinese software: Photoshop

5. Signature program: auto-sign (we recommend that you use the signature function provided by androidresedit)

Practical APK Software Localization

News and weather is a weather and news software extracted from the android 2.1 system. Currently, only the English version is available. This article will take this software as an example.

A. Extract

Right-click the news and weathersoftware Installation File geniewidget.apk and choose "WinRAR" from the shortcut menu to open the APK file and decompress the resources. ARSC file.

B. Localization

1. Chinese Text

Run the androidresedit software to open the resources. ARSC file that was previously decompressed. The software will list all English terms in the original resource bar, double-click a certain term, and enter the translated content in the pop-up dialog box, after you confirm, you can complete the Chinese version of the entry (poor e-text friends can use Google online translation or dictionary software for translation ). After translating all entries into Chinese, click Save file in the File menu. In general, we only need to translate the entries starting with an uppercase letter, and a small part of them start with a lowercase letter. We need to judge these terms by ourselves. The underlined software parameters, directory names, and file names do not need to be modified. The formatting output parameters such as % S % and D % do not need to be modified. Just copy them, note that the input is a half-width lowercase character; otherwise, an error occurs.

If too many entries need to be translated, it is difficult to translate them one by one. The androidresedit software also provides the dictionary import/export function. Click on the file to export a dictionary. Click it to export all the words to a. TXT text file. Open the exported TXT text file, and enter the Chinese content after the automatic "|" vertical line. save all the exported TXT text files. Finally, select the import dictionary function in androidresedit to import the translated TXT file.

2. Image Localization

Some software may contain button pictures in English. We only need to find the corresponding picture, use Photoshop and other drawing software, and make it into a Chinese button picture. Generally, all image clips of the software are stored in the/RES/drawable directory of the APK file. The image format is PNG. In addition to Chinese images, we can also replace the icon material in this directory to beautify the software.

C. replace Chinese files and Images

After the resources. ARSC file and image are finished in Chinese, use WinRAR to open the original APK installation file again, drag the resources. ARSC file into the WinRAR work window, and replace the original file. In the same way, drag the processed image to the/RES/drawable directory and replace the original image.

D. Signature

After the APK file is finished in Chinese, you need to sign it again before it can be installed and used. Before signing, first Delete the original signature file, use WinRAR to open the APK file, remove two files except manifest. MF in the META-INF folder, and then close WinRAR software.

Open the androidresedit software, select the "signature APK file" function in the signature menu, specify the location of the APK file to be signed, click the sign Now button, and then specify the Save location of the newly signed APK file, if you are prompted that the signature is complete, you will be done. Next, you can install and test it on your mobile phone. If you find any problem that is not finished or wrong, follow these steps.

Localization effect:

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.