Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60410a71 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

add proper backup app support

parent 2ce05edd
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -67,6 +67,9 @@

    <application
        android:name=".AppLoungeApplication"
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:killAfterRestore="false"
        android:label="@string/app_name"
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2026 e Foundation
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->
<full-backup-content>
    <include domain="database" path="." />
    <exclude domain="database" path="App_Lounge-shm" />
    <exclude domain="database" path="App_Lounge-wal" />
    <exclude domain="database" path="fused_database-shm" />
    <exclude domain="database" path="fused_database-wal" />

    <include domain="sharedpref" path="." />
</full-backup-content>
+38 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2026 e Foundation
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
-->
<data-extraction-rules>
    <cloud-backup disableIfNoEncryptionCapabilities="true">
        <include domain="database" path="." />
        <exclude domain="database" path="App_Lounge-shm" />
        <exclude domain="database" path="App_Lounge-wal" />
        <exclude domain="database" path="fused_database-shm" />
        <exclude domain="database" path="fused_database-wal" />

        <include domain="sharedpref" path="." />
    </cloud-backup>

    <device-transfer>
        <include domain="database" path="." />
        <exclude domain="database" path="App_Lounge-shm" />
        <exclude domain="database" path="App_Lounge-wal" />
        <exclude domain="database" path="fused_database-shm" />
        <exclude domain="database" path="fused_database-wal" />

        <include domain="sharedpref" path="." />
    </device-transfer>
</data-extraction-rules>