Android Anti-compilation Get resource Files-android learning Journey (69)

Source: Internet
Author: User

Sometimes you see some very good layout, will consider how others realize, recall reference, then it is necessary to decompile. Tools to use Apktool.bat and Aapt.exe and Apktool.jar (to the latest version) download the top two URLs are http:// Apktool.shoujifans.com/apktool.jar requirements is the latest version, so to the official website to download http://ibotpeaches.github.io/Apktool/if too troublesome, go to my web site download, packaged. Download link http://download.csdn.net/detail/u010321471/8989979 procedure: Put these three files under a directory, Then put the apk file in cmd mode to switch to the appropriate directory. Use the command Apktool D [-S]-f-o for example: Apktool D [-S]-f free.apk-o test instructions to obtain success, then found in the folder under a test file, click to check See all the resource files for the app. If you want to repackage the anti-compiled files into an apk, you can: Enter Apktool.bat B Test (you compiled the folder), the effect is as follows: then you can find 2 more folders under the previous test file: Build and Dist ( Stored in a packaged APK file) Common error: Apktool The following information is often present during anti-compilation

1.Input file is not found or is not readable.
2.Destination directory (C:\Users\user\a) already exists. Use-f switch if you want to overwrite it.
3.Exception in thread "main" Brut.androlib.AndrolibException:Could not decode ARS C fil .....

Solution:
1 and 2 is because the Apktool upgrade to more than 2.0, the use of the way has been replaced by: Apktool D [-S]-f-o, parameter specific meaning can be directly hit Apktool return (Windows) view Help
3 is due to the Apktool version being too low, please upgrade to the latest version

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Anti-compilation Get resource Files-android learning Journey (69)

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.