Commit 75fbe4b
committed
fix: ignore carrier config changes during early boot before syncing SIM cards
* During boot up process we get carrier config changes event for each
SIM card once loaded. But, sometimes we get intermediate carrier
config changes per SIM card during early boot since SIM cards are
loaded into the system asynchronously. This forces us to synchronize
all SIM cards again, and during this phase a SIM subscription present
a moment ago may disappear again. Unfortunately, for our app this is
SIM card removal, so we end up resetting the last activated /
deactivated time fields, which are needed to properly initialize the
user SIM card enabled state preference after a reboot.
* This patch aims to resolve this SIM card load race by ignoring all
carrier config changes during early boot in order to allow all SIM
subscriptions to fully settle up.
Signed-off-by: iusmac <iusico.maxim@libero.it>1 parent 5b414e9 commit 75fbe4b
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- src/com/github/iusmac/sevensim
- inject
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
52 | 60 | | |
53 | 61 | | |
54 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
55 | 70 | | |
56 | 71 | | |
57 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
161 | 168 | | |
162 | 169 | | |
163 | 170 | | |
0 commit comments