Commit Graph

6269 Commits

Author SHA1 Message Date
Ryan Mitchell
ed72380fac Merge "AAPT2: Add supported manifest elements" 2018-08-23 21:45:53 +00:00
TreeHugger Robot
0f3a3ac1f8 Merge "Add more accurate logging for stats log loss." 2018-08-23 18:00:09 +00:00
Donald Chai
59e374e144 Merge "AAPT: Render resource ID values with 0x%08x in "dump xmltree" output as is done elsewhere." 2018-08-23 03:49:17 +00:00
Yao Chen
0f5d661803 Add more accurate logging for stats log loss.
+ Only record eventual failure after the retries to get a accurate log loss count.
+ Record all types of failures which lead to log loss
+ Change the timestamp from elapsedRealtime to wallclock time for easier debugging server side
+ Also log the count too.

Bug: 80538532
Test: manually tested

Change-Id: I4fcccae3fa39c9e280a842e27c6432bb0a090b85
2018-08-22 14:21:42 -07:00
Todd Kennedy
595d12e581 Merge "Mark symbols as dynamic for shared libraries" am: c07d4e7118 am: 857718307c
am: 6b8d5414e0

Change-Id: I9bb2b7333abb11747d48a4ced8686052c77963aa
2018-08-21 03:26:41 -07:00
Todd Kennedy
857718307c Merge "Mark symbols as dynamic for shared libraries"
am: c07d4e7118

Change-Id: I7aa896f294e6b940b57d29afad05594c6e90fb7d
2018-08-21 02:58:25 -07:00
Treehugger Robot
c07d4e7118 Merge "Mark symbols as dynamic for shared libraries" 2018-08-20 21:31:28 +00:00
Donald Chai
5f92797fbf AAPT: Render resource ID values with 0x%08x in "dump xmltree" output as
is done elsewhere.

Test: N/A
Change-Id: I7ff686425fec447ae43b364e592b81bfcbc1df30
2018-08-20 17:11:27 +00:00
Donald Chai
e0936a1fda Merge "Include values in error message." 2018-08-20 17:11:01 +00:00
Ryan Mitchell
93a2daf1c0 Merge "AAPT2: Set array element keys" 2018-08-20 16:41:33 +00:00
Donald Chai
9f1911181d Include values in error message.
Bug: 112554546
Test: N/A
Change-Id: I56c468a9a4f162f6ce8079d6b4b61c5ec4b8f633
2018-08-20 03:48:47 +00:00
TreeHugger Robot
7dd9fce652 Merge "Create log event from key value maps." 2018-08-19 23:23:17 +00:00
Yangster-mac
48b3d62bfe Create log event from key value maps.
BUG: b/112816333
Test: statsd test.
Change-Id: Ib66f06186abfacd77807436379e1e142a5b87c99
2018-08-19 22:37:59 +00:00
Ryan Mitchell
0f7da5eda8 AAPT2: Set array element keys
Many google3 apps using lemon resource filtering had difficulty
converting to aapt2. AAPT2 never set the name of the ResTable_map name
value mapping.

Bug: 78472540
Test: blaze build java/com/google/android/apps/gmail:Gmail_go_release
and checking that all array resources are present
Change-Id: I3d253a4c52c6100085e4c1083f4c36a943f11c76
2018-08-17 14:37:33 -07:00
Ryan Mitchell
ead275e19f Merge "AAPT2: Compile --zip flag" 2018-08-16 17:26:08 +00:00
Ryan Mitchell
5d2755129d AAPT2: Reformatted dump command invocations
Use with:
  aapt2 dump apc [apc]
  aapt2 dump configurations [apk]
  aapt2 dump strings [apk]
  aapt2 dump resources [apk]
  aapt2 dump xmlstrings [apk] --file [file]
  aapt2 dump xmltree [apk] --file [file]

Will add permissions and badging in a later commit.

Bug: 73351292
Test: Manual tests of the commands
Change-Id: I97eec01222af14053a98bd70255f1bfecd16b1c4
2018-08-14 15:56:29 -07:00
Ryan Mitchell
1a8a69075e Merge "AAPT2: Loosen loading apk format requirements" 2018-08-14 22:51:35 +00:00
Ryan Mitchell
f3649d6690 AAPT2: Compile --zip flag
Added a --zip flag similar to --dir that allows resources to be passed
into "aapt2 compile" using a zip file.

Also refactored Compile.cpp to be easier to mock and test in the future.

Bug: 74574557
Test: aapt2_tests
Change-Id: Idb90cb97e23a219525bdead38220cbf7bc6f3cab
2018-08-14 15:42:01 -07:00
Ryan Mitchell
dc8d0be1e2 Merge "AAPT2: Update SDK development codename to Q" 2018-08-14 18:20:57 +00:00
Ryan Mitchell
eef1b6cd4b Merge "AAPT2: Adaptive icon refactor" 2018-08-14 18:20:57 +00:00
Ryan Mitchell
eb9c9ac8b8 AAPT2: Update SDK development codename to Q
Test: aapt2_tests
Change-Id: I815e0bfc786660d6ad70897287fb5fb21023068c
2018-08-14 09:33:22 -07:00
TreeHugger Robot
f2c5ee5900 Merge "AAPT2: partial files contain only local resources" 2018-08-13 18:07:38 +00:00
Ryan Mitchell
70f797208c AAPT2: Adaptive icon refactor
Part of a refactor to specify sdk version for all <adaptive-icons> xml
resources.

Bug: 79676805
Test: build success
Change-Id: I1cf1109103722a9562eaf6bf2dcd68d0ef8757eb
2018-08-13 07:37:24 -07:00
Ryan Mitchell
66f6cfb8a5 AAPT2: Add supported manifest elements
Adds some elements present in res/values/attrs_manifest.xml to manifest
parsing.

<additional-certificate> in <manifest><application><uses-static-library>
<meta-data> in <manifest><permission>
<package-verifier> in <manifest>
<restrict-update> in <manifest>

Bug: 79755007
Test: manual
Change-Id: I50520a99ce5ced9908001430b2108d7a5c71f8a7
2018-08-10 09:27:35 -07:00
Ryan Mitchell
83a37adfbb AAPT2: Loosen loading apk format requirements
The Android runtime and AAPT are more lenient of apk format, allowing
for duplicate enty, types, and configs. This change loosens the
ResourceTable's checks on resource uniqueness when apks are loaded; not
when ResourceTables are being created by aapt2.

Bug: 36051266
Test: Tested using apks in bug with allow_duplicates on and off
Change-Id: I9296417bf2dc53e1e891479a53679a0388210d50
2018-08-09 10:57:29 -07:00
Alex Light
5e11d609c6 Merge "Work around b/70221552" am: f06d3a9857 am: b2432b2ab3 am: 9cd6280f6b
am: 2810a9b852

Change-Id: Ib1d3ba042fba799f9061b74c0f78d77e830be1fd
2018-08-08 20:28:08 -07:00
Ryan Mitchell
792dbbb2ab Merge "AAPT2: Version code major flag" 2018-08-08 23:53:14 +00:00
Ryan Mitchell
d91a2df672 Merge "AAPT2: Do not overlay comments" 2018-08-08 23:48:37 +00:00
Alex Light
9cd6280f6b Merge "Work around b/70221552" am: f06d3a9857
am: b2432b2ab3

Change-Id: I07faa9adfd5e6589b9989be6056d994c5909408a
2018-08-08 14:57:25 -07:00
Alex Light
159799d7c9 Work around b/70221552
If one sets a sufficiently long OUT_DIR to build into the
//frameworks/base:framework-javastream-protos generate target will
fail due to trying to run a too-long command. This works around that
problem by making the command being run much smaller.

Test: Build
Bug: 70221552
Change-Id: I0134ccfc83469826d3ea8679e1c52b9b52c6d2e0
2018-08-08 09:52:51 -07:00
Ryan Mitchell
a9e316051b AAPT2: Do not overlay comments
Always take the original comment of a resource. Resources passed in
through regular file arguments and resources added using the -R and
--auto-add-overlay flags will keep the same comments when overlayed by
another resource.

This will allow R.java files to remain consistent across devices between
product overlays.

Bug: 70641212
Test: aapt2_tests
Change-Id: I4ed1037a8d42f7e77d85e5c2a8ee78051053831a
2018-07-31 16:11:49 -07:00
Ryan Mitchell
704090e02a AAPT2: Version code major flag
Adds flag --version-code-major that injects android:versionCodeMajor
into the manifest if none is present or when overriding.

Bug: 109883459
Test: aapt2_tests
Change-Id: I10b27abb8fa8a99a41976c42c4d684b99978b4f9
2018-07-31 22:06:24 +00:00
Mathew Inwood
a8ac749b40 Merge "Remove class2greylist from frameworks/base." am: 32979f03fe am: 1397d297f0 am: 8636f97bf0
am: bdb8a3b492

Change-Id: Id5df20e7353e7d199e92f7ea2eb4d3db8db1d383
2018-07-26 14:51:15 -07:00
Mathew Inwood
8636f97bf0 Merge "Remove class2greylist from frameworks/base." am: 32979f03fe
am: 1397d297f0

Change-Id: I50b72dab019a91d6d5a79d2b28079ef9e40b965d
2018-07-26 13:11:01 -07:00
Mathew Inwood
1397d297f0 Merge "Remove class2greylist from frameworks/base."
am: 32979f03fe

Change-Id: I72f8797be98fe75806535da7b9f277ae68db8d57
2018-07-26 11:55:02 -07:00
Mathew Inwood
f364aedecb Remove class2greylist from frameworks/base.
It's moving to a new home under art/tools, since it is needed by
branches which don't include frameworks/base.

Bug: 110868826
Test: Build master-art branch
Change-Id: Ice8324db52ae1e7e2ac6734e45874a66de935c9a
2018-07-26 15:57:05 +01:00
Mathew Inwood
2b2b6a1698 Merge "Update annotation name in class2greylist." am: 6c32f5d18e am: 7393f85a6e am: d8058375f0
am: cae7c2e953

Change-Id: Iecc746cb8ec5144fc613af2a761c78c604486e3c
2018-07-25 05:26:41 -07:00
Mathew Inwood
d8058375f0 Merge "Update annotation name in class2greylist." am: 6c32f5d18e
am: 7393f85a6e

Change-Id: I0fd8a3ee7d3b1deca76c989328a76c06274b736b
2018-07-25 05:09:10 -07:00
Mathew Inwood
7393f85a6e Merge "Update annotation name in class2greylist."
am: 6c32f5d18e

Change-Id: I1a1f79a7a95814e37d337f1bb6bd10aa545cfaf9
2018-07-25 04:54:37 -07:00
Izabela Orlowska
f67d486e58 AAPT2: partial files contain only local resources
When writing a partial R file for the compiled file, only include
resources defined locally - meaning those without a package. Do not
write resources from other packages (e.g. "android").

Test: manual
Bug: 73927419
Change-Id: I84241352e643ca1f22a581e6847372e2a4278824
2018-07-25 09:50:15 +00:00
Mathew Inwood
738a23fbeb Update annotation name in class2greylist.
Annotation was added with name @UnsupportedAppUsage after Android API
council discussion.

Bug: 110868826
Test: m class2greylist
Change-Id: I63ad61e97c5e8fdebfcead9e4ee5b060a60f97c7
2018-07-25 09:45:04 +01:00
Todd Kennedy
196dbc379b Mark symbols as dynamic for shared libraries
Bug: 111425000
Change-Id: Ic1a68ac90d5e0443a536ee9ce75a72bc370cd673
Test: build, install and run the shared library test application
2018-07-24 21:55:12 +00:00
Izabela Orlowska
148cd8c0bc Merge "Revert "AAPT2: Automatic Static Library Namespacing."" 2018-07-24 11:33:46 +00:00
Xin Li
dc0144d0d7 Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master" into stage-dr1-aosp-master 2018-07-23 20:53:48 +00:00
Mathew Inwood
ec9ecd41f2 Merge "Add new "class2greylist" tool." am: 7f0aa734a3 am: 812291cc46 am: 6119634dba
am: 7ca4fcec4a

Change-Id: I357b05418c4a699ed2100bb45c88043d7c3f1d74
2018-07-23 12:07:13 -07:00
Mathew Inwood
7ca4fcec4a Merge "Add new "class2greylist" tool." am: 7f0aa734a3 am: 812291cc46
am: 6119634dba

Change-Id: Ib7df082dcf104549f0a2b0dbb830a912b1313a17
2018-07-23 10:24:14 -07:00
Mathew Inwood
812291cc46 Merge "Add new "class2greylist" tool."
am: 7f0aa734a3

Change-Id: I7d53d60ea3537530a9e21e2de2f53eb764f7d0b5
2018-07-23 10:08:47 -07:00
Chris Warrington
58e2fbf169 Revert "AAPT2: Automatic Static Library Namespacing."
This reverts commit 481f027ddc.

Reason for revert: Not needed any more

Bug: 111543815
Test: existing unit and integration tests
Change-Id: I87b039192682636d81c2d33512495cb005c9504d
2018-07-23 17:23:25 +01:00
Mathew Inwood
6395690ec9 Add new "class2greylist" tool.
This extracts signatures of methods that have the @UsedByApps annotation
for generating the greylist. It will be integrated into the build to
replace many members on greylist.txt.

Test: $ atest class2greylisttest
Bug: 110868826
Change-Id: Ifaf5859b60076c051de6be5a912ef70734330ce7
2018-07-23 14:39:19 +01:00
Siyamed Sinir
cc8dc1d688 Merge "Remove requirement for kiss emoji should have gender" into pi-dev
am: 228bf4f320

Change-Id: I9168be274a5ced20d8ddbf1ef6475dfec82262ef
2018-07-20 17:31:54 -07:00