[Q] [Dev Help - RSA Keys Issue] Backup Breaks 4G - Motorola Photon 4G

First let me start off by saying, (if I have posted in the wrong section, Mods please move this. I apologize.)
I need to know how to backup and restore the RSA Keys on the Motorola Photon 4G.
I need to do a CWM "/data" restore from a previous Photon, that I had gotten replaced, to my new Photon.
When I restore the CWM backup, (yes, this is necessary for me to do), I break my 4G.
I am assuming these are the RSA Keys that need to be restored after my CWM Backup "/data" restore.
So how to I back up my RSA Keys???

deedscreen said:
First let me start off by saying, (if I have posted in the wrong section, Mods please move this. I apologize.)
I need to know how to backup and restore the RSA Keys on the Motorola Photon 4G.
I need to do a CWM "/data" restore from a previous Photon, that I had gotten replaced to my new Photon.
When I restore the backup, I break my 4G.
I am assuming these are the RSA Keys that need to be restored.
Click to expand...
Click to collapse
Can you please provide more details?
Are these nandroid backups? From CWM Recovery or CWM Bootstrap? And being restored with which of those two? Your answers will also tell us whether your bootloader is locked/unlocked.
And why do you need to do a direct restore of /data/ anyway?

try flashign stock sbf?

Beknatok said:
Can you please provide more details?
Are these nandroid backups? From CWM Recovery or CWM Bootstrap? And being restored with which of those two? Your answers will also tell us whether your bootloader is locked/unlocked.
And why do you need to do a direct restore of /data/ anyway?
Click to expand...
Click to collapse
My bootloader is locked. Aren't CWM Bootstrap & Recovery the same? I believe I am restoring with Bootstrap.
I need to restore a backup to get my apps, and settings back. I have way too many apps and setup for my apps to start all over again. I just need to know how to restore the RSA keys after I restore a backup.

shabbypenguin said:
try flashign stock sbf?
Click to expand...
Click to collapse
Shabby, my issue is getting 4G back after I restore a backup. I know I can get 4G to work by doing a factory reset, which I have done, but I need to:
1. Do a factory reset.
2. Backup My RSA Keys. How???
3. Root, Install CWM
4. Restore my old
backup from my old
Photon
5. Restore My RSA Keys How???
Thanks.

ok so what ive learned from this is the following, either we are all using the same exact wimax keys inside the sbf. or teh sbf doesnt touch them, in which case your wimax info is on your phone just the restore is messing it up. are you doing a full restore or advanced to restore just data?
were you running a custom kernel with your backup?

shabbypenguin said:
ok so what ive learned from this is the following, either we are all using the same exact wimax keys inside the sbf. or teh sbf doesnt touch them, in which case your wimax info is on your phone just the restore is messing it up. are you doing a full restore or advanced to restore just data?
were you running a custom kernel with your backup?
Click to expand...
Click to collapse
My guess is that an SBF doesn't touch them. Doing a Advanced/data restore. No custom kernal.
What I'll do is do a CWM backup of my phone now, do a factory reset by turning on the phone and holding the volume down button, wait for fastboot to pop up, go down until I see android recovery, press volume up key, when I see the triangle hold the volume up and down key together, and do a factory wipe from there. Then I can root, install CWM, and pull all of my apps to my SD card, go back and do it all over again except uses the first CWM backup I made on this phone, install the apps from SD card, then backup. Or just use an application name list saver.
Something like that. I have yet to start customizing my phone in a rom fashion since my last phone would not sbf.
Sent from my MB855 using xda premium

no the sbf has to touch them, or the cwm isnt. because if you corrupted your keys due to the wm then if the sbf didnt touch them you wouldnt have 4g ever again

Shabby, from what I read in all the thread, it seems theres something in /data that breaks the keys. HE says that just wiping (not even installing sbf) restores the rsa keys. So, there must be something in /data that breaks it...
Anyway, WHAT I WOULD DO to OP. Just restore your backup, use titanium backup to backup all your apps. Do a factory reset again and restore with titanium!
Cheers

0) Restore your backup - break 4G
1) Download and install Titanium Backup
2) Backup with Titanium Backup
3) Do what ever to fix your 4G
4) Restore your titanium backup
5) ????
6) PROFIT!!

You do lnow you cannot restore the keys from a previous device right? Not on a photon at least...i tried for days on a demo device while trying to fix the bootloader.

Have you tried flashing sbf over your back up? Shouldn't clear your data but should fix /data so keys register and fix 4G.
Sent from my MB855 using XDA App

Related

ClockworkMod Recovery Help

Hi, So im in a boot-loop, im gunna use clockworkmod recovery to make a backup reflash my phone with my current stock ROM then recover.
Will my contacts and message be on my phone when i recover???
Silly question but i have to be sure!!!
Cheers, james
jamesbebby said:
Hi, So im in a boot-loop, im gunna use clockworkmod recovery to make a backup reflash my phone with my current stock ROM then recover.
Will my contacts and message be on my phone when i recover???
Silly question but i have to be sure!!!
Cheers, james
Click to expand...
Click to collapse
Have you established what it was that caused the boot loop? It might be worth taking a minute out and trying to work that out before progressing, if it was flashing a custom ROM, perhaps you should try that again, did you wipe etc beforehand?
So you plan is to
1. enter CWM recovery
2. take full Nadroid Backup
3. Perform Wipe
4. Re-flash current ROM (I'm guessing from ZIP file on SD not RUU?)
5 go back into CWM recovery
6. restore data partition?
Sounds good in theory and yes I believe that your messages will exist if you manage to restore data, I can't see what harm it will do - as you need to progress from where you are now.
Although, as I don't know what device you have and how you were intending ro re-flash your current ROM, you need to be careful that in re-flashing if you're using an RUU that you don't lock your bootloader or loose the custom recovery or you may have more work to do!!!
This is why im in a boot-loop
http://forum.xda-developers.com/showthread.php?t=1212063
Im running 'I9000XWJVB' stock.
1. Backup with ClockworkMod Recovery.
2. Flash stock ROM with odin.
3. After my phone boots up restore the backup i made.
Sound good?
Cheers, James
jamesbebby said:
This is why im in a boot-loop
http://forum.xda-developers.com/showthread.php?t=1212063
Im running 'I9000XWJVB' stock.
1. Backup with ClockworkMod Recovery.
2. Flash stock ROM with odin.
3. After my phone boots up restore the backup i made.
Sound good?
Cheers, James
Click to expand...
Click to collapse
Ah, yes, I recall posting on that thread yesterday - shame you couldn't resolve it.
But this route does sound more hopeful. The steps do sound good. Although ensure that you only do a selective restore after the flash as you don't want to perform a full restore or you'll end up back where you are now. So I reckon that you'll only want to restore the data partition.
After restoring the data partition from the backup, I'd suggest that you wipe the cache & dalvik cache from within CWM, before you reboot.
If you use any third party messaging application you may want to install that before you restore.
ben_pyett said:
Ah, yes, I recall posting on that thread yesterday - shame you couldn't resolve it.
But this route does sound more hopeful. The steps do sound good. Although ensure that you only do a selective restore after the flash as you don't want to perform a full restore or you'll end up back where you are now. So I reckon that you'll only want to restore the data partition.
After restoring the data partition from the backup, I'd suggest that you wipe the cache & dalvik cache from within CWM, before you reboot.
If you use any third party messaging application you may want to install that before you restore.
Click to expand...
Click to collapse
So far so good just restoring data part now..............Thank god for that it worked all my stuff is there!!! Im never playing around with that build.prop again ever!!!!! Anyway i have learn abit more on CWM so its not all a loss.
Cheers, James
jamesbebby said:
So far so good just restoring data part now..............Thank god for that it worked all my stuff is there!!! Im never playing around with that build.prop again ever!!!!! Anyway i have learn abit more on CWM so its not all a loss.
Cheers, James
Click to expand...
Click to collapse
Glad to be able to help....I'll be honest I learnt there to....
Although something for the future:
1. Always take a fresh backup before making any un-tested change.
2. Always have you current ROM ZIP on SD card at all times.
3. You can probably export your messages to your SD card (just in case)
Now press THANKS. button.

Nandroid backup for soft brick

Hello have file nandroid backup make with new recovery? , my razr is in state of soft brick, give to me file nandroid backup for restart my cell phone? Pleaseeee!!
Whhaaaaa? Unless the Motorola android recovery is something completely different than anything I've ever used....you have to have made your own nandroid. You cannot use a nandroid from another phone
Edit: google translate may help, as well.
Sent from my PC36100 using xda premium
I have nandroid backup saved from bootstrap recovery. But the recovery is an app that you need to boot the phone to get into recovery. Plus I've got all my information stored in the backup so... >.<
The OP is something else lol. Three to four different threads screaming for help because he bricked his own phone out of stupidity.

[Q] Restoring a Clockwork Recovery backup

Hey guys,
I had my old Evo, and had it rooted, not through HTC's bootloader, sadly that phone broke and I had to get a new one. well I had it backed up with Clockwork and I want to restore my old Rom. I did the process of unlocking and rooting the phone here being it was on Hboot 1.5
http://forum.xda-developers.com/showthread.php?t=1239821
But now every time I try to restore the Backup in Clockwork I get sent to TWRP and can't seem to recover the back up there. Anyway to do this or to remove TWRP and put back the recovery process that my old Rooted Evo 3d had?
cheato3825 said:
Hey guys,
I had my old Evo, and had it rooted, not through HTC's bootloader, sadly that phone broke and I had to get a new one. well I had it backed up with Clockwork and I want to restore my old Rom. I did the process of unlocking and rooting the phone here being it was on Hboot 1.5
http://forum.xda-developers.com/showthread.php?t=1239821
But now every time I try to restore the Backup in Clockwork I get sent to TWRP and can't seem to recover the back up there. Anyway to do this or to remove TWRP and put back the recovery process that my old Rooted Evo 3d had?
Click to expand...
Click to collapse
CWM and TWRP use different naming conventions for their backups.
If you created a backup in CWM, would be easiest to restore using CWM.
When restoring a backup from a different devices, I would suggest ONLY restoring, data, system and boot partitions.
Keep in mind some devices can have hardware variations between versions and on occasion these can impact restoring an "older" ROM from a previous device to a newer device.
Hope that helps!
joeykrim said:
CWM and TWRP use different naming conventions for their backups.
If you created a backup in CWM, would be easiest to restore using CWM.
Click to expand...
Click to collapse
How do I force it to use CWM. I open it up, try to restore it and it restarts my phone in TWRP.
You might need to use fastboot to make CWM work. I haven't had success using any other method with hboot 1.5. I've had the same experience as others with only CWM 4.0.1.4 and 5.8.0.1 working via fastboot. Instructions I used:
http://forum.xda-developers.com/showpost.php?p=17660133&postcount=1877
Not trying to hijack this thread but I don't want to make a new thread for this noob question.... How do I know which hw version I have? On evo4g it says it right on the hboot screen, but I can't see it on the 3d. Thanks.
Edit...found it.
cheato3825 said:
Hey guys,
I had my old Evo, and had it rooted, not through HTC's bootloader, sadly that phone broke and I had to get a new one. well I had it backed up with Clockwork and I want to restore my old Rom. I did the process of unlocking and rooting the phone here being it was on Hboot 1.5
http://forum.xda-developers.com/showthread.php?t=1239821
But now every time I try to restore the Backup in Clockwork I get sent to TWRP and can't seem to recover the back up there. Anyway to do this or to remove TWRP and put back the recovery process that my old Rooted Evo 3d had?
Click to expand...
Click to collapse
Restoring a backup from CMW to a different phone is a bad idea. If you do, DO NOT RESTORE WIMAX PARTITIONS or you will lose 4g. I would just start over as it would be the safest.
tgruendler said:
Restoring a backup from CMW to a different phone is a bad idea. If you do, DO NOT RESTORE WIMAX PARTITIONS or you will lose 4g. I would just start over as it would be the safest.
Click to expand...
Click to collapse
Agreed, what you should do when switching phones is to backup with titanium backup, I find it to work better because I backs up the apk and the data for it opposed to CWR or TWRP which actually grab a snapshot of the partitions and recover from it.
Sent from my PG86100 using Tapatalk
cheato3825 said:
How do I force it to use CWM. I open it up, try to restore it and it restarts my phone in TWRP.
Click to expand...
Click to collapse
I think, You have TWRP flashed to your phone, and you havent flashed CWM yet. You are just booting CWM using fastboot. So, when the recovery restarts you get to TWRP.
Instead of using "fastboot boot *.img" use "fastboot flash recovery *.img" then use "fasboot boot *.img". Then try once again and check if it works......

Question about Nandroid Backup

I've searched and the answer I get is that it restores the phone back to the original state of when you did the backup. My question is, if I do a nandroid backup when I'm on ROM A, can I restore when I'm on ROM B?
From reading other posts, I take it that if I restore while I'm on B, it will actually put me back on A. Is this correct?
I just hate having to set up my phone again and again after I flash a NEW ROM. I've probably wasted many hours restoring my apps and settings.
Am I understanding this correctly? Can someone enlighten me? Sorry for such a sstupid question.
When you do a nandroid backup its basically taking a snapshot of your OS, settings, call logs so on and so forth that can be restored. Flash a new ROM or soft brick your phone and as long as you can get to clockwork recovery you can restore your phone to the backup and all will be alright.
I do a backup before flashing a new ROM that way if bugs are to much to deal with or I just don't like the new ROM I can go right back to where I was before the flash
Sent from my SAMSUNG-SGH-I717 using xda premium
Just wipe cache dalvik and data before restoring... U can restore from any other rom. Your phone will be exactly the way it was when you did the back up. We'll not 100%, the only thing that doesn't get backed up and restored is the modem. So if the modem was giving you problems then you will have to re flash the modem that works for you.
Sent from my SGH-I717R using xda premium

[Q] DX2 doesn't boot after backup

Hello, I have a major problem with something that should have been a minor project. I used System Recovery to do a backup of the phone. The only thing I can think of there that I might have done differently is save the backup to the external SD card, instead of internal. After the backup completed, I went to reboot the phone and it's stuck on the Motorola splash screen. I tried to pull the battery and go into that general Android Recovery in order to wipe data and try again, but I just get the Android with an exclamation point over his head. I've tried booting it without the SD card too. I was using CM7
Can anyone help please!
EDIT: A couple hours later, since it was my work phone, I had to do something. I reverted the SBF, re-rooted and tried to restore from the backup I made and the same thing happened. I'm going to try to revert to my previous backup. I have a full backup from Titanium Backup if it comes down to it. The phone was working fine, I just can't figure out why it blew up on me after I ran the backup. Grr..
iceolate said:
Hello, I have a major problem with something that should have been a minor project. I used System Recovery to do a backup of the phone. The only thing I can think of there that I might have done differently is save the backup to the external SD card, instead of internal. After the backup completed, I went to reboot the phone and it's stuck on the Motorola splash screen. I tried to pull the battery and go into that general Android Recovery in order to wipe data and try again, but I just get the Android with an exclamation point over his head. I've tried booting it without the SD card too. I was using CM7
Can anyone help please!
EDIT: A couple hours later, since it was my work phone, I had to do something. I reverted the SBF, re-rooted and tried to restore from the backup I made and the same thing happened. I'm going to try to revert to my previous backup. I have a full backup from Titanium Backup if it comes down to it. The phone was working fine, I just can't figure out why it blew up on me after I ran the backup. Grr..
Click to expand...
Click to collapse
sounds like a bad backup. i always use external sd for nandroids and it has never had issues.i would just re-flash. as for stock recovery with andy with an exclamation , push both volume keys. should work regardless of what state the phone is in. i have had it completely unusable and it still worked.
Lorenzo VonMatterhorn said:
sounds like a bad backup. i always use external sd for nandroids and it has never had issues.i would just re-flash. as for stock recovery with andy with an exclamation , push both volume keys. should work regardless of what state the phone is in. i have had it completely unusable and it still worked.
Click to expand...
Click to collapse
OK - You mean to flash cleanly with CM7 and then restore from Titanium backup instead of my previous nandroid backup?
I'm slightly confused about that System Recovery tool, because first I had ROM Manager and it says that CWM is installed, but it doesn't work. Do I have to manually install that System Recovery APK each time I do stuff like this, or does it stay installed? And if so, from a powered off state, how do you enter it? Or do you have to boot up to Android and enter recovery mode from the app? Thanks.
iceolate said:
OK - You mean to flash cleanly with CM7 and then restore from Titanium backup instead of my previous nandroid backup?
I'm slightly confused about that System Recovery tool, because first I had ROM Manager and it says that CWM is installed, but it doesn't work. Do I have to manually install that System Recovery APK each time I do stuff like this, or does it stay installed? And if so, from a powered off state, how do you enter it? Or do you have to boot up to Android and enter recovery mode from the app? Thanks.
Click to expand...
Click to collapse
yes i would try that. second, dont use rom manager. dont delete it either. but it doesnt work on our phone. the bootstrap recovery that you install would only need to be reinstalled if you delete cache in recovery. otherwise it should always work. hope this helps. im not completely sure exactly what you are asking.
try just restoring system part of backup, see if phone will boot, then restore user data
or reinstall cm7 and restore just user data
Sent from my XT862 using xda premium
sd_shadow said:
try just restoring system part of backup, see if phone will boot, then restore user data
or reinstall cm7 and restore just user data
Sent from my XT862 using xda premium
Click to expand...
Click to collapse
I should be fine now, thanks for the advice. I don't know why that backup blew up the phone, but it was sure an inconvenience haha! I just reflashed CM completely, and now I'm gonna roll out my Titanium backup. I don't have a lot of stuff, just the essential stuff for work, so it shouldn't take too long.

Categories

Resources