rahaaatul / automate-flows

Flows I created for Automate app.
MIT License
6 stars 1 forks source link

Private DNS QS Tile #1

Closed DeanWinchesterrr closed 4 months ago

DeanWinchesterrr commented 4 months ago

06-16 13:33:55.150 F 20@2: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

rahaaatul commented 4 months ago

06-16 13:33:55.150 F 20@2: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

You have to give automate write secure settings permission via ADB.

Screenshot_20240616_141503

DeanWinchesterrr commented 4 months ago

06-16 13:33:55.150 F 20@2: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS

You have to give automate write secure settings permission via ADB.

Screenshot_20240616_141503

06-16 13:51:02.380 I 23@3: Quick Settings tile show 06-16 13:51:05.525 I 23@11: Expression true? 06-16 13:51:05.525 I 23@8: Expression true? 06-16 13:51:05.526 I 23@10: Expression true? 06-16 13:51:05.526 I 23@4: System setting set 06-16 13:51:05.529 F 23@4: android.os.RemoteException: Remote stack trace: at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2561) at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1562) at com.android.providers.settings.SettingsProvider.insertGlobalSetting(SettingsProvider.java:1516) at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:495) at android.content.ContentProvider.call(ContentProvider.java:2548)

06-16 13:51:05.530 I 23@4: Stopped by failure

DeanWinchesterrr commented 4 months ago

06-16 13:54:01.828 I 24@15: App start 06-16 13:54:01.835 F 24@15: com.llamalab.automate.access.AccessNotGrantedException: com.llamalab.automate.access.DrawOverlayAccessControl@ca03110 06-16 13:54:01.836 I 24@15: Stopped by failure

rahaaatul commented 4 months ago

Did you give all permissions needed for the flow?

Screenshot_2024_0616_142618

DeanWinchesterrr commented 4 months ago

First error fixed after giving write secure settings permission via ADB (shizuTools)

Second error only happens when you long press the qs tile

Other than that it's working PERFECTLY FINE.

Very sorry to have bothered you. I love this qs tile !!!

rahaaatul commented 4 months ago

Second error only happens when you long press the qs tile

Well, that's a problem, it should open up the network settings window, where the private DNS option is.

Can you recheck after giving all permission needed for the flow?

DeanWinchesterrr commented 4 months ago

Second error only happens when you long press the qs tile

Well, that's a problem, it should open up the network settings window, where the private DNS option is.

Can you recheck after giving all permission needed for the flow?

Second error fixed after giving "appear on top" permission. So dumb. Sorry man. It's literally flawless and it's me who couldn't configure it properly.

So what I've gathered

  1. Perform on ADB pm grant com.llamalab.automate android.permission.WRITE_SECURE_SETTINGS

  2. Give ALL the permissions before starting

And that's it !!!

DeanWinchesterrr commented 4 months ago

IMG_20240616_140627 Long Press qs tile Now opens this, if you were curious.

Thanks Again, have a good day !

rahaaatul commented 4 months ago

IMG_20240616_140627 Long Press qs tile Now opens this, if you were curious.

Where's your private DNS located? I don't see the option in the screenshot.

DeanWinchesterrr commented 4 months ago

Screenshot_2024-06-16-14-12-21-74_41a74ddf68be21faad2fbbb691b15143 I have to go inside connection and sharing

This is OxygenOS 13

rahaaatul commented 4 months ago

Well, it's better than nothing. I can't add device specific settings windows, have to go with a default one.

Thanks for sharing the screenshots.