feat: 改用系统安装器弹窗(FileProvider+ACTION_VIEW), 无需手动找权限

This commit is contained in:
LukeMackin
2026-07-19 21:06:04 +08:00
parent 14367a229b
commit b70c5015a0
14 changed files with 21 additions and 37 deletions

View File

@@ -19,5 +19,15 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>