Page 1 of 1
Bluetooth wants confirmation
Posted: 16 Nov 2018 05:42
by Amenophis86
My new Huawei Mate 20 pro with Emui and Nova Luncher always wants a confirmation by setting Bluetooth on or off.
I activated "Einstellungen Bestätigung unterdrücken" in AM and AM is Systemadministrator. Any other ideas?
By the way, I can set for example WiFi without confirmation.
Re: Bluetooth wants confirmation
Posted: 16 Nov 2018 06:19
by Amenophis86
Re: Bluetooth wants confirmation
Posted: 16 Nov 2018 10:27
by Desmanto
The system prompt an dialog box to ask for the confirmation right? You need to use accessibility, use Control UI to click that yes or accept button. It is just simple script after the set bluetooth state on. Look at my index, Control UI section.
Re: Bluetooth wants confirmation
Posted: 16 Nov 2018 11:20
by Amenophis86
Well I thought so too, but if the screen is locked like it always is in my Flow, no Ui is possible. Or am I wrong?
Re: Bluetooth wants confirmation
Posted: 16 Nov 2018 17:57
by Desmanto
Oh, yes, Control UI won't work then. This seems to be the ROM's framework problem. The link you provide has to use xposed module to fix it. Probably there is a hidden setting that grant the permission to certain app to turn on/off the bluetooth. Maybe you can try to check every value in the Set System Setting, in those 3 categories to find any meaningful words.
Other method, try to enable accessibility, app usage access and other permissions.
Re: Bluetooth wants confirmation
Posted: 02 Jan 2020 21:54
by yogi108
Even if the last post is done over 1 year ago:
I have now the same problem using Huawei P20 9.x
Permission dialog for Bluetooth on,
someone found a solution?
Regards,
Fritz
Ps: also for Bluetooth off...
Re: Bluetooth wants confirmation
Posted: 04 Jan 2020 12:21
by Desmanto
Try to turn on the bluetooth using set System setting. The usual value is [global] bluetooth_on : 1.
Use my secure setting logger flow to find the key.
viewtopic.php?f=3&t=7931
If you are lucky, You might find the culprit of the system value which corresspond to the permission dialog too.
Re: Bluetooth wants confirmation
Posted: 04 Jan 2020 14:28
by yogi108
Thanks again for your valuable instructions.
I did the ADB and your flow and it worked as described,
non root.
I found 2 value pairs, Bluetooth_on and is_bt_discoverable_timing with values 0 and 1.
Tried to change the system settings with these values,
nothing happened.
I found a workaround for my needs with UI, scenario is incoming call -> Bluetooth on, call finished -> Bluetooth off.
Not really finished yet, but working...
Flow with trigger permission dialogue and UI click the yes button. Works well if no incoming call and Bluetooth through Automagic on. If incoming call the trigger is not working, so I have to call the flow manually from the incoming call trigger...
Thanks a lot
Regards