[TOOL] Unyaffs for Android - Streak 5 Android Development

Hi.
Recently i had to restore on (now my wife's) Streak nandroid backup in StreakMod.
For some reason data.img got restored only partially, though i was sure that backup completed fine.
And desktop unyaffs tool has given two errors on bad file records.
--
Fortunately this tool (unyaffs fork?)
https://github.com/ehlers/unyaffs
was able to fully unpack my "corrupted" data.img
Compiled it for android (static), restored data ok and attached to this post.
Hope this will help someone.
--
Using is simple - copy via adb in recovery mode to /tmp, allow execution. cd /data. /tmp/a-unyaffs $DATAFILENAME
--
Not posting in "General Android" as i think nobody uses custom recovery that uses yaffs now .
--
WBR, Sergei.

_n0p_ said:
Hi.
Recently i had to restore on (now my wife's) Streak nandroid backup in StreakMod.
For some reason data.img got restored only partially, though i was sure that backup completed fine.
--
Using is simple - copy via adb in recovery mode to /tmp, allow execution. cd /data. /tmp/a-unyaffs $DATAFILENAME
--
WBR, Sergei.
Click to expand...
Click to collapse
So, it would have been a good solution for my problem too?
My problem posted here
Just as I had almost accepted - that my Streak's inner SD had some issues - I was reading up on this thread.
Last time the streak worked super (as ever) - it just gave bunch of FCs, restarted okay.. and then just DIED!
I could not boot..
I could not restore any nandroids..
I was getting "could not mount /data " error while trying to wipe data/partition.
Same while restoring nandroid backups.
But - today- I did as many 'wipes' as I could.. and then did a factory reset..
-- and VOILA!--
Phoenix bootanimation came on.. and the phone was back!!
Click to expand...
Click to collapse

No, it' absolutely unrelated.

Yikes..
_n0p_ said:
No, it' absolutely unrelated.
Click to expand...
Click to collapse
But, thank you for your reply..
I found a post somewhere whuch had exactly the same problem as mine.. will track what that guy did..
Thanks,
Sony.

Related

[Q] Clockworkmod hanging on backing up system...

I apologize if this has been covered in another thread but I have been doing multiple searches on XDA and in google trying to find a solution but so far no luck. Long time reader of XDA but first time poster.
Details -
I successfully used NVFLASH, loaded Clockworkmod 0.8 and loaded Vega-Ntab gingerbread edition (stable RC1 I believe its called). I have been running this for a month or so with no major issues but I want to test out Vega-Ntab 5.1 and Brilliant Corners. Thinking of going with 5.1 for the hardware acceleration for gaming etc. Oh I also received my new Gtab with bootloader 1.2 and I downgraded that to 1.1 successfully before loading Vega-Ntab gingerbread. I think I can handle loading the new roms etc (may have to switch to 1.2 for Brilliant Corners I believe) but I want to do a full backup before doing so with clockworkmod so I can go back to gingerbread if I decide I liked it the best. But clockworkmod will not do a backup for me. I have tried multiple times and it always freezes/hangs at the same point. On the screen I see
ClockworkMod Recovery v2.5.1.1-bekit-0.8
SD card space free: 9697MB
Backing up boot...
Backing up recovery...
Backing up system... and here it will go no further
I have let it set at that point for hours but nothing changes. I checked the clockworkmod backup folder and it has a folder dated the current date of the backup but the contents is only boot.img and recovery.img and nothing else so I think that confirms it really isnt completing the backup.
I am unsure what the cause or solution to this is. I thought about reloading clockworkmod 0.8 but I don't think I can do this since it's already loaded. I thought about loading a newer version but from what I have read gingerbread and the other 1.1 roms will not work with anything but 0.8. I could just do a melt and repour and just go back to stock level and load 5.1 or Brilliant Corners but then I lose any apps I have loaded. I am not concerned about the majority of them but I have loaded a couple good ones as of late from Amazon that were the free app of the day and I am unsure whether I can "reload" these at a later date without being forced to pay. I have also paid for a couple games but I am assuming I can reload those without issue. I did back up all of the apps I paid for and amazon games that I loaded that I got for free (normally have to pay) with titanium backup. So assuming I can restore these with titanium backup after loading brilliant corners or vegan 5.1 then I guess the only thing that I lose by not being able to do a full backup/restore with clockwork is that if I want to go back to gingerbread then I have to start from scratch for reloading the rom.
So is the problem I am having running the back up successfully a known issue that I just can't seem to find a discussion thread about?
Thanks in advance for any help or advice.
Boot into ClockworkMod Recovery and get me a dmesg output (kernel messages) using adb. See this post for how.
Attach the dmesg.txt to your next post.
thanks for the reply. Unfortunately I am not having any luck getting the dmesg.txt file for you. I downloaded the iso image for Knoppix 6 but when I boot off the disc it starts processing everything but then it gives an error "the file /mnt-system/knoppix/knoppix is broken. then after about 30 secs it gives the following
/sbin/init: line 76: syntax error near unexpected token '/usr/share/fonts/type1/gsfonts/a010013l.pfb'
/sbin/init: line 76: '/URWGothicL-Book (usr/share/fonts/type1/gsfonts/a010013l.pfb);
I will try and download the iso from a different site and burn another disc.
I also tried a different route and loaded SDK manager to get to ADB by that route. I am running windows 7 if that makes a difference. I am not 100% sure when I am supposed to run the adb command line you listed. Do I have my gtab running clockworkmod and then mount USB so it will show up on my pc? Do I have to try and perform a backup and then run the adb command when it freezes? I don't think I can do that because if I navigate away from the mount USB it automatically unmounts it. Anyway adb doesn't appear to be seeing the gtab anyway. When I run the SDK manager it does not find any android devices. If I run the "adb devices" command it comes back with no devices. So I am not sure what basic thing I am missing to get adb or SDK to recognize the gtab.
I apologize for my lack of knowledge on adb. Your first link says if I have adb already set up to run adb shell dmesg > dmesg.txt while in clockworkmod so I am assuming I do this after mounting USB to get the pc to recognize the gtab.
I will try download and burn another iso image from a different location and see if I can boot off a disc. Assuming this time it is successful do I run the ADB command you listed in the second link while the GTab is mounted to USB and recognized by the pc? Hopefully ADB will see it if I can get this to work.
*update* I downloaded the ISO image from a different location. When I went to the folder it was downloaded to I noticed that the first ISO image I downloaded was only approx 100MB in size instead of 700+ mb. So I am re-burning another disc. Hopefully this will allow me to boot properly.
*update #2* I was able to successfully boot off of the new disc. Now I just need to figure out how and where to enter the adb command line in your link ($ sudo ./adb shell dmesg > dmesg.txt) i tried this using the Shell option but it says command not found. If I choose the File Manager option and navigate to where the adb file is that was in your linked zip file it just prompts me to edit/copy/move/rename or delete the file. I am out of time tonight so I will work on it more tomorrow. The good news though is that when I use File Manager the Gtab is listed so it is at least recognized. Now I just need to figure out how to get the dmesg.txt file you request but making some progress... I think
ashton555 said:
*update #2* I was able to successfully boot off of the new disc. Now I just need to figure out how and where to enter the adb command line in your link ($ sudo ./adb shell dmesg > dmesg.txt)
Click to expand...
Click to collapse
Step by step instructions in this post.
thanks a bunch. Those instructions were easy to follow and made sense. I have never used linux before but alot of it reminded me back of my old unix days (terminal commands that is).
Anyway I think I did everything correct and I am now attaching the txt file.
Thanks again for your help and patience with this Linux newbie let me know if I need to provide any additional information.
ashton555 said:
Anyway I think I did everything correct and I am now attaching the txt file.
Click to expand...
Click to collapse
You did indeed. And I can't see any obvious problems with the NAND-flash device, judging from the kernel messages.
Since you've already tried to take backups using CWM before, that action should've created a log file. This file might be useful. Retrieve it. Inside an xterm window on Linux, run:
Code:
hostpc$ [B]sudo ./adb pull /cache/recovery/log recovery.log[/B]
Attach this "recovery.log" file.
Next, try to read, one by one, the NAND flash partitions that CWM usually backs up. Here's an example run on my gTablet:
Code:
hostpc$ [B]sudo ./adb shell[/B] [I]Get into the shell in CWM[/I]
~ # [B]dump_image boot /dev/null[/B]
~ # [B]dump_image recovery /dev/null[/B]
~ # [B]dump_image system /dev/null[/B]
mtd: read error at 0x029a0000 (I/O error)
mtd: read error at 0x02da0000 (I/O error)
~ # [B]dump_image cache /dev/null[/B]
~ #
Type in only the commands in bold.
As you can see, my "system" partition on the NAND flash has errors (and the kernel also report this when it boots), but, the command will not hang. According to the kernel message that you just supplied, you don't have any errors on your onboard NAND flash, so, theoretically, you shouldn't get any errors at all. But, we'll see if the dump_image command hangs when reading system just like CWM does.
And if the dump_image command does hang somewhere, we can see if formatting just that system partition will get it working again. There is a utility on this board which we could use for doing that, though I've never tried it.
I successfully completed the next two tasks. I am attaching the recovery.log file. Note I had an issue copying the .log file to where I could access it in win7 (for some reason I cant attach a file while in linux). I opened it with a word processor and then saved it to my c drive which messed up the formatting. So I opened it in Word to get the formatting correct and saved it as a txt file so thats why the attached file is recovery.txt. Let me know if it messed it up to where its not useable.
On the second task
~ # dump_image boot /dev/null
this worked fine and quick
~ # dump_image recovery /dev/null
this worked fine and quick
~ # dump_image system /dev/null
this worked but took maybe 10-15 seconds
~ # dump_image cache /dev/null
this one gave an I/O error but completed the dump
mtd: read error at 0x00080000 (I/O error)
ashton555 said:
Let me know if it messed it up to where its not useable.
Click to expand...
Click to collapse
The file is just fine... and I can't see any error messages in it.
~ # dump_image system /dev/null
this worked but took maybe 10-15 seconds
Click to expand...
Click to collapse
This is normal -- "system" partition is ~200MB.
~ # dump_image cache /dev/null
this one gave an I/O error but completed the dump
mtd: read error at 0x00080000 (I/O error)
Click to expand...
Click to collapse
This also looks like normal behaviour, but, I'm puzzled that the kernel did not report any bad blocks on this partition. Check if this is a transient error:
1. Repeat the "dump_image cache ..." command a few times and see if the I/O error location is the same.
2. Try to "fix" the error on the cache partition by using the "wipe cache partition" menu item in CWM. Do this a couple of times.
3. Run the "dump_image cache ..." command again.
4. Attempt another full system backup using CWM.
If step 4 fails, we'll see if the writing of the backup to the sdcard is the problem, because the reading seems to be completing without any hangs as of now.
BTW, the most important partitions are all being read fine. The "cache" partition is not that important -- it can be empty (but not corrupt) each time the system boots and only the initial bootup might go a little slower.
And, if, in the end of all this, you can't use CWM at all, you can still make a full system backup using nvflash and a few Unix commands.
1. Repeat the "dump_image cache ..." command a few times and see if the I/O error location is the same
....i did the dump 4 times and it always gave the same I/O location
2. Try to "fix" the error on the cache partition by using the "wipe cache partition" menu item in CWM. Do this a couple of times
.... I wiped the cache 4 times successsfully
3. Run the "dump_image cache ..." command again.
.... same I/O error location
4. Attempt another full system backup using CWM
.... still freezing at backing up system
So I guess I need to try and do the backup with NVFlash and unix/linux commands? If you have a link on how to do that I will give it a try or I can search for it and see if there is a discussion thread on it.
Thanks again for your help and trying to resolve this
Question - if I started over from scratch and went back to stock and then loaded vegan gingerbread would this issue possibly correct itself? Also more importantly if I back up some apps using titanium backup before I go back to stock can I then restore them with Titanium once I have vegan ginger back loaded? Also if I loaded vegan 5.1.1 could I restore the same apps I backed up in vegan ginger? Hopefully that made sense. I don't mind starting from scratch if I need to I just wasnt sure if I would permanently lose certain apps I have loaded. It's only about 10 apps I care about
*update* - well I think I am going to be forced to start over anyway. After wiping the cache a couple times and attempting another backup (froze again at backing up system) I now can't get the gtab to boot completely. It is stuck at the flashing vegan ginger edition screen. It flashes for awhile then the screen goes black then it goes back to the flashing screen again. I know you said it would take longer to boot up the first time after wiping the cache but was doing the flash cycling for over an hour which I assume is too long? I tried wiping the cache again and I also wiped the davlik cache as someone suggested in another thread but it is back to being stuck in the flashing screen loop. Assuming I do have to start over can I at least boot to CWM, mount ext USB and copy off the titanium backup files I made so I can restore some of the paid for apps?
ashton555 said:
3. Run the "dump_image cache ..." command again.
.... same I/O error location
Click to expand...
Click to collapse
Looks like a permanent I/O error in the cache partition, then. But, I don't understand why it is "system" which is hanging on backup.
4. Attempt another full system backup using CWM
.... still freezing at backing up system
Click to expand...
Click to collapse
Get me the recovery.log.
So I guess I need to try and do the backup with NVFlash and unix/linux commands?
Click to expand...
Click to collapse
I'll think this over during the weekend. In the mean-time, read through this thread. You can safely take a complete backup of your tablet while I do a bit of experimentation on a clockworkmod-like solution. But, I suspect that you may not be able to backup "cache" using nvflash going by the I/O errors. I have errors on my "system" partition and a nvflash backup fails on it, but CWM doesn't have any problems backing up and restoring.
Question - if I started over from scratch and went back to stock and then loaded vegan gingerbread would this issue possibly correct itself?
Click to expand...
Click to collapse
Probably not. But, see this thread. It shows you how to wipe all the partitions on the NAND flash device. We don't need to format the entire NAND flash. We can see if doing a few repeated formats of the "system" and "cache" partitions gets CWM working again, if you're willing to wipe "system"--you will have to load Vegan-Ginger right after this.
Also more importantly if I back up some apps using titanium backup before I go back to stock can I then restore them with Titanium once I have vegan ginger back loaded? Also if I loaded vegan 5.1.1 could I restore the same apps I backed up in vegan ginger? Hopefully that made sense. I don't mind starting from scratch if I need to I just wasnt sure if I would permanently lose certain apps I have loaded. It's only about 10 apps I care about
Click to expand...
Click to collapse
I haven't used Titanium backup so I can't say how well it works, but, judging from the reports that other users have made, what you're suggesting should work without any problems. User downloaded applications are stored either on /data or on /mnt/sdcard (for apps moved to SD card). Since your SD cards don't seem to be affected, you can go ahead with Titanium backup.
ashton555 said:
Assuming I do have to start over can I at least boot to CWM, mount ext USB and copy off the titanium backup files I made so I can restore some of the paid for apps?
Click to expand...
Click to collapse
Yeah, copy the files in CWM, then just do a "wipe data/factory reset" and see if it boot loop goes away.
But, before you do that, gimme a half-hour and I'll send you commands which you can use to save the files in /data and /sdcard. I just have to compile and test a new version of busybox. The tar command already present in CWM doesn't seem to work properly for me.
Attaching the recovery file
I am running the nvflash back up right now.
It successfully did part-1.img through part-11.img with no errors. The last thing it said though is
"rem CACHE PARTITION BACKUP NOT NEEDED
"nvflash.exe" -r --read 12 part-12.img
press enter to continue
Is this maybe because I wiped the cache and it's empty?
I looked on my ext SD card and the titanium backup files are there (except for a couple I had forgotten do ....) so I think I am okay for going back to square one if need be.
I will go ahead (tomorrow probably) try doing what is described thread about wiping partitions on the NAND device and just formating the system and cache partitions. I am assuming that at this point I guess its okay to go ahead and try to load vegan tab 5.1.1 instead of ginger again since I wanted to try out 5.1.1 anyway or if you have any experience with it would you recommend Brilliant Corners instead since its a newer rom. I think I will have to reload the 1.2 bootloader which is okay.
ashton555 said:
Attaching the recovery file
Click to expand...
Click to collapse
No errors in there.
The last thing it said though is
"rem CACHE PARTITION BACKUP NOT NEEDED
"nvflash.exe" -r --read 12 part-12.img
press enter to continue
Is this maybe because I wiped the cache and it's empty?
Click to expand...
Click to collapse
I think so. The cache partition isn't that important anyway, so it can be skipped.
I will go ahead (tomorrow probably) try doing what is described thread about wiping partitions on the NAND device and just formating the system and cache partitions.
Click to expand...
Click to collapse
I would suggest that you copy the Titanium backed-up apps safely away immediately, then format just the system and cache partitions as per that thread. You will need to be in APX mode to use nvflash.
Immediately after the nvflash, (since the system partition is now gone), boot into CWM, then do a factory reset, repartition the internal sdcard, copy the Vegan-5.1.1 update file onto the now clean sdcard through the PC and then flash it. This should give you a clean slate.
Then check if you can do a backup using CWM. If you still can't, then I'll see if a solution can be devised to do partial backups.
And, I have tried neither Vegan* nor Brilliant Corners, so the choice is up to you.
Sorry, my test commands aren't working so I can't send you those commands I promised to back up your /data and /system--I suspect a bad USB cable.

[Q] Asus Prime bricked (Type 3): Donation if you can help me

Welp, after spending over 26 honest-to-God hours researching a "cure" for this, I am still without a solution. I hope a kind soul will be able to guide me to the light, because I have been unable to find it on my own.
I am going to try to be as through as possible, if for nothing else than doing a mental checklist to see if I missed some obvious step along the journey. Also, maybe a keen observer will be able to spot what I'm doing wrong.
So,
My Asus Prime is bricked. I'm stuck on scenario 3 (according to this post:http://forum.xda-developers.com/showthread.php?t=1514088&)
In chronological order, here's what happened:
1. I'm running Virtuous Prime 1.0
2. I flash ClockworkMod Recovery Touch v5.8.1.8
3. I rebooted into recovery and wiped data/factory reset, cache, dalvik cache
4. I performed a backup of my old ROM
5. I flashed a new ROM, then hit 'reboot system now'
6. I'm stuck at the Asus logo screen; Android won't boot.
I am able to access recovery and activate Fastboot mode; definitely scenario 3.
Then, also in chronological order:
1. I restarted the tablet, pressed the up volume key and accessed the other menu with 3 options
2. I hit the 'wipe data' option
3. Try to boot Android
4. Still stuck at the 3 option screen
From what I read, this situation is likely the result of clockworkMod Recovery flashing a bad kernel. Supposedly, it can fixed by flashing a 'good' kernel via fastboot, which requires both a "stock kernel" and a more recent clockwork mod recovery image.
I downloaded the SDK package and downloaded pretty much everything, including the USB drivers. I downloaded a stock kernel called stock_9.4.2.21_kernel-signed and a CWM recovery image and placed them inside the "tools" folder.
I opened a command window and while having the tablet plugged in, typed 'adb devices'. I get 'List of devices attached' but then a blank space.
Here's what happened next:
1. I re-plugged in the tablet in Recovery mode to my AMD X64 Windows 7 PC and got an "USB device not recognized" message.
2. I went to Device Manager and under "Universal serial bus controllers" I see a yellow triangle mark besides an "unknown device" option.
3. Right click on "unknown device" and try to update the drivers manually using the Universal_Naked_Driver_Beta_0.6.1
4. When I select the folder in which the drivers are located Windows gives me a message of "the best driver software for your device is already installed". Back to step 3.
5. I try "let me pick from a list of device drivers on my computer" and hit "have disk option"
6. Upon choosing the android_apxusb file inside the universal naked drivers folder, I get the following error: "the folder you specified doesn't contain a compatible software driver for your device (...) make sure it is designed to work with Windows for x64-based systems."
7. Try again this time choosing file android_apxusb; same error.
I heard that some Windows 7 x64 users are having issues installing drivers; that may be my case too. I, however, don't have access to any other Window or Macs or Linux PCs in my house. Still, if this is the issue, then I might try redoing things in a different PC at a friend's house or something.
Bottom line? I think I know what to do, but I can't install the universal naked (nor the official Asus Prime) drivers. What now? Is there an easy fix for Brick scenario 3?
I have read God knows how many discussions on the subject, but I haven't been able to find a solution to my issue. I got no support from Freenode #asus-transformer; some ops were even downright rude. Any help is greatly appreciated.
For what is worth, I'll be donating $50 to whoever is able to help me navigate through this issue and get my tablet back and running.
Thanks again for reading this far.
TL;DR: I bricked my Prime and I'm stuck in scenario 3. I will donate $50 dollars to whoever can help me unbrick it.
Hey,
try to get a Live CD like Ubuntu.
Get the Linux files from the ViperMOD thread. It includes the "adb" executable.
Try to get ADB running there.
Go to the freenode IRC Channel "#asus-transformer" on Freenode (http://webchat.freenode.net/?channels=asus-transformer) and ask for help like described in the unbrick thread!
Greetz
Edit: No need for donate!
hanzo001 said:
3. I rebooted into recovery and wiped data/factory reset, cache, dalvik cache
4. I performed a backup of my old ROM
Click to expand...
Click to collapse
In that order? So you backed up an empty rom?
You don't mention; do you have valid nandroid backup? Can you restore it?
Do you have a rom zip on your device? What happens if you wipe and re-flash?
I would suggest a couple of options.
I notice that you have not once (according to what you have written) formatted /System if you still have a good ROM on your memory card that is flashable I would format all partitions in recovery /System, /Cache, /Staging and /Data then reflash the ROM.
You could also try an advanced restore and flash only the boot image from your nandroid.
Also, I have to agree with chrischdi, there is no need for a bounty for this. Your problem is one of the reasons we are all here in the first place.
Thanks for your answer; I'll answer yours
djmcnz said:
In that order? So you backed up an empty rom?
You don't mention; do you have valid nandroid backup? Can you restore it?
Do you have a rom zip on your device? What happens if you wipe and re-flash?
Click to expand...
Click to collapse
1. Yes, in that order; I backed an empty ROM
2. No, I don't have a valid nandroid backup (go figure; just this single freaking time I forgot to backup before wiping data/cache/dalvik cache)
3. No other ROM on my device. I had a new ROM when I performed the flashing, but when I got to the point where I hit "deleate data" in the 3-option menu, I lost everything on the SD card
4. When I wipe and reflash I'm stuck on the same loop. Maybe flashing a 'good' ROM will fix it; the issue is, my PC doesn't know what I'm plugging in when I connect the tablet to it.
Thank you for your support
Thank you, I'll try a Live CD. I'm downloading now even as we speak.
When that's finished, I'll grab the Linux files.
I guess that sorts of confirms my hypothesis that my main issue is with Windows... *sigh* WINDOWS!
I tried getting help from freenode's #asus-transformer in the past, but... lets say that on the overall my experience could have been better. I'll try again later tonight, where hopefully I'll be able to talk to RaYmAn, a volunteer in the original Diamonback post who is offering supports to users in my specific situation.
By the way, thanks for pointing me with a clickable link to the IRC chat; I've never used IRC before in my life, and getting it to work, dumb as it may sound, took me quite to figure out. Thank you again for your help and support!
chrischdi said:
try to get a Live CD like Ubuntu.
Get the Linux files from the ViperMOD thread. It includes the "adb" executable.
Try to get ADB running there.
Click to expand...
Click to collapse
Thank you for your answer. It is really nice to have a helpful person around; Like I mentioned in my op, my experience on freenodes' #asus-transformer chat was a bit... discouraging. I figured most would want some form of payment for their time, but here you both are, proving that there is kindness in this world.
I'll address your comments:
1. I did wipe /System; after NOTHING I tried on recovery worked, I did manual wiping of everything, trying to boot each time; similar results.
2. I do not have a good ROM on the memory card. Before doing the 'wipe data' from the 3-option menu, re-flashing a good ROM did no good nevertheless. From here is where I started suspecting that it was the fault of CWM not flashing a proper kernel.
3. I tried the advanced restore as well, an like in #1, I tried rebooting each time, just to make sure it would work. But it didn't.
Thank you again for your support. It feels great to know there's someone backing you up out of the goodness of their heart.
Right now I'll try to redo my steps from a Live CD Linux environment; hopefully that'll work. Freaking Windows...
Doktaphex said:
I would suggest a couple of options.
I notice that you have not once (according to what you have written) formatted /System if you still have a good ROM on your memory card that is flashable I would format all partitions in recovery /System, /Cache, /Staging and /Data then reflash the ROM.
You could also try an advanced restore and flash only the boot image from your nandroid.
Also, I have to agree with chrischdi, there is no need for a bounty for this. Your problem is one of the reasons we are all here in the first place.
Click to expand...
Click to collapse
Thank for your support, guys
I just wanted to shout out a big thanks to the great people who have offered me suggestions regarding this issue. I'll re-do my steps this time from inside the Live CD version of Ubuntu later tonight, and I will update.
Best regards,
me
hanzo001 said:
I just wanted to shout out a big thanks to the great people who have offered me suggestions regarding this issue. I'll re-do my steps this time from inside the Live CD version of Ubuntu later tonight, and I will update.
Best regards,
me
Click to expand...
Click to collapse
Hope it works out for the best, life is better with a little Nix in it.
What if you load a rom like aokp onto an external SD then flash that? That flashes everything you would need. Then if you want to back to virtuous you could restore the stock boot img. Im tired and I'm probably not understanding the issue correctly so forgive me if that is indeed the case.
Sent from my MB870 using xda premium
CadenH said:
What if you load a rom like aokp onto an external SD then flash that? That flashes everything you would need. Then if you want to back to virtuous you could restore the stock boot img. Im tired and I'm probably not understanding the issue correctly so forgive me if that is indeed the case.
Sent from my MB870 using xda premium
Click to expand...
Click to collapse
You cannot use an external SDcard with any version of CWM for the Prime.
CadenH said:
What if you load a rom like aokp onto an external SD then flash that? That flashes everything you would need. Then if you want to back to virtuous you could restore the stock boot img. Im tired and I'm probably not understanding the issue correctly so forgive me if that is indeed the case.
Sent from my MB870 using xda premium
Click to expand...
Click to collapse
Thanks for the thought. I tried that too; for some reason, ClockworkMod Recovery won't read the SD card at all!
Linux
[Update]
In general, this could be going better.
I finally got Ubuntu.
I plugged in the tablet while (the tablet is) on recovery mode, and nothing happens.
I was expecting a pop-up menu, or a notification somewhere acknowledging that I connected a device to the PC, but nothing. I'm just going to assume that Linux somehow knows.
I then downloaded the Android SDK for Linux, unziped, and there's no executable file inside. I'm supposed to download the rest of the file via the terminal, apparently, but this one doesn't work like its Windows counterpart either, so I have no clue what to do now.
Jesus...
Bottom line: I'm in Linux, I downloaded the Android SDK, the universal naked drivers and a stock kernel. Now what?
Try to get ADB running in the recovery mode.
In the files of ViperMOD are the executables. Just open up a console / shell and go to the directory via the "cd" command.
Then in the ViperMOD directory execute "sudo ./adb shell" to try the adb connection.
If the adb connection is ok, mount the sdcard via Recovery Menu and then push a file / rom to the sdcard.
For example with the command:
"sudo ./adb push /media/rom.zip /sdcard/"
(I don't know if this are the correct paths.)
Greetz
Thank you, Chris.
While on the terminal, I'm inside the viperMOD folder. Whenever I try execute "sudo ./adb shell" I get this: "sudo ./adb: order not found"
The tablet is plugged in, and in recovery mode.
I haven't installed Java nor the Android SDK because I haven't figured out a way to do it --why can't Linux be double-click action-oriented? *sigh* Anyway, does not having those things installed have something to do with the answer I'm getting from the Terminal?
If so, how in the world do I install them?
I'm never using Touch Recovery again, my word.
Thanks in advance.
Hey,
are you sure that there is "order not found?"
Try the command "ls" to see what files are available. If there is one, called "adb" you are in the right directory. If there is no "adb" then you have to move to the right directory.
Maybe you could try a "chmod +x adb" first and then execute "sudo adb shell" or such if you are in the right directory.
This is going to sound like a stupid question and sorry if it does. but you can access clockwork still right? what happens when you try to flash back your backup? This is important because I had an error sort of like yours that no one could solve here want to make sure its what happened to me. When i tried to restore the original rom it would get to the part where it was restoring data partition and then error on me reading file or something like that. If thats what you see i know the answer. or at least how i fixed mine.
push a rom
Read NIlsonf post about how to adb push a rom to cwm, you get a stock rooted rom
And adb push the blob file, then run the dd command, unmount staging mount data.
This is what fixed mine, and it looks like it fixed nilsonf's also.
Was this ever resolved? I have the same issue and it looks like I've been through many of the same steps as you've gone through. If you were able to do anything to fix it, please let me know.
I would even up the reward to $100.
Just thinking
Why dont you get someone elses CWM backup and adb push it to the device and restore it from that?

Sort of Bricked Nook

I was doing a factory reset to clean install one of the CM10.1 release candidates and I went into Mounts and Storage and I accidentally formatted ROM instead of System. Now Cyanoboot keeps going into CWM and won't boot my rom. I flashed a different rom and I also restored from backup but neither did the trick. Any tricks that can get my dear old Nook booted? Any help would be greatly appreciated. (My last resort is one of those lengthy unbrick posts if there's no way to fix it. I've done these before but if there is an easier solution I'd like to try that first.)
I am familiar with adb (and ubuntu if need be).
Do you know the serial number? Like when you use adb, and you type adb devices, it shows a serial number. Did you write it down? I have a backup of the ROM partition and it includes a few files in there containing serial and mac address, etc. The serial number is important for it to boot AFAIK, so I hope you have that somewhere.
sagirfahmid3 said:
Do you know the serial number? Like when you use adb, and you type adb devices, it shows a serial number. Did you write it down? I have a backup of the ROM partition and it includes a few files in there containing serial and mac address, etc. The serial number is important for it to boot AFAIK, so I hope you have that somewhere.
Click to expand...
Click to collapse
I have the serial number (behind the microsd card slot)..but not the mac address
Also, I only wiped the ROM and system partitions. The factory partition is still there untouched and I've read somewhere that it contains a backup of the information in the ROM partition.
adb devices shows a serial number of abcdef123456789.
Not exactly a good sign...Should I try so****e's serial number recovery thing through ubuntu?
If what you had re-formatted by mistake is /rom but your /factory is still intact then not all was lost, as /factory holds romdata.zip which is a backup archive of data files in /rom (see http://forum.xda-developers.com/showpost.php?p=37515697&postcount=31 for more elaboration).
What you can try is to flash stock recovery (e.g., flash_stock_recovery.zip from Succulent's repo https://github.com/succulent/acclaim_recovery_sdcard), then do the "8 failed reboots" to trigger a "factory reset to stock".
Can you try to use adb from CWM? Try "adb pull /factory" and see if it copies over the factory folder to your computer.
digixmax said:
If what you had re-formatted by mistake is /rom but your /factory is still intact then not all was lost, as /factory holds romdata.zip which is a backup archive of data files in /rom (see http://forum.xda-developers.com/showpost.php?p=37515697&postcount=31 for more elaboration).
What you can try is to flash stock recovery (e.g., flash_stock_recovery.zip from Succulent's repo https://github.com/succulent/acclaim_recovery_sdcard), then do the "8 failed reboots" to trigger a "factory reset to stock".
Click to expand...
Click to collapse
Factory is definitely in tact; only rom was formatted (I figured factory was important so I didn't want to format it.) I'll try this after and let you know. I'm going to manually flash partition 5 onto my nook through adb and see if that can get me up and running.
sagirfahmid3 said:
Can you try to use adb from CWM? Try "adb pull /factory" and see if it copies over the factory folder to your computer.
Click to expand...
Click to collapse
pull: building file list...
0 files pulled. 0 files skipped.
This was through command prompt/adb in Windows 7. Should I try Ubuntu?
topdawg7793 said:
pull: building file list...
0 files pulled. 0 files skipped.
This was through command prompt/adb in Windows 7. Should I try Ubuntu?
Click to expand...
Click to collapse
You need to mount the /factory partition before you can access it.
Why not do it the easy way: just flash stock recovery and let it restore the missing data as part of the "8 failed boots" factory reset process?
digixmax said:
You need to mount the /factory partition before you can access it.
Why not do it the easy way: just flash stock recovery and let it restore the missing data as part of the "8 failed boots" factory reset process?
Click to expand...
Click to collapse
I had no clue it fixed the missing data! Just did it and I'm back to a working nook. Appreciate the help everybody!
So what did you do to finally get it fixed? Flash stock recovery and do the 8 failed reboots method?
sagirfahmid3 said:
So what did you do to finally get it fixed? Flash stock recovery and do the 8 failed reboots method?
Click to expand...
Click to collapse
I know I'm slightly late on this, but I figure I should at least respond so any poor soul who gets into the same situation and sees this thread can have some go-to solution. I never got to do the partition thing through adb (use somebody's ROM partition and change the serial number and mac address to that of my Nook) so I booted an SDcard version of some CM10 nightly and then used the touchscreen firmware flasher to restore to the factory firmware. Then I took out the SDcard and did the 8 reboots thing and that finally fixed it.
NOTE: NEVER GO BACK TO STOCK WHILE ON THE 10-TOUCH FIRMWARE. YOUR TOUCHSCREEN WILL NOT WORK AND YOU WILL EFFECTIVELY BE STUCK UNTIL YOU BOOT OFF AN SDCARD AND RESTORE THE FACTORY TOUCHSCREEN FIRMWARE.
topdawg7793 said:
I had no clue it fixed the missing data! Just did it and I'm back to a working nook. Appreciate the help everybody!
Click to expand...
Click to collapse
lol well now i know wut to do if i accidentally format rom. cheers every1 who helped topdawg :highfive:

[Q] stock unrooted at&t sgh-i777 stuck in boot loop. can I pull contacts, sms, memos

[Q] stock unrooted at&t sgh-i777 stuck in boot loop. can I pull contacts, sms, memos
Hello folks,
I have a stock, unrooted AT&T SGH-i777 which is stuck in a 'boot loop' - on power on, I see 'Samsung Galaxy SII' blink infinitely.
The good news is that I can go into download mode as well as recovery mode. I can also connect via adb from my win7 machine.
I was able to pull camera files (pics/vids) from /sdcard/DCIM and whatsapp data (/sdcard/WhatsApp/) using adb pull.
I want to backup (or pull) my contact and sms data (it wasn't synced on phone) as well. However I'm not able to. Do I need to root the phone to use adb for this? If so, how do I root the phone?
Alternatively is there is another way to restore the phone to working condition without losing my contacts and sms data?
I tried rooting it using the 'Easy Rooting Toolkit' v2.0 by DooMLoRD modified by Max Lee @ GalaxyS2Root.com but the runme.bat starts adb and then hangs there indefinitely.
Any help would be appreciated.
Thank you,
Hammad.
...Whether this works on an Unrooted device, I am not sure, but the goal is to install custom firmware onto a stock device without formatting the data partition (where your sms/contacts/other data are kept)...
Use desktop ODIN to flash a custom kernel/recovery
perform a nandroid backup (via custom kernel/recovery)**
install Samsung-based firmware (cooked or shostock) via custom recovery***
**creates a snapshot of the nand memory module, where everything is stored. Once a working setup is established, Titanium backup (among other tools) can extract contacts, wifi settings, sms & mms messages, etc from this nandroid backup even if you have to conduct a factory reset, in the process of restoring the device.
***this "dirty flash" approach which will hopefully allow you to boot into the device, and backup what you need.
This process has been used recently in a similar scenario, and is fully detailed in another thread:
http://forum.xda-developers.com/galaxy-s2-att/help/phone-wont-boot-to-restore-deleted-file-t2827622
-Cyril
hsophie said:
Hello folks,
I have a stock, unrooted AT&T SGH-i777 which is stuck in a 'boot loop' - on power on, I see 'Samsung Galaxy SII' blink infinitely.
The good news is that I can go into download mode as well as recovery mode. I can also connect via adb from my win7 machine.
I was able to pull camera files (pics/vids) from /sdcard/DCIM and whatsapp data (/sdcard/WhatsApp/) using adb pull.
I want to backup (or pull) my contact and sms data (it wasn't synced on phone) as well. However I'm not able to. Do I need to root the phone to use adb for this? If so, how do I root the phone?
Alternatively is there is another way to restore the phone to working condition without losing my contacts and sms data?
I tried rooting it using the 'Easy Rooting Toolkit' v2.0 by DooMLoRD modified by Max Lee @ GalaxyS2Root.com but the runme.bat starts adb and then hangs there indefinitely.
Any help would be appreciated.
Thank you,
Hammad.
Click to expand...
Click to collapse
Thank you Cyril279 for your response. I had a few questions/clarifications since I'm a complete newbie when it comes to flashing/ROMs/rooting/android:
My Android version is Gingerbread 2.3.x. I never upgraded it since I bought it in mid Feb 2012.
cyril279 said:
...Whether this works on an Unrooted device, I am not sure, but the goal is to install custom firmware onto a stock device without formatting the data partition (where your sms/contacts/other data are kept)...
Click to expand...
Click to collapse
I'm new to this stuff so I want to make sure that I state things correctly. By unrooted, I mean my device has never ever been rooted. It is stock in all ways from AT&T. Does that change anything?
cyril279 said:
Use desktop ODIN to flash a custom kernel/recovery
perform a nandroid backup (via custom kernel/recovery)**
install Samsung-based firmware (cooked or shostock) via custom recovery***
**creates a snapshot of the nand memory module, where everything is stored. Once a working setup is established, Titanium backup (among other tools) can extract contacts, wifi settings, sms & mms messages, etc from this nandroid backup even if you have to conduct a factory reset, in the process of restoring the device.
***this "dirty flash" approach which will hopefully allow you to boot into the device, and backup what you need.
This process has been used recently in a similar scenario, and is fully detailed in another thread:
http://forum.xda-developers.com/galaxy-s2-att/help/phone-wont-boot-to-restore-deleted-file-t2827622
-Cyril
Click to expand...
Click to collapse
I read through the thread that you linked to. I want to make sure I understand what I need to do is in:
A. message #5: get ODIN and siyah kernels.
Questions: The Siyah website says that the kernel is for i9100 on JB. Should I still use that one even though my phone is the SGH-I777 and on Gingerbread? Will this upgrade the kernel to JellyBean?
B. message #7: do steps 1,2,3,6,7; (skip 4,5).
Question: Step 6 states '...rooted android'. My phone is not rooted. Will it get rooted as part of A?
Thank you for your patience with me.
Hammad.
Hey guys I'm looking for help with the same issue.. If I had twrp or cwm I'd be good but this phone is my daughters and has not been brought over to the dark side..
This is the problem. Yesterday she came to me and her phone was bootlooping the samsung logo. So I've tried to pull the battery, master reset and call att with no luck. :thumbdown:
I'm wondering since I'm in bootloop and no custom recovery can I maybe flash a custom rom or stock rom to this with the same method..
Thanks Any advice is well appreciated...
I need to get this fixed ASAP. My daughter is two young to be home alone with no phone.....
Sent from my SM-G900A using Xparent BlueTapatalk 2
In this case, we are only using the recovery portion of the kernel, so it doesn't matter that it's for an i9100. There are other .tar versions that are designed specifically for the i777, I just didn't search for them.
I haven't tried this procedure on a never-rooted device, but I expect that it works. Perhaps one of our peers will chime in if they know better, otherwise if you're willing to wait a couple days, I will try the complete procedure out on my own i777, starting from gingerbread.
As long as you can get into download mode, and you DO NOT perform a factory reset, then the prognosis for data recovery is good.
In the meantime, in may be helpful to familiarize yourself with the use of desktop odin.
-Cyril
hsophie said:
Thank you Cyril279 for your response. I had a few questions/clarifications since I'm a complete newbie when it comes to flashing/ROMs/rooting/android:
My Android version is Gingerbread 2.3.x. I never upgraded it since I bought it in mid Feb 2012.
I'm new to this stuff so I want to make sure that I state things correctly. By unrooted, I mean my device has never ever been rooted. It is stock in all ways from AT&T. Does that change anything?
I read through the thread that you linked to. I want to make sure I understand what I need to do is in:
A. message #5: get ODIN and siyah kernels.
Questions: The Siyah website says that the kernel is for i9100 on JB. Should I still use that one even though my phone is the SGH-I777 and on Gingerbread? Will this upgrade the kernel to JellyBean?
B. message #7: do steps 1,2,3,6,7; (skip 4,5).
Question: Step 6 states '...rooted android'. My phone is not rooted. Will it get rooted as part of A?
Thank you for your patience with me.
Hammad.
Click to expand...
Click to collapse
---------- Post added at 04:51 PM ---------- Previous post was at 04:47 PM ----------
"master reset"? = factory reset?
If so, then you're not worried about the recovery of any data, and the easiest path is to use desktop Odin to flash the stock i777UCMD8 firmware onto your I777. That firmware can be found here:
http://forum.xda-developers.com/showpost.php?p=20229527&postcount=46
JEZZEJAMEZ said:
Hey guys I'm looking for help with the same issue.. If I had twrp or cwm I'd be good but this phone is my daughters and has not been brought over to the dark side..
This is the problem. Yesterday she came to me and her phone was bootlooping the samsung logo. So I've tried to pull the battery, master reset and call att with no luck. :thumbdown:
I'm wondering since I'm in bootloop and no custom recovery can I maybe flash a custom rom or stock rom to this with the same method..
Thanks Any advice is well appreciated...
I need to get this fixed ASAP. My daughter is two young to be home alone with no phone.....
Sent from my SM-G900A using Xparent BlueTapatalk 2
Click to expand...
Click to collapse
cyril279 said:
In this case, we are only using the recovery portion of the kernel, so it doesn't matter that it's for an i9100. There are other .tar versions that are designed specifically for the i777, I just didn't search for them.
I haven't tried this procedure on a never-rooted device, but I expect that it works. Perhaps one of our peers will chime in if they know better, otherwise if you're willing to wait a couple days, I will try the complete procedure out on my own i777, starting from gingerbread.
As long as you can get into download mode, and you DO NOT perform a factory reset, then the prognosis for data recovery is good.
In the meantime, in may be helpful to familiarize yourself with the use of desktop odin.
-Cyril
Click to expand...
Click to collapse
Thank you once again Cyril279. I'll familiarize myself with ODIN. I'm not in a hurry since I have a replacement phone. I just want to make sure I can get my data and restore my device. Where can I find kernel for i777?
Hammad.
Thanks, my wife is all over my azz. School is about to start, with our busy schedules she's(daughter) home alone alot. As many others we don't have a land phone.. ...
Sent from my SM-G900A using Xparent BlueTapatalk 2
hsophie said:
Where can I find kernel for i777?
Click to expand...
Click to collapse
Siyah for 2.3.x. There is a tar version.
hsophie said:
Thank you Cyril279 for your response. I had a few questions/clarifications since I'm a complete newbie when it comes to flashing/ROMs/rooting/android:
My Android version is Gingerbread 2.3.x. I never upgraded it since I bought it in mid Feb 2012.
I'm new to this stuff so I want to make sure that I state things correctly. By unrooted, I mean my device has never ever been rooted. It is stock in all ways from AT&T. Does that change anything?
Click to expand...
Click to collapse
No, that does not change anything for this excersize.
hsophie said:
I read through the thread that you linked to. I want to make sure I understand what I need to do is in:
A. message #5: get ODIN and siyah kernels.
Questions: The Siyah website says that the kernel is for i9100 on JB. Should I still use that one even though my phone is the SGH-I777 and on Gingerbread? Will this upgrade the kernel to JellyBean?
Click to expand...
Click to collapse
The initial kernel flash (step 1) is only for the custom recovery. It will be overwritten by a more appropriate kernel later, when we flash the firmware.
Regarding kernel choice, there are usually two major considerations: what device, and what firmware version is it designed for. An i9100 kernel will boot an i777 into recovery without issue. Since this process won't be using the initial kernel to boot into android, we are not limited to specific versions of i9100 or i777 kernels. We only need to find a .tar version for use with desktop Odin.
--that said--
If you do use an i777 version that is designed for android 2.3.x (thanks @creepyncrawly), then you have the option of booting into Android once the kernel is flashed.
hsophie said:
B. message #7: do steps 1,2,3,6,7; (skip 4,5).
Question: Step 6 states '...rooted android'. My phone is not rooted. Will it get rooted as part of A?
[...]
Click to expand...
Click to collapse
Desktop Odin uses root-level access to install firmware (whether stock or custom), so establishing root-access prior, or as a separate step is not necessary when using this method to install custom firmware.
Our process will be different than that shown in message #7, since we are not trying to manually repair the system. We will be attempting the dirty-flash method which involves the first few steps of message #7, and more from message #11.
Process:
0.5) Save custom Samsung-based firmware (cooked v2.2 or shostock3) onto internal memory or sdcard
1) Use desktop Odin to flash Siyah kernel
^^ Installs a kernel/recovery that will allow you to perform a nandroid backup, and flash firmware.
^^This WILL change the initial boot screen (can be corrected later, but does not affect the function of the firmware), and will notch the flash counter (simply doesn't matter).
2) Boot to recovery
3) Create nandroid backup
^^ If things go sideways, you have a snapshot of where you are. If you have to start from scratch, there are apps that can restore Apps, settings, and more, from a backup.
4) Install custom Samsung-based Firmware
^^ Restores the original file-system, without overwriting the /data partition.
5) Attempt boot into android
-Success?
Thank you for your detailed response Cyril279.
For confirmation, I will:
0. use the shostock3 v2.3a firmware from here. I'm assuming that getting it onto the device will require connecting via adb, use adb shell to mkdir and then push the unzipped contents to a directory such as /sdcard/shostock3v23a/
1a. install Desktop ODIN 1.85 or 3.07.
b. use Odin to flash the Siyah-v2.6.14-att.tar mentioned by creepyncrawly [have to read how to do this]
2. boot to recovery
3. create nandroid backup.
Q: Is there a way to exclude the DCIM folder during backup or delete all my pics from the camera before backup since I already have backed all content from /sdcard/DCIM (camera). It was 5.5gb? I'm also assuming that the backup will be created on the phone itself so it has to have enough space on it to hold the backup.
4. Install shostock3 v2.3a [have to read how to do this]
5. hopefully boot successfully into my phone.
cyril279 said:
Process:
0.5) Save custom Samsung-based firmware (cooked v2.2 or shostock3) onto internal memory or sdcard
1) Use desktop Odin to flash Siyah kernel
^^ Installs a kernel/recovery that will allow you to perform a nandroid backup, and flash firmware.
^^This WILL change the initial boot screen (can be corrected later, but does not affect the function of the firmware), and will notch the flash counter (simply doesn't matter).
2) Boot to recovery
3) Create nandroid backup
^^ If things go sideways, you have a snapshot of where you are. If you have to start from scratch, there are apps that can restore Apps, settings, and more, from a backup.
4) Install custom Samsung-based Firmware
^^ Restores the original file-system, without overwriting the /data partition.
5) Attempt boot into android
-Success?
Click to expand...
Click to collapse
Close, you're close.
Regarding getting the firmware onto the device, the easiest method is to save the files on a micro sd card via PC (formatted as fat32), then insert the card into the device. Otherwise yes, adb push will get it there as well.
0 Use the shostock from the first post of that thread (420mb). The "version 2.3a" that you mention is just a kernel.
1a. install Desktop ODIN 1.85 or 3.07
1b Use Odin to flash the siyah.tar mentioned by creepyncrawly.
desktop Odin use: http://forum.xda-developers.com/showpost.php?p=53669365&postcount=360
2. boot to recovery
3. create nandroid backup.
Don't worry about DCIM, the nandroid does not backup the internal memory partition (aka internal sd card) where your photos are stored.
A factory reset also does not touch this partition. <-- BUT DO NOT FACTORY RESET
You are correct that the backup is stored on the device, so it IS important that there is enough space for the backup.
4. Install shostock3 v4.0 [have to read how to do this]
^^It's fairly straight forward while in recovery. If not, we're here to help.
5. hopefully boot successfully into my phone.
hsophie said:
Thank you for your detailed response Cyril279.
For confirmation, I will:
0. use the shostock3 v2.3a firmware from here. I'm assuming that getting it onto the device will require connecting via adb, use adb shell to mkdir and then push the unzipped contents to a directory such as /sdcard/shostock3v23a/
1a. install Desktop ODIN 1.85 or 3.07.
b. use Odin to flash the Siyah-v2.6.14-att.tar mentioned by creepyncrawly [have to read how to do this]
2. boot to recovery
3. create nandroid backup.
Q: Is there a way to exclude the DCIM folder during backup or delete all my pics from the camera before backup since I already have backed all content from /sdcard/DCIM (camera). It was 5.5gb? I'm also assuming that the backup will be created on the phone itself so it has to have enough space on it to hold the backup.
4. Install shostock3 v2.3a [have to read how to do this]
5. hopefully boot successfully into my phone.
Click to expand...
Click to collapse
Thank you Cyril279 once again.
I started the process last night... have some more questions. Please see below:
cyril279 said:
Close, you're close.
Regarding getting the firmware onto the device, the easiest method is to save the files on a micro sd card via PC (formatted as fat32), then insert the card into the device. Otherwise yes, adb push will get it there as well.
0 Use the shostock from the first post of that thread (420mb). The "version 2.3a" that you mention is just a kernel.
Click to expand...
Click to collapse
For step 0:
I downloaded the full shostock rom as specified. Since I don't have a microSD card available I'm going to copy shostock to the internal sdcard (/sdcard) using adb push.
Do I need to copy the unzipped contents of shostock or just put the single zip file there?
cyril279 said:
1a. install Desktop ODIN 1.85 or 3.07
1b Use Odin to flash the siyah.tar mentioned by creepyncrawly.
desktop Odin use: http://forum.xda-developers.com/showpost.php?p=53669365&postcount=360
2. boot to recovery
3. create nandroid backup.
Don't worry about DCIM, the nandroid does not backup the internal memory partition (aka internal sd card) where your photos are stored.
A factory reset also does not touch this partition. <-- BUT DO NOT FACTORY RESET
You are correct that the backup is stored on the device, so it IS important that there is enough space for the backup.
Click to expand...
Click to collapse
I wanted to make sure I have enough space for step 3 so I connected via adb and checked disk space using df. I get this:
Code:
D:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 418M 76K 418M 4096
/tmp 418M 56K 418M 4096
/system 503M 472M 31M 4096
/mnt/.lfs: Function not implemented
/cache 246M 4M 241M 4096
/sdcard 11G 8G 3G 32768
Questions:
1. Which filesystem will get backed up from above using nandroid?
2. Do I have enough space given the information above?
3. I wasn't able to figure out whether you can specify where to save your nandroid backup from my research. Does it allow you specify a backup location? [I would want to put it under the /sdcard partition since its got the most space].
cyril279 said:
4. Install shostock3 v4.0 [have to read how to do this]
^^It's fairly straight forward while in recovery. If not, we're here to help.
5. hopefully boot successfully into my phone.
Click to expand...
Click to collapse
Thanks for the encouragement, I'll probably try the process tonight. Will post update once done unless I have other questions.
Hammad.
hsophie said:
[...]
For step 0:
I downloaded the full shostock rom as specified. Since I don't have a microSD card available I'm going to copy shostock to the internal sdcard (/sdcard) using adb push.
Do I need to copy the unzipped contents of shostock or just put the single zip file there?
Click to expand...
Click to collapse
Copy the entire zip file onto the device.
hsophie said:
I wanted to make sure I have enough space for step 3 so I connected via adb and checked disk space using df. I get this:
Code:
D:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 418M 76K 418M 4096
/tmp 418M 56K 418M 4096
/system 503M 472M 31M 4096
/mnt/.lfs: Function not implemented
/cache 246M 4M 241M 4096
/sdcard 11G 8G 3G 32768
Questions:
1. Which filesystem will get backed up from above using nandroid?
2. Do I have enough space given the information above?
3. I wasn't able to figure out whether you can specify where to save your nandroid backup from my research. Does it allow you specify a backup location? [I would want to put it under the /sdcard partition since its got the most space].
Click to expand...
Click to collapse
1. A nandroid backup will typically backup /system, /data, and /boot(/kernel) partitions (Your partition report is missing a few items). -stock i777 partition table-
2. 3GB is enough for a nandroid
3.Typically, from the first screen of ClockworkMod recovery you would select {backup & restore}, and the submenu will provide options to {backup to internal sdcard} or {backup to external sdcard} (among others)
hsophie said:
Thanks for the encouragement, I'll probably try the process tonight. Will post update once done unless I have other questions.
Hammad.
Click to expand...
Click to collapse
:fingers-crossed:
---------- Post added at 04:13 PM ---------- Previous post was at 03:32 PM ----------
I have never used that shell df command, and I'm not yet sure about all of what it returns, but I certainly got different results when booted into android, than when I was booted into recovery. Were you booted into the stock 3e recovery when you performed the shell df command?
Code:
List of devices attached
001952750d598e recovery
C:\Android\sdk\platform-tools>adb shell df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 404636 136 404500 0% /dev
tmpfs 404636 12 404624 0% /tmp
/dev/block/mmcblk0p7 251968 4276 247692 2% /cache
/dev/block/mmcblk0p11
11901568 6185360 5716208 52% /emmc
/dev/block/mmcblk0p11
11901568 6185360 5716208 52% /and-sec
Code:
List of devices attached
001952750d598e device
C:\Android\sdk\platform-tools>adb shell df
Filesystem Size Used Free Blksize
/dev 395.2M 136.0K 395.0M 4096
/sys/fs/cgroup 395.2M 12.0K 395.1M 4096
/mnt/asec 395.2M 0.0K 395.2M 4096
/mnt/obb 395.2M 0.0K 395.2M 4096
/mnt/fuse 395.2M 0.0K 395.2M 4096
/system 503.9M 320.2M 183.8M 4096
/cache 246.1M 4.2M 241.9M 4096
/efs 19.7M 9.2M 10.5M 4096
/data 2.0G 1.0G 941.5M 4096
/preload 503.9M 293.6M 210.3M 4096
/mnt/media_rw/sdcard0: Permission denied
/mnt/secure/asec: Permission denied
/storage/sdcard0 11.4G 5.9G 5.5G 8192
cyril279 said:
1. A nandroid backup will typically backup /system, /data, and /boot(/kernel) partitions (Your partition report is missing a few items).
I have never used that shell df command, and I'm not yet sure about all of what it returns, but I certainly got different results when booted into android, than when I was booted into recovery. Were you booted into the stock 3e recovery when you performed the shell df command?
Click to expand...
Click to collapse
Yes, I was in the stock 3e recovery when I connected via adb and ran the command. Since I'm not root perhaps its not showing me the /data partition. I can cd into /data but ls doesn't show anything.
I'll send you an update tonight. Thanks for all of your help so far! I really appreciate it.
OK, here is what I did:
1. I wasn't able to copy/push shostock to my phone via adb. I kept getting "failed to copy ? to ?: Read-only file system."
I tried remounting, but it also failed, probably because I don't have root access.
So I've deferred this step to later.
2. I ran ODIN 1.85 desktop, put the phone in ODIN mode and flashed the siyah kernel. ODIN ran successfully and my phone rebooted successfully!
The boot screen shows a yellow triangle and I9100 on it though.
At this point I have access to my phone again. I was able to copy whatsapp history using the guide on their website.
I decided that I'll just sync contacts to google, but lo and behold, I just discovered that wifi isn't working. When I turn it on, it turns off after a few seconds. It doesn't bring up any wifi networks on scan.
Is there a way to make the wifi work again?
Thanks
Hammad.
Update:
1. I copied the shostock ROM through USB/windows
2. I created a nandroid backup from CWMR Touch Recovery onto internal sdcard. I got the following messages on backup:
Code:
SD Card space free: 8645MB
Backing up boot image...
Backing up system...
Backing up data...
[I]No /sdcard/.android_secure found. Skipping backup of applications on external storage.[/I]
Backing up cache...
[I]No sd-ext found. Skipping backup of sd-ext.[/I]
Generating md5 sum...
Backup complete!
Are the two messages in italics a problem?
Update #2:
I decided to install shostock. Installation went smoothly. My wi-fi issue was also resolved with the upgrade and I have Android 4.1.2 on my phone.
Thank you Cyril279 for all of your help on this. I couldn't have done it without your guidance!
hsophie said:
[...]
1. I wasn't able to copy/push shostock to my phone via adb. I kept getting "failed to copy ? to ?: Read-only file system."
I tried remounting, but it also failed, probably because I don't have root access.
So I've deferred this step to later.
Click to expand...
Click to collapse
When I tried the process, as soon as I rebooted to the siyah kernel, I was able to ADB push to the device, but I don't know what command you issued, or what path you chose.
Code:
adb push c:\path\to\file.zip /storage/sdcard0/
Code:
adb push c:\path\to\file.zip /sdcard/
Ultimately this didn't matter since you were able to boot into android, and the file could be copied via USB.
hsophie said:
2. I ran ODIN 1.85 desktop, put the phone in ODIN mode and flashed the siyah kernel. ODIN ran successfully and my phone rebooted successfully!
Click to expand...
Click to collapse
Darn right it did!
Thanks again @creepyncrawly, using this specific kernel made this portion of the process possible.
hsophie said:
The boot screen shows a yellow triangle and I9100 on it though.
Click to expand...
Click to collapse
The method of recovery that we used tripped the device's custom-flash monitor (voids service under warranty). It doesn't affect the functionality of the firmware at all, but if you prefer to have the correct initial boot animation, then you'll need to follow an additional procedure.
http://forum.xda-developers.com/gal...to-restore-deleted-file-t2827622/post54521059
hsophie said:
At this point I have access to my phone again. I was able to copy whatsapp history using the guide on their website.
I decided that I'll just sync contacts to google, but lo and behold, I just discovered that wifi isn't working. When I turn it on, it turns off after a few seconds. It doesn't bring up any wifi networks on scan.
Is there a way to make the wifi work again?
Thanks
Hammad.
Update:
1. I copied the shostock ROM through USB/windows
2. I created a nandroid backup from CWMR Touch Recovery onto internal sdcard. I got the following messages on backup:
Code:
SD Card space free: 8645MB
Backing up boot image...
Backing up system...
Backing up data...
[I]No /sdcard/.android_secure found. Skipping backup of applications on external storage.[/I]
Backing up cache...
[I]No sd-ext found. Skipping backup of sd-ext.[/I]
Generating md5 sum...
Backup complete!
Are the two messages in italics a problem?
Click to expand...
Click to collapse
No they are not a problem at all. Both of those messages are the result of the fact that you simply didn't have an external sd card installed, so it's informing you that it skipped the backup of the cache files there-on. /boot, /system and /data are what really matter.
hsophie said:
Update #2:
I decided to install shostock. Installation went smoothly. My wi-fi issue was also resolved with the upgrade and I have Android 4.1.2 on my phone.
Thank you Cyril279 for all of your help on this. I couldn't have done it without your guidance!
Click to expand...
Click to collapse
Our pleasure, although the process wasn't quite as expected, I'm certainly glad to hear that it worked out.
As mentioned earlier, if the i9100 bootscreen bothers you, then there's another (easier) adventure with your name all over it!
Happy flashing
-Cyril
cyril279 said:
When I tried the process, as soon as I rebooted to the siyah kernel, I was able to ADB push to the device, but I don't know what command you issued, or what path you chose.
Code:
adb push c:\path\to\file.zip /storage/sdcard0/
Code:
adb push c:\path\to\file.zip /sdcard/
Ultimately this didn't matter since you were able to boot into android, and the file could be copied via USB.
-Cyril
Click to expand...
Click to collapse
Just to clarify, I tried adb pushing it before flashing the siyah kernel. The phone wasn't rooted so thats why it didn't work.
My next challenge is to figure out how to copy my calendar to google calendar and then sync it so that it copies to my replacement phone (HTC One M8). I was using the samsung calendar, without it being linked to my google account.
Whatsapp data transfer was a cinch. Just copy the folder to the same location on new phone and install whatsapp and you're done.
I transferred memos from the S2 to M8 but I think the memo files are samsung proprietary format. I'll need to figure out how to transfer that info.
The other issue would be transferring my sms as well.
Any recommendations on tools for this would be appreciated.
Thanks.
Hammad.
hsophie said:
Just to clarify, I tried adb pushing it before flashing the siyah kernel. The phone wasn't rooted so thats why it didn't work.
Click to expand...
Click to collapse
Got it, makes sense.
hsophie said:
My next challenge is to figure out how to copy my calendar to google calendar and then sync it so that it copies to my replacement phone (HTC One M8). I was using the samsung calendar, without it being linked to my google account.
Whatsapp data transfer was a cinch. Just copy the folder to the same location on new phone and install whatsapp and you're done.
I transferred memos from the S2 to M8 but I think the memo files are samsung proprietary format. I'll need to figure out how to transfer that info.
The other issue would be transferring my sms as well.
Any recommendations on tools for this would be appreciated.
Thanks.
Hammad.
Click to expand...
Click to collapse
I can't recommend titanium backup highly enough for backup and restoration of apps and their data -including contacts, calendar content, wifi connections, sms/mms, etc. It might not be able to get the memo data to a different program, but remember, all of this info is captured in your nandroid backup as well, and titanium backup can extract it directly from the nandroid into the new firmware.
-Cyril
cyril279 said:
I can't recommend titanium backup highly enough for backup and restoration of apps and their data -including contacts, calendar content, wifi connections, sms/mms, etc. It might not be able to get the memo data to a different program, but remember, all of this info is captured in your nandroid backup as well, and titanium backup can extract it directly from the nandroid into the new firmware.
-Cyril
Click to expand...
Click to collapse
I could have sworn that I've read on here multiple times that restoring data to apps, even with TIB, results in problematic operations. If I jumped ROMs but had backed up my apps and data with TIB, if I restore the data ONLY in the new ROM, that should be no problem?

Themes / Apps / Mods [TOOL][NO ROOT] PartitionsBackupper | Nandroid alternative

/*
* Your warranty is... still valid!
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research yourself before asking or use anything on this thread.
* I do not offer private assistance via Telegram or any other social outside XDA.
*/
Click to expand...
Click to collapse
I've noticed that some users, myself included, are reporting that Nandroid backups made from TWRP are not always reliable for restore the phone to a previous working state from a soft brick / bootloop scenario.
PartitionsBackupper​That's where this tool come in. It's a simple batch script that uses adb shell and fastboot commands to backup the images of all partitions present in /dev/block with dd. All without root.
Requirements:​
Unlocked bootloader
TWRP recovery
ADB & Fastboot drivers + MTK VCOM drivers
Tested and built only for the OnePlus Nord 2
Changelog:
1.1
Bugfixes
1.2
Code enhancement
1.3
Added missing partitions
Code enhancement
1.4
Added log file generation
Vbmeta will flash for last
1.5
Enhanced log generation
Enhanced vbmeta flashing
1.6
Bugfixes
Fixed fastboot/bootloader flash process
1.7
Code enhancement
Fixed boot_para flash process
1.8
Added adb/fastboot flash issues detection
1.8.1
Added linux version!
Not working:
This tool will still not backup the system and my_* partitions. A fix is coming up.
This tool WILL NOT backup the userdata partition.
Because it would backup the entire internal storage along with it.
I recommend to still do a Nandroid backup with TWRP of just the data partition if you wish to back it up.
DOWNLOAD
↓ attached file ↓​
That is a really cool tool / script you made! I will test it out as soon as my motherboard (!) is replaced by OnePlus. THANK YOU!
Thank you
Why my CMD screen closes immediately after entering any options? @Raygen
pankspoo said:
Why my CMD screen closes immediately after entering any options? @Raygen
Click to expand...
Click to collapse
whats in the PBlog file?
Just uploaded a new version with better logs.
pankspoo said:
Why my CMD screen closes immediately after entering any options? @Raygen
Click to expand...
Click to collapse
Try with the new version and paste here what's written in the PBlog.txt file, as said
Worked like a charm for my OPN25G !
What about a Linux version? Are you working on that?
Cheers
Paolo
ilpolpi65 said:
What about a Linux version? Are you working on that?
Cheers
Paolo
Click to expand...
Click to collapse
I've added an .sh version, give it try
Report if you encounter any bugs
Raygen said:
I've added an .sh version, give it try
Report if you encounter any bugs
Click to expand...
Click to collapse
I have not tested restoring the files, but the backup with the .sh seems to be working fine. Very clean code and easy to understand btw, thank you!
Hi Raygen. I tried the PartitionsBackupper app and I don't know what I'm doing wrong but I'm not backing up anything. I run the .bat command under adb commands and I even check that I have access to my smartphone with the adb devices command but nothing. I have the menu I chose option 1 "backup". It even offers me to transfer the backup to PC but the file is empty.
For this application to work do you have to be in fastboot mode? With TWRP ???
Any idea? In the logfile I just have the info 0% backup... Last info I have TWRP but no longer Magisk because fed up with having bootloops with this Nord 2 which does not support Root.
Quercy said:
Hi Raygen. I tried the PartitionsBackupper app and I don't know what I'm doing wrong but I'm not backing up anything. I run the .bat command under adb commands and I even check that I have access to my smartphone with the adb devices command but nothing. I have the menu I chose option 1 "backup". It even offers me to transfer the backup to PC but the file is empty.
For this application to work do you have to be in fastboot mode? With TWRP ???
Any idea? In the logfile I just have the info 0% backup... Last info I have TWRP but no longer Magisk because fed up with having bootloops with this Nord 2 which does not support Root.
Click to expand...
Click to collapse
Hello, are you still encountering this issue? If so, can you attach the log file?
Thanks for this tool!!
Hello !
Got a problem rn with the tool sadly, here's the PBlog
"Logging started...
Main menu
restore
Please put the "PartitionsBackup" folder with all the partition images in the same directory of this script.
exit 1 "
Thanks for your help !
Edit : How stupid, hving the .sh file in the repertory is the problem. Simply delete it if ur on windows and it will work !
i have done the same thing but now when i am trying to boot to system it is showing only android logo ....what to do now pls help me
Assume since this is such an old thread, the dev is no longer monitoring it??
I need some help with it.
Thanks
Boowho 1234 said:
Assume since this is such an old thread, the dev is no longer monitoring it??
I need some help with it.
Thanks
Click to expand...
Click to collapse
State your issue
Raygen said:
State your issue
Click to expand...
Click to collapse
First thanks for the reply..... I've studied your code extensively and have figured out that my device throws an error saying "out of memory". It's a Pixel 3a and has no external SD card and only 64GB of main memory. I think I'm screwed.
Boowho 1234 said:
First thanks for the reply..... I've studied your code extensively and have figured out that my device throws an error saying "out of memory". It's a Pixel 3a and has no external SD card and only 64GB of main memory. I think I'm screwed.
Click to expand...
Click to collapse
Well that's your issue. This tool is made and tested only for the OnePlus Nord 2.
It can technically work with other devices since it uses a pretty universal method for searching and copying the partitions, but I can't ensure it working or offer support in that case, since I can't test it or troubleshoot it with other devices.
Raygen said:
Well that's your issue. This tool is made and tested only for the OnePlus Nord 2.
It can technically work with other devices since it uses a pretty universal method for searching and copying the partitions, but I can't ensure it working or offer support in that case, since I can't test it or troubleshoot it with other devices.
Click to expand...
Click to collapse
Understand your response completely and did not expect you to fix it for me. I am modifying your code such that when it throws the error, I call your routine to transfer the files to the PC, then delete them from the device. Then return to the main thread and resume from the out of memory error. This should be all I need.
Once again I thank you for making the original .bat file script and for making it available to us.
BTW, I understand that Nandroid backups contain EVERYTHING; this would include things like settings made to apps, any data the dev may wish to hide from the user, etc. True??

Categories

Resources