Redmi 4x - installation e/os not available?

Hello everyone,
I discovered this amazing project just a few days ago and I am really hopeful, finally, to be able to get rid of all the spying software on my android phone!

So, my problem is very simple: I have a Xiaomi Redmi 4X (MAG138) and I don’t know which version of e/os could work on it :slight_smile:

Unfortunately it’s not in the official list, but I read (also in this forum) that some users where able to install e/os on a Redmi 4X.

So,I found this release:
https://doc.e.foundation/devices/Mi8937

the specs its “similar” to my phone, but still there are some differences, for example:

  • Qualcomm 8937 (Mi8937) vs. Qualcomm 8940 (4X)
  • CPU Octa-core 1.4 GHz Cortex-A53 should be identical
  • GPU Adreno 505 should be identical

I have really NO IDEA which differences are beween a Qualcomm 8937 and 8940. Moreover, should I check other specifications?
For me the goal is to get a working e/os, which can do basic stuff, like going on the net and call.
If a particular piece of hardware (like the camera) is not working is for the moment the same!

Can some experienced user give me an advice?
Should I try to install the version for Mi8937 or better leave it and wait for a release specific for the 4X?

Thanks in advance!
Antonio

you can use that version.

These devices all use the same LineageOS build. The vendor may have released the same device under multiple names, or the maintainer may support multiple devices using the same code.

https://wiki.lineageos.org/devices/Mi8937/

Hi @AntonioA, and welcome here :slight_smile:

It’s not my main phone, but I occasionally use a Redmi 4X (santoni) installed with the image you linked (/e/OS 2.9 A14).

Besides some testings, my main use is GPS-assisted bike riding. I find everything works very well.
If you want me to test a specific feature, please let me know :smiley_cat:

Hello smu44 and tcecyk!
You motivated me to go on with the idea and today I was unlocking the phone, using the windows “Mi Unlock” software. It was successful!

Now I have to fix an issue… the phone is not able to make or receive calls! I read in the instructions that it is better to solve these problems before the installation of eos… so I am struggling to find a solution. It can depend on:

  • Mi account
  • SIM card
  • telephone app settings
  • network settings

It’s quite frustrating to see that a "smart"phone cannot make phone calls.

I’m currently trying to reproduce your problem here, I’ll keep you posted.

there’s an ims lib present, but got moved. I’d check how most current lineage behaves too

https://review.lineageos.org/c/LineageOS/android_device_xiaomi_Mi8937/+/422446/1/proprietary-files.txt#35

1 Like

ehm… what is exactly a “ims lib” ?

my version of Android is quite old (Android 7). Maybe can also depend on that?
Unfortunately I cannot upgrade to a newer version throught the updater

This is what I tried until now:

  • change network settings (LTE, etc) using the GSM code x#x#4636#x#x
  • 3 different sim cards
  • factory reset

Any suggestion is welcome!

Not a lot a free time by these days, but I managed to confirm the problem with installing the latest LOS.

Looking at the 2nd warning here Install LineageOS on Mi8937 | LineageOS Wiki I then installed the latest MIUI I could find: MIUI 10 - MIUI 10 STABLE RELEASE | Unofficial Xiaomi European Community | MIUI ROM Since 2010 (10.3 from AndroidFileHost).
After some time, phone get connected to 4G (Orange France), but I couldn’t make a call :confused:
Maybe will it work by using the SIM in this device much longer, but unfortunately I’m out of testing SIMs and couldn’t run the test longer enough … for now :wink:

2 Likes

I got it to work! :smiley_cat:

Running MIUI, I could call & get called, after performing several manual network searches, disabling/enabling radio with *#*#4636#*#*, powering off/on the device, … (don’t know what really helped here).

Then I installed the latest LOS, and made calls work after some network searches & radio disable/enable.

Finally, I installed /e/OS (i did NOT flash empty super, I used LOS wiki instead Murena’s). It took me a bit more back-and-forth actions (same as for MIUI) to convince it to work.

NB:

  • I used a Webex number for test calls, so no SMS/MMS…
  • I always started with no data connection (nor Wi-Fi BTW), but activating may helped with /e/OS

In short: the warning in LOS wiki is very good advice! Going back to MIUI to provision IMS helped for sure.

2 Likes

great work! I always felt that wiki advice as to provision in stock feels outdated and I never followed it without disadvantage - but then it is an older device.

I’d love to look at this from the carriers side. If stock makes a difference, what is different when talking to their IMS? imei is unchanged, only SIP user-agent comes to mind.

1 Like

Me too! But unfortunately I can only access MNVO from here, so no access to this level of details :confused:
Maybe some kind of “system” partition, or a data table?
According to some Internet chattering, NON-HLOS.bin file may be the one… It is flashed with fastboot flash modem ... in MIUI script.

yes, that is the baseband firmware.

Not sure if the /e/OS zip / payload ships that partition, I wouldn’t assume so (they do for their store devices). Then any flash of stock (or Lineage) that includes a more current baseband firmware package benefits the device.

In your voice call tests, was the criteria “IMS service status → voice-over-LTE: registered” in the Dialer debug menu, or easily verified because your carrier will only do volte calls anyway?

LOS and /e/OS flashing scripts are the same: they flash system, vendor, product, odm, system_ext, boot. As they use a different partition scheme as stock, I don’t know if any of these include necessary file :confused:
Maybe not flashing “empty super” helped here? Once I find enough free time, I could try flashing again, including this step.

I didn’t check the IMS registration every time, but as far as I remember I could make calls using “classic” network (indicator switching to 3G/H+), as well as VoLTE (indicator staying on 4G).
Will be more careful about his, in future tests.

Hello again, can you give me more information on the settings you applied to make it work?

I also installed Android 10.3 (complete file name is “xiaomi.eu_multi_HM4X_V10.3.1.0.NAMCNXM_v10-7.1.zip”), however the problem with the calls is still there!

Here are my questions, trying to confine the issue:

  • installation: I just copied the “boot.img” file in my working directory (“C:/platform-tools”) and then runned “fastboot flash boot boot.img”. I did nothing with the files in the “firmware-updates” folder (i.e. “mdtp.img” and several “.mbn” files). Actually I don’t know exactly how I can install those files… Any suggestion?

  • in the ##4636## settings, which “preferred network type” should I choose? (by default I have LTE/TD-SCDMA/UMTS…). When I make a call, the “call-status” changes (from inactivity to making a call) but in reality I get no “beep” and no call is actually made

  • in the advanced options of the standard telephone app, I checked if had a block on the outgoing calls. That was not the case. Anyway it is particularly strange that it takes a long time (nearly a minute) to access to this menu and it appears an error on screen “SIM card or network error”. The access to the menu is still possibile but I don’t know why I get the error message. It appears independently from which SIM card I test (I have two SIMs from two different countries) and also independently from which SIM-slot I am using.

  • manually selected network: I get errors when I click on specific networks. I leave the option “automatically select” and it connects to some network. With the option “prefer LTE” I get on top of the icon bar icon the text “4G”.

Any help will be veeery appreciated!

Please be aware this is just firmware, not complete MIUI (the file I have for MIUI is santoni_global_images_V11.0.2.0.NAMMIXM_20191107.0000.00_7.1_global_99c087db02.tgz).
As this firmware includes an install script, it is intended to be flashed using an “intelligent” recovery (/e/, LOS, OrangeFox, …), you can sideload it using ADB. If you have the stock recovery, every of theses “intelligent” recoveries can be booted once without installing, using fastboot boot ... :wink:

I didn’t change from default. If your local network providers still allow 3G, please make sure that WCDMA is included.

That’s it! When you see the 4G symbol, it means that the provider “accepted” your device and allows it to connect :slight_smile:
To enable calls from here, you may try:

  • power off the device, wait a couple of minutes, then power it on again, with SIM still inside
  • when the 4G is back, try to establish a data connection, play with Radio On/Off in INFO (4636) menu, …
  • if you can use 3G in your location, try a call with VoLTE disabled in settings
  • sometimes, I had provider services (like voicemail) working before calls do
  • I had to keep retrying with some delays. My guess is that the network provider has to update something to make it work… (I used Orange France)

After several trials I gave up with the call problem.
The main reason why I wanted to flash this phone was to get practice with alternative OS… and the goal is reached :v:

Now my old 4X runs a LOS with Android 15… I am impressed how smooth and fast it is!

I am very thankful for the help I got from this community.

Stay tuned: next “flashing” Projekt → Samsung A505FN/DS

Topic can be closed, Ciaooo!

1 Like