I fixed handling of multiple SIM cards on MediaTek's forked Andoid, which had added multiple SIM support before Android itself did. There were bugs in the MediaTek code but Signal could be made to work. However, the code I wrote to make Signal work looked risky; it seemed possible that it might break something on other phones.