yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] alapapa:
nah...first place i looked -- just like the dream, recovery.img isn't copied to the /system folder during the flash...just applied to the recovery partition of the device. somehow we need to get a nandroid backup of that partition, i guess
[G1 Android Development] haykuro:
heres what to do:

- flash a rooted recovery image (i see you guys have already accomplished that).

-- boot a live linux CD

- lsusb

- look for "High Tech Computer" and paste that result in here. (this will help make a linux compatible adb "driver"/udev rule)

- for windows look in device manager when you plug in your device see if a new device shows up.

- if it does, look at properties for DEV_UID (i'll get you the exact string to look at when i get home.)

EDIT: just remembered, i might be able to get you guys a rooted recovery.img for the sapphire.. hehe :) i'll look into it when i'm home.
[G1 Android Development] Arisme:
Problem is that the recovery image doesn't seem to be booting :)

Another random shot : perhaps try to build a recent kernel which doesn't fetch parameters from the bootloader (i.e. hardcode them, as it seems to be a total mess, every SPL version has different namespaces and the kernel just hangs when it can't find them)
[G1 Android Development] avimak:
I don't understand one thing:

First I booted my phone like this:

power + volume down

but my friend saquib booted like this:

power + back key

which one doing the right boot? if you do it my way you can see the image I posted before. isn't that the right way to root? or his way is the one to root - I'm a bit confuse :) (sorry - I'm an Android newbie...)
[G1 Android Development] haykuro:
doesn't matter, two combinations, same reaction ;)
[G1 Android Development] testing567:
Deleted: Haykuro beet me to it.
[G1 Android Development] duffnut:
If you power up with "volume down" you get to the HBOOT page, from where you press "back" to get to the FASTBOOT page

If you power up with "back" you get to the FASTBOOT page, from where you press "volume down" to get to the HBOOT page

in this instance, FASTBOOT seems to be whats needed, so it saves a couple of seconds I guess :p
[G1 Android Development] avimak:
Got ya - so what next?

what about those auto-script programs? can it help us?

http://xdaforums.com/showthread.php?t=486486
[G1 Android Development] mannyb:
We should just start a collection and buy Haykuro a Magic so he can work his magic on the Magic. I'm sure he would sort thing out.
[G1 Android Development] duffnut:
I guess what next is to wait for haykuro to give us the rooted sapphire img he said he might have. then I think we fastboot it, and do a couple of things to do with the usb on the computer side of things. but hey, I'm as new as you to this game ;)
[G1 Android Development] jbelman:
Just tried this on my pre-release device (shipped by mistake apparently):

Baseband:

62.47S.20.17U_2.22.19.07I

Kernel version:

2.6.27-00342-g1936dcd

Build number:

CRA71C

C:\android-sdk-windows-1.5_r1\tools>fastboot boot recovery.img

downloading 'boot.img'... OKAY

booting... OKAY

The phone screen shows a status bar at top right briefly then moves straight to Vodafone splash screen and stops there. No other messages etc.
[G1 Android Development] avimak:
Hi, which recovery.img you used?
[G1 Android Development] alapapa:
i'm trying to edit the JF's 1.43 recovery.img -- it's cramfs, right?

..can someone point me in the right direction to get it mounted?

I tried:

sudo mount -t cramfs -o loop ./recovery.img ./mnt

and it says:

cramfs: wrong magic

any ideas?
[G1 Android Development] Dodgers13:
Sappdiag.nbh??

With the device in HBOOT mode these appear to be the files it's trying to look for, maybe inside the update.zip?

SAPPDIAG.zip

SAPDIA2.nbh

SAPPDIAG.nbh

SAPPIMG.zip

SAPPIMG.nbh

Couldn't get all in the photo (too fast)
[G1 Android Development] sebrein:
It's not really a mountable image. Have a look at this thread: http://xdaforums.com/showthread.php?t=443994

I just used this guide to add the content of xmoo's system-folder to the recovery.img which is also in this folder, set the suid-bit on the /system/bin/sh and repacked it to a new recovery_my.img.

I don't know, if this completely nonsense or at least worth a try, but i don't have a magic (or a dream) yet and so i can't test it.

If someone would take the risk i can upload it.
[G1 Android Development] avimak:
Well if it's harmless i'll give it a shot, but if it's too tricky and dangerous, well I need my device... :\
[G1 Android Development] alapapa:
thx for the link :)

i knew i'd seen this somewhere
[G1 Android Development] sebrein:
I don't know how risky this is (i'm still a bloody beginner), but arisme said here http://xdaforums.com/showpost.php?p=3812298&postcount=60 its all done in the ram and should be save.
[G1 Android Development] avimak:
Well, before i'm killing my phone, I'll wait for an Android expert to tell me it's ok ;)

No hard feelings ok? :cool:
[G1 Android Development] testing567:
I would wait for Haykuro to give you guys a rooted recovery.img. Flashing strange recovery images to the recovery partition is not all done in ram. Unless that's not what your plaining on doing. Flashing with fastboot will be something along the lines of:

fastboot flash c:\your_path\your_rooted_recovery.img recovery

Also, he said in an earlier post that he can tell you how to dump your current recovery image. You should have that as a backup before you start playing around with custom images.
[G1 Android Development] ridli:
i have a recovery with nandroid backup and you can select the options with trackball, but it is only a test, i dont know if that can help you but with dream works fine.
[G1 Android Development] Untouchab1e:
A friend of mine is getting the HTC Magic from Spain and I assume that the firmware on it will be Spanish. Needless to say, he would prefer the firmware to be English rather than Spanish so I guess he needs the UK Magic firmware? Is that at all possible yet?
[G1 Android Development] Arisme:
Do NOT use fastboot flash, especially on a device which is pretty much unexplored yet.

fastboot boot is safe, because all it does is copy the image to RAM and boot it from there, it doesn't flash anything.

Side note, can somebody try to fetch /proc/config.gz from the device and see if it's not empty ?
[G1 Android Development] avimak:
I think he can just change the localization of the device, my device is from vodafone UK and I can choose Dutch for example..
[G1 Android Development] avimak:
Do you think Haykuro will release it soon? isn't anyone here waiting for him to release the new Hero image for the dream?
[G1 Android Development] duffnut:
From earlier today:
[G1 Android Development] avimak:
Oh, I didn't see it.

Well well, we'll wait :p
[G1 Android Development] duffnut:
I know I know, can hardly wait... exciting stuff all this.

Also I don't know about other hardware, but it was an overall FAIL when I tried to link my apple bluetooth keyboard to my magic. so no luck for me there.

"Attention: there was a problem pairing with [MAC ADDRESS]"
[G1 Android Development] Fatal1ty2787:
I don't know if this can help: the magic released in Italy with TIM seems to have a pure HTC rom!
[G1 Android Development] haykuro:
hello. can someone with a magic device please contact me:

AIM: haykur0

MSN: haykuro@gmail.com

GTalk: haykuro@gmail.com
[G1 Android Development] avimak:
Just did.

(sent you in gmail & msn ;))
[G1 Android Development] duffnut:
haykuro: added you on gtalk if you need some extra help
[G1 Android Development] alapapa:
woot! :cool:
[G1 Android Development] avimak:
What's so special in that recovery screen?

EDIT: oh, I see - it's a rooted phone ha? ;)
[G1 Android Development] startekee:
you don't need a keyboard the select the options. You can use the trackball
[G1 Android Development] brianb7590:
but thats a G1 right?
[G1 Android Development] avimak:
Yeah of course, we already know it (it's in the recovery mode on Magic)
[G1 Android Development] avimak:
It looks like (nandroid and other stuff)... He just came to busting our balls (Sopranos speaking) :)
[G1 Android Development] brianb7590:
Well I'm just looking and I noticed there was a T-Mobile stamp at the top. So I figured this must must be a G1.

But looks like you guys are getting closer!
[G1 Android Development] alapapa:
even if this is running on the g1, it's progress to a version of the recovery partition that supports Sapphires

ossim
[G1 Android Development] ridli:
yes is a G1 becouse i dont have a magic but the recovery is the same.
[G1 Android Development] al74:
Mazal Tov. Now what ROM can they flash so they won't lose root?

EDIT: Just realized that's a G1.
[G1 Android Development] avimak:
The recovery it's not exactly the same but it easy do achieve...

press home + end and keep it until you get the ! sign...

then release the keys and do it again (home + end) - you'll get the text...
[G1 Android Development] avimak:
He showed us a G1 recovery mode.. nothing that really concern us the Magic unrooted users ;)

no Mazal Tov yet for us :(
[G1 Android Development] ridli:
1) i dont know why u say its a rooted phone, with non rooted phone you can boot with a modified recovery.img

2) the android source is the same for all devices only change a few things.
[G1 Android Development] avimak:
1) it must be rooted because in the recovery mode there is a nandroid option - and nandroid available only for rooted phone, not?

2) yes, that's right, Android is the same for every device.

but it's the little Hardware different (such as no physical keyboard) and the little drivers different (between Dream and Magic) who leads us to this situation (that we can't root our phones, for now)
[G1 Android Development] Darkrift:
You have to obtain root to flash the modified recovery. You do not have to flash a rooted rom, meaning you lose root when you reboot, but you still have to have had root at least once to get that screen.
[G1 Android Development] avimak:
For now I don't need the root more than once.. at least I'll be able to change the fonts.. my Magic can't display my language!
[G1 Android Development] ridli:
1) false. maybe and only maybe you cant flash a partition but you can boot a recovery.img witouth flash anything.

2) yes and not, recovery its only a binary like SU or SH. I dont try my recovery with a Magic becouse i dont have it.

All the people say the same with HTC DREAM European Version, and have root is very easy.
[G1 Android Development] avimak:
I'm not sure I understand you, you say that getting root access on the Magic is simple, so what we all waiting for? it's 3 days of talking and still no solution. and a lot of advanced users here are trying to help us.

I'm not sure what was the purpose of the last comments, sorry :)
[G1 Android Development] ridli:
i dont say get root on magic is easy, on Dream yes.

any1 boot with a recovery.img from JF builds? or Haykuro?
[G1 Android Development] avimak:
not successfully....
[G1 Android Development] neoobs:
Wow very descriptive.

How is it "not successful"? does it just not do it? does it restart? does it explode in your hand into a million dollar firework show?

PS I hope it is the last one cause that would be cool
[G1 Android Development] avimak:
I'm sorry, my last comment sent in 05:00 AM (my local time) after a 6 hours of experiences.

well, apparently the vodafone Magic's SPL require a signature, and it's not so easy to fool it.

we found all the boot options, fastboot, recovery mode, hboot etc.. but fastboot boot.img and hboot.img and boot.img.nb failed to signature.

another thing that I've been asked not to talk about failed too (nothing that really concern or actual to everyone here) so now we should focus on two things, or to write SPL that doesn't ask for a signature (aka HSPL in the world of WM) or we should try the gold card method, and this is a thing I need an expert to help me with (I understood it's a very tricky one so...) and the expert who worked with me last night (haykuro) send me to sleep (he has mercy ;))

and I hope you was kidding about my phone exploding and stuff :D

EDIT: all the fastboot flashing didn't harm the device, it booted great after the signature failed. but don't do it if you're not sure you know what you're doing (or if you're not connected with haykuro :D)
[G1 Android Development] Arisme:
From yesterday it seemed "fastboot boot" didn't require a signature ?
[G1 Android Development] avimak:
well, all the images haykuro sent me to try failed to fastboot boot and fastboot flash because the signature request.
[G1 Android Development] Arisme:
Well, if fastboot answers "OK" to the "boot" request, it means there isn't a signature check.

Having a non booting kernel is a different issue :)

(source post : http://xdaforums.com/showpost.php?p=3813886&postcount=78 - but yeah, might be a difference with this pre-release device)
[G1 Android Development] avimak:
I'm not sure you with me..

all the things haykuro tried with me last night failed to signature.

Every img is sent me, was sent to the device ok, and than I got in my cmd (i'm a XP user) "signature failed".

EDIT: the link you added is for a guy with a Magic developers device, I guess his SPL doesn't look for a signature...
[G1 Android Development] Arisme:
Ok, my mistake :)

Then the boot option is a no go
[G1 Android Development] avimak:
for now... as I understood from haykuro he'll help us with a gold card method, or with a new SPL. he said that he'll consulting with other experts as well.

we should wait for him and for other people to help us (Magic users).
[G1 Android Development] sinbot:
By any chance did you try a signed T-Mobile G1 RC29 recovery.img?
[G1 Android Development] sebrein:
My magic received today - finally - and i couldn't resist to try booting my recovery.img, the one i build withs xmoos system-folder. It didn't work (i didn't really expect it to work), but at least i didn't get a signature-check fail in the terminal (it is a non-developer - CRB17 device):

./fastboot boot recovery_my.img
downloading 'boot.img'... OKAY
booting... OKAY

Then the red Vodafone-Splash appears and nothing happens, so i pulled the battery and rebooted (which worked fine).
[G1 Android Development] avimak:
I don't know which boot.img haykuro sent me. and I don't want to try a signed T-MOBILE G1 img without an expert on my side backing me up..
[G1 Android Development] avimak:
Can you send me this img? I want to try it too.

BTW, where is the CRB17 appearing on?
[G1 Android Development] RueTheDay:
You've been asked not to talk about by whom? This is a forum for sharing information.
[G1 Android Development] avimak:
I know this forum spirit, and I'm sharing a lot of info all the time (just track my user activity), but this is a private stuff that I've been specifically asked not to discuss here, by one of this community gurus. you should respect people private and sensitive sources. I hope you understand (and this is a very old dangerous balance - between sharing everything you know, and keeping you mouth shut if you've been asked to), specially if this process failed and can't be done by anyone who doesn't know about it.

so my friend... lets stay on topic

;)
[G1 Android Development] sebrein:
The CRB17 is in settings - about phone - last row:

Baseband version

62.50S.20.17U_2.22.19.26I

Kernel version

2.6.27-00392-g8312baf

andriod-build@apa27 #72

Build number

CRB17

and here is my recovery.img:

http://www.mediafire.com/?m9ccbccm9tx
[G1 Android Development] duffnut:
it seems to me that aside from his brilliance, haykuro has also some pretty exclusive sources allowing him to come up with the crazy stuff he does. it also seems to me that if he did anything that might compromise his sources, they would run dry VERY quickly. I think it's awesome we've got a magic-er so closely involved with haykuro, and we should respect avimak not breaking his word to haykuro.

also good luck! and thanks for staying up so late trying to figure this all out for the rest of us.
[G1 Android Development] cmonex:
goldcard is not a problem for sure, for example I know the full algo (having reversed it last year), but this will not allow flashing anything other than the signed official roms,

how do you get HSPL (or just a patched recovery but HSPL is better for some things) on the device is the question - need to load unsigned recovery/spl in ram or root phone first or exploit stock SPL.
[G1 Android Development] avimak:
Oh, I see (I thought it should appear in the fastboot mode), I have the same build as you. and your device is from vodafone right? so I guess we have exactly the same version.
[G1 Android Development] avimak:
cmonex here, what a great thing :)

I didn't try a regular signed official ROM because no one (as far as I know) has it. all I tried is a img from haykuro, and he didn't tell me exactly what are they (they were small files, about 1.50 Mb each).

if someone have a Magic signed ROM that was created for the Magic device i'll be glad to try flashing it to my device.

cmonex - if you want to try somethings with me add me to your gtalk or msn:

avimak@gmail.com

I'm there now, waiting to work with you ;)
[G1 Android Development] sebrein:
It's an official german vodafone device, which i bought on ebay.

the fastboot mode says:

sapphire pvt 32b ship s-on g

hboot-1.33.0004 (sapp10000)

cpld-10
[G1 Android Development] firecrac:
will contribute to this forum once i have my phone on my hand!
[G1 Android Development] avimak:
Yes, we have the same phone exactly, I'll try what you did and see if it'll ask for a signature.

EDIT: same result as you:

fastboot boot recovery_my.img
downloading 'boot.img'... OKAY
booting... OKAY

and then a red vodafone splash screen and stuck... :\

took my battery out, reboot and everything is ok ;)
[G1 Android Development] jbelman:
Used JFv1.43 from: http://jf.andblogs.net/wp-content/plugins/download-monitor/download.php?id=12
[G1 Android Development] avimak:
OK, thanks, but you said it failed to flash the img right? because it gave the red screen of vodafone until you took the battery out.
[G1 Android Development] haykuro:
do this with the boot.img i gave you yesterday! :)

nice find, forgot to test this yesterday haha.

this is DEFINITELY the solution to root the magic :)

EDIT: for the curious bunch, if the "fastboot boot" option is not doing signature checks, you can just run a boot.img with default.prop set to "ro.secure=0" (adb root shell! :))

hopefully this is your solution, if that works, i'll get to work on a recovery.img for the sapphire when i get home.

EDIT2: We have root!

I've managed to get avimak's magic to boot a foreign boot.img with root adb shell, he's making the first Magic nand dump right now :)

more to come :)
[G1 Android Development] ridli:
Fastboot do the signature check but not for BOOT, only for flash, is the same problem for HTC DREAM European version and the Magic have the same solution.
[G1 Android Development] al74:
Awesome. Now can I say Mazal Tov? That was quick.
[G1 Android Development] avimak:
well haykuro gave me a ROOT - but he still doing some things, WE'LL HAVE MAZAL TOV VERY SOON
[G1 Android Development] al74:
I don't even have Magic and I'm excited for you :D.
[G1 Android Development] avimak:
You should :) i'll post here the tutorial once we'll finish if haykuro will say it's ok :P
[G1 Android Development] duffnut:
this is AWESOME! Thanks for all the work avimak and Haykuro! cannot wait. litterally.
[G1 Android Development] cruzzade:
Wow nice, maybe I should keep my Magic after all :D Will this help installing localized firmware or are the firmwares hard to get hands on (original HTC firmware)?
[G1 Android Development] haykuro:
yes. once we get this done, you can flash whatever you'd like :)

right now we're just playing with it a little (as i'm not home i can't give him the files we need to continue with further development)
[G1 Android Development] sebrein:
GREAT, thanks to haykuro, avimak and Arisme, who had the "fastboot boot" idea!
[G1 Android Development] ridli:
haykuro you have a PM
[G1 Android Development] cruzzade:
Nice, was kind of a dissapointment having to be locked with Vodafone software, since the HTC software is better equipped and will soon come with a Swedish wordlist :)

Thank's alot for your work on the Magic!
[G1 Android Development] timmy1980:
+ 1, this is great news.. I love my Magic but have been waiting with fingers crossed to be able to unlock the full potential!!!

Big THANKS!!
[G1 Android Development] jbelman:
Great work guy's, can't wait to get my hands on this img!
[G1 Android Development] Fatal1ty2787:
Awesome!can't wait to try!see haykuro,I told you tonight that you'd do it !

Great job,and thanks to everyone that helped making this possible
[G1 Android Development] mannyb:
Most excellent news. Good going guys!
[G1 Android Development] TDiDaddy:
This is great news. Now it's just a question of time really for a orig HTC ROM image to surface. Sad in a way as jbelman and I were the only people that I knew that had a Dev Kernel Rooted Magic out of the box (felt kinda lucky really!) and now everyone will have one before long!

Congrats to all involved!
[G1 Android Development] Arisme:
Hey, the fastboot idea came from another xda-dev guy, who killed his device soon after that if I remember well :) that's why this forum is great, ideas keep flowing

We went through those steps already for the french Magic release, in previous posts (http://xdaforums.com/showthread.php?t=497034 and others) you'll find a (buggy, but perhaps it can help in the beginning) tool to perform a "light" nandroid backup partition flash from recovery mode (unyaffs) when "fastboot flash" is not available and a signature patch for the french SPL (http://xdaforums.com/showpost.php?p=3595676&postcount=111)
[G1 Android Development] cruzzade:
Is it hard to get a hands on HTC:s orginal firmwares?
[G1 Android Development] duffnut:
I hope once we have widespread root, someone with the HTC device can just make a dump of it. is that correct?
[G1 Android Development] haykuro:
anyone with a magic want to get on google talk? haykuro@gmail.com
[G1 Android Development] Dodgers13:
IM

Just sent you a gmail
[G1 Android Development] jbelman:
Likewise :)
[G1 Android Development] myshyak:
+1 if needed any help. Vodafone Magic delivered from spain.
[G1 Android Development] rcbates:
Just got my magic the other day and I've been dying without root

hit me up

ryanchristopherbates@gmail.com
[G1 Android Development] cisoprogressivo:
I added you ;)

I have HTC Magic from Vodafone Italy
[G1 Android Development] haykuro:
GOT ROOT?

http://droiddeveloper.com/hrbuilds/boot-new.img.zip

1. download this, extract boot-new.img to your computer.

2. place your device into bootloader mode (BACK+POWER, or VOLUME DOWN+POWER)

3. fastboot boot boot-new.img

4. wait for device to boot

5. adb push boot-new.img /sdcard/boot-new.img

6. adb shell flash_image boot /sdcard/boot-new.img

that's it!

your device now has root via adb shell.

i'm making the rooted recovery.img now for magic :)
[G1 Android Development] alapapa:
buy this man some nesquik!
[G1 Android Development] haykuro:
testing custom builds now, as well as recovery.img.

i have to go to work soon, so if i don't update before 5, expect updates after 9.
[G1 Android Development] cruzzade:
Is there any FAQ/guide to what this means? Don't want to ask stupid questions here :) Can we install original HTC Magic 1,5 firmware or are those firmwares not available?
[G1 Android Development] Chahk:
What does it mean for us mere mortals? Can this be used on the Dream, or is it purely for Magic?
[G1 Android Development] keatonreckard:
how would rooting the magic be used on the dream?
[G1 Android Development] Chahk:
No clue, but I thought this thread was posted in the "Dream" forum (as opposed to one of the "Sapphire" forums here) for a reason.
[G1 Android Development] keatonreckard:
it was only posted here so more people would see it
[G1 Android Development] sebrein:
GOT ROOT! YOU'R A GOD!

$ adb shell
# id
uid=0(root) gid=0(root)
#
[G1 Android Development] :
I'm new to Android, had iPhones since they came out, what's the advantage to rooted access? i.e If i rooted my magic now, what could I do, that I can't do now?