diff options
| author | 2023-03-22 04:29:24 -0400 | |
|---|---|---|
| committer | 2023-06-03 00:05:44 -0700 | |
| commit | 1b40a3df19f3a20351667f108be8bc8bda865d30 (patch) | |
| tree | d6331ce74c302ed733e9196729173a7bf2f6ee31 /src/android | |
| parent | android: Remove requestLegacyExternalStorage attribute (diff) | |
| download | yuzu-1b40a3df19f3a20351667f108be8bc8bda865d30.tar.gz yuzu-1b40a3df19f3a20351667f108be8bc8bda865d30.tar.xz yuzu-1b40a3df19f3a20351667f108be8bc8bda865d30.zip | |
android: Add data extraction rules
Diffstat (limited to 'src/android')
3 files changed, 56 insertions, 2 deletions
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml index 2cb4e971d..4164bd96f 100644 --- a/src/android/app/src/main/AndroidManifest.xml +++ b/src/android/app/src/main/AndroidManifest.xml | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <manifest xmlns:tools="http://schemas.android.com/tools" |
| 3 | xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | <uses-feature | 4 | <uses-feature |
| 4 | android:name="android.hardware.touchscreen" | 5 | android:name="android.hardware.touchscreen" |
| 5 | android:required="false"/> | 6 | android:required="false"/> |
| @@ -22,7 +23,9 @@ | |||
| 22 | android:supportsRtl="true" | 23 | android:supportsRtl="true" |
| 23 | android:isGame="true" | 24 | android:isGame="true" |
| 24 | android:banner="@mipmap/ic_launcher" | 25 | android:banner="@mipmap/ic_launcher" |
| 25 | android:extractNativeLibs="true"> | 26 | android:extractNativeLibs="true" |
| 27 | android:fullBackupContent="@xml/data_extraction_rules" | ||
| 28 | android:dataExtractionRules="@xml/data_extraction_rules_api_31"> | ||
| 26 | 29 | ||
| 27 | <activity | 30 | <activity |
| 28 | android:name="org.yuzu.yuzu_emu.ui.main.MainActivity" | 31 | android:name="org.yuzu.yuzu_emu.ui.main.MainActivity" |
diff --git a/src/android/app/src/main/res/xml/data_extraction_rules.xml b/src/android/app/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 000000000..87a5da6a4 --- /dev/null +++ b/src/android/app/src/main/res/xml/data_extraction_rules.xml | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <full-backup-content> | ||
| 3 | |||
| 4 | <exclude | ||
| 5 | domain="external" | ||
| 6 | path="./load/" /> | ||
| 7 | |||
| 8 | <exclude | ||
| 9 | domain="external" | ||
| 10 | path="./log/" /> | ||
| 11 | |||
| 12 | <include | ||
| 13 | domain="external" | ||
| 14 | path="." /> | ||
| 15 | |||
| 16 | </full-backup-content> | ||
diff --git a/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml b/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml new file mode 100644 index 000000000..637fc9e67 --- /dev/null +++ b/src/android/app/src/main/res/xml/data_extraction_rules_api_31.xml | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <data-extraction-rules> | ||
| 3 | <cloud-backup disableIfNoEncryptionCapabilities="false"> | ||
| 4 | |||
| 5 | <exclude | ||
| 6 | domain="external" | ||
| 7 | path="./load/" /> | ||
| 8 | |||
| 9 | <exclude | ||
| 10 | domain="external" | ||
| 11 | path="./log/" /> | ||
| 12 | |||
| 13 | <include | ||
| 14 | domain="external" | ||
| 15 | path="." /> | ||
| 16 | |||
| 17 | </cloud-backup> | ||
| 18 | |||
| 19 | <device-transfer> | ||
| 20 | |||
| 21 | <exclude | ||
| 22 | domain="external" | ||
| 23 | path="./load/" /> | ||
| 24 | |||
| 25 | <exclude | ||
| 26 | domain="external" | ||
| 27 | path="./log/" /> | ||
| 28 | |||
| 29 | <include | ||
| 30 | domain="external" | ||
| 31 | path="." /> | ||
| 32 | |||
| 33 | </device-transfer> | ||
| 34 | |||
| 35 | </data-extraction-rules> | ||