Home | History | Annotate | Download | only in InstrumentationAppDiffCert
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     17        package="com.android.cts.instrumentationdiffcertapp">
     18 
     19     <!--
     20     A simple app to test that an instrumentation cannot target an app signed with a different
     21     certificate.
     22     -->
     23 
     24     <application>
     25         <uses-library android:name="android.test.runner" />
     26     </application>
     27 
     28     <!-- assumes com.android.cts.targetinstrumentationapp is signed with diff cert -->
     29     <instrumentation android:name="android.app.Instrumentation"
     30                      android:targetPackage="com.android.cts.targetinstrumentationapp"
     31                      android:label="Instrumentation that targets app with different cert" />
     32 
     33     <!--
     34     A self-instrumenting test runner, that will try to start the above instrumentation and
     35     verify it fails.
     36      -->
     37     <instrumentation android:name="android.test.InstrumentationTestRunner"
     38                      android:targetPackage="com.android.cts.instrumentationdiffcertapp"
     39                      android:label="Test for instrumentation with different cert" />
     40 </manifest>
     41