phhusson / ims

GNU General Public License v2.0
109 stars 12 forks source link

Question about intergrating into other ROMs #22

Open ethical-haquer opened 1 month ago

ethical-haquer commented 1 month ago

Is there a guide somewhere on how to add support for this to LOS-based ROMs? Or is it currently not possible? TIA.

phhusson commented 2 weeks ago

Here are the instructions that I've given to other device-specific ROM devs: Overlay in frameworks/res:

com.google.android.iwlan
<string name="config_wlan_network_service_package">com.google.android.iwlan</string> 
com.android.telephony.qns

Overlay in packages/services/telephony

me.phh.ims

Added packages: Iwlan QualifiedNetworksService

References: https://github.com/TrebleDroid/device_phh_treble/commit/0126152f68f9148d1759949367f74c1b68f29e0a https://github.com/TrebleDroid/vendor_hardware_overlay/blob/pie/Telephony/FLOSS-IMS/res/values/config.xml

I think that's all. And then you'll need to install the floss ims apk, https://treble.phh.me/floss-ims-16.apk (source at https://github.com/phhusson/ims ). After that it's a tiny bit fuzzy since my Treble App does some things, so let's try this: Set persist.dbg.volte_avail_ovr persist.dbg.wfc_avail_ovr and persist.dbg.allow_ims_off to 1. This should probably enable "Wifi calling" and "4g calling" in the settings. Tick them. See what happens from there. Notably in ip address you should see an ipsec interface. If you don't, create a new APN called "ims" and type "ims", reboot, reinstall the floss ims apk, and check again `ip address". If there is still no ipsec interface, something's up. If you do see an ipsec interface, well try to send a sms and see what happens

ethical-haquer commented 4 days ago

@phhusson Thanks for the reply! I've never built a ROM before, but I thought I'd ask how you'd go about implementing this into a ROM, as it would be nice if more ROMs used this for Samsungs. I really appreciate your work on this!