Question little help - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hello fellas
i just unlocked my poco f3 and i have a habit with xiaomi devices to take backup of my EFS and persist partitions
i already done with persist partition but i cannot do for efs using this command >>
dd if=/dev/block/mmcblk0p10 of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/mmcblk0p11 of=/sdcard/modemst2.bin bs=512
always end no such a directory
advice needed
thanks in advance

I haven't heard anyone talk of backing up the EFS partition. Are you sure it still exists?

Robert314 said:
I haven't heard anyone talk of backing up the EFS partition. Are you sure it still exists?
Click to expand...
Click to collapse
AS I Know EFS partition is important because it has the imei so good to back it up
i thought it can be back it up via termux but i cannot so i did via twrp and save the img in my PC in case something went wrong
be safe better than regretting

Antidote03 said:
AS I Know EFS partition is important because it has the imei so good to back it up
i thought it can be back it up via termux but i cannot so i did via twrp and save the img in my PC in case something went wrong
be safe better than regretting
Click to expand...
Click to collapse
Cheers dude, backing up EFS is something i always do too, you just reminded me on my poco!!

Antidote03 said:
Hello fellas
i just unlocked my poco f3 and i have a habit with xiaomi devices to take backup of my EFS and persist partitions
i already done with persist partition but i cannot do for efs using this command >>
dd if=/dev/block/mmcblk0p10 of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/mmcblk0p11 of=/sdcard/modemst2.bin bs=512
always end no such a directory
advice needed
thanks in advance
Click to expand...
Click to collapse
Antidote03 said:
AS I Know EFS partition is important because it has the imei so good to back it up
i thought it can be back it up via termux but i cannot so i did via twrp and save the img in my PC in case something went wrong
be safe better than regretting
Click to expand...
Click to collapse
Hi,
I'm also used to backup EFS and persist partitions, via terminal emulator. I got my F3 and am waiting to unlock BL. But I don't know much about these A/B partitions...
You said you already backed up your persist partition, but may I ask how exactly ?
=> after grant su rights : dd if=/dev/block/[what-name ??]/persist of=/sdcard/persist.img
So could you please tell me what I dont know about this device ([what-name?]) ?
And about the EFS backup, what's the command prompt ? Usually, I did so :
=> dd if=/dev/block/[sdf1 ??] of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/[sdf2 ??] of=/sdcard/modemst2.bin bs=512
But it seems it doesn't work... So you say you did it trough recovery, how please, only backup EFS partition ? Are the actual TWRP working to restore it, not sure someone already tried ??
Thanks very much !

néonaloj said:
Hi,
I'm also used to backup EFS and persist partitions, via terminal emulator. I got my F3 and am waiting to unlock BL. But I don't know much about these A/B partitions...
You said you already backed up your persist partition, but may I ask how exactly ?
=> after grant su rights : dd if=/dev/block/[what-name ??]/persist of=/sdcard/persist.img
So could you please tell me what I dont know about this device ([what-name?]) ?
And about the EFS backup, what's the command prompt ? Usually, I did so :
=> dd if=/dev/block/[sdf1 ??] of=/sdcard/modemst1.bin bs=512
dd if=/dev/block/[sdf2 ??] of=/sdcard/modemst2.bin bs=512
But it seems it doesn't work... So you say you did it trough recovery, how please, only backup EFS partition ? Are the actual TWRP working to restore it, not sure someone already tried ??
Thanks very much !
Click to expand...
Click to collapse
i used these
Backup E.F.S. and modem partitions for Android devices
How to backup, restore E.F.S. and modem? **This guide should work for any android device that manufactured in recent years.** E.F.S. is a crucial partition for Android devices as well as persist partition, which it stores all the important data for I.M.E.I. and I.M.S.I. numbers, W.I.F.I. and...
telegra.ph
https://www . youtube . com/watch?v=NQSAeZO7DaE&ab_channel=munchy
https://www . youtube . com/watch?v=rfAry7YpuCc&ab_channel=munchy
Do not forget remove the space in youtube links

Don't think youtube video's are banned from XDA, here's the links...
First one
And here for the second video from above (post 6)

Hi
Thanks to both of you @Antidote03 and @reg66 !!
I do know this guy's videos, wich are often great indeed.
But.. I like to know what I'm doing, so downloading his script is not my goal.. What I'd like to know is what are the exact command lines to get these backups on my side, using fastboot commands.
As I mentioned I do have what I think is some parts of the commands, but it lacks some info. To show them again :
- persist backup :
"dd if=/dev/block/[what-name ??]/persist of=/sdcard/persist.img"
but what should I replace as [what-name?] ??
- EFS backup :
"dd if=/dev/block/[sdf1 ??] of=/sdcard/modemst1.bin bs=512"
"dd if=/dev/block/[sdf2 ??] of=/sdcard/modemst2.bin bs=512"
In this case, the video shows more to be written that the part I'm wondering what I'd need for this device... (between .../block/..??../[sdf1-2 ??]/...)
Many thanks to all who could help me out !!

Related

T-Mobile stock firmware!

Yes, just for you!
After 2 weeks of work, I have recreated an Odin package of the stock T-Mobile firmware.
Flash it in Odin from the PDA button, no .pit file, nothing else.
It contains no bootloader because I don't want anyone to brick their device with a bad flashing.
I would like to thank everyone who has helped me, but especially jtc442 and Deodexed.
http://files.deodexed.com/ModADroid-Galaxy-Tablet/T-Mobile/T-Mobile_Stock.zip
Stock T-Mobile modem.bin: View attachment modem-tmo-stock.zip
Congatulations!
A lot of people will appreciate your work, good job!
Thank you
Omg thank you gonna try it out now
Sent from my GT-P1000 using XDA App
Thank you for the hard work Rotohammer!
thanksss : )
i ll keep it as backup plan.
i am using german T mobile firmware now ( it allows phone calls : ) )
Confirmed works great thx roto now time to return it to t-mobile =) and get it from amazon
jay_jay_n said:
Confirmed works great thx roto now time to return it to t-mobile =) and get it from amazon
Click to expand...
Click to collapse
Great, uninstall z4root from the apps too, I didn't try to take that out of the rom since it uninstalls easy enough. Obviously it needed to be installed while we captured the dumps.
Does it allow calls + 3g?
adamq3b85 said:
Does it allow calls + 3g?
Click to expand...
Click to collapse
Nope, its purpose is to revert to the original non-phone firmware with 3G internet only.
rotohammer said:
Yes, just for you!
After 2 weeks of work, I have recreated an Odin package of the stock T-Mobile firmware.
Flash it in Odin from the PDA button, no .pit file, nothing else.
It contains no bootloader because I don't want anyone to brick their device with a bad flashing.
I would like to thank everyone who has helped me, but especially jtc442 and Deodexed.
http://files.deodexed.com/ModADroid-Galaxy-Tablet/T-Mobile/T-Mobile_Stock.zip
Click to expand...
Click to collapse
think you could do this for Sprint firmware?
phonetec said:
think you could do this for Sprint firmware?
Click to expand...
Click to collapse
I could if someone was willing to do the dumps for me.
If you can explain how to do the 'dumps' for our Sprint SGT and send them to you please explain so I can help. When doing this is any of my information transfered to you?
Can you please tell me what this firmware can do that the stock firmware does not?
vkuber said:
If you can explain how to do the 'dumps' for our Sprint SGT and send them to you please explain so I can help. When doing this is any of my information transfered to you?
Click to expand...
Click to collapse
Its best to do this after a factory reset from recovery (Up & power on), so theres no personal info in any of the dumps. the efs.rfs file contains you imei info, you want to keep that to yourself.
Dumping all your firmware:
cd android-sdk/tools (use your location)
adb shell
su
dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096
dd if=/dev/block/bml2 of=/sdcard/pit.pit bs=4096
dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096
dd if=/dev/block/bml4 of=/sdcard/Sbl.bin bs=4096
dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096
dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096
dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096
dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096
dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096
dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096
exit
exit
adb pull /sdcard/param.lfs .
adb pull /sdcard/zImage .
adb pull /sdcard/factoryfs.rfs .
adb pull /sdcard/dbdata.rfs .
adb pull /sdcard/cache.rfs .
adb pull /sdcard/modem.bin .
adb pull /sdcard/efs.rfs .
adb pull /sdcard/boot.bin .
adb pull /sdcard/Sbl.bin .
adb pull /sdcard/pit.pit .
At this point you computer will have all the files.
rotohammer said:
Its best to do this after a factory reset from recovery (Up & power on), so theres no personal info in any of the dumps. the efs.rfs file contains you imei info, you want to keep that to yourself.
Dumping all your firmware:
cd android-sdk/tools (use your location)
adb shell
su
dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096
dd if=/dev/block/bml2 of=/sdcard/pit.pit bs=4096
dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096
dd if=/dev/block/bml4 of=/sdcard/Sbl.bin bs=4096
dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096
dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096
dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096
dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096
dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096
dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096
exit
exit
adb pull /sdcard/param.lfs .
adb pull /sdcard/zImage .
adb pull /sdcard/factoryfs.rfs .
adb pull /sdcard/dbdata.rfs .
adb pull /sdcard/cache.rfs .
adb pull /sdcard/modem.bin .
adb pull /sdcard/efs.rfs .
adb pull /sdcard/boot.bin .
adb pull /sdcard/Sbl.bin .
adb pull /sdcard/pit.pit .
At this point you computer will have all the files.
Click to expand...
Click to collapse
Hi Rotohammer:
Congratulations on creating the stock rom for T-mobile.
If I pull the files from a Tab for Bell (provider in Canada), would you please be able to create a stock ROM for this?
Thanks.
T33H00 said:
Can you please tell me what this firmware can do that the stock firmware does not?
Click to expand...
Click to collapse
Absolutely nothing! It is IS the stock firmware.
mv3900 said:
Hi Rotohammer:
Congratulations on creating the stock rom for T-mobile.
If I pull the files from a Tab for Bell (provider in Canada), would you please be able to create a stock ROM for this?
Thanks.
Click to expand...
Click to collapse
Sure, no problem.
Does this mean it's now possible to extract the radio firmware for those of us who used the Russian/European method to get to JK5? I'm not using mine for calls at the moment, it would be nice to have both radio files on hand to flash when needed until we get a 3G+Phone type driver.
martin0641 said:
Does this mean it's now possible to extract the radio firmware for those of us who used the Russian/European method to get to JK5? I'm not using mine for calls at the moment, it would be nice to have both radio files on hand to flash when needed until we get a 3G+Phone type driver.
Click to expand...
Click to collapse
Nope, you could always do that. Just flash back the stock modem.bin (I'm assuming you're on T-Mobile). Modem (radio) files were the one thing that was easy to swap around.
rotohammer said:
Sure, no problem.
Click to expand...
Click to collapse
Hi Roto.
I've pulled the files for Bell. How do I get them to you?
Thanks.

SM-T320 Hard Brick Recovery

Could someone run
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/unbrick.img bs=512 count=524288
and upload it? Flashing unbrick in a 'raw' fashion will allow you to hard brick most Qualcomm devices. Unfortunately I lost my backup and I can't boot my device. This file will allow me to recover. Thanks!
I can
Will it safe to run and guide me how to run it ??? Dont know where it goes............ I also have my stock recovery file saved by flashify https://drive.google.com/file/d/0B3i0YJU831QXTHctYWphX2Y0aE0/view?usp=sharing
vincowoo said:
Will it safe to run and guide me how to run it ??? Dont know where it goes............ I also have my stock recovery file saved by flashify https://drive.google.com/file/d/0B3i0YJU831QXTHctYWphX2Y0aE0/view?usp=sharing
Click to expand...
Click to collapse
I messed up, here's the correct command
Code:
dd if=/dev/block/mmcblk0 of=/sdcard/unbrick.img bs=512 count=524288
Thank you very much!
Still not found .... run the command without error ... dont know where required file goes ... checked the root of both external and internal sd...
vincowoo said:
Still not found .... run the command without error ... dont know where required file goes ... checked the root of both external and internal sd...
Click to expand...
Click to collapse
Make sure you're running as root, from adb shell or terminal emulator. Try this one instead
Code:
dd if=/dev/block/mmcblk0 of=/storage/extSdCard/unbrick.img bs=512 count=31250
That command should have created 'unbrick.img' on your external SD card. I am extremely thankful for you doing this. My device is bricked and sitting in QHSUSB_BULK mode. You may want to save this file in case you ever need it! Thanks again, it is very much appreciated!
It is my pleasure. this forum helped me many times m trying to return something.That command completed successfully i am uploading it ?
https://docs.google.com/file/d/0B3i0YJU831QXUmViWGMyMGE1eHM/edit?usp=docslist_api

[Help] G3 D855 Wifi Mac Address change: why?

I had an Lg G3 D855 32Gb with V10a.
I applied root with purpledrake and I installed TWRP recovery.
By a mistake I made an OTA update that cause bootloop.
After wipe cache and use this command:
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc
my LG G3 restarts with V10a firmware, but with different WiFi Mac Address.
1) I try to restore my backup made with TWRP;
2) I restore only modem (from backup I made with this command with adb shell:
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img)
using adb shell;
3) I try to restore that two img using terminal command shell in TWRP;
4) I try to restore my LG G3 to stock using LG PC Suite restore
but WiFI Mac Address remain different from the original one!
Can you help me to restore original Mac Address?
Thanks!
Enter download mode and flash stock firmware?
Isn't it the same with LGSuite "restore after bad update"???
If not, where can I find the correct firmware for my phone?
Can you explain me?
[Guide] LG G3 Stock Firmware (Go Back to Stock)
aparty said:
I had an Lg G3 D855 32Gb with V10a.
....
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc
...
Thanks!
Click to expand...
Click to collapse
You destroyed your misc partition, which held your wifi and bt mac's + region info. Which guide did you follow? Who's stupid enough to offer people to wipe phone-unique partition?..
No, it is not recoverable unless you have a backup (or access to LG's service tools).
You can ask someone to send their misc to you, then edit region/imei/mac's information via hex editor.
YaDr said:
You destroyed your misc partition, which held your wifi and bt mac's + region info. Which guide did you follow? Who's stupid enough to offer people to wipe phone-unique partition?..
No, it is not recoverable unless you have a backup (or access to LG's service tools).
You can ask someone to send their misc to you, then edit region/imei/mac's information via hex editor.
Click to expand...
Click to collapse
I made a complete backup with TWRP when I installed it.
Can I use that backup to recover that info, now?
If so, can you explain me how?
Thanks!
aparty said:
I made a complete backup with TWRP when I installed it.
Can I use that backup to recover that info, now?
If so, can you explain me how?
Thanks!
Click to expand...
Click to collapse
No, you can't. TWRP backup doesn't contain misc patition.
YaDr said:
No, you can't. TWRP backup doesn't contain misc patition.
Click to expand...
Click to collapse
No way to solve?
Can you explain me better how to edit a different partition?
Imei didn't change. Only Wifi Mac Address.
YaDr said:
No, you can't. TWRP backup doesn't contain misc patition.
Click to expand...
Click to collapse
can you share your misc partition? I really want to fix my generic mac address (00:90:4c:c5:12:38) but I have no idea which area to edit since i cant find the address in hex editor.
right now I only have temporary fix by changing my mac address from /data/misc/wifi but it wouldn't stick after reboot. If its too much, maybe just point me where to edit the partition? thanks!

How to backup persist partition?

I searched everywhere but I couldn't find nowhere how to backup efs or persist partition, I just read the thread for twrp flashable stock oreo for moto g5 cedric and it says it is useful to backup them to save the phone in case of IMEI or VoLTE or 4G problems after the zip install but TWRP doesn't seems to backup them and online I didn't found guides.
EDIT:
To help people with the same problem I'll write here.
Thanks to TheFixItMan I've found the most easy solution which is to flash the TWRP 3.2.3-2 arm64 that has backup option for EFS and Persist, I'll quote here the answer with the link.
Use terminal commands to back up the partition - dd copy partition name to location
Or
Try this unofficial twrp and look at backup options
https://drive.google.com/open?id=1ML...yBHyg81cHdW1cB
Click to expand...
Click to collapse
Use terminal commands to back up the partition - dd copy partition name to location
Or
Try this unofficial twrp and look at backup options
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
TheFixItMan said:
Use terminal commands to back up the partition - dd copy partition name to location
Or
Try this unofficial twrp and look at backup options
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Click to expand...
Click to collapse
So the command I should use is:
Code:
dd copy persist to <location dir>
?
Should I use this on twrp Advanced > Terminal?
Are unofficial twrp safe?
OnionMaster03 said:
So the command I should use is:
Code:
dd copy persist to <location dir>
?
Should I use this on twrp Advanced > Terminal?
Are unofficial twrp safe?
Click to expand...
Click to collapse
The command should look something like this - not tried it and don't own this device
Code:
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img
Yes enter it in twrp terminal - once done it will output persist.img to sdcard
To copy back just reverse the if and of parts of the command
Unofficial twrps are perfectly safe - all official builds that aren't build by twrp start off as unofficial and are just submitted to their repo to become official
You can always flash what ever recovery you want after
The one I gave I think has the backup option for persist - if not just try the terminal command
OP, did you try the command? I'd like to backup mine as well
same question here! any updates?
EDIT: Managed to do it myself. I ended up pulling up the image through adb.
For all of you who are still wondering all I did is start adb and type the following:
adb pull /persist C:\platform-tools/persist.img
Click to expand...
Click to collapse
Substitute C:\platform-tools with your local folder.
You can also use the code provided in the thread, but If you wanna retrieve the file, you should copy it to /external_sd instead of microsd (also you can do it from the adb shell instead of the twrp terminal, which is more convenient).
persist backup and restore - 9008 mode
maybe this tool is useful too...
works in 9008 mode and has some firehose-loaders inside
moto g5 has qualcomm 8937 chipset, so should work...
https://mega.nz/#!dIcE0ApR!DEZIBxdxCqVEVRZRKevRr_Z_EXMF1I1PCJb-k7wvyGc
BR
1rdc said:
OP, did you try the command? I'd like to backup mine as well
Click to expand...
Click to collapse
I haven't tried this yet, I'm going to do in the next hours

Question EFS Backup for F926B

Many guides recommend to backup the EFS partition before installing any ROMs "just in case".
Unfortunately, I cannot find any up-to-date manual on how to do so the proper way in case of the Fold 3.
Guides I do find either suggest to copy some images from a specific /dev/block with dd, which seems to be e outdated as non-existant on the Fold 3 or are incomplete by recommending to only copy the content of the folder /efs with a root explorer or mention EFS Professional which at least for me fails with some obscure array/dimension/whatnow error message just when attemping to even only get the partitions.
In the Dr. Ketan - thread, the developer suggested to use TWRP but here, is also unclear whether being suitable now or not, also in terms of half the stuff being encrypted nowadays. Uargh.
So how do all of you back this up if it is common sense that it is oh so important?
If you are rooted, the dd method can be done quite simple either on a terminal emulator or with adb shell.
If using terminal:
su
then
dd if=/dev/block/by-name/efs of=/sdcard/efs_backup.img
If using adb shell:
adb shell
then
su
then
dd if=/dev/block/by-name/efs of=/sdcard/efs_backup.img
Or you can just back it up with TWRP, it should give you the option to do it.
Thanks a lot. I used dd in Termux in the root context and the resulting file size is 20 MB. Hope it is what I need as that EFS backup thing somehow has something of "hopefully, one never needs it".
By the way, the attempt to use TWRP for that fails as it only recognizes the internal storage which is shown as 0MB, probably due to the encryption.

Categories

Resources