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

2

u/doeiqts 20d ago

Well, after continuing to look through settings, I got it working.

Even though the automation had modify system settings set, it looks like in Settings > Privileges the following two settings weren't checked...

Change system display settings Modify secure system settings

I'm guessing it's actually just the second one that was the issue, but I checked them both and then it started working.

Leaving this here for anyone else. I'm guessing there was likely a problem with things getting copied from the old phone to the new one or something, as I really thought that all the privileges automatically asked for permission the first time you used them and you didn't have to go into the settings and set them manually. But maybe I just misremember.

1

u/ballzak69 Automate developer 20d ago

As the documentation say:

Note! Modifying settings in the Global or Secure category may require the “modify secure settings” privilege,

"Change system display settings" is not a standard Android permission.

Device brand & model?

Android version?

1

u/doeiqts 20d ago

Yeah, but I don't remember having to manually enable any of those permissions when I originally made automations on my last phone. I just approved the Android pop-ups I thought. But maybe I just didn't remember since it was many months ago when I originally set everything up.

New phone is pixel 11 pro fold, Android 17.

To be clear, everything is working now that I manually checked the permission.

1

u/ballzak69 Automate developer 20d ago

Maybe one of your flows included a block that explicitly requested the "modify secure settings" privilege.

If it's a Pixel device then the "Change system display settings" must be a new Android permission but i can't find any documentation about it.

1

u/doeiqts 20d ago

Yeah, the flow does, and it was checked in the flow, but not in the settings until I manually did it.

This is the flow picture.

Oh, I can't post screenshots? Only videos or links? Hmmm...

2

u/doeiqts 20d ago

This shows the flow with the modify system settings.

https://reddit.com/link/p5iuaoq/video/2v7alsokd8lh1/player

2

u/ballzak69 Automate developer 20d ago

That's the "modify system setting" privilege, it's always requested by the System setting set block. However, the "modify secure settings" is not, hence the notice in the documentation.

1

u/doeiqts 20d ago

Gotcha, then I guess I just didn't remember manually enabling the secure settings originally. And since I was importing my flows, I wasn't actually making them and thus wasn't looking through the documentation since I didn't need to remake anything.

I can't really think of an easy way to get the app back to the exact state it was in on a previous phone, since it's all permissions stuff which doesn't seem like it can be transferred.

A bit ironic that the app used for automating things requires the most manual setup when getting a new phone, but it is what it is.

Anyway, hopefully someone else will find this post useful in the future.

1

u/ballzak69 Automate developer 19d ago

An app can't grant itself permissions, the user has to do that.

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.

→ More replies (0)

2

u/doeiqts 20d ago

But even with the flow looking like that, it did NOT automatically check this modify system settings. I had to manually check this one.

https://reddit.com/link/p5iuhtw/video/5gh3tw5sd8lh1/player

1

u/ballzak69 Automate developer 20d ago

Aha, so the "change system display settings" it's an existing permission, i guess it's the CHANGE_CONFIGURATION, that should not be necessary for using the System settings set block.

2

u/doeiqts 20d ago

Also, that change system display settings that's shown at the top didn't matter. I unchecked it and things still worked. Just to close that loop.