Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / watch-wear / src / main / AndroidManifest.xml

AndroidManifest.xml71 lines · 2.7 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <uses-feature
5 android:name="android.hardware.type.watch"
6 android:required="true" />
7 <uses-feature
8 android:name="android.hardware.touchscreen"
9 android:required="false" />
10
11 <!-- Sole Bluetooth holder on the watch: RFCOMM to the bonded phone. -->
12 <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
13 <uses-permission
14 android:name="android.permission.BLUETOOTH"
15 android:maxSdkVersion="30" />
16 <uses-permission
17 android:name="android.permission.BLUETOOTH_ADMIN"
18 android:maxSdkVersion="30" />
19 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
20 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE" />
21 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
22 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
23 <uses-permission android:name="android.permission.WAKE_LOCK" />
24
25 <permission
26 android:name="com.vayunmathur.watch.permissions.CONDUIT"
27 android:protectionLevel="signature" />
28
29 <application
30 android:allowBackup="false"
31 android:icon="@mipmap/ic_launcher"
32 android:label="@string/app_name"
33 android:roundIcon="@mipmap/ic_launcher"
34 android:supportsRtl="true"
35 android:theme="@style/Theme.WatchWear">
36
37 <meta-data
38 android:name="com.google.android.wearable.standalone"
39 android:value="false" />
40
41 <activity
42 android:name=".ui.WearMainActivity"
43 android:exported="true"
44 android:taskAffinity="">
45 <intent-filter>
46 <action android:name="android.intent.action.MAIN" />
47 <category android:name="android.intent.category.LAUNCHER" />
48 </intent-filter>
49 </activity>
50
51 <service
52 android:name=".service.ConduitService"
53 android:exported="true"
54 android:foregroundServiceType="connectedDevice"
55 android:permission="com.vayunmathur.watch.permissions.CONDUIT">
56 <intent-filter>
57 <action android:name="com.vayunmathur.watch.action.CONDUIT" />
58 </intent-filter>
59 </service>
60
61 <receiver
62 android:name=".platform.BootReceiver"
63 android:enabled="true"
64 android:exported="true">
65 <intent-filter>
66 <action android:name="android.intent.action.BOOT_COMPLETED" />
67 <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
68 </intent-filter>
69 </receiver>
70 </application>
71</manifest>