Page 1 of 2

Verify flow -- advertisingID change

Posted: 04 Jul 2016 06:56
by jeminar
Whenever my phone (LG G4, running Android 6.0, not rooted) reboots, the advertisingID changes. I've read elsewhere in the forum that this triggers Automagic to think that the flows have been edited outside of Automagic, and then disable all the flows, and I have to manually restart them all. This is very annoying for me, because I usually swap batteries (and charge externally) rather than charging from the plug.

1. is there a way to disable the function that disables the flows when the advertisingID changes?
2. can anyone think of a reason why the advertisingID changes whenever the phone reboots? Is there some setting or app which I might have which does this?

Note -- my phone is not rooted, and my understanding is that apps can't change the advertisingID, and there seems nothing on google to explain why the advertisingID changes every reboot.

Re: Verify flow -- advertisingID change

Posted: 05 Jul 2016 12:46
by Martin
The latest version of Automagic does not use the device ID anymore to avoid such problems. Could you please open menu->Manage->About and copy/paste the build number here?

Could you please also do the following:
  • turn on Debug log in the preferences of Automagic
  • create a new empty flow then press back until Automagic is closed
  • reboot the device
  • open Automagic
  • menu->Manage->Log, menu->Send Log (to info@automagic4android.com)
Thanks & Regards,
Martin

Re: Verify flow -- advertisingID change

Posted: 18 Jul 2016 12:49
by jeminar
Thanks Martin, I just saw the reply.

The problem is LESS FREQUENT now, but I can't say it's disappeared. However, because it's now rare, I cannot force it to happen.

My version number is 1.31.0
Build 20160710_095736_514741e

I did the instructions below. Note that the flows did load this time. Were you hoping that I would send you the log when I experienced the problem?
I'm sending you an email with a keyword stripytoad76 (for searching)

Re: Verify flow -- advertisingID change

Posted: 18 Jul 2016 14:02
by Martin
Sorry, I was not clear. Yes, I was hoping that you would experience the problem after the next reboot.
Could you please enable Log to SD card in the preferences to record the log for a longer period of time and send the log when the verification error is shown the next time (send using menu->Manage->Log, menu->Send Log which should ask to attach the SD log)?

Thanks & Regards,
Martin

Re: Verify flow -- advertisingID change

Posted: 25 Jul 2016 10:53
by ewill
I don't know if this is the same issue, but whenever I do a data restore (either Titanium backup or even restore a nandroid backup) I get the message that the device is different and all flows will be disabled.

The other thing that happens is that all my touch actions for widgets are gone and need to be re-associated. Is there any way to avoid that behavior? And, if this is unexpected, is there any log or other information that I can provide to see what is happening?

I am on CM13 on an LG G4.

Thank you.

Re: Verify flow -- advertisingID change

Posted: 26 Jul 2016 11:48
by Martin
Automagic still checks that the flows that have been saved the last time have not been modified outside of Automagic. If you restore Automagic (internal data) but not the flows on the external storage or vice versa, you would encounter the warning. You can avoid this check by clearing the app data of Automagic after the restore. Flows and widgets should be loaded from external storage without warning in this case.
Newer versions of Automagic don't use the device ID for this check anymore since this often caused trouble with security tools that change the device ID on each start of the device.

Re: Verify flow -- advertisingID change

Posted: 26 Jul 2016 12:32
by ewill
Thank you very much - I tested and clearing the app data avoided the deactivation of flows and widget touches. I appreciate the help.

The only downside is that my app preferences were also reset - and I needed to go back in and to reset my preferences. Is there a way to retain my preferences as well?

Re: Verify flow -- advertisingID change

Posted: 26 Jul 2016 12:40
by Martin
No unfortunately not, preferences are also part of the internal data.
Another idea: You could delete the folder /storage/emulated/0/Automagic after restoring and before starting Automagic. Automagic will restore an internal backup of the flows/widgets in this case. The configuration should also persist in this case.

Re: Verify flow -- advertisingID change

Posted: 26 Jul 2016 12:47
by ewill
Martin wrote:No unfortunately not, preferences are also part of the internal data.
Another idea: You could delete the folder /storage/emulated/0/Automagic after restoring and before starting Automagic. Automagic will restore an internal backup of the flows/widgets in this case. The configuration should also persist in this case.
I think I may try that - over the next couple of days when I get a chance.

One question, I store some other files in folders under /storage/emulated/0/Automagic. Can I accomplish the same thing by deleting the following files:
-flows.xml
-variables.bin
-widgets.xml

Re: Verify flow -- advertisingID change

Posted: 26 Jul 2016 13:26
by Martin
Yes, deleting the three files should work.