bootloader backup and upgrade - MDA II, XDA II, 2060 ROM Development

Hi, there:
I'm wondering where the codes of bootloader resides, is it possible to backup and upgrade it? and even reverse engineer it? or it's just part of the rom and will be backup and upgraded with the rom image? Thanks.

Related

Rom Backup with hacked Bootloader

First of all hello to this great forum and peoples. Im following the development of this forum serveral month and there are some things that are waiting for my tytn (MDA Vario II) here. The only problem until now for me was that there wasnt a way to backup my actual rom which i would need for guarantee purposes. As i understood its not possible to backup a rom with the original bootloaders cause of singning and encryption. Some time ago i saw that there is a hacked bootloader which enables to boot load unsigned roms. My question now is, is it possible with that bootloader to backup my actual ROM or not and if not, why.
Why do you need to make an image from your device?
The best backup you can have is the actual ROM update from from your carrier.
I have all three Cingular Released RUU Packages and after upgrading to several different Roms I have always been able to return to my original installed Rom.
Of course the first thing I did was downgrade and Super-CID Unlock (thanks pof).
the problem is just that there isnt an update rom from my carrier (T-Mobile Austria). there only rom available is the one on my device and in short time there wont be an upgrade rom from my carrier. as i mentioned the only need for this backup is my guarantee that i will lose if i hack my device and cant restore the original one.
@nova-2nd: At the moment there's not an easy way of doing what you want. Commands to dump rom to/from SD card have been removed in all hermes bootloader versions.

[Q] Must roll back to original spl to restore Zune Backup?

Hi all
I have a Zune backup of my Mozart updated to mango beta2 with ansar U2M7720_V1.2 tool. Then I installed HSP/RSPL (flashed a stock rom first) and flashed to try the last feropont rom. Now my problem is that I want to restore my saved zune backup to copy some sms I need, but zune after preparing the restore and put my device in recover mode, reset the device without restore anything and return an error message (can't restore backup error code etc..) Do I need to restore the original spl (same number) to restore my backup or what? Any hint?
Thanks in advance
[email protected]
[email protected] said:
Hi all
I have a Zune backup of my Mozart updated to mango beta2 with ansar U2M7720_V1.2 tool. Then I installed HSP/RSPL (flashed a stock rom first) and flashed to try the last feropont rom. Now my problem is that I want to restore my saved zune backup to copy some sms I need, but zune after preparing the restore and put my device in recover mode, reset the device without restore anything and return an error message (can't restore backup error code etc..) Do I need to restore the original spl (same number) to restore my backup or what? Any hint?
Thanks in advance
[email protected]
Click to expand...
Click to collapse
Nothing? Pheraps this is not the right section to ask this kind of question?
Greetings,
What version is your bootloader?
You should be able to restore a Zune backup without downgrading the bootloader first. At least, I personally was able to restore to NoDo (7392) from Mango (7720) using my Zune backup, and even coming from Mango with 5.XX bootloader!
vitruvi0ne
vitruvi0ne said:
Greetings,
What version is your bootloader?
You should be able to restore a Zune backup without downgrading the bootloader first. At least, I personally was able to restore to NoDo (7392) from Mango (7720) using my Zune backup, and even coming from Mango with 5.XX bootloader!
vitruvi0ne
Click to expand...
Click to collapse
Now my bootloader is 1.30, but i flashed a 1.30 rom to downgrade my old bootloader to install HSPL/RSPL. I don't remember wich bootloader was first...
hi,
AFAIK the custom HSPL/RSPL is the issue here. same thing happened to me and i've got two backups, none restored.
the full backup apps available here are also incapable of restoring custom ROM backup. they will only restore if you have a stock bootloader.

Need help going back to Stock (Bell Canada HTC One)

Info:
Bell Mobility HTC One 32GB
S-OFF
H-Boot 1.54 Currently
Fully converted to Google Edition using 4.3 RUU
CID Changed to the Google One
I've literally been on here all day trying to figure this out. I need to sell the phone and can't afford to brick it.
Unfortunately, my Hard drive containing my Nandroids crashed and I lost them.
I cannot find a Bell Mobility RUU. There is a Nandroid backup on HTC1 Guru Here - Very first one listed under CWM Nandroids
http://www.htc1guru.com/dld/m7-cwm-n...-29-666-5-zip/
How can I revert to stock with this?
Is that Nandroid a 4.1.2 Rom? Bell never got 4.2.2, they are still on 4.1.2 so I assume so?
I think I can do this - Any help would be appreciated, need to get this done ASAP.
1) Change my CID back to BM_001 using ADB/Fastboot commands
2) Flash Custom Recovery - CWM in this case using ADB/Fastboot commands
3) FIRMWARE? I'm on the stock 4.3 Google Edition Rom - Do I need to flash old firmware? (Hboot, Radios, etc). If so, what files do I flash and how? Can somebody provide a link here?
4) Restore the Nandroid Backup
5) Flash the Stock Recovery back? Where do I get this from for the Bell 4.1.2 rom?
I will leave the phone S-OFF for whoever buys it. Is this it? I need help with Part 3 specifically if this is the procedure.
If anyone can help I'd gladly buy ya a beer!
I know I'm probably over complicating this.... just little experience with HTC phones. My main questions are regarding the CID and Firmware.
Anyone?

[Q] Enable SDXC write access on KitKat with Locked Bootlaoder LB?

Hi All,
Great community! Great Device! I just a Xperia Z Ultra and I am loving it! Upgraded from a Samsung Skyrocket.
Question. From what I've read it is possible to modify the system partition while maintaining locked bootloader. I would like to enable SDXC card write access without having a rooted phone.
I found this thread that talks about modifying "/system/etc/permissions/platform.xml" to enable access to the SDXC
http://forum.xda-developers.com/showthread.php?t=2617921
Seems like it should work for the Xperia Z Ultra.
Is there anyway I can make this change offline without rooting my phone? Perhaps making a backup SEUS, editing and then restoring a modified version with flashtool?
I suppose I could downgrade, root, backup TA, upgrade, flash recovery, root, modify system and then relock.
Any advice on a better way. Does this sound like a reasonable plan?
Thanks!
-Mark
I would do it the last way,
Downgrade
Root
Backup TA
Upgrade
Unlock BL
Backup TA again (make sure to name it so you know it's the unlocked version)*
Flash recovery
Flash superSU update
Modify system
Relock.
* This will allow you to re-unlock the BL without the data wipe that happens if you use flashtool/adb to unlock the BL

(Q) DRM keys

When i originally unlocked the bootloader I had backed up my TA partition.
Now I have a question, can I restore my drm keys from it since im on another version of lollipop?
Sent from my D6503 using XDA Free mobile app
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
As I understand, the DRM keys are not reliant on your Android version. So keys from 4.4.4 should work on 5.0.2 as they shouldn't change. I'm pretty sure envious_data has confirmed this (please correct me if I'm wrong).
HOWEVER, restoring them will relock the bootloader. If you are on a non-sony custom ROM (so CM, AOSP, etc) the phone will not boot (eXistenZ, Moonwalker (I think), and other stock based ROM's will however).
Stock based ROM's will ONLY boot if you have a stock kernel (which is found inside of the ftf file), any custom kernel (advanced stock, AndroPlus, any CM/AOSP, any other stock based kernel) kernels will not.
A locked bootloader recovery will not prevent the phone from booting, as it is on the /system partition and not inside of a kernel.
Also, if you have a recovery installed to the FOTAKernel partition, restore that to stock as that will prevent the phone from booting. The stock FOTAKernel file can be found in the ftf file too. If needed I can strip an ftf file down to stock kernel and FOTAKernel to be flashed.
CosTuMe said:
Excuse me I ment im on another version of Android*, From your answer I understood I cant restore that.. So what are my options for restoring them?
Sent from my D6503 using XDA Free mobile app
Click to expand...
Click to collapse
You can restore your DRM keys on any android version but you must make sure you'r completely on a stock build. (No custom kernals)
Deleted.
whats the procedure for restoring them?
CosTuMe said:
whats the procedure for restoring them?
Click to expand...
Click to collapse
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
gamer649 said:
If you used the BackupTA tool (or whatever it is called, it's in the cross device section) use the restore function in that.
But before you do, make sure you are on a stock based ROM, with a full stock kernel and full stock FOTAKernel partition.
Click to expand...
Click to collapse
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
CosTuMe said:
Ok, i had done it(and the phone boots). is there anyway to check i got them back?
Click to expand...
Click to collapse
Open the phone dialer, *#*#7378423#*#*, Service Tests, Security, and then look to each row. Each one will be followed by [KEY OK][ACTIVE].
Also, to check the bootloader is relocked.
Open the phone dialer, *#*#7378423#*#*, Service Info, Configuration, look to rooting status. It will say "Bootloader unlock allowed: Yes", instead of "Bootloader unlocked: Yes".
Thank you very much, I had succeeded restoring them
Sent from my D6503 using XDA Free mobile app
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
ulyshut said:
im currently on kitkat rom with full root and unlocked bootloader, and im planning to lock the bootloader. if i upgrade my phone to the latest official lolipop rom. can my phone lock the bootloader? can i get a new DRM key?
PS: i unlocked BL without backing the DRM keys so i lost it.
Click to expand...
Click to collapse
You can re-lock the bootloader without the DRM keys, however it will not restore them. You can use the bootloader unlock/re-lock function in flashtool to lock the bootloader again.
You can lock the bootloader on any android version, regardless of what version you unlocked it on. But if you didn't back up your DRM keys there is no way to get them back, they are lost forever unfortunately.
thanks for the reply, because my remote play access did not work when i rooted my phone . now based on the other thread, its about the DRM key and unlock BL that is causing the issue.
Steps to restore DRM keys?
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
.
suenoromis said:
Hey,
I want to just request some help about the DRM keys. I know more or less what to do since I have lost them in order to get root. As I have understood the steps go:
Backup all apps and whatnot
Flash stock ftf file from any version (wipe APPSLOG, CACHE, DATA) via Flashtool
Root using Easy Root Tool
Backup TA partition using this tool
Push dual recovery into phone using NUTs Dual Recovery script
Restore TA partition using the tool above
And hopefully I would have Root with working keys? I am currently getting the 17.1.2.A.0.314 & 17.1.1.A.0.402 ftf firmware. If I am missing anything from the steps above please inform me.
Thanks ^^
Click to expand...
Click to collapse
If you unlocked your BL before making backup of TA your keys are lost FOREVER .
Even if you downgrade and start everything again you won't get the keys back as they were unique to your device. If you don't have a TA backup of your keys don't waste time downgrading...
But if you DO HAVE A WORKING TA backup with YOUR keys then downgrade to 4.4.2, root, restore your TA (BL will get locked in the process), install dual recovery and upgrade to a pre-rooted firmware. You'll still have your keys and BL locked.
Steps to restore DRM keys?
ptmaniac said:
If you unlocked your BL before making backup of TA ..... You'll still have your keys and BL locked.
Click to expand...
Click to collapse
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
_delice_doluca_ said:
Drm keys are Android version independent. So the answer is yes, you can restore them.
However it's good to remember some rules before restoring; it will also relock your bootloader so, if you have unauthorized software inside your phone by Sony, like a recovery or a custom ROM, your phone will NOT boot as they are normally designed to work with unlocked bootloader.
You should do a backup before proceed or make sure you are on a nin-custom Sony firmware.
Click to expand...
Click to collapse
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Confused about what? you are overcomplicating things.
You can get your keys back ONLY if you have a backup of your TA BEFORE unlocking your bootloader.
DID YOU BACKUP YOUR TA BEFORE UNLOCKING YOUR BOOTLOADER?
If you answer YES --> you can restore your keys
If you answer NO --> they are lost forever.
SImple.
suenoromis said:
So there's absolutely no way to get the keys back after unlocking the bootloader?
What about this?
Click to expand...
Click to collapse
Sorry, If I got things complicated. Let me explain it in scenerios and steps;
Small İnfo first; there is a small partition (or a small and untouchable part inside of a partition) in our phones. It contains and "device-specific" keys, basically an ID.
Some Sony-made softwares (like a picture or sound enhancer which are activated when user starts a music or takes a picture) are patent protected and search for these keys before run. If keys are not there user still can take a picture or listen to music however the patented enhancing software will not kick in. So how do you lose the keys? Why is Sony making this?
Because they want to protect their patented technology from being exposed to inspections or non-Sony users. So basically they tell you if you "unlock your bootloader" you will be able to do anything with your phone freely but the keys-including-partition will be wiped forever and those patented software addings will not run.
Let's get to scenerios.
1th Scenerio: You want to install custom kernel, recovery or ROM to your device? You have to unlock bootloader and it is simple. But doing this basically will wipe your keys and they will be gone forever.
2nd Scenerio: The device can be rooted without unlocking its recovery (very clever Sony, you think about protecting your patent and invent the "keys partition" and lock them to bootloader and get rooted that easily). Once we obtain root, we can read and write to any partition, including the one with the keys (it is called Trim Area). Once we are rooted, with FlashTool, we can backup the TA partition and protect the keys on our PCs.
"After the backing up", once we unlock the bootloader the phone will wipe TA partition but we will have a backup of them on our PCs.
With that backup on our PCs, we can safely do whatever we want; install custom ROMS, kernels, recoveries etc. (actually, there is even a recovery installation possible with "locked bootloader" ) and once we need to claim our warranty or want Sony-patented software enhancements, we can simply restore the TA partition (again with FlashTool).

Categories

Resources