Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 1 | <?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 Valdivia | 4b0333f | 2016-02-11 17:13:32 -0800 | [diff] [blame] | 7 | |
Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Carlos Valdivia | 4b0333f | 2016-02-11 17:13:32 -0800 | [diff] [blame] | 9 | |
Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 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 | |
| 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | package="com.android.keychain.tests"> |
Carlos Valdivia | 4b0333f | 2016-02-11 17:13:32 -0800 | [diff] [blame] | 19 | |
Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 20 | <uses-permission android:name="android.permission.INTERNET"/> |
| 21 | |
| 22 | <!-- |
Eran Messeri | 43fb369 | 2017-11-01 10:54:10 +0000 | [diff] [blame^] | 23 | 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 Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 33 | To run service: |
Carlos Valdivia | 4b0333f | 2016-02-11 17:13:32 -0800 | [diff] [blame] | 34 | adb shell am startservice -n com.android.keychain.tests/.KeyChainServiceTest |
Eran Messeri | 43fb369 | 2017-11-01 10:54:10 +0000 | [diff] [blame^] | 35 | One has to inspect the ADB log to find out about test failures. |
Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 36 | |
Carlos Valdivia | 4b0333f | 2016-02-11 17:13:32 -0800 | [diff] [blame] | 37 | To run activity: |
| 38 | adb shell am start -n com.android.keychain.tests/com.android.keychain.tests.KeyChainTestActivity |
Brian Carlstrom | 3e6251d | 2011-04-11 09:05:06 -0700 | [diff] [blame] | 39 | --> |
| 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> |