yashsingh1/xdaforums huggingface dataset:
[G1 General] PhaseBurn:
WiFi for root users requires kernel support that isn't present in the Rogers ROM. You'll need to load a different ROM that has this support for that application to work.

I don't know if any non-rogers ROMs will work, I'm going to see if I can get one to boot on mine in a few.
[G1 General] aggtrfrad:
so i tried flashing system with virtududes rogers rom and then replace boot.img with the one Haykuro posted earlier, Wont work... it gets stuck after the adb services starts and if i run "ps" (adb shell) i see /system/bin/app_process running and then stopping over and over.

btw the recovery image doesnt work right away for me, it wont mount my sdcard... if i "adb shell" i can mount it manually and everything works fine (nandroid/update)

edit: link for the original boot.img (someone asked for it):

http://www.megaupload.com/?d=FOR97LOI
[G1 General] RMR6:
Paid Market

So now that I have root on this device I assume I can modify some property type file and gain access to the paid market applications.
[G1 General] i<3andr0id:
uggh... i had the worst afternoon, this dude lunged in my car and tried to pull me out, i threw a couple 50s out the window and he went after those and i took off.

THIS NEWS makes me happy though! THANKS H!!!!!

Can I haz rosie? :D
[G1 General] SpEnTBoY:
Ahh ok this makes sense. Is the support built in to the kernel or is any of this one modular? Just wondering if it's something as easy as _adding_ the support in the kernel ... although I dont know if I could find the sources rogers used ... hrmmm ... maybe another modified ROM is the best best ... Haykuro? :)
[G1 General] MrLuigi:
That was you? You mean I could have gotten a new phone off you?

In all seriousness that sucks that someone tried to pull you out of your car man. Being originally from the Toronto area I know that there are tons of people who still carry baseball bats and clubs in their front seat.

But at least you got root!
[G1 General] PhaseBurn:
Hmmm, SPL 1.33.2005 installed properly, but your boot.img still won't get me past the HTC screen, Haykuro...

Same issue when you provided boot-new.img - adb works, but, it won't get into a GUI.

logcat stops at one point (after a few minutes), and the phone responds to button presses (it fires off events in the log file that it's catting) but it never loads the GUI itself.

Here's a link to a paste of the full logcat output during boot, up to where it just ceases. http://pb.privatepaste.com/c81TnKCgT0
[G1 General] haykuro:
just a regular 2.6.27 kernel.

adb pull /proc/config.gz config.gz
gunzip config.gz

use that to compile your new kernel.

/me has been busy a bit today.
[G1 General] haykuro:
I/dalvikvm( 55): Zip is good, but no classes.dex inside, and no .odex file in the same directory
W/PackageManager( 55): Exception reading jar: /system/framework/com.htc.resources.apk
W/PackageManager( 55): java.io.IOException: /system/framework/com.htc.resources.apk
W/PackageManager( 55):	at dalvik.system.DexFile.isDexOptNeeded(Native Method)
W/PackageManager( 55):	at com.android.server.PackageManagerService.<init>(PackageManagerService.java:439)
W/PackageManager( 55):	at com.android.server.PackageManagerService.main(PackageManagerService.java:261)
W/PackageManager( 55):	at com.android.server.ServerThread.run(SystemServer.java:113)

you corrupted it. :P
[G1 General] XwXDv8XwX:
Awesome...thanx Haykuro. Unfortunately I have never rooted any phone and I'll be doing alot of reading before I make the first step doing this. I'd like to see alot more responses so I can walk in others footsteps before I do it. So do I understand it correctly that we have a working SPL and you ported cyanogens mod so we have a working rom to flash with and that the phone still works perfectly fine on the rogers network without a modified rogers rom? I'm hoping somone makes a step by step guide on how to do all this for this specific phone. Anyways..cheers and thanx!
[G1 General] bernZ:
Haykuro, would you mind starting a new thread with root instructions for us rogers users? That way people don't have to sift through this thread to find them. Might be useful.

Bernard
[G1 General] hellfenix:
Ok to anyone that just rooted their Rogers Dream DON'T TRY TO INSTALL CUSTOM ROMS. Unfortunately I tried to install cyanogen's and then replace the boot.img with the new one but it doesn't boot, stays at Rogers logo. My backup is at work which I won't go to until thursday (No work on canada day) so i'm phoneless for 2 days at least ;-;

D/AndroidRuntime( 162): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<

D/AndroidRuntime( 162): CheckJNI is OFF

W/dalvikvm( 162): Unable to stat classpath element '/system/framework/com.htc.a

ndroid.easopen.jar'

D/dalvikvm( 162): Failed on '/system/framework/com.htc.android.easopen.jar' (bo

ot=1)

D/dalvikvm( 162): VM cleaning up

D/dalvikvm( 162): LinearAlloc 0x0 used 4100 of 4194304 (0%)

W/dalvikvm( 162): JNI_CreateJavaVM failed

E/AndroidRuntime( 162): JNI_CreateJavaVM failed

[Edit 2] Of course it won't work, the boot.img is made to boot files from the Rogers Rom, so probably a modified Rogers rom might work, trying with one that includes com.htc.android.easopen.jar now [/Edit2]
[G1 General] XwXDv8XwX:
It would be extremely useful....Please someone start a thread explaining step by step how to do it. Thanx!
[G1 General] PhaseBurn:
Interesting, considering the original boot still works. Additionally, your boot.img *never* worked for me, before I was able to get root for the first time via adb - there's nothing I could have done to system at that point.

After I got root via adb, the only thing I did was add "su" to the /system/bin dir and chmod it appropriately.

So that being said, anybody have a nandroid backup of system.img I can snag then please? The one I made was after the boot.img failed to boot my Rogers phone. If I ****ed something up pre-root, I know not what, or how...
[G1 General] cyanogen:
So whats the deal with the boot.img on these things Haykuro? Does it need to be packed differently and mkbootimg won't work? I was able to unpack your files with the standard tools.. I'd love to get my ROM running on these things but I don't have one.
[G1 General] jehamish:
So the first person to set us up with iptables support gets a cookie :D

If no one's done it by tomorrow, I might attempt to set it up myself - but we'll see.
[G1 General] hellfenix:
Well like I thought earlier my problem was caused by Haykuro's boot img trying to use Rogers' assets that aren't part of Cyanogen's Roms. I confirmed that by booting a Rogers based Rom (Ramjet Revenge) and succeeding.

Like Cyano asked I wonder what needs to be changed in the boot.img, what bothers me is that Rom releases will become a hassle if Rogers users need a different boot.img every time :(
[G1 General] AverageCanadian:
Check here

This is the thread I'm going off. I'll get back to everybody and let you know how it works.
[G1 General] PhaseBurn:
I'd love you to get your ROM running on these things, too :-)
[G1 General] bernZ:
OK. It appears I have root: When I type in adb root, it gives me the confirmation.

However, two apps which I've tried (market enabler and setcpu) both fail to run. According to setcpu, it was unable to establish root and thus couldn't run. Is there some sort of permissions settings which I (likely) neglected? I followed http://www.howardforums.com/showthread.php?t=1545226 to root, which essentially includes Haykuro's instructions in the files he uploaded.

Thanks for all contributors!
[G1 General] AverageCanadian:
alright since most of us in this thread are giant newbs...

Can we use any of the recent G1 roms on our phone and just change the APN settings?

I was told that it would be best to place the boot.img that Haykuro has provided for us in any update.zip that we use? Is that the correct procedure?
[G1 General] jehamish:
Market enabler worked fine for me, you may just have to reinstall it once you already have root. :D
[G1 General] bernZ:
jehamish, you followed the instructions on hofo right?
[G1 General] jehamish:
Well, basically - though I did them as soon as they showed up on here, not on hofo. The only other thing I can think that you may need to do that isn't included in the hofo instructions is install su. Try following the instructions on here a few pages back to install su and try again if reinstalling alone didn't do it. I actually just bought my first paid apps on the market :D

Now if only the apps to sd program actually worked... I should have just dont it manually.
[G1 General] bernZ:
Hmmm... Perhaps I do need su. That was I was suspecting.. I redid the instructions and the same result. Market enabler claims to be working but I can't see any paid apps on the market. SetCPU fails at obtaining root too, making me think that I actually need superuser accesss.

Thanks!

Edit: Yep, obtaining su did the trick. I was too tired last night to figure it out, haha. Thanks very much!!
[G1 General] veshio:
I'm assuming this is what you are referring to. If so, i am confused with the second step. I already pushed the file to my phone, but i do not understand the : chown root.shell /system/bin/su command. Any help or clearification would be great :)
[G1 General] jehamish:
basically, you run "adb shell" which lets you run commands on your phone, it should show a prompt with "#" at the start if you have it all set up right.

Then from there you run

chown root.shell /system/bin/su
chmod 6755 /system/bin/su
[G1 General] bernZ:
Did you push onto the phone itself or onto the SD card? It makes a difference.

Make sure you push the su binary onto the phone's internal memory.
[G1 General] veshio:
Alright that helps, thanks! But when i enter that command it says its unable to do it because its a "Read-only file system". Any clue whats wrong?

EDIT: I was able to use the chown root.shell /system/bin/su. it seemed to work.

Now im stuck on setting the permisions. it says theres no such file when typed in the shell. Sorry for getting stuck on each step here guys, I'm experimenting a lot, i just dont want to experiment too much and ruin my phone :p appreciate the help!

EDIT: Lol nvm, i figured it out, im a mess srry guys. now to see if it acually worked and test some apps out. thanks a bunch! :D
[G1 General] jehamish:
yeah, sorry I guess I should have said to do "adb remount" before you do all that stuff. That's the easiest way to get it to work. I'll write a shorter version of how to make it work in a bit, but someone with windows wanna elaborate on how they use adb and whatnot? just so I can make it clear as I write it.
[G1 General] dakotapod:
Success. I couldn’t get anything to take until I installed and set su so seems to be a must

Got market enabled and and setCPU up and running, so all very sweet! No love with apps2sd yet, but haven't tried too hard yet.

Great job! Donation on the way brother!

Now, how do I uninstall pre loaded apps? Seem to still be locked. I cant even delete Rogers preinstalled bookmarks via file browsers
[G1 General] XwXDv8XwX:
Please will someone post a step by step guide? I could probably piece all of this together and figure it out but I don't wanna brick my phone even though I could get it replaced. So far I see the guide to doing this right from the start is in different spots on the intarwebs right now. Please someone help us out ;)
[G1 General] veshio:
Everything worked greatt! But now when i open my market... and look for priced items, it says cannot find any content. Did i mess something up? It worked at first.
[G1 General] ma401:
I just posted this on Hofo too:

Deleting Rogers Apps

If you don't want to mess around with other ROMs but want to get rid of those annoying and useless (in my opinion) Rogers apps you're in luck! And it's actually a pretty easy process...

This is assuming you have already rooted your device and have the Android SDK installed. Be VERY careful when deleting apps off your device as if you delete something important you might brick/seriously hinder the usefulness of your device. If you want to play it safe do a nandroid backup before you do any of the following, that way if you eff something up it's an easy fix.

1. Open a command prompt and navigate to your sdk/tools directory

2. Type "adb remount" then "adb shell" to open a shell to your device

3. Type "cd system/app" and hit enter

4. Type "ls" to list the installed applications on your phone. Take note of ones you do not want to keep any more (eg RogersRingtones.apk)

5. Type "rm appname.apk" (eg "rm RogersRingTones.apk") and hit enter

6. Repeat step 5 for all of the apps you want to remove

7. Type "exit" and you're done! I don't think a reboot is even necessary :)

Enjoy!
[G1 General] MrLuigi:
Someone please help with this

So I fastboot into the recovery.img and select 'nandroid v2.1 backup' it looks like everything is going well until it gives me a 'Error running nandroid backup, Backup not performed.'

Anyone have any ideas?
[G1 General] ma401:
How big is the microsd card in there and how much free space does it have? My nandroid backup ended up being 162MB in size
[G1 General] dakotapod:
You sir, are a king among men :)

I wanna see how clean I can weed down the current rom. Will wait a bit to try new releases as they come, but hopefully this will help stream line this one

Thanks again!!
[G1 General] MrLuigi:
its a 2gb card and has 1.8gb free.

The nandroid back up is failing after it makes the initial folders.

I get on the SD card nandroid\phoneserial\YYYYMMDD-HHMM\

But nothing appears in these folders.
[G1 General] dakotapod:
It needs to be run each time [enabler] Does for me anyway

Rerun enabler and try market again
[G1 General] hellfenix:
So is anyone aware if there is a way to put Cyanogen's builds on this device?
[G1 General] XwXDv8XwX:
Well I took a chance to see how well I would fair out doing this and it was a complete success. Market Enabler works and I can now find SetCPU. This day is working out quite well...lol.

I only got made fun of a little by my wife when I was talking to myself when typing in commands
[G1 General] MrLuigi:
This what I have posted on howardforums so I figure I should post it here too

Basically everyone asks if my SDcard has enough space and other then that they get stumped. Anyone out there a pro with the process of Nandroid?
[G1 General] AverageCanadian:
The only other common trouble shooting step appears to be to remove the card and place it back in.

Others have reported they have had to remove everything from the sd card except the update.zip file, then copy it back on after the rooting is done.
[G1 General] ma401:
Yeah, and you can try formatting it too. Try another MicroSD card if you have one of those too
[G1 General] XwXDv8XwX:
Well I made a guide to help others root the rogers phone by compiling all the steps into one spot and tryed to make it a little more foolproof. I think I didn't miss anything but please, experts, have a look and try to pick out any mistakes so people don't have ****ed phone by the end of it. Thanx!

This guide can be found here http://xdaforums.com/showthread.php?t=532419
[G1 General] aggtrfrad:
Haykuro pls let us know how to pack the kernel for the rogers dream?

Almost all ROMs use customized kernels...

edit: nvm :p

http://xdaforums.com/showthread.php?t=532224
[G1 General] cyanogen:
I used his hacked mkbootimg to repack it for CM-3.6 and it didn't boot.
[G1 General] aggtrfrad:
what do you mean it didnt boot? on what device did u try?

edit: the tools still use the T-mobile G1 memory offsets, you have to specify the new offsets (rogers dream) your self

kernel addr: 0x19208000

ramdisk addr: 0x1a200000

second addr: 0x1a100000

tags addr: 0x19200100
[G1 General] cyanogen:
No.. I did it correctly. There is something in the Rogers Dream kernel that is different besides this. The kernel that Haykuro built into his rootme kit is the stock kernel from these devices. I am using a custom kernel. I compared the config from his Rogers Dream to msm_defconfig from AOSP, and there are options on the Rogers kernel that aren't available anywhere. So we either need to get whatever they patched in, or reverse engineer it.
[G1 General] aggtrfrad:
so if the mem offsets are not enough for the G1 kernel to boot on the rogers dream, that probably means there are more hardware differences right? ;/

or could it be something with the kernel size? the custom kernels i see are larger than the stock rogers dream kernel..
[G1 General] MrLuigi:
Going back to what I was asking earlier about issues with the Nandroid backup.

So I tried another 2GB Sandisk microSD card and formatted it placed update on the card, ran the recovery img and then selected Make Nandroid 2.1 backup.

I am still failing every time.

Now here is the thing. The first time I started to root the phone I did the update then tried to Nandroid. Could that be the cause of my problems?

Essentially I am waiting to do steps 6 7 and 8.

I sorta want to have a nandroid backup up something that works before I root.

Does anyone have the nandroid backup files that I could use if I screwed up my phone? I just want to make sure things are kosher before I proceed.
[G1 General] aggtrfrad:
yeah there is the stock boot.img and system rom for rogers. I also had a problem that noone else seems to have. My sdcard wouldnt mount on recovery mode. but i adb and did it manually.
[G1 General] XwXDv8XwX:
I had the same problem...not able to mount the sdcard. I used the boot.img and this system.img file to go back to stock http://xdaforums.com/showpost.php?p=4061548&postcount=50

put the system file in your tools folder and just use "fastboot flash boot boot.img" and "fastboot flash system system.img" to get back to stock
[G1 General] i<3andr0id:
Hello friends! So rooted, that wass easy thank to dv8's tut. Much appreciated. Very excited about the prospect of new roms, but that will come in time. Questions though:

Why doesn't "wireless tether for root users" work? I get "unable to start tethering." Everytime I try. Wifi is enabled.
[G1 General] jehamish:
Well, we figured it out earlier, and basically the rom has no iptables support. If someone built iptables support into the rom, it should theoretically work but no one's done anything with a roger's rom other than haykuro up to this point. I think I found the tools I need to compile it with the proper support but I'm rather new to this and on holidays - so probably not gonna be at my computer much for a few days.
[G1 General] SpEnTBoY:
Looks like it's a 'not supported in kernel' kind of thing. I haven't had much time to look into it but I'm assuming this means there is no ip or iptables support built in to the Rogers kernel.

I'm still trying to determine if apps2sd will work but again, haven't had any real time to play around. I've seen some posts that say it wont work and only with dude and JF builds, others saying ANY rooted phone, and even others saying its so flakey dont bother (which I think is dumb because even if it's flakey you can contribute to help it NOT be) lol

Anyway ... if no one has had a chance to successfully build a kernel for our phones (there are a couple of other options posted for params not in the stock kernel) then hopefully I'll have time this weekend to play around. I want the tethering working too!! although so far I'm stoked even with having all of the market open plus SetCPU (although it was stated earlier as well that we were already pretty much clocked at the high end by default ... I totally had the placebo effect forcing it to max thinking everything _seemed_ faster :p
[G1 General] i<3andr0id:
Thanks for the info and not being all "use the search".

lol, I totally know how you feel with that placebo effect. That's so funny to me. (But then again, I spent the day working on a powerpoint presentation, giggling at their *special effects*)

This whole root thing has been really fun! All the waiting and Haykuro's hard work is really paying off in dividens. Now cyanogen (sorry if i spelled that incorrectly) is interested in building a rom. I am really excited about all of this. Thank you all for making this possible.
[G1 General] lbcoder:
I don't know if you people realize this, but assuming that there is some proprietary no-source crap that rogers has thrown in just to make life miserable, you don't need to compile a full custom kernel to enable iptables (for tethering) or unionfs/ext2/3 (for apps2sd)... all you need to do is compile the MODULES required for those particular features against the kernel source version matching the kernel that is in-use. The modules can then be loaded dynamically (the command is "insmod modname.ko"). And of course, the loading can be automated by shoving a set of insmod lines into your startup scripts.
[G1 General] SpEnTBoY:
iptables

Just for validation I copied the iptables binary up:

# iptables -L
iptables v1.3.7: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

I think built in support would be a lot nicer than modularly poking it in but I checked to see just in case someone cross-compiled a loadable module for iptables. That being said the existing config would still have to have mention for iptables support even as a module (=m)
[G1 General] SpEnTBoY:
True ... but it would be nice to have native support :) ... either way I'm assuming we'd still need to build a cross-compiler (or find an available toolchain etc). I hunted around to see if there was a iptables.ko somewhere to no avail
[G1 General] outsider787:
Do the insructions given at http://xdaforums.com/showthread.php?t=532224 wipe out the data on the phone (like doing a hard reset)?

Or will it just update the OS, and the data remains intact.

Just curious before I embark on flashing/rooting my Rogers Dream.
[G1 General] AverageCanadian:
If you are just rooting your phone, no you wont loose any of your settings or programs.

if you're flashing a new Rom to it(which I haven't done yet because there is no compatible rom for the dream) it is always recommended that you do a whipe and that will clear everything from your phone.
[G1 General] lbcoder:
Huh? Download the android source, the kernel version will probably match, but if not, download the appropriate source version from kernel.org, configure the kernel, and build as usual.

And no, your existing config would NOT need to mention iptables. You just need to have the modules LOADED.
[G1 General] PhaseBurn:
There's two options missing in the public kernel source tree that the Rogers stock kernel has. With out them, the phone won't boot the kernel properly. I've been playing around with kernels and trying to get one to boot on my Rogers, but to no avail. Even taking the config.gz from the Rogers stock ROM, using that as the .config in the public tree, and building with exactly those options, the phone won't boot the kernel.
[G1 General] SpEnTBoY:
uh ... ok. I was under the impression (from compiling apps for ARM on iPaq for familiar) that a binary compiled on an x86 or 64bit machine would not run on an ARM processor unless you compile using a cross-compiler using a toolkit, which I have done ... just not for Android.

If it's that simple I'll go give it a shot sooner than later :D Does this mean that the android source includes a cross compiler? or that compiling it on my laptop will be ok and the binary will run on the phone when I build the kernel or modules?
[G1 General] SpEnTBoY:
I'm going through the docs now for the Android build. I remember seeing a post earlier that listed a couple of required kernel options that do not exist in the main trunk/public tree but I'll see if I can single out just building a kernel module for iptables and see if it pukes.
[G1 General] cyanogen:
In 2.6.29, there is an option for the AMSS modem firmware version, which defaults to "6.2.20 + New ADSP". There is also an option for "6.3.50", and I'm wondering if this is needed for the Rogers device.. I really don't know of the hardware differences between the G1/Rogers Dream, other than the radio.. If nobody tries it by tomorrow, I'll make a boot image with that option for someone with one of these phones to try. If that doesn't work, someone needs to build a serial cable to see whats going on.