rahaaatul / automate-flows

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

android.os.RemoteException: Remote stack trace #4

Closed francois072 closed 1 month ago

francois072 commented 1 month ago

Keep getting this error on Samsung:

`07-18 02:05:53.452 I 49@1: Flow beginning 07-18 02:05:53.453 I 49@10: Wi-Fi network connected? 07-18 02:05:53.483 I 49@4: System setting set 07-18 02:05:53.486 F 49@4: android.os.RemoteException: Remote stack trace: at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2945) at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:2008) at com.android.providers.settings.SettingsProvider.insertGlobalSetting(SettingsProvider.java:1962) at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:607) at android.content.ContentProvider.call(ContentProvider.java:2582)

07-18 02:05:53.487 I 49@4: Stopped by failure`

rahaaatul commented 1 month ago

Can you be more specific?

At a glance, it's a failing after setting a system setting. Probably that setting does not exist or have a different name.

simonmanuel commented 1 month ago

I have the same issue.

OS: ColorOS 14.0 (Android 14) Automate: Version 1.43.1 Flow: Auto ADB over TCPIP + Shizuku

Oli-70 commented 1 month ago

I have the same issue too.

OS: Nothing OS 2.6 (Android 14) Automate: Version 1.43.1 Flow: Auto ADB over TCPIP + Shizuku and Auto ADB over TCPIP (both don't work)

rahaaatul commented 1 month ago

Can you guys confirm if you gave modify system settings permission to Automate?

@simonmanuel @francois072 @Oli-70

Oli-70 commented 1 month ago

Screenshot_20240729-220654.png

Yes, it is enabled.

simonmanuel commented 1 month ago

Can you guys confirm if you gave modify system settings permission to Automate?

@simonmanuel @francois072 @Oli-70

It was on. Looked to see if there are other privileges that were unchecked using your hint.

modify secure system settings was not checked/turned on. Turned it on and the previous error disappeared and it's moving past to the end.

Only error now is android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) which I believe is easier to fix.

Thanks

rahaaatul commented 1 month ago

Yes, it is enabled.

Not this, modify secure system settings. Refer to configuration in the wiki.

Check the official Automate Wiki too.

rahaaatul commented 1 month ago

Only error now is android.system.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused) which I believe is easier to fix.

Check troubleshooting in the wiki.

rahaaatul commented 1 month ago

@francois072 you probably didn't give Automate the modify secure system settings permission.

Read how to enable it here.

I'm closing this issue for now, if it wasn't the solution for you, feel free to reopen the issue again.

Oli-70 commented 1 month ago

It worked for me too. Now I only get: "android.security.KeyChainException: Certificate or private key inaccessible: Automate"

The Wikis say: "Install Generated Key, then add it to Keychain alias."

Does anyone know a good tutorial or instruction for that?

rahaaatul commented 1 month ago

It worked for me too. Now I only get: "android.security.KeyChainException: Certificate or private key inaccessible: Automate"

The Wikis say: "Install Generated Key, then add it to Keychain alias."

Does anyone know a good tutorial or instruction for that?

Read ADB shell command Wiki.

Oli-70 commented 4 weeks ago

Hello, I've read through the Wiki, but I still don't understand how to create a key or what to do with it. Could you walk me through setting up steps 1 and 2? My technical knowledge is quite basic, and I wasn't able to figure it out on my own. A detailed, step-by-step guide would be incredibly helpful. Thanks a lot!

rahaaatul commented 4 weeks ago

Hello, I've read through the Wiki, but I still don't understand how to create a key or what to do with it. Could you walk me through setting up steps 1 and 2? My technical knowledge is quite basic, and I wasn't able to figure it out on my own. A detailed, step-by-step guide would be incredibly helpful. Thanks a lot!

Hi. I've updated the wiki, you may want to read that.