The TestDiscoverService app covers the API for service discover. The
TestAdvertiseService app covers the APT for service advertisement.
Test: ./gradlew build
Change-Id: I6a8d94bbe88a9a20b1adcda8e0916898c68e7ea5
Right now the raised exception only shows the command and return code.
Printing the output should make the error more clear.
Test: adb root, then in adb shell touch the server and make immutable
touch /data/local/tmp/x86_64-lldb-server
chattr +i /data/local/tmp/x86_64-lldb-server
Then on host lldbclient.py -r test
Fails as expected with with "operation not permitted"
Change-Id: Ie22f41bb90809c2f9bafaee0be6a151d9b017502
Adding per-file line for cargo2rulesmk.py such that
it can be maintained by members of the platsec Rust
and Trusty teams.
Bug: 281857510
Change-Id: I9aedee5a76c4d463d4cf3d0851c60193d96a7696
Add script that generates rules.mk files from Rust crates.
Based on and inspired by cargo2android.py script to generate
blueprint files for the Android build system.
The script has only been tested on the vendored crates used to
build Trusty (see external/rust/crates) and does not support
the full range of crate types or cargo features.
Bug: 281857510
Change-Id: I1951f75476c36b9a1b794c4a51483f2c7387b1f5
Switch to using soong_zip instead of regular zip because soong_zip
doesn't add timestamps.
Also remove mk-sdk-repo-pkg-3 because it was unused.
Test: m sdk sdk_repo dist
Change-Id: Ic41fab8475ac22e43128af2b60017932ee2aee89
The new argument makes the generator write the VSCode launch.json config
into a file instead of stdout.
The generator uses marker lines to insert the config. This way the user
can control where in the file the launch config is written.
Test: atest gdbclient_test
Test: lldbclient.py --setup-forwarding vscode-lldb \
--vscode-launch-props= \
'{"internalConsoleOptions" : "openOnSessionStart"}' \
--vscode-launch-file=.vscode/launch.json -r test
Change-Id: I92b3f479b5ebcb722933938f52d0f23ff098beac
... also fixed missing copyright headers in 2 existing test files
... also made the instrumentation against the demo activity for real
Bug: 277819423
Test: atest FlagStateComboTests
adb shell device_config put test \
com.example.android.aconfig.demo.flags.awesome_flag_1 <true|false>
adb shell device_config put test \
com.example.android.aconfig.demo.flags.awesome_flag_2 <true|false>
Change-Id: I6083f11ee743a8b4f0f9bc23ac6945b5d072ab5e
The command must be in quotations. Use eval to run commands.
Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
-d out/dist -a cf_x86_64_foldable -o -c droid
Change-Id: I41881527434a05736224de502ff6b09dcc45a55c
Bindgen has been updated in platform, but additional repos need to be
mapped into this build to work properly. Since changing manifests
requires special permissions, this unbreaks the build until we can get
the manifest fixed to re-add bindgen.
Test: TH
Change-Id: Idd7bf289212a2570e267eaab0e94d332ed8a44b2
The script must fail and be excluded from the build stats if any
build run fails.
Bug: 284915566
Test: run_command with fault command
Change-Id: I0bc8d14286ebce52036f45ba4dee675f333a3ff0
verbose.log.gz includes the logs for the ninja explain.
The logs will be automatically cached to verbose.log.gz,
verbose.log.2.gz, and verbose.log.4.gz.
Bug: 284915566
Test: combined_build_test.sh -t cf_x86_64_phone -v userdebug \
-d out/dist -a cf_x86_64_foldable -o -c -r droid
Change-Id: Ib722a7c331cfe6b034ab4812b85504d2f5161881
VNDK snapshot updater reads license text files. To avoid unexpected
text files to be read, explicitly set the encoding type and ignore
if failed to read.
Bug: 288846788
Test: add binary to read and see if it is ignored
Change-Id: I7e3d0bbdc6c692ef7dbc6d8bf9d53c67003d0f90
So we have a way to play with the android.net.http APIs.
This is essentially copied from
https://source.chromium.org/chromium/chromium/src/+/main:components/cronet/android/sample/
with minor modifications to support android.net.http APIs (mainly,
renaming APIs and working around the fact that apihelpers are not
available to apps).
Test: adb install -r $OUT/system/app/Development/Development.apk
Change-Id: I8fdb2f64f110551edd39fab074abaf84e76b010f
This commit fixes the bug that causes the ABI tools to produce invalid
output but return success.
Bug: 288168134
Test: development/vndk/tools/header-checker/tests/test.py
Change-Id: Ifa94667e9d38eff65e943a1d277dd2c7b5493fe5
Add the Injection use case of Aconfig flag.
Add corresponding tests.
Test: atest AconfigDemo_ContentLibs_Test
Bug: 287644619
Change-Id: I47cea59764b2956644ad0c159945d3cdb3231c09
Add a simple app uses aconfig.
This app can demonstrate
1. declare aconfig flag
2. build aconfig flag in building system
3. generate aconfig java flag
4. use aconfig java flag in java code
Test: atest AconfigDemo_ContentProvide_Test
Bug: 280833426
Change-Id: Ieacbe4b2368a00872254dab1c87dc66c569fc30a