It is known that after cross-flashing and then removing the NT code, we will lose the LTE network and mobile data. In order to use our network and mobile data again we need to flash the patched modem partition, see more about that in this thread Modem Patched, Fixed LTE & Mobile data.
This time I will show you how to fix the NT code without using a patched modem.
So let's go...
It is recommended to make a full partition backup before any cross-flashing. Performing this tutorial will require a backup of our original FTM partition before cross-flashing.
When we finish cross-flashing e.g. EU firmware when boot to android for the first time of course we will have NT code error, flash our original FTM to EU firmware then apply the instructions depending on whether you have root or not.
Ok for this initial part we are done now you have NT code removed and network and mobile data fixed.
Soon there will be a magisk module for rooted devices.
Note: If you use this method of fixing the NT code then it is not necessary to use a patched modem, otherwise you will be using it.
Note: For JP variants, I'm not sure about this method because the devices don't have an OP partition.
This time I will show you how to fix the NT code without using a patched modem.
So let's go...
It is recommended to make a full partition backup before any cross-flashing. Performing this tutorial will require a backup of our original FTM partition before cross-flashing.
When we finish cross-flashing e.g. EU firmware when boot to android for the first time of course we will have NT code error, flash our original FTM to EU firmware then apply the instructions depending on whether you have root or not.
We will download the HxD hex editor with which we will edit the partition.
When we flash the original FTM it is not necessary to exit the partition manager from Qfill because we will make a backup copy of the OP_a partition.
My original FTM is from an AT&T device, yours will probably be the same or a different device.
In the downloaded hex editor, we will open our original FTM partition and OP_a partition.
Extra feature;
When we flash the original FTM it is not necessary to exit the partition manager from Qfill because we will make a backup copy of the OP_a partition.
My original FTM is from an AT&T device, yours will probably be the same or a different device.
In the downloaded hex editor, we will open our original FTM partition and OP_a partition.
- We will open FTM in HxD then we will find NT code at address 14000 in my case it is ATT NT code where we can see mcc/mnc[xxxxxx],subset[xx] in case 310410,FF, after finding NT code we will leave FTM open in HxD
. - Open OP_a in HxD and find the string FFFFFF,11 which means EU NT code it's our EU croosflahed firmware.
- Inside OP_a partition "FFFFFF,11" we will overwrite with our correct NT code in my ATT case "310410,FF".
- Now that we have entered the correct mcc/mnc[xxxxxx],subset[xx] we can save the changes then flash back the modified OP_a partition.
Extra feature;
- If we want to display a menu for selecting 5G under Network Mode, do this.
- Find inside OP_a "networksettings.OPEN_EU" then rename the .apk extension to .bak, save the changes.
I tried to make the magisk module however the NT code error is no longer displayed but for some reason it does not load the configs for OPEN_EU.
So now we will do it in a different way.
This is for users who do not have the ability to truly R/W and thus we will do emulation.
We will install OverlayFS magisk module to enable system R/W, after installing and restarting the device, we will be able to make changes on our android.
We will find the file cust_path_mapping.cfg in the location /product/etc or in the location /mnt/product/OP/OPEN_EU/product_ex/etc/ then you will replace the file with this one in the attachment or inside the cust_path_mapping.cfg you will add your NT code as follows below.
we have mcc/mnc[xxxxxx],subset[xx], we will take and replace or add with our NT code as it is on the original FTM and the hidden menu SVC menu>MID INFO, in my case I will use the NT code for AT&T which is 310410,FF.
it should be like this.
after changes, save the edited cust_path_mapping.cfg, then restart the device.
Now your NT code should be fixed and you should have a non-blocking network.
So now we will do it in a different way.
This is for users who do not have the ability to truly R/W and thus we will do emulation.
We will install OverlayFS magisk module to enable system R/W, after installing and restarting the device, we will be able to make changes on our android.
We will find the file cust_path_mapping.cfg in the location /product/etc or in the location /mnt/product/OP/OPEN_EU/product_ex/etc/ then you will replace the file with this one in the attachment or inside the cust_path_mapping.cfg you will add your NT code as follows below.
after changes, save the edited cust_path_mapping.cfg, then restart the device.
Now your NT code should be fixed and you should have a non-blocking network.
Soon there will be a magisk module for rooted devices.
Note: If you use this method of fixing the NT code then it is not necessary to use a patched modem, otherwise you will be using it.
Note: For JP variants, I'm not sure about this method because the devices don't have an OP partition.
Attachments
Last edited: