Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change allowBackup to true #1222

Open
giiutfff opened this issue Mar 27, 2024 · 5 comments
Open

Change allowBackup to true #1222

giiutfff opened this issue Mar 27, 2024 · 5 comments

Comments

@giiutfff
Copy link

Currently it is set to android:allowBackup=false which makes backup impossible without root. Backup and restore could be done without root if change it to true.

@robinlinden
Copy link
Collaborator

See #1136 for the reason backups are currently disabled.

Newer Android has added support for client-side encryption which would make me more comfortable enabling it, but no one has put any work into #439 yet.

@giiutfff
Copy link
Author

I don't really understand your concerns about encryption, but I believe you have good reasons.

So my use case here is I need to move the app with its data to another device. I would be more than happy if there is any alternative method to do so (I don't have root).

@iphydf
Copy link
Collaborator

iphydf commented Apr 3, 2024

It might make sense for aTox to have an export format that other clients (and aTox) can implement for imports. Moving between clients and devices is an important use case, and it would be nice to keep chat history and client settings around. There are some common settings (the ones in Tox core options) and client-specific ones. Probably the first step towards that is formulating a data schema for the export.

@robinlinden
Copy link
Collaborator

I don't really understand your concerns about encryption, but I believe you have good reasons.

So my use case here is I need to move the app with its data to another device. [...]

Yeah, I'd happily enable only-local backup if that was possible, but android:allowBackup is also used by the Google cloud backup system, so no way of enabling one but not the other last time I looked into it. :( It should be possible to do device-to-device transfers even with android:allowBackup=false as of Android 12 though: https://developer.android.com/about/versions/12/behavior-changes-12#backup-restore

It might make sense for aTox to have an export format that other clients (and aTox) can implement for imports.

There was some work towards exporting (but not importing) aTox-bits in a JSON format in #1076, but there's no documented schema or anything yet, and it also includes a bunch of aTox internals that probably should be dealt with differently longer-term. If we can come up with a nice schema for these things I'd happily adopt it as an export/import format.

@giiutfff
Copy link
Author

giiutfff commented Apr 8, 2024

Yeah, I'd happily enable only-local backup if that was possible, but android:allowBackup is also used by the Google cloud backup system, so no way of enabling one but not the other last time I looked into it. :( It should be possible to do device-to-device transfers even with android:allowBackup=false as of Android 12 though: https://developer.android.com/about/versions/12/behavior-changes-12#backup-restore

Is it possible to make a function to archive/restore the app data as a tar/zip?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants