Commit Graph

33891 Commits

Author SHA1 Message Date
Treehugger Robot
9af4718984 Merge "Add a Python package for fetch_artifact." 2023-04-26 21:03:19 +00:00
Treehugger Robot
4b636d2df0 Merge "Generate license module from the vendor snapshot update.py" 2023-04-26 01:53:02 +00:00
Justin Yun
fc27ecc025 Generate license module from the vendor snapshot update.py
`notice` property is removed from the soong. The update.py script
will generate `license` module, instead.
It will use the information included in the snapshot json files.

Bug: 271539873
Test: generate all kinds of snapshots and build against them
Change-Id: I7bbbf8bcec2a8c6d16ec1e04888dd5adf24ae4c7
2023-04-26 00:30:43 +00:00
Hsin-Yi Chen
934663b2f0 Merge "Add README about opt-in ABI dumps" 2023-04-25 10:24:17 +00:00
Shaju Mathew
93396b2b35 Merge "Package version bump for U." 2023-04-20 19:36:53 +00:00
Shaju Mathew
faf2b3d078 Package version bump for U.
Test: treehugger

Bug: 279028960
Change-Id: Ie0553922f6c67bd9c15cb375ba335b646089a4ad
2023-04-20 16:44:06 +00:00
Inseob Kim
02b3862cda Merge "Add min_sdk_version prop to snapshots" 2023-04-20 07:36:58 +00:00
Junghoon Jang
e4f118be6f Merge "repo-pull: Introduce --ignore-unknown-changes arg" 2023-04-19 10:55:11 +00:00
Junghoon Jang
ac6afae3d6 repo-pull: Introduce --ignore-unknown-changes arg
In the case of pulling changes of a topic which is shared by multiple
repos, if the target source tree doesn't contain all of those repos,
the script will fail to apply changes.

Introduce a new argument, --ignore-unknown-changes, which ignores
changes whose repo is not in the manifest.xml.

Test: Pulling changes of a topic which is shared by multiple repos to
  the source tree which contains part of those repos was done
  successfully with the newly introduce argument.
Change-Id: Ie999121415bc1888b714d023ca251ad89701df11
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-18 15:52:07 +00:00
Inseob Kim
46628fff98 Add min_sdk_version prop to snapshots
Bug: 277403349
Test: build vndk/vendor snapshot and build
Change-Id: I460c69cbc5820132690c9d3fb325c5eb504f5366
2023-04-18 16:50:20 +09:00
Treehugger Robot
c973f68913 Merge "VNDK snapshot tool generates license information from json" 2023-04-18 05:33:10 +00:00
Justin Yun
9e48f54e06 VNDK snapshot tool generates license information from json
VNDK snapshot zip file includes license information in json files.
Instead of parsing the license text files, read the information from
the json files.
VNDK snapshot v33 and older do not include this information and must
parse the license text files as before.

Bug: 277317599
Test: generate snapshots with/without json information && m nothing
Change-Id: Ibdbc571c9effe6c17f5d82a7a0894ad2d800711f
2023-04-17 15:47:24 +09:00
Junghoon Jang
40e23904e3 Merge changes Iff3cdebe,I9d1add4f
* changes:
  repo-pull: Introduce --current-branch argument
  repo-pull: Consider branch of repo
2023-04-17 05:15:57 +00:00
Hsin-Yi Chen
74e23a1ec1 Merge "Fix the internal type of enum values" 2023-04-17 02:37:43 +00:00
Dan Albert
d9f4d6f651 Add a Python package for fetch_artifact.
We keep duplicating this function all over the place. Factor it out
and modernize it.

Test: all the test commands named in the readme
Bug: None
Change-Id: I8d90a9c101b9cf83d62d02141f40c6c3666bdf94
2023-04-14 14:30:43 -07:00
Junghoon Jang
108c36c52b repo-pull: Introduce --current-branch argument
To make the script can be used from automatic scripts, introduce
`--current-branch` argument which allows pulling commits to the current
branch without creating a local branch. It will skip the prompt which
asking about the creation of a local branch.

Test: With --current-branch argument, the script doesn't ask setting
  local branch name.
Change-Id: Iff3cdebe6338bb2be738e60047d5c4dd81cde4f0
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-14 12:25:29 +00:00
Junghoon Jang
172ccfe52d repo-pull: Consider branch of repo
In the case of one source tree containing multiple repos with the same
project, but different branches, the script won't sync them properly.
To fix it, make it consider the branch along with the project.

Test: Tested syncing well in the directory which contains multiple repos
  with the same project, but different branches.
Change-Id: I9d1add4ffe85f80f8f9d6a3ae2c046473d7c4631
Signed-off-by: Junghoon Jang <junghoonjang@google.com>
2023-04-14 12:24:51 +00:00
Hsin-Yi Chen
35fabff46a Add README about opt-in ABI dumps
- Add the commands to write Android.bp, create reference dumps, and
  find the generated dumps.
- Remove "persistent-" from the repo command as it's internal only.

Test: None
Bug: 227282691
Change-Id: I07dc947c0436e2a0e7e5b3a4f812800bd7df2720
2023-04-14 19:31:49 +08:00
Hsin-Yi Chen
62081d11b4 Fix the internal type of enum values
EnumFieldIR has member functions that determine whether the enum value
is signed. The JSON dumper uses the functions to distinguish between
negative values and values >= (1 << 63).

Bug: 277299761
Test: ./test.py
Change-Id: If5f3a33aaf5f53f39019fdd10dde366d48a50340
2023-04-12 11:37:10 +00:00
Treehugger Robot
116fa3048f Merge changes I3e156afa,Id7e4f2eb
* changes:
  cargo_embargo: detect and ignore harness-less tests
  cargo_embargo: use enum for crate type
2023-03-29 23:55:07 +00:00
Frederick Mayle
5a6dbaae7a cargo_embargo: detect and ignore harness-less tests
These currently cause cargo_embargo to fail. We should support them
eventually, but for now we'll ignore them to unblock crosvm merges.

Test: external/crosvm/android-merge-2-cargo-embargo.sh
Bug: 275386231
Change-Id: I3e156afa5672ddd6257c7caabd05346e060448fb
2023-03-29 15:25:57 -07:00
Frederick Mayle
04a1650a5f cargo_embargo: use enum for crate type
No behavior change intended.

This will make a following CL easier.

Test: external/crosvm/android-merge-2-cargo-embargo.sh
Bug: 275386231
Change-Id: Id7e4f2eb3f25fa12d867852a0ec95ce443949257
2023-03-29 15:24:21 -07:00
Treehugger Robot
43ff63a864 Merge "Utilize from-text stub module in build" 2023-03-29 18:28:30 +00:00
Jihoon Kang
0ae8fe1032 Utilize from-text stub module in build
Replace `android_stubs_current` with `android_from_text_stubs_current`,
a java_api_library module that creates from-text stubs. This feature is
hidden behind a flag `--build-from-text-stub`, which sets the env var
`ANDROID_PUBLIC_STUBS` as `android_from_text_stubs_current`.

Test: m --build-from-text-stub
Bug: 271154441
Change-Id: I06be32d9b7b9a54c0384010457406cabfff98c61
2023-03-27 18:04:34 +00:00
Yi Kong
1784c71446 Merge "Revert^2 "Update clang version to clang-r487747"" 2023-03-24 13:19:52 +00:00
Kiyoung Kim
383ddd8fe7 Merge "Create a new build script for builds using SSI artifact" 2023-03-23 07:08:50 +00:00
Kiyoung Kim
c981a31234 Create a new build script for builds using SSI artifact
Build using SSI artifact from the chained build may require extra
arguments from the build. This new script will handle all required
arguments with those new build targets.

Bug: 269977324
Test: N/A
Change-Id: Ia7b1f3c838433d4d51a98be875ac32da88ccbb79
2023-03-23 14:53:25 +09:00
Treehugger Robot
a7ade46095 Merge "Remove AndroidBeamDemo from samples" 2023-03-22 02:54:26 +00:00
Henri Chataing
8a56e6ca8f Remove AndroidBeamDemo from samples
Bug: 265394596
Test: m sdk
Change-Id: I54898705900f73c55d9a2eb3ee1372f510b15fe2
Merged-In: I54898705900f73c55d9a2eb3ee1372f510b15fe2
(cherry picked from commit e1f18b0234)
2023-03-22 01:59:29 +00:00
Henri Chataing
c01e15bdcb Merge "Revert^2 "Remove samples for deprecated Android Beam API"" 2023-03-22 00:26:49 +00:00
Stephen Hines
edab2ac359 Merge "Remove unused variables" 2023-03-21 16:42:10 +00:00
tanshanshan
16c7d86a81 Remove unused variables
Variables "bDecode" are not used in the function.

Test: mmm development/tools

Change-Id: Ic00ac4682b797c842c503cc5bc2cdbe22f68a94e
Signed-off-by: tanshanshan <tanshanshan@eswincomputing.com>
2023-03-17 15:57:27 +08:00
Peter Collingbourne
462ff76c54 Merge "gdbclient.py: Fix gdb-remote command for non-local $ANDROID_SERIAL." 2023-03-16 00:27:43 +00:00
Peter Collingbourne
b6b58a4d82 gdbclient.py: Fix gdb-remote command for non-local $ANDROID_SERIAL.
As it turns out, gdbclient.py is broken when connecting to a host:port
$ANDROID_SERIAL where the host is something other than localhost,
because it will try to connect to a TCP socket on the host named in
$ANDROID_SERIAL, while lldb-server is not even set up to listen on a TCP
socket on the device (it listens on a Unix socket which gets forwarded
by adb forward to localhost).

Fix it by entirely removing the code that tries to connect directly to
the host if the $ANDROID_SERIAL is of the form host:port.

Change-Id: I91a04aa811b246c9cac82ef3b0779dc284364edf
2023-03-15 14:31:40 -07:00
Henri Chataing
5db4bef9d5 Revert^2 "Remove samples for deprecated Android Beam API"
8de7b4b166

Change-Id: I415762b2fcbc9706a33d7a41858c1c142bb7ffab
Merged-In: I415762b2fcbc9706a33d7a41858c1c142bb7ffab
(cherry picked from commit 614c1aec90)
2023-03-14 23:27:34 +00:00
Xin Li
b25a156d0f Merge "Merge Android 13 QPR2" 2023-03-14 21:40:41 +00:00
Xin Li
afcb0100a9 Merge Android 13 QPR2
Bug: 273316506
Merged-In: Ia275a2ab69ee31b7d81a2ca8c83bef08cbf107df
Change-Id: I8304176691a3d06bc0129d13766d61b518dd8a0f
2023-03-13 23:09:06 -07:00
Christopher Ferris
03c8951115 Merge "Add missing changes from ARCH removal." am: 8f87d99d85
Original change: https://android-review.googlesource.com/c/platform/development/+/2485618

Change-Id: I6b88576c8f8858535f2adb3affc6e5112fa086f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 00:25:35 +00:00
Christopher Ferris
8f87d99d85 Merge "Add missing changes from ARCH removal." 2023-03-13 23:51:09 +00:00
Christopher Ferris
a47d6d090f Add missing changes from ARCH removal.
I somehow didn't upload these fixes from the review. So doing that
now.

Test: Unit tests pass.
Change-Id: Ia17e480eb972db4f7be6947c0e6567632c65431f
2023-03-13 15:22:47 -07:00
Hsin-Yi Chen
e7307617bc Merge "Collect libc++ headers that have no file name extensions" am: 462b91aae1
Original change: https://android-review.googlesource.com/c/platform/development/+/2473566

Change-Id: Ie89f023c62b1dc45a6eb921aa90fe321c810533f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-13 02:40:02 +00:00
Hsin-Yi Chen
462b91aae1 Merge "Collect libc++ headers that have no file name extensions" 2023-03-13 01:59:52 +00:00
Christopher Ferris
7a7dcc643d Merge "Remove all ARCH references." am: ab5ab25952
Original change: https://android-review.googlesource.com/c/platform/development/+/2481575

Change-Id: I661aa7cb619e33054a618ce0eaf356403cc259c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-10 23:43:07 +00:00
Christopher Ferris
ab5ab25952 Merge "Remove all ARCH references." 2023-03-10 22:56:58 +00:00
Hsin-Yi Chen
35fce6fed2 Collect libc++ headers that have no file name extensions
Test: LD_LIBRARY_PATH=prebuilts/clang/host/linux-x86/clang-r475365b/lib \
      out/soong/host/linux-x86/nativetest64/header-checker-unittests/header-checker-unittests
Bug: 271382846
Change-Id: Ica435ac635f6ab4f500e31ae1c38c2928b6dc6ac
2023-03-10 14:45:20 +08:00
Christopher Ferris
f62a3be63d Remove all ARCH references.
Replaced with ARCH_IS_32BIT since that's the only thing truly
necessary to work.

This also makes the register regex much more lenient, but it appears
to be strict enough that it doesn't seem to capture arbitrary lines
when run through logcat.

Removed the StripPC function and verified that an arm crash that
ends in 1 still works.

Removed the architecture.py script, it is old and I don't see anyone
using it.

Modify the reading of the lines to ignore any errors in the input.

Test: All unit tests pass.
Test: Symbolized arm and arm64 tombstones
Test: Symbolized x86 and x86_64 tombstones
Test: Ran through a logcat and verified it caught the bug but
Test: didn't print any extra information.
Change-Id: I6a65ecaad68da1d56864db32ff434512e4df0d89
2023-03-09 18:44:59 -08:00
Treehugger Robot
555102b0e5 Merge "Upgrade the 'aday' script to python3." am: 098584724b
Original change: https://android-review.googlesource.com/c/platform/development/+/2479356

Change-Id: I5d4ac0531f59827d281e6e2f41e9a5df1cb8b2b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 22:46:48 +00:00
Treehugger Robot
098584724b Merge "Upgrade the 'aday' script to python3." 2023-03-09 21:59:13 +00:00
Elliott Hughes
29f8a271a3 Merge "Remove mips." am: ac2cc9b4a7
Original change: https://android-review.googlesource.com/c/platform/development/+/2477642

Change-Id: Iae32255276ad2a3415acb214c765503c6086ab8c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-09 16:52:16 +00:00
Elliott Hughes
ac2cc9b4a7 Merge "Remove mips." 2023-03-09 16:14:16 +00:00