Flashing stock ROM and the going back to Cyanogen - Optimus One, P500, V General

Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
Is there anything else I should be aware of?
Thanks for answering my questions / clearing up my confusion.

Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
this is correct
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
to revert back to stock, you must wipe data/factory reset, cache, and dalvik cache. you will lose your settings. as for your apps, you can back them up with titanium backup and restore them after you have restored your backup.
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
when you restore your backup of the stock rom, you will still have root. i dont think unlocking your phone will cause you to lose root. your root access and custom recovery will still be intact
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
yes this is true
Is there anything else I should be aware of?
just to be on the safe side, please list the steps you are going to follow
Thanks for answering my questions / clearing up my confusion.

Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
Pretty simple really. This make sense?

Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
there might be a problem. what clockworkmod version did you use to make the backup of the stock rom? if i remember correctly, using cwm 3.x.x.x backs up a certain way (and also does not have the yaffs2 suffix) and using cwm 5.x.x.x backs up a different way (with the yaffs2 suffix) so backups may not be "inter"compatible (more info on that here). however, you can just flash back cwm 3.x.x.x right now (you can do it using rom manager), restore your stock rom backup, do the following steps, flash back cwm 5.x.x.x, then restore your backup
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated (i recommend wipe first then restore)
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
(same here again, wipe first then restore)
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
i think you will have to flash gapps again
Pretty simple really. This make sense?
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)

Good good. It's getting late so I'll tackle this tomorrow. Thanks for the detailed help... I'm glad I asked before going at it.

sweetnsour said:
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)
Click to expand...
Click to collapse
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!

bosth said:
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!
Click to expand...
Click to collapse
glad it worked out for you i am assuming your phone is now unlocked right?

sweetnsour said:
glad it worked out for you i am assuming your phone is now unlocked right?
Click to expand...
Click to collapse
Yes... when I was back in stock I could access the unlock menu by entering 2945*#500# on my keypad. The SIM unlock code that I have worked fine. I haven't actually tested with another SIM card but the phone claimed to have been unlocked, so I should be good to go.

Related

[Q] HowTo : flash roms ?

sorry in advance if this is the wrong place for this....
i can't find out what i need to by doing forum searches and maybe this could help someone else too..
...and feel free to redirect me to another thread for some specifics.
any way i have my phone rooted and running kaos froyo v24
what do i need to do to best try other roms, or just update to v30?
how do i flash ? - and how do i know when to do a full wipe? - and what does that entail(should i do a backup , and does the back up need to be on my computer,not my phone?)
could flashing other roms make my current one unstable?
and lastly .....will i lose all my apps and contacts and stuff with each flash or full wipe?
any clarification on these matters would be awesome.
and thanks so much everyone..... you have given me a better phone
brendan
This would be better placed in Q&A, but I will be happy to help you. All you need to do to flash another rom is what you did for the first one. To move up from one version of a rom to another, you don't need to wipe unless the instructions specify you to do so. But when in doubt, wipe. That is if you dont mind losing all of your saved data. But when going to a new rom, then wiping is a must. Yes, you will lose all apps and contacts for each wipe. No, your phone will not be unstable because of the flash, though if the rom has bugs then it could be. Hope this helps
I suggest installing titanium backup from the market. It allows you to save your current apps and data to be reinstalled on your new rom.
Before flashing a new rom, create a nandroid of your current rom by holding vol up + power. Scroll to backup/restore and create the nand. If for any reason you dont like the new rom, you can wipe data, dalvik, and ext (if your sd card is partitioned) and restore the nand. Your phone will be exactly like before.
To flash a new rom, save the file to the root of your sd card (not in any folder), do a wipe if your going to a new rom or if you have problems updating the old one, and flash the file you downloaded. If your updating the same rom the developer will tell you if you need to wipe or not.
FYI- Nands are saved on your sd card in the nandroid folder. You dont need to mess with them. When you restore, amon ra will look in that folder for you. Don't rename your recoveries like I did and render them useless.
Sent from my ERIS using XDA App
And your contacts should be resynced when you flash a new rom as long as you're using Gmail and allowing it to backup.
Sent from my ERIS using XDA App
awesome !!!
thanks so much guys!

[Q] CWM Nandroid and a sticky device admin app

Hi,
I am trying to restore a couple of nandroid backups, but a Device Administrator app gone "quirky" seems to materialize no matter what I do. I did a CWM Wipe, restored the nandroid backup before the app went bad. However that did not work, the app was still misbehaving. So I wiped again, restored a nandroid backup from before I had installed the app. Still the app shows up again. It has in effect locked me out of the device.
Can anyone tell what can I do to get rid of the app?
Are these Device Admin app supposed to persist like this? Or am I doing something wrong?
Do I need to choose a different wipe mode (I chose the normal one, which wipes /data/, /cache etc). I did not try to wipe /cache separately, as the first wipe does that by itself. Neither did I wipe the dalvik cache, as I thought they are not relevant here. I don't see any relevant files in the sdcard either, though how the app reappears in the nandroid restore before it was installed is a mystery.
Should I mount more partitions before wiping, like the data/cache etc.
Since the wipes don't seem to make it go away, I am not even sure flashing a different ROM would get rid of this app either, however I can try that (since I was planning to anyway, before this mishap). If that doesn't work either, I might just have the most unusual case of bricking ever.
The XDA forum does not seem to be much info about device-admin apps and my search-fu is not good enough today to find anything directly relevant about the other stuff.
PS. btw the app actually modifies the lockscreen. So I don't actually see the files it has with the pre-app restore, however the lockscreen still comes up, perhaps because of some remanant of the app or because of a setting it left in there somewhere.
efs?
Just to add more info, I see some files in /efs, which look relevant to the lockscren/ They have file names like this "/efs/cryptoprop_lockscreen".
Would these files store the data this app stored. I fortunately have an EFS backup, should I consider restoring these files.
If someone doesn't know the answer, can they suggest which devs would be good to ask about this.
AnDruid said:
Hi,
I am trying to restore a couple of nandroid backups, but a Device Administrator app gone "quirky" seems to materialize no matter what I do. I did a CWM Wipe, restored the nandroid backup before the app went bad. However that did not work, the app was still misbehaving. So I wiped again, restored a nandroid backup from before I had installed the app. Still the app shows up again. It has in effect locked me out of the device.
Can anyone tell what can I do to get rid of the app?
Are these Device Admin app supposed to persist like this? Or am I doing something wrong?
Do I need to choose a different wipe mode (I chose the normal one, which wipes /data/, /cache etc). I did not try to wipe /cache separately, as the first wipe does that by itself. Neither did I wipe the dalvik cache, as I thought they are not relevant here. I don't see any relevant files in the sdcard either, though how the app reappears in the nandroid restore before it was installed is a mystery.
Should I mount more partitions before wiping, like the data/cache etc.
Since the wipes don't seem to make it go away, I am not even sure flashing a different ROM would get rid of this app either, however I can try that (since I was planning to anyway, before this mishap). If that doesn't work either, I might just have the most unusual case of bricking ever.
The XDA forum does not seem to be much info about device-admin apps and my search-fu is not good enough today to find anything directly relevant about the other stuff.
PS. btw the app actually modifies the lockscreen. So I don't actually see the files it has with the pre-app restore, however the lockscreen still comes up, perhaps because of some remanant of the app or because of a setting it left in there somewhere.
Click to expand...
Click to collapse
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
pulser_g2 said:
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
Click to expand...
Click to collapse
Thanks for the help pulser_g2. I am still concerned about the files i saw in /efs related to the lockscreen (see my second post). Would the stock ROM overwrite settings/configuration inside /efs (I guess since the IMEI etc are all in there, that might not be the case)?
Got through finally.
pulser_g2 said:
Do a CWM wipe, and turn off the phone when done by selecting "Power Off"
Now enter download mode, and ODIN flash a stock ROM.
Then re-root with CF-Root and install custom ROM if desired.
Click to expand...
Click to collapse
OK this worked.
However after I Odin flashed the stock rom and rebooted, I got this
1. First got a different kind of lockscreen.
2. I entered the wrong password five times (after trying the Device Admin alternate password, my Google password, a new 2-step auth password from google) .
3. it said something about wiping sd card. I couldn't catch it (I should probably have videoed this using my point and shoot camera, but this did not strike me then as it was 2am).
4. I was hoping that the stock ROM will boot, cause it stayed on the Samsung logo for too long. (I had already ordered my USB Jig on ebay anyway, but it could have taken time because of my being far off from the seller.). Finally I got the Android Welcome screen and I let out my breath.
In any case, things seem to ok right now. I feel a slight slowness in the rooted stock ROM from my earlier rooted stock ROM, but I am gonna flash a custom ROM later anyway. Thanks a lot for your help pulser.

[Q] twrp nand backup

Noob ? I just downloaded twrp when I go to recovery what should I back up there's so many options I really don't know which one to pick. Should i pick all of them and compress or some and compress .please be specific.
LOL... it depends on what youre trying to do?
Mostly, youre going to use recovery to flash zip files... kernals, roms, tweaks etc mostly come in the form of zips, so you'll see one option to install a zip file....
Another thing to do, is wipe your phone before a flash, again done with recovery...You'll go to the WIPE menu, and wipe cache, dalvik, (do it a few times to be sure) and do a data wipe before flashing ROMs, this will ensure a flawless install
Lastly you use nandroid to "backup" the current state of your phone, you do this BEFORE flashing a rom... its like a failsafe, if something F's up during your flash, you can restore this "nandroid" backup to restore you phone to its exact state prior to your flash...
So, nandroid back ups, restoring, flashing zips, and wiping are your basic uses of recovery
getmoneygreen said:
Noob ? I just downloaded twrp when I go to recovery what should I back up there's so many options I really don't know which one to pick. Should i pick all of them and compress or some and compress .please be specific.
Click to expand...
Click to collapse
Stick with the ones that are already "x'd" off. The only option that I'd suggest adding is Wimax. That will back up your wimax partition, which contains your RSA keys, which are essential to 4g working (lose your RSA keys, lose your 4g forever, so it's good to keep them backed up). Compressing the backup is optional. It will save a considerable amount of space if you choose to compress them, however the backups will take quite a bit longer to complete. I made two backups that were not compressed, and saved them to my computer, because they were over 1GB each, which is absurd. I now compress all of my backups, and all seems well.
Thank you soo much you guys helped me out a lot
If you don't mind me asking, what were the original TWRP recovery options that were selected. When I did my first Nand backup after S-off and rooting I selected all the options to be safe. Then when I went to go make another back up everything was still selected and I know I do not need all those options. Thanks.
PdawG43 said:
If you don't mind me asking, what were the original TWRP recovery options that were selected. When I did my first Nand backup after S-off and rooting I selected all the options to be safe. Then when I went to go make another back up everything was still selected and I know I do not need all those options. Thanks.
Click to expand...
Click to collapse
To answer your question If I'm correct from top to bottom the first two and also include the Wimax and the compress files .so that's four X's.that's what I have
I did a Nand backup having the first 3 and then Wimax and then when I tried to flash to that backup my phone went black and shut off (thought it had bricked on me) was able to get it to reboot by doing volume down + power button. Am I missing something? Or am I just being dumb when it comes to flashing from a Nand backup?
Are you still having problems with the nand back ups pdawg
So we should wipe data to factory settings before doing the back?
Also, where does titanium backup come into play?
Sent from my PG86100 using XDA Premium App
I haven't had time to try it again yet. Though later tonight I will try again when I flash viper rom 1.3
I checked everything under the sun in nandroid menu, so when I go to nandroid options then restore i choose the one I want to restore, it flashes then when I reboot it just sits on the HTC EVO screnn forever! almost 20 min so far. is anybody else having this issue? am I doing something wrong? I did pull the battery once and rebooted but still nothing. I backed up a couple of nice set ups I would like to have back. any ideas would be great
jajuan said:
So we should wipe data to factory settings before doing the back?
Also, where does titanium backup come into play?
Sent from my PG86100 using XDA Premium App
Click to expand...
Click to collapse
To answer your question about Titanium. This app will back up all your apps--apps only, not your entire system.
This is useful when you flash a new rom because that new rom will not include all the apps you had (obviously). Instead of fishing for each one in the market, simply re-download Titanium and use it to restore your apps (and data if you like). I really don't use Tatanium as much as I used to. This is because I don't download a crapload of apps and when I install a new rom it doesn't take me very long to re-download the ones I like from the market.
BUT, if you have an app that you can't get through the market, then Titanium is vital to restoring it.
Hope this helps.

[Q] So, Cyanogenmod installation on Nexus 5

Basically I have very vague idea of what to do. So far, I have backed up my Apps data using Titanium backup and put that backup folder on my PC. I googled around a bit, but the instruction that I found required me to have a SD card reader to backup my things (apps and ROM). So is there any way around that? Also, when wiping my phone to prepare for flashing Cyanogenmod, what type of data do I wipe? (cache, Dalvik, etc.)
Oh, I already downloaded the snapshot version for Nexus 5 and the gapp already. So far all I know is: Backup -> Wipe (which data?) -> flash ROM -> flash gapp -> done. Am I missing something else?
bump...
Obviously you must be rooted to use Titanium Backup, but do you also have the bootloader unlocked and custom recovery? If so, you can just put the rom zip and gapps zip on the internal storage, boot to recovery, perform a backup (called a nandroid) and then factory data reset and install rom zip and gapps. Reboot and enjoy. Your internal storage will not need to be wiped unless you have not unlocked your bootloader. At that point, just make sure you drag everything off the internal storage to the PC, then unlock the bootloader, install the custom recovery, and wipe and install.
es0tericcha0s said:
Obviously you must be rooted to use Titanium Backup, but do you also have the bootloader unlocked and custom recovery? If so, you can just put the rom zip and gapps zip on the internal storage, boot to recovery, perform a backup (called a nandroid) and then factory data reset and install rom zip and gapps. Reboot and enjoy. Your internal storage will not need to be wiped unless you have not unlocked your bootloader. At that point, just make sure you drag everything off the internal storage to the PC, then unlock the bootloader, install the custom recovery, and wipe and install.
Click to expand...
Click to collapse
So all I have to do now is flash the .zip files and not worry about my data? I am rooted and the bootloader is unlock, I just thought that flashing a new ROM would wipe the phone out (Nexus 5 only have one internal storage)
Depends on which data we're referring to. You will need to perform a factory reset which will wipe your phone as far as the accounts, passwords, settings, call log, texts, apps, contacts, etc. But the recoveries are made to skip wipe /data/media which is the internal storage or what the system considers your /sdcard/. Thus not needing to worry about your pics, music, backups, etc. However, it's always good practice to do a back up of anything super important before attempting any major modification to the system to a safe place. In case of emergency, I recommend having the stock img files to restore the phone to stock. This will save time in getting the phone working again should something go wrong. Never fear though, it's very hard to hard brick the Nexus.
Sent from my One using XDA Premium 4 mobile app
es0tericcha0s said:
Depends on which data we're referring to. You will need to perform a factory reset which will wipe your phone as far as the accounts, passwords, settings, call log, texts, apps, contacts, etc. But the recoveries are made to skip wipe /data/media which is the internal storage or what the system considers your /sdcard/. Thus not needing to worry about your pics, music, backups, etc. However, it's always good practice to do a back up of anything super important before attempting any major modification to the system to a safe place. In case of emergency, I recommend having the stock img files to restore the phone to stock. This will save time in getting the phone working again should something go wrong. Never fear though, it's very hard to hard brick the Nexus.
Click to expand...
Click to collapse
Ok, I'm backing the phone up right now (barely made it within the available SD space). So next is wiping the phone, correct? Then I assume after that I can flashing the files. Next is... I have no idea...
K, so next is rebooting to recovery and going to Backup and backing up the rom you're on. Then it might be good to back that up too. After that, go to recovery and perform the factory data reset and then install rom, then gapps, and reboot. It'll take a while longer to reboot than usual. After that you'll be presented with the setup wizard that'll walk you through getting the phone ready again.
Sent from my One using XDA Premium 4 mobile app
---------- Post added at 05:33 AM ---------- Previous post was at 05:32 AM ----------
Wait, you do or don't have a custom recovery? Because that is needed. I recommend TWRP, but Philz is good as well. But really any of the newest ones will do what you need, just slightly different features and UIs.
Sent from my One using XDA Premium 4 mobile app
es0tericcha0s said:
K, so next is rebooting to recovery and going to Backup and backing up the rom you're on. Then it might be good to back that up too. After that, go to recovery and perform the factory data reset and then install rom, then gapps, and reboot. It'll take a while longer to reboot than usual. After that you'll be presented with the setup wizard that'll walk you through getting the phone ready again.
Click to expand...
Click to collapse
Ok, few more dumb questions. After I back the phone up, where does the backup go? If it is the backup of the current ROM, should I transfer it to somewhere safe (like a PC) before I do a factory reset? Sorry, I'm just having a bad anxiety about all of this flashing and wiping and ROMing...
The backup is stored on your /sdcard/ but yes, I was recommending to also copy that to the computer for safe keeping.
Sent from my One using XDA Premium 4 mobile app

[Q] TWRP/Nandroid question

Hi, I'm not exactly new to XDA, however my Note is my first real Android phone. My question is this: If I want to make a backup of the entire phone, so that I can install a new ROM, then restore the phone to exactly the way it was before I installed said ROM, what do I need to select to back up in TWRP? I'm wanting to play with the Lolipop build for i717. I already have a good EFS backup stored separately just in case, so I need to select System, Data, and Boot, and this will save the kernel and the ROM contents, correct? ...and when I restore this backup it will be just like I left it, right?
Also, what do I need to select to Wipe to perform a 'Full Wipe' as is recommended before install?
Thanks for your time.
-josh
joshsmit07 said:
Hi, I'm not exactly new to XDA, however my Note is my first real Android phone. My question is this: If I want to make a backup of the entire phone, so that I can install a new ROM, then restore the phone to exactly the way it was before I installed said ROM, what do I need to select to back up in TWRP? I'm wanting to play with the Lolipop build for i717. I already have a good EFS backup stored separately just in case, so I need to select System, Data, and Boot, and this will save the kernel and the ROM contents, correct? ...and when I restore this backup it will be just like I left it, right?
Also, what do I need to select to Wipe to perform a 'Full Wipe' as is recommended before install?
Thanks for your time.
-josh
Click to expand...
Click to collapse
Use gimmeitorilltell's version of twrp as some specifics have not made it to official version. I've had great results using 2.8.0.0 though I believe some newer versions are working now as well. I backup android secure as well. Not sure if this is necessary, it was the default setting. Wipe is generally accepted as factory reset usually followed by going to advanced wipe and checking cache, and dalvik cache and wiping these again. Then install your new rom zip, gapps zip if required, wipe cache and dalvik cache and reboot. First boot will take a long time. Possibly as long as 5 minutes or more. Once booted let rom settle for at least 10 minutes before adjusting any settings. Good luck.
Edit: Your backed up rom system will restore everything back to the way it was if you desire to go back (installed apps and settings as well).
Sent from my SAMSUNG-SGH-I717
Thanks @developweb, works perfectly. Also thanks to @gimmeitorilltell for his TWRP and Lollipop ROM.
Sent from my SAMSUNG-SGH-I717 using XDA Free mobile app

Categories

Resources