Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 121f9739 authored by Richard Uhler's avatar Richard Uhler Committed by Android (Google) Code Review
Browse files

Merge "Create dummy apex files for testing Rollbacks."

parents 20978ab5 b002577d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -76,12 +76,14 @@ LOCAL_PACKAGE_NAME := RollbackTest
LOCAL_MODULE_TAGS := tests
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
LOCAL_COMPATIBILITY_SUITE := general-tests
LOCAL_COMPATIBILITY_SUPPORT_FILES := $(ROLLBACK_TEST_APEX_V1)
LOCAL_JAVA_RESOURCE_FILES := \
  $(ROLLBACK_TEST_APP_AV1) \
  $(ROLLBACK_TEST_APP_AV2) \
  $(ROLLBACK_TEST_APP_A_CRASHING_V2) \
  $(ROLLBACK_TEST_APP_BV1) \
  $(ROLLBACK_TEST_APP_BV2)
  $(ROLLBACK_TEST_APP_BV2) \
  $(ROLLBACK_TEST_APEX_V2)
LOCAL_SDK_VERSION := system_current
LOCAL_TEST_CONFIG := RollbackTest.xml
include $(BUILD_PACKAGE)
+56 −0
Original line number Diff line number Diff line
// Copyright (C) 2019 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.

apex {
    name: "com.android.tests.rollback.testapex.RollbackTestApexV1",
    manifest: "RollbackTestApexV1.json",
    file_contexts: "apex.test",
    prebuilts: ["RollbackTestApex.prebuilt.txt"],
    key: "RollbackTestApex.key",
    installable: false,
}

apex {
    name: "com.android.tests.rollback.testapex.RollbackTestApexV2",
    manifest: "RollbackTestApexV2.json",
    file_contexts: "apex.test",
    prebuilts: ["RollbackTestApex.prebuilt.txt"],
    key: "RollbackTestApex.key",
    installable: false,
}

apex_key {
    name: "RollbackTestApex.key",
    public_key: "com.android.tests.rollback.testapex.avbpubkey",
    private_key: "com.android.tests.rollback.testapex.pem",
    installable: false,
}

prebuilt_etc {
    name: "RollbackTestApex.prebuilt.txt",
    src: "RollbackTestApex.prebuilt.txt",
}

filegroup {
    name: "RollbackTestApexV1_filegroup",
    srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV1"],
    export_to_make_var: "ROLLBACK_TEST_APEX_V1",
}

filegroup {
    name: "RollbackTestApexV2_filegroup",
    srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV2"],
    export_to_make_var: "ROLLBACK_TEST_APEX_V2",
}
+3 −0
Original line number Diff line number Diff line

This file contains dummy content to include in the RollbackTestApex.
+4 −0
Original line number Diff line number Diff line
{
    "name": "com.android.tests.rollback.testapex",
    "version": 1
}
+4 −0
Original line number Diff line number Diff line
{
    "name": "com.android.tests.rollback.testapex",
    "version": 2
}
Loading