blob: fa9cd55381526b3da7ae68ee58a266670b5ae7f6 [file] [log] [blame]
Brian Carlstrom3e6251d2011-04-11 09:05:06 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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
Carlos Valdivia4b0333f2016-02-11 17:13:32 -08007
Brian Carlstrom3e6251d2011-04-11 09:05:06 -07008 http://www.apache.org/licenses/LICENSE-2.0
Carlos Valdivia4b0333f2016-02-11 17:13:32 -08009
Brian Carlstrom3e6251d2011-04-11 09:05:06 -070010 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
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18 package="com.android.keychain.tests">
Carlos Valdivia4b0333f2016-02-11 17:13:32 -080019
Brian Carlstrom3e6251d2011-04-11 09:05:06 -070020 <uses-permission android:name="android.permission.INTERNET"/>
21
22 <!--
Eran Messeri43fb3692017-11-01 10:54:10 +000023 Install the activity and disable battery optimization (so the KeyChainServiceTest can be
24 run in the background):
25 adb install out/target/product/${TARGET_PRODUCT}/data/app/KeyChainTests/KeyChainTests.apk
26 Then navigate to Settings -> Battery -> ... -> Battery optimization -> select All Apps
27 Find com.android.keychain.tests and select Do Not Optimize.
28
29 Alternatively, the following command can be used to exclude the test services from
30 the background execution restriction for 2 minutes:
31 adb shell cmd deviceidle tempwhitelist -d 120000 com.android.keychain.tests
32
Brian Carlstrom3e6251d2011-04-11 09:05:06 -070033 To run service:
Carlos Valdivia4b0333f2016-02-11 17:13:32 -080034 adb shell am startservice -n com.android.keychain.tests/.KeyChainServiceTest
Eran Messeri43fb3692017-11-01 10:54:10 +000035 One has to inspect the ADB log to find out about test failures.
Brian Carlstrom3e6251d2011-04-11 09:05:06 -070036
Carlos Valdivia4b0333f2016-02-11 17:13:32 -080037 To run activity:
38 adb shell am start -n com.android.keychain.tests/com.android.keychain.tests.KeyChainTestActivity
Brian Carlstrom3e6251d2011-04-11 09:05:06 -070039 -->
40 <application>
41 <service android:name="com.android.keychain.tests.KeyChainServiceTest">
42 <intent-filter>
43 <action android:name="com.android.keychain.tests.KeyChainServiceTest"/>
44 </intent-filter>
45 </service>
46 <activity android:name="com.android.keychain.tests.KeyChainTestActivity">
47 <intent-filter>
48 <action android:name="com.android.keychain.tests.KeyChainTestActivity"/>
49 </intent-filter>
50 </activity>
51 <activity android:name="com.android.keychain.tests.KeyChainSocketTestActivity">
52 <intent-filter>
53 <action android:name="com.android.keychain.tests.KeyChainSocketTestActivity"/>
54 </intent-filter>
55 </activity>
56 </application>
57</manifest>