blob: aff667247528c961d7df2aa86c48dbc8f4304a71 [file] [log] [blame]
<?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.
-->
<!-- This manifest is to create the apk of CtsSplitInstantApp for the tests of the splitName of
component such as Service and Provider. They are only supported in the instant app. In the full
app, declares a provider which is not defined in the apk would crash the application while
application is launching. A specific apk for these tests is needed.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.android.cts.splitapp"
android:targetSandboxVersion="2">
<!-- The androidx test libraries uses minSdkVersion 14. Applies an overrideLibrary rule here
to pass the build error, since tests need to use minSdkVersion 4. -->
<uses-sdk android:minSdkVersion="4" tools:overrideLibrary=
"androidx.test.runner, androidx.test.rules, androidx.test.monitor, androidx.test.services.storage"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
<application android:label="SplitApp"
android:multiArch="true">
<activity android:name=".MyActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.service.wallpaper"
android:resource="@xml/my_activity_meta"/>
</activity>
<activity android:name=".ThemeActivity" android:theme="@style/Theme_Base"
android:exported="false">
<intent-filter>
<action android:name="com.android.cts.splitapp.intent.THEME_TEST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".feature.warm.EmptyActivity" android:splitName="feature_warm"
android:exported="true">
<intent-filter>
<action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<receiver android:name=".MyReceiver"
android:enabled="@bool/my_receiver_enabled"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.DATE_CHANGED"/>
</intent-filter>
</receiver>
<receiver android:name=".LockedBootReceiver"
android:exported="true"
android:directBootAware="true">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:name=".BootReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<provider android:name=".RemoteQueryProvider"
android:authorities="com.android.cts.splitapp"
android:exported="true"
android:directBootAware="true">
</provider>
<!-- Provider defined in the split of feature_warm. -->
<provider android:name=".feature.warm.EmptyProvider" android:splitName="feature_warm"
android:authorities="com.android.cts.splitapp.feature.warm"
android:exported="true">
<intent-filter>
<action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/>
</intent-filter>
</provider>
<!-- Service defined in the split of feature_warm. -->
<service android:name=".feature.warm.EmptyService" android:splitName="feature_warm"
android:exported="true">
<intent-filter>
<action android:name="com.android.cts.splitapp.intent.SPLIT_NAME_TEST"/>
</intent-filter>
</service>
<uses-library android:name="android.test.runner"/>
</application>
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
android:targetPackage="com.android.cts.splitapp"/>
</manifest>