summaryrefslogtreecommitdiffstats
path: root/tools/aapt
Commit message (Collapse)AuthorAgeFilesLines
* Only generate private symbols that are needed.Dianne Hackborn2012-02-075-10/+176
| | | | Change-Id: Icc4c86638db8429a387bf87c934cc712f807e213
* Make aapt ignore tools-related data.Xavier Ducrohet2012-02-021-31/+46
| | | | | | | | | | | This patchset introduces a new standard namespace http://schemas.android.com/tools which will be used for tools specific XML attributes. Any attributes using this namespace will not be compiled into the binary XML file. The namespace node is also not written at all, and its string is not collected to ensure that there is no impact on the devices. Change-Id: I3e75d44cda54e1fa7b5cdc56b3eb27db80fe7761
* aapt now sorts the strings in the resource string pool.Dianne Hackborn2012-01-318-83/+423
| | | | | | | | | | | In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
* Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.Dianne Hackborn2012-01-251-3/+8
| | | | Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Merge "Minor tweak to console output."Dan Morrill2012-01-061-0/+169
|\
| * Minor tweak to console output.Dan Morrill2012-01-061-0/+169
| | | | | | | | Change-Id: I494910eda1d02f6bcff945b9a13c83767f2248b6
* | Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-062-3/+3
|/ | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-032-57/+57
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* Add a new ui mode for "appliance"Joe Onorato2011-12-151-0/+5
| | | | | | | | The idea is that this is a device which is more-or-less headless. It might have some limited interaction capabilities, but it's not something that you want to rely on having. Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
* Add aapt support for implicitly-granted permissionsKenny Root2011-12-081-0/+19
| | | | | | Bug: 2363582 Bug: 2877343 Change-Id: Iff7b496fb845e45fe1be2317089a96f7d63ed223
* AAPT fix printf %zd crash on Windows.Raphael2011-10-272-5/+21
| | | | | | | | | There's no printf %zd on Mingw/Cygwin so the verbose printf crashes aapt. SDK bugs: 20395, 20986 Change-Id: I5b8ac36749263205a19f1448b1aaca90d5a2e06d
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-262-18/+18
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* add -ldl to host executablesIliyan Malchev2011-10-201-1/+1
| | | | | | | | This fixes the build on Linux when RefBase is compiled with reference tracking enabled. Change-Id: I3e931e0b463ce836f6fdb30c37068d77144631a3 Signed-off-by: Iliyan Malchev <malchev@google.com>
* Whoops, remove left-over debug output.Dianne Hackborn2011-10-161-1/+1
| | | | Change-Id: Ib30571b22a6750629f975319a403d38de5e9462c
* New aapt feature to do smarter filtering of configurations.Dianne Hackborn2011-10-1613-286/+615
| | | | | | | | | | | | | | | | | | | This adds a --preferred-configurations flag that specifies the specific configurations you would like to have. It is smarter than "-c" because it will avoid stripping a configuration if that would result in there being no value for the resource. It is dumber than "-c" because it can't process as many kinds of resources. It is really only intended for bitmaps and use with density configs. This required re-arranging AaptAssets to group files together by config again, like they used to be. I think this hasn't broken anything. Hopefully. Change-Id: I4e9d12ff6e6dbd1abb8fd4cb1814c6674b19d0e5
* Add package-verifier to aapt dump badgingKenny Root2011-09-291-0/+10
| | | | | | Print out the package-verifier information when printing out badging. Change-Id: I9c79c163261d5d4f1094bda76d90b3ff6e1ce540
* Don't lose product variant strings that also vary between locales.Eric Fischer2011-09-272-1/+37
| | | | | | | | | | | | | | Localized strings with product variants were not being included in the APK, apparently because the check to ensure that a different variation of the string had not already been included in the APK was matching the version of it from the default, untranslated configuration. Now check to make sure that the string not only exists but also exists in the correct configuration. Bug 5372711 Change-Id: I52975570b75e0f11827dc6bcf1cb4a987d0541aa
* am d98e1be2: am f4750724: am 9d829f98: am 21e6e2de: Merge "Change generated ↵Xavier Ducrohet2011-08-183-9/+33
|\ | | | | | | | | | | | | dependency file names" * commit 'd98e1be20e1cca5c36c7e0344500d4a5574568aa': Change generated dependency file names
| * am f4750724: am 9d829f98: am 21e6e2de: Merge "Change generated dependency ↵Xavier Ducrohet2011-08-183-9/+33
| |\ | | | | | | | | | | | | | | | | | | file names" * commit 'f4750724cf8db972a052cb388dc9a39fc7aa6dd6': Change generated dependency file names
| | * Change generated dependency file namesJosiah Gaskin2011-08-163-9/+33
| | | | | | | | | | | | | | | | | | | | | This changes the name of the generated dependency files to R.java.d and <ApkName>.ap_.d respectively. Change-Id: I17e18770fc0d0a5d31c7b37b40ac1949f45ef13a
* | | am 6abf2f50: am 0b45ca88: am cd01ad7c: am 20339b24: Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
|\ \ \ | |/ / | | | | | | | | | * commit '6abf2f501e60132a5369ad5b15b388912c8e9e5b': Remove Debug Code
| * | am 0b45ca88: am cd01ad7c: am 20339b24: Merge "Remove Debug Code"Xavier Ducrohet2011-07-271-15/+0
| |\ \ | | |/ | | | | | | | | | * commit '0b45ca8884acfd2e9ccdcb3fbe641a46b116bda0': Remove Debug Code
| | * Remove Debug CodeJosiah Gaskin2011-07-271-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | This change removes debugging code from FileFinder. This code was considered harmful because it uses the std::cout from <iostream>. Change-Id: Iad9b5e8a631883bd4854abdb29bc6df8a5b4a056
* | | Change ZipFile flags anonymous enumKenny Root2011-07-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The arguments that ZipFile takes were apparently meant to be a typed enum, but the name of the type was taken out because it creates invalid conversion warnings in C++ since this is an invalid use of enum. Just change the typedef enum to an anonymous enum so we get rid of the compiler warnings. It will be implicitly converted to int instead. Change-Id: Ie72c4c235c8f9ee8fd1b795e1010b77c55e983de
* | | am b3ab070e: am 3a2d1c23: am ddb8e3b2: am 9bac0a9f: Merge "Fix to compile ↵Xavier Ducrohet2011-07-202-4/+27
|\ \ \ | |/ / | | | | | | | | | | | | | | | for windows" * commit 'b3ab070edb17f00a4b2d0f511ca539c885b28b6f': Fix to compile for windows
| * | am 3a2d1c23: am ddb8e3b2: am 9bac0a9f: Merge "Fix to compile for windows"Xavier Ducrohet2011-07-202-4/+27
| |\ \ | | |/ | | | | | | | | | * commit '3a2d1c2351c0b4eeb4dc4d91d1c334b9f8ba00ed': Fix to compile for windows
| | * Fix to compile for windowsJosiah Gaskin2011-07-202-4/+27
| | | | | | | | | | | | | | | | | | | | | This change includes a workaround for dirent.h on windows not including d_type. Change-Id: Ieaa3f298d2e6b32f2d8367384a1d02a2f5d06cca
* | | am 84be06e4: resolved conflicts for merge of ea9e6d24 to honeycomb-plus-aospXavier Ducrohet2011-07-2020-13/+1206
|\ \ \ | |/ / | | | | | | | | | * commit '84be06e4ce0778fbf0c1ac72f94795ef8433439b': Added Caching for PreProcessed PNGs
| * | resolved conflicts for merge of ea9e6d24 to honeycomb-plus-aospXavier Ducrohet2011-07-2020-13/+1206
| |\ \ | | |/ | | | | | | Change-Id: I8e047147a4d2c899b6654c03a5f32b04d929e602
| | * Added Caching for PreProcessed PNGsJosiah Gaskin2011-07-2020-13/+1206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a cache management system for pre-processed PNG files along with unit tests. The cache system will be used if the --no-crunch flag is passed to AAPT during the package phase. The cache can be updated by a call to 'aapt crunch' (see usage statement). Also put in benchmarking code. Change-Id: I58271fb2ee2f5f9075fd74d4ff6f15e7afabd05c
* | | am a125c937: resolved conflicts for merge of 2c311be7 to honeycomb-plus-aospXavier Ducrohet2011-07-208-26/+62
|\ \ \ | |/ / | | | | | | | | | * commit 'a125c937de06b1cc43368743592f47513eb88b76': Add generation of dependency file for .ap_ package
| * | resolved conflicts for merge of 2c311be7 to honeycomb-plus-aospXavier Ducrohet2011-07-208-26/+62
| |\ \ | | |/ | | | | | | Change-Id: I806c7b4ae95f66df621587e52497dd8739a115fe
| | * Add generation of dependency file for .ap_ packageJosiah Gaskin2011-07-188-27/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make Aapt generate a dependency file in the same directory as the output ap_ file if the --generate-dependencies flag is set. This dependency file can then be read by the ant exec loop task to see whether to repackage resources. Change-Id: I763679414daf76369700aa599c26dcf78d4de099
* | | am 9139868b: am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency ↵Xavier Ducrohet2011-07-197-18/+110
|\ \ \ | |/ / | | | | | | | | | | | | | | | generation to Aapt for R.java" * commit '9139868b6c5cb29b3665984225dceb0193fec31d': Add dependency generation to Aapt for R.java
| * | am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency generation to ↵Xavier Ducrohet2011-07-197-18/+110
| |\ \ | | |/ | | | | | | | | | | | | | | | Aapt for R.java" * commit 'ba6c98db8f21016f81ecac35bb0ea3c433044bb7': Add dependency generation to Aapt for R.java
| | * Add dependency generation to Aapt for R.javaJosiah Gaskin2011-06-278-19/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | Make Aapt generate a dependency file in the location specified by RClassDir for R.java if the --generate-dependencies flag is set. This dependency file is then read by the ant exec loop task to see whether to recreate R.java. Change-Id: I7152dac86b6ea0e448ef65e3a95694afe233c789
* | | am bf31250b: am d5431ed5: am 2e659ae5: am 42755155: Merge "Copy once-created ↵Xavier Ducrohet2011-07-193-1/+26
|\ \ \ | |/ / | | | | | | | | | | | | | | | R.java into library projects" * commit 'bf31250ba0858a2e72a3906a1f0216846683bc2e': Copy once-created R.java into library projects
| * | am d5431ed5: am 2e659ae5: am 42755155: Merge "Copy once-created R.java into ↵Xavier Ducrohet2011-07-193-1/+26
| |\ \ | | |/ | | | | | | | | | | | | | | | library projects" * commit 'd5431ed5505a42e5e33c8bf7cc2ff72792979be9': Copy once-created R.java into library projects
| | * Copy once-created R.java into library projectsJosiah Gaskin2011-06-273-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | This change adds functionality in Aapt to allow specification of library projects to copy the generated R.java file into rather than regenerating the file for each library project. Change-Id: I05939d1dc875bd875be9298ca47cb639235070c6
| | * Merge changes I0ab47e2f,Ib8016996Conley Owens2011-04-271-1/+2
| | |\ | | | | | | | | | | | | | | | | | | | | * changes: Remove errant tag terminator Normalize output of XMLtree content
| | | * Normalize output of XMLtree contentShachar Shemesh2011-04-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the output from aapt dump xmltree normalized, so that it is unambigously displayed regardless of the content of the strings. Previous patch left out handling of XML element content. Change-Id: Ib8016996c769f3dde7a87f7ecbdf850333f2426a
* | | | Output Proguard options for also overlay layouts.Ying Wang2011-06-201-0/+5
|/ / / | | | | | | | | | Change-Id: I7bfac476247bd7b532510e295cb1a3e61e9af88b
* | | am f1c5dbbd: am abd4dffc: Merge "New orientation handling. Only impacts SDK ↵Dianne Hackborn2011-06-161-8/+48
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | (aapt dump badging)." into honeycomb-mr2 * commit 'f1c5dbbd457bb14d3673508aaba497cdc328a1ef': New orientation handling. Only impacts SDK (aapt dump badging).
| * | | New orientation handling. Only impacts SDK (aapt dump badging).Dianne Hackborn2011-06-161-8/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a new way of determining whether an application requires specific orientations, done by looking at any requirements in its activity tags. Note that this won't catch all possible issues, because applications can still force an orientation through Java APIs, but the vast majority of applications that actually require a specific orientation should be doing it this way because it the easiest way and the only way to cleanly launch into the app from a different orientation without doing some serious activity tricks. Change-Id: I11d32104f6bc3d2a72aeeff1ca150b8f1c9f5588
* | | | am 6c0533f9: am c5193c62: Merge "Add new landscape and portrait orientation ↵Dianne Hackborn2011-06-141-22/+134
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | features." into honeycomb-mr2 * commit '6c0533f994e7991b3bd60cab48362e8e2e6d86f0': Add new landscape and portrait orientation features.
| * | | Add new landscape and portrait orientation features.Dianne Hackborn2011-06-141-22/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates aapt to know about these. Also updates aapt badging to: - No longer crash due to the change to how we match unspecified configuration resources. - Report the new "smallest screen" supported screen configs. - Infer old screen size buckets based on new smallest width attrs. - Report all of the different labels and icons in an app. Change-Id: I7376042b817391bd070f549cebbc7f03be4635c8
* | | | am c6adfed6: am f795e9a8: Okay *now* really enforce the limit on non-public ↵Dianne Hackborn2011-06-101-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | styles. * commit 'c6adfed6dcea8482e482db58bd396ea8de08426a': Okay *now* really enforce the limit on non-public styles.
| * | | Okay *now* really enforce the limit on non-public styles.Dianne Hackborn2011-06-091-2/+2
| | | | | | | | | | | | | | | | Change-Id: Ie8df6acf7cc3dec00f615b2fa9a5122ec79a0aae