修复 打包应用app.viewFile()等涉及文件被其他应用打开时报错的问题

This commit is contained in:
hyb1996
2018-11-11 22:22:50 +08:00
parent b805cefeac
commit 821fd35c9b
4 changed files with 129 additions and 71 deletions

View File

@@ -66,6 +66,15 @@
<action android:name="android.service.notification.NotificationListenerService"/>
</intent-filter>
</service>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="org.autojs.autojs.inrt.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
<files-path name="project" path="project"/>
<root-path name="root_files" path="." />
</paths>