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

Modern-Apps.git / communicate-dev / src / main / AndroidManifest.xml

AndroidManifest.xml59 lines · 2.9 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:tools="http://schemas.android.com/tools">
4
5 <!-- Permissions the dev lines use. The host app declares the same
6 permissions; these merge only into dev builds, and declaring them
7 here is what lets this module's lint check its own call sites. -->
8 <uses-permission android:name="android.permission.READ_PHONE_STATE" />
9 <uses-permission android:name="android.permission.READ_SMS" />
10 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
11 <uses-permission android:name="android.permission.READ_PRECISE_PHONE_STATE" tools:ignore="ProtectedPermissions" />
12 <uses-permission android:name="android.permission.INTERNET" />
13
14 <!-- Dev-only line components. These merge only into dev builds of the
15 host app (this module is `devImplementation` there); the classes
16 themselves live in the host's `src/dev` source set (sync services
17 and Telecom glue need host classes: MainActivity, host R, and the
18 repository extensions), so lint's MissingClass cannot see them
19 from this library — each service carries a scoped ignore for
20 exactly that. Release builds never see them. -->
21 <application>
22 <service
23 android:name="com.vayunmathur.communicate.telephony.WhatsAppSyncService"
24 tools:ignore="MissingClass"
25 android:exported="false"
26 android:foregroundServiceType="remoteMessaging" />
27
28 <service
29 android:name="com.vayunmathur.communicate.telephony.SignalSyncService"
30 tools:ignore="MissingClass"
31 android:exported="false"
32 android:foregroundServiceType="remoteMessaging" />
33
34 <service
35 android:name="com.vayunmathur.communicate.telephony.RcsSyncService"
36 tools:ignore="MissingClass"
37 android:exported="false"
38 android:foregroundServiceType="remoteMessaging" />
39
40 <!-- Shared self-managed Telecom account for WhatsApp and Signal calls, so the system owns
41 ringing, call audio focus and Bluetooth routing rather than the app approximating them. -->
42 <service
43 android:name="com.vayunmathur.communicate.telephony.InAppCallConnectionService"
44 tools:ignore="MissingClass"
45 android:exported="true"
46 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
47 <intent-filter>
48 <action android:name="android.telecom.ConnectionService" />
49 </intent-filter>
50 </service>
51
52 <service
53 android:name="com.vayunmathur.communicate.telephony.InAppCallForegroundService"
54 tools:ignore="MissingClass"
55 android:exported="false"
56 android:foregroundServiceType="phoneCall|mediaProjection" />
57 </application>
58
59</manifest>