Эх сурвалжийг харах

android: Add data extraction rules

Charles Lombardo 3 жил өмнө
parent
commit
1b40a3df19

+ 5 - 2
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"

+ 16 - 0
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>

+ 35 - 0
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>