Remove workarounds for b/79755007
aapt2 now recognizes these manifest elements. Bug: 79755007 Test: m checkbuild Change-Id: I2718fc973e08e7f5226b009807312bd534216f8d
This commit is contained in:
@@ -67,10 +67,6 @@ LOCAL_RESOURCE_DIR := $(FrameworkCoreTests_intermediates) $(LOCAL_PATH)/res
|
||||
|
||||
# Disable AAPT2 because the hacks below depend on the AAPT rules implementation
|
||||
LOCAL_USE_AAPT2 := false
|
||||
# When AAPT2 is enabled it will need --warn-manifest-validation to fix:
|
||||
# frameworks/base/core/tests/coretests/AndroidManifest.xml:26: error: unknown element <meta-data> found.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
# LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
# Rules to copy all the test apks to the intermediate raw resource directory
|
||||
|
||||
@@ -8,10 +8,6 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
||||
LOCAL_PACKAGE_NAME := install_multi_package
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# frameworks/base/core/tests/coretests/apks/install_multi_package/AndroidManifest.xml:46: error: unexpected element <package> found in <manifest>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(FrameworkCoreTests_BUILD_PACKAGE)
|
||||
#include $(BUILD_PACKAGE)
|
||||
|
||||
@@ -6,9 +6,5 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
||||
LOCAL_PACKAGE_NAME := install_verifier_bad
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# frameworks/base/core/tests/coretests/apks/install_verifier_bad/AndroidManifest.xml:19: error: unexpected element <package-verifier> found in <manifest>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(FrameworkCoreTests_BUILD_PACKAGE)
|
||||
|
||||
@@ -6,9 +6,5 @@ LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
||||
LOCAL_PACKAGE_NAME := install_verifier_good
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# frameworks/base/core/tests/coretests/apks/install_verifier_good/AndroidManifest.xml:19: error: unexpected element <package-verifier> found in <manifest>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(FrameworkCoreTests_BUILD_PACKAGE)
|
||||
|
||||
@@ -67,10 +67,6 @@ LOCAL_MULTILIB := both
|
||||
LOCAL_JNI_SHARED_LIBRARIES := libshim_jni
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# out/target/common/obj/APPS/CtsShimPriv_intermediates/AndroidManifest.xml:25: error: unexpected element <restrict-update> found in <manifest>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
@@ -113,10 +109,6 @@ LOCAL_PACKAGE_NAME := CtsShim
|
||||
LOCAL_MANIFEST_FILE := shim/AndroidManifest.xml
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# frameworks/base/packages/CtsShim/build/shim/AndroidManifest.xml:25: error: unexpected element <restrict-update> found in <manifest>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
|
||||
@@ -10,9 +10,5 @@ LOCAL_MODULE_TAGS := tests
|
||||
LOCAL_CERTIFICATE := platform
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
# Disable AAPT2 manifest checks to fix:
|
||||
# frameworks/base/tests/ActivityTests/AndroidManifest.xml:42: error: unexpected element <preferred> found in <manifest><application><activity>.
|
||||
# TODO(b/79755007): Remove when AAPT2 recognizes the manifest elements.
|
||||
LOCAL_AAPT_FLAGS += --warn-manifest-validation
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
Reference in New Issue
Block a user