fix(MM-60638): Insecure File Provider Paths (#8294)

This commit is contained in:
Rahim Rahman 2024-11-08 08:28:19 -07:00 committed by GitHub
parent d27d56f102
commit 83189afa88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 9 deletions

View file

@ -4,5 +4,4 @@
<external-files-path name="external_files" path="." />
<external-path name="external" path="." />
<cache-path name="cache" path="." />
<root-path name="root" path="." />
</paths>

View file

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

View file

@ -0,0 +1,12 @@
diff --git a/node_modules/react-native-share/android/src/main/res/xml/share_download_paths.xml b/node_modules/react-native-share/android/src/main/res/xml/share_download_paths.xml
index 47bce31..1bf6972 100644
--- a/node_modules/react-native-share/android/src/main/res/xml/share_download_paths.xml
+++ b/node_modules/react-native-share/android/src/main/res/xml/share_download_paths.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="rnshare1" path="Download/" />
- <cache-path name="rnshare2" path="/" />
- <root-path name="rnshare_sdcard" path="." />
+ <cache-path name="rnshare2" path="." />
</paths>