OXYGENHUB
# fbc95ee8777c oxygenhub-android / app / src / main / AndroidManifest.xml
2.0 KiB · XML · last changed The phone as an OxygenFlow runner, first part (refs #8) 10 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" />
5ae4af48 Andy McCall ↶ 12
e0e4a1c4 Andy McCall ↶ 13
    <application
5ae4af48 Andy McCall ↶ 14
        android:name=".OxygenHubApp"
e0e4a1c4 Andy McCall ↶ 15
        android:allowBackup="true"
16
        android:dataExtractionRules="@xml/data_extraction_rules"
17
        android:fullBackupContent="@xml/backup_rules"
18
        android:icon="@mipmap/ic_launcher"
19
        android:label="@string/app_name"
20
        android:roundIcon="@mipmap/ic_launcher_round"
21
        android:supportsRtl="true"
22
        android:theme="@style/Theme.OxygenHub">
23
        <activity
24
            android:name=".MainActivity"
25
            android:exported="true"
26
            android:theme="@style/Theme.OxygenHub"
27
            android:windowSoftInputMode="adjustResize">
28
            <intent-filter>
29
                <action android:name="android.intent.action.MAIN" />
30
31
                <category android:name="android.intent.category.LAUNCHER" />
32
            </intent-filter>
33
        </activity>
4aee5293 Andy McCall ↶ 34
        <service
35
            android:name=".runner.RunnerService"
36
            android:exported="false"
37
            android:foregroundServiceType="specialUse">
38
            <property
39
                android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
40
                android:value="Runs OxygenFlow CI jobs (WebAssembly) for the signed-in account while the phone is charging on Wi-Fi" />
41
        </service>
e0e4a1c4 Andy McCall ↶ 42
    </application>
43
44
</manifest>