Todd Kennedy 0d0b59c1e1 Update CTS shims
* define a update hash such that com.android.cts.priv.ctsshim can't
  be updated
* create a new APK to verify that <restrict-update> works as expected

Bug: 29311441
Change-Id: I61f3ae3dbd9c79b2dcdfbc30757af0f9a669fce6
2016-06-14 12:46:34 -07:00

58 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 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 for the system CTS shim -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.android.cts.ctsshim" >
<uses-sdk android:minSdkVersion="24"
android:targetSdkVersion="24" />
<restrict-update
android:hash="__CAN_NOT_BE_UPDATED__" />
<application
android:hasCode="false"
tools:ignore="AllowBackup,MissingApplicationIcon" >
<!-- These activities don't actually exist; define them just to test the filters !-->
<!-- install test; high priority filter DENIED -->
<activity android:name=".InstallPriority">
<intent-filter android:priority="100">
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
<intent-filter android:priority="100">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter android:priority="100">
<action android:name="android.intent.action.SEND" />
</intent-filter>
<intent-filter android:priority="100">
<action android:name="android.intent.action.SEND_MULTIPLE" />
</intent-filter>
<intent-filter android:priority="100">
<action android:name="android.intent.action.SENDTO" />
</intent-filter>
</activity>
</application>
</manifest>