Page 1 of 1

WiFi calling control

Posted: 05 Jul 2018 16:46
by PUBand
Cellular reception at work is weak, so I use Advanced calling/enable WiFi calling, but when elsewhere I prefer to turn that off. I'd like to have access to that setting. Please add the functionality so that I can create a location based profile to automatically enable or disable based on connected WiFi.

Re: WiFi calling control

Posted: 08 Jul 2018 18:05
by Desmanto
AFAIK, this is phone specific setting. Automagic usually won't have direct access to it. What is the phone? And can you screenshot the setting which can toggle this wifi calling? Most likely the setting is kept at the secure setting database. If the phone react to the changes, it is possible to toggle the value after giving automagic write secure permission in adb PC.

Re: WiFi calling control

Posted: 18 Oct 2018 21:05
by melu
I would like to pick up this thread. It would be nice to access the feature wifi call with Automagic. I m using a Samsung Galaxy S9. There are two ways to activate Wifi Call. One on the DropDown Quick Settings.

The other in the settings for the telefon (app).

Btw. I do have secure permission via adb...

Re: WiFi calling control

Posted: 20 Oct 2018 10:59
by Desmanto
I don't know if it will work at your phone. You can try to use Set System Setting, category - global. Find wfc_ims_enabled and set it 1 for enable or 0 for disable. If it is not at global, try to find it at secure or system.

Re: WiFi calling control

Posted: 24 Oct 2018 05:55
by melu
Hey,

Thanks to Desmanto for the Reply. Mabe I get one step closer the solution.

Unfortunately it is not working yet. In the system settings I find the variable "wifi_call_enable" as a Global variable.

When I activate WifiCall in the Quicksettings, the value changes from 0 -> 1, so Automagic seems to read the "correct" variable.
How do I enable Global Settings for Automagic?
I used; (adb shell pm grant ch.gridvision.ppam.androidautomagic android.permission.WRITE_SECURE_SETTINGS)

but this is only the permission for secure Settings, do I have to permit the variable wifi_call_enable manualy via ADB as string?

Thanks in advance

melu

Re: WiFi calling control

Posted: 24 Oct 2018 18:15
by Desmanto
If you enter that adb shell command, the write secure permission has been granted properly. It is for all category, including LineageOS system setting (if you use LOS based ROM).

Unfortunately if changing this value (wifi_call_enable) doesn't reflected back to the system, there is nothing you can do to trigger it. It is the same as the android Demo UI which is sysui_tuner_demo_on 1 (Global). When set to 1, the demo UI still not appear. I have to use root command and use the broadcast method to achieve that. But that is because SystemUI provide other method to trigger the Demo UI. I don't know if there is one for wifi calling.

So your last resort will be only using Control UI. But you'll have UI distraction. Look at my index, at the Control UI section.