Android - How to use the Android Asset Packaging Tool?

I want to use aapt.exe to stop the compression of my database.db file when compiling my Android application. I run the terminal (Mac OS) and print:

 aapt -0 db 

It gives an error:

 ERROR: Unknown command '-0' Android Asset Packaging Tool 

I am using android sdk v20.0.1. I made a mistake?

+4
source share
2 answers

AFAIK:

  • This tool allows you to view, create and update Zip-compatible archives (zip, jar, apk). It can also compile resources into binary assets.

  • aapt, that the Android Asset Packaging Tool in the directory / directory of the SDK tool, which you can view, create, update a document in ZIP attachment format (zip, jar, apk). resource files can also be compiled into a binary file.

  • Although you probably won't often use aapt directly, create scripts and IDE Plugins can use this tool to package the apk file, which is an Android application.

  • Even if you can’t use the aapt tool directly, but the build scripts and IDE plug-in will use this apk file, packed into the tool, Android applications.

FYI:

  • Linux or Mac OS X:

    • open a terminal, go to the tools / directory
    • run the command. / Aapt
  • for windows:

    • open a command prompt and go to the tools / directory
    • run aapt.exe command

aapt Commands:

  • click here for aapt commands
+6
source

aapt is a generic Android toolkit that can be used as:

"aapt list" - A list of the contents of a ZIP, JAR or APK file.
"aapt dump" - Reset certain information from the APK file.
"aapt package" - . Downloading Android resources.
"aapt remove" - Delete files from a ZIP, JAR or APK file.
"aapt add" - Adding files to a ZIP, JAR or APK file.
"aapt crunch" - Crunch PNG files.

+4
source

All Articles