forked from Blendman974/faceclaw
49 lines
1.9 KiB
XML
49 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-feature android:name="android.hardware.type.watch" />
|
|
|
|
<uses-permission android:name="android.permission.VIBRATE" />
|
|
<!-- Required by AmbientLifecycleObserver (always-on display support). -->
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<!-- Not standalone: the watch app is a remote for Faceclaw on the phone
|
|
and does nothing useful without it. -->
|
|
<application
|
|
android:allowBackup="false"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/Theme.Faceclaw">
|
|
|
|
<uses-library
|
|
android:name="com.google.android.wearable"
|
|
android:required="true" />
|
|
|
|
<meta-data
|
|
android:name="com.google.android.wearable.standalone"
|
|
android:value="false" />
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTask"
|
|
android:taskAffinity="">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- Answers the phone's battery polls (/faceclaw/battery/request) so
|
|
the glasses can show the watch battery while this app is closed. -->
|
|
<service
|
|
android:name=".PhoneListenerService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
|
|
<data android:scheme="wear" android:host="*" android:pathPrefix="/faceclaw/battery" />
|
|
</intent-filter>
|
|
</service>
|
|
</application>
|
|
</manifest>
|