|
109 | 109 | <uses-permission android:name="android.permission.READ_DREAM_STATE" />
|
110 | 110 | <uses-permission android:name="android.permission.READ_DREAM_SUPPRESSION" />
|
111 | 111 |
|
| 112 | + |
| 113 | + <permission |
| 114 | + android:name="android.permission.REQUEST_SUPERUSER" |
| 115 | + android:protectionLevel="signature" /> |
| 116 | + |
| 117 | + <permission |
| 118 | + android:name="android.permission.REPORT_SUPERUSER" |
| 119 | + android:protectionLevel="signature" /> |
| 120 | + |
| 121 | + <permission-group |
| 122 | + android:name="android.permission-group.SUPERUSER" |
| 123 | + android:description="@string/superuser_description_more" |
| 124 | + android:icon="@drawable/ic_action_permission" |
| 125 | + android:label="@string/superuser" |
| 126 | + android:priority="10000" /> |
| 127 | + |
| 128 | + <permission |
| 129 | + android:name="android.permission.ACCESS_SUPERUSER" |
| 130 | + android:description="@string/superuser_description_more" |
| 131 | + android:icon="@drawable/ic_action_permission" |
| 132 | + android:label="@string/superuser_description" |
| 133 | + android:logo="@drawable/ic_action_permission" |
| 134 | + android:permissionGroup="android.permission-group.SUPERUSER" |
| 135 | + android:protectionLevel="dangerous" /> |
| 136 | + |
112 | 137 | <application android:label="@string/settings_label"
|
113 | 138 | android:icon="@mipmap/ic_launcher"
|
114 | 139 | android:theme="@style/Theme.Settings"
|
|
122 | 147 | android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
123 | 148 |
|
124 | 149 | <uses-library android:name="org.apache.http.legacy" />
|
| 150 | + |
| 151 | + <!-- Only system/su can open this activity --> |
| 152 | + <!-- This activity will then call the MultitaskSuRequestActivity to create a new task stack --> |
| 153 | + <activity |
| 154 | + android:name=".cyanogenmod.superuser.RequestActivity" |
| 155 | + android:configChanges="keyboardHidden|orientation|screenSize" |
| 156 | + android:label="@string/superuser" |
| 157 | + android:launchMode="singleTask" |
| 158 | + android:excludeFromRecents="true" |
| 159 | + android:permission="android.permission.REQUEST_SUPERUSER" |
| 160 | + android:process=":superuser" |
| 161 | + android:taskAffinity="com.android.settings.superuser" |
| 162 | + android:theme="@style/RequestThemeDark" /> |
| 163 | + <!-- Only system/su can open this activity --> |
| 164 | + <!-- This is activity is started in multiuser mode when the user invoking su --> |
| 165 | + <!-- is not the device owner (user id 0). --> |
| 166 | + <activity |
| 167 | + android:name=".cyanogenmod.superuser.NotifyActivity" |
| 168 | + android:configChanges="keyboardHidden|orientation|screenSize" |
| 169 | + android:label="@string/superuser" |
| 170 | + android:launchMode="singleTask" |
| 171 | + android:excludeFromRecents="true" |
| 172 | + android:permission="android.permission.REQUEST_SUPERUSER" |
| 173 | + android:process=":superuser" |
| 174 | + android:taskAffinity="com.android.settings.superuser" |
| 175 | + android:theme="@style/RequestThemeDark" /> |
| 176 | + |
| 177 | + <!-- Multiple instances of this activity can be running for multiple su requests --> |
| 178 | + <activity |
| 179 | + android:name=".cyanogenmod.superuser.MultitaskSuRequestActivity" |
| 180 | + android:configChanges="keyboardHidden|orientation|screenSize" |
| 181 | + android:excludeFromRecents="true" |
| 182 | + android:exported="false" |
| 183 | + android:label="@string/request" |
| 184 | + android:process=":superuser" |
| 185 | + android:taskAffinity="com.android.settings.superuser" |
| 186 | + android:theme="@style/RequestThemeDark" /> |
| 187 | + |
| 188 | + <receiver |
| 189 | + android:name=".cyanogenmod.superuser.SuReceiver" |
| 190 | + android:permission="android.permission.REPORT_SUPERUSER" /> |
| 191 | + |
125 | 192 | <!-- Settings -->
|
126 | 193 |
|
127 | 194 | <activity android:name=".homepage.SettingsHomepageActivity"
|
|
2003 | 2070 | android:value="com.android.settings.print.PrintJobSettingsFragment" />
|
2004 | 2071 | </activity>
|
2005 | 2072 |
|
| 2073 | + <activity android:name="Settings$SuperuserActivity" |
| 2074 | + android:label="@string/superuser" |
| 2075 | + android:icon="@drawable/ic_action_permission" |
| 2076 | + android:taskAffinity="com.android.settings" |
| 2077 | + android:parentActivityName="Settings$AccountDashboardActivity"> |
| 2078 | + <intent-filter> |
| 2079 | + <action android:name="android.intent.action.MAIN" /> |
| 2080 | + <category android:name="android.intent.category.DEFAULT" /> |
| 2081 | + </intent-filter> |
| 2082 | + <intent-filter android:priority="3"> |
| 2083 | + <action android:name="com.android.settings.action.SETTINGS" /> |
| 2084 | + </intent-filter> |
| 2085 | + <meta-data android:name="com.android.settings.summary" |
| 2086 | + android:resource="@string/superuser_description"/> |
| 2087 | + <meta-data android:name="com.android.settings.category" |
| 2088 | + android:value="com.android.settings.category.ia.accounts" /> |
| 2089 | + <meta-data android:name="com.android.settings.FRAGMENT_CLASS" |
| 2090 | + android:value="com.android.settings.cyanogenmod.superuser.PolicyNativeFragment" /> |
| 2091 | + <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED" |
| 2092 | + android:value="true" /> |
| 2093 | + </activity> |
| 2094 | + |
2006 | 2095 | <activity android:name=".development.AppPicker"
|
2007 | 2096 | android:label="@string/select_application" />
|
2008 | 2097 |
|
|
0 commit comments