I am interested in backing up everything on my phone.
This includes:
ROM (OS)
Kernel
Baseband/Radio Firmware
recovery
bootloader (hboot) first and second stage
and radio setting such as, MDN, MSID, MIED, and IMSI
This is not everything, but this is all the most important stuff that I can think off.
Doing a "cat proc/emmc" in the terminal emulator shows:
dev: size erasesize name
mmcblk0p17: 00040000 00000200 "misc"
mmcblk0p21: 0087f400 00000200 "recovery"
mmcblk0p22: 00400000 00000200 "boot"
mmcblk0p26: 1f7bf600 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p28: 09a7fa00 00000200 "cache"
mmcblk0p27: 1bbffe00 00000200 "userdata"
mmcblk0p31: 01400200 00000200 "devlog"
mmcblk0p32: 00040000 00000200 "pdata"
mmcblk0p25: 00c00200 00000200 "wimax"
mmcblk0p30: 007ffa00 00000200 "udata_wimax"
Thats a lot of stuff to backup! And that doesn't show everything on the emmc I don't think.
Is there a way to back up the emmc in one go?
Now backing up the emmc takes care of most of the stuff, but does the emmc contain
the bootloader? or the baseband/radio firmware? Or the radio settings?
I am interested in having a 100% backup of all the memory on my phone. Can this be done?
Hey guys I just need someone that has a bit of knowledge with ADB to help me out by posting some info its real simple.
all I need you to do is run this in ADB as root
Code:
# cat /proc/emmc
so if you don't know ADB this is what you would do
Code:
cd/sdk/platform-tools (or wherever you have adb)
adb devices
adb shell
you should then see a # sign if you're successfully in as root
from here all you need to do is type this in
Code:
cat /proc/emmc
and you should see something along the lines of...
Code:
cat /proc/emmc
dev: size erasesize name
mmcblk0p23: 000ffa00 00000200 "misc"
mmcblk0p22: 00fffe00 00000200 "recovery"
mmcblk0p21: 01000000 00000200 "boot"
mmcblk0p33: 67fffc00 00000200 "system"
mmcblk0p30: 00140200 00000200 "local"
mmcblk0p34: 0ffffe00 00000200 "cache"
mmcblk0p35: 97fffe00 00000200 "userdata"
mmcblk0p26: 01400000 00000200 "devlog"
mmcblk0p28: 00040000 00000200 "pdata"
mmcblk0p36: 27be00000 00000200 "fat"
mmcblk0p31: 00010000 00000200 "extra"
mmcblk0p17: 02d00000 00000200 "radio"
mmcblk0p18: 00a00000 00000200 "adsp"
mmcblk0p16: 00100000 00000200 "dsps"
mmcblk0p19: 00500000 00000200 "wcnss"
mmcblk0p20: 007ffa00 00000200 "radio_config"
mmcblk0p24: 00400000 00000200 "modem_st1"
mmcblk0p25: 00400000 00000200 "modem_st2"
if someone with a Euro model could please post this for me so I can compare and make sure that your System partition is also at blk0p33 I would appreciate it... it would also help avoid bricked devices lol.
Here you go.. thx mate
http://s1.directupload.net/file/d/2853/ber29xkw_png.htm
shiftedx said:
if someone with a Euro model could please post this for me so I can compare and make sure that your System partition is also at blk0p33 I would appreciate it... it would also help avoid bricked devices lol.
Click to expand...
Click to collapse
i can confirm that. exact same partitioning on my device as well!
cheers
I'm working on the ROM as well
Thanks guys, if anyone would like to test for me pm me your gtalk and I'll send you a link should have a flashable ready for testing tomorrow.
Sent from my HTC VIE_U using XDA
ive been trying to find a partition table and i cant :/ so heres the Q's
1) anyone know what mmcblk the splash screen is on?
2) is it in the typical rgb565 format?
3) if i do the dd command to write the spash when all above checks as answered and agreeable..
Code:
dd if=/sdcard/splash.img of=/dev/block/mmcblk0p???
will i turn my one s into an expensive paperweight?
cat /proc/emmc yields me no help
Code:
[email protected]:/ # cat /proc/emmc
cat /proc/emmc
dev: size erasesize name
mmcblk0p23: 000ffa00 00000200 "misc"
mmcblk0p22: 00fffe00 00000200 "recovery"
mmcblk0p21: 01000000 00000200 "boot"
mmcblk0p33: 67fffc00 00000200 "system"
mmcblk0p30: 00140200 00000200 "local"
mmcblk0p34: 0ffffe00 00000200 "cache"
mmcblk0p35: 97fffe00 00000200 "userdata"
mmcblk0p26: 01400000 00000200 "devlog"
mmcblk0p28: 00040000 00000200 "pdata"
mmcblk0p36: 27be00000 00000200 "fat"
mmcblk0p31: 00010000 00000200 "extra"
mmcblk0p17: 02d00000 00000200 "radio"
mmcblk0p18: 00a00000 00000200 "adsp"
mmcblk0p16: 00100000 00000200 "dsps"
mmcblk0p19: 00500000 00000200 "wcnss"
mmcblk0p20: 007ffa00 00000200 "radio_config"
mmcblk0p24: 00400000 00000200 "modem_st1"
mmcblk0p25: 00400000 00000200 "modem_st2"
See here
http://forum.xda-developers.com/showthread.php?t=1777223
-Jobo
EtA: By the way, some other stuff that's not in /proc/emmc :
mmcblk0p1 - sbl1-??.img
mmcblk0p2 - sbl2.img
mmcblk0p9 - sbl3.img
mmcblk0p10 - rpm.img
mmcblk0p11 - tz.img
mmcblk0p12 - hboot.img
mmcblk0p14 - splash.nb0
I thought maybe someone will need this for future development:
Code:
mmcblk0p22: 000ffa00 00000200 "misc"
mmcblk0p21: 00fffe00 00000200 "recovery"
mmcblk0p20: 01000000 00000200 "boot"
mmcblk0p33: 54fffc00 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p34: 0dfffe00 00000200 "cache"
mmcblk0p35: 49fffe00 00000200 "userdata"
mmcblk0p25: 01400000 00000200 "devlog"
mmcblk0p27: 00040000 00000200 "pdata"
mmcblk0p36: 1097fe000 00000200 "fat"
mmcblk0p30: 00010000 00000200 "extra"
mmcblk0p16: 02d00000 00000200 "radio"
mmcblk0p17: 00a00000 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p19: 007ffa00 00000200 "radio_config"
mmcblk0p23: 00400000 00000200 "modem_st1"
mmcblk0p24: 00400000 00000200 "modem_st2"
mmcblk0p31: 00100000 00000200 "cdma_record"
HTC One SV; k2_u; european non-LTE
K2_cl
Code:
mmcblk0p22: 000ffa00 00000200 "misc"
mmcblk0p21: 00fffe00 00000200 "recovery"
mmcblk0p20: 01000000 00000200 "boot"
mmcblk0p35: 54fffc00 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p36: 0dfffe00 00000200 "cache"
mmcblk0p37: 49fffe00 00000200 "userdata"
mmcblk0p25: 01400000 00000200 "devlog"
mmcblk0p27: 00040000 00000200 "pdata"
mmcblk0p38: 1097fe000 00000200 "fat"
mmcblk0p30: 00010000 00000200 "extra"
mmcblk0p32: 01900000 00000200 "carrier"
mmcblk0p16: 02d00000 00000200 "radio"
mmcblk0p17: 00a00000 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p19: 007ffa00 00000200 "radio_config"
mmcblk0p23: 00400000 00000200 "modem_st1"
mmcblk0p24: 00400000 00000200 "modem_st2"
mmcblk0p31: 00040000 00000200 "skylink"
mmcblk0p33: 00100000 00000200 "cdma_record"
mmcblk0p34: 04729a00 00000200 "reserve"
HTC One SV Boost Mobile
Which partition holds the hboot? I dd the boot and radio then adb pulled them to my laptop but clearly saw those images were way too large. Feeling pretty frustrated right now.
My task? Getting a copy of the hboot without the need of a firmware.zip or similar to that. Want to pull straight from the device. Any ideas? @old.splatterhand , @russellvone
Google is our friend, but to no prevail for me thus far.
Don't know for boost.
Isn't it for the others mmcblk0p4?
Will look into it.
Sent from my C525c using XDA Premium 4 mobile app
Well, for boost, that definitely is not it lol. Looks like I'm pulling every single one hahaha
Sent from my C525c using XDA Premium 4 mobile app
Modding.MyMind said:
Well, for boost, that definitely is not it lol. Looks like I'm pulling every single one hahaha
Sent from my C525c using XDA Premium 4 mobile app
Click to expand...
Click to collapse
mmcblk0p12=bootloader for K2_CL
---------- Post added at 07:47 PM ---------- Previous post was at 07:46 PM ----------
Pulled and looked at each one individually.
Sorry it took so long
You too huh haha
Sent from my C525c using XDA Premium 4 mobile app
K2_PLC_CL (Cricket)
[email protected]:/ $ cat /proc/emmc
dev: size erasesize name
mmcblk0p22: 000ffa00 00000200 "misc"
mmcblk0p21: 00fffe00 00000200 "recovery"
mmcblk0p20: 01000000 00000200 "boot"
mmcblk0p33: 54fffc00 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p34: 0dfffe00 00000200 "cache"
mmcblk0p35: 49fffe00 00000200 "userdata"
mmcblk0p25: 01400000 00000200 "devlog"
mmcblk0p27: 00040000 00000200 "pdata"
mmcblk0p36: 1097fe000 00000200 "fat"
mmcblk0p30: 00010000 00000200 "extra"
mmcblk0p16: 02d00000 00000200 "radio"
mmcblk0p17: 00a00000 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p19: 007ffa00 00000200 "radio_config"
mmcblk0p23: 00400000 00000200 "modem_st1"
mmcblk0p24: 00400000 00000200 "modem_st2"
mmcblk0p31: 00100000 00000200 "cdma_record"
mmcblk0p32: 06069e00 00000200 "reserve"
[email protected]:/ $
Click to expand...
Click to collapse
Code:
[email protected]:/ $ cat /proc/emmc
dev: size erasesize name
mmcblk0p22: 000ffa00 00000200 "misc"
mmcblk0p21: 00fffe00 00000200 "recovery"
mmcblk0p20: 01000000 00000200 "boot"
mmcblk0p33: 54fffc00 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p34: 0dfffe00 00000200 "cache"
mmcblk0p35: 49fffe00 00000200 "userdata"
mmcblk0p25: 01400000 00000200 "devlog"
mmcblk0p27: 00040000 00000200 "pdata"
mmcblk0p36: 1097fe000 00000200 "fat"
mmcblk0p30: 00010000 00000200 "extra"
mmcblk0p16: 02d00000 00000200 "radio"
mmcblk0p17: 00a00000 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p19: 007ffa00 00000200 "radio_config"
mmcblk0p23: 00400000 00000200 "modem_st1"
mmcblk0p24: 00400000 00000200 "modem_st2"
mmcblk0p31: 00100000 00000200 "cdma_record"
mmcblk0p32: 06069e00 00000200 "reserve"
[email protected]:/ $
K2_UL Australian LTE
[email protected]:/ $ cat /proc/emmc
dev: size erasesize name
mmcblk0p22: 000ffa00 00000200 "misc"
mmcblk0p21: 00fffe00 00000200 "recovery"
mmcblk0p20: 01000000 00000200 "boot"
mmcblk0p33: 54fffc00 00000200 "system"
mmcblk0p29: 00140200 00000200 "local"
mmcblk0p34: 0dfffe00 00000200 "cache"
mmcblk0p35: 49fffe00 00000200 "userdata"
mmcblk0p25: 01400000 00000200 "devlog"
mmcblk0p27: 00040000 00000200 "pdata"
mmcblk0p36: 1097fe000 00000200 "fat"
mmcblk0p30: 00010000 00000200 "extra"
mmcblk0p16: 02d00000 00000200 "radio"
mmcblk0p17: 00a00000 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p19: 007ffa00 00000200 "radio_config"
mmcblk0p23: 00400000 00000200 "modem_st1"
mmcblk0p24: 00400000 00000200 "modem_st2"
mmcblk0p31: 00100000 00000200 "cdma_record"
mmcblk0p32: 06069e00 00000200 "reserve"
[email protected]:/ $
K2_UL CID-HTC__001 UK LTE
zomgitsanoob said:
K2_PLC_CL (Cricket)
Click to expand...
Click to collapse
@old.splatterhand, what'd happen, if I tried to flash the 4.2 TWRP for K2_U? The partition layouts are mostly the same. (Except for whatever the hell "reserve" is.) If I try flashing any other recovery I just hang there at "Entering recovery..."
Not a good idea, as some people tried already!
They had problems afterwards, but i don't find the thread cause i'm on mobile (look out for the posts of swes013).
It is simply made for eu versions of k2u & k2ul.
Better downgrade your hboot to 2.00 and your old recovery will work again.
System partition and a couple of others are different. Its not just the reserve partition. - EDIT: if a boost user
EDIT: forgot you are a cricket user . - my bad lol
Sent from my K2_CL using Tapatalk
---------- Post added at 08:07 AM ---------- Previous post was at 07:23 AM ----------
Wanted to add that the latest twrp which works for the new hboot 2.21 will in fact work for cricket. The partitions which that custom recovery backs up to include the recovery partition itself are the same. Swes013 was having another issue not related. This has also been confirmed by another cricket user to be working just fine. And also by reviewing the /proc/emmc.
Just to update for future knowledge.
Sent from my K2_CL using Tapatalk
---------- Post added at 08:09 AM ---------- Previous post was at 08:07 AM ----------
It will not work for boost though : that is just obvious observation lol
Sent from my K2_CL using Tapatalk
Question:
How do I pull these from my device using terminal emulator as .img files,
And how would I reinstall them using term emulator?
I know I could flash using PL80IMG but I would rather flash using term emulator if possible
Sent from my C525c using xda app-developers app
rickberg said:
Question:
How do I pull these from my device using terminal emulator as .img files,
And how would I reinstall them using term emulator?
I know I could flash using PL80IMG but I would rather flash using term emulator if possible
Sent from my C525c using xda app-developers app
Click to expand...
Click to collapse
You already know this answer lol. You just aren't thinking straight .
But I will give an example to help bump that noggin of yours and get you back on track haha. Two ways to do it.
Pulling boot.img on K2_CL:
Code:
dd if=/dev/block/mmcblk0p20 of=/sdcard/boot.img
Code:
cat /dev/block/mmcblk0p20 > /sdcard/boot.img
Pushing boot.img on K2_CL:
Code:
dd if=/sdcard/boot.img of=/dev/block/mmcblk0p20
Code:
cat /sdcard/boot.img > /dev/block/mmcblk0p20
Sent from my C525c using Tapatalk
Ok now using hex editor to remove the signature do I need to erase the partition before I push new image or will it just overwrite it and of course the permissions have to be correct
Sent from my C525c using xda app-developers app
rickberg said:
Ok now using hex editor to remove the signature do I need to erase the partition before I push new image or will it just overwrite it and of course the permissions have to be correct
Sent from my C525c using xda app-developers app
Click to expand...
Click to collapse
It will overwrite the previous one. But make sure you keep a copy of the original.
Sent from my C525c using Tapatalk
Ok will do sir thank you
Sent from my C525c using xda app-developers app
Hi all
my phone has the [email protected]_60.00 baseband version which is the crappiest baseband I've ever had on this phone
the phone become very hot when its on GSM and low antenna reception is the another problem
since my phone is s-on i can't downgrade to another version
i unlocked my bootloader and installed twrp and from adb tried this commands :
first backup current radio partition
Code:
dd if=/dev/block/mmcblk0p23 of=/sdcard/backup.img
and then flashed Radio.img from another Ruu rom that i decrypted using RUUtools
Code:
dd if=/sdcard/radio.img of=/dev/block/mmcblk0p23
the command successfully applied and after restart the version didn't change at all
i don't think mmcblk0p23 is write-protected because the dd command successfully passed
so is there any other file should i flash to change my baseband version ?
here is the full partition list of our phone :
Code:
mmcblk0p1: 00004000 00000200 "board_info"
mmcblk0p2: 00400000 00000200 "pg1fs"
mmcblk0p3: 00100000 00000200 "sbl1"
mmcblk0p4: 00040000 00000200 "devcfg"
mmcblk0p5: 00100000 00000200 "dip"
mmcblk0p6: 009b7c00 00000200 "reserve_1"
mmcblk0p7: 00040000 00000200 "mfg"
mmcblk0p8: 017afc00 00000200 "pg2fs"
mmcblk0p9: 00080000 00000200 "rpm"
mmcblk0p10: 00200000 00000200 "tz"
mmcblk0p11: 00200000 00000200 "hyp"
mmcblk0p12: 00400000 00000200 "aboot"
mmcblk0p13: 00a00000 00000200 "tool_diag"
mmcblk0p14: 00a00000 00000200 "sp1"
mmcblk0p15: 00008000 00000200 "ddr"
mmcblk0p16: 00500000 00000200 "wcnss"
mmcblk0p17: 00100000 00000200 "rfg_0"
mmcblk0p18: 00100000 00000200 "rfg_1"
mmcblk0p19: 00100000 00000200 "rfg_2"
mmcblk0p20: 00100000 00000200 "rfg_3"
mmcblk0p21: 00100000 00000200 "rfg_4"
mmcblk0p22: 00180000 00000200 "fsg"
mmcblk0p23: 03b00400 00000200 "radio"
mmcblk0p24: 01400000 00000200 "adsp"
mmcblk0p25: 01000000 00000200 "dsp"
mmcblk0p26: 00000400 00000200 "limits"
mmcblk0p27: 00107c00 00000200 "reserve_2"
mmcblk0p28: 00100000 00000200 "misc"
mmcblk0p29: 00180000 00000200 "modemst1"
mmcblk0p30: 00180000 00000200 "modemst2"
mmcblk0p31: 01400000 00000200 "fataldevlog"
mmcblk0p32: 01e00000 00000200 "devlog"
mmcblk0p33: 00040000 00000200 "pdata"
mmcblk0p34: 00140400 00000200 "local"
mmcblk0p35: 00004000 00000200 "control"
mmcblk0p36: 00010000 00000200 "extra"
mmcblk0p37: 00000400 00000200 "fsc"
mmcblk0p38: 00002000 00000200 "ssd"
mmcblk0p39: 00080000 00000200 "sensor_hub"
mmcblk0p40: 02000000 00000200 "persist"
mmcblk0p41: 00010000 00000200 "sec"
mmcblk0p42: 00100000 00000200 "rfg_8"
mmcblk0p43: 00080000 00000200 "frp"
mmcblk0p44: 00a00000 00000200 "ramdump"
mmcblk0p45: 00000400 00000200 "skylink"
mmcblk0p46: 02d00000 00000200 "carrier"
mmcblk0p47: 00a00000 00000200 "battery"
mmcblk0p48: 00080000 00000200 "keystore"
mmcblk0p49: 12200000 00000200 "apppreload"
mmcblk0p50: 03c00000 00000200 "cota"
mmcblk0p51: 00100000 00000200 "mota"
mmcblk0p52: 00040000 00000200 "cmnlib32"
mmcblk0p53: 00040000 00000200 "keymaster"
mmcblk0p54: 00100000 00000200 "devinfo"
mmcblk0p55: 00459400 00000200 "reserve"
mmcblk0p56: 04000000 00000200 "hosd"
mmcblk0p57: 02000000 00000200 "mdtp"
mmcblk0p58: 10000000 00000200 "cache"
mmcblk0p59: 04000000 00000200 "boot"
mmcblk0p60: 04000000 00000200 "recovery"
mmcblk0p61: c6000000 00000200 "system"
mmcblk0p62: 38000000 00000200 "userdata"
You need s-off.
You will not be able to manually flash any firmware component (other than boot or recovery) without s-off.
Even with s-off, you will have issues flashing those partitions from any booted kernel (recovery or system).
If you s-off, you'll be able to flash anything you want from fastboot/download mode.
Disclaimer: Please understand that you can very easily HARD BRICK YOUR PHONE by messing around with your firmware. You have been warned.
ardalaan said:
Hi all
my phone has the [email protected]_60.00 baseband version which is the crappiest baseband I've ever had on this phone
the phone become very hot when its on GSM and low antenna reception is the another problem
since my phone is s-on i can't downgrade to another version
i unlocked my bootloader and installed twrp and from adb tried this commands :
first backup current radio partition
Code:
dd if=/dev/block/mmcblk0p23 of=/sdcard/backup.img
and then flashed Radio.img from another Ruu rom that i decrypted using RUUtools
Code:
dd if=/sdcard/radio.img of=/dev/block/mmcblk0p23
the command successfully applied and after restart the version didn't change at all
i don't think mmcblk0p23 is write-protected because the dd command successfully passed
so is there any other file should i flash to change my baseband version ?
Click to expand...
Click to collapse
Please where can i get international variant of radio to flash for my one A9. I am s-off i use gsm band 900, WCDMA band 1800 1900 and lte band 3, 8 and 28. Thanks
Aizenosa said:
Please where can i get international variant of radio to flash for my one A9. I am s-off i use gsm band 900, WCDMA band 1800 1900 and lte band 3, 8 and 28. Thanks
Click to expand...
Click to collapse
You can extract the images from any RUU you choose using tools on this forum.
As a word of caution, be careful with the radio. From my understanding, our phones can be radio-bricked, which means that if, for whatever reason, the radio portion of the chipset fails to boot, the phone will be hard bricked.