Repository navigation
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
549 lines (491 loc) · 28.8 KB
/
Copy pathAndroidManifest.xml
File metadata and controls
549 lines (491 loc) · 28.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hex91.file"
android:versionCode="320"
android:versionName="2.127.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<!-- v1.45.0 应用管理:targetSdk 30 包可见性过滤,需此权限查询全部已安装应用 -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
<!-- 终端「更新工具」:下载/OTA 检查需要联网 -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- v1.50.0 远程管理:传输期间持有高性能 Wi-Fi 锁防休眠断流 -->
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!-- v1.69.0 Activity 记录浮窗:叠在其他应用上层显示 -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<!-- v1.69.0 浮窗必须跑在前台服务里(Android 8+ 后台限制) -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<!-- v1.98.0:文件任务前台服务(复制/移动/压缩跑在后台)。API 34 起按类型授权,
这里提前声明 dataSync 类型与对应权限,targetSdk 还是 30 时系统会忽略 -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
<!-- v2.113.0(F-25):隐私空间的指纹快捷解锁。normal 权限,安装即授予,
不需要运行时申请;不声明则 KeyStore 的认证型密钥生成会被系统拒绝 -->
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
<!-- v1.98.0:任务进度通知。targetSdk 30 时安装即授予;提前声明便于日后升 targetSdk -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<!-- v1.74.0 局域网快传:UDP 广播发现 + 本机 HTTP 接收 -->
<!-- v2.17.0(F-23):定时任务要在重启后重新注册闹钟 -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<!-- v1.86.0 Shizuku:向 Shizuku 声明需要它授予 shell 权限(由 Shizuku app 在授权时校验) -->
<uses-permission android:name="moe.shizuku.manager.permission.API_V23"/>
<!-- v1.74.1 明文 HTTP 放行:快传/WebDAV/网络工具的目标地址是运行时才知道的局域网 IP,
无法枚举成域名白名单,详见 res/xml/network_security_config.xml 的说明。
usesCleartextTraffic 供 API 23~27 兜底(这批系统还不读 networkSecurityConfig)。 -->
<application
android:name="com.hex91.file.HfApp"
android:label="HexFile"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/Theme_Hex_0"
android:largeHeap="true"
android:requestLegacyExternalStorage="true"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true">
<!-- v1.86.0 Shizuku 客户端标记:告诉 Shizuku app 本应用支持 V3 协议。
缺了它 Shizuku 会按旧协议处理,newProcess 等能力拿不到。 -->
<meta-data
android:name="moe.shizuku.client.V3_SUPPORT"
android:value="true"/>
<!-- v1.86.0 Shizuku 的 binder 不走 Service,而是由客户端自己声明这个
provider(authorities 必须是「包名 + .shizuku」)由它把 binder 交过来。
少了它 pingBinder() 恒为 false,而且没有任何报错——最常见的踩坑点。
permission 是 signature|privileged 级,普通应用无法直接查询。 -->
<provider
android:name="rikka.shizuku.ShizukuProvider"
android:authorities="com.hex91.file.shizuku"
android:enabled="@bool/shizuku_provider_enabled"
android:exported="true"
android:multiprocess="false"
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL"/>
<!-- v1.66.0 统一签名弹窗(透明,退出 APK 浏览时弹出) -->
<activity
android:name="com.hex91.file.ui.SignPromptActivity"
android:exported="false"
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
<activity
android:name="com.hex91.file.MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- v2.12.0(F-17):接收外部应用的分享。文件名优先取 OpenableColumns.DISPLAY_NAME,
内容一律先复制进工作目录(见 utils/IntentImport)—— 对方的 content:// 授权
只在本进程收到 Intent 的那段时间有效,不复制的话过一会儿就读不到了。 -->
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.SEND_MULTIPLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="*/*"/>
</intent-filter>
<!-- v2.12.0(F-17):「用 HexFile 打开」。刻意只列本应用真能处理的类型,
不加 BROWSABLE —— 那会让 http 链接也能被本应用接管。 -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="application/vnd.android.package-archive"/>
<data android:mimeType="application/zip"/>
<data android:mimeType="application/x-zip-compressed"/>
<data android:mimeType="application/x-7z-compressed"/>
<data android:mimeType="application/x-rar-compressed"/>
<data android:mimeType="application/x-tar"/>
<data android:mimeType="application/gzip"/>
<data android:mimeType="application/x-gzip"/>
<data android:mimeType="text/plain"/>
<data android:mimeType="image/*"/>
</intent-filter>
</activity>
<activity
android:name="com.hex91.file.ui.SearchActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.87.0 云同步(WebDAV 双向) -->
<activity
android:name="com.hex91.file.ui.SyncActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.TrashActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.99.3:独立任务中心(进度 / 逐条重试 / 取消 / 清理记录) -->
<activity
android:name="com.hex91.file.ui.TaskCenterActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.83.0:统一设置页(主题 / 工作目录 / Root / 回收站策略 / 版本) -->
<activity
android:name="com.hex91.file.ui.SettingsActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.ZipBrowserActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.TextEditorActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<activity
android:name="com.hex91.file.ui.HexViewerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.ImageViewerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v2.12.0(F-18):崩溃现场(堆栈 + 环形日志 + 机型),崩溃提示也跳这里 -->
<activity
android:name="com.hex91.file.ui.CrashReportActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v2.17.0(F-23):定时任务列表 -->
<activity
android:name="com.hex91.file.ui.ScheduleActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v2.18.0(F-22):隐私空间(口令解锁的加密目录,密文在 HexFile/.vault) -->
<activity
android:name="com.hex91.file.ui.VaultActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v2.12.0(F-09):图片元数据(文件信息 + EXIF) -->
<activity
android:name="com.hex91.file.ui.ImageInfoActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.DexEditorActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.67.0:签名管理(导入 JKS/BKS/PKCS12 到应用内部 + 查看证书信息 + 默认密钥) -->
<activity
android:name="com.hex91.file.ui.SignKeyManagerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.63.0:smali → Java 源码查看(dex2jar + CFR,全离线插件化) -->
<activity
android:name="com.hex91.file.ui.DecompileActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.ManifestEditorActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<activity
android:name="com.hex91.file.ui.ArscEditorActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<!-- v1.64.0:ARSC++ 编辑(包→类型→配置 树 + values XML 源码编辑写回) -->
<activity
android:name="com.hex91.file.ui.ArscPlusActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<activity
android:name="com.hex91.file.ui.CompareActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.StringsViewerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.BatchRenameActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<activity
android:name="com.hex91.file.ui.AppManagerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.54.0:备份管理(列出所有备份,支持已卸载应用还原) -->
<activity
android:name="com.hex91.file.ui.BackupManagerActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.48.0:主题设置页(22 套色板 + 跟随系统明暗) -->
<activity
android:name="com.hex91.file.ui.ThemeActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.49.0:终端模拟器(NDK PTY + 自研 VT100/xterm 仿真)。
v1.96.0:exported 改回 false —— 它只从抽屉入口启动(MainActivity→startActivity),
之前留 true 是自动化冒烟测试图方便,等于任何应用都能拉起一个终端页面(命令虽以本应用
uid 执行,不等于提权,但没必要留这个口子)。需要再冒烟就用 debug 源集的 manifest 覆盖。 -->
<activity
android:name="com.hex91.file.ui.TerminalActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|keyboard|navigation|uiMode"
android:windowSoftInputMode="adjustResize"/>
<!-- v1.50.0:远程管理(局域网 HTTP 服务器,服务随页面开启/关闭) -->
<activity
android:name="com.hex91.file.ui.RemoteActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.57.0:APK 信息查看(权限/组件/ABI/DEX/签名一览) -->
<activity
android:name="com.hex91.file.ui.ApkInfoActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.58.0:PDF 预览(PdfRenderer 渲染/翻页/导出 PNG) -->
<activity
android:name="com.hex91.file.ui.PdfPreviewActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.58.0:字体预览(ttf/otf 样张实时渲染) -->
<activity
android:name="com.hex91.file.ui.FontPreviewActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.59.0:存储分析(目录占用树下钻 + 大文件清理) -->
<activity
android:name="com.hex91.file.ui.StorageAnalysisActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.59.0:重复文件查找(三阶段内容级查重) -->
<activity
android:name="com.hex91.file.ui.DupFinderActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.56.0:网络存储(SMB/WebDAV 客户端,直连电脑共享) -->
<activity
android:name="com.hex91.file.ui.NetStorageActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.90.0:云盘网页登录(内嵌官方登录页,登录完自动取回凭证) -->
<activity
android:name="com.hex91.file.ui.CloudLoginActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"
android:windowSoftInputMode="adjustResize"/>
<!-- v1.62.0:Java → Smali 转换(ECJ + dx + baksmali) -->
<activity
android:name="com.hex91.file.ui.Java2SmaliActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.61.0:Smali 语法查询(指令中文解析 + 搜索) -->
<activity
android:name="com.hex91.file.ui.SmaliDocActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.69.0:Activity 记录页(开关 + 权限 + 完整记录列表) -->
<activity
android:name="com.hex91.file.ui.ActivityLogActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.70.0:工具箱 —— 编码转换 / 加解密 / 进制 / 网络请求 / 时间戳 -->
<activity
android:name="com.hex91.file.ui.ToolboxActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.71.0:测试数据生成(身份证 / 银行卡) -->
<activity
android:name="com.hex91.file.ui.TestDataActivity"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.CodecActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.CipherActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.RadixActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.HttpToolActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<activity
android:name="com.hex91.file.ui.TimeToolActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.91.0:内置视频播放器(Media3 ExoPlayer 内核)。
三个入口:
① 应用内点视频/长按「播放」;
② 顶栏 ⋮ →「播放链接 / 串流…」;
③ 外部 Intent(浏览器点 m3u8、其他应用「用 HexFile 打开」)。
exported=true 是被 ③ 逼出来的,因此入口处做了协议白名单(见 StreamUrl.isSupported):
只认 http/https/rtsp/rtmps/file/content,javascript:/intent:/data: 一律拒绝。
configChanges 必须带上 orientation|screenSize,否则转屏会重建 Activity → 播放中断。
launchMode=singleTop:连点两个视频不会堆出两层播放器。 -->
<activity
android:name="com.hex91.file.ui.VideoPlayerActivity"
android:label="视频播放"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/VpWindow"
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboardHidden|uiMode">
<!-- 本地/其他应用共享的视频:只挂 file/content,不挂 http/https,
避免把浏览器里所有视频链接都抢过来 -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:mimeType="video/*"/>
</intent-filter>
<!-- HLS:各家的 mime 写法五花八门,全列上 -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:mimeType="application/vnd.apple.mpegurl"/>
<data android:mimeType="application/x-mpegurl"/>
<data android:mimeType="application/x-mpegURL"/>
<data android:mimeType="audio/mpegurl"/>
<data android:mimeType="audio/x-mpegurl"/>
</intent-filter>
<!-- m3u8 链接拦截:用 pathSuffix 而不是 pathPattern。
pathPattern 是「简单 glob」,反斜杠转义在不同版本上语义有差异,
写错的表现是「过滤器静默失效」或「连普通网页链接也抢」,两头都很难查。
pathSuffix 只做纯文本后缀比较,没有转义问题。
host="*" 不能省 —— 只写 scheme+path 时系统会忽略 path 条件,等于接管所有 http 链接。 -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="http" android:host="*" android:pathSuffix=".m3u8"/>
<data android:scheme="https" android:host="*" android:pathSuffix=".m3u8"/>
<data android:scheme="http" android:host="*" android:pathSuffix=".mpd"/>
<data android:scheme="https" android:host="*" android:pathSuffix=".mpd"/>
</intent-filter>
<!-- RTSP 摄像头/串流 -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="rtsp"/>
</intent-filter>
</activity>
<!-- v1.92.0:HLS 下载 / 合并为 MP4。
不挂任何 intent-filter:它接受 http 地址与本地路径,exported=false 才不会
被第三方应用塞一个 URL 触发下载(那会变成一个「后台偷偷下东西」的入口)。 -->
<activity
android:name="com.hex91.file.ui.HlsDownloadActivity"
android:label="下载视频"
android:exported="false"
android:windowSoftInputMode="adjustResize"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.69.0:Activity 记录浮窗(前台服务,TYPE_APPLICATION_OVERLAY) -->
<service
android:name="com.hex91.file.ui.ActivityFloatService"
android:label="Activity 记录浮窗"
android:exported="false"/>
<!-- v1.69.0:Activity 记录(无障碍服务,只读包名/类名,不读窗口内容) -->
<service
android:name="com.hex91.file.ui.ActivityTraceService"
android:label="Activity 记录"
android:exported="true"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService"/>
</intent-filter>
<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_trace"/>
</service>
<!-- v1.74.0:局域网快传(雷达扫描同网设备,点击直接传文件) -->
<activity
android:name="com.hex91.file.ui.LanShareActivity"
android:label="局域网快传"
android:exported="false"
android:configChanges="orientation|screenSize|keyboardHidden|uiMode"/>
<!-- v1.98.0:文件任务前台服务。复制/移动大文件时把进程钉在前台,
否则切到别的应用后进程被冻结/回收,任务静默失败;同时承载进度通知 -->
<service
android:name="com.hex91.file.ui.TaskService"
android:label="文件任务"
android:exported="false"
android:foregroundServiceType="dataSync"/>
<!-- v2.113.0(R-41):定时任务执行的前台服务。原来在广播 receiver 里跑,
10 秒预算一过就可能被杀;现在由服务承载,通知可见、锁屏不中断 -->
<service
android:name="com.hex91.file.sched.ScheduleService"
android:label="定时任务"
android:exported="false"
android:foregroundServiceType="dataSync"/>
<!-- v1.74.0:后台接收(前台服务,锁屏/切后台仍可收文件) -->
<service
android:name="com.hex91.file.ui.LanShareService"
android:label="局域网快传"
android:exported="false"
android:foregroundServiceType="dataSync"/>
<!-- 迷你文件共享 Provider:安装 APK 时向系统安装器提供文件 -->
<!-- v1.85.0 桌面小组件:常用目录 + 存储概览 -->
<receiver
android:name="com.hex91.file.ui.WidgetProvider"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_info"/>
</receiver>
<!-- v2.13.0(F-03):分包安装的会话结果。PackageInstaller 只能通过 PendingIntent
把结果送回来,所以必须有这个组件;exported=false —— PendingIntent 由本应用
自建、系统发出,不需要导出(导出等于允许任何应用伪造「安装成功」)。 -->
<receiver
android:name="com.hex91.file.ui.InstallResultReceiver"
android:exported="false"/>
<!-- v2.17.0(F-23):到点执行。exported=false —— 它会删文件,只有本应用自己的
闹钟 PendingIntent 能唤到它;开机重排交给下面的 BootReceiver。 -->
<receiver
android:name="com.hex91.file.sched.ScheduleReceiver"
android:exported="false"/>
<!-- v2.17.0(F-23):开机 / 升级后重排闹钟。系统广播必须 exported=true;
即使被别的应用触发,也只是把闹钟重设一次(等价操作),不碰任何文件。 -->
<receiver
android:name="com.hex91.file.sched.BootReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>
<provider
android:name="com.hex91.file.ui.ApkFileProvider"
android:authorities="com.hex91.file.files"
android:exported="false"
android:grantUriPermissions="true"/>
<!-- v1.84.0 Storage Access Framework:让系统「文件」应用与其他应用的
「打开文件 / 选择位置」能直接浏览本机目录。MANAGE_DOCUMENTS 是系统权限,
只有系统文档 UI 能直接查询;普通应用拿到的是系统授予的临时 URI 权限。 -->
<provider
android:name="com.hex91.file.ui.HfDocumentsProvider"
android:authorities="com.hex91.file.documents"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER"/>
</intent-filter>
</provider>
</application>
</manifest>