OXYGENHUB
# 8a657957d5a0 oxygenhub-android / app / src / main / AndroidManifest.xml
2.7 KiB · XML · last changed Notifications when a proposal can be landed; the runner comes back after an update or restart (closes #20, refs #8) 10 days ago source blame history raw
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
    <uses-permission android:name="android.permission.INTERNET" />
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" />
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" />
14
15
    <application
16
        android:name=".OxygenHubApp"
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>
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>
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>
52
        <service
53
            android:name=".alerts.LandCheckJob"
54
            android:exported="false"
55
            android:permission="android.permission.BIND_JOB_SERVICE" />
56
    </application>
57
58
</manifest>