As mentioned in go/partitions-in-r, we plan to forbid hidden API in
product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.
Bug: 137908189
Test: m
Test: check whether device boots successfully
Change-Id: Id1e897eadea814b780f199fa7f3d683924eb4ab3
frameworks/base/StubLibraries.bp is the place where the droidstubs and
java_library modules for the API stub libraries are defined.
Bug: N/A
Test: m
Exempt-From-Owner-Approval: cherry-pick from internal
Merged-In: I407d0d939582841ffa651488bf76667ab7ce9c64
(cherry picked from commit f371ec46ec)
Change-Id: I407d0d939582841ffa651488bf76667ab7ce9c64
Note that clang linker is multi-target whereas GNU linker is
single-target; so while we need multiple GNU linkers (because we
support multiple targets) we only need a single clang linker.
We retain the GNU linkers so that a new SDK is still compatible with
older gradle plugins.
Bug: 142590626
Bug: 144040336
Test: (gLinux) m PRODUCT-sdk_phone_armv7-sdk dist sdk_repo
(gLinux) m PRODUCT-sdk_phone_armv7-win_sdk dist sdk_repo
Change-Id: I2a04f6fd464b5eb6a2e9a632f49409c1d7e60170
(cherry picked from commit c22ed0eece)
With the option: extract zip file in the directory where zip is, and the
extracted files remain.
Without the option: extract zip file in tmp and clean up after a run
Test: check if files remain with -p option
Bug: N/A
Change-Id: I1aa74c017dbb885481b8f5a0674d089c0a732620
As-is: extract zip file in-place
To-be: extract zip file in tmp dir
Test: run the tool with -u option, and check if there is no file in a
directory where zip file is located
Change-Id: I2654bfa257714cb5b266abf4feb31acaabdbb7cb
Exempt-From-Owner-Approval: introduces separate utility; doesn't touch
anything around it
Test: 1. Manually enter version/presence of build artifact,
and ensure `codegen FILENAME` still works
2. run codegen again without altering version, ensure no build triggered
Change-Id: Iaa253a430e627d0e7c25781cde535958f77db97f
(cherry picked from commit 8ca7673cfc)
Merged-In: Iaa253a430e627d0e7c25781cde535958f77db97f
This commit switches the option to `-std=c++14` to avoid potential ODR
violations and fix the Mac build.
This commit downgrades from `-std=c++17` to `-std=c++14` because
"llvm/Support/RWMutex.h" from clang-r370808 will use `std::shared_mutex`
when `-std=c++17` is specified but LLVM/Clang prebuilts are built with a
different implementation.
Furthermore, Mac OS X 10.8 (or 10.9) does not support
`std::shared_mutex`. Thus, there are availability errors when we are
building header-checker for Mac OS X:
clang-r370808/include/llvm/Support/RWMutex.h:98:8:
error: 'shared_mutex' is unavailable: introduced in macOS 10.12
Bug: 139945549
Test: OUT_DIR=out && \
development/vndk/tools/header-checker/android/build-prebuilts.sh
Change-Id: Ic23fbdb67f7cd0700a3001c644485f7d8d0ee3e2
* Usage note and help for command flags in the script.
* Run cargo -v multiple times and collect output in cargo.out.
* Use target.tmp as temporary working directory.
* Generate multiple Android.bp files into subdirectories.
* Simplified package names, without version number.
* Merged Android.bp modules.
* Use --device flag to generate both host and device build targets
in a combined module.
* Use --tests flag to generate rust_test modules, with auto_gen_config,
and multiple unit tests merged in one module.
* Generate cc_library_static modules for rust packages that call
'cc' and 'ar' to build static C/C++ libraries.
* Use the --vv flag to call cargo with -vv.
* Limitations:
* Cargo.toml and its build scripts might need fix for Android first.
* Depending on user given cargo parameters.
* TODOs:
* Handle multiple crate types in one rustc command line.
* Smart merge of host and device rust_test modules,
to handle device tests that depend on dynamic libraries.
* Handle special Rust packages that use only build scripts
and C/C++ compilers to generate included files.
Bug: 142209566
Test: In rust project directories: cargo2android.py --run
Change-Id: Id54652b1e0a6e5fc16619cd05f5b057eee79d610