Commit Graph

25140 Commits

Author SHA1 Message Date
Bowgo Tsai
3bf31401fe Move SdkSetup.apk to vendor partition
Otherwise, it causes the CTS-on-GSI failure on non-emulator devices:
  CtsPermission2TestCases android.permission2.cts.PrivappPermissionsTest#testPrivappPermissionsEnforcement

Because non-emulator devices lack the permission file in their /vendor.
  /system/priv-app/SdkSetup/SdkSetup.apk
  /vendor/etc/permissions/privapp-permissions-goldfish.xml

Bug: 110517983
Test: boot a GSI and checks that SdkSetup.apk is moved to /vendor
Change-Id: I3086f99c477eeca38f42041e1809a5aa3b8bfa7a
2018-07-17 18:18:46 +08:00
Christopher Ferris
3cce3c1df9 Merge "Refactor native heap viewer to add tests." am: cd2f1cfed2
am: 9669de4c9e

Change-Id: I04d1a0972aea856517bbe6525a17e60cc8db8536
2018-07-16 14:34:18 -07:00
Christopher Ferris
9669de4c9e Merge "Refactor native heap viewer to add tests."
am: cd2f1cfed2

Change-Id: I6580a7d9624f27647f727889efb88f6e24ee0075
2018-07-16 14:28:04 -07:00
Christopher Ferris
cd2f1cfed2 Merge "Refactor native heap viewer to add tests." 2018-07-16 21:05:20 +00:00
Nan Zhang
b78c3a22f7 Wrap private-stub-annotations in android.jar
Test: javap -classpath classes.jar androidx.annotation.RecentlyNullable
Compiled from "RecentlyNullable.java"
interface androidx.annotation.RecentlyNullable extends java.lang.annotation.Annotation {
}
Bug: b/78245848

Change-Id: Ie28dea72e8795277e78a8fb0ff2173ab60c31078
2018-07-13 16:39:19 -07:00
Christopher Ferris
dfb5368b57 Refactor native heap viewer to add tests.
This only includes a few tests to start with.

Bug: 62492960

Test: Ran new unit tests.
Test: Ran with all different options and verified it produces the same
Test: output as the previous script.
Change-Id: Iad29a5f04f49986139c92030a3259cae512859af
2018-07-13 14:09:43 -07:00
Dan Albert
a0667c6268 Update zlib headers to 1.2.7.
The NDK's minimum target is now android-16 which had at least 1.2.7.

Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/230
Change-Id: I4e1e5b3613bdf54d101a99358107c5a52dd09d71
2018-07-13 12:20:54 -07:00
Logan Chien
68acaa4e15 Merge "Add vndk-lib-extra-list-current.txt" am: 6a226c1aca
am: 5e1ab1043a

Change-Id: I992d6eacc56c6671f54fa2af4cf888ee3bed1c8b
2018-07-13 09:19:40 -07:00
Logan Chien
5e1ab1043a Merge "Add vndk-lib-extra-list-current.txt"
am: 6a226c1aca

Change-Id: I613670f3dc1ac193374ad703245c5b76deff44d6
2018-07-13 09:13:32 -07:00
Treehugger Robot
6a226c1aca Merge "Add vndk-lib-extra-list-current.txt" 2018-07-13 16:03:48 +00:00
Logan Chien
55a421eaeb Add vndk-lib-extra-list-current.txt
This commit adds `vndk-lib-extra-list-current.txt`.  This file contains
the LLNDK/VNDK/SP-HAL shared libraries (and dependencies) that cannot be
specified in Android.bp.

Bug: 80521281
Test: make vts
Change-Id: If7b414589786dab424a21773bfd33f10b415d899
Merged-In: If7b414589786dab424a21773bfd33f10b415d899
(cherry picked from commit 7e177685d8)
2018-07-13 16:44:18 +08:00
Logan Chien
df7a23f11c Merge changes I5199a7e9,I386ab7c1,I2038c77c am: 524fc465ec
am: 5c9f06ae45

Change-Id: I5aca7389a57392904c5f68f14036e67ab8cc709f
2018-07-12 08:12:52 -07:00
Logan Chien
5c9f06ae45 Merge changes I5199a7e9,I386ab7c1,I2038c77c
am: 524fc465ec

Change-Id: Ic7acf2fc2c83eb92129a1d74d8fff1a61683acd9
2018-07-12 08:09:50 -07:00
Treehugger Robot
524fc465ec Merge changes I5199a7e9,I386ab7c1,I2038c77c
* changes:
  sourcedr: Add more project analysis filters
  sourcedr: Check whether paths map to projects
  vtable-dumper: Update test script
2018-07-12 14:58:30 +00:00
Logan Chien
bec07164e5 sourcedr: Add more project analysis filters
This commit adds `--has-group`, `--only-has-group`, and
`--without-group` to filter projects.

Test: analyze_manifest_split.py -b Android.bp -m .repo/manifest.xml \
  --has-group=system_only
Test: analyze_manifest_split.py -b Android.bp -m .repo/manifest.xml \
  --only-has-group=vendor_only
Test: analyze_manifest_split.py -b Android.bp -m .repo/manifest.xml \
  --without-group=both

Change-Id: I5199a7e940538e73a1af19cfd78afbe4427d6e3b
2018-07-12 20:29:23 +08:00
Logan Chien
7e9606dc3e sourcedr: Check whether paths map to projects
This commit checks whether the path maps to a git project specified in
`manifest.xml`.  If it does not map to a git project, emit an error and
skip it.  If we don't do so, an exception will be raised because the
`sorted()` function cannot compare `None` object with `str` object.

Test: Add a project to external and it does not stop the analyzer.
Change-Id: I386ab7c1f76d5630a2c5f43186f38a791a3bb7b9
2018-07-12 19:32:23 +08:00
Logan Chien
83fec1025c vtable-dumper: Update test script
Test: tests/test_vndk_vtable_dumper.py
Change-Id: I2038c77c930ab9b0d70b54d7e73c1a88a0c7f725
2018-07-12 19:25:00 +08:00
Christopher Ferris
7920996a4a Merge "Detect if num field is valid on v1.0 version." am: 1ae3edd54b
am: 81052a3c85

Change-Id: I3d2463d701a4a1e003064f735601425ab1373ca8
2018-07-10 14:25:11 -07:00
Christopher Ferris
81052a3c85 Merge "Detect if num field is valid on v1.0 version."
am: 1ae3edd54b

Change-Id: Ie14c18b08b3c8f9079c44645fe1ddb533e439d7b
2018-07-10 14:22:07 -07:00
Treehugger Robot
1ae3edd54b Merge "Detect if num field is valid on v1.0 version." 2018-07-10 21:13:38 +00:00
Christopher Ferris
ad7d5fb378 Detect if num field is valid on v1.0 version.
In Android P, the version field did not get incremented properly in
all places. So if a file with a v1.0 version is found, do a further check
to verify if the num field is really valid.

Test: Verified that a file with v1.0 gets checked and the valid num field
Test: is set correctly.
Test: Verified that a file with v1.1 automatically gets num field set to
Test: valid.
Change-Id: I7f828294c833e334cad76a866bbaa1d78ac02cfb
Merged-In: I7f828294c833e334cad76a866bbaa1d78ac02cfb
(cherry picked from commit b558fe4d53)
2018-07-10 12:25:33 -07:00
David Brazdil
607ab65b86 Merge "Compile API stubs to dex" am: 252f328bc9
am: 0ab65b3182

Change-Id: I26f2b3e8f24090ea8f06ebeae2d986cc0606ac56
2018-07-10 09:32:55 -07:00
David Brazdil
0ab65b3182 Merge "Compile API stubs to dex"
am: 252f328bc9

Change-Id: I7d9d0207b94cd65de74084fb38054e0ffdc89d81
2018-07-10 09:15:23 -07:00
David Brazdil
252f328bc9 Merge "Compile API stubs to dex" 2018-07-10 15:59:35 +00:00
David Brazdil
51c1288030 Compile API stubs to dex
Add 'compile_dex' flag to API stub rules. Soong will generate build
targets which compile the JARs into dex files. Those will be compared
against the boot class path dex files to determine the public API surface.

Bug: 79409988
Test: m android_stubs_current, check javalib.jar contains classes.dex
Change-Id: Ie7238572ece0678133ba08203108a923ea2f56ba
2018-07-10 10:31:11 +00:00
bohu
7b936a4fb4 emulator: bump sdk image revision to 4
am: f29bc6c5da

Change-Id: Ie389a209c4e486d5d0be9529481a6eb26eb31310
2018-07-06 12:37:11 -07:00
bohu
f29bc6c5da emulator: bump sdk image revision to 4
For DP5 release of emulator system images

BUG: 111204833

this cl does not impact real devices

Change-Id: I32b0421dbadbf9dade9df33396bf041092e7cfd6
2018-07-06 08:59:15 -07:00
Logan Chien
33344a7ada Merge "vtable-dumper: Add loganchien to OWNERS" am: 532d1aa70f
am: f4d6ea8842

Change-Id: I913a6a42429bcc2e0ed7d1f4e0b7d60cd4125126
2018-07-06 03:45:35 -07:00
Yi-yo Chiang
0b6eb8bf32 Merge "Fix vtable boundary check in vndk-vtable-dumper" am: 3369b670ac
am: 7268e66d3a

Change-Id: I6de6b895214f5ff3fb1e838d3a743b9f6e2379d1
2018-07-06 03:45:03 -07:00
Logan Chien
f4d6ea8842 Merge "vtable-dumper: Add loganchien to OWNERS"
am: 532d1aa70f

Change-Id: I73510d7c2d519dab5f504251854888ef28ca2a00
2018-07-06 03:41:24 -07:00
Yi-yo Chiang
7268e66d3a Merge "Fix vtable boundary check in vndk-vtable-dumper"
am: 3369b670ac

Change-Id: I85b0c51f4d68bc5fa4644ae00a8ef3d1ac5aa1cb
2018-07-06 03:40:57 -07:00
Treehugger Robot
532d1aa70f Merge "vtable-dumper: Add loganchien to OWNERS" 2018-07-06 10:38:18 +00:00
Treehugger Robot
3369b670ac Merge "Fix vtable boundary check in vndk-vtable-dumper" 2018-07-06 10:31:38 +00:00
Logan Chien
502af5c406 vtable-dumper: Add loganchien to OWNERS
Test: n/a
Change-Id: I40d89fa90fdd1bf1be0b02ba7986ebdac98847ef
2018-07-06 16:08:40 +08:00
Yi-yo Chiang
a203b62ab9 Fix vtable boundary check in vndk-vtable-dumper
Add check for vtable boundary in identifyVTable().
Fix check for section boundary in identifyAddend().

Test: vndk-vtable-dumper libtest1.so -mangled
Bug: 111146760
Change-Id: If1369760823323f3bc5094121a5ce510714f8a93
2018-07-05 17:37:13 +08:00
Colin Cross
bf540d3cb3 [automerger skipped] Pass compiled metalava stub classes through metalava again
am: 41e49c3381  -s ours

Change-Id: I5cd00b871c093d183c0378d5df50e42a317925af
2018-07-03 16:25:37 -07:00
Logan Chien
e3411c674a Merge "repo-review: Add abandon command line option" am: f35b6297a1
am: dd0c71edcd

Change-Id: I55eb766ced74f5376a22d0e66535b3f099251f0f
2018-07-02 21:44:24 -07:00
Logan Chien
dd0c71edcd Merge "repo-review: Add abandon command line option"
am: f35b6297a1

Change-Id: I453bcb6e730cca58bcb9c62e24e37f6a3befc311
2018-07-02 21:40:04 -07:00
Logan Chien
f35b6297a1 Merge "repo-review: Add abandon command line option" 2018-07-03 04:29:33 +00:00
Logan Chien
b260a60264 repo-review: Add abandon command line option
This commit adds `--abandon` comand line option to abandon several
change lists.

Test: repo-review.py -g [url] [query] --abandon '[reason]'
Change-Id: I5360e95a284a2d3e77a66d52ea01cec7872b9334
2018-07-03 10:29:30 +08:00
Colin Cross
41e49c3381 Pass compiled metalava stub classes through metalava again
Use metalava --rewrite-annotations to pass the compiled sdk stub
class files through metalava again to make the annotations package
private.

Bug: 110532131
Test: m out/target/common/obj/JAVA_LIBRARIES/metalava_android_stubs_current_intermediates/classes.jar
Change-Id: I124e8d89075ec682e9fc3602ef232492bed849aa
Merged-In: I5180bc18979415cec6255beb3fe2c48ec298d3ae
2018-07-02 12:19:13 -07:00
Hsin-Yi Chen
f400a2727a Merge "Show thunk symbols in vtables" am: 321b110998
am: cda676761a

Change-Id: Ib8e23209642df478211893abbe858972d7a92caf
2018-07-01 21:13:27 -07:00
Hsin-Yi Chen
cda676761a Merge "Show thunk symbols in vtables"
am: 321b110998

Change-Id: I101bd3c34f04f56c69aecf4ce4828ecaa713cadf
2018-07-01 21:09:21 -07:00
Hsin-Yi Chen
321b110998 Merge "Show thunk symbols in vtables" 2018-07-02 02:11:04 +00:00
Hsin-Yi Chen
cd1eada7b0 Show thunk symbols in vtables
- Convert method declarations to thunk symbols if thunk information
  exists.
- Add a test case and reference dumps for virtual inheritance.

Bug: 80671888
Test: ./tests/test.py
Change-Id: I55ecbd7c8b0f5b0f534d81e6c6967f99ffd1d42e
2018-06-29 10:57:31 +00:00
Logan Chien
206cc364a7 Merge "header-checkers: Add loganchien to OWNERS" am: c79e4a961b
am: 3da4df881f

Change-Id: Ida8ee7c9e84eb489fa66934f901d69fe50200cd5
2018-06-28 22:17:23 -07:00
Logan Chien
3da4df881f Merge "header-checkers: Add loganchien to OWNERS"
am: c79e4a961b

Change-Id: I6f035b4d971520bcbf50914c696289c1a58e18fe
2018-06-28 22:13:15 -07:00
Logan Chien
c79e4a961b Merge "header-checkers: Add loganchien to OWNERS" 2018-06-29 05:03:32 +00:00
Logan Chien
d014da7490 header-checkers: Add loganchien to OWNERS
Test: n/a
Change-Id: I2fde4fc8927fcfd6ddceadc9e6f75d3d9fabfe66
2018-06-29 10:47:24 +08:00
Dan Albert
90f910a7bd Merge "Allow restart in gdbclient." am: 2e4640f468
am: 590650db07

Change-Id: I0078a0c34c849992722b00f0c41cb274c5320673
2018-06-26 13:26:56 -07:00