summaryrefslogtreecommitdiff
path: root/tools/aapt/Command.cpp
AgeCommit message (Collapse)Author
2013-08-21Modify 'aapt dump badging' to output <meta-data> tagsMaurice Chu
This enables output of <meta-data> tags within the <application> element of the AndroidManifest.xml if the --include-meta-data command line option is invoked. For example, by aapt dump --include-meta-data badging Foo.apk Bug: 10257318 Change-Id: I88da1a14ab21146b64ac947e0eeb1107816acd4d
2013-04-03aapt: add support for optional uses-permissionNick Kralevich
Applications can request a permission with android:required="false". For example: <uses-permission android:name="android.permission.READ_PHONE_STATE" android:required="false" /> Make aapt understand such permissions. Bug: 8522021 Change-Id: I7d3af64e7c3eca608316d5bea19c4ea639dd2b7a
2013-02-25Fix typo.Dianne Hackborn
Change-Id: I71c8458e02dc9b9a4c59e51ded37b57a930038f9
2013-01-15resolved conflicts for merge of c71c678e to masterXavier Ducrohet
Change-Id: I9e1a6a1151af00f0a13e2010776276b240e0ac3a
2013-01-15resolved conflicts for merge of dd52dfed to jb-mr1.1-ub-devXavier Ducrohet
Change-Id: I839981af97e54c39f0ea0b8141a4dd02959263a0
2013-01-15Fix the single crunch command to return the right error code.Xavier Ducrohet
Casting from status_t to int doesn't work for return values if the lower 8 bits are all 0. Change-Id: I88e910dfe46cb72acd1595352e71da3c8eff4ca9
2013-01-02Add single crunch command to aapt. do not merge.Xavier Ducrohet
Previously the crunch command would work on a full res folder and output a full res folder (with only the drawables). This was only used in the SDK. The incremental logic is moved to the SDK build system so we change the crunch command (or rather add a new one) to only crunch a single file. (cherry picked from commit b1f6ad82dd8d1702617a757a88430604b3131fac) Change-Id: I3653f67ee321eac37cb8a6d228b1ef6d104ff0be
2013-01-02Add single crunch command to aapt.Xavier Ducrohet
Previously the crunch command would work on a full res folder and output a full res folder (with only the drawables). This was only used in the SDK. The incremental logic is moved to the SDK build system so we change the crunch command (or rather add a new one) to only crunch a single file. Change-Id: I635ee3e871d035b9db2fb593802d914e48241abf
2012-06-11Fix issue #6641368: can't launch galleryDianne Hackborn
This is a revert of 1db36528b12395b9ed9bf8a1005a6d4ace737627, but with comments added so I don't make this mistake again. :) Change-Id: I053216279e3721f08f32f561bb989736ef619f82
2012-04-26Apply --extra-packages in case --custom-pacakge is also specified.Ying Wang
Cherry-picked from master. Change-Id: I2d67b8821afdf064f4186ccd8def1b65f9a7dc88
2012-04-16Add new aapt dump badging output explaining implicit badging.Dianne Hackborn
New uses-implied-feature and uses-implied-permission tell you about any features or permissions that aapt is automatically adding to your app, and why it is doing so. Change-Id: I45edb055408e1259699c994f956166ce67e8db5d
2012-04-10Merge "Adding a line for android-debuggable to 'dump badging' if ↵Dan Morrill
AndroidManifest.xml is configured as such. This is to be used by e.g. Play Store to warn the developer that they are about to publish a security hole."
2012-04-05Implement call log permission compatibility.Dianne Hackborn
If a pre-JellyBean application requests read/write contacts, it will implicitly be given read/write call log. Change-Id: I029db4b09fda737bb8fba4e1611355ebdbbfd34f
2012-04-03Adding a line for android-debuggable to 'dump badging' if AndroidManifest.xmlDan Morrill
is configured as such. This is to be used by e.g. Play Store to warn the developer that they are about to publish a security hole. Change-Id: Ib6f8537462cbc00ed0504435bdeee2aae0c5b69b
2012-03-12Add new READ_EXTERNAL_STORAGE permission.Dianne Hackborn
Also adds some initial compatibility code for dealing with it. Change-Id: I104bff11798349e4aaa6da9b7be787b257daa1bb
2012-02-07Only generate private symbols that are needed.Dianne Hackborn
Change-Id: Icc4c86638db8429a387bf87c934cc712f807e213
2012-01-31aapt now sorts the strings in the resource string pool.Dianne Hackborn
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
2012-01-06Minor tweak to console output.Dan Morrill
Change-Id: I494910eda1d02f6bcff945b9a13c83767f2248b6
2011-12-08Add aapt support for implicitly-granted permissionsKenny Root
Bug: 2363582 Bug: 2877343 Change-Id: Iff7b496fb845e45fe1be2317089a96f7d63ed223
2011-10-16New aapt feature to do smarter filtering of configurations.Dianne Hackborn
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
2011-09-29Add package-verifier to aapt dump badgingKenny Root
Print out the package-verifier information when printing out badging. Change-Id: I9c79c163261d5d4f1094bda76d90b3ff6e1ce540
2011-08-18am f4750724: am 9d829f98: am 21e6e2de: Merge "Change generated dependency ↵Xavier Ducrohet
file names" * commit 'f4750724cf8db972a052cb388dc9a39fc7aa6dd6': Change generated dependency file names
2011-08-16Change generated dependency file namesJosiah Gaskin
This changes the name of the generated dependency files to R.java.d and <ApkName>.ap_.d respectively. Change-Id: I17e18770fc0d0a5d31c7b37b40ac1949f45ef13a
2011-07-20resolved conflicts for merge of ea9e6d24 to honeycomb-plus-aospXavier Ducrohet
Change-Id: I8e047147a4d2c899b6654c03a5f32b04d929e602
2011-07-20resolved conflicts for merge of 2c311be7 to honeycomb-plus-aospXavier Ducrohet
Change-Id: I806c7b4ae95f66df621587e52497dd8739a115fe
2011-07-20Added Caching for PreProcessed PNGsJosiah Gaskin
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
2011-07-19am ba6c98db: am 82943ecf: am d40c93f6: Merge "Add dependency generation to ↵Xavier Ducrohet
Aapt for R.java" * commit 'ba6c98db8f21016f81ecac35bb0ea3c433044bb7': Add dependency generation to Aapt for R.java
2011-07-19am d5431ed5: am 2e659ae5: am 42755155: Merge "Copy once-created R.java into ↵Xavier Ducrohet
library projects" * commit 'd5431ed5505a42e5e33c8bf7cc2ff72792979be9': Copy once-created R.java into library projects
2011-07-18Add generation of dependency file for .ap_ packageJosiah Gaskin
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
2011-06-27Add dependency generation to Aapt for R.javaJosiah Gaskin
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
2011-06-27Copy once-created R.java into library projectsJosiah Gaskin
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
2011-06-16New orientation handling. Only impacts SDK (aapt dump badging).Dianne Hackborn
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
2011-06-14Add new landscape and portrait orientation features.Dianne Hackborn
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
2010-12-14am 0ccc8b73: am 5441a9ff: Merge "GL texture filtering changed from AND to ↵Dan Morrill
OR, so rename tag name to match. (<uses-foo> == AND, <supports-foo> == OR, e.g. uses-feature vs. supports-screen)." into gingerbread * commit '0ccc8b7345eac0b507c221be47e55926cbda8957': GL texture filtering changed from AND to OR, so rename tag name to match. (<uses-foo> == AND, <supports-foo> == OR, e.g. uses-feature vs. supports-screen).
2010-12-13GL texture filtering changed from AND to OR, so rename tag name to match.Dan Morrill
(<uses-foo> == AND, <supports-foo> == OR, e.g. uses-feature vs. supports-screen). Change-Id: I0f20aed7f95169d9adfc7fe128191eb6e49d116f
2010-11-06am 4da6efc8: am 46151652: Merge "fix xlarge support in aapt for gingerbread" ↵Scott Main
into gingerbread * commit '4da6efc8a3ecfcf46a8988ad1d277ae00ed1f58c': fix xlarge support in aapt for gingerbread
2010-11-04fix xlarge support in aapt for gingerbreadScott Main
Change-Id: I4d8872fb839a6eadc538055215d4455af328846c
2010-10-22Implement issue #3116702: New manifest tags for supported screen sizesDianne Hackborn
Merged from GB. Change-Id: I94730b54bcacd083f77708e84c35f4932a7b9d2e
2010-10-21Implement issue #3116702: New manifest tags for supported screen sizes DO ↵Dianne Hackborn
NOT MERGE Change-Id: Iabf64d86c89d387ffbfbc39f950d308a73fe17eb
2010-10-15am b58af2b8: am 5c62ab0a: Merge "Adding a new <uses-gl-texture/> tag, to be ↵Dan Morrill
used to enable apps to specify filtering based on support for OpenGL ES texture and texture compression formats." into gingerbread Merge commit 'b58af2b8b3871436942d0e2c878c906bffaa2fb0' * commit 'b58af2b8b3871436942d0e2c878c906bffaa2fb0': Adding a new <uses-gl-texture/> tag, to be used to enable apps to specify
2010-10-13Adding a new <uses-gl-texture/> tag, to be used to enable apps to specifyDan Morrill
filtering based on support for OpenGL ES texture and texture compression formats. Change-Id: I993209a673579b296007ae2ba830d0275770dd11
2010-09-02am 31103928: am 192b56d4: Merge "Implement #2964234: Add support for ↵Dianne Hackborn
<uses-package> element to aapt" into gingerbread Merge commit '31103928ed5b9091bcd7de74c8a49675d10c87e7' * commit '31103928ed5b9091bcd7de74c8a49675d10c87e7': Implement #2964234: Add support for <uses-package> element to aapt
2010-09-02Implement #2964234: Add support for <uses-package> element to aaptDianne Hackborn
Change-Id: Ifb381f387cab7e5a99006691e330d0e3d9d0f250
2010-08-25am eb0e0f46: am 2e7427f3: Merge "Add LFH offset to verbose list of APK" into ↵Kenny Root
gingerbread Merge commit 'eb0e0f465155bc9ec2c79741890fb65bd403e33a' * commit 'eb0e0f465155bc9ec2c79741890fb65bd403e33a': Add LFH offset to verbose list of APK
2010-08-25Add LFH offset to verbose list of APKKenny Root
The Local File Header (LFH) offset is printed in debugging cases when the platform is inspecting APKs. This adds the LFH offset field to the list of contents of an APK, so that it can be checked easily against the Central Directory (CD). Change-Id: I08f9a13256bfe6563c1a963c4f0289789b2e7857
2010-08-24am 8b569c8d: am 42f90ca5: Merge "Fix aapt dump badging to support xlarge ↵Dianne Hackborn
screens." into gingerbread Merge commit '8b569c8d49924d849793513a5418ef0350320962' * commit '8b569c8d49924d849793513a5418ef0350320962': Fix aapt dump badging to support xlarge screens.
2010-08-20Fix aapt dump badging to support xlarge screens.Dianne Hackborn
Change-Id: Ieeb757cd48ad9b3f46c5e4aed9d5efaeac834049
2010-06-25Fixes a few minor problems with AAPTSteve Block
- Fixes casting problems with stricter compilers - Adds a couple of missing ifdef guards This is a first step toward being able to generate APKs on the fly on the device. Bug: 2766918 Change-Id: Icaaee5a4032afa313256add321b447443861dd85
2010-06-15As Donut (API=4) devices and earlier do not have a Bluetooth API, .apk filesDan Morrill
that have minSdkLevel (or targetSdkLevel) set to 4 or lower should not be presumed to require Bluetooth just because they take the permission. Change-Id: Ia629e9ef0425a577e4e14f9b348f5aa2b39c1e74
2010-05-04Adding the backward-compatible filtering heuristics for the new deviceDan Morrill
features definitions added in FroYo. Change-Id: I5024e45c62813fe2fd2ff4d222df816a86a94f86