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

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

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