Commit Graph

25016 Commits

Author SHA1 Message Date
Yi-yo Chiang
5c8b92b3c3 create_reference_dumps.py: Change lsdump_paths.txt to newline-separated paths
Split the content of lsdump_paths.txt with newline.

Bug: 111814844
Test: m vndk findlsdumps -j18
Test: ./utils/create_reference_dumps.py -products aosp_arm64
Change-Id: I76ed008382fff8589d29ab97720d262a7636d523
2018-07-26 10:24:29 +08:00
Mads Ager
37be299ada Merge "Update version of D8 in buildtools to latest stable version (1.0.35)"
am: bb0e2b1a6f

Change-Id: I4bbbb66f833ed1536c78bbd6364341c756ff6d0a
2018-07-25 00:21:55 -07:00
Mads Ager
bb0e2b1a6f Merge "Update version of D8 in buildtools to latest stable version (1.0.35)" 2018-07-25 07:11:54 +00:00
Nan Zhang
c35a0c7ae3 Merge "Wrap private-stub-annotations in android.jar"
am: d5814e0760

Change-Id: I81934dfe8a6fac2958f5efe1663bf35c1c35d006
2018-07-24 17:06:52 -07:00
Nan Zhang
7ef23e5e55 Merge "Use android.jar from Metalava."
am: e973f6de0f

Change-Id: I6ad90d2a1d87f99932760f41dc61dd5d4ba56be4
2018-07-24 17:06:36 -07:00
Nan Zhang
d5814e0760 Merge "Wrap private-stub-annotations in android.jar" 2018-07-24 22:44:12 +00:00
Nan Zhang
e973f6de0f Merge "Use android.jar from Metalava." 2018-07-24 22:44:12 +00:00
Mads Ager
0dec39ec21 Update version of D8 in buildtools to latest stable version (1.0.35)
The version used to build the platform at a given point in time
might not be the best to use for external developers. Sometimes
bugs in old VMs have to be worked around in D8. Those bugs do
not affect the platform build, but could affect other users.
Therefore, we use separate versions for building the platform
and for shipping in buildtools.

Additionally, make sure that the licenses for libraries shipped
with D8 are reflected in the buildtools NOTICE file.

Test: make -j PRODUCT-sdk_phone_armv7-win_sdk sdk_repo
Test: make -j PRODUCT-sdk_arm64-sdk sdk_repo
Bug: 111748733

Change-Id: I0ca07e45647ea95816f5e96e991673ee24ed9983
2018-07-24 06:55:59 +00:00
Yi-yo Chiang
088bdf1af4 Merge "Add is_inlined and is_pure property to header-abi-dump"
am: 54e9654768

Change-Id: I197b7da5c6dfb5d743a8a16565654846176a13d2
2018-07-23 19:04:04 -07:00
Josh Gao
3140c7e495 Merge "pid: switch to pgrep."
am: 3aa9457410

Change-Id: Ie2cbb889773651c922095a7fa7ae983c8431b1d8
2018-07-23 19:00:14 -07:00
Treehugger Robot
54e9654768 Merge "Add is_inlined and is_pure property to header-abi-dump" 2018-07-24 01:58:33 +00:00
Treehugger Robot
3aa9457410 Merge "pid: switch to pgrep." 2018-07-24 01:45:52 +00:00
Josh Gao
f080bf1f76 pid: switch to pgrep.
Fix a bug where processes that didn't have a leading space from right
justification of the pid column would return the process name instead
of the pid, by switching to pgrep.

Bug: http://b/111748205
Test: manual
Change-Id: I3493474540ccfa89f5bb3e66153d9e96ec8bf1d9
2018-07-23 17:01:42 -07:00
Yi-yo Chiang
0218a940cb Add is_inlined and is_pure property to header-abi-dump
- abi_dump.proto: Adds is_inlined and is_pure flag to VTableComponent.
is_inlined means a virtual function is inlined and probably not exported.
is_pure means a virtual function is pure and probably not exported.

Bug: 80217511
Test: ./tests/test.py
Change-Id: Ic1562ed47faba1f3d7eec6dffe94991296ba7176
2018-07-23 14:58:03 +08:00
Antoan Angelov
b0ed71b318 Merge "Revert "Move SdkSetup.apk to vendor partition""
am: e6964f00a8

Change-Id: Id38c8952fe64a84212907d0c17acf05baf00e897
2018-07-19 06:04:05 -07:00
Antoan Angelov
e6964f00a8 Merge "Revert "Move SdkSetup.apk to vendor partition"" 2018-07-19 12:59:18 +00:00
Antoan Angelov
e867e27a3b Revert "Move SdkSetup.apk to vendor partition"
This reverts commit 3bf31401fe.

Reason for revert: Build cop revert because this change is breaking Blueline builds. 

Change-Id: I54f87f21eec0e93873ffedec6b0bbe154584ba4b
2018-07-19 12:57:33 +00:00
Bowgo Tsai
208ebb195c Merge "Move SdkSetup.apk to vendor partition"
am: 2cf91f337c

Change-Id: I26ab29dda2efe61b2831d4a59062bd97c881218e
2018-07-18 23:30:18 -07:00
Treehugger Robot
2cf91f337c Merge "Move SdkSetup.apk to vendor partition" 2018-07-19 06:18:25 +00:00
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
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
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
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
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
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
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
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
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