summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Update fontchain_linter for non-compat fontSeigo Nonaka2022-12-051-52/+4
| | | | | | | Bug: 255901351 Test: m fontchain_lint Change-Id: If60de61504188a7222e2efa67705b8bf4400dbda Merged-In: If60de61504188a7222e2efa67705b8bf4400dbda
* Fix more kotlin 1.7.0 errorsColin Cross2022-10-071-0/+1
| | | | | | | | | | | Fix "'when' expression must be exhaustive" and UNEXPECTED_SAFE_CALL errors. Bug: 216136346 Test: m checkbuild Change-Id: I2c1b1f7581426496f31198896c4ff3bd9abf2941 (cherry picked from commit 64acfee25d5d38d92267238a7847cccfccd2e829) Merged-In: I2c1b1f7581426496f31198896c4ff3bd9abf2941
* Require CONFIG_HID_PLAYSTATION for DualSense key layoutSiarhei Vishniakou2022-08-232-0/+9
| | | | | | | | | | | | | | | | | | | | | | | Some olders kernels don't yet support HID_PLAYSTATION. While they are working on supporting this driver, provide this temporary solution. Before this patch, if the key layout is loaded, but there is no HID_PLAYSTATION, then the mappings on the device will be incorrect. With this patch, this key layout will not be loaded unless there is a CONFIG_HID_PLAYSTATION enabled on the device. Instead, when the main layout cannot be loaded, we make another attempt to load a fallback layout. This way, the mappings on DualSense can be correct even if the HID_PLAYSTATION module is not loaded. In this CL, the fallback layout was tested using controllerTester. Bug: 228005926 Test: tested mappings with a DualSense controller on a device that does not have CONFIG_HID_PLAYSTATION Change-Id: I7e46ae1943cd2c63b8c0b03fdf5d71adeea89f6f
* Scaffolding: reject installs based on device fingerprintMårten Kongstad2022-08-011-0/+1
| | | | | | | | | | Add the scaffolding for teaching the package parser to reject a package if its manifest specifies a set of prefixes, and the device fingerprint does not start with one of the prefixes. Bug: b/232475788 Test: m Change-Id: I9f3f3d3ad96332d2d65fbf6f58c7ce35992bcd7e
* Revert "Escape single quotes in aapt2"Donald Chai2022-05-032-15/+1
| | | | | | | | | | | | This reverts commit c90f42c80fc9472ad1b46402672c0444b0365f49. Reason for revert: Introduces the escaping *into the APKs*; as mentioned in b/140373430#comment3 the Right Way to dump XML is via textproto. Fix: 222745626 Bug: 140373430 Change-Id: I775b8a304e76a83934c36886c17cf23560914d21 Merged-In: I775b8a304e76a83934c36886c17cf23560914d21 (cherry picked from commit 27e9a4a85fe74bf13614396bb681967b53924f90)
* frameworks/base - Tiramisu is now 33 #2Yurii Zubrytskyi2022-04-122-0/+2
| | | | | | | | Set current API level Test: Build and boot Bug: 225745567 Change-Id: If135d9795e812cc286c720b9351eaf6be621fd5b
* frameworks/base - Tiramisu is now 33Yurii Zubrytskyi2022-04-121-0/+1
| | | | | | | | Removed deprecated at birth APIs Test: build and boot Bug: 225745567 Change-Id: I8a40f4a08e521a7c9632d7652ff1f51fb137b34d
* Merge "Update deprecated_at_birth script" am: 033de61f59 am: 01673de24e am: ↵Anton Hansson2022-04-121-9/+9
|\ | | | | | | | | | | | | | | | | 88a6b630aa Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2059569 Change-Id: Ice3324baec83320357de3bb38e22ec144f8c8f8f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Merge "Update deprecated_at_birth script" am: 033de61f59Anton Hansson2022-04-121-9/+9
| |\ | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2059569 Change-Id: I789294f78d144121a9d9336cf922b803a6b47458 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Update deprecated_at_birth scriptAnton Hansson2022-04-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it executable, make it work with python3. Bug: 228451704 Test: $ m api_txt dist $ PREVIOUS_API=prebuilts/sdk/## $ for api in $(ls -1 out/dist/apistubs/android); do frameworks/base/tools/apilint/deprecated_at_birth.py \ out/dist/apistubs/android/$api/api/ \ ${PREVIOUS_API}/$api/api/ done Change-Id: Ib0eda541be68b0b21ae0dea3f51a82b44f7f9e7c
* | | Merge "Change aapt2 to specify full protos" am: 6787226865 am: 3da3dce716 ↵Treehugger Robot2022-04-061-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | am: ccd8e91bf1 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2037107 Change-Id: I23fd8af293fc5acd7748294d6cb61289565b8c1a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | Merge "Change aapt2 to specify full protos" am: 6787226865Treehugger Robot2022-04-061-0/+1
| |\| | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2037107 Change-Id: I6d4221ca092ff126676c3f93925c83268a339506 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Merge "Change aapt2 to specify full protos"Treehugger Robot2022-04-061-0/+1
| | |\
| | | * Change aapt2 to specify full protosLiz Kammer2022-03-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Soong's cc support for protos is inconsistent, it adds a dependency on lite proto library is proto.type is unspecified, but builds as full. Update aapt2 to explicitly build full protos rather than rely on Soong's inconsistent defaulting of proto.type Test: CI Change-Id: I5600d04c7ac32a04fd2b230912e02280a3874812
* | | | Merge "Non-module targets." am: 3f0139b119 am: 6dc0c9f780 am: 824f062400Treehugger Robot2022-04-041-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052132 Change-Id: I27b00e66ce73673d6add6d74a78b6eff0639b1b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Non-module targets." am: 3f0139b119Treehugger Robot2022-04-041-0/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052132 Change-Id: I9d78eb2f88f9ed97a36d6757744b4406435d3853 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Non-module targets."Treehugger Robot2022-04-041-0/+2
| | |\ \
| | | * | Non-module targets.Bob Badour2022-03-311-0/+2
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 151177513 Bug: 213388645 Bug: 210912771 Test: m droid dist reportmissinglicenses Change-Id: I1982a50b33924a051d7cfcdf18dd1f0f00fa1c0f
| * | | Merge changes from topic "merge_8391262" into stage-aosp-masterXin Li2022-04-031-0/+1
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | * changes: Fixup OWNERS file merge conflicts. Merge Android 12 QPR3 ab/8391262
* | | | Merge "Add context to error message." am: 0754714469 am: 82e2afb277 am: ↵Treehugger Robot2022-04-011-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e210ca9e34 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052076 Change-Id: I4669a3e8ffd72d7591d4c6713942072f998b82f8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | Merge "Add context to error message." am: 0754714469 am: 82e2afb277Treehugger Robot2022-04-011-1/+1
| |\| | | | | |/ / | |/| | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052076 Change-Id: I386d9460938f2045d41b0c6c19902d0a16fdca4d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Add context to error message.Bob Badour2022-04-011-1/+1
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Would have been very useful to avoid http://b/227682097 Bug: 227682097 Test: m apexer apexer_test deapexer debugfs_static; atest --host apexer_test Change-Id: I24234d053a06868493831d40f94f7e46956391a1
* | | Update fontchain_lint to detect lack of PUA in emoji fontRod S2022-03-261-12/+90
| | | | | | | | | | | | | | | | | | Bug: 226676748 Test: Confirmed that the updated fontchain lint fails on the COLR font w/o PUA and passes once added Change-Id: If831ed689ce80f26564279c6a6243cedddc56c36
* | | Merge "Update asm-7.0 to asm-9.2." am: ad55d80482 am: 92864663c1 am: 100d91e9f3Allen Hair2022-03-223-9/+9
|\| | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2016115 Change-Id: I556bf78799ec0fcd9d32eb16a2bd7a023ab5c7fd
| * | Merge "Update asm-7.0 to asm-9.2." am: ad55d80482 am: 92864663c1Allen Hair2022-03-223-9/+9
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2016115 Change-Id: I1b81166403e4b751f10e783208a3e6483d74b7e3
| | * Merge "Update asm-7.0 to asm-9.2."Allen Hair2022-03-223-9/+9
| | |\
| | | * Update asm-7.0 to asm-9.2.Allen Hair2022-03-083-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 194725917 Bug: 221938918 Test: Forrest build. Change-Id: Ia3429287588acc1e0784dc1fd74f9e60d2c9c6d9
* | | | Merge "Add tool for injecting tracing code into a method." am: a7006818d3 ↵Allen Hair2022-03-168-0/+715
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3e53e056ee am: 152a78bd50 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2016118 Change-Id: I7c3f2585e9ca6d4d488fe47b765d5730a5390988
| * | | Merge "Add tool for injecting tracing code into a method." am: a7006818d3 ↵Allen Hair2022-03-168-0/+715
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3e53e056ee Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2016118 Change-Id: If83cc7c52c09e0a226e759755e60ccc9a3412951
| | * | Merge "Add tool for injecting tracing code into a method."Allen Hair2022-03-168-0/+715
| | |\|
| | | * Add tool for injecting tracing code into a method.Michael Wright2022-03-088-0/+715
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This tool rewrites the bytecode in the designated JAR files to produce tracing calls on enter and exit, while making sure to close the tracing span even on exceptions being thrown. The idea is mostly to reduce the amount of noise within methods when just trying to add some tracing. Test: atest --host TraceInjectionTests Change-Id: If6acb72f34cbb83d9b041a62ee3d8c2abf74b69e Merged-In: If6acb72f34cbb83d9b041a62ee3d8c2abf74b69e
* | | | Merge "Tweak linux_glibc properties for musl builds in frameworks/base" am: ↵Colin Cross2022-03-151-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee415b6dd4 am: 0465454af5 am: 8927c1f94e Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019598 Change-Id: I33e43c2b80acf35e7f9790d82c98d38bf2134697
| * | | Merge "Tweak linux_glibc properties for musl builds in frameworks/base" am: ↵Colin Cross2022-03-151-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee415b6dd4 am: 0465454af5 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2019598 Change-Id: Id281761e429d0876969bd0150fc9ca0356a7dcd6
| | * | Merge "Tweak linux_glibc properties for musl builds in frameworks/base"Colin Cross2022-03-151-1/+1
| | |\ \
| | | * | Tweak linux_glibc properties for musl builds in frameworks/baseColin Cross2022-03-091-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For convenience, builds against musl libc currently use the linux_glibc properties because they are almost always linux-specific and not glibc-specific. In preparation for removing this hack, tweak the linux_glibc properties by either moving them to host_linux, which will apply to linux_glibc, linux_musl and linux_bionic, or by setting appropriate musl or linux_musl properties. Properties that must not be repeated while musl uses linux_musl and also still uses the linux_glibc properties are moved to glibc properties, which don't apply to musl. Whether these stay as glibc properties or get moved back to linux_glibc later once the musl hack is removed is TBD. Bug: 223257095 Test: m checkbuild Test: m USE_HOST_MUSL=true host-native Change-Id: I7058c8f1dadd7bbfd7e169bdf0a0441eb6d10ec5
* | | | Merge "Update StaleDataclassProcessor for JDK 17" am: f9ce0a2c2b am: ↵Treehugger Robot2022-03-091-10/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 03ae92e5f3 am: 415ef94f27 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007761 Change-Id: Icc88f0ec3f01e5335b944e5dc42cce04c6460a09
| * | | Merge "Update StaleDataclassProcessor for JDK 17" am: f9ce0a2c2b am: 03ae92e5f3Treehugger Robot2022-03-091-10/+8
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2007761 Change-Id: I61b618c2da21a65597e0b9b1d39d3751742f9be5
| | * | Merge "Update StaleDataclassProcessor for JDK 17"Treehugger Robot2022-03-091-10/+8
| | |\ \ | | | |/ | | |/|
| | | * Update StaleDataclassProcessor for JDK 17Colin Cross2022-03-041-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JDK 17 no longer allows access to com.sun.tools.javac.code by default, use the public APIs instead. Bug: 219098645 Test: m checkbuild Change-Id: If379935cc4ab9e5c809cc9fbfccbacfd8d87e8c8
* | | | Document resources staging groups and finalizationWinson2022-03-082-41/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes instructions on how to expose new public resource IDs and how to "remove" unused resource IDs before finalization. Temporarily restricts OWNERS to ensure T remains stable until a long term static analysis solution is found. Fixes the script for finalization to handle split files and seed the next release's staging-public-group blocks. Bug: 222537368 Test: manual, checked build before and after mock finalization Change-Id: I901a80e487f5eaab9689f469196648535857e0e1
* | | | AAPT2: support removed_ entries in groupsWinson Chiu2022-03-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignores and increments the ID if the entry contains removed_, to prevent shifting IDs by leaving a hole, allowing staging resources to be removed before finalization. This was broken out from the parent change to allow other CLs fixing the resource IDs to be merged without splitting public.xml. Bug: 222537368 Test: manual, see bug for other changes Change-Id: I56f4fd70824bd42ec62f4fa0a2f067e2a3c094b5
* | | | Add legacy emoji font file for compatibilitySeigo Nonaka2022-03-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 222362958 Test: Manually verified Flutter Gallary shows emoji. Test: atest CtsTextTestCases CtsGraphicsTestCases Test: atest FontListParserTest Change-Id: If5b5ddfb6d0d46cfb8d27cf66843ae95d4b50e03
* | | | Merge "enable aapt for unbundled builds" am: c3270b85fb am: bd84bca4e1 am: ↵Treehugger Robot2022-03-031-10/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4bbbeefb86 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2006150 Change-Id: I77148fda55942a07c075472979cdc508b983d0a5
| * | | Merge "enable aapt for unbundled builds" am: c3270b85fb am: bd84bca4e1Treehugger Robot2022-03-031-10/+0
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2006150 Change-Id: Iecbcf9eeea01ce03308c546cd804e06743154998
| | * | Merge "enable aapt for unbundled builds" am: c3270b85fbTreehugger Robot2022-03-031-10/+0
| | |\| | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2006150 Change-Id: I0039b269359efb08090b5f7ae8cc5da77bcf6150
| | | * enable aapt for unbundled buildsGuang Zhu2022-03-021-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was available for unbundled builds when the build rules were in mk form and aapt2 is enabled for unbundled, so there's not a strong reason why aapt should be disabled for unbundled build Change-Id: I6589eafbe8d2e423c9ac925b3614763fa6a511ac Fixes: 217747798 Test: local compile
* | | | Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871 am: 96c1b4bd0e am: ↵George Burgess2022-02-241-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5fdccc4578 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590 Change-Id: I0afc27ac42bd9c2a1d604a5f6915159bdcad9c99
| * | | Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871 am: 96c1b4bd0eGeorge Burgess2022-02-241-2/+3
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590 Change-Id: Ia9ce5f63427a3ec9fdf92be93bd54b1f6be5f14f
| | * | Merge "bit: avoid calling strdup(NULL)" am: 589f3e4871George Burgess2022-02-241-2/+3
| | |\| | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1995590 Change-Id: I5524e43b77097f1bf2c7ac34c877a961cf61b5ad
| | | * bit: avoid calling strdup(NULL)George Burgess IV2022-02-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems the behavior of strdup is undefined when NULL is passed in. Clang's static analyzer complains about this: > frameworks/base/tools/bit/command.cpp:195:25: warning: Null pointer passed to 1st parameter expecting 'nonnull' [clang-analyzer-core.NonNullParamChecker] Since we don't seem to care about malloc failures (which is a good thing IMO), adding a second check for the successful completion of `strdup` seems pointless. Bug: 206470603 Test: TreeHugger Change-Id: Ib621659e6fb600203694974f02d96ba0acb3362f