1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2013 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 package="com.example.android.wearable.runtimepermissions" 20 android:versionCode="1" 21 android:versionName="1.0"> 22 23 <!-- Permissions for phone. --> 24 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 25 26 <!-- Permissions for wearable: 27 Earlier watches require their permissions to be a subset of the phone apps permission in order 28 for the wear app to be installed. Therefore, you must include the permissions here as well as in 29 the wear manifest. 30 --> 31 <uses-permission android:name="android.permission.BODY_SENSORS" /> 32 <uses-permission android:name="android.permission.WAKE_LOCK" /> 33 34 <application android:allowBackup="true" 35 android:label="@string/app_name" 36 android:icon="@mipmap/ic_launcher" 37 android:theme="@style/Theme.AppCompat.Light"> 38 <activity 39 android:name=".MainPhoneActivity" 40 android:label="@string/app_name" > 41 <intent-filter> 42 <action android:name="android.intent.action.MAIN" /> 43 44 <category android:name="android.intent.category.LAUNCHER" /> 45 </intent-filter> 46 </activity> 47 48 <activity 49 android:name=".PhonePermissionRequestActivity" 50 android:label="@string/title_activity_phone_permission_request" 51 android:theme="@style/Theme.AppCompat.Light.NoActionBar" > 52 </activity> 53 54 <activity 55 android:name=".WearPermissionRequestActivity" 56 android:label="@string/title_activity_wear_permission_request" 57 android:theme="@style/Theme.AppCompat.Light.NoActionBar" > 58 </activity> 59 60 <service 61 android:name=".IncomingRequestPhoneService" 62 android:enabled="true" 63 android:exported="true" > 64 <intent-filter> 65 <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" /> 66 <data android:scheme="wear" android:host="*" android:pathPrefix="/"/> 67 </intent-filter> 68 </service> 69 </application> 70 71 72</manifest> 73