This change adds RollbackManagerService as a new system service for managing apk level rollbacks. To work properly this requires additional selinux policy changes. Fails gracefully in case of selinux denials, until we have a chance to sort out the proper selinux policy. Bug: 112431924 Bug: 116512606 Test: atest RollbackTest, with selinux enforcement off. Test: atest CtsPermission2TestCases:PermissionPolicyTest Change-Id: Id72aae9c4d8da9aaab3922ec9233ba335bc0198f
55 lines
1.9 KiB
Makefile
55 lines
1.9 KiB
Makefile
# Copyright (C) 2018 The Android Open Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
# RollbackTestAppV1
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
|
|
LOCAL_MANIFEST_FILE := TestApp/AndroidManifestV1.xml
|
|
LOCAL_PACKAGE_NAME := RollbackTestAppV1
|
|
LOCAL_SDK_VERSION := current
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src)
|
|
include $(BUILD_PACKAGE)
|
|
ROLLBACK_TEST_APP_V1 := $(LOCAL_INSTALLED_MODULE)
|
|
|
|
# RollbackTestAppV2
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS)
|
|
LOCAL_MANIFEST_FILE := TestApp/AndroidManifestV2.xml
|
|
LOCAL_PACKAGE_NAME := RollbackTestAppV2
|
|
LOCAL_SDK_VERSION := current
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src)
|
|
include $(BUILD_PACKAGE)
|
|
ROLLBACK_TEST_APP_V2 := $(LOCAL_INSTALLED_MODULE)
|
|
|
|
# RollbackTest
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
LOCAL_PACKAGE_NAME := RollbackTest
|
|
LOCAL_MODULE_TAGS := tests
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
|
|
LOCAL_COMPATIBILITY_SUITE := general-tests
|
|
LOCAL_CERTIFICATE := platform
|
|
LOCAL_JAVA_RESOURCE_FILES := $(ROLLBACK_TEST_APP_V1) $(ROLLBACK_TEST_APP_V2)
|
|
LOCAL_SDK_VERSION := test_current
|
|
LOCAL_TEST_CONFIG := RollbackTest.xml
|
|
include $(BUILD_PACKAGE)
|
|
|
|
# Clean up local variables
|
|
ROLLBACK_TEST_APP_V1 :=
|
|
ROLLBACK_TEST_APP_V2 :=
|