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

Commit 70a2da0b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add test_com.android.server apex for e2e tests."

parents 508fa90a c7619bae
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
omakoto@google.com
satayev@google.com

include platform/packages/modules/common:/OWNERS
+40 −0
Original line number Diff line number Diff line
// Copyright (C) 2021 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.

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

apex_key {
    name: "test_com.android.server.key",
    public_key: "test_com.android.server.avbpubkey",
    private_key: "test_com.android.server.pem",
    installable: false,
}

android_app_certificate {
    name: "test_com.android.server.certificate",
    certificate: "test_com.android.server",
}

apex_test {
    name: "test_com.android.server",
    manifest: "manifest.json",
    androidManifest: "AndroidManifest.xml",
    java_libs: ["FakeApexSystemService"],
    file_contexts: ":apex.test-file_contexts",
    key: "test_com.android.server.key",
    updatable: false,
    installable: false,
}
+42 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2021 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.
  -->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="test_com.android.server">
    <!-- APEX does not have classes.dex -->
    <application android:hasCode="false">
        <apex-system-service
            android:name="com.android.server.testing.FakeApexSystemService"
            android:path="/apex/test_com.android.server/javalib/FakeApexSystemService.jar"
            android:minSdkVersion="30"/>

        <!-- Always inactive system service, since maxSdkVersion is low -->
        <apex-system-service
            android:name="com.android.apex.test.OldApexSystemService"
            android:path="/apex/com.android.apex.test/javalib/fake.jar"
            android:minSdkVersion="1"
            android:maxSdkVersion="1"
        />

        <!-- Always inactive system service, since minSdkVersion is high -->
        <apex-system-service
            android:name="com.android.apex.test.NewApexSystemService"
            android:path="/apex/com.android.apex.test/javalib/fake.jar"
            android:minSdkVersion="999999"
        />
    </application>
</manifest>
+4 −0
Original line number Diff line number Diff line
{
  "name": "test_com.android.server",
  "version": 1
}
Loading