UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Dual-SIM + OTA-20 on Mi A2

    Scheduled Pinned Locked Moved Solved Xiaomi Mi A2
    28 Posts 8 Posters 4.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        PhAndersson @Guest
        last edited by

        @dpitti The device initially came with Android 8.1, but I flashed it with v9 as recommended before proceeding with the UT installation.

        Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
        Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

        1 Reply Last reply Reply Quote 1
        • P Offline
          PhAndersson @rosenfeldpj
          last edited by

          @rosenfeldpj Many thanks for your offer. It's already a relief to know that a solution most likely exists.

          I found out 2 ways to start investigating this issue.

          1./ firmware versions
          In a recent post (https://forums.ubports.com/topic/6813/unable-to-turn-on-bluetooth-on-mi-a2/29), @nauvpp mentioned upgrading the bluetooth firmware on his device from an archive bundle called firmware_jasmine_sprout_V11.0.28.0.zip. I've downloaded that ZIP and looked at its contents, but how can I check whether any of the .img files contained within are more recent than the ones already on the phone?

          2./ 'dmesg' output
          I collected the dmesg output after the upgrade (unfortunately, I don't have any example dating back before the upgrade, so I can't compare).

          In there, searching for the "radio" keyword, I see the following messages:

          [    5.226487] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot2' from pid: 28 (/system/bin/hwservicemanager)
          [    5.226518] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot2
          [    5.226602] init: Command 'exec_start update_verifier_nonencrypted' action=late-fs (/init.rc:390) took 0ms and failed: Service not found
          [    5.226747] init: Received control message 'interface_start' for 'android.hardware.radio@1.1::IRadio/slot2' from pid: 28 (/system/bin/hwservicemanager)
          [    5.226763] init: Could not find service hosting interface android.hardware.radio@1.1::IRadio/slot2
          [    5.226861] init: processing action (post-fs-data) from (/init.rc:392)
          [    5.227228] init: Received control message 'interface_start' for 'android.hardware.radio@1.2::IRadio/slot2' from pid: 28 (/system/bin/hwservicemanager)
          [    5.227257] init: Could not find service hosting interface android.hardware.radio@1.2::IRadio/slot2
          [...]
          [   13.012729] init: Received control message 'interface_start' for 'android.hardware.radio.deprecated@1.0::IOemHook/slot2' from pid: 28 (/system/bin/hwservicemanager)
          [   13.012794] init: Could not find service hosting interface android.hardware.radio.deprecated@1.0::IOemHook/slot2
          

          The first message block repeats 3 times. The second block occurs only that one time. But is this relevant?

          Coming back to my "firmware" line of thought, I see a lot of firmware modules being loaded (often with some hint about their version), but do you have any idea which one I should be looking for?

          Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
          Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

          1 Reply Last reply Reply Quote 0
          • P Offline
            PhAndersson
            last edited by

            Further debugging info. Here is a list of all the firmware modules and associated devices being loaded (or whose load is attempted) by the kernel:

            cc00000.qcom,vidc:firmware_cb
            dbmd4_va_fw.bin
            dbmd4_va_preboot_fw.bin
            
            adsp.mdt (/devices/soc/15700000.qcom,lpass/firmware/adsp.mdt)
            adsp.b02 -> adsp.b23 (/devices/soc/15700000.qcom,lpass/firmware/adsp.b02 -> ...)
            
            a530_pm4.fw (/devices/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/a530_pm4.fw)
            a530_pfp.fw (/devices/soc/5000000.qcom,kgsl-3d0/kgsl/kgsl-3d0/a530_pfp.fw)
            a512_zap.mdt (/devices/soc/soc:qcom,kgsl-hyp/firmware/a512_zap.mdt)
            a512_zap.b02 (/devices/soc/soc:qcom,kgsl-hyp/firmware/a512_zap.b02)
            
            cdsp.mdt (/devices/soc/1a300000.qcom,turing/firmware/cdsp.mdt)
            cdsp.b02 -> cdsp.b07 (/devices/soc/1a300000.qcom,turing/firmware/cdsp.b02 -> ...)
            
            cmnlib64.mdt (/devices/virtual/qseecom/qseecom/cmnlib64.mdt)
            modem.mdt (/devices/soc/4080000.qcom,mss/firmware/modem.mdt)
            cmnlib64.b00 -> cmnlib64.b06 (/devices/virtual/qseecom/qseecom/cmnlib64.b00 -> ...)
            
            mba.mbn (/devices/soc/4080000.qcom,mss/firmware/mba.mbn)
            msadp (/devices/soc/4080000.qcom,mss/firmware/msadp)
            modem.b02 -> modem.b28 (/devices/soc/4080000.qcom,mss/firmware/modem.b02 -> ...)
            
            tas2557_uCDSP.bin (/devices/soc/c1b6000.i2c/i2c-6/6-004c/firmware/tas2557_uCDSP.bin)
            wlan/qca_cld/WCNSS_qcom_cfg.ini (/devices/soc/18800000.qcom,icnss/firmware/wlan!qca_cld!WCNSS_qcom_cfg.ini)
            wlan/qca_cld/wlan_mac.bin (/devices/soc/18800000.qcom,icnss/firmware/wlan!qca_cld!wlan_mac.bin)
            cpp_firmware_v1_12_0.fw (/devices/soc/ca04000.qcom,cpp/firmware/cpp_firmware_v1_12_0.fw)
            venus.mdt (/devices/soc/cce0000.qcom,venus/firmware/venus.mdt)
            venus.b02 -> venus.b04 (/devices/soc/cce0000.qcom,venus/firmware/venus.b02 -> ...)
            

            Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
            Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

            1 Reply Last reply Reply Quote 0
            • c4pp4C Offline
              c4pp4 @PhAndersson
              last edited by

              @phandersson said in Dual-SIM + OTA-20 on Mi A2:

              Just upgraded to OTA-20: the upgrade process itself went flawlessly, but the SIM card in slot #1 is no longer detected!

              Hi, I faced the same problem. I remember it was upgraded via delta, not full image. After full image "re-upgrade" two sims appeared in my case.

              You can try this: Through the settings change channel to devel, close settings, start settings again, there should be devel upgrade available, don't upgrade and change channel back to stable and close settings again, now when you start settings there should be stable upgrade available - full image (cca 500 MB). Do the upgrade and you will see.

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                PhAndersson @c4pp4
                last edited by

                @c4pp4 I tried to follow the procedure you suggested, but without success so far.

                Right after switching to the "dev" channel, the phone downloaded a 500MB installation image (which I didn't actually install, obviously), but once I returned to the stable channel, nothing more happened. It still shows the dev image ready for install, but nothing new for the already installed system (see attached screenshot).

                screenshot20211222_154432281_cropped.png

                Likewise in "About | Check for updates" -- it checks, then shows the exact same thing.

                Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                LakotaubpL 1 Reply Last reply Reply Quote 0
                • LakotaubpL Offline
                  Lakotaubp @PhAndersson
                  last edited by

                  @phandersson If you are on OTA20 yoh will not get a new stable version until the next OTA is ready. You could try installing the dev download, see if two sims show then change straight back to the stable channel and see if they remain.

                  c4pp4C P 2 Replies Last reply Reply Quote 0
                  • c4pp4C Offline
                    c4pp4 @Lakotaubp
                    last edited by

                    @lakotaubp said in Dual-SIM + OTA-20 on Mi A2:

                    If you are on OTA20 yoh will not get a new stable version until the next OTA is ready.

                    I disagree, the procedure I described works in my case - Xperia X and Mi A2.

                    @PhAndersson
                    If you are unlucky with it, do what @Lakotaubp said.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      PhAndersson @Lakotaubp
                      last edited by

                      @lakotaubp Following your suggestion, I just switched to "dev" channel and installed the image (ver. 763).

                      I'm happy to report that this restored access to both SIM slots -- see screenshot below:

                      screenshot20211222_174645799_cropped.png

                      I'll now switch back to the stable channel and report again.

                      Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                      Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        PhAndersson
                        last edited by

                        Well, I can select the stable channel again, but nothing happens: the updater doesn't detect anything to download (even after closing and restarting the "Settings" app).

                        Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                        Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                        LakotaubpL 1 Reply Last reply Reply Quote 0
                        • LakotaubpL Offline
                          Lakotaubp @PhAndersson
                          last edited by

                          @phandersson Try a complete shutdown and reboot of the phone sometimes this does play up.

                          P 1 Reply Last reply Reply Quote 0
                          • P Offline
                            PhAndersson @Lakotaubp
                            last edited by

                            @lakotaubp Same behaviour after power cycle.

                            What's strange is that after switching back to the stable channel, the main "Settings" screen shows 1 update available (see screenshot below):

                            screenshot20211222_201303889_cropped.png

                            But when tapping on that line, and after "checking for updates", it still returns "Software is up to date".

                            Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                            Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                            LakotaubpL 1 Reply Last reply Reply Quote 0
                            • LakotaubpL Offline
                              Lakotaubp @PhAndersson
                              last edited by

                              @phandersson So you are back on stable with 2 simsworking? Might just be an overlap of updates between being onndev and going back to stable. Should be safe enough to ignore it and carry on the next stable update should remove it.

                              ? P 2 Replies Last reply Reply Quote 0
                              • ? Offline
                                A Former User @Lakotaubp
                                last edited by

                                The update servers generally have a lot of problems if you haven't deleted old downloads. If I were them, I would always delete installed system updates. Then new updates should also go through without problems. Sometimes, however, the updates bounce back. I was told that this is an old bug and will be tackled again.

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  PhAndersson @Lakotaubp
                                  last edited by

                                  @lakotaubp said in Dual-SIM + OTA-20 on Mi A2:

                                  @phandersson So you are back on stable with 2 simsworking?

                                  The 2 SIMs are working again, yes, but I'm still on "devel" (v763), and apparently unable to get back to "stable". I can select the channel, but nothing gets downloaded.

                                  Might just be an overlap of updates between being on dev and going back to stable. Should be safe enough to ignore it and carry on the next stable update should remove it.

                                  You mean, switch to "stable" even if nothing happens, and wait for OTA-21 to be released? I can try. Although representing heavier work, I guess I could also re-install the phone from scratch on OTA-20 using UTI.

                                  By the way, the problem of dual-SIM support in OTA-20 is a known bug (just found out about it):

                                  https://github.com/ubports/ubuntu-touch/issues/1879

                                  ...and a manual fix is provided in the post by "laguna66".

                                  Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                                  Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                                  1 Reply Last reply Reply Quote 0
                                  • Mario.CHM Offline
                                    Mario.CH
                                    last edited by

                                    Hi,
                                    As I understand it, all available updates must first be done in that channel before you can switch to another channel.
                                    Is it or isn't it?
                                    Otherwise, an update that is not suitable for the channel will get in the way of changing the channel.

                                    Greetings Mario

                                    šŸ“± Oneplus Nord N100 UT20.40 (OTA5); then Xperia X (since 2020) at last UT 20.04(OTA5), now out of service due to defective camera
                                    šŸŽ When you realize you are riding a dead horse, get off!
                                    My languages skill: šŸ‡ØšŸ‡­šŸ‡¦šŸ‡¹ šŸ‡©šŸ‡Ŗ, and only orally: šŸ‡¬šŸ‡§ šŸ‡¹šŸ‡­

                                    ? 1 Reply Last reply Reply Quote 0
                                    • ? Offline
                                      A Former User @Mario.CH
                                      last edited by A Former User

                                      @mario-ch Since I do this story with updates very often, you can do it as follows. Once you have finished downloading and installing an update, don't forget to remove it from your history. Then you can immediately switch to the next channel. If this fails, simply repeat the process, which may happen from time to time. Another annoyance I have noticed is that various downloads for the individual channels stop or break off at the end and start again in the middle. If the downloads don't continue, close the update and open it again. Then they actually run through. These are my experiences with Merlin.

                                      What I would like to add to the updates. If you are using a mobile phone with low data volume, please make sure that you set the settings to Wifi only or a data connection. Some people are surprised when only the circle turns. I have read this several times now, so I would like to mention it here as another problem solution for failed updates.

                                      ? 1 Reply Last reply Reply Quote 1
                                      • ? Offline
                                        A Former User @Guest
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          PhAndersson
                                          last edited by

                                          Status update:
                                          As it happens, I took the opportunity of having the phone on the dev channel to re-test an application that typically froze the GUI (the app called "Steps" -- I already opened a bug report on that specific issue). Turns out the behaviour was the same on v763, so I wanted to force a power cycle by rebooting the phone on the recovery image (Power + Vol+).

                                          But instead of the recovery menu, I was greeted by the spiralling animation: the phone was clearly installing something. When it finished rebooting, I was back on OTA-20, and both SIMs were still active!

                                          Following @DPITTI suggestion, I also removed v763 from the upgrade history.

                                          I'll now mark this post as "resolved". Many thanks to all those who contributed.

                                          Xiaomi Mi A2 (16.04 OTA-25/stable) initially with 2 SIMs
                                          Daily driver: Google Pixel 3a (20.04 OTA-8/stable) [was: Nokia N900 (Maemo) from 2009].

                                          1 Reply Last reply Reply Quote 2
                                          • P PhAndersson has marked this topic as solved on
                                          • First post
                                            Last post