• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <uses-sdk
24        android:minSdkVersion="18"
25        android:targetSdkVersion="23" />
26
27    <!-- Permissions for phone. -->
28    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
29
30    <!-- Permissions for wearable:
31    Earlier watches require their permissions to be a subset of the phone apps permission in order
32    for the wear app to be installed. Therefore, you must include the permissions here as well as in
33    the wear manifest.
34    -->
35    <uses-permission android:name="android.permission.BODY_SENSORS" />
36    <uses-permission android:name="android.permission.WAKE_LOCK" />
37
38    <application android:allowBackup="true"
39        android:label="@string/app_name"
40        android:icon="@mipmap/ic_launcher"
41        android:theme="@style/Theme.AppCompat.Light">
42        <activity
43            android:name=".MainPhoneActivity"
44            android:label="@string/app_name" >
45            <intent-filter>
46                <action android:name="android.intent.action.MAIN" />
47
48                <category android:name="android.intent.category.LAUNCHER" />
49            </intent-filter>
50        </activity>
51
52        <activity
53            android:name=".PhonePermissionRequestActivity"
54            android:label="@string/title_activity_phone_permission_request"
55            android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
56        </activity>
57
58        <activity
59            android:name=".WearPermissionRequestActivity"
60            android:label="@string/title_activity_wear_permission_request"
61            android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
62        </activity>
63
64        <service
65            android:name=".IncomingRequestPhoneService"
66            android:enabled="true"
67            android:exported="true" >
68            <intent-filter>
69                <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
70                <data android:scheme="wear" android:host="*" android:pathPrefix="/"/>
71            </intent-filter>
72        </service>
73    </application>
74
75
76</manifest>
77