tree: 83827e4c9948cf62ebc1b6cf6710b6f4f1d300f5 [path history] [tgz]
  1. compile/
  2. diff/
  3. dump/
  4. filter/
  5. flatten/
  6. integration-tests/
  7. io/
  8. java/
  9. link/
  10. process/
  11. proto/
  12. split/
  13. test/
  14. tools/
  15. unflatten/
  16. util/
  17. xml/
  18. Android.mk
  19. AppInfo.h
  20. ConfigDescription.cpp
  21. ConfigDescription.h
  22. ConfigDescription_test.cpp
  23. Debug.cpp
  24. Debug.h
  25. Diagnostics.h
  26. DominatorTree.cpp
  27. DominatorTree.h
  28. DominatorTree_test.cpp
  29. Flags.cpp
  30. Flags.h
  31. Format.proto
  32. Locale.cpp
  33. Locale.h
  34. Locale_test.cpp
  35. Main.cpp
  36. NameMangler.h
  37. NameMangler_test.cpp
  38. readme.md
  39. Resource.cpp
  40. Resource.h
  41. Resource_test.cpp
  42. ResourceParser.cpp
  43. ResourceParser.h
  44. ResourceParser_test.cpp
  45. ResourceTable.cpp
  46. ResourceTable.h
  47. ResourceTable_test.cpp
  48. ResourceUtils.cpp
  49. ResourceUtils.h
  50. ResourceUtils_test.cpp
  51. ResourceValues.cpp
  52. ResourceValues.h
  53. SdkConstants.cpp
  54. SdkConstants.h
  55. SdkConstants_test.cpp
  56. Source.h
  57. StringPool.cpp
  58. StringPool.h
  59. StringPool_test.cpp
  60. ValueVisitor.h
  61. ValueVisitor_test.cpp
tools/aapt2/readme.md

Android Asset Packaging Tool 2.0 (AAPT2) release notes

Version 2.2

aapt2 compile ...

aapt link ...

  • Duplicate resource filtering: removes duplicate resources in dominated configurations that are always identical when selected at runtime. This can be disabled with --no-resource-deduping.

Version 2.1

aapt2 link ...

  • Configuration Split APK support: supports splitting resources that match a set of configurations to a separate APK which can be loaded alongside the base APK on API 21+ devices. This is done using the flag --split path/to/split.apk:<config1>[,<config2>,...].
  • SDK version resource filtering: Resources with an SDK version qualifier that is unreachable at runtime due to the minimum SDK level declared by the AndroidManifest.xml are stripped.

Version 2.0

aapt2 compile ...

  • Pseudo-localization: generates pseudolocalized versions of default strings when the --pseudo-localize option is specified.
  • Legacy mode: treats some class of errors as warnings in order to be more compatible with AAPT when --legacy is specified.
  • Compile directory: treats the input file as a directory when --dir is specified. This will emit a zip of compiled files, one for each file in the directory. The directory must follow the Android resource directory structure (res/values-[qualifiers]/file.ext).

aapt2 link ...

  • Automatic attribute versioning: adds version qualifiers to resources that use attributes introduced in a later SDK level. This can be disabled with --no-auto-version.
  • Min SDK resource filtering: removes resources that can't possibly be selected at runtime due to the application's minimum supported SDK level.