WiFi calling control

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
PUBand
Posts: 2
Joined: 12 Feb 2015 19:06

WiFi calling control

Post by PUBand » 05 Jul 2018 16:46

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.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi calling control

Post by Desmanto » 08 Jul 2018 18:05

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

melu
Posts: 2
Joined: 18 Oct 2018 06:55

Re: WiFi calling control

Post by melu » 18 Oct 2018 21:05

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...
Attachments
Screenshot_20181018-225455_Phone.jpg
Phone app settings
Screenshot_20181018-225455_Phone.jpg (132.21 KiB) Viewed 14821 times
Screenshot_20181018-225523_Samsung Experience Home.jpg
Quick Settings
Screenshot_20181018-225523_Samsung Experience Home.jpg (24.63 KiB) Viewed 14821 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi calling control

Post by Desmanto » 20 Oct 2018 10:59

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

melu
Posts: 2
Joined: 18 Oct 2018 06:55

Re: WiFi calling control

Post by melu » 24 Oct 2018 05:55

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

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi calling control

Post by Desmanto » 24 Oct 2018 18:15

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Locked