[Q]How to backup stock rom - Samsung Galaxy Gio GT-S5660

Hello have a small questiom, how can i backup my stock current rom without any modifications ? In case of warranty or in case i don`t like a custom rom i would like to have a backup to flash back to my device . Can i do a backup or current 2.3.3 KP5 without any root access ? Or i need to get root, install cwm and backup, and in case something goes wrong ... reinstall that backup, delete cwm somehow and un-root the device
My device is Samsung Galaxy Gio btw

If u want go back, u can flash stock rom via odin. There are versions from 2.2.1 to 2.3.5 all by samsung.
Tapatalk

Install Odin on your computer and CWM on the phone.
Make a Nandroid backup on the phone, but also dd the images as explained in some other threads (while still in CWM), so you can flash that through Odin if Nandroid bugs for some reason.
No need for root to do all the above. (CWM has root from the start, even if your ROM doesn't.)
It would be a good idea to check your CSC files for relocking before doing your backup and either fixing them or at least writing your code inside the battery cover.

Backup stock rom
You can use the program adb to:
(google some about how to use and install adb)
Sow commands from adb to backup the rom (system)
# cat /dev/block/stl12 > /sdcard/factoryfs.rfs
ore:
#dd if=/dev/stl12 of=/sdcard/system.img (img should be rfs but did not try that output my self)
backup the recovery:
#dd if=/dev/bml9 of=/sdcard/recovery.img
backup boot image(kernel)
#dd if=/dev/bml8 of=/sdcard/boot.img (probably will have same size ash the recovery image)
You can do a nandroid backup for most easy use this app can backup/restore any nice rom that you tryed very fast. Very save program to use. It comes with ClockworkMod recovery.
Some nice partition info is here:
http://particle.blurringexistence.net/samsung-gt-s5660/partition-layout

Related

A rooting attempt gone astray

So I was trying to root my evo so I could try the fresh rom (please note that this was my first ever root attempt and my phone had the OTA update). I followed the instructions from this guide:
Latest OTA rooted! - Page 2 - Android Central Forums
This is where my problem is:
11. Once back at the Home screen type:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
When I enter the "cat /sdcard/flash_image > /data/flash_image" code I get:
"cannot create /data/flash_image: permission denied"
After some googling I found other people typed "su" prior to typing in the "cat /sdcard/flash_image > /data/flash_image" command. That didn't work for me. I received "su: permission denied" after entering su.
Would going back and starting this tutorial all over cause serious damage? I'm wondering if maybe I messed up earlier.
I'm very worried I really screwed something up. Can anybody please offer up some advice for a newbie?
Weigh the stakes
Man, just try the "SimpleRoot 1.47 OTA update" app for Windows. You save time, money and a lot of feces on your tract by the worries that everything is ok.
Now, I want to remind the stakes. If you haven't looked at my post here at Q&A, I pretty much effed up my phone while being rooted. I don't know if it was too much exposure to heat caused by WiFi Tether, or of mysterious powers regarding the RSA 256 bit encryption update process screwed my phone up. So before trying to crack your phone, please, review the stakes and stay stock.
BTW, you haven't completed the root process, so a simple Factory Reset should do the trick to go back into Stock without any trace of root procedure. That is, if you want to play it safe.
Okay, first things first. Just so I'm clear.
1. Which guide(exactly) did you follow?
2. What software version do you have now?
Yeah i was having problems with my administrator password so I switched from simple root to this method. Maybe I was using the wrong version or something, could you post a link to simple root for ota?
churchwin88 said:
Okay, first things first. Just so I'm clear.
1. Which guide(exactly) did you follow?
2. What software version do you have now?
Click to expand...
Click to collapse
1. http: // forum.androidcentral. com/htc-evo-4g-roms-hacks/ 21043-latest-ota-rooted-2. htm
2. My software number is 1.47.651.1
Thanks for the help
StrummingLevi said:
Yeah i was having problems with my administrator password so I switched from simple root to this method. Maybe I was using the wrong version or something, could you post a link to simple root for ota?
1. http: // forum.androidcentral. com/htc-evo-4g-roms-hacks/ 21043-latest-ota-rooted-2. htm
2. My software number is 1.47.651.1
Thanks for the help
Click to expand...
Click to collapse
For the 1.47 you need to use this version of simple root(if you haven't already) - http://forum.xda-developers.com/showthread.php?t=720565
I'm not sure why it would have problems with the password. Only thing I can think of would be something along the lines of not having administrator privileges.
EDIT: Make sure to have all the requirements and if you successfully run that let me know so we can proceed to the next step(it is really simple).
I did the simple root for 1.47 and it was a success! Although I did not understand what the flash recovery did. I tried the clockwork recovery and it took me to a screen with a bunch of options, but I didn't know what to do so I just rebooted. What's next? I want to try the newest version of the fresh rom.
TO try fresh first download it and place the zip file on your computer, boot into recovery, (power phone off then hold down volume and power untill you get to the white screen) select flash zip fron sd card then select the fresh rom and flas, presto fresh should flash, the recovery is a seperate area which is used to flash a rom, as you cant flash a rom from within a rom.
So do I use the clockwork recovery to flash the fresh rom? I was looking at the guide to flash the new fresh rom and it says that I need to have nand unlocked. How do I do that?
if you did simpleroot nand should be unlocked, and yes clockwork recovery is used to flash the fresh rom. clockwork recovery is what you are in when you boot with the down volume and power button held down. If it doesnt work you may want to try amon ra recovery, find the toast root method and do the last step:
- on your PC open a shell again and do:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
- you should now be in recovery mode
- do a wipe of data and dalvik cache
- navigate to nandroid restore and restore the previous rom setup
- come here to the forum, get and flash the latest radio
- enjoy... you can now reboot into recovery, write to system and other partitions while in Android. Also you now have a Engineering SPL so you can fastboot and much more.
It also wont hurt to do the whole part two of toasts guide if you dont think your nand is unlocked. FYI Nand unlocking allows both a read write option in the recovery which is needed to write the custom roms.
StrummingLevi said:
So do I use the clockwork recovery to flash the fresh rom? I was looking at the guide to flash the new fresh rom and it says that I need to have nand unlocked. How do I do that?
Click to expand...
Click to collapse
Your nand is unlocked. Just download Fresh, boot into recovery, wipe caches, and apply Fresh via zip file.
ifly4vamerica said:
if you did simpleroot nand should be unlocked, and yes clockwork recovery is used to flash the fresh rom. clockwork recovery is what you are in when you boot with the down volume and power button held down. If it doesnt work you may want to try amon ra recovery, find the toast root method and do the last step:
- on your PC open a shell again and do:
Code:
adb shell
cat /sdcard/flash_image > /data/flash_image
chmod 755 /data/flash_image
/data/flash_image recovery /sdcard/recovery.img
reboot recovery
- you should now be in recovery mode
- do a wipe of data and dalvik cache
- navigate to nandroid restore and restore the previous rom setup
- come here to the forum, get and flash the latest radio
- enjoy... you can now reboot into recovery, write to system and other partitions while in Android. Also you now have a Engineering SPL so you can fastboot and much more.
It also wont hurt to do the whole part two of toasts guide if you dont think your nand is unlocked. FYI Nand unlocking allows both a read write option in the recovery which is needed to write the custom roms.
Click to expand...
Click to collapse
Ignore this post, unless you want to flash Fresh with Amon Ra Recovery instead of Clockwork Recovery (what you have now)
Agreed, I was only posting that "if" he had problems using clockwork sorry for the confusion.
jerryparid said:
Your nand is unlocked. Just download Fresh, boot into recovery, wipe caches, and apply Fresh via zip file.
Ignore this post, unless you want to flash Fresh with Amon Ra Recovery instead of Clockwork Recovery (what you have now)
Click to expand...
Click to collapse
So I decided I was going to use Amon Ra's recovery because flipz recommended it. That was going well until "- navigate to nandroid restore and restore the previous rom setup". I selected nandroid restore and it said something like /sdcard/nandroid not found. Aster that I just rebooted , which took a while and had me pretty nervous. It eventually booted up though. This stuff is a lot more confusing than windows mobile was haha. I'm wondering if nandroid was indeed unlocked with simple root. I'm still willing to press forward if the help is still available. By the way, what and how can I make a nandroid backup?
Turn phone off, turn phone on holding down volume and power, when you get to white screen select recovery then scroll through your options, i believe it it backup/restore then creat nandroid backup, FYI you cant restore a nandroid backup if you haven't created one, IE the not found error you got before.
Ok so how exactly would I go about flashing(if that's even the right word) fresh rom from what I already have?
I'm not sure what you actually have, can you get to recovery, then the option to 'flash zip from sd card? if you have that option just place the fresh rom on the root of your sd card (put the zip file there and don't open the zip) then reboot to recovery, ie vilume down and power button when you get to white screen volume down to recovery, then flash zip from sd then select the fresh rom zip, then hit power button to select, hit power button again to confirm and away you go.
Ok that sounds simple enough. I can't thank you guys enough for all your help. What does a nandroid backup do?
it makes a copy of your rom basically, so say you put on fresh do a nandroid backup then flas CM6, you decide you dont like CM6, so you nandroid restore of your fresh and presto right back to where you were before you flashed CM6, also useful if you have screwed something up ... you can go back ... make sense?

Flashing Nandroid backups

Hi
Would it be possible for me to do the above without having to connect my phone to my laptop every time?
I know I have would have to load the boot.img first from a cmd window whenever i wanted to try a new rom, but was just wondering if I'd have to do that with it already on the internal sd card.
Any help would be appreciated.
Wiggo
Unless the backup you're restoring uses the same boot.img as the one you're using you will need to flash the one from your backup (using fastboot) when you restore it.
Recovery doesn't have permission to write to the boot partition; this means whether you're flashing a ROM or a backup from recovery the boot.img won't be written and you'll have to do it manually.
hopscotchjunkie said:
Unless the backup you're restoring uses the same boot.img as the one you're using you will need to flash the one from your backup (using fastboot) when you restore it.
Recovery doesn't have permission to write to the boot partition; this means whether you're flashing a ROM or a backup from recovery the boot.img won't be written and you'll have to do it manually.
Click to expand...
Click to collapse
That makes sense. Thanks very much for your help

ZenFone 2: How Do I Baackup My ROM Without CWM?

how to backup my room without installing CWM?
how to backup my room without installing CWM? for Rooted and non-rooted Asus Zenfone 2 device
.....................?????????
Try the tethered http://forum.xda-developers.com/zenfone2/development/alpha-tethered-twrp-asus-zenfone-2-t3123532
Only root buddy
Based on my understanding, u need twrp or cwm to backup and recover.
thx. but how to flash stock recovery? can i install it with CWM and TWRP??
...
You can try this,
For rooted device only
1. Space on Internal Memory about 3Gb,
2. Downloads and Install Terminal Emulator,
3. Open Terminal and then type this
Su (enter) >>> allow or grand of supersu notification,
BACKUP FASTBOOT
dd if=/dev/block/by-name/fastboot of=/sdcard/fastboot.img
BACKUP BOOT
dd if=/dev/block/by-name/boot of=/sdcard/boot.img
BACKUP RECOVERY
dd if=/dev/block/by-name/recovery of=/sdcard/recobery.img
BACKUP SYSTEM
dd if=/dev/block/by-name/system of=/sdcard/system.img
Tester on my device ZE551ML
Sorry for my bad English,
wawan darmawan said:
You can try this,
For rooted device only
1. Space on Internal Memory about 3Gb,
2. Downloads and Install Terminal Emulator,
3. Open Terminal and then type this
Su (enter) >>> allow or grand of supersu notification,
BACKUP FASTBOOT
dd if=/dev/block/by-name/fastboot of=/sdcard/fastboot.img
BACKUP BOOT
dd if=/dev/block/by-name/boot of=/sdcard/boot.img
BACKUP RECOVERY
dd if=/dev/block/by-name/recovery of=/sdcard/recobery.img
BACKUP SYSTEM
dd if=/dev/block/by-name/system of=/sdcard/system.img
Tester on my device ZE551ML
Sorry for my bad English,
Click to expand...
Click to collapse
thx bro. but how i can flash stock recovery? can i install it with CWM and TWRP??
Yes, you can flash it on twrp mode
wawan darmawan said:
Yes, you can flash it on twrp mode
Click to expand...
Click to collapse
thx bro

Need help creating nandroid backup without screen.

Hi there,
Last friday I broke my lcd screen, it simply does not turn on anymore. Tomorrow an UPS employe will pick up my device and ship it to OP for repair.
My device: Oneplus 3 running TWRP recovery and rooted LineageOS. Adb is enabled in dev settings.
So now I am trying to create a nandroid backup to easily restore my system and data when I get my phone back since OP will reset it ...
I had this genious idea to boot into recovery and create a backup using adb but I ran into a problem.
I have to unlock my device in order to create the backup :/
adb console:
> D:\Desktop\Fastboot+ADB\Win32>adb backup -f backupbeforerepair --twrp system data boot
> Now unlock your device and confirm the backup operation.
So now I am hoping any of you will come up with another genious idea or a workaround so I can create this damn backup
Thanks alot in advance!
If anyone else would ever find himself in the same situation as me I was able to create the backup by doing the following:
You can use open recovery script in TWRP. See http://wiki.rootzwiki.com/OpenRecoveryScript
If you have the file
/cache/recovery/openrecoveryscript
then TWRP will process it when it starts.
If the file contains
backup BSDO myBackup
then the boot (kernel), system, and data partitions will be backed up in compressed format and named myBackup.
So, on your PC, create the openrecoveryscript file, boot into recovery, use ADB to push the file to /cache/recovery/openrecoveryscript then reboot back into recovery. That should trigger the backup process.
Note, the backup will be written to the default location TWRP for backups.
Click to expand...
Click to collapse

Unable to restore backup

I am using orangefox recovery, make backup with miui 11 stock rom.
While play around with custom rom, and wanna restore backup to get few apps item, it's error in wiping vendor
My error message while restoring vendor
"e2fsdroid -e -S /file_contexts -a /vendor /dev/block/mmcblk0p62 process ended with error : 1"
"Unable to wipe vendor"
I tried to restore all items, and restore vendor last. It worked fine in restoring, but my phone can't boot. It show fastboot mode.
Any ideas what happen ?
Read around on internet, some said u need to disable lock screen before backup ?
me too. I stuck at mi logo
If you'll get ever some weird error in OrangeFox Recovery just simple reboot it to recovery again. In menu you have that option. Than try again...
Some super tip: DONT EVER TRY TO FLASH MIUI ROM/FIRMWARE UNDER RECOVERY!!!! Use MI FLASH TOOL!!! You can brick device like you two did . Dowload fastboot MIUI ROM and flash it.
Dont restore apps from backup lool. Use app like Titanium backup to backup/restore your apps+data.
Good luck

Categories

Resources