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

Modern-Apps.git / setupwizard / src / main / AndroidManifest.xml

AndroidManifest.xml88 lines · 4.3 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 tools:ignore="ProtectedPermissions">
5
6 <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). -->
7 <!-- This app uses no motion/environment sensors; MAOS withholds the -->
8 <!-- Sensors permission at install instead of auto-granting it. -->
9 <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />
10
11 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
12 <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
13 <uses-permission android:name="android.permission.MANAGE_USER_OEM_UNLOCK_STATE" />
14 <uses-permission android:name="android.permission.NETWORK_SETUP_WIZARD" />
15 <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
16 <uses-permission android:name="android.permission.READ_OEM_UNLOCK_STATE" />
17 <uses-permission android:name="android.permission.REBOOT" />
18 <uses-permission android:name="android.permission.STATUS_BAR" />
19 <!--
20 AUTO_TIME and AUTO_TIME_ZONE are Settings.Global, which is gated on WRITE_SECURE_SETTINGS
21 rather than WRITE_SETTINGS. SET_TIME / SET_TIME_ZONE are deliberately NOT requested: the
22 wizard turns the automatic clock on and never sets a time itself.
23 -->
24 <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
25 <uses-permission android:name="android.permission.WRITE_SETTINGS" />
26 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
27
28 <!--
29 The gesture tutorial, the Wi-Fi and lock-screen setup flows and the restore flow all live
30 in other packages and are reached by implicit intent. Package visibility filtering would
31 otherwise hide them from resolveActivity, and the steps that probe before launching would
32 all conclude they are unavailable.
33 -->
34 <queries>
35 <intent>
36 <action android:name="android.settings.SETUP_INTERNET" />
37 </intent>
38 <intent>
39 <action android:name="android.settings.BIOMETRIC_ENROLL" />
40 </intent>
41 <intent>
42 <action android:name="android.settings.ACCESSIBILITY_SETTINGS_FOR_SUW" />
43 </intent>
44 <intent>
45 <action android:name="com.android.quickstep.action.GESTURE_SANDBOX" />
46 </intent>
47 <intent>
48 <action android:name="com.vayunmathur.backup.RESTORE_BACKUP" />
49 </intent>
50 </queries>
51
52 <application
53 android:allowBackup="false"
54 android:dataExtractionRules="@xml/data_extraction_rules"
55 android:icon="@mipmap/ic_launcher"
56 android:label="@string/app_name"
57 android:roundIcon="@mipmap/ic_launcher"
58 android:supportsRtl="true"
59 android:theme="@style/Theme.General">
60
61 <!--
62 BOOT-CRITICAL. The platform picks the setup wizard by resolving MAIN against the
63 SETUP_WIZARD and HOME categories; priority 999 is what wins that resolution over
64 AOSP's Provision and over the real launcher while the device is unprovisioned. If
65 this filter is wrong there is no HOME activity during provisioning and the device
66 does not get past first boot.
67
68 android:name is written out in full rather than as ".MainActivity" because the
69 same string is the one privapp-permissions and KnownSystemPackages are matched
70 against by hand, and a relative name hides that.
71 -->
72 <activity
73 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
74 android:name="com.vayunmathur.setupwizard.MainActivity"
75 android:exported="true"
76 android:launchMode="singleTask"
77 android:theme="@style/Theme.General">
78 <intent-filter android:priority="999">
79 <action android:name="android.intent.action.MAIN" />
80
81 <category android:name="android.intent.category.DEFAULT" />
82 <category android:name="android.intent.category.SETUP_WIZARD" />
83 <category android:name="android.intent.category.HOME" />
84 </intent-filter>
85 </activity>
86 </application>
87
88</manifest>