diff options
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 @@ <?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android"> +<manifest xmlns:tools="http://schemas.android.com/tools" + xmlns:android="http://schemas.android.com/apk/res/android"> <uses-feature android:name="android.hardware.touchscreen" android:required="false"/> @@ -22,7 +23,9 @@ android:supportsRtl="true" android:isGame="true" android:banner="@mipmap/ic_launcher" - android:extractNativeLibs="true"> + android:extractNativeLibs="true" + android:fullBackupContent="@xml/data_extraction_rules" + android:dataExtractionRules="@xml/data_extraction_rules_api_31"> <activity 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<full-backup-content> + + <exclude + domain="external" + path="./load/" /> + + <exclude + domain="external" + path="./log/" /> + + <include + domain="external" + path="." /> + +</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 @@ +<?xml version="1.0" encoding="utf-8"?> +<data-extraction-rules> + <cloud-backup disableIfNoEncryptionCapabilities="false"> + + <exclude + domain="external" + path="./load/" /> + + <exclude + domain="external" + path="./log/" /> + + <include + domain="external" + path="." /> + + </cloud-backup> + + <device-transfer> + + <exclude + domain="external" + path="./load/" /> + + <exclude + domain="external" + path="./log/" /> + + <include + domain="external" + path="." /> + + </device-transfer> + +</data-extraction-rules> |