# Back up the app's settings

**URL:** <https://forum.antennapod.org/t/back-up-the-apps-settings/388>\
**Category:** Feature request\
**Created:** [November 19, 2020, 2:42am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388 "2020-11-19T02:42:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuini\_Gg](https://forum.antennapod.org/user_avatar/forum.antennapod.org/shuini_gg/32/298_2.png) [@Shuini\_Gg](https://forum.antennapod.org/u/Shuini_Gg)\
**Post date:** [November 19, 2020, 2:42am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/1 "2020-11-19T02:42:57Z")

</div>

**App version** : x.y.z (state whether from Google Play/F-Droid/Custom built APK)

**Problem you may be having, or feature you want** :  
I want to be able to back up the app’s settings.

**Suggested solution** :

**Screenshots / Drawings / Technical details** :

---

<div class="post-metadata">

**Author:** ![tenkara\_vt](https://forum.antennapod.org/user_avatar/forum.antennapod.org/tenkara_vt/32/128_2.png) [@tenkara\_vt](https://forum.antennapod.org/u/tenkara_vt)\
**Post date:** [November 19, 2020, 2:57am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/2 "2020-11-19T02:57:23Z")

</div>

The ability to backup your database and everything associated with it already exists. Or are you specifically referring to the granular settings such as your theme and other UI, playback, network, storage, etc. Is that what you want to backup?

I don’t recall, because I haven’t done it in awhile. @ByteHamster do settings get backed up when someone dies a database backup?

---

<div class="post-metadata">

**Author:** ![Shuini\_Gg](https://forum.antennapod.org/user_avatar/forum.antennapod.org/shuini_gg/32/298_2.png) [@Shuini\_Gg](https://forum.antennapod.org/u/Shuini_Gg)\
**Post date:** [November 19, 2020, 6:57am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/3 "2020-11-19T06:57:51Z")

</div>

yes,back up theme and other UI, playback, network, storage…Not just a database.  
😀

---

<div class="post-metadata">

**Author:** ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)\
**Post date:** [November 19, 2020, 7:10am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/4 "2020-11-19T07:10:18Z")

</div>

App settings like theme are currently not backed up - just the database with subscriptions/playback state. This is already tracked on the developer platform: [https://github.com/AntennaPod/AntennaPod/issues/4089](https://github.com/AntennaPod/AntennaPod/issues/4089)

---

<div class="post-metadata">

**Author:** ![Moloch981](https://forum.antennapod.org/user_avatar/forum.antennapod.org/moloch981/32/1267_2.png) [@Moloch981](https://forum.antennapod.org/u/Moloch981)\
**Post date:** [May 8, 2022, 1:45pm UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/5 "2022-05-08T13:45:49Z")

</div>

+1 for a way to backup database with subscriptions/playback state + all your settings for the app.

I’m replying to this old thread to show my support for this idea. Please tell me if it’s best to open a new one instead.

---

<div class="post-metadata">

**Author:** ![keunes](https://forum.antennapod.org/user_avatar/forum.antennapod.org/keunes/32/61_2.png) [@keunes](https://forum.antennapod.org/u/keunes)\
**Post date:** [May 8, 2022, 6:30pm UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/6 "2022-05-08T18:30:09Z")

</div>

> [@Moloch981](#):
>
> I’m replying to this old thread to show my support for this idea. Please tell me if it’s best to open a new one instead.

@Moloch981 For feature requests it’s always best to give a heart to the first post, or to add a comment if you want something slightly different, if you would like it to function in a specific way or if you want to share your use-case. (Creating new threads would make it more difficult to see the interest in a feature because the numbers would be spread out.)

---

<div class="post-metadata">

**Author:** ![tonytamsf](https://forum.antennapod.org/user_avatar/forum.antennapod.org/tonytamsf/32/63_2.png) [@tonytamsf](https://forum.antennapod.org/u/tonytamsf)\
**Post date:** [April 19, 2024, 7:01am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/7 "2024-04-19T07:01:46Z")

</div>

@ByteHamster and @keunes - could we consider backing up user preference to the Google drive using Google’s Auto backup feature so when we restore our phones, all the preferences are restored? With 25 MB of max backup size, we might not be able to backup the sqllite database.

> **[Back up user data with Auto Backup  |  Android Developers](https://developer.android.com/guide/topics/data/autobackup?authuser=2#include-exclude-android-11)**

---

<div class="post-metadata">

**Author:** ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)\
**Post date:** [April 19, 2024, 4:19pm UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/8 "2024-04-19T16:19:54Z")

</div>

To me, it feels a bit strange to store settings but not the actually important things – the subscriptions. We already have an open issue for backing up the subscriptions: [Store list of subscriptions (possibly settings) through Google's Auto Backup for Apps · Issue #1899 · AntennaPod/AntennaPod · GitHub](https://github.com/AntennaPod/AntennaPod/issues/1899) There is also some code that looks like it does something like this: [AntennaPod/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/OpmlBackupAgent.java at develop · AntennaPod/AntennaPod · GitHub](https://github.com/AntennaPod/AntennaPod/blob/develop/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/OpmlBackupAgent.java) I don’t know if the code works, though. I don’t upload my app data to Google

* * *

In my opinion, backing up the settings is quite a low priority change. It might even be an advantage that users are reset to the default settings when changing devices. That way, potentially “misconfigured” settings get changed back to the default.

---

<div class="post-metadata">

**Author:** ![keunes](https://forum.antennapod.org/user_avatar/forum.antennapod.org/keunes/32/61_2.png) [@keunes](https://forum.antennapod.org/u/keunes)\
**Post date:** [April 19, 2024, 8:59pm UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/9 "2024-04-19T20:59:12Z")

</div>

I think it’d be helpful to have settings migrated, but I wouldn’t be in favour of doing it through Google as just settings alone are quite useless, only really relevant in conjunction with the content. So for me it should be included in the (full) database export directly from the app. (Or, at the very least, indeed in conjunction with the subscriptions, via Google.)

---

<div class="post-metadata">

**Author:** ![Matth78](https://forum.antennapod.org/user_avatar/forum.antennapod.org/matth78/32/62_2.png) [@Matth78](https://forum.antennapod.org/u/Matth78)\
**Post date:** [April 19, 2024, 9:23pm UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/10 "2024-04-19T21:23:30Z")

</div>

Maybe it’s not a good idea but why not store settings in exported database. On import user could choose what he wants to restore : database only, settings or both.

---

<div class="post-metadata">

**Author:** ![nivaca](https://forum.antennapod.org/user_avatar/forum.antennapod.org/nivaca/32/5367_2.png) [@nivaca](https://forum.antennapod.org/u/nivaca)\
**Post date:** [November 27, 2026, 10:52am UTC](https://forum.antennapod.org/t/back-up-the-apps-settings/388/11 "2026-11-27T10:52:26Z")

</div>

@ByteHamster, I’d like to ask whether a pull request for this would be accepted. Issue #4089 is locked, so I’m asking here, as ibrahim-iqbal suggested on GitHub.

I have implemented settings export and import as a separate option, as AndyIII and Eiion suggested in the issue. The database export and import are not changed. I have tested it on my phone, and it has unit tests. The code is here: [Comparing AntennaPod:develop...nivaca:settings-export · AntennaPod/AntennaPod · GitHub](https://github.com/AntennaPod/AntennaPod/compare/develop...nivaca:AntennaPod:settings-export)

It adds a “Settings” section to Settings → Import/Export, with two entries:

- Settings export writes the app’s preferences to a JSON file (AntennaPodSettings-.json). It covers the main preferences and the separate preference files: sleep timer, home screen, swipe actions, statistics, navigation drawer, episode list filters and the share dialog.
- Settings import asks for confirmation, reads such a file, replaces the current settings with it, and then restarts the app, as the database import does.

Some values are not exported, because they belong to one device or are private: the data folder, the automatic export folder, the proxy username and password, the synchronization login, the playback state, and a sleep timer that is waiting to start. A file that does not contain AntennaPod settings is rejected, and nothing is changed.

About the concerns in the issue: the settings are not stored in the database, and no XML files are copied. The import writes each value through the normal SharedPreferences editor, so the system knows about every change. Each value is saved with its type, so it comes back as the same type.

If the approach is acceptable, I will open the pull request against develop. If you would prefer a different design, I’m happy to change it first.
