Android obtains apk details (including package name, version number, SDK, etc.) via the AAPT command _android

Source: Internet
Author: User

Company Yun-Dimensional asked me how to install the simulator on Windows, I you say you install simulator what? He said, "I install the simulator to view the app's package name for this information to do statistics."

I immediately thought, it is necessary to toss it?

And I loaded him with the Android SDK to get all the APK information by executing the command build-tools the Aapt.exe file below.

AAPT command

AAPT L[ist] [-v] [-a] file. {zip,jar,apk} List contents of zip-compatible archive.

AAPT D[ump] [--values] [--include-meta-data] WHAT file. {APK} [Asset [Asset ...]]

* AAPT D strings *.apk---> Print the Content Resource table string pool apk file.
* AAPT d badging *.apk---> Printed labels and icons apply APK declaration.
* AAPT D permissions *.apk---> Permissions to print from APK files
* AAPT D resources *.apk---> Print resource tables from APK files.
* AAPT D configurations *.apk---> apk file Print configuration.
* AAPT d xmltree *.apk res/***.xml---> Print xml information in a tree structure.
* AAPT d xmlstrings *.apk res/***.xml---> Print all the string information in the XML file.

AAPT P[ackage] [-d][-f][-m][-u][-v][-x][-z][-m Androidmanifest.xml]

Pack Android resources. It will read the assets and resources provided-m-a-s or raw-files-dir parameters. -J-p-F and-R controls the output options for the file.

AAPT R[emove] [-v] file. {zip,jar,apk} file1 [File2 ...]

Deletes the specified file from the zip-compatible file.

AAPT A[DD] [-v] file. {zip,jar,apk} file1 [File2 ...]

The specified file is added to the zip-compatible archive.

AAPT C[runch] [-v]-s resource-sources ...-c output-folder ...

PNG preprocessing pairs one or more resource folders and stores the results in an output folder.

AAPT S[inglecrunch] [-v]-I input-file-o outputfile

Do PNG preprocessing on a single file.

AAPT V[ersion]

Print the program version.

The above is a small set to introduce Android through the AAPT command to obtain APK details (including: Package name, version number, SDK and other information), I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.