|
4 | 4 | package="org.autojs.autojs">
|
5 | 5 |
|
6 | 6 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
7 |
| - <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
| 7 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" |
| 8 | + tools:ignore="ScopedStorage" /> |
8 | 9 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
9 | 10 | <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
|
10 | 11 | <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>
|
11 | 12 | <uses-permission android:name="android.permission.INTERNET"/>
|
12 | 13 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
13 |
| - <uses-permission android:name="android.permission.READ_LOGS"/> |
| 14 | + <uses-permission android:name="android.permission.READ_LOGS" |
| 15 | + tools:ignore="ProtectedPermissions" /> |
14 | 16 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
15 | 17 | <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
16 | 18 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
|
19 | 21 |
|
20 | 22 | <!-- 非Auto.js运行必需,不会主动申请,某些脚本可以自行申请-->
|
21 | 23 | <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
| 24 | + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> |
22 | 25 | <uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
23 | 26 |
|
24 | 27 | <!-- Ad SDK Permissions -->
|
25 | 28 | <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
|
26 | 29 |
|
27 | 30 |
|
28 | 31 | <application
|
29 |
| - xmlns:tools="http://schemas.android.com/tools" |
30 | 32 | android:name="org.autojs.autojs.App"
|
31 | 33 | android:allowBackup="false"
|
32 | 34 | android:icon="@drawable/autojs_material"
|
|
35 | 37 | android:supportsRtl="true"
|
36 | 38 | android:theme="@style/AppTheme"
|
37 | 39 | android:usesCleartextTraffic="true"
|
38 |
| - tools:replace="android:label, android:icon, android:allowBackup"> |
| 40 | + tools:replace="android:label, android:icon, android:allowBackup" |
| 41 | + tools:targetApi="m"> |
39 | 42 |
|
40 | 43 | <meta-data
|
41 | 44 | android:name="android.max_aspect"
|
|
45 | 48 | android:name="org.autojs.autojs.ui.splash.SplashActivity"
|
46 | 49 | android:hardwareAccelerated="true"
|
47 | 50 | android:label="@string/app_name"
|
48 |
| - android:theme="@style/AppTheme.Splash"> |
| 51 | + android:theme="@style/AppTheme.Splash" |
| 52 | + android:exported="true"> |
49 | 53 | <intent-filter>
|
50 | 54 | <category android:name="android.intent.category.LAUNCHER"/>
|
51 | 55 |
|
|
57 | 61 | android:hardwareAccelerated="true"
|
58 | 62 | android:label="@string/app_name"
|
59 | 63 | android:launchMode="singleTask"
|
60 |
| - android:theme="@style/AppTheme.FullScreen"> |
| 64 | + android:theme="@style/AppTheme.FullScreen" |
| 65 | + android:exported="true"> |
61 | 66 | </activity>
|
62 | 67 | <activity
|
63 | 68 | android:name="org.autojs.autojs.external.shortcut.ShortcutActivity"
|
64 | 69 | android:taskAffinity="org.autojs.autojs.external.shortcut.ShortcutActivity"
|
65 |
| - android:theme="@android:style/Theme.NoDisplay"> |
| 70 | + android:theme="@android:style/Theme.NoDisplay" |
| 71 | + android:exported="true"> |
66 | 72 | <intent-filter>
|
67 | 73 | <action android:name="android.intent.action.MAIN"/>
|
68 | 74 |
|
|
86 | 92 | android:launchMode="standard"
|
87 | 93 | android:multiprocess="true"
|
88 | 94 | android:taskAffinity="org.autojs.autojs.edit"
|
| 95 | + android:exported="false" |
89 | 96 | android:theme="@style/EditorTheme">
|
90 | 97 | </activity>
|
91 |
| - <activity android:name=".ui.settings.AboutActivity_"/> |
| 98 | + <activity android:name=".ui.settings.AboutActivity_" android:exported="false"/> |
92 | 99 | <activity
|
93 |
| - android:name=".ui.settings.SettingsActivity_" |
| 100 | + android:name=".ui.settings.SettingsActivity_" android:exported="false" |
94 | 101 | android:theme="@style/AppTheme.Settings"/>
|
95 |
| - <activity android:name="org.autojs.autojs.ui.error.ErrorReportActivity"/> |
| 102 | + <activity android:name="org.autojs.autojs.ui.error.ErrorReportActivity" android:exported="false"/> |
96 | 103 | <activity
|
97 | 104 | android:name=".external.tasker.TaskerScriptEditActivity_"
|
98 |
| - android:configChanges="orientation|screenSize" |
| 105 | + android:configChanges="orientation|screenSize" android:exported="false" |
99 | 106 | />
|
100 |
| - <activity android:name="org.autojs.autojs.ui.edit.ViewSampleActivity"/> |
| 107 | + <activity android:name="org.autojs.autojs.ui.edit.ViewSampleActivity" android:exported="false"/> |
101 | 108 | <activity
|
102 |
| - android:name=".ui.user.LoginActivity_" |
| 109 | + android:name=".ui.user.LoginActivity_" android:exported="false" |
103 | 110 | android:windowSoftInputMode="adjustResize"/>
|
104 | 111 | <activity
|
105 |
| - android:name=".ui.user.RegisterActivity_" |
| 112 | + android:name=".ui.user.RegisterActivity_" android:exported="false" |
106 | 113 | android:windowSoftInputMode="adjustResize"/>
|
107 |
| - <activity android:name=".ui.user.WebActivity_"/> |
| 114 | + <activity android:name=".ui.user.WebActivity_" android:exported="false"/> |
108 | 115 | <activity
|
109 | 116 | android:name=".ui.project.BuildActivity_"
|
110 |
| - android:configChanges="orientation|screenSize"/> |
111 |
| - <activity android:name=".ui.project.ProjectConfigActivity_"/> |
112 |
| - <activity android:name=".ui.log.LogActivity_"/> |
113 |
| - <activity android:name=".ui.doc.DocumentationActivity_"/> |
114 |
| - <activity android:name=".ui.shortcut.ShortcutIconSelectActivity_"/> |
115 |
| - <activity android:name=".ui.timing.TimedTaskSettingActivity_"/> |
| 117 | + android:configChanges="orientation|screenSize" android:exported="false"/> |
| 118 | + <activity android:name=".ui.project.ProjectConfigActivity_" android:exported="false"/> |
| 119 | + <activity android:name=".ui.log.LogActivity_" android:exported="false"/> |
| 120 | + <activity android:name=".ui.doc.DocumentationActivity_" android:exported="false"/> |
| 121 | + <activity android:name=".ui.shortcut.ShortcutIconSelectActivity_" android:exported="false"/> |
| 122 | + <activity android:name=".ui.timing.TimedTaskSettingActivity_" android:exported="false"/> |
116 | 123 | <activity
|
117 | 124 | android:name="org.autojs.autojs.ui.shortcut.ShortcutCreateActivity"
|
118 |
| - android:theme="@style/AppTheme.Transparent"/> |
119 |
| - <activity android:name=".external.widget.ScriptWidgetSettingsActivity_"> |
| 125 | + android:theme="@style/AppTheme.Transparent" android:exported="false"/> |
| 126 | + <activity android:name=".external.widget.ScriptWidgetSettingsActivity_" |
| 127 | + android:exported="false"> |
120 | 128 | <intent-filter>
|
121 | 129 | <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
122 | 130 | </intent-filter>
|
|
127 | 135 | </activity>
|
128 | 136 |
|
129 | 137 | <activity
|
130 |
| - android:name="org.autojs.autojs.ui.error.IssueReporterActivity" |
| 138 | + android:name="org.autojs.autojs.ui.error.IssueReporterActivity" android:exported="false" |
131 | 139 | android:theme="@style/IssueReporterTheme"/>
|
132 | 140 |
|
133 | 141 |
|
134 |
| - <service android:name="org.autojs.autojs.external.foreground.ForegroundService"/> |
135 |
| - <service android:name="org.autojs.autojs.external.ScriptExecutionIntentService"/> |
| 142 | + <service android:name="org.autojs.autojs.external.foreground.ForegroundService" android:exported="false"/> |
| 143 | + <service android:name="org.autojs.autojs.external.ScriptExecutionIntentService" android:exported="false"/> |
136 | 144 |
|
137 |
| - <activity android:name=".external.tasker.TaskPrefEditActivity_"/> |
| 145 | + <activity android:name=".external.tasker.TaskPrefEditActivity_" android:exported="false"/> |
138 | 146 |
|
139 | 147 | <service
|
140 | 148 | android:name="org.autojs.autojs.external.tile.LayoutBoundsTile"
|
141 | 149 | android:icon="@drawable/ic_circular_menu_bounds"
|
142 | 150 | android:label="@string/text_inspect_layout_bounds"
|
143 |
| - android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
| 151 | + android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" |
| 152 | + android:exported="true"> |
144 | 153 | <meta-data
|
145 | 154 | android:name="android.service.quicksettings.ACTIVE_TILE"
|
146 | 155 | android:value="false"/>
|
|
153 | 162 | android:name="org.autojs.autojs.external.tile.LayoutHierarchyTile"
|
154 | 163 | android:icon="@drawable/ic_circular_menu_hierarchy"
|
155 | 164 | android:label="@string/text_inspect_layout_hierarchy"
|
156 |
| - android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> |
| 165 | + android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" |
| 166 | + android:exported="true"> |
157 | 167 |
|
158 | 168 | <meta-data
|
159 | 169 | android:name="android.service.quicksettings.ACTIVE_TILE"
|
|
175 | 185 | </intent-filter>
|
176 | 186 | </activity-alias>
|
177 | 187 |
|
178 |
| - <receiver android:name="org.autojs.autojs.external.receiver.StaticBroadcastReceiver"> |
| 188 | + <receiver android:name="org.autojs.autojs.external.receiver.StaticBroadcastReceiver" |
| 189 | + android:exported="false"> |
179 | 190 | <intent-filter>
|
180 | 191 | <action android:name="android.intent.action.BOOT_COMPLETED"/>
|
181 | 192 | <action android:name="android.intent.action.QUICKBOOT_POWERON"/>
|
|
199 | 210 | <action android:name="android.intent.action.WALLPAPER_CHANGED"/>
|
200 | 211 | <action android:name="android.intent.action.USER_UNLOCKED"/>
|
201 | 212 | <action android:name="android.intent.action.USER_PRESENT"/>
|
202 |
| - <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> |
| 213 | + <action android:name="android.net.conn.CONNECTIVITY_CHANGE" |
| 214 | + tools:ignore="BatteryLife" /> |
203 | 215 | </intent-filter>
|
204 | 216 | <intent-filter>
|
205 | 217 | <action android:name="android.intent.action.PACKAGE_ADDED"/>
|
|
227 | 239 | <activity
|
228 | 240 | android:name="org.autojs.autojs.external.open.EditIntentActivity"
|
229 | 241 | android:icon="@drawable/autojs_material"
|
230 |
| - android:label="@string/text_edit_script"> |
| 242 | + android:label="@string/text_edit_script" |
| 243 | + android:exported="true"> |
231 | 244 | <intent-filter>
|
232 | 245 | <action android:name="android.intent.action.VIEW"/>
|
233 | 246 | <action android:name="android.intent.action.EDIT"/>
|
|
246 | 259 | android:icon="@drawable/autojs_material"
|
247 | 260 | android:label="@string/text_run_script"
|
248 | 261 | android:taskAffinity="org.autojs.autojs.external.open.RunIntentActivity"
|
249 |
| - android:theme="@android:style/Theme.NoDisplay"> |
| 262 | + android:theme="@android:style/Theme.NoDisplay" |
| 263 | + android:exported="true"> |
250 | 264 | <intent-filter>
|
251 | 265 | <action android:name="android.intent.action.VIEW"/>
|
252 | 266 | <action android:name="android.intent.action.EDIT"/>
|
|
264 | 278 | android:name="org.autojs.autojs.external.open.ImportIntentActivity"
|
265 | 279 | android:icon="@drawable/autojs_material"
|
266 | 280 | android:label="@string/text_import_script"
|
267 |
| - android:theme="@style/AppTheme.Transparent"> |
| 281 | + android:theme="@style/AppTheme.Transparent" |
| 282 | + android:exported="true"> |
268 | 283 | <intent-filter>
|
269 | 284 | <action android:name="android.intent.action.VIEW"/>
|
270 | 285 | <action android:name="android.intent.action.EDIT"/>
|
|
282 | 297 | <service
|
283 | 298 | android:name="com.stardust.notification.NotificationListenerService"
|
284 | 299 | android:label="@string/app_name"
|
285 |
| - android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> |
| 300 | + android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" |
| 301 | + android:exported="false"> |
286 | 302 | <intent-filter>
|
287 | 303 | <action android:name="android.service.notification.NotificationListenerService"/>
|
288 | 304 | </intent-filter>
|
289 | 305 | </service>
|
290 | 306 |
|
291 |
| - <receiver android:name="org.autojs.autojs.external.widget.ScriptWidget"> |
| 307 | + <receiver android:name="org.autojs.autojs.external.widget.ScriptWidget" |
| 308 | + android:exported="false"> |
292 | 309 | <intent-filter>
|
293 | 310 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
294 | 311 | </intent-filter>
|
|
298 | 315 | android:resource="@xml/script_widget_config"/>
|
299 | 316 | </receiver>
|
300 | 317 |
|
301 |
| - <receiver android:name="org.autojs.autojs.timing.TaskReceiver"> |
| 318 | + <receiver android:name="org.autojs.autojs.timing.TaskReceiver" |
| 319 | + android:exported="false"> |
302 | 320 | <intent-filter>
|
303 | 321 | <action android:name="com.stardust.autojs.action.task"/>
|
304 | 322 | </intent-filter>
|
305 | 323 | </receiver>
|
306 | 324 |
|
307 |
| - <receiver android:name=".timing.work.AlarmManagerProvider"> |
| 325 | + <receiver android:name=".timing.work.AlarmManagerProvider" |
| 326 | + android:exported="false"> |
308 | 327 | <intent-filter>
|
309 | 328 | <action android:name="com.stardust.autojs.action.check_task"/>
|
310 | 329 | <action android:name="com.android.deskclock.ALARM_ALERT"/>
|
|
0 commit comments