diff options
| author | Ulya Trafimovich <skvadrik@google.com> | 2021-06-22 00:01:04 -0700 |
|---|---|---|
| committer | Xin Li <delphij@google.com> | 2021-06-22 00:01:35 -0700 |
| commit | e0a7d150c2716d5fa8048987e1eb73b37ac730c7 (patch) | |
| tree | 0814a21feda62c5c8f9bd521486edf83d64c335c /self-extractors_sargo | |
| parent | 2588a1cad4069aba2abb5fdf4f3df4d571552d85 (diff) | |
Disable dexpreopt and <uses-library> check for APKs.
This has to be done because the APKs depend on libraries for which there
are no modules in the build system, so it's impossible to add a build
dependency on them. As a consequence, it is not possible to construct
class loader context for dexpreopt.
Bug: 132357300
Test: treehugger
Change-Id: Ia14ead102f1751477f99af284e7da192351fe2c1
Diffstat (limited to 'self-extractors_sargo')
| -rw-r--r-- | self-extractors_sargo/qcom/staging/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/self-extractors_sargo/qcom/staging/Android.mk b/self-extractors_sargo/qcom/staging/Android.mk index 577d6327..ce5244e0 100644 --- a/self-extractors_sargo/qcom/staging/Android.mk +++ b/self-extractors_sargo/qcom/staging/Android.mk @@ -13,6 +13,10 @@ LOCAL_MODULE_OWNER := qcom LOCAL_MODULE_CLASS := APPS LOCAL_SRC_FILES := $(LOCAL_MODULE).apk LOCAL_CERTIFICATE := platform +# Disable dexpreopt and <uses-library> check because the APK depends on +# libraries that are not present as modules in the build system. +LOCAL_ENFORCE_USES_LIBRARIES := false +LOCAL_DEX_PREOPT := false include $(BUILD_PREBUILT) include $(CLEAR_VARS) @@ -27,5 +31,9 @@ LOCAL_MODULE_OWNER := qcom LOCAL_MODULE_CLASS := APPS LOCAL_SRC_FILES := $(LOCAL_MODULE).apk LOCAL_CERTIFICATE := platform +# Disable dexpreopt and <uses-library> check because the APK depends on +# libraries that are not present as modules in the build system. +LOCAL_ENFORCE_USES_LIBRARIES := false +LOCAL_DEX_PREOPT := false include $(BUILD_PREBUILT) endif |
