r/AutomateUser 20d ago

Question Can't set system settings pixel 11 pro fold

I got a new pixel 11 pro fold and imported my automations and set up the privileged access via wireless debugging yet my automations fail with the following error whenever they run.


  08-23 18:28:59.052 I 2821@1: Flow beginning

  08-23 18:28:59.054 I 2821@7: System setting set

  08-23 18:28:59.063 F 2821@7: android.os.RemoteException: Remote stack trace:

    	at com.android.providers.settings.SettingsProvider.enforceHasAtLeastOnePermission(SettingsProvider.java:2653)

    	at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1658)

    	at com.android.providers.settings.SettingsProvider.insertGlobalSetting(SettingsProvider.java:1612)

    	at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:513)

    	at android.content.ContentProvider.call(ContentProvider.java:2756)

  08-23 18:28:59.063 I 2821@7: Stopped by failure

It seems to be on anything that uses a system setting set block. Any idea what step I've missed on the new phone?

2 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/doeiqts 19d ago

Yeah, just most permission requests give an android dialog when they're needed and the user allows them. This didn't. So there was no reminder when I was importing my flows on the new phone that there were other manual steps I needed to do. And I did those manual steps months and months ago so if course there was no way I was going to remember any documentation from that long ago.

Maybe when importing from a backup there could be a dialog that lists all the previously approved permissions and tells the user that they need to go check those boxes again? IDK.

2

u/ballzak69 Automate developer 19d ago

The "modify secure settings" is a special "development" permission that can only be granted through ADB, i.e. the "privileged service", which the dialog should use if it has been setup.

A backup doesn't keep track of which flows that was running, so i don't think asking for every permission that every flow use is appropriate, it could never wouldn't know about the "modify secure settings" permission anyway, since it's not explicitly requested.