Sunday, 11 October 2015

[LOST IMEI] Warning for D410HN users (Brazilian Dual-SIM with NFC variant)



This warning also serves to other variants.

I see that many users of this variant are using other variant binaries and images trying to unlock the bootloader and install TWRP recovery.

My advise is to not do this or you can end with a brick.

Even worse, when trying to unbrick the phone, people are using other variant nand backup images, this will lead you to the infamous lost IMEI problem, and from this point if you don't have your modemst partitions backups, you are lost.

Flashing KDZ won't recover these partitions, they are unique to your phone and are not flashed in a normal KDZ flash, the only way to flash them is in TWRP or ADB.

I already supplied the proper D410HN Kitkat v10c and Lollipop v20a/b/c (they are the same) unlocked aboots and bootstacks but people insist flashing files from other variants.

My advise is, after rooting your phone, before doing anything else, the first thing you must do is to backup your modemst1 and modemst2 partitions to make sure you IMEI data is safe. You can make this backup in ADB or Android Terminal app with:


Code:


dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/storage/external_SD/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/storage/external_SD/modemst2.img


This will save modemst1.img and modemst2.img in your external microSD. If you want to save in your internal SD, replace /storage/external_SD to /sdcard.

Also, make a nand backup image in case of you need to make a testpoint or direct flash in nand to attempt to unbrick the phone.


Code:


dd if=/dev/block/mmcblk0 of=/storage/external_SD/unbrick.img bs=512 count=323583

This will save an unbrick.img in your external microSD. If you want to save in your internal SD, replace /storage/external_SD to /sdcard. Do not share this file with anyone else, this image have your IMEI data.

Why make your own unbrick.img file?

If you look at the partition table, you will have this:





Code:


GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
unit s
(parted) print
print
Model: MMC 8WMB3R (sd/mmc)
Disk /dev/block/mmcblk0: 15269888s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start      End        Size      File system  Name      Flags
 1      16384s    147455s    131072s  fat16        modem
 2      147456s    149503s    2048s                  sbl1
 3      149504s    150527s    1024s                  rpm
 4      150528s    151551s    1024s                  tz
 5      151552s    152575s    1024s                  sdi
 6      152576s    156671s    4096s                  aboot
 7      156672s    157695s    1024s                  rpmb
 8      157696s    158719s    1024s                  tzb
 9      158720s    162815s    4096s                  abootb
10      162816s    166911s    4096s                  pad
11      166912s    173055s    6144s                  modemst1
12      173056s    179199s    6144s                  modemst2
13      179200s    211967s    32768s                misc
14      212992s    278527s    65536s    ext4        persist
15      278528s    323583s    45056s                laf
16      327680s    372735s    45056s                boot
17      372736s    417791s    45056s                recovery
18      417792s    423935s    6144s                  fsg
19      425984s    427007s    1024s                  fsc
20      427008s    428031s    1024s                  ssd
21      442368s    443391s    1024s                  DDR
22      458752s    459775s    1024s                  encrypt
23      459776s    460799s    1024s                  rct
24      475136s    491519s    16384s    ext4        drm
25      491520s    507903s    16384s    ext4        sns
26      507904s    548863s    40960s                factory
27      548864s    614399s    65536s                fota
28      622592s    624639s    2048s                  sbl1b
29      624640s    690175s    65536s    ext4        mpt
30      704512s    909311s    204800s  ext4        cust
31      917504s    918527s    1024s                  eksst
32      933888s    5128191s  4194304s  ext4        system
33      5128192s  6971391s  1843200s  ext4        cache
34      6971392s  15223807s  8252416s  ext4        userdata
35      15237120s  15269854s  32735s                grow

(parted)






This ubrick image have your partition table and the partitions until sector 323583 (partition 15 - laf), which is enough to enter in download mode and flash KDZ with LG Flash Tool and make a complete and perfect recover. This also explains why when you flash an unbrick image from a unknown source and variant you lose your IMEI, modemst1 (11) and modemst2 (12) partitions are flashed along, overwriting your unique data.

Keep your backups in a safe place and now you can go ahead and unlock the bootloader, install TWRP, change partitions size and etc knowing that if anything goes wrong, if you manage to unbrick your phone, you won't loose your IMEI.

Good luck :good:



No comments:

Post a Comment