yashsingh1/xdaforums huggingface dataset:
[Samsung Captivate Glide] Cprager:
adb push recovery.img /data/local/

adb push flash_image /data/local/

(Permission denied, copied files to sdcard and then through phone moved to /data/local)

adb shell chmod 777 /data/local/recovery.img

adb shell chmod 777 /data/local/flash_image

(Operation not permitted, I then decided to run the following commands:

adb shell

su

chmod 777 /data/local/recovery.img

chmod 777 /data/local/flash_image

no errors listed, it seemed to function)

adb shell rm /data/local/rights/mid.txt

(rm failed for /data/local/rights/mid.txt, no such file or directory)

adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt

(sh: syntax error: 'in' unexpected)

adb reboot

adb shell /data/local/flash_image recovery /data/local/recovery.img

(error scanning partitions: No such file or directory (seems like its failing because it doesn't know where the recovery partition is located maybe a DD command with the correct block containing the recovery partition??)

(I also tried the above in a root adb shell with the same error being encountered)
[Samsung Captivate Glide] dman3285:
And what version of twrp did you flash and for what device to work on the glide? Without smashing your partitions..
[Samsung Captivate Glide] ninthsense:
Try this :

Adb shell

Su

Change to the directory you have your img file in.

./flash_image recovery filexxxxxxx.img

---------- Post added at 10:09 PM ---------- Previous post was at 09:47 PM ----------

You can also try doing the same from inside a terminal emulator app from within the CM10. Just found out that CM10 comes with flash_image already loaded.
[Samsung Captivate Glide] Cprager:
Just attempted the following:

adb shell

su

cd /data/local

./flash_image recovery recovery.img

"error scanning partitions: No such file or directory" I am getting the exact same error through the terminal
[Samsung Captivate Glide] ninthsense:
drop the "./" just try "flash_image recovery recovery.img" from the terminal. Remember to be "su" and in the same directory where the recovery.img is.
[Samsung Captivate Glide] Cprager:
Ok, I just did the revised commands and got a different error output:

opened terminal:

su

cd /data/local (the directory where flash_image and the recovery.img are located)

flash_image recovery recovery.img

"failed with error: -1"

I believe the Flash_image cannot find the partition housing the current recovery but am unable/don't know how to find the correct partiton

but assuming the correct one is found, do you think the below command would be a viable option?

dd if=/data/local/recovery.img of=/dev/block/mmcblk0xxxxx
[Samsung Captivate Glide] ninthsense:
Delete the flash_image you've downloaded and run the command again. The flash_image is inbuilt in CM10, so i guess using that one makes more sense.

Also rename the .img file to recovery .img and place it in the root of your sdcard and issue the following command :

su

flash_image recovery /sdcard/recovery.img
[Samsung Captivate Glide] Cprager:
Same error, "failed with error: -1"
[Samsung Captivate Glide] roothorick:
ninthsense, dd'ing the image as he said should work, something like

dd if=/path/to/cwm/boot.img of=/dev/block/mmcblk0pX

But you'll have to do some digging to figure out what X is. Flash CWM the normal way, then head boot.img and each mmcblk0pX and find the one that's identical.

And DON'T just guess; flashing the wrong partition can brick your phone.
[Samsung Captivate Glide] ninthsense:
:D didn't suggested cause i don't know the values for those xxx myself and don't want him to end up wiping/briking his phone.
[Samsung Captivate Glide] Cprager:
I appreciate the concern gentlemen! i definately WILL NOT execute a command without knowing full well its purpose.

Im a PC guy so this linux command stuff is a bit newer to me, that being said, there must be a way (command) to see the partitions?

**I have currently the touch CWM so if you need me to "then head boot.img and each mmcblk0pX" to find the one thats identical I may be able to do so.

edit** don't know if this helps

cat /proc/partitions

major minor #blocks name

179 0 7552000 mmcblk0

179 1 12288 mmcblk0p1

179 2 614400 mmcblk0p2

179 3 319488 mmcblk0p3

179 4 3932672 mmcblk0p4

179 5 2048 mmcblk0p5

179 6 2097152 mmcblk0p6

179 7 16384 mmcblk0p7

259 0 5120 mmcblk0p8

259 1 8192 mmcblk0p9

259 2 8192 mmcblk0p10

259 3 524288 mmcblk0p11

179 16 512 mmcblk0boot1

179 8 512 mmcblk0boot0

179 24 7786496 mmcblk1

179 25 7785472 mmcblk1p1
[Samsung Captivate Glide] roothorick:
Nothing really, besides just ls /dev/block/mmcblk0p*

Phone partitions are quite a bit different from computer partitions -- about half the partitions don't even have filesystems; the entire partition is dedicated to some image that is important to one thing or the other.

I've got a pretty good overview of the CGlide ICS partitions here: http://xdaforums.com/showthread.php?t=2051327
[Samsung Captivate Glide] ninthsense:
From my touch recovery logs :D

Starting recovery on Fri Dec 28 19:23:18 2012

framebuffer: fd 4 (480 x 800)

ClockworkMod Recovery v6.0.0.1

recovery filesystem table

=========================

0 /tmp ramdisk (null) (null) 0

1 /boot emmc /dev/block/mmcblk0p9 (null) 0

2 /cache ext4 /dev/block/mmcblk0p3 (null) 0

3 /data ext4 /dev/block/mmcblk0p6 (null) 0

4 /recovery emmc /dev/block/mmcblk0p8 (null) 0

5 /sdcard vfat /dev/block/mmcblk0p4 /dev/block/mmcblk0 0

6 /system ext4 /dev/block/mmcblk0p2 (null) 0

7 /efs ext4 /dev/block/mmcblk0p1 (null) 0

Note : I would advise you to pull out the file system into a .img file and keep the backup before flashing it with recover.img. Jsut in case you need to restore back to the original state
[Samsung Captivate Glide] Cprager:
YOU GUYS ROCK !!!!!

I understand the procedure for replacing the previous recovery with the new recovery.img through the DD command,

but am unsure how to backup the current one. I will do more research and run my procedure by you guys before attempting anything :D

**edit**

to backup:

dd if=/dev/block/mmcblk0p8 of=/sdcard/current-recovery.img

to flash new recovery:

dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p8

there was an attribute listed bs=4096 (maybe bit size??)

please let me know if my commands are correct, and I will give it a go (fingers crossed lol)
[Samsung Captivate Glide] ninthsense:
Commands looks fine to me. Don't know about the bs=4096 attribute.

The backup should be 5120 kb in size.
[Samsung Captivate Glide] Cprager:
OMFG!!!!! It worked you guys are amazing!!!! A tutorial might be helpful incase anyone else wrecks their USB.

Thank you so much I can't stress how much you guys helped!!!!
[Samsung Captivate Glide] ninthsense:
Good for you :good:
[Samsung Captivate Glide] roothorick:
bs= is just the buffer size used by dd when copying. Unless used in combination with count= or similar (not what you want in this case) it's just a performance tweak, doesn't affect the final result.
[Samsung Captivate Glide] Cprager:
Awesome! I think I'm gonna write up a little guide to save the next guy a few days LOL

I gotta say this isn't something I would have been able to accomplish by myself!

Thanks a bunch!
[Samsung Captivate Glide] Yogesh1969:
Careful !!!!

Recovery images are different for flashing this way. The image has to be te same size as the partition i.e. it has to be converted to that size. For example if the recovery partition size is 8 mb and recovery.img is 4.7 mb, you have to convert it to raw image to 8mb. (unsparse).
[HTC Sensation] Ali_92:
Ok guys i am complete noob regarding rooting. so i need your help in rooting my phone Htc Sensation Xe which is in its original form and i have not tried rooting it before..so it means its in factory form

Here are the details of my phone

Model: HTc sensation xe Z715e

Android: 4.0.3

sense: 3.6

Kernel: 3.0.16-g8626210 htc-kernel@u18000-build-144 #1 SMP PREEMPT

Baseband version: 11.76A.3504.00U_11.24A.3504.31_M

Build number: 3.33.707.151 CL405135 release keys

browser: Webkit/534.30

P.s i am a NOOB in this matter so plz explain in detail...thanks every1
[HTC Sensation] rzr86:
you have 2 ways to root your device:

1)with htcdev method to unlock the bootloader

see here http://www.htcdev.com/ and then to root

see here http://xdaforums.com/showthread.php?t=1632553 or

2)use juopunutbear method to S-OFF and root

see here http://xdaforums.com/showthread.php?t=1661631

best wishes
[HTC Sensation] Ali_92:
Error 404 page not found

Both the links have an error i.e page not found :( :crying:
[HTC Sensation] rzr86:
sorry mate

i edited my post:good:
[HTC Sensation] kraven0731:
Hi,

I tried reading the said rooting steps/guides but its quite complicated to me. do you know any rooting method that is easy to follow?

Thanks
[HTC Sensation] ganeshp:
Flashing Roms with Son guide by asskickar in sensation general section

(except instead of flashing rom follow 4a I think which is rooting)
[HTC Sensation] kraven0731:
Can i flash custom kernel with my phone being S-ON but rooted?
[HTC Sensation] rzr86:
yes you can

i used to use custom kernel with rooted stock rom

look in my signature
[HTC Droid DNA] cc16177:
Recently picked up the Note 2 but it's just too wide for me... I'm seriously considering the DNA but am nervous about the similar battery size to my Nexus.

Did anyone specifically come from a Nexus and if so what have you noticed? I've read almost every thread I can find on battery life and haven't seen many comments regarding this.

Thanks everyone...
[HTC Droid DNA] Despyse:
I came from a Nexus. Everything is fine over on my end. Haven't rooted or done anything and all is well...
[HTC Droid DNA] greekmanx:
I came from a verizon gnex and for me I get the same battery life on the DNA as I did with the Gnex with a customer kernel about a day with medium usage. thats texting, little gaming and 30 mins of talking a day over bluetooth.
[HTC Droid DNA] jayochs:
I've got my nexus as well, and I can tell you the DNA kills the nexus in terms of screen alone..my nexus is one of those launch ones with the horrible yellow hue and banding issues...it's such an awful screen ugh I can't even look at it for more than five minutes without wanting to kill...lol
[HTC Droid DNA] cc16177:
What about battery life? That's my main concern at this point
[HTC Droid DNA] thepiombino:
I also came from a VZW GNex and IMO battery life is noticeably better worth this device. I'm also not modded in any way yet for what it's worth.
[HTC Droid DNA] jayochs:
i've noticed better as well. my gnex was never horrible like most people claimed it was..it was pretty much like my rezound..which the DNA kills lol
[HTC Droid DNA] Bigandrewgold:
You can get through a whole day with 4-5 hours in screen no problem.
[HTC Droid DNA] DevonL:
I was lucky if I could get through an 8 hour day with my Galaxy Nexus. My DNA is rooted and I've been running UKB without any issues - battery life has been phenomenal and I regularly am capable of going the entire day without needing a charge; and my phone gets used a fair amount. Overall I have to say I am EXTREMELY happy with the switch from the gNex to my DNA.
[HTC Droid DNA] cc16177:
Thanks everyone that's what I needed to hear! I'll be picking one up soon...

Merry Christmas :)
[HTC Droid DNA] Reedickulus:
You are convincing me to do the same!
[HTC Droid DNA] Itzvik:
Battery life is good on this phone with moderate use. I have had the phone for about 3 days and it gets me through the day.

So far no problems with the battery life.

Sent from my HTC DROID DNA.
[HTC Droid DNA] nc88keyz:
I've arrived froma gnex on vzw as well and I am amazed at the DNA. Stock 100% at this point. I had Samsung reg and extended batteries. This is a great change in batt life. I'm also very assharmed to say I am liking sense UI...again. this phone just works. And works well. Great design. I have the diztronic case. Happy with that too for coin spent. My typing is better my browsing is more fluid and the screen is very crisp. I have vz emp edition.
[HTC Droid DNA] shkamz:
I came from nexus
[HTC Droid DNA] Itzvik:
Thanks for the info on the case! I just bought one on eBay 15$.

Sent from my HTC DROID DNA.
[HTC Droid DNA] cc16177:
What's funny is I was sitting in the Verizon store while returning the Note 2 and all I could think about was "will I be able to de-sense this?"...

But when I got home and put my SIM back in Nexus (which I hadn't used for ten days) I realized I had been using a sense theme lmao...

I have a feeling I won't mind sense too much. I did have a TBolt before my Nexus anyways. Thanks again for everyone's comments!
[HTC Droid DNA] ballisticn8:
I came from the gnex to the dna and honestly, I love the dna. Sense 4+ is pretty nice imo, sure it's not aosp but HTC did some really nice things with sense.

Battery life is hands down phenomenal compared to the nexus. I was running aokp with imoseyons lean kernel under clocked. Just driving into work listening to a podcast for an hour would drop my battery almost 10% on my nexus extended battery. It used 6% for the same podcast, updating market apps and an hour of screen on time (dimmed) on my dna.

sent from my thumbs...

Edit: this should have said 8% used on dna, not 6. Also I'm always on 4g, I don't use wifi, I have unlimited data.
[HTC Droid DNA] spinkick:
I dont mind sense at all, the phone is fast.
[HTC Droid DNA] DirtySimpleClean:
I agree. I came from a nexus and my battery life is amazing compared to it lol. I do miss stock 4.2 but there are a lot of pros with this phone compared to the nexus. Screen is mouth watering and sense looks so clean on 1080p. Currently running stock rom that's rooted, debloated, and deodexed. But you best believe once we have s-off, I will be flashing aosp lol
[HTC Droid DNA] Cdoan34:
I came from a nexus, i was a little iffy about going away from a device with so much development but the dna really is a great device. DNA's battery is significantly better than my gnex even with the extended battery. Im rooted and debloated but the rom and kernel are stock.
[HTC Droid DNA] sn1p3r6992:
I came from the nexus..... And as much as I miss crack flashing and aosp, I absolutely LOVE this DNA. It feels and looks better than my nexus. The battery life is phenomenal. I get about 20 hours with 3-4 screen on time where I didn't get but 2 on my nexus with 8-9 hours. Its blazing fast and the camera is great. This is an amazing phone and I actually like using sense......
[HTC Droid DNA] cc16177:
Just want to thank all of you for your help.

I love this phone!
[HTC Droid DNA] Danzoman:
I couldn't even get 5 hours screen on time with my Nexus plugged in lol! But its completely possible (unplugged of course :p) with the DNA.
[HTC Droid DNA] holla420:
I came from a gnex too. I do miss the dev on that thing. I couldnt get threw 5hrs before it dies I hated that. I was kinda nervous getting this but I'm glad I did.I've got up to 17hrs so I'm happy :thumbup:
[HTC Droid DNA] relapsekg:
I came from LTE nexus. With the 2100 battery I got about 5 hrs. I am a heavy user. I get 12 hrs easy with the DNA. Haven't used a spare charger once.
[HTC Droid DNA] Danzoman:
I'm talking 5 hours screen on time out of 13 hours average overall. Nexus would die after 2.5 hours screen on time period maybe 7.5 /8.5 hours overall. Yeah I would say my battery life has almost doubled. And yes I had the extended battery.
[HTC Droid DNA] greenyoga:
Yes,i am,happy new year...
[Galaxy S III Q&A, Help & Troubleshooting] GerasVille:
The dev AdamOutler wrote a tutorial for the Galaxy Camera, also works on the Galaxy S3, how to unbrick a hard-bricked device.

Here is his thread.

I just want to point at this tutorial, because it´s also working for the S3, but isn´t found at our sections.
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Hi, guys and girls.

I know this question sounds stupid, and someone might say: "Duuuh, use the seach-function!" - Well, I have, but as a new member it's pretty hard finding the things that I need when there's so many sections and such.

Now for my question:

At Christmas I recieved a Samsung Galaxy Gio. The phone is cool, and I like it a lot. However, I do wanna use a custom ROM. Can anybody tell me (step by step, please) how to do so? I

have

read the "Big thread For New Users", but somehow I managed to get lost in all of the fine new words.

I have done it before on my HTC Touch Diamond, (but I dropped it and now it won't start again) but I really can't figure out how to do so this time - and it would be sad to ruin my new phone by doing stuff I don't know anything about.

So, could anybody please be nice and tell me how to install a custom ROM? And please keep in mind that I'm a huuuuge newbie :)

I'm using Android 2.3.6

Thanks in advice.

Dennis

P.S. Would I be able to "revert" everything back to how it is now? Is there a way to "unroot" (I know there is, just not how to), and can the default ROM from Samsung be found anywhere?
[Samsung Galaxy Gio GT-S5660] emyaz:
okay so first DON'T use Rom Manager because it bricks your gio.

if you want to flash a custom rom you need to flash clockwork recovery. after that download "ext4 formatter" and flash it with cwm recovery (install zip->choose zip). download a custom rom and flash it in the same way as "ext4 formatter". wipe data and restart your phone... :) (clockwork mod recovery, ext4 formatter and custom roms can be found in development section)

if you don't like all these custom roms you can install the stock rom by downloading a stock rom on sammmobile.com and flashing with odin.

Sorry for my bad englisch :)
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
You made it sound so easy :P

Please keep in mind that I'm at huuuge newb. I don't know what half of the words you mentioned means. Could you please explain it a little more detailed?

Thanks,

Dennis
[Samsung Galaxy Gio GT-S5660] farmer92:
You don't to be a delevoper if you want to flash your phone. It's really very easy if you read a few infos about this. One post above you have a list of things that you have to do but it's easy. You can do this in about 10 minutes. Very important is: you must know what you do. And do this ! Here you can view a lot of tutorials and links of roms, recorecys etc. :

http://xdaforums.com/showthread.php?t=1623393
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Ok, so I guess this is what I'm gonna do:

1. Doing a hard reset of my phone (wipe).

2. Root my Gio using this guide.

3. Downloading and flashing a custom ROM (I'm very unsecure on this step, please give a detailed "guide").

4. After flashing (is flashing the same thing as installing?), I start up my Gio and I'm gonna do a hard reset.

Is this the way to do it?
[Samsung Galaxy Gio GT-S5660] Jyrx:
1. Not needed to do before flashing but it doesn't hurt either ;)

2. No need for ROOT if you plan flashing a custom rom. 100% of custom roms have root pre-installed.

3. Download the file, put it on your SD card (do not put it in any folder, just on your sdcard), go into recovery mode, chose install zip from sdcard, navigate to the file, chose it, chose Yes and wait for it to finish, do wipe data/factory reset and wipe cache partition from CWM and you're done!

4. Yes, start it up (it takes quite long time to boot it for the first time) and you may do the hard reset but i have never done it and my Gio is still working perfectly. And yes flashing and installing is basically the same thing.

P.S I know how you feel exactly atm. When i got my gio and learned about flashing custom roms and rooting, I was scared as well but now i have installed many roms and now it is like a normal thing for me. Have fun and DO NOT USE ROM MANAGER!

Don't forget to click thanks if it helped ;)
[Samsung Galaxy Gio GT-S5660] emyaz:
The first two steps are right. after that you are downloading the clockwork mod recovery (also called cwm) and the ext4 formatter from this thread http://xdaforums.com/showthread.php?t=1421650. now you are entering the stock recovery. turn off your phone and restart it but hold the power and home button at boot. now flash the cwm zip file (in the thread is all explained how to do). restart the phone and enter the cwm recovery by holding power and home button at boot. go to "install zip" -> "choose zip" and choose the ext4 formatter zip file. okay now wipe data. download a custom rom and install it in cwm like the other zip files. wipe again data. now restart your phone.

and tadaaa it should work :D

ps: if you are from Germany (i think so because of your name) you can write me a pn if you need help and i can explain it in German :)

Sorry for my bad englisch :)
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Hi,

Thanks for both of the answers - However, there is something that I'm confused about now. Jyrx, you say that I don't need to root if it's a custom ROM, because custom ROMs already have done a root. But emyaz tells me that it should be done. Aren't most ROMs from xda custom? Fx. this: http://xdaforums.com/showthread.php?t=2062676 (CyanogenMod 10.1 [BETA 2.5]) - is this a custom ROM? If it is, I don't need to ROOT, right?

emyaz, unfortunately no - I'm Danish, and I know very little German :)
[Samsung Galaxy Gio GT-S5660] Jyrx:
Yes, like I said every custom rom has root. I think what emyaz thinks is that root is essential and if you don't install a custom rom you should root your phone. And your example has root and it doesn't need to be rooted.

EDIT: On XDA yes, there are basically only custom roms. If a rom isn't a custom rom or doesn't have a root then it is most certainly said in the topic.
[Samsung Galaxy Gio GT-S5660] Danhoff1:
You need to root your device before you start flashing roms. But is it nessesary to flash an ext4 formatter. I didn't do it. I do not have any problems. Where do you need it for?

Ardee - Sent from my Gio using xda premium app
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Now I'm confused. One says that I don't need to flash, but others says that I need to. :eek:
[Samsung Galaxy Gio GT-S5660] Jyrx:
I didn't root my phone before flashing roms. And I also haven't used ext4 formatter and it is working fine. So I don't know about that really.

---------- Post added at 12:29 AM ---------- Previous post was at 12:27 AM ----------

Well I think for safety, root it. If you don't probably nothing will happen but I'm not sure, but if you do then nothing bad will happen either.
[Samsung Galaxy Gio GT-S5660] voetbalremco:
Half of the people answering give the wrong answers.

- root

- install custom recovery

- backup

Flash ext4formatter (cleans all partitions and mounts as ext4, no wipes needed, only use this first time installing a rom or after using ODIN to restore to stock)

- install rom

-reboot
[Samsung Galaxy Gio GT-S5660] emyaz:
what i mean was that you need to root your device to install the cwm recovery. so the first step is to root your device and then install cwm recovery. sorry if i confused you :D

all custom roms are rooted...

Sorry for my bad englisch :)
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Yep, I think I just bricked my Gio...
[Samsung Galaxy Gio GT-S5660] Jyrx:
It won't boot or is the boot animation reloading?
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
There's two boot screens next to eachother :(

Haha, oh God, I think I'm gonna wait until I have researched a little bit more...

When I tried to unbrick it, I flashed a wrong stock ROM (somehow Odin let me do it :p )

I need a really detailed guide on how to do it (install a custom ROM).. I've been trying to unbrick my phone for the last 1½ hours :P

Fortunately it all works fine now. I just need a detailed guide or something so I don't **** up ;)
[Samsung Galaxy Gio GT-S5660] voetbalremco:
it wasn't bricked, thats the most wrong used term here on XDA.
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
Potato, potato - It wouldn't get past the to bootscreens, so I just took a guess. :)
[Samsung Galaxy Gio GT-S5660] ironman38102:
U flashed ext4-formatter.zip?
[Samsung Galaxy Gio GT-S5660] DennisHermannsen:
No, I'm a effing newb. Like I said in my first post, I need to now what to do - step by step. :)