yashsingh1/xdaforums huggingface dataset:
[G1 General] i<3andr0id:
That's a way better price than 689. Problem is shipping it to H from Toronto will most likely get him dinged with taxes. We have a few options. We can...

1) forget the 450 craigslist phone and have our friend in Niagra Falls send H an HTC Dream.

2) purchase the 450 CL phone and send it from Toronto and H/we split the taxes.

3) purchase 450 CL phone, send it to our friend in Niagra and he sends it to H across the boarder circumventing the whole tax thing.

I think we need to vote.

1) is most expensive.

2) is midrange, depending on how much taxes come out to be.

3) complicates the whole "who gets paid?" issue, but seems to be the most econimical for everyone involved.

I have no preference, just want to get H a phone so he can get to work. =)
[G1 General] i<3andr0id:
I would say hold onto the paypal funds until you receive the phone, not give these funds for payment as whomever we elect to send would have to "risk" the money until you receive the phone. This is all assuming you, Haykuro, are trust worthy. ;)

For me, it just makes more sense to trust Haykuro with the $$$ because he is more trusted on the forums than any of us. Haykuro, making an announcement about this on your twitter and iphoneproject website would help us verify that this is really you responding.
[G1 General] haykuro:
http://xdaforums.com/showpost.php?p=4016082&postcount=305

explanation right there ;)

that post was pretty much rooting the rogers magic (for those that didn't understand :P)

me and Amon_RA (that is the old friend i mentioned earlier ;)) were messing with the boot images, and i realized that the only problem was the kernel. tada. root :P

i'm testing this stuff now on the dream (i just got back from work)
[G1 General] haykuro:
hmm, i got somewhere where that somewhere is i don't know (as i can't debug without a serial cable atm :P)

anywho, i managed to start booting, wait a second, then screen goes black, and reboot then freeze on rogers screen. not sure where this is going, but it seems good. :cool:
[G1 General] jpa-:
Ahh okay sweet.. Atleast you seem to be making progress. And I won't begin to pretend to know what that stuff in your explanation means, but thank you :) I'm by no means a developer. When you guys talk all the tech jargon and arrays and offsets or whatever the hell - I'm just lost. But yeah. Thanks for letting me know and keeping us posted. Your work is vveeerrryy much appreciated, my friend. Best of luck with it.

(and mega props to Amon_RA, and anyone else in particular who are cohorts with haykuro on this project. Canada loves you)
[G1 General] Drizzy Drake Rogers:
enough with the nesqik i think its just gunna slow him down with all those damn oreos ....Im sending him some redbull!

lol thnks a lot for your progress...awaiting root
[G1 General] haykuro:
so after some fiddling around i discovered that i have the ramdisk and kernel offsets ( they match the magic offsets posted earlier ) i discovered this through making a lousy boot.img for my g1 and getting the same side effects (boot, blank, reboot).

soooo close. :)
[G1 General] thumbs:
Okay cool!!!! We all have faith in you haykuro I know you can do it :D
[G1 General] bernZ:
Thanks for all the hard work haykuro! Someone will be getting some nesquik soon
[G1 General] haykuro:
well guys its 12:19 AM here, i work at 10 AM tomorrow, i'm still feeling light headed and if i stare at this screen any longer i swear i'm going to die. :o

i'm off to bed, tomorrow is a new day and hopefully i can get this thing to finish booting =]

EDIT: oh and could someone with a rogers magic please do this:

adb shell cat /proc/iomem

paste the results here (or pastebin)

as well as:

adb shell cat /proc/partitions

night everyone :)
[G1 General] skittleguy:
Rogers Magic info, coming up.

C:\Android\tools>adb shell cat /proc/iomem
00700000-0079afff : msm_panel.0
007a0000-007bffff : ram_console
19200000-257fffff : System RAM
19222000-194e3fff : Kernel text
194e4000-195cf65b : Kernel data
a0200000-a0200fff : msm_serial_hs.0
a0400000-a0400fff : msm_sdcc.1
a0500000-a0500fff : msm_sdcc.2
a0800000-a0800fff : msm_hsusb
a9900000-a9900fff : msm_i2c.0
a9900000-a9900fff : msm_i2c
a9c00000-a9c00fff : msm_serial.2
a9c00000-a9c00fff : msm_serial
aa200000-aa2effff : mdp
aa600000-aa600fff : msm_mddi.0
e8100010-e8100017 : leds-cpld

C:\Android\tools>adb shell cat /proc/partitions
major minor #blocks name

31 0 256 mtdblock0
31 1 5120 mtdblock1
31 2 2560 mtdblock2
31 3 92160 mtdblock3
31 4 81920 mtdblock4
31 5 302848 mtdblock5
179 0 7977472 mmcblk0
179 1 7973376 mmcblk0p1

C:\Android\tools>

Hope this helps. My phone has been rooted if that makes a diff.

http://pastebin.com/m1467fc4d
[G1 General] evilpig:
Has is rooted?
[G1 General] SpEnTBoY:
Oh man ... working, and now SLEEPING??? then what?? working again??? maybe eat or something?? geeez I thought you more dedicated than that :p have a good day haykuro and again, thanks for all the effort and time!!
[G1 General] i<3andr0id:
damn you magic owners... *shakes fist in jealous indignation*
[G1 General] haykuro:
hey guys, just hopped on for a bit to check up on the forums and status of the internets :p

i haven't had a chance to work on the dream (either way the cables come in wed-thurs so anything until then is more or less just me fidgeting with boot locations [see that info in my previous posts on how far that got :P]) because i've had a fever that keeps coming and going. right now i'm doing a bit better, but earlier this morning i had a fever of about 101F (~38.3C) and had the worst headache humanly possible :(

i'll report back here if i make any strides on the phone. don't expect much for today though (save your F5 fingers.)
[G1 General] tertiumsquid:
I'm sure everyone wants root sooner rather than later, but go lie down or something... We don't want this to kill you!

Either way, mad props. Too bad I can't do much about my twitchy F5 finger :p
[G1 General] Capt Fiero:
Go lie down, get your other half to get you at least a couple gallons of Gatorade, and some good multivitamins. There is a nasty flu bug going around and it really knocks ya on your butt if you don't take care of yourself. Although we wall are looking forward to your work, get some rest, it can wait.
[G1 General] i<3andr0id:
Oh no! Swine flu!

All kidding aside, rest up H. Isnt anything you can do until your parts arrive. Take care!
[G1 General] r4nd0mn4me:
Being that "Swine flu" is hardly anything I would call "deadly", I would feel worse if H caught the regular flu...now that one can really kick your butt. No matter what it is, a good amount of rest, food, and anime will have you fixed up in no time flat :D
[G1 General] jpa-:
KNOCK ON WOOD!!!

All the best, haykuro
[G1 General] PhaseBurn:
Hope you're feeling better, Haykuro...
[G1 General] tertiumsquid:
Yes. Copious amounts of anime will fix anything. I'm watching Trigun at the moment...
[G1 General] kevwo:
Hi...just a quick question...if i have no prior experience with flashing, will it be hard to root my rogers dream once thi IS available?

I cant believe nonroot users cant use bluetooth...
[G1 General] SpEnTBoY:
The difficulty is kind of subjective ;) ... it all depends on what you're comfortable with. My initial response is "no ... it shouldn't be too bad"

As for Bluetooth ... what do you mean "can't use bluetooth" ... what are you trying to do over bluetooth? like file sharing etc? so far all I've done was paired devices but yeah I never saw an obex services or anything on the device :(
[G1 General] Drallcome:
Nice, I just finished off Bubblegum Crisis Tokyo 2070 this morning, feeling much better now :cool:
[G1 General] haykuro:
so the time is now 01:52 (Jun 30, 2009).

I've got root. :cool:

$ adb shell
# cat /readme.txt
haykuro wuz here

heres a boot.img so you can play until i'm done :)

http://drop.io/pasqiec/asset/boot-new-img

go into fastboot, "fastboot boot boot-new.img" adb shell will have root

EDIT: just realized i had to be in bed at 1 (i.e. my mom came in and said "why are you up?"), heh.. i'm off guys. i'll work more on this tomorrow! :)
[G1 General] ottawanate:
Good Job buddy

Thanks!! You rock!
[G1 General] Maide:
Hurray! Anyone else looking forward to tomorrow/Wednesday? :)

(Getting root on Canada Day (July 1st) would be an awesome present to the nation!)
[G1 General] frost785:
Crazy Root for magic

ok so just to get this straight cuz this is crazy you have rooted roger dream which is also for roger magic and by rooting the magic we can run any build? haykuro really impressive that was faster then i expected
[G1 General] ivanfilippov:
This is awesome.

Thank you for your work and dedication Haykuro!
[G1 General] esmith:
Agreed!

:D
[G1 General] SpEnTBoY:
sweeeeeeeeeet!! Looking forward to testing out that image! ... and then making sure the radio etc are all happy once we're good to go. You Rock!! :D:D
[G1 General] outsider787:
This is fantastic news.

Thank you Haykuro. I don't know about the rest of you guys, but I certainly feel like my $30 donation was money well spent!

As for getting root, I would like to know what was needed to actually get root.

We have been so in the loop lately with what haykuro has been doing (the technical details) it kinda feels like a bunny was pulled out of a magic top hat.

Haykuro, what was the process you took to achieve root? (I understand what happened up until your previous post) What went on last night till 1:53 in the morning?
[G1 General] PhaseBurn:
W00t, thank you SO MUCH Haykuro!

Can't wait till I get to work and can start playing with this. Ultimately, I'd like to get a different SPL on the Rogers G1 and just run a normal JF or rooted G1 build. The Rogers build has issues that I really dislike about it (and I don't need Exchange support, nor HTC Sync either)

Can't wait can't wait can't wait, you're the MAN!
[G1 General] SpEnTBoY:
It's just nice seeing that hash (#) :D ... and yes to everyone who's contributed ($, drugs [read NesQuik], and time), I think we'd all agree it was all worth it in the end.

Haykuro, more NesQuik coming up man :D
[G1 General] AverageCanadian:
The Rogers Magic has already been rooted. It's talked about early in this thread somewhere. If you can't find the info head over to howardforums.com and they link to the post back here that will allow you to root your magic.
[G1 General] veshio:
atttaaa boyyy Haykuro! i thought it was all slowing down cuz the my F5 finger is soree and the posts were slowing down. aha your one clutch guy haykuro, much thanks!
[G1 General] PhaseBurn:
Once you've booted off Haykuro's provided boot image (the phone won't get past the HTC logo), you can use adb to a root shell.

Download the http://www.magicandroidapps.com/su.zip su binary, extract it from the zip file, and push it to the /system/bin dir (after you remount system rw)

You need to change ownership of the su binary to root:shell. The command to do this is: chown root.shell /system/bin/su

Lastly, set its permissions appropriately.

chmod 6755 su

Reboot normally, you can get "su" from the adb shell with no issues. The terminal emulator, however, gives the error "su: uid 100xx not allowed to su" (where xx is the last 2 digits of the UID the terminal emulator's installed as), but it still gives you a root prompt.

So there's the next step for those who want it. I'm deleting the Rogers kruft I don't need, since I'm on AT&T in the US. Mostly, I'm eagerly awaiting a replacement ROM for the whole phone, but this will do for now...
[G1 General] SpEnTBoY:
I got mine booting all the way with the image he provided and was dropped right to a root shell when I adb shell'd to the device.

I'm still going to throw su on there now though :D thanks for this!!
[G1 General] HyeProfile:
Haykuro, mad propz!!!

Now that we have root, we just need to sort out the radio and spl issues, and we'll then be able to convert some of the popular ROMs for the Rogers Dream... Can't wait...
[G1 General] haykuro:
hey guys :)

"technical" details for the jailbreak (requested somewhere up there):

well i built the serial cable last night and everything checked out (i had the right boot locations) so i was at a bit of a loss, then a magical little birdy provided me with a special nbh of which i could extract the boot img and have my way with it =]

anywho i see reports of the boot img i supplied not booting? is it not booting, or are you not giving it time? lol.

try running "adb logcat" and seeing if theres output while you wait for it to start. i tested it 3 times, and flashed the boot img onto my device, it works fine.

if you aren't experiencing no boot issues, copy the boot-new.img to your sdcard and try this out ;)

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

this will give you permanent root until i finish working on new recovery / rom etc.
[G1 General] jehamish:
So I'm not sure if I'm missing something or what, but this method is just giving root access to the adb shell right? I'm still unable to start wifi-tethering with this setup now and everything seems to be acting the way it is supposed to be, but the phone doesn't seem to have root access to itself unless I run su, and then still only in the terminal - not in the actual gui interface.

Oh, and I know I'm a bit late, but I did send you $10 today haykuro, all your work is greatly appreciated.
[G1 General] justin3:
My understanding is that this is how it should be. I believe the "wifi tether" app should su to root and go from there. However, it doesn't work for me either, and it doesn't seem to be writing log, so I'm thinking maybe it isn't doing that. Anyone else have any info on this?
[G1 General] SpEnTBoY:
I have the same kind of response. Flashed the boot image and when the phone comes up, plug in USB and the adb shell is root, but from the device using a terminal app I have to su to get root. I'm assuming there's something in the new rom that starts the entire env _as_ root.

Either way I'm still stoked :p
[G1 General] tertiumsquid:
Sweet! Worked for me!

Quick tutorial for others. This was done on a Mac for my Rogers Dream, so it may help someone...

Download the following:

<a href="http://drop.io/pasqiec/asset/boot-new-img">Haykuro's boot img</a>

<a href="http://www.magicandroidapps.com/su.zip">SU binary</a> (as per SpEnTBoY)

<a href="http://www.htc.com/www/support/android/adp.html#s2">Fastboot-mac</a> (scroll down a little)

<a href="http://developer.android.com/sdk/1.5_r2/index.html">Android 1.5 SDK</a>

Extract the 3 zip files. I suggest putting the fastboot-mac binary into the android-sdk tools folder, then adding the folder to your path. Otherwise, you'll have to add the full path to every reference to adb or fastboot-mac

Open a terminal, and type the following:

nano ~/.bash_profile

enter:

export PATH=${PATH}:"sdk-folder"/tools

which for me was:

export PATH=${PATH}:/Volumes/Storage/Android-SDK/tools

Exit the terminal, and re-open. Boot your phone into fastboot (hold the camera button while pressing power). Once that's loaded to the skateboarding bugdroids, click the phone button until FASTBOOT comes up. Plug the phone into your usb, and it should change to FASTBOOT-USB.

CD to where you saved the boot-new.img, and run:

fastboot-mac boot boot-new.img

which should start the phone booting. For me, it ended up booting all the way into the phone, not just to the splash as PhaseBurn experienced. Once there, go back to the OSX terminal, and enter:

adb shell

That should get you to a # prompt, which is the root shell in the phone. Once in, enter

cat /proc/mounts

Look for one with /system in it. Mine was

/dev/block/mtdblock3 /system yaffs2 ro 0 0

Take note of the path at the start. Replace if necessary. Run the following:

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

which will remount your /system partition as read-write. Now we can copy in the su binary. To do this, open another terminal, cd to the folder where the su binary is, and enter:

adb push ./su /system/bin

It should copy the file just fine. Now, back to the adb shell window, enter:

chown root.shell /system/bin/su
chmod 6755 /system/bin/su
mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system

That will set owner and permissions on the su binary, and remount /system as read only. Restart the phone, boot up it's terminal emulator, and enter su. You should get a # prompt.

One of the experts want to check this over? I think I got everything :P

*edit* just realized haykuro posted a better version. Damn...

Oh well, hope this helps someone else who wants to use this method :D
[G1 General] jehamish:
Okay, well I'm just glad it's not something I did wrong :D

I can't wait to actually be able to use a portion of my 6GB a month data plan :p
[G1 General] jehamish:
@tertiumsquid: You didn't really miss anything, but you may as well add in this part:

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

That will just set the automatic boot image to be the one Haykuro put up.

Otherwise, the setup you suggested will work, and you can still boot with the old image and use su to get root as far as I can tell, you just won't have root access with the adb shell by default.
[G1 General] SpEnTBoY:
Just a quicker way of doing this (just in case):

# adb remount

;-)
[G1 General] haykuro:
w00t okay guys, got a working recovery image (i just ported over cyanogen's as i felt it's a pretty complete image) AND got a working engineering spl for it :)

i'll release it all in a sec.
[G1 General] borodin1:
@haykuro

Does this mean that once "MyTouch 3G" hits T-mobile stores we can root that as easy ?

Great job by the way, I am not from Canada and I'm still excited for them -:)
[G1 General] haykuro:
http://drop.io/ii4t2ax

enjoy guys. follow the instructions. :)

i'll make a rom later, i'm off to the gym.

this contains update.zip for engineering spl, rooted recovery (cyanogens ported to our phones), and rooted boot.img
[G1 General] jehamish:
You're my hero haykuro, just donated another $10 for you getting this all together before I go on vacation to where I'll actually need to tether :D
[G1 General] veshio:
someone needs to break down the instrustions a little more for us since none of us rogers people are really experienced with this yet. another question how would we backup since we dont have nandroid in our market and cant download it?
[G1 General] fongoid:
@veshio

Nandroid is in Cyangoens recovery image, so when you do step 2, there is an option that appears that says: nandroid v2.1 backup
[G1 General] fongoid:
Double post...but can't delete
[G1 General] haykuro:
disregard.. i thought the last one didn't post.. wtf is up with xda?
[G1 General] veshio:
thanks alot. I'm sorry if my questions may seem obvious, but im really trying to get started here and maybe my questions will help other beginners out too. Regarding fast boot: i have it installed on my computer and when i get into the screen for fast boot on my g1, i do not see any way to enter a command. Im pretty sure I'm supposed to enter the commands though my computer? but nothing is appearing. Is there a way of getting it going that i may not kno? ive heard of plug in usb and hit back button. but im getting no results with that. help is much appreciated :)
[G1 General] veshio:
okay, im a quick learning due to me being very savee with a computer, i was able to just work my way around the computer and get to the fastboot through the cmd. but now it states it "cannot load image" when try booting the recovery.
[G1 General] MrException:
You probably just don't have the correct path to the image specified. Try moving fastboot and recovery.img into the same directory. Then navigate to the directory on the command line and try the command again.
[G1 General] MrException:
Fricken awesome job H! I'm jealous of your skills.

So, now that we have this, can we now use the ROMs already made for the G1? Like your ROMs Haykuro? Or Cyanogen's ROMs?

Also, does anyone have a backup of the original boot.img from the stock phone? I got caried away and flashed the rooted boot.img before taking a backup. I just want the backup in case I need to send it in for warranty or something!
[G1 General] veshio:
lol sorry for being a mess, since im getting stuck on each individual step. You were right, i wasnt in the right directory.

But now it seems to be "waiting for device". I am pretty sure its not just loading and taking its sweet time, so there is probably some communication problems between my pc and the g1. Any clue what the problem might be?
[G1 General] SpEnTBoY:
Ok dumb question ... followed all the steps, didn't get any errors and everything seemed to go ok ... but should the wifi app now work? basically I have the same type of action as when I just flashed the boot image ... I have root if I su on a terminal app on the phone, and have root when I adb shell in ... but I still can't run apps as root.

Can I safely repeat the steps? One thing I noticed is with the apply update, it copied everything from the sd card and gave a status of done ... I never saw the 'chip' until I HOME+BACK'ed out of recovery mode

Either way I dont have a brick :D ... but I dont know if I did this right lol
[G1 General] SpEnTBoY:
something is wonkey with the forums :( ... maybe they're getting hammered lol
[G1 General] MrException:
This could be two things: you may need to install drivers for the phone in Windows. I'm sorry, I'm not a Windows user so I can't help you with this issue.

Do you have your phone in Fastboot mode? Make sure your phone isn't plugged into USB. Then turn it all the way off. Now hold the camera button and hit the power button. Do you now see the three androids on skateboards at the bottom? There should be five lines of text with some version information, then after that there will be a line with a word in uppercase that is highlighted. At first in might say HBOOT. Hit the Call (leftmost button) once or twice and that word should now say FASTBOOT. Now plug the USB cord in, it should now say FASTBOOT USB.

Now try running the command.
[G1 General] veshio:
everything that u stated i have done already, but.... im not sure about the windows update (which unfortunately you said you cannot help that much). I have updated the drivers already, but once i go into fasboot usb, my PC asks to find another update... im not sure if this is the issue
[G1 General] esmith:
So mine won't go past the rogers screen after step 4... it just sits there forever... any advice?
[G1 General] esmith:
so mine wont go past step 4.... sticks on the rogers screen... if i pull the battery and try to do the other steps it just says failed...
[G1 General] esmith:
nevermind...

sorry for many posts... xda site is funky... not my fault.
[G1 General] SpEnTBoY:
Ok I ran through it all again and basically got the same thing ... so either this is the way it's supposed to be or I did something wrong lol

I still can not however get the Wireless Tether for Root users to actually initialise (or show me any logging,"unable to open logfile" error).

Any insight? :)
[G1 General] Capt Fiero:
So has anyone once they have root, been able to flash a non rogers rom onto there device?
[G1 General] veshio:
i got it all to work, thanks haykuro and everybody else that helped. much appreciated. :D
[G1 General] tertiumsquid:
Thanks! Haykuro hadn't posted that yet when I started writing.

Good to know :D
[G1 General] veshio:
Sorry for all those double/triple posts :p blame xda, not me

Quick question: Is there any way to check that we have done everything properly and we have root?
[G1 General] haykuro:
make sure HBOOT is 1.33.2005

and.. when you do "adb shell" you should get a "#" symbol.

your recovery image should also appear MUCH different.
[G1 General] maxawesome:
OP, please update your post with Haykuro's directions and links to all necessary files. Let's summarize this thread so people don't have to wade through 40+ pages of bickering and off-topic nonsense to find relevant content.

Thanks!
[G1 General] SpEnTBoY:
... Looks right on mine and HBOOT is correct and recovery looks different lol ... but any idea why the wifi for root users wont initialize? or why the default shell on the device (from a terminal app) is still no privileged user?

Just trying to wrap my head around how we take advantage now of having root .. WiFi was my first big test :D ... and it's failing :(