Allow backup of User Data (Ratings, Play Counts....) to be user selected - Permanently

Feature description

I’m using intents to Backup my Symfonium app through Tasker, and to be able to use the intent USER_DATA_ALL, I must have USER_DATA enabled.

I’d like to make this USER_DATA selection in the app user selectable as permanent.

Problem solved

Allow users to automate a full backup through the intents available through Tasker

Brought benefits

A more complete an automated backup in case you have to rebuild Symfonium on an existing or new device

Device type

Phone

Additional description and context

Attached is the setting in our backup screen now, that I would like to have “Stck” and be permanent, just as the settings above the one highlighted is.

Screenshots / Mockup

I searched existing feature requests

on

Tasker’s “Send intent” action doesn’t work too well for complicated intents because it only supports three extras. This is a Tasker limitation. Symfonium already exposes what it needs to.

You can use Tasker’s “Run shell” action instead to send an intent via the ActivityManager. I’m not too familiar with doing that, so look at this Stack Overflow thread for some ideas of how to start off.

Note that you don’t need to include the adb shell portion of the command since the Tasker action already includes it. This shouldn’t need root access either.

Thanks @Celorien

I’ll investigate that option then.

I really thought if the other options in that screen could be set to always checked, that the user data option could too, but I guess not.

The options in the screen are 100% irrelevant to what tasker command do … I’ll add an everything param to enable all in one as not aware of that 3 param limit.

1 Like

What do you mean? None of them can be set to always checked. Either the intent tells it the app to check the option, or it isn’t included in the backup.

It was on my bucket list anyway, so I’ve spent the day putting together a giant task which supports all of the current API options, including any number of extras. I’m 95% done now, so I’ll post it tomorrow.

It’s mostly unneeded, but it does allow Tasker to control Symfonium’s backups properly. (And Media Start, which is the other option that Tasker’s “Send intent” couldn’t handle.)

1 Like

@Tolriq

Thank you so much!

The task I’ve made allows Tasker to do it with the current commands. Just have to do it via “Run shell” instead of “Send intent”

So no need for you to add anything if you don’t want to. It’s a Tasker problem, after all.

1 Like

Both you guys are technically way beyond my level of expertise, so I appreciate the help.

Tl;dr:

  • Import my task
  • make your own task that uses “Perform task” action to call mine
  • set %par1 to backup
  • set %par2 to whatever options you want checked
    • each option separated by \\\
    • for the options in your picture, you can set %par2 to YourPassword123\\\FULL\\\USER_DATA\\\USER_DATA_ALL
  • run your task however you want (e.g. in a profile)

My solution might actually need elevated permissions… (I thought I had it turned off but Tasker has two toggles to disable :expressionless_face: )

Running Shizuku alongside Tasker ensures that everything works properly. But by itself, Tasker can’t actually send an intent with my task.

So the additional option may still be helpful for some users. Sorry for the back & forth, I thought I had it working…

I’ve got Shikuzu installed, I’ll try and test it later this week.

Thanks for the help!

So, I had issues with some Google stuff,and Joao had me swith to a direct purchase Tasker, which has some different code and permissions…

Anyway, when I import your code, it tells me it was built for a different Beta, and won’t run.

I’m on 6.7.9 direct purchase Beta version.

Just to test, can you share it up on Taskernet, or somewhere else, just so I can trest it as a completed task, and see if it will work?

I should still be able to change the parameters inside , I’d think, if it will work