Skip to content

armgit / haven

Public Imported from GitHub
0

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors

update file provider paths to not crash

n8fr8a499680e7c62
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index 4b70a04..f2052df 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -127,7 +127,8 @@
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
- android:resource="@xml/file_provider_paths" />
+ android:resource="@xml/file_provider_paths"
+ />
</provider>
</application>
diff --git a/src/main/res/xml/file_provider_paths.xml b/src/main/res/xml/file_provider_paths.xml
index c4d9bfa..9dca455 100644
--- a/src/main/res/xml/file_provider_paths.xml
+++ b/src/main/res/xml/file_provider_paths.xml
@@ -1,4 +1,7 @@
-<paths xmlns:android="http://schemas.android.com/apk/res/android">
+<?xml version="1.0" encoding="utf-8"?>
+<paths>
<files-path name="shared" path="shared/"/>
- <external-path path="phoneypot/" name="phoneypot" />
+ <external-path path="haven/" name="haven" />
+ <external-path path="Android/data/" name="files_root" />
+ <external-path path="." name="external_storage_root" />
</paths>