Unbrick redmi 4 prime - Xiaomi Redmi 4 Prime Questions & Answers

I ask to help to unbrick the phone. Prehistory. After an unsuccessful firmware phone has a brick. The phone is not detected by the computer (Unknown device). Reinstalling the drivers does not help, closing testpoints does not solve the problem. The only option is to create a bootable flash drive and flash it from under it. To do this, you need a complete dump of the phone. This is the request. Please make a complete dump of the phone with the extension * .img. Script for adb I attach Adb shell su Adb shell dd if = / dev / block / mmcblk0 of = / sdcard / image.img I am hope for your help

Damagar84 said:
I ask to help to unbrick the phone. Prehistory. After an unsuccessful firmware phone has a brick. The phone is not detected by the computer (Unknown device). Reinstalling the drivers does not help, closing testpoints does not solve the problem. The only option is to create a bootable flash drive and flash it from under it. To do this, you need a complete dump of the phone. This is the request. Please make a complete dump of the phone with the extension * .img. Script for adb I attach Adb shell su Adb shell dd if = / dev / block / mmcblk0 of = / sdcard / image.img I am hope for your help
Click to expand...
Click to collapse
And how will you be able to "flash it under it"?

I wrote the same on the basis of a dump, create a bootable flash and from under it my own

Related

[HOWTO] Recover from checksum errors

As I've seen a few people around having some checksum erros, I decided to write a small HOWTO.
!!!
The most important information needed to recover from a bricked device is the UID
If your device is not bricked and you read this thread ensure that you have saved your UID!
!!!
​
Because some people do not read big red text, here it is once again:
GET YOUR UID even if your device is not bricked.
If you need help please contact me with PM or ask for help in this thread.
If your device does not boot anymore it may display the following checksum erros:
"LNX checksum error" - when trying to boot into normal mode
"SOS checksum error" - when trying to boot into recovery (VOL- + Power pressed)
<CASE 1> SOS checksum error
Steps:
- Switch off your device by pressing power for ~8sec
- Switch on your device and boot into normal mode
- If LNX checksum error is displayed, stop here and see <CASE 3>
- Download itsmagic (see this thread). Extract "itsmagic" to the tools folder of android sdk.
- Connect your device to your PC (Windows: drivers can be obtained from Acer website)
- If not already done, get your UID using Method 1 of "How to get the UID"
- If not already done, get a dump of mmcblk0_start (see "How to get a dump of mmcblk0_start")
- In the command window type:
Code:
adb push itsmagic /data/local
adb shell
su -
chmod 755 /data/local/itsmagic
/data/local/itsmagic
exit
- If everything went fine you should see some output of itsmagic
- Reboot and check if you can boot again
- Store your UID and mmcblk0_start to some safe place
Possible reasons for this error
- You tried to install a new recovery without calling itsmagic before
- You have not remove /system/etc/install-recovery.sh
- Your recovery partition is corrupt
<CASE 2> LNX checksum error
Steps:
- Switch off your device by pressing power for ~8sec
- Switch on your device and boot into recovery by pressing VOL- + Power
- If SOS checksum error is displayed, stop here and see <CASE 3>
If you have stock recovery:
- If not already done, get your UID using Method 2 of "How to get the UID"
- Apply an official OTA, see this thread
If you have thor's CWR:
- If not already done, get your UID using Method 1 of "How to get the UID".
- Select "reboot system now"
If you have any other recovery (that does not have itsmagic integrated):
- If not already done, get your UID using Method 1 of "How to get the UID". If Method 1 does not work, try Method 2
- DO NOT apply any official update.zip . Otherwise you will end up in <CASE 3>
- send me a PM or ask for help in this thread.
Possible reasons for this error
- You tried to install install a new kernel / stock update.zip without calling itsmagic (will not occur with thor's CWR)
<CASE 3> SOS and LNX checksum error
- If available, upload the "mmcblk0_start" dump to some file hoster (e.g. dropbox)
- Send me a PM with your UID and a link to "mmcblk0_start"
- If you do not have your UID: DO NOT connect your device to your PC:
- Pray that you are able to recover the UID from a PC the Iconia was already connected once.
- Windows: Try Method 2 of "How to get the UID" but DO NOT connect your device to your PC.
- Linux/Mac: Check old syslogs for messages where your device was connected to your PC (normally some "usb " kernel messages)​
Possible reasons for this error
- You tried to install a new kernel athough you already have a SOS checksum error
- You tried to install a new recovery altough you aleady have a LNX checksum error
How to get the UID
Method 1
- If not already done, follow the instruction "Howto install ADB" below
- In the command shell, type:
Code:
adb devices
and press RETURN
This will output something like this:
Code:
List of devices attached
370014740c00594 device
The number is your UID.
- Save this number somewhere it won't get lost
Method 2
- Connect your device to your PC and ensure that drivers are properly installed (Windows: Can be downloaded from Acer website)
Windows:
Download this tool (download link is nearly at the end of the page):
- Open the tool
- Sort after VendorID
- Find all devices with VendorID = 0502 and ProductID = 3325. Check the "Serial number" column for these devices.
Linux:
Call (as root) and see the iSerial field for Iconia.
Code:
lsusb -v
Mac:
- Should be visible in system profiler. Sadly I don't own a mac. So if anyone can help me out with this?
How to get a dump of mmcblk0_start
- If not already done, follow the instruction "Howto install ADB" below
- In the command shell, type:
Code:
adb shell
su -
dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start
exit
exit
adb pull /sdcard/mmcblk0_start .
- This will create a file "mmcblk0_start" in the tools folder of your android-sdk.
- Copy this file to some safe place
How to install ADB
1. Download android SDK from here. Windows: Download the .zip file instead of the exe file.
2. Extract android SDK somewhere
3. Open a command shell:
- Windows: Press Winkey+R . Some small window appear. Enter "cmd" and click ok. A black command promt window will open.
- Linux/Mac: Open a terminal window
4. "cd" to the "tools" folder of the android sdk by typing the following in the command shell:
- Windows:
Code:
cd "<path to tools folder>"
Sample:
Code:
cd "c:\android\android-sdk-windows\tools"
- Linux/Mac:
Code:
cd /path/to/tools/folder
5. Ensure that your device is connected, that drivers are installed and that USB debugging is enabled (on Iconia: Settings->Applications->Development->USB Debugging)
reserved for me
Im just asking, in case3 u need dump of mmcblk0_start ,but what if dont have it, only UID?
Should i make dump of mmcblk0_start just in case to be insured that evrything will be ok if smth happens?
Any way thks fo tutorial)
Glebaka said:
Im just asking, in case3 u need dump of mmcblk0_start ,but what if dont have it, only UID?
Should i make dump of mmcblk0_start just in case to be insured that evrything will be ok if smth happens?
Any way thks fo tutorial)
Click to expand...
Click to collapse
Having a dump in <case 3> makes everything easier. But it is not mandatory. Nevertheless it's generally a good idea to backup mmcblk0_start.
btw: thor's CWR will backup mmcblk0_start since version 1.2 if you do a nandroid backup.
sc2k said:
How to get a dump of mmcblk0_start
- If not already done, follow the instruction "Howto install ADB" below
- In the command shell, type:
Code:
adb shell
dd if=/dev/block/mmcblk0 of=dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start
exit
adb pull /sdcard/mmcblk0_start .
- This will create a file "mmcblk0_start" in the tools folder of your android-sdk.
- Copy this file to some safe place
Click to expand...
Click to collapse
Hi there,
after i typed "dd if=/dev/block/mmcblk0 of=dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start" in the adb shell i got an invalid argument error:
Code:
if: illegal argument combination or already set
What i should do?
when i get a SOS checksum error and a LNX checksum error,can i copy files from pc to a500 device? how?
dmue said:
Hi there,
after i typed "dd if=/dev/block/mmcblk0 of=dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start" in the adb shell i got an invalid argument error:
Code:
if: illegal argument combination or already set
What i should do?
Click to expand...
Click to collapse
Sorry, there was a typo. Should be correct now
Thanks for the hint.
kimycai said:
when i get a SOS checksum error and a LNX checksum error,can i copy files from pc to a500 device? how?
Click to expand...
Click to collapse
The procedure for this case is much more complex. If you do something wrong, it is getting even more complicated.
I will not publish details currently, sorry. If you get this error, contact me.
As soon as some tools are finished i will update the OP.
Sent from my HTC Desire using XDA App
sc2k said:
Sorry, there was a typo. Should be correct now
Thanks for the hint.
Click to expand...
Click to collapse
Ah ok, thx.
thank you sc2k!
sc2k said:
The procedure for this case is much more complex. If you do something wrong, it is getting even more complicated.
I will not publish details currently, sorry. If you get this error, contact me.
As soon as some tools are finished i will update the OP.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
really?
waiting……
Hi
After I typed "dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start" in adb i got: "dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start /dev/block/mmcblk0: cannot open for read: Premission denied"
What i done wrong?
Raphaello said:
Hi
After I typed "dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start" in adb i got: "dd if=/dev/block/mmcblk0 bs=512 count=13312 of=/sdcard/mmcblk0_start /dev/block/mmcblk0: cannot open for read: Premission denied"
What i done wrong?
Click to expand...
Click to collapse
You need to be root
Type
Code:
su -
before.
I will update the guide
Thanks but it's doesn't work yet. I have root access. I tried type "su-" but it is the same message "cannot open for read: Premission denied". I install usb drivers and the others think from guide hmmmm....
Raphaello said:
I tried type "su-" but it is the same message "cannot open for read: Premission denied".
Click to expand...
Click to collapse
Did you type su- or su - (notice the space between su and -)?
Also you'll have to confirm su permissions on the tablet.
I typed "su -" with space between su and -
I have USB debugging turn on
When i type "su -" it say "Premission denied"
I really sorry for problem and thanks you for trying to help me
Is your device rooted? Because it has to be.
And if it's rooted did you notice a superuser app popping up after you run the command.
What a shame, I did not notice a superuser app popping up :/ Now it's ok. Thank You very much. I must learn a lot. Only think was taht I can't pull this file to my computer via "adb pull /sdcard/mmcblk0_start" but i copy it directly from device Now I feel safe.
Thanks a lot guys
Well, actually you should be able to dump directly to adb without copying to device to save some time.
like dd if=/dev/mmcblk0p1 count=X bs=Y
but without specifying of= or using of=-
and don't forget to redirect it to file. like "adb shell "dd if ..." > dump_p1". Not sure it will work fine, but I used it once on another device to dump block device image.
i download the android sdk zip file, but is seems that the "tools" folder doesn't include the adb executable file , how should i do?

[TOOLS][ADB][Windows]Push files to device through ADB*now include deodex tools*

See my previous post before in post#2
This is a simple batch file using ADB..
With this you can use ADB to manage your file or APK , Backup, Push Your File to device, or pull file from device..
ADB Work on Stand by Mode (Home Screen) or in Recovery Mode, just set it up..
Extract ADBTOOLSv1.0.1.zip and you will find :
command.bat : Windows Batch Command
_BACKUP_OUT : folder where your backup process done and made
_FLASHING_OUT:
folder for flashing your :
kernel (place your boot.img here)
recovery (place your recovery.img here),
modem (place your modem.bin here)--only for gt p7300
_MODDING_FILE: Folder where your file were created by PULL process
Folder where file for PUSH process should be here
_BATCH_INSTALL : place your APK here for batch install
tools: ADB.exe and busybox binary
success_APK : A folder created for All apk from _BATCH_INSTALL move here after instalation.
Click to expand...
Click to collapse
Notes:
ADB can access all file from device from CWM Recovery, especially CWMR 5.5.0.4
ALL you need to do is:
From Recovery menu, you need to mount /data and /system for ADB working..
THEN, From Command Prompt set ADB Mode to "recovery".(This Batch File set ADB mode to "Home Screen" by default)
So when you use ADB from Online device ( I mean a stand by device).. you dont need to change ADB Mode..
After you set up, you can use ADB as you like..
Code:
=============================================================================
:::: ADB TOOLS FOR GT P7300 and P7310 by suwandiapr
-----------------------------------------------------------------------------
| [*] Before use read this:
| --make sure you have installed adb drivers for your device
| --enable "USB DEBUGGING"
| from (Menu\Settings\Applications\Development)
| --enable "UNKNOWN SOURCES"
| from (Menu\Settings\Applications)
| --increase screen timeout to 10 minutes
| --connect USB cable to PHONE and then connect to PC
| --MAKE SURE YOU HAVE A ROOTED DEVICE AND BUSYBOX
| --Place the right file in the right folder
| --Some feature like Flashing need more tester..so please be aware
| --If you use adb recovery feature, set ADB Mode to recovery
| mount /data and /system from your device recovery
| --If you use adb from homescreen, set ADB Mode to HomeScreen
| --All you Do is your own Risk, use with carefull
-----------------------------------------------------------------------------
****Turn on the screen and allow superuser permission when asked!****
_____________________________________________________________________________
| Current MODDING FILE: NONE | ADB MODE :HomeScreen | sdcard path: /sdcard/|
=============================================================================
:::: ADB PULL ::::
=============================================================================
0 Pulling file from /data ( see result in _MODDING_FILE)
1 Pulling file from /system partition ( see result in _MODDING_FILE)
2 Pulling file from SDcard ( see result in _MODDING_FILE)
3 Backup recovery ( see result in _BACKUP_OUT)
4 Backup Kernel ( see result in _BACKUP_OUT)
5 Backup modem (for P7300 only-see result in _BACKUP_OUT)
6 Backup /system (tar format-see result in _BACKUP_OUT)
7 Backup /efs (tar and .img format-see result in _BACKUP_OUT)
8 Backup APK from /data/app (tar format-see result in _BACKUP_OUT)
=============================================================================
:::: ADB PUSH ::::
=============================================================================
9 Pushing file to /data ( from _MODDING_FILE to device)
10 Pushing file to /system ( from _MODDING_FILE to device)
11 Flashing recovery ( from _FLASHING_OUT to device)
12 Flashing Kernel ( from _FLASHING_OUT to device)
13 Flashing modem for GT P7300 ( from _FLASHING_OUT to device)
=============================================================================
:::: Setting ::::
=============================================================================
14 Set current working File ( for PUSH and PULL )
15 Install busybox on device (need root)
16 Set ADB mode (if you on recovery mode)
17 Install apk ( from _MODDING_FILE to device)
18 Install batch apk ( from _BATCH_INSTALL to device)
=============================================================================
:::: Reboot Menu ::::
=============================================================================
19 Reboot System
20 Boot Into Recovery
21 Reboot Bootloader
22 Quit
My previous post
inspiration from congox case
when you got a problem with bootlop and you forget make a nandroid backup
only have file from other ROM with flashable.zip and need to push the file from your computer to device
you have a recovery support with mount /system and mount /data (tested on CWM 5.5.0.4 and overcome CWM 5.1.2.6) and you can enter this menu while bootloop happen..
STEP 1 : MANUAL
Connect your device with computer
From device, Go to recovery - mounts and storage - mount /system and mount /data
From your computer go to adb terminal and type this
Code:
adb shell "ls /data/media/"
If you can see list of file from your device sdcard, so you make adb work for your device ..
Place your zip file on your path, says on C://backup.zip and you want to copy the file to /sdcard/download/ and type this code
Code:
adb push backup.zip /data/media/download/.
wait for copying progress done..
After you done with moving file to device sdcard, check content of your sdcard with this code
Code:
adb shell "ls /data/media/download/"
When you found your file from list, you can flash backup.zip from recovery
STEP 2 : WINDOWS BATCH FILE
I made a simple Batch File for windows (sorry i dont have MAC or LINUX distro) , this file will make a folder with name "emergency" in SDCARD and with your files inside that.
Extract the FLASHER.rar somewhere on your Local folder,example: on your " Desktop" Folder
in folder "FLASHER" you will find runme.bat and folder "files"
Rename your file ((flashable.zip files you want to send through ADB) to "backup.zip" and then Put your file into this path /FLASHER/files/myfiles/ (just replace the existing "backup.zip" with files from yours)
Connect your tab with Computer
Reboot into Recovery Menu from your device
From menu Mounts and Storage choose mount /system and /data
From your Computer go To Folder flasher and klik runme.bat
Follow the instruction on window untill copying process done and device reboot to recovery again (copying process will take a minutes depend on your file size)
Now you can flash a emergency ROM from recovery
Window instruction
Code:
-----------------------------------------------------------------------------
ADB EMERGENCY COPYING TOOL for TAB 8,9
created by SUWANDIAPR
-----------------------------------------------------------------------------
[*] This script will:
(1) COPY YOUR FILE FROM COMPUTER TO SDCARD/emergency/*
(2) CHECKING YOUR CONNECTED DEVICE DIRECTORY
[*] Before u begin:
(1) make sure u have installed adb drivers for ur device
(2) make sure u have installed CWM 5.5.0.4 ON YOUR DEVICE
(3) connect USB cable to PHONE and then connect to PC
(4) Rename your Flashable .zip file with "backup.zip"
and place inside "myfiles" folder on your Computer
(5) from Recovery Menu, Choose "Mounts and storage" then
-mount /system and -mount /data
(6) CONNECT YOUR TAB WITH PC WHILE ON RECOVERY MENU
---------------------------------------------------------------
CONFIRM ALL ABOVE
Sorry for my Bad english, if there is somebody want to correct every words i use , im very welcome and will change with the proper words and sentence..
Hope this help someone..
Nice guide, thanks!!
I needed some help with mounting the system using adb through a batch file.
I use this command
adb -d shell mount -o remount rw /system
But the mounting fails (I have a rooted phone )
pleas help me I know this is off topic
2 possible reasons for this command to fail:
- /default.prop (on the phone) contains the following line: "ro.secure=1". Then you need another boot.img (in fact just a modified ramdisk). look for "unpack-bootimg.pl" or "unpackbootimage" you may find a guide how to do this manually (not too easy). A rooted kernel would also do the trick.
you can check your default prob with this command "adb shell cat /default.prop".
- in some cases mount requires more parameters. try "adb shell mount" and look for the line containing "/system". In front of system is the "device-name". in my case the mount command would look like this:
mount -o remount,rw /block/dev/mmcblk0p24 /system
hope this helps and sorry for answering off-topic questions....
nail16 said:
I needed some help with mounting the system using adb through a batch file.
I use this command
adb -d shell mount -o remount rw /system
But the mounting fails (I have a rooted phone )
pleas help me I know this is off topic
Click to expand...
Click to collapse
you can use busybox and call the binary from the shell
i assume that your device in normal mode ( in home screen)..
here some example..
Code:
su
adb push busybox /tmp/.
adb shell "chmod 755 /tmp/busybox"
adb shell "tmp/busybox mount -o remount,rw /system"
after you type "su" superuser will prompt a request, choose "allow".
glitschi667 said:
2 possible reasons for this command to fail:
- /default.prop (on the phone) contains the following line: "ro.secure=1". Then you need another boot.img (in fact just a modified ramdisk). look for "unpack-bootimg.pl" or "unpackbootimage" you may find a guide how to do this manually (not too easy). A rooted kernel would also do the trick.
you can check your default prob with this command "adb shell cat /default.prop".
- in some cases mount requires more parameters. try "adb shell mount" and look for the line containing "/system". In front of system is the "device-name". in my case the mount command would look like this:
mount -o remount,rw /block/dev/mmcblk0p24 /system
hope this helps and sorry for answering off-topic questions....
Click to expand...
Click to collapse
yes you right glistchi, samsung lock adb root on new firmware on my SG- Note..
And make me flash an older firmware for rooting..
new update
Never mind, got it to work
i want to push same file in data system (/data/data) but my tab is not root. can i??
if from cwm recovery, yes you can.. if from stand by mode (home screen) the answer is no... you need root to make it happen..
i got this error
please help

[SOLVED] Internal storage disappeared after unbricked

For unknown reason, my kindle fire bricked yesterday. After i unbricked it, i found myself unable to install any application.
I really doubt what i can do for my kindle. Please Help me, thank you.
create folder new with rootexploer and in adb write (file u-boot must be in folder tools of kfu:
adb push u-boot.bin /new
adb shell dd if=/new/u-boot.bin of=/dev/block/mmcblk0p2
and after flash other rom.
I had this problem after unbrick kf and only this method can help me.
Good luck
Deat7 said:
create folder new with rootexploer and in adb write (file u-boot must be in folder tools of kfu:
adb push u-boot.bin /new
adb shell dd if=/new/u-boot.bin of=/dev/block/mmcblk0p2
and after flash other rom.
I had this problem after unbrick kf and only this method can help me.
Good luck
Click to expand...
Click to collapse
thanks for your help. i pushed u-boot.bin.
However, "dd: can't open '/new/u-boot.bin': Not a directory" shown after i enter the second command. So, what can i do next?
did you create folder? i had this error first time when folder was not created.
Deat7 said:
did you create folder? i had this error first time when folder was not created.
Click to expand...
Click to collapse
oh...i found the problem is that i only can use adb in recovery mode. But everytime i reboot it, all changes i made will be erased automatically due to the limited storage i think. So, i created the folder and it just being erased.
i know it.
1. Turn on device
2. Create a folder
3. Run adb
4. Write commands.
Must write a lot of text after the second command. So fff installed. If you reboot kf after this, can see yellow triangle.
thank you so much Deat7

Informal methods of obtaining bootloader unlock code for Honor 4C

Preparation:
Should make a reservation at once, getting Root rights to different firmware versions of devices are not always successful. In most cases, verified utility KingRoot , but it only works to Android 5 inclusive. In Android 6.0 this program no longer works at all (If someone else, then it is pure luck). After receiving code it is recommended full firmware upgrade through three buttons or through TWRP , so that there will be no trace of KingRoot on the device.
How to get the unlock code from the device:
1. For HiSilicon processor. In the folder /dev/block/platform/hi_mci.0/by-name/ looking for a file nvme
1.a. For MTK processor. In the folder /dev/block/platform/mtk-msdc.0/by-name/ look for a file not boot
2. Copy it somewhere c help of Total Commander for All Android (recommended file manager). You must first activate the settings "root functions everywhere" ). I've found about 4MB
3. Open it with something like a word I enjoyed of Office the WPS
4.1. For HiSilicon. In WVLOCK section on the tenth page, find the desired unlock code.
It looks like this :
http://imgur.com/a/YNeB1
An alternative method of using a PC:
1. Get root
2. Turn on "Debugging USB" phone
3. Connect your phone to your computer via the USB
4. Open a PC console (cmd.exe) and execute the command
Code:
adb shell su -c "grep -m1 -aoE 'WVLOCK. {14} [0-9] {16} '/ dev / block / mmcblk0p7 | grep -aoE' [0-9] { 16} ' "
5. On the phone immediately after the command to resolve the root-access to ADB shell
6. In the console after the command will display 16-digit unlock code.
Credits and Source: http://4pda.ru/forum/index.php?showtopic=741037&st=260#entry56267299
miststudent2011 said:
How to get the unlock code from the device:
1. For HiSilicon processor. In the folder /dev/block/platform/hi_mci.0/by-name/ looking for a file nvme
1.a. For MTK processor. In the folder /dev/block/platform/mtk-msdc.0/by-name/ look for a file not boot
2. Copy it somewhere c help of Total Commander for All Android (recommended file manager). You must first activate the settings "root functions everywhere" ). I've found about 4MB
3. Open it with something like a word I enjoyed of Office the WPS
4.1. For HiSilicon. In WVLOCK section on the tenth page, find the desired unlock code.
It looks like this
http://imgur.com/a/YNeB1
Click to expand...
Click to collapse
I was copying the NVME file but it was copying as 0KB size. So what I did was "adb shell" from PC to the phone. And read the file by "more /dev/block/platform/hi_mci.0/by-name/nvme" command. Then copied the output to a text document on PC. and searched for WVLOCK and found the 16 digit code.
Then did "adb reboot bootloader". Then "fastboot oem unlock <code>". And my phone got unlocked.
Thanks for the useful post dear.
However the script/command that you shared gave the error of wrong switches for "grep". But I did not have to use it. As above mentioned method worked for me.
rizkhan999 said:
I was copying the NVME file but it was copying as 0KB size. So what I did was "adb shell" from PC to the phone. And read the file by "more /dev/block/platform/hi_mci.0/by-name/nvme" command. Then copied the output to a text document on PC. and searched for WVLOCK and found the 16 digit code.
Then did "adb reboot bootloader". Then "fastboot oem unlock <code>". And my phone got unlocked.
Thanks for the useful post dear.
However the script/command that you shared gave the error of wrong switches for "grep". But I did not have to use it. As above mentioned method worked for me.
Click to expand...
Click to collapse
And this informal method is extremely useful also because Huawei has officially ended the bootloader unlock code generation services from 25th July 2018 and onwards as received in an email from them in reply to my email to them on [email protected].
rizkhan999 said:
I was copying the NVME file but it was copying as 0KB size. So what I did was "adb shell" from PC to the phone. And read the file by "more /dev/block/platform/hi_mci.0/by-name/nvme" command. Then copied the output to a text document on PC. and searched for WVLOCK and found the 16 digit code.
Then did "adb reboot bootloader". Then "fastboot oem unlock <code>". And my phone got unlocked.
Thanks for the useful post dear.
However the script/command that you shared gave the error of wrong switches for "grep". But I did not have to use it. As above mentioned method worked for me.
Click to expand...
Click to collapse
Which android version did you try and what is your device model?
Was your device rooted , if so how did you root it ?
On what operating system did you try these method ?
miststudent2011 said:
Which android version did you try and what is your device model?
Was your device rooted , if so how did you root it ?
On what operating system did you try these method ?
Click to expand...
Click to collapse
I have android 4.4.2 installed.
Device Model is Honor 4c (CHM-U01) HiSilicon.
I rooted it using King Root APK.
Tried on Windows 10.
Actually my phone's /userdata partition (mmcblk0p40) has got corrupted. I guess due to falling. It must be a hardware issue. But i thought of checking the partition with "e2fsck /dev/block/platform/hi_mci.0/by-name/userdata" command and formatting it with "mke2fs -c /dev/block/mmcblk0p40" command. For that I required root. After rooting, the mentioned commands showed filesystem as okay and formatted it as well but userdata partition remains unfixed.
I am able to copy stuff in that partition but all of it washes away on every boot. And userdata partition error keeps on showing up.
I successfully unlocked the bootloader through your useful informal method in order to install TWRP or CWM recovery, and do a full wipe. However bootloader also gets locked again on boot. And stock recovery remains as it.
Upgrading through stock recovery using update.zip file in ext sdcard also gives error that it is unable to mount partition. Don't know whether system or userdata.
Anyways. So this is the whole story. I guess it is a bad hardware error. And cannot be solved through such software tricks.
Thanks for showing your concern.
C:\Users\User>adb devices
List of devices attached
4C2YVP158F***** device
C:\Users\User>adb shell
[email protected]:/ $ su -c "grep -m1 -aoE 'WVLOCK. {14} [0-9] {16} '/ dev / block /
mmcblk0p7 | grep -aoE' [0-9] { 16} ' "
{14} [0-9] {16} '/ dev / block / mmcblk0p7 | grep -aoE' [0-9] { 16} ' " <
[-] Execute command failed
[email protected]:/ $
This is what it says. Please help.
Ja-mesXD said:
C:\Users\User>adb devices
List of devices attached
4C2YVP158F***** device
C:\Users\User>adb shell
[email protected]:/ $ su -c "grep -m1 -aoE 'WVLOCK. {14} [0-9] {16} '/ dev / block /
mmcblk0p7 | grep -aoE' [0-9] { 16} ' "
{14} [0-9] {16} '/ dev / block / mmcblk0p7 | grep -aoE' [0-9] { 16} ' " <
[-] Execute command failed
[email protected]:/ $
This is what it says. Please help.
Click to expand...
Click to collapse
Is your device rooted ?
Try other command.
miststudent2011 said:
Is your device rooted ?
Try other command.
Click to expand...
Click to collapse
It is. I used KingRoot. Through PC since I can't use my phone except for the Setting that I can access through the Notification Bar.
What commands should I try? Can you help me with that?
Ja-mesXD said:
It is. I used KingRoot. Through PC since I can't use my phone except for the Setting that I can access through the Notification Bar.
What commands should I try? Can you help me with that?
Click to expand...
Click to collapse
Can you give me the exact details of what happened to your phone and what steps did you try ?
miststudent2011 said:
Can you give me the exact details of what happened to your phone and what steps did you try ?
Click to expand...
Click to collapse
Phone Condition:
Stuck at Emergency Data Message wherein it says that the partition can no longer be used. I've done Factory Reset and Normal Upgrade but it didn't work. I actually wanted to flash it back to Stock ROM or upgrade it to higher version (it's Huawei Honor 4C CHM - U01, Android 4.4.2, probably KitKat ). The problem is, I can't do so, because Huawei no longer issues the Unlock Code to its users. That's when I came across to this post. I downloaded adb and the drivers for this phone ( I even installed HiSuite). I rooted my phone with KingRoot through pc since my phone can't do anything. I tried that command adb shell su -c "grep -m1 -aoE 'WVLOCK. {14} [0-9] {16} '/ dev / block / mmcblk0p7 | grep -aoE' [0-9] { 16} ' " but it says Execute command failed.
What should I do?
Ja-mesXD said:
Phone Condition:
Stuck at Emergency Data Message wherein it says that the partition can no longer be used. I've done Factory Reset and Normal Upgrade but it didn't work. I actually wanted to flash it back to Stock ROM or upgrade it to higher version (it's Huawei Honor 4C CHM - U01, Android 4.4.2, probably KitKat ). The problem is, I can't do so, because Huawei no longer issues the Unlock Code to its users. That's when I came across to this post. I downloaded adb and the drivers for this phone ( I even installed HiSuite). I rooted my phone with KingRoot through pc since my phone can't do anything. I tried that command adb shell su -c "grep -m1 -aoE 'WVLOCK. {14} [0-9] {16} '/ dev / block / mmcblk0p7 | grep -aoE' [0-9] { 16} ' " but it says Execute command failed.
What should I do?
Click to expand...
Click to collapse
Try this
So what you should do is "adb shell" from PC to the phone. And read the file by "more /dev/block/platform/hi_mci.0/by-name/nvme" command. Then copy the output to a text document on PC. and search for WVLOCK and found the 16 digit code.
Then do "adb reboot bootloader". Then "fastboot oem unlock <code>". And phone gets unlocked.
miststudent2011 said:
Try this
So what you should do is "adb shell" from PC to the phone. And read the file by "more /dev/block/platform/hi_mci.0/by-name/nvme" command. Then copy the output to a text document on PC. and search for WVLOCK and found the 16 digit code.
Then do "adb reboot bootloader". Then "fastboot oem unlock <code>". And phone gets unlocked.
Click to expand...
Click to collapse
Not found.
There's something strange about my phone, though. I just notice it. The apps seems to get uninstalled or removed every time my phone reboots. I
Ja-mesXD said:
Not found.
There's something strange about my phone, though. I just notice it. The apps seems to get uninstalled or removed every time my phone reboots. I
Click to expand...
Click to collapse
>.< Sir?
Ja-mesXD said:
>.< Sir?
Click to expand...
Click to collapse
I think its data partition is corrupted, I have seen a few similar cases like that. Have you installed any malware apps earlier ?
miststudent2011 said:
I think its data partition is corrupted, I have seen a few similar cases like that. Have you installed any malware apps earlier ?
Click to expand...
Click to collapse
I remember It says "The data partition can no longer be used." I haven't installed any that I can remember of. Can it be fixed? What should I do ? Please assist me, sir. :crying:
Ja-mesXD said:
I remember It says "The data partition can no longer be used." I haven't installed any that I can remember of. Can it be fixed? What should I do ? Please assist me, sir. :crying:
Click to expand...
Click to collapse
Atleast if you had unlock code we could try some thing but you dont even have it, so out of luck try the below commands once
> adb devices -->checks whether device is being detected by PC.
If it cant try by installing drivers or hisuite for pc.
it its detected then install king root and try the command from above post.
If it works then we can try other method.
how can I do this without root?
---------- Post added at 10:06 AM ---------- Previous post was at 10:05 AM ----------
miststudent2011 said:
Atleast if you had unlock code we could try some thing but you dont even have it, so out of luck try the below commands once
> adb devices -->checks whether device is being detected by PC.
If it cant try by installing drivers or hisuite for pc.
it its detected then install king root and try the command from above post.
If it works then we can try other method.
Click to expand...
Click to collapse
how can I do this without root?
I think I may found another way to unlock 4C (maybe just CHM-TL00H). Before seeing this thread, I downgraded my 4C to Android 4.x and installed 360root, then amazingly my 4C unlocked. I don't know what 360root did to my phone, maybe someone can decompile it or sniff usb port to find out. Now I can install LineageOS on it.
GN0 said:
I think I may found another way to unlock 4C (maybe just CHM-TL00H). Before seeing this thread, I downgraded my 4C to Android 4.x and installed 360root, then amazingly my 4C unlocked. I don't know what 360root did to my phone, maybe someone can decompile it or sniff usb port to find out. Now I can install LineageOS on it.
Click to expand...
Click to collapse
CHM-TL00H has emui 4.0 to upgrade??
I got my nvme.img, how can I get the unlock code from it? I can extract it.

[REQ][A5 2015][SM-A500FU]Unbrick Image

Hi
I downgrade my Galaxy A5 2015 (SM A500FU) to 4.0.4 from 6.01, and now is hard bricked
Does not power on, can't enter to download mode, totally dead.
And now, I need a little help, I require some files from a working device (this is not unique files) but require to boot up the device.
I need a debrick image (First I try to unbrick with sdcard, and if this not working, I open the device and direct flash the emmc)
Requirements:
* rooted device
* 6.* firmware
* adb or terminal emulator
What I need?
Execute this command with adb, or terminal emulator, and upload the image to any filesharing site, or google drive, and send the link to me in private message.
dd if=/dev/block/mmcblk0 of=/sdcard/debrick.img bs=1M count=200
If I found a solution, how to unbrick this device in home, I share in this forum.
Thanks!
stars2 said:
Hi
I downgrade my Galaxy A5 2015 (SM A500FU) to 4.0.4 from 6.01, and now is hard bricked
Does not power on, can't enter to download mode, totally dead.
And now, I need a little help, I require some files from a working device (this is not unique files) but require to boot up the device.
I need a debrick image (First I try to unbrick with sdcard, and if this not working, I open the device and direct flash the emmc)
Requirements:
* rooted device
* 6.* firmware
* adb or terminal emulator
What I need?
Execute this command with adb, or terminal emulator, and upload the image to any filesharing site, or google drive, and send the link to me in private message.
dd if=/dev/block/mmcblk0 of=/sdcard/debrick.img bs=1M count=200
If I found a solution, how to unbrick this device in home, I share in this forum.
Thanks!
Click to expand...
Click to collapse
Did you manage to boot the unbrick image from SD card? I have the same problem, but as cannot communicate with the phone with adb, the card option seems to be the last one before sending the phone for some one with JTAG.
Perceive said:
Having the same problem and have access to a working phone
Click to expand...
Click to collapse

Categories

Resources