SIMnotRecognized » History » Version 27
Denis 'GNUtoo' Carikli, 09/09/2020 01:16 PM
Add history of SIM issues
|1||26||Denis 'GNUtoo' Carikli||
h1. SIM not recognized with libsamsung-ipc and libsamsung-ril
|2||1||Denis 'GNUtoo' Carikli|
|3||12||Denis 'GNUtoo' Carikli||
|5||21||Denis 'GNUtoo' Carikli||
This page attempts to list SIM cards that are known to be compatible with Replicant, and the ones were known not to be compatible because of a bug.
The main bug is fixed now and has been part of Replicant 4.0 0004 RC1, however we still need to make sure that all the reported bugs are also fixed as the symptoms could be similar but have another cause.
|8||12||Denis 'GNUtoo' Carikli|
|9||13||Denis 'GNUtoo' Carikli||
In order to make it easier to reproduce, a list of compatible and incompatible cards has stated to be sumarized here, mostly using the information from the various bugreports.
|11||24||Denis 'GNUtoo' Carikli||
h2. List of cards and related bugs
|12||1||Denis 'GNUtoo' Carikli|
|13||18||Denis 'GNUtoo' Carikli||
|_. country |_. type |_. carrier |_. date |_. works |_. references |_. prices and conditions |
|14||15||Denis 'GNUtoo' Carikli||
| France | contract | Free | ? (years ago, 2013?) | Yes | | |
|15||17||Denis 'GNUtoo' Carikli||
| France | prepaid | SFR | bought the 2018-08-24 in Paris | Yes | | |
|16||20||Denis 'GNUtoo' Carikli||
| France | ? | SFR | Very old card, expired | * Replicant 6.0: No
* Replicant 4.2: Yes | #1909 | N/A |
|18||16||Denis 'GNUtoo' Carikli||
| France | prepaid | Orange | ? (probably bought last year) | Yes | #1868 | |
|19||14||Denis 'GNUtoo' Carikli||
| France | conrtact? | Orange | | No | #1868 | |
| Italy | ? | Fastweb | | No | #1824 | |
| Italy | ? | Wind | older SIM cards | Yes | #1871 | |
| Italy | prepaid | Wind | | No | #1871 | 25E, valid one month, 10E per recharge |
| Spain | ? | Vodafone | micro-SIM bought before the 2018-02-23 | No | #1874 | |
| NZ | prepaid | Spark | 2013? | No |||
|25||27||Denis 'GNUtoo' Carikli|
h2. History of SIM not recognized bugs
At the time of writing, we know of two completely different bugs that broke the detection of SIM cards.
h3. Broken after Replicant 6.0 0004 RC2
*Fix*: "sent for review for libsamsung-ipc":https://lists.osuosl.org/pipermail/replicant/2020-September/003004.html
*How it was broken*: libsamsung-ipc was converted to a consistent code style. That kind of work is very mentally tiring as you keep doing the same thing again and again during many many hours, it's also very prone to mistakes because of that. So the person that did the conversion (GNUtoo) did a typo and that slipped through the review as well as reviewers have the same issue: they need to keep looking for the same thing again and again.
*How it was Fixed*: It was fixed with a bisect. libsamsung-ipc and libsamsung-ril were first bisected manually which consisted of picking a libsamsung-ipc+libsamsung-ril revision set, building it, wiping the data, installing the image, and booting the result and testing. To test if the SIM appeared in the welcome application (by displaying the SIM carrier name) it was good, if not I still tested if the SIM was recognized in Settings->About phone->SIM status as sometimes you need to wait a bit before the SIM is ready. Once libsamsung-ril was removed of the equation, a simple bisect on libsamsung-ril was done. Then I bisected some functions inside the commit. this can be done by saving the older revision to a file with git ls-tree <previous-revision> -- path/to/file and git show <resulting_hash> > old_file. Then you can just use meld and keep track manually of the functions. And at then end reading the code was faster than testing so I did that.
h3. Broken since Replicant 6.0 up to Replicant 6.0 000 RC1
*Fix*: "In libsamsung-ril":https://git.replicant.us/replicant/hardware_replicant_libsamsung-ril/commit/?id=e44a9cc5604eac3f83e355c7d8882e879b230c7e
*How it was broken*: Libsamsung-ril incorrectly implemented SIM message parsing, but for some reason it wasn't an issue in Replicant 4.2.
*How it was Fixed*: It was not possible to bisect as it was broken since the very first Replicant 6.0 version and it did work in Replicant 4.2 fine. So somehow "Replicant 6" broke it. GNUtoo also tried to understand what was happening by tracing the SIM but it wasn't enough to fix it. GNUtoo never found enough time to dig into the code and go look for what was really happening. So at the end Belgin did that and fixed it.