[Sony Xperia M] Bonoboo:
Testing Dual support (new RIL) on CM12.1

UPD: better to update to CM13 where fixed almost all old annoying Dual-bugs.

Only there's no data on 2nd SIM.

Here all-in-one info from PecanCM's posts and users feedback about Dual support.

History

Old RIL from stock not compatible with Dual on Lollipop – so there no 2 SIM support.

It can't be fixed, because there no sources (shipped as binary blob's).

As workaround possible to take RIL from model near by SoC and manufacturer – there is successful examples.

PecanCM take RIL from Xperia Z1 that updated to 5.0 and have compatible SoC APQ8064.

No matter that it have 1 SIM because RIL unified for Single and Dual.

So he run it on Single – network works.

Next, he uploaded patch for testing that ported RIL on AOSP 5.1.1 for Dual users.

And there is networks on both SIM's, call and SMS works: it's huge progress.

Possibly, AOSP not very adapted for 2 SIM, CyanogenMod must be better.

So he uploaded another patch for Beta 4 and next CM12.1 Nightles / fresh custom ROM's.

Later he tried RIL from Xiaomi MI2. It have less bugs.

Also we tested RIL from Moto X 2013 – a bit worse, than MI2.

Because RIL unified Single users probably will use new RIL too.

Therefore, needed testing new RIL even on 1 SIM model (required a bit modded patch without enabling 2 SIM).

Installation / download

Note: skip first 3 steps if you already have 2 working SIM's (stock 15.5.A.1.5, CM11, AOSP 4.4, custom rom)

1. Flash from PC 15.5.A.1.5 stock 4.3 for Dual or restore it's backup (CWM required)

2. Boot into stock at least once to showing network

3. Install kernel with recovery (persistent not works with stock; skip if restored backup)

------------------------------------------------------------------

4. You must have installed any CM12.1 Nightly or custom ROM based on it

5. Flash patch with RIL, "dirty" flash allowed (it will be fully automatically restored after updating ROM)

New, from Xiaomi MI2: download

Old, from Xperia Z1: download

Old information:

Early was required to edit manually file /system/build.prop, but now it done via ZIP patch.

Only for Dual: add this lines into file:

persist.radio.multisim.config=dsds
persist.radio.dont_use_dsd=true

Only for Z1-patch, delete this lines:

persist.radio.oem_socket=false
ro.ril.telephony.mqanelements=4

Bugs for new MI2-patch

What works / fixed

– Incoming and outgoing calls from both SIM's

– Incoming and outgoing SMS from both SIM's

– Cellular data on 1st SIM

– Manual network search with carrier names

– Displaying both carrier names in all places

– PIN check can enabled for any SIM (but not both at same time)

– No "unknown numbers" bug (rare, carrier-independent)

– No any problems on Single

Known bugs

– Searching networks takes up to 3 minutes after every boot / airplane mode (incoming calls / SMS works immediately, but you can't call)

– Can't use cellular data on 2nd SIM: same APN's

– Full disappearing mobile data bug: how to fix

– At first setup SIM's names are same, but can be changed

– Own number for 2nd SIM always set from 1st

– If absent 1 SIM second not work

Bugs for old Z1-patch

What works

– Incoming and outgoing calls from both SIM's

– Incoming and outgoing SMS from both SIM's

– Cellular data on 1st SIM

Known bugs

– Searching networks takes up to 3 minutes after every boot / airplane mode (incoming calls / SMS works immediately, but you can't call)

– Can't use cellular data on 2nd SIM: same APN's

– (?) SMS on 2nd SIM can arrive with delay

– At manual network search not displaying carrier names

– SIM's names always are same

– Full disappearing mobile data bug: how to fix

– Can't enable PIN check of 2nd SIM

– Own number for 2nd SIM always set from 1st

– On lockscreen both carrier names are same

– Single: no carrier name at lockscreen, only SIM operator

– No carrier names at Settings > About phone > Status > SIM status