yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] avimak:
Can you please write it again in simple words?

It's a bit "pro only" talking. I got my Android yesterday...
[G1 Android Development] avimak:
There is an option to go back to the orig. version after the downgrade? can I "dump" my OS somewhere and Install it again from SPL if it failed the rc29?

I'm coming from WM - I'm speaking they lang... :o
[G1 Android Development] sinbot:
search the Market for root and you will see many apps that you need root to use.

http://www.cyrket.com/search?q=root

You can also move your apps to your sdcard and tetther your phone (though you need to get the tether apps outside of the market.
[G1 Android Development] bernard black:
Guide for the total noob

Hi! Can any of you guys, with your mad skillz, maybe write a simple and short guide as to all the different steps given by grand master Haykuro?

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

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

3. fastboot boot boot-new.img -Not as self explanatory, how do I do this?

4. wait for device to boot - OK, easy enough.

5. adb push boot-new.img /sdcard/boot-new.img - Again, where do I type this? We have no keyboard?

6. adb shell flash_image boot /sdcard/boot-new.img - Where and how?

Sorry for my utter noobness. And I tried searching the forums, I swear I did!

Regards

Bernard Black
[G1 Android Development] :
you need to download the sdk and run those commands using the tools in there in a command prompt
[G1 Android Development] bernard black:
Roger, all commands go in the command prompt via the SDK after entering boot loader. Thanks!
[G1 Android Development] testing567:
Search ADB and FastBoot in this forum. They allow you to enter command line commands from your PC through USB.
[G1 Android Development] Baldyman1966:
Welcome to root

Welcome to the world of root, Magic/Sapphire Users, You now can join the G1/Dream guys in using so much more of the power of your phone.

Please make sure to show the proper gratitude to Haykuro by donating to him.
[G1 Android Development] KidJethro:
ADB-

http://xdaforums.com/showthread.php?t=502010&highlight=adb+for+dummies

FastBoot-

http://xdaforums.com/showpost.php?p=3083753&postcount=1
[G1 Android Development] Fatal1ty2787:
I have a question: will this process invalidate the warranty?
[G1 Android Development] Darkrift:
I have added this to the my wiki, feel free to edit this if you find something that could be explained better.

http://android-dls.com/wiki/index.php?title=Magic_Rooting
[G1 Android Development] ludogomez:
Hi,

I have a french Magic and I test this solution.

I have a problem, when I use the adb shell, I am "root", but when I use a terminal shell on the phone I'm not "root". I use "id" for my test.

How can I do ?

Thanks.

Edit : I tranfer my post in the magic forum.
[G1 Android Development] jbelman:
got root? YES!

C:\android-sdk-windows-1.5_r1\tools>adb shell

# id

id

uid=0(root) gid=0(root)

#

haykuro sir you are a legend!
[G1 Android Development] cisoprogressivo:
To have root permission on the mobilephone (and not only in ADB):

adb shell

and then:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

cd system

cd bin

cat sh > su

chmod 4755 su

sync

reboot
[G1 Android Development] sofrin:
please help a begginer

i finally managed to pass the fastboot level and i have problem in the PUSH level now.

after i run the adb push command i got:

* demon not running. starting it now *

* demon started successfully *

error:device not found

please help, i use windows xp if thet help.
[G1 Android Development] neoobs:
Do you have the correct drivers installed?
[G1 Android Development] sofrin:
yes

i think that i do have the correct driers other wise i couldn't make the fastboot, right?

after the fastboot the phone is rebooting , after it finish is reboot do i have to do something (mount, debugging mode, etc...) or should i just insert the push command to the CMD window?
[G1 Android Development] neoobs:
I believe the 1.5 drivers are the same for fastboot but are different for adb (since I could fastboot into my 1.1 dream but not adb into it with the 1.5 SDK)

I would try a different SDK it is worth a shot.
[G1 Android Development] sofrin:
???

i'm lost...

do i have to use the sdk 1.5 or you meant that i should use different USB drivers, please explain.

thank you
[G1 Android Development] haykuro:
i'd love to make a sapphire build for you guys.. which ROM would you like to see ported to the sapphire/magic? :)
[G1 Android Development] wassss:
hello man,

french rom plzzz
[G1 Android Development] spfrance:
We need recovery / nandroid boot before :)
[G1 Android Development] cruzzade:
After we have been given the opportunity to backup the software, I would really love to see the original HTC rom shipped with the non branded HTC Magic.
[G1 Android Development] sofrin:
usb drivers

Can any one tell which adb usb drivers (for the magic) should i use in order to get ADB work?

a link to the right drivers will be appreciated :)
[G1 Android Development] testing567:
The driver are packaged with the Android SDK that you can download from Google.
[G1 Android Development] Darkrift:
spfrance, my wiki has a link to the modified recovery already (created by haykuro). Look under the Magic Rooting page.
[G1 Android Development] spfrance:
Thanks a lot :)
[G1 Android Development] pamoon:
Hello!…

Firstly they pardon my terrible ingle is not my native speech. I am following this tutorial

http://android-dls.com/wiki/index.php?title=Magic_Rooting

and to me the Sapphira is not reinitiated to me. I am doing this and it remains there…

​

Some suggestion please. Thanks for its reading and the good work that you do.
[G1 Android Development] spfrance:
I have tryed the nandroid backup but an error occur :(
[G1 Android Development] Darkrift:
pamoon i would reboot the phone and try again. seems to be some sort of connection issue in fastboot
[G1 Android Development] TemporalShadows:
If it hangs at "downloading boot.img" and never finishes, cancel the command and disconnect then reconnect the USB cable, that always works for the Dream. If you already have the USB cable connected before you enter the bootloader it doesn't like to connect for some reason.
[G1 Android Development] duffnut:
if you're feeling that generous, I'd love to see the original htc sapphire build (exchange, office docs support) with some of that crazy dream stuff baked into it. Also I'll be able to help out with anything tonight as soon as i've rooted, and Sunday a bit, then from Tuesday onwards.
[G1 Android Development] IsAhT:
In windows Vista, i can use fastboot. It shows downloading..ok booting.. ok, but the phone still booting in normal way, including vodafone splash. So i cant use adb shell :confused:

Is problem of using windows vista, or im missing something?

Thanks! and great job!
[G1 Android Development] pamoon:
Hi!!...

I thank for your aid and certainly it was making it bad, it entered the HBoot way and it must do in way “fastboot”. Now when I execute the following commando gives east error me:

​

It again pardons by the annoyances that you are taking yourself and to thank for yours I magnify work
[G1 Android Development] maxisma:
You must install the usb drivers.
[G1 Android Development] IsAhT:
I finally did it under Windows XP. But for obtain ADB in Windows Vista, you should look this web:

http://groups.google.com/group/andr...ad/48e92dcc0a8a9a23/903290bb363ea565?lnk=raot

I have ADB now in my Vista 64-bits.

Now i have root :)

C:\Users\Alvaro\Desktop\SDK ANDROID\android-sdk-windows-1.5_r2\android-sdk-windo
ws-1.5_r2\tools>adb shell id
uid=0(root) gid=0(root)

But i dont know how i have all the things before flashing (contacts, apps, etc) :confused: i thought that i will lose everything.
[G1 Android Development] duffnut:
If you've done everything (usb drivers, fastboot, etc) and you're still getting error "device not found". You probably did like me, and just forgot to enable the USB debugging mode on the phone.

This is found in the settings, applications, development section.

Took me an hour to figure it out, hope it helps someone, that would mean I'm not alone in my retardation :p
[G1 Android Development] CBowley:
Congrats!! Now all you magicians can feel the power of android that us Dreamers have been so lucky to thanks to all the greats we have on this forums. Thanks to everyone, who has put in all the hard work that made Android what it is today.
[G1 Android Development] MarcusMaximus04@gmail.com:
Heh, sorry. What I mean is that when something goes wrong loading the operating system(SPL loads the operating system and sets up the partitions for each part of it), it basically freezes on what for G1 owners is the "T-Mobile G1" screen(no idea what it says for the Magic). At this state, there's no way to adb in because the operating system isn't set up and adb isn't running on the phone.

If that happens the only way for G1 owners to get the phone working again is to go into recovery(specifically JF's recovery) and press alt-s to reflash the ROM or flash a different one. At this state it's highly unlikely that you'll be able to pull up a virtual keyboard, since the touch screen drivers aren't even loaded. Without the ability to press those keys if this happens there'll be no way at all to recover.

The same problem would happen if anyone wanted to flash a ROM. I'm sure someone on the Magic side will come up with something to get around this eventually(will require writing an entirely new recovery loader, like JF did) but in the mean time it's likely too dangerous to try, since having root privileges would make any OS problem impossible to recover from.

EDIT: all this is assuming you guys don't just use fastboot(bootloader) to push all updates, which, now that I think of it, might be the better option.
[G1 Android Development] cruzzade:
How come mobile OSX was so much easier to root (well, I don't know if it really was but you guys doesn't sound that optimistic? Isn't this OS supposed to be "open"?
[G1 Android Development] MarcusMaximus04@gmail.com:
It's probably because OSX isn't open that it's relatively more easy to root. With closed source operating systems, there's only your in-house people to find problems with it, but with open source the entire world is free to look at the source code and find security risks(it's for this reason that linux is so much more secure than either OSX or Windows). From my understanding of how mobile OSX was broken, it was from a buffer overflow, which is a fairly common OS bug. It's unlikely an opportunity for one would be found in the linux kernel android uses since it's existed for a long time with source code readily available to everyone and nobody has found one yet.
[G1 Android Development] al74:
From what I understand they can use the trackball to scroll and pick the options in the recovery:

http://xdaforums.com/showthread.php?t=503264
[G1 Android Development] cruzzade:
So in this case, open source means a more closed system... how ironic. Now I feel stupid for buying an Android, guess I'm back to the iPhone or perhaps the Pre, since this kinda eliminates the advantage for Android over mobile OSX :(
[G1 Android Development] avimak:
And if we do, how can we type in the shell without keyboard and ADB?
[G1 Android Development] MarcusMaximus04@gmail.com:
Not necessarily. I'm sure someone will figure out ways around everything that I'm saying. In fact, I'm only saying it to point out in broad daylight the things that need to be gotten around.

EDIT: Oh and btw, not having those buffer overflows also means that it's a lot easier to make a hack/virus for the iphone than it is for android.
[G1 Android Development] giantcrazy:
I don't know if just having ADB will suffice.

I had a problem with my G1 where I restored it to factory with DREAIMG, but then realized it didn't restore the second splash screen. At that point, no root - and my keyboard was broken (which is why I was restoring, to do an RMA).

I started a thread on it back then, and a few people were kind enough to offer suggestions - one being character insertion using ADB. No dice, couldn't get telnetd started that way.
[G1 Android Development] richbayliss:
It will be nice to get a fully rooted Magic sorted, then you will have the option of the JesusFreke/Haykuro builds - which let you keep it :)

I will stick to G1 until it is sorted, it is just a matter of time before some bright spark comes up with the goods.
[G1 Android Development] MarcusMaximus04@gmail.com:
Hmm I think you guys are gonna need your own devs, at least for a recovery utility, since JF's recovery utility uses the hard keyboard.
[G1 Android Development] avimak:
I know it's only a matter of time, and I'm not waiting only for new cool features.. I need it to change the fonts first (There is no Hebrew support on the Magic and it's only a matter of fonts!) and it's the only thing that holds me back from using my new phone for a daily usage :(
[G1 Android Development] enlightener:
Suppose someone downgrades to rc29:

1) Usb debugging is disabled by default in rc29 so you have to go to settings-> applications to enable it (no keyboard on magic to enable adb using the "hidden shell" )

2)to go to settings to enable usb debugging you need to "activate" the phone (fresh rc29 install), so you need a keyboard (no vk in rc29 and magic has no physical kb) to login to google.

-

if magic spl has fastboot enabled, does it check the recovery.img for signature if u try to boot with a recovery image(fastboot boot recovery.img) (possibly with a cupcake recovery so u can use the trackball :D ) ?
[G1 Android Development] avimak:
Maybe he'll be kind to make us HSPL to? :)

It's not so difficult to make a on screen keyboard for the SPL - when the guys in "Blackstone ROM development" tried to port Android on Blackstone they had this tiny keyboard on boot.

I'm not sure if it's the same thing but I'm sure the genius like JF can help us ;)
[G1 Android Development] MarcusMaximus04@gmail.com:
Well you'd have to ask him, but I know he's been steering away from making anything more since he's been burnt out by all the complaints. He made JF1.5 but from my understanding part of the reason it's so slow compared to the other ADP1.5 ROMs is because he didn't put as much time into it.

With all this said, I'm absolutely sure you guys will get some geniuses on your side. I'm sure not all the smart people got G1's ;)
[G1 Android Development] avimak:
Well, we were a bit stuck for now, so I thought "why not asking the neighbors..." - Until now I was right, a lot of useful information in this thread, I'm sure we'll find our solution for the good of all.
[G1 Android Development] Freedomcaller:
what if you boot into safe mode? then you can skip the activation :D

safe mode boot is power + menu held till the phone is fully on, i havent tryed this on a fresh install to skip actavation but i read somwhere it does, and does rc29 have a safemode? probably :)
[G1 Android Development] maxisma:
Yes i think it skips th activation.

If not, someone has to find out how the nbhs are made and create a custom one.
[G1 Android Development] alapapa:
I'm pretty sure a custom NBH isn't the answer -- the stock SPL will surely only apply an officially signed image (unless someone with the signing keys acquiesces to requests to sign a custom NBH for us, that is. fat chance of that happening)

until we figure out a way to exploit the stock SPL / recovery or elevate to root from within the stock environment, i think Magic users are stuck in user land :(
[G1 Android Development] billc.cn:
i don't know what's the spl is for the commercial magic. it would be nice if we could use fastboot and apply a modified system.img (we have the original copy from android 1.5 sdk. we could simply mount it and change the file permissions.)

alternatively, we could pack our own nbh file that has root's uid set on adb or sh. it's only a problem of few bits. the tricky part is how to find those bits. the situation would be greatly improved if they decided to publish a developer version. we could simply dump the whole rom and apply it to a commercial versions, flash recovery and use testkeys update.zip...
[G1 Android Development] neoobs:
OK why can't you use the gold card to apply the old RC28 NBH turn on ADB and then use ADB to do everything?
[G1 Android Development] tubaking182:
i haven't had a chance to read the entire thread but most users came from WM rather than starting on android. when you were flashing ROMs on WM phones we had to create the .nbh file customized with certain settings and programs. what if we use some old tools from the WM days and create a .nbh for the magic that already has root built in? i am no expert just an idealist with an optimistic outlook for you magic users.
[G1 Android Development] duffnut:
I dunno if magic people have figured this out already, and I'll admit it's not an awesome discovery, but maybe a handy one:

Terminal emulator works fine, just hold down menu button to bring up the virtual keyboard.

Also more on topic, how hard would it be to make this glorious RC29 with a VKB baked right into the img? (sorry if that is nonsensical, also only had my android for a day)

EDIT BAD NEWS: I was a bit eager, but it turns out the "enter" key on the VKB does not work with the terminal emulator. turns out the people who put it on the marketplace know more than me... humility, next time show up before I write something stupid...
[G1 Android Development] testing567:
I stumbled upon this post in the Magic forum. I beleve it's VERY relevant. (I have a G1, not a Magic. Just trying to be helpful.)

If this post is true, then it would seem that the Magic ships with a Fastboot SPL, but accessed through Vol- + Pwr instad of Camera + Pwr. Someone with a magic should verify that this is true. If so, I think you might have just found root. :) All you need now is a custom recovery.img to flash to the /recovery partition.
[G1 Android Development] haykuro:
someone please verify that the VOL+DOWN has fastboot SPL stock. if it does, i can help you dump your recovery image and etc.. :)
[G1 Android Development] alapapa:
any chance this is a ADP version of the Magic?

i know next to nothing about the platform
[G1 Android Development] sofrin:
yes it works !!!

Here what happen after i open the Mgic while holding the volume down key.
[G1 Android Development] maxisma:
Skating androids.. just like the hardspl & eng spl.. if it doesn't check for signing this is the way to root.

Otherwise: goldcard + cooked nbhb(see forst post on page 5)
[G1 Android Development] avimak:
This is so funny, I knew about this screen two days ago (I was thinking "what if" because this was a "fastboot" in my Blackstone - pwr + volume down) and didn't think it can help us :)

Ok, so now we have this screen - what's next? :)
[G1 Android Development] vishurao:
maybe a dumb doubt/suggestion.

Since we are looking for a way to start the telnetd and then play around with it, cant we/someone write a small IME sort of a thing, which will give the key presses by itself?

Say there is a app by the name MagicalRoot. The moment you click it, it send the OS keypress messages for all the commands that are requied.

Telnetd

su

mount

etc etc etc

Wont that be easier?
[G1 Android Development] sinbot:
Isn't there an app to run shell scripts on the market?

Wouldn't you be able to use that program to run the different commands?
[G1 Android Development] avimak:
I'm not sure i'm with you - this is the only problem? if we'll be able to run commands in this shell we'll have root? because I can run ADB shell when the device is connected to my pc, but what commands I should try? ADB root gives me an access error :confused:
[G1 Android Development] TheDudeOfLife:
How much would it cost for me to get a magic in the US?
[G1 Android Development] vishurao:
there is a procedure to root Dream, which involves the physical keyboard keypresses.

All i am saying is, we can duplicate the same procedure by an app like the one i said, or something that can run shell scripts.
[G1 Android Development] Arisme:
Try to boot a recovery image with fastboot boot - it's harmless.

If it works, you'll get adb, then be able to root the main partition easily.
[G1 Android Development] duffnut:
all the vodafone ones come with a hefty contract. would an original asian one from htc have the. problem to solve? a couple of people on the sapphire forum have them, they should tell you the price.
[G1 Android Development] avimak:
Ok, I turned on my Magic with Volume-Down pressed and it gave me the boot screen, the device was looking for some file on my SD and the search was failed... then it told me to press "back" for fastboot - i'm there now.

I connected my device to my PC and it shows me on my XP "Android 1.0" and stuff...

Then it's asking me about drivers for HTC Bootloader - should I skip it or there is some special drivers for this? (I already installed my Android drivers from the SDK).

Now my screen looks like this:

and I'm waiting for orders :)
[G1 Android Development] bolmedias:
Does Android 1.5 support Bluetooth keyboards, perchance?
[G1 Android Development] Arisme:
Check http://xdaforums.com/showthread.php?t=463627 - grab the fastboot executable for windows - I think the SDK drivers are ok for fastboot, but don't remember quite well.

Then grab a JF recovery image http://jf.andblogs.net/wp-content/plugins/download-monitor/download.php?id=12 , unzip it to extract recovery.img, and run (supposing fastboot.exe and recovery.img are in the same directory)

fastboot boot recovery.img

if it starts you can then run

adb shell

and you should be connected as root.

If it doesn't start, please report the fastboot error messages and what happens on the device (i.e. if it displays something then reboots, or just hangs, ...)
[G1 Android Development] avimak:
I used the same drivers for it (the one from the SDK) and it was ok.

Is this process is harmless? I don't want to break my phone :\
[G1 Android Development] Arisme:
Yeah, 150% harmless, nothing is flashed at all, it's all done in RAM :)
[G1 Android Development] saquib:
OK, tried the following:

- turned phone off

- turned on phone holding power and back key

- FASTHOST USB displayed on screen

- ran command 'fastboot boot recovery.img' and the phone rebooted and showed the red vodafone screen. The commond box on the pc shows:

downloading 'boot.img' ... OKAY

booting ... OKAY

- ran the command adp shell which returns error

error:device not found

- stuck on the red screen, pulled battery out and restarted phone OK.

What does all this mean :-)
[G1 Android Development] duffnut:
re: bluetooth keyboard

I have an old apple bluetooth keyboard (the plastic kind) will try that when I get home.
[G1 Android Development] alapapa:
after it said "booting ... OKAY" what showed on the screen? it should say something like "Android system recovery utility," give a build number and show a menu.

if so, press Alt + x to get a console -- if it makes it this far it'll be prompting you to Press <enter>....and w/o a keyboard this is as far as we can go right now

if all this is the case, we ought to be able to modify the recovery partiton for this device for root
[G1 Android Development] saquib:
Which screen should 'Android system recover...." appear? Like I said, the phone rebooted to the red vodaphone screen and stopped there until I removed the battery. The command box where I typed the fastboot commond just went back to the standard dos prompt, after displaying booting...okay.
[G1 Android Development] alapapa:
aahhh...i see that part now

it's trying to load JF's recovery image, but it seems like it won't work as-is w/ your hardware.

we really need a recovery.img suitable for the magic and the doods here can modify it for testkeys / root console, etc
[G1 Android Development] Arisme:
It might just be different kernel parameters passed by the bootloader. If it boots without signature checks, it's almost done already :) I assume there's no official update image available for this phone yet ?
[G1 Android Development] sebrein:
How about the prerelease-magic system-folder xmoo posted here: http://xdaforums.com/showthread.php?t=494528 ? (i think this is the one haykuro used to build his first port for the G1)