- Apr 03, 2020
-
-
Vladimir Marko authored
Make `permitted_packages` mandatory for updatable boot class path jars. Collect the permitted_packages from those jars to a file installed as /system/etc/updatable_bcp_packages.txt . (cherry picked from commit 205e6c2a) Test: aosp_taimen-userdebug boots. Test: adb shell cat /system/etc/updatable-bcp-packages Test: Manual, remove permitted_packages from framework-tethering, build fails. Bug: 151314205 Merged-In: I21def97ace9081e707910d449943c683189f16cf Change-Id: I68486f0d8d3368636e1a5324321bd0106fbe241a
-
David Srbecky authored
We plan to add boot image variants for host tests. Distinguishing the variants by arch does not work, since both host and device can have the same arch. (cherry picked from commit c177ebec) Test: m Bug: 152037801 Merged-In: Iea73c77367affb074f97a0fc318389417ce537da Change-Id: I8b95882bb00cd2fd1f6cfd8a2784f9ebb957eec6
-
Bill Peckham authored
-
- Apr 02, 2020
-
-
Dan Willemsen authored
It looks like sometime in late February our Mac builds started taking ~10 minutes longer than before. On my local workstation the Soong tests were taking >25 minutes before completing (likely because I don't have the older SDKs installed, and we iterate from older to newer to find the oldest installed SDK). Most of this time was spend running the `xcrun` tools to interrogate the system about which Mac SDKs are installed and where the tools are. This will never change during any build or test, so wrap it all in a sync.Once so that we only ever call them once. And remove the macSdkPath variable, which has been unused for years and no longer works (as we don't allow the use of xcode-select during the build). Bug: 153010389 Test: prebuilts/build-tools/build-prebuilts.sh on a Mac Change-Id: I39b2d49739e628e4c11bec4805b25039115d2fd0 Merged-In: I39b2d49739e628e4c11bec4805b25039115d2fd0 (cherry picked from commit 6ba5367a)
-
Bill Peckham authored
The partition tag helps merge_target_files.py determine which apexkeys.txt to select from the framework partial target files and which to select from the vendor partial target files. The partition tag is the pysical partition name, for example, a system_ext module on a device where system_ext is at system/system_ext has a system partition tag. Bug: 138942268 Change-Id: Ia07887b34f1aa77dae94ef23610dfef83c1a5849 Merged-In: Ia07887b34f1aa77dae94ef23610dfef83c1a5849
-
Anton Hansson authored
-
- Apr 01, 2020
-
-
Jooyung Han authored
-
Artur Satayev authored
-
Anton Hansson authored
-
Hsin-Yi Chen authored
-
- Mar 31, 2020
-
-
Anton Hansson authored
We actually want some targets (in particular, the MediaProvider apk) to link against framework-mediaprovider. The gist of what the neverallow rule achieves (disallow general use) is achieved equally well with visibility rules, which framework-mediaprovider already has. Bug: 152891096 Test: m nothing Change-Id: Ic4b0a571985b9ad1dfdd56d45035f224a622700e
-
Artur Satayev authored
Use droidstubs for public and system stubs to provide a list of @removed APIs. As these APIs are not present in the stubs, they are not whitelisted / greylised automatically. Keep them on greylist manually. Bug: 143864733 Test: diff out/soong/hiddenapi/hiddenapi-flags.csv Change-Id: I4c8e6899fadfdfd1da82f6f453cc92e71aa9b78c Merged-In: I4c8e6899fadfdfd1da82f6f453cc92e71aa9b78c Exempt-From-Owner-Approval: clean cherry-pick (cherry picked from commit c7fb5c99)
- Mar 30, 2020
-
-
Anton Hansson authored
-
Anton Hansson authored
-
Anton Hansson authored
Reuse the generic Dist support instead of writing custom mk rules for it. Use the new Tag support to grab the classes.jar instead of the dexed jar. Bug: 152618077 Test: m sdk dist Change-Id: Id893d52cc24b66e6bd900b5062a59f3820000bcd
-
Anton Hansson authored
Make java_library support this mode of output, to allow callers to dist the classes.jar file rather than the dexed jar file. Bug: 152618077 Test: followup CL Change-Id: I5ba6949833a0fbb95376142aec5096ff5f084c00
-
- Mar 28, 2020
-
-
Dan Willemsen authored
We have known problems (docker; distros w/o user namespaces) which mean that we won't be turning this into a fatal error anytime soon. Also remove the bug report link, it's not useful to continue getting the same reports. Bug: 123210688 Test: treehugger Change-Id: I271871d68150417ac938f074d3730cad4518e327 Merged-In: I271871d68150417ac938f074d3730cad4518e327 (cherry picked from commit 1871d88e)
-
- Mar 27, 2020
-
-
Jaewoong Jung authored
This is a cherry-pick change. Test: Built mainline module coverage data Bug: 152117890 Change-Id: I47bf3e5d6e78c4518729bdb52616e248156d3cec Merged-In: I47bf3e5d6e78c4518729bdb52616e248156d3cec
-
Dan Willemsen authored
It's painful to debug without these. Bug: 151160048 Test: do a build; find out -name '*.rsp' Change-Id: I6fc25095442178c0bcbc1dea444ba51e9259c600 Merged-In: I6fc25095442178c0bcbc1dea444ba51e9259c600
-
Hsin-Yi Chen authored
A library may have both VNDK variant and stubs. getRefAbiDumpFile should differentiate its vendor and core variants. Bug: 152277104 Test: Add dumps to platform/ and vndk/ ; make libselinux.vendor libselinux Change-Id: Iad038cf4cd3eccc3dfbef13fab67da044498ce77 Merged-In: Iad038cf4cd3eccc3dfbef13fab67da044498ce77 (cherry picked from commit 27d235f9)
-
- Mar 26, 2020
-
-
Jooyung Han authored
Previously, when Q-targeting apexes are bundled-built, they are built against the latest stubs. It was because unwinder is linked dynamically in R and APIs are provided by libc while Q apexes should run on Q where libc doesn't provide those APIs. To make Q apexes run on Q device, libc++ should be linked with static unwinder. But, because libc++ with static unwinder may cause problem on HWASAN build, Q apexes were built against the latest stubs for bundled build. However, Q apexes should be built against Q stubs. Now, only for HWASAN builds, Q apexes are built against the latest stubs (and native modules are not linked with static unwinder). Bug: 151912436 Test: TARGET_SANITIZE=hwaddress m => Q apexes(media, resolv, ..) are linked with the latest stubs m => Q apexes are linked with Q stubs, and Q apexes' libc++ is linked with static unwinder Change-Id: If32f1b547e6d93e3955c7521eec8aef5851f908c
-
Songchun Fan authored
-
Songchun Fan authored
If "v4_signature: true" is set, the v4 signature file, named [outputApkFile].idsig will be generated along side the outputApkFile. Test: m nothing Test: atest PackageManagerShellCommandIncrementalTest BUG: 149354175 Change-Id: Ie84725a15406f96f65042ea9909460e4eb34d57f
-
- Mar 25, 2020
-
-
Jooyung Han authored
The macro is required only for apex variants regardless of useVndk. Before the enforcement of LLNDK sdk version, the macro was not passed to vendor variants. Bug: 151689896 Test: TARGET_BUILD_APPS=com.android.media.swcodec m libbase in swcodec apex is linked with liblog#29 (compiled with __ANDROID_SDK_VERSIO__=29) Merged-In: I57fa4afe027eb39b98bd94d534be9ebe11713f19 Change-Id: I57fa4afe027eb39b98bd94d534be9ebe11713f19 (cherry picked from commit 24282778) Exempt-From-Owner-Approval: cp from aosp
-
Jooyung Han authored
Even though use_vendor:true is prohibited, there is media.swcodec apex which is still use_vendor: true and also needs to support Android10. (min_sdk_version: 29) Because LLNDK stubs were provided only for the current VNDK version, media.swcodec couldn't be built against min_sdk_version: 29. This change introduces additional versions for LLNDK stubs which are enforced when an apex with use_vendor: true sets min_sdk_version. To make things easier, the versions of LLNDK stubs are borrowed from its implementation libraries. Bug: 147450930 Bug: 149591522 Test: TARGET_BUILD_APPS=com.android.media.swcodec m (with min_sdk_version: 29 set) check if liblog/libc/libm/libdl stubs are 29 check if 29 stubs don't have new symbols. Merged-In: I79946cbb4da6617138a96d2b254349d3a298e77b Change-Id: I79946cbb4da6617138a96d2b254349d3a298e77b (cherry picked from commit 380fc361)
-
Jooyung Han authored
Use the result of regex.ReplaceAllString() Bug: 149591522 (not directly related to this) Test: m (with new unit test) Merged-In: Ifce07547ccc067f1ee5bd8467c2fb7d7f8387b8e Change-Id: Ifce07547ccc067f1ee5bd8467c2fb7d7f8387b8e (cherry picked from commit b04a4997)
-
- Mar 24, 2020
-
-
Ulya Trafimovich authored
Soong already uses build directory as a part of the generated output path. Besides, trying to append it second time breaks if the build directory is an absolute path. Test: frameworks/rs/build_rs.py (uses absolute build directory path) Test: walleye-userdebug boots Bug: 152235239 Change-Id: Ie03c9e688013b9a3e6bc859c936d89c538ded76a
-
Anton Hansson authored
-
- Mar 23, 2020
-
-
Anton Hansson authored
Bug: 149293194 Test: m dist sdk Change-Id: Ia168d3e5d18dc4f0ed5ca9d69720db57c2b91f80
-
Ulya Trafimovich authored
The null pointer dereference was caused by trying to get device name from a config passed to dexpreopt. For Make modules, the config is a stub that doesn't have a device name. The fix is to use build directory instead of device name (it is provided both by the full config passed to Soong modules and by the stub config passed to Make modules). Test: walleye-userdebug boots. Test: aosp_bertha_arm-userdebug builds and generates arc-services.odex. Bug: 152193534 Change-Id: I7adc173646cae6eaee188c6672629a5a942aea06
-
Ulyana Trafimovich authored
-
- Mar 22, 2020
-
-
Artur Satayev authored
-
- Mar 21, 2020
-
-
Artur Satayev authored
Flow: 1. Annotation processor generates a CSV file per class as a CLASS_OUTPUT resource. 2. hiddenapi.go extracts individual .csv files and merges them into an index.csv file per module. 3. hiddenapi_singleton.go merges individual index.csv files into a combined .csv file. In a follow up hiddenapi-index.csv would replace unsupportedappusage_index.csv Bug: 145132366 Change-Id: I87d92f9c8d4b1cc1df526fc576ee3c2101116b58 Merged-In: I87d92f9c8d4b1cc1df526fc576ee3c2101116b58 Test: diff unsupportedappusage_index.csv hiddenapi-index.csv Exempt-From-Owner-Approval: cp from r.android.com/1239709
-
Yabin Cui authored
-
- Mar 20, 2020
-
-
Makoto Onuki authored
-
TreeHugger Robot authored
-
TreeHugger Robot authored
-