OXYGENHUB
# 1dfa631436b6 oxygenhub-android / app / src / main / AndroidManifest.xml
3.0 KiB · XML · last changed Alerts from the hub: the phone registers its Cloud Messaging token and an X25519 key kept by the Keystore, and opens and shows what the hub seals to it with the Rust core; Firebase from google-services.json (the release job's firebase-config secret); pins OxygenFlow main (refs #16) 8 days ago source blame history raw
e0e4a1c4 Andy McCall ↶ 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
5ae4af48 Andy McCall ↶ 5
    <uses-permission android:name="android.permission.INTERNET" />
4aee5293 Andy McCall ↶ 6
    <!-- The phone as an OxygenFlow runner (#8): a foreground service while it runs jobs,
7
         its notification, and the network's state for the Wi-Fi rule. -->
8
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
10
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
11
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
ff65ea45 Andy McCall ↶ 12
    <!-- The check for proposals ready to land (#20) is kept across reboots, and the runner (#8) offered again. -->
13
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
5ae4af48 Andy McCall ↶ 14
e0e4a1c4 Andy McCall ↶ 15
    <application
5ae4af48 Andy McCall ↶ 16
        android:name=".OxygenHubApp"
e0e4a1c4 Andy McCall ↶ 17
        android:allowBackup="true"
18
        android:dataExtractionRules="@xml/data_extraction_rules"
19
        android:fullBackupContent="@xml/backup_rules"
20
        android:icon="@mipmap/ic_launcher"
21
        android:label="@string/app_name"
22
        android:roundIcon="@mipmap/ic_launcher_round"
23
        android:supportsRtl="true"
24
        android:theme="@style/Theme.OxygenHub">
25
        <activity
26
            android:name=".MainActivity"
27
            android:exported="true"
28
            android:theme="@style/Theme.OxygenHub"
29
            android:windowSoftInputMode="adjustResize">
30
            <intent-filter>
31
                <action android:name="android.intent.action.MAIN" />
32
33
                <category android:name="android.intent.category.LAUNCHER" />
34
            </intent-filter>
35
        </activity>
4aee5293 Andy McCall ↶ 36
        <service
37
            android:name=".runner.RunnerService"
38
            android:exported="false"
39
            android:foregroundServiceType="specialUse">
40
            <property
41
                android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
42
                android:value="Runs OxygenFlow CI jobs (WebAssembly) for the signed-in account while the phone is charging on Wi-Fi" />
43
        </service>
ff65ea45 Andy McCall ↶ 44
        <receiver
45
            android:name=".runner.RunnerResume"
46
            android:exported="false">
47
            <intent-filter>
48
                <action android:name="android.intent.action.BOOT_COMPLETED" />
49
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
50
            </intent-filter>
51
        </receiver>
aa21eb5e Andy McCall ↶ 52
        <!-- Alerts from the hub (#16): sealed data messages through Cloud Messaging. -->
ff65ea45 Andy McCall ↶ 53
        <service
aa21eb5e Andy McCall ↶ 54
            android:name=".alerts.AlertService"
55
            android:exported="false">
56
            <intent-filter>
57
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
58
            </intent-filter>
59
        </service>
60
        <service
ff65ea45 Andy McCall ↶ 61
            android:name=".alerts.LandCheckJob"
62
            android:exported="false"
63
            android:permission="android.permission.BIND_JOB_SERVICE" />
e0e4a1c4 Andy McCall ↶ 64
    </application>
65
66
</manifest>