Commit Graph

25016 Commits

Author SHA1 Message Date
Josh Gao
3dffb8438d Move pid, stacks from envsetup.sh to dedicated scripts.
Make it so that these can be used in other scripts by moving them from
functions defined in envsetup.sh to standalone scripts.

Test: stacks zygote64
Change-Id: I55ba76b248c54d9193fb019b7f4aca2f4c3a05bd
2018-06-14 16:36:12 -07:00
Josh Gao
91ba53c4b9 stacks: match exactly before matching nonexactly.
`pid zygote` will match zygote64 as well, but someone using `stacks
zygote` clearly wants the 32-bit version. Attempt an exact match before
we try a nonexact one.

Test: stacks zygote
Test: stacks zygote64
Change-Id: I5fd75cdbe4982c7ea831749c9ba823a2451e5490
2018-06-14 16:36:12 -07:00
Andreas Gampe
a5a9763fdb Merge "Script: Fix disassemble_tombstone.py"
am: 9a2f49a71a

Change-Id: I26497e24d245eb0c035b9807bab34c7873abde6b
2018-06-14 08:38:26 -07:00
Treehugger Robot
9a2f49a71a Merge "Script: Fix disassemble_tombstone.py" 2018-06-14 15:26:23 +00:00
Nan Zhang
b28bc7e67c Add Metalava based android.jar targets in Androi.bp
Test: m -j metalava_android_stubs_current
Bug: b/78245848
Change-Id: I5720659a72a91a08aebc4631e23001384fdf8264
2018-06-13 17:47:05 -07:00
Andreas Gampe
64676442d4 Script: Fix disassemble_tombstone.py
Update for newer debuggerd output marking the memory dump around
the currently executed code.

Add a hack for ARM assembly: override the assembler-emitted $d
symbol marking all our .byte data, so that objdump will disassemble
as instructions.

Test: manual
Change-Id: I100ed9e0ce39c073d5885cc430d78c24fef38882
2018-06-13 14:32:54 -07:00
Jae Shin
49573916dc [automerger skipped] Merge changes Ic87a736b,I5bc9f541
am: ebd4567902  -s ours

Change-Id: I619520659d26cf59c585d66c70c0fa9fd5d6ebe1
2018-06-11 21:22:23 -07:00
Treehugger Robot
ebd4567902 Merge changes Ic87a736b,I5bc9f541
* changes:
  Change file permission of checkvintf binary
  Allow specifying null vbmeta.img for production system.img
2018-06-12 02:22:32 +00:00
Jae Shin
58bd771991 Change file permission of checkvintf binary
Make checkvintf binary executable by setting file permission to
755

Test: development/vndk/tools/build_mixed -v 8.1.0
-m development/vndk/tools/modify_system_img.sh
system_dir device_dir out_dir system_dir/checkvintf
Bug: 74214049

Merged-In: Ic87a736b5a9e7c64fd69fac76404994fabff635f
Change-Id: Ic87a736b5a9e7c64fd69fac76404994fabff635f
(cherry picked from commit f82df5a747)
2018-06-11 10:51:25 +09:00
Jae Shin
341a55f1ef Allow specifying null vbmeta.img for production system.img
For a system image that is not a GSI but built for a specific
product (e.g. Pixel 2 system image), in order to be
flashed on a device of an older Android version, the vbmeta.img
must be replaced by a null vbmeta.img built by avbtool.

Bug: 78215452
Test: development/vndk/tools/build_mixed -v 8.1.0
-m development/vndk/tools/modify_system_img.sh
-p <null_vbmeta_image_path> gsi_build_dir device_build_dir out_dir
<check_tool>

Merged-In: I5bc9f541f177205d548a0e2e97eb169686567bd5
Change-Id: I5bc9f541f177205d548a0e2e97eb169686567bd5
(cherry picked from commit e4a6d70f47)
2018-06-11 10:51:08 +09:00
Xin Li
73dc9d8c41 Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master
Bug: 79597307
Change-Id: Ifaec2119ba82252c290f247f120150b7468886a3
2018-06-08 11:06:50 -07:00
Bowgo Tsai
7e0c470acd Merge "repo-review: Fix missing imports"
am: 24657efd31

Change-Id: I7b6b44e32e90182d18f9dd3fbab77be143052aaf
2018-06-08 03:59:48 -07:00
Treehugger Robot
24657efd31 Merge "repo-review: Fix missing imports" 2018-06-08 10:52:26 +00:00
Remi NGUYEN VAN
2d38c620de Merge "Add --no-hidden-api-checks to runtest"
am: 66331409f1

Change-Id: Idb32b0287da0ec5caf35074c5728c909469726f6
2018-06-08 02:40:36 -07:00
Remi NGUYEN VAN
66331409f1 Merge "Add --no-hidden-api-checks to runtest" 2018-06-08 09:28:13 +00:00
Bowgo Tsai
33b91c1932 repo-review: Fix missing imports
Bug: None
Test: ./repo_review.py -g [gerrit] query -l Code-Review +2
Change-Id: Iafac171193299ec3894f9674df08cbdcc213af8b
2018-06-08 17:00:46 +08:00
Jayant Chowdhary
d8e44b2ed0 Merge "header-abi-diff: Add a flag to consider opaque types with different names structurally unequal." am: 73ea62cf25
am: dfe45fdd6e

Change-Id: I23ffd2e2e74c6e32f3aec7262fbd2c9b1af5f979
2018-06-07 16:41:42 -07:00
Jayant Chowdhary
dfe45fdd6e Merge "header-abi-diff: Add a flag to consider opaque types with different names structurally unequal."
am: 73ea62cf25

Change-Id: I26bc6587e730fad442fda69b88aa368dee30d099
2018-06-07 13:21:27 -07:00
Jayant Chowdhary
73ea62cf25 Merge "header-abi-diff: Add a flag to consider opaque types with different names structurally unequal." 2018-06-07 19:21:49 +00:00
Po-Chien Hsueh
96f7de1e43 Merge "Compare results across ABIs" am: 02e55c34d8
am: 746049fd39

Change-Id: I31623d7a7196cd3d00c62b0a885babc8aad2b128
2018-06-07 11:28:26 -07:00
Po-Chien Hsueh
746049fd39 Merge "Compare results across ABIs"
am: 02e55c34d8

Change-Id: If34e4eeb46d2401ff88db39addaa98a7da02e18a
2018-06-07 10:59:46 -07:00
Raju Kulkarni
8e616e1aa3 Merge "Updating Emulator System images version number for DP4 release" into pi-dev
am: eae9dfd887

Change-Id: I954083ef85553d6e31ad9a2317529e9a74c77695
2018-06-07 10:40:40 -07:00
Treehugger Robot
02e55c34d8 Merge "Compare results across ABIs" 2018-06-07 17:35:46 +00:00
Raju Kulkarni
eae9dfd887 Merge "Updating Emulator System images version number for DP4 release" into pi-dev 2018-06-07 17:11:02 +00:00
Po-Chien Hsueh
21d011cc08 Compare results across ABIs
We need to compare results between x86 and arm. 32bit and 64bit.

Bug: 79442777
Test: run the script against x86_64 Emulator and Pixel 2
Change-Id: I47ced1cfed7539c1c8cc0c84eaaa8b4ac69b69be
2018-06-07 15:59:50 +08:00
Logan Chien
3715eae4db Merge "repo-patch: Download patch files from Gerrit" am: 7cc827ff88
am: 270f1eeeec

Change-Id: Ifc73b2c148ad2228610a3ec13a90d949d03a770d
2018-06-07 00:24:02 -07:00
Logan Chien
270f1eeeec Merge "repo-patch: Download patch files from Gerrit"
am: 7cc827ff88

Change-Id: Ic5f56899c455faf100f02c661a0fdc88c7a6e1f3
2018-06-07 00:02:46 -07:00
Logan Chien
7cc827ff88 Merge "repo-patch: Download patch files from Gerrit" 2018-06-07 06:08:44 +00:00
Logan Chien
27ff684538 Merge changes Iad120cef,I1f819c51,Ia87e5a80,I95e92c08 am: 10dd0c05bc
am: 13b3742c58

Change-Id: I778c99c29db7550f704e7b0440e7b2085908a91c
2018-06-06 21:54:25 -07:00
Logan Chien
13b3742c58 Merge changes Iad120cef,I1f819c51,Ia87e5a80,I95e92c08
am: 10dd0c05bc

Change-Id: I48e0ec3523396b0da2aaa807749f656c79f7ae0b
2018-06-06 21:09:05 -07:00
Jae Shin
16601bfa53 Change file permission of checkvintf binary
am: f82df5a747

Change-Id: I5f50d109b66a1dc799ef995288c8d459252bde48
2018-06-06 21:06:37 -07:00
Logan Chien
4721aa1eed repo-patch: Download patch files from Gerrit
This commit adds a utility to download multiple patch files from Gerrit
by a change list query.

Test: repo_patch.py -g [gerrit] [query]
Change-Id: I3685c48d2ea4e5a9fa1915c4e31bc6ebb2d4ed97
2018-06-07 11:02:01 +08:00
Logan Chien
10dd0c05bc Merge changes Iad120cef,I1f819c51,Ia87e5a80,I95e92c08
* changes:
  repo-pull: Support more git fetch protocols
  repo-pull: Check Gerrit Code Review domain name
  vndk-def: Ignore missing /vendor/default.prop
  vndk-def: Raise unknown vdex version exception
2018-06-07 02:20:00 +00:00
Jae Shin
f82df5a747 Change file permission of checkvintf binary
Make checkvintf binary executable by setting file permission to
755

Test: development/vndk/tools/build_mixed -v 8.1.0
-m development/vndk/tools/modify_system_img.sh
system_dir device_dir out_dir system_dir/checkvintf
Bug: 74214049

Change-Id: Ic87a736b5a9e7c64fd69fac76404994fabff635f
2018-06-07 10:25:57 +09:00
Raju Kulkarni
0b839b43b4 Merge "Updating Android Platform and Build Tools Version number for Android P DP4/Beta2 release Bug: 109675113 Test: N/A" into pi-dev
am: 08ea84aef4

Change-Id: I29ad66a3772feff0e881d680de7eb9c87aef9f45
2018-06-06 17:17:03 -07:00
Raju Kulkarni
a50ce37da5 Updating Emulator System images version number for DP4 release
Change-Id: I6ad73fe41f0a4e9c7d3143e1b19ea716080edce5

Bug: 109673687
Test: N/A
2018-06-06 23:18:53 +00:00
Raju Kulkarni
08ea84aef4 Merge "Updating Android Platform and Build Tools Version number for Android P DP4/Beta2 release Bug: 109675113 Test: N/A" into pi-dev 2018-06-06 23:16:45 +00:00
Jae Shin
844fcc639d Allow specifying null vbmeta.img for production system.img
am: e4a6d70f47

Change-Id: Ie31c928379b62225b123ae40762a2efcb3a545bb
2018-06-06 08:39:34 -07:00
Logan Chien
e9b0d96cf0 repo-pull: Support more git fetch protocols
This commit adds sso and rpc to git fetch commands.

Test: repo_pull.py pull -g [gerrit] [query]
Change-Id: Iad120cef4460ccc67b723467be638cc9299925fe
2018-06-06 18:32:50 +08:00
Logan Chien
3f67c28b52 repo-pull: Check Gerrit Code Review domain name
This commit adds a search on Gerrit Code Review URL so that a better
error message can be shown to users and the setup instructions can be
presented.

Test: repo_pull.py json -g [gerrit] [query]
Test: repo_review.py -g [gerrit] [query] -l Code-Review 2
Change-Id: I1f819c51e34c573f526ca3e30e237cdaf8a27160
2018-06-06 18:16:31 +08:00
Logan Chien
f216ff81f9 vndk-def: Ignore missing /vendor/default.prop
This commit catches FileNotFoundError so that VNDK definition tool can
work on the early devices that do not have /vendor/default.prop.

Test: vndk_definition_tool.py deps-insight \
  --system ${BULLHEAD_OC_MR1}/system \
  --vendor ${BULLHEAD_OC_MR1}/vendor

Change-Id: Ia87e5a80894c5f0ab3997dddfbb0332ed1ae5aef
2018-06-06 16:53:38 +08:00
Logan Chien
71e46e14d9 vndk-def: Raise unknown vdex version exception
This commit raises a ValueError if the vdex version is unknown.

Test: vndk_definition_tool.py check-dep --check-apk \
    --system ${ANDROID_PRODUCT_OUT}/system \
    --vendor ${ANDROID_PRODUCT_OUT}/vendor \
    --tag-file dataset/eligible-list-${VER}.csv

Change-Id: I95e92c08aa26433e575db482de75f1671bd1f017
2018-06-06 14:56:25 +08:00
Logan Chien
81866489e6 Merge "vndk-def: Revise vdex file parser" am: 099d6bebb1
am: 789de840b2

Change-Id: I1ce65ad158eb4d1d2b0602d28dcbba1bfaedc0d2
2018-06-05 20:29:35 -07:00
Logan Chien
789de840b2 Merge "vndk-def: Revise vdex file parser"
am: 099d6bebb1

Change-Id: I4012ae87d49e563b9f1345355bab4e807c175b99
2018-06-05 19:40:42 -07:00
Remi NGUYEN VAN
6686257924 Add --no-hidden-api-checks to runtest
New test tools are adding --no-hidden-api-checks when tests have
hidden-api-checks=false in their AndroidTest.xml, however this is not
supported by runtest. As only runtest is available in AOSP, this leaves
no option to make tests of internal classes pass.

Add an option to disable the check in runtest so we can still run tests in
AOSP.

Test: runtest frameworks-net still fails
Test: runtest --no-hidden-api-checks frameworks-net now passes
Change-Id: I9be9674d0bf2588ff509121273379f08d4cb3aea
2018-06-06 10:49:08 +09:00
Logan Chien
099d6bebb1 Merge "vndk-def: Revise vdex file parser" 2018-06-06 01:46:02 +00:00
Jae Shin
e4a6d70f47 Allow specifying null vbmeta.img for production system.img
For a system image that is not a GSI but built for a specific
product (e.g. Pixel 2 system image), in order to be
flashed on a device of an older Android version, the vbmeta.img
must be replaced by a null vbmeta.img built by avbtool.

Bug: 78215452
Test: development/vndk/tools/build_mixed -v 8.1.0
-m development/vndk/tools/modify_system_img.sh
-p <null_vbmeta_image_path> gsi_build_dir device_build_dir out_dir
<check_tool>

Change-Id: I5bc9f541f177205d548a0e2e97eb169686567bd5
2018-06-06 01:17:07 +00:00
Christopher Ferris
7b021e8a83 Merge "Add descriptive text describing html interaction." am: fa6b514d71
am: fb5b466040

Change-Id: I80337ca8d8ab35994d7cb7afbb3f3c4ace8c8851
2018-06-05 12:48:58 -07:00
Christopher Ferris
fb5b466040 Merge "Add descriptive text describing html interaction."
am: fa6b514d71

Change-Id: If8ee40384041729d2b1129ea9283c2bd69697167
2018-06-05 12:41:45 -07:00
Christopher Ferris
fa6b514d71 Merge "Add descriptive text describing html interaction." 2018-06-05 19:21:53 +00:00