Commit Graph

25865 Commits

Author SHA1 Message Date
Hsin-Yi Chen
96b977a3d4 Merge "Remove uncompressed prebuilt dumps before building new ones" 2018-12-17 02:08:43 +00:00
Xin Li
b255685d9f [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am: 6d1c7d843d -s ours
am: 7caa8a9446  -s ours

Change-Id: I70b64a54cedb6225d606504f1a4de5dd46991a28
2018-12-13 12:45:26 -08:00
Xin Li
7caa8a9446 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
am: 6d1c7d843d  -s ours

Change-Id: Iea337e4db534b77b05b27e3bf74b45e31e132722
2018-12-13 12:26:54 -08:00
Xin Li
9424963d21 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: c0df4815e7 -s ours
am: e2678d3a7c  -s ours

Change-Id: Id1ffa2abc29d38f222d2a1fb055aa8487d42a9e3
2018-12-13 12:13:34 -08:00
Xin Li
e2678d3a7c [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
am: c0df4815e7  -s ours

Change-Id: I6ffcb5a6cb52bf2e756d731c353a10c0c4591e74
2018-12-13 11:14:34 -08:00
Treehugger Robot
6d1c7d843d Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" 2018-12-13 05:45:20 +00:00
Hsin-Yi Chen
826831fae4 Remove uncompressed prebuilt dumps before building new ones
- Remove both .lsdump and .lsdump.gz files before
  create_reference_dumps.py builds new ABI dumps.
- Replace rm commands with Python built-in functions.

Bug: 120858317
Test: ./create_reference_dumps.py --llndk -libs libbinder_ndk
Change-Id: I11c50eaaba1cdd68f1f5f715293584a6fe0746c6
2018-12-13 12:44:14 +08:00
Xin Li
ef15b5ab55 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
am: d7a077528c  -s ours

Change-Id: Iddb783b7860ba6da04691e2ced11b4ff66fd07cb
2018-12-11 15:01:52 -08:00
Xin Li
c0df4815e7 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Bug: 120502534
Change-Id: Ia52654e6f224791d7a293f0dce80164ce5bcd6e0
2018-12-11 13:58:41 -08:00
Xin Li
d7a077528c DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
Bug: 120502534
Change-Id: I99562cc58d9144b53ddee5706ccc7245cd470936
2018-12-11 20:26:57 +00:00
Jimmy Chen
9698e38ec3 WiFiDirectDemo: fix no peer in list after m-release
After m-release, location permission is necessary for getting wifi scan
results, including p2p scan results.

Bug: 113998459
Test: manual test with two devices
Change-Id: I0f7e3578108c690bea382c41abd28b98fd1d5d31
2018-12-07 19:00:06 +08:00
Logan Chien
485fad0f03 Merge changes I865fb1a2,I6b10b606,Id2e3295d,Id547c963,I66e8ecd5 am: eefa3a7ca4
am: 32454b0ef2

Change-Id: I882c90efc18c58c3a32453d610e1e494175b6e34
2018-12-05 20:43:00 -08:00
Logan Chien
32454b0ef2 Merge changes I865fb1a2,I6b10b606,Id2e3295d,Id547c963,I66e8ecd5
am: eefa3a7ca4

Change-Id: Ic7126aa420ce10aedb107296cbd9ecaf93c70f95
2018-12-05 20:39:33 -08:00
Treehugger Robot
eefa3a7ca4 Merge changes I865fb1a2,I6b10b606,Id2e3295d,Id547c963,I66e8ecd5
* changes:
  def-tool: Hoist loop invariant
  def-tool: Add path filter for deps output
  def-tool: Scan ELF files in zip files
  def-tool: Add app-specific search path
  def-tool: Replace buf.size() with len(buf).
2018-12-06 04:13:19 +00:00
Logan Chien
a9e73f2aa8 def-tool: Hoist loop invariant
This commit hoists loop invariant (collect_symbols()) out of the loop.

Test: ./tests/run.py
Change-Id: I865fb1a2da96d1fdecd3689795d6c46e42d4783c
2018-12-05 18:25:41 +08:00
Logan Chien
2f443e5b6b def-tool: Add path filter for deps output
This commit adds `--path-filter` to the deps command so that we can
filter the relevant ELF files (and their dependencies) with a simple
command.

Test: ./tests/run.py
Change-Id: I6b10b60635ca660049e91292fb95a6e3deeeb090
2018-12-05 18:25:41 +08:00
Logan Chien
883aed31cd def-tool: Scan ELF files in zip files
This commit adds `--unzip-files` to the definition tool so that
definition tool will scan the ELF files in the APK files.

Bug: 120519679
Test: ./vndk_definition_tool.py deps-insight \
    --system ${ANDROID_PRODUCT_OUT}/system \
    --vendor ${ANDROID_PRODUCT_OUT}/vendor \
    --tag-file datasets/eligible-list-29.csv \
    -o output_html
Change-Id: Id2e3295d70f3d9ff060dd6b64121f2b0464ceece
2018-12-05 18:25:41 +08:00
Logan Chien
cfe57b029c def-tool: Add app-specific search path
This commit adds app-specific search paths for the native libraries in
APK files.

Bug: 120520550
Test: ./tests/run.py
Change-Id: Id547c963c4fb2cf2f29f9eb07a958f1d43e86b65
2018-12-05 18:25:37 +08:00
Logan Chien
6cbfcb8522 def-tool: Replace buf.size() with len(buf).
This commit replaces `buf.size()` with `len(buf)`.  The former
returns the file size and the later returns the mapped buffer size.
`len(buf)` is more general because `buf.size()` is only available to
`mmap` instances.

Test: tests/run.py
Change-Id: I66e8ecd5b475f4fc686aba062b3486ce4ac7f882
2018-12-05 14:29:36 +08:00
Jaewoong Jung
d17ddb966d Merge "Use filegroup for notice files." am: c78aa7e0a0
am: b548f318c2

Change-Id: Icd2b2aa74583439a282fb603a1757a29b71644c0
2018-11-30 08:27:22 -08:00
Jaewoong Jung
b548f318c2 Merge "Use filegroup for notice files."
am: c78aa7e0a0

Change-Id: If4b4516b852be8cad78d1b4e6b1bf914f28ecaa1
2018-11-30 08:23:00 -08:00
Jaewoong Jung
c78aa7e0a0 Merge "Use filegroup for notice files." 2018-11-30 14:48:18 +00:00
Hsin-Yi Chen
8f82142448 Merge "Add unit tests for header-abi-dumper -suppress-errors" am: fc6ca5c821
am: c84f56e8a2

Change-Id: I26f877a94263bff72e007778c85023b93f14bb56
2018-11-30 00:48:08 -08:00
Hsin-Yi Chen
c84f56e8a2 Merge "Add unit tests for header-abi-dumper -suppress-errors"
am: fc6ca5c821

Change-Id: Ie261d766f34499ed8de455f9ac1facaa462ba0ec
2018-11-30 00:32:37 -08:00
Jaewoong Jung
6fbb9d2a24 Use filegroup for notice files.
Update gen_buildfiles.py so that it generates filegroup-based notice
references. The previous usage that relied on the parent directory
pattern, '../', is no longer supported.

Test: Built successfully
Change-Id: Iddf334ed9c4e6139cc896a77e07b9eeb596c257e
2018-11-29 22:18:06 -08:00
Hsin-Yi Chen
fc6ca5c821 Merge "Add unit tests for header-abi-dumper -suppress-errors" 2018-11-30 04:38:58 +00:00
Bill Yi
b2e87ea21c Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Change-Id: I35c9ec1c2bad8b826ced7c3939f270676fc71a04
2018-11-28 18:33:36 -08:00
Logan Chien
53cc4042bf Merge "sourcedr: List apps with sharedUserId" am: 5b62b27784
am: 320f2ae1ee

Change-Id: Ib97279a60a764cad612a4cfa1c83ab06be963a22
2018-11-27 20:10:49 -08:00
Logan Chien
320f2ae1ee Merge "sourcedr: List apps with sharedUserId"
am: 5b62b27784

Change-Id: I73d00ae171e98dbf88bfa449059a250a3316c9f8
2018-11-27 20:05:42 -08:00
Logan Chien
5b62b27784 Merge "sourcedr: List apps with sharedUserId" 2018-11-28 03:49:56 +00:00
Hsin-Yi Chen
5bb24e4bbf Merge "Let header-abi-dumper get lookahead token from preprocessor" am: 4065033167
am: d73fb326dc

Change-Id: I4d95d5240c853b01a2ec57ecc96612da8b69f569
2018-11-21 19:12:10 -08:00
Hsin-Yi Chen
d73fb326dc Merge "Let header-abi-dumper get lookahead token from preprocessor"
am: 4065033167

Change-Id: I135bd2f1be9bc791f7606a8b932de62cd16550e8
2018-11-21 19:07:06 -08:00
Hsin-Yi Chen
4065033167 Merge "Let header-abi-dumper get lookahead token from preprocessor" 2018-11-22 02:54:10 +00:00
Logan Chien
f02508a27b sourcedr: List apps with sharedUserId
This commit adds `list_app_shared_uid.py` which lists apps with
sharedUserId in their AndroidManifest.xml.

Test: list_app_shared_uid.py -o out.csv ${ANDROID_PRODUCT_OUT}
Change-Id: I93949a79801364523790042dd3a362f6d5a58d0e
2018-11-21 15:37:31 +08:00
Hsin-Yi Chen
07f3dd52a8 Add unit tests for header-abi-dumper -suppress-errors
- Add undeclared_types.h and known_issues.h.
- Classify modules into LsdumpModule and SdumpModule.

Test: ./test.py
Bug: 117582158
Change-Id: Ia8d56d28e6bf37f6d8f746fa9505b51c44772294
2018-11-20 18:39:12 +08:00
Hsin-Yi Chen
14a392a9da Let header-abi-dumper get lookahead token from preprocessor
header-abi-dumper looks ahead one token to determine whether an
identifier is a template. This commit makes the dumper get token from
preprocessor so as to handle template instantiation in macro.

Test: ./test.py
Bug: 117582158
Change-Id: I0e3f3708ec98eba5353fee619f4cfbdc50570a59
2018-11-20 18:18:21 +08:00
Justin Yun
a648907a64 Merge "build_mixed script has '-s' option for product.img" am: 4619c3295c
am: cb5ab3812e

Change-Id: I2bc9a3e9418fe2111ed04ca301246adbc73e10f9
2018-11-20 01:08:19 -08:00
Justin Yun
cb5ab3812e Merge "build_mixed script has '-s' option for product.img"
am: 4619c3295c

Change-Id: I12142c275aa3d1c3df527162e860912bf506ce8b
2018-11-20 01:03:11 -08:00
Treehugger Robot
4619c3295c Merge "build_mixed script has '-s' option for product.img" 2018-11-20 08:53:25 +00:00
Justin Yun
07a77c8b3f build_mixed script has '-s' option for product.img
For independent system update, we update system.img only.
But the devies that has product partition has some system modules
installed in product partition. In that case, we must update product
partition as well for independent system update.

Use '-s' option without parameters to flash product.img in addition
to system.img for mixed build targets.

Bug: 119266183
Test: development/vndk/tools/build_mixed \
        -p out/prebuilt_cached/artifacts/system/vbmeta.img \
	-s \
	out/prebuilt_cached/artifacts/system \
	out/prebuilt_cached/artifacts/blueline \
	out/dist \
	out/prebuilt_cached/artifacts/system/checkvintf

Change-Id: I86da00630bde7e9e522160c98691087bca9d7d66
2018-11-20 13:58:20 +09:00
Jimmy Chen
d7b485a50c WiFiDirectServiceDiscovery: Create a thread for sending message
From Android 4.0, it is not allowed to do network io on main thread.
Do write method in another thread to adapt this change.

Bug: 113998459
Test: manual test with two devices

Change-Id: I0d251fab110d34167d47e9c3a50af3307b76d5b7
2018-11-20 10:22:33 +08:00
Jimmy Chen
fc884a6df0 WiFiDirectDemo: fix broken sample code
Sender sent the file indeed, but receiver cannot save content normally due to below reason:
1. App shouldn't create the directory in external storage root,
   it should put files in its application path.
2. It is not allowed using file:// uri for posting file content above API 24,
   it should be done by FileProvider.

Bug: 113998459
Test: manual test with two devices
Change-Id: Ie50dd64206009f07414a85262e725cc4d8ac1757
2018-11-20 10:22:33 +08:00
Hsin-Yi Chen
dc6695ca21 Merge "Let header-abi-dumper declare unknown types automatically" am: fcafbf84ee
am: 6ef900bcd4

Change-Id: I35e544e9526b8d8ac49dc8473757cae8428ffb0c
2018-11-15 22:50:29 -08:00
Hsin-Yi Chen
6ef900bcd4 Merge "Let header-abi-dumper declare unknown types automatically"
am: fcafbf84ee

Change-Id: If005234add470892bc7e15188c38756d4ef3733a
2018-11-15 22:46:10 -08:00
Hsin-Yi Chen
fcafbf84ee Merge "Let header-abi-dumper declare unknown types automatically" 2018-11-16 06:27:03 +00:00
Logan Chien
db37d35fa8 Merge "header-checker: Code cleanup" am: 3fc148f690
am: 24015b58e8

Change-Id: I91db5065da6e6046b0d5f387cc4248266c96312a
2018-11-15 01:50:20 -08:00
Logan Chien
24015b58e8 Merge "header-checker: Code cleanup"
am: 3fc148f690

Change-Id: I211936cce1176268dcb2005182fe85f442413207
2018-11-15 01:45:27 -08:00
Logan Chien
3fc148f690 Merge "header-checker: Code cleanup" 2018-11-15 09:30:32 +00:00
Hsin-Yi Chen
6d6193f63f Let header-abi-dumper declare unknown types automatically
When the compiler finds an unknown type, it queries ExternalSemaSource
for the declaration. If the type is not declared anywhere, the compiler
ignores the type name and sets the type to int.

To keep the type name in AST, this commit adds FakeDeclSource that
creates declarations for the unknown types.

Test: header-abi-dumper test.h -o test.txt -suppress-errors -dump-function-declarations -- -x c++
Bug: 117582158
Change-Id: I2d49b7a4f9e2a991224e6702938bc63744bba039
2018-11-15 09:18:51 +00:00
Logan Chien
a730419936 header-checker: Code cleanup
This commit breaks `HeaderAbiLinker::LinkAndDump()` into several
functions, moves `llvm::object::Binary`-related code to `SoFileParser`,
removes unused code in `IRReader`, and remove some space characters
before semicolon.

Test: ./tests/test.py
Change-Id: I9f90f07985c84ff95bf093c65ede091d44849e33
2018-11-13 14:46:13 +08:00