Author Topic: How to completely move the app and the messages to new Phone  (Read 51447 times)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #15 on: June 03, 2015, 12:48:16 am »
The flag is useless without an API key from Google, it won't back up or restore.

And to get an API key, one must accept the "terms of use".

And they say:

https://developer.android.com/google/backup/signup.html

Quote
4.10 You agree that in your use of the Service, you and your Applications will protect the privacy and legal rights of users. You must provide legally adequate privacy notice and protection for users whose data your Applications back up to the Service. Further, your Application may only use that information for the limited purpose of backing up the data to the Service unless the user has given you permission for further use. If the user has not given you permission to back up information to the Service, you may not transmit such information to the Service.

4.11 You agree that you and your Applications will not transmit or store sensitive user information, such as user names, passwords, or credit card numbers, through the Service.

I'm not a lawyer, but the above is quite clear to me.

If there is another app developer that (on purpose or through ignorance) violates Google's terms of service for backup, well, it's their decision.

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: How to completely move the app and the messages to new Phone
« Reply #16 on: June 05, 2015, 06:48:17 pm »
Wrong, use of adb backup feature or Helium app by ClockWorkMod (which re-uses adb backuo android code) does NOT require Google as backup agent. You need ONLY allowedBackup flag set as true. Believe me, I hacked this stuff via Xposed :D

Since Android M, every app will be backed up to Google servers, even sensitive info.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #17 on: June 05, 2015, 10:16:21 pm »
>> Wrong, use of adb backup feature or Helium app by ClockWorkMod (which re-uses adb backuo android code) does NOT require Google as backup agent. You need ONLY allowedBackup flag set as true. Believe me, I hacked this stuff via Xposed :D

Would it cause anything bad to happen with respect to Google Play backup?

Like, error messages, failures?

I have Play backup turned off on all my phones / tablets, so if you know the answer, please share.

>> Since Android M, every app will be backed up to Google servers, even sensitive info

Wonder if they'll be changing the developer agreement.

Many apps store user logins and passwords (but it's not an excuse to violate the current policy, as far as I'm concerned).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: How to completely move the app and the messages to new Phone
« Reply #18 on: June 05, 2015, 11:06:15 pm »
Since you don't have Google servers as backup agent in manifest, you can enable allow backup flag without worries.

Google backs up app data only if app declares Google as backup agent in manifest and request api key code for it (relqtively quite a hard implementation, Android M will change it hopefully)
You just enable backing app AquaMail data using adb/Helium.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: How to completely move the app and the messages to new Phone
« Reply #19 on: June 06, 2015, 12:10:11 am »
>> Many apps store user logins and passwords (but it's not an excuse to violate the current policy, as far as I'm concerned).

I think that it's only necessary to backup the database where AquaMail stores the already downloaded emails / attachments - not even user logins and passwords (the user can backup / restore account configurations incl.  login / passwords separately with backup feature which is already available in AquaMail's settings). This should be able without violating the (current) policy, don't...?

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: How to completely move the app and the messages to new Phone
« Reply #20 on: June 06, 2015, 01:05:24 pm »
As far as I know you CAN use even Google backup agent because you can define which preference file you wanf backp and whether include databases too and which one yes/no. Simply passwords/logins you wouldn't i clude in backup or encrypt it so Google or nobody else with bad ideas could break it
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #21 on: June 06, 2015, 11:29:03 pm »
Well, it doesn't make sense to exclude logins (or passwords, actually -- interesting, how will they deal with that in M...)

I would be happy to allow backup without a Google Backup API key, if someone is willing to test:

1 - that Helium would work

2 - that there is no error message related to missing Google Backup API key
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #22 on: June 07, 2015, 01:20:00 am »
I just posted a separate .apk with android:allowBackup="true":

http://www.aqua-mail.com/forum/index.php?topic=3636.0

Any Helium users here? Want to see if it would work?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: How to completely move the app and the messages to new Phone
« Reply #23 on: June 07, 2015, 02:55:04 pm »
Tested. It works well.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #24 on: June 07, 2015, 02:59:58 pm »
Great.

It was really easy to add a new build "flavor" and override the manifest setting with Android's "new" Gradle based build system.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: How to completely move the app and the messages to new Phone
« Reply #25 on: June 07, 2015, 07:50:35 pm »
So this change will be part of main branch or you will build separatd build with that change? I hope/vote for #1 since it can't worse anything. Just + for end users.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: How to completely move the app and the messages to new Phone
« Reply #26 on: June 07, 2015, 11:43:31 pm »
Well, for now, I'm keeping it separate -- would like to give it more time in case it causes "anything bad" (tm) to happen.

And remember, most people's emails (I think) are available on their servers, low storage quotas are just not as typical today as they were in the nineties :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mastercb

  • Newbie
  • *
  • Posts: 5
Re: How to completely move the app and the messages to new Phone
« Reply #27 on: July 08, 2015, 11:06:36 pm »
@Kostya: When you google the internet, there are MANY aquamail-customers, that want to backup and/or transfer their Messages without rooting the device.

So I (and many of your customers) would really appreciate, if you could integrate the "backup enabled" in the official version.

Please do not forget, that the possibility to be able to backup messages with heliun is one more argument for many (potentially new) aquamail buyers !

Thank you very much in advance @the maker of the best mail app ever seen !

mastercb

  • Newbie
  • *
  • Posts: 5
Re: How to completely move the app and the messages to new Phone
« Reply #28 on: July 08, 2015, 11:31:02 pm »
Why not to use "Pro" ?

This app is phantastic, so why not to support the creator ?

@Kostya: As you see: This feature could be on more argument to switch to "pro"  ;)

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: How to completely move the app and the messages to new Phone
« Reply #29 on: July 08, 2015, 11:44:36 pm »
Why not to use "Pro" ?

This app is phantastic, so why not to support the creator ?

@Kostya: As you see: This feature could be on more argument to switch to "pro"  ;)
+1
I agree to integrate the (extended) backup option as a Pro feature.