yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Beast84:
JesusFreke & unknown.soul

Thanks so much guys!!! I was racking my brain trying to figure this out. You saved me a midlife crises at the age of 25 lol thanks again
[G1 Android Development] danguyf:
If you take out the sdcard it shouldn't return to that multicolored screen.

I would repeat the process of formatting the sdcard, copying DREAIMG.NBH onto it, etc. Hopefully it'll work the second time.
[G1 Android Development] ahmad.yousry:
i am on RC 29 and still can not get the script to work

i followed all the steps sevral times ... the phone does not reboot !!!!

i saved the text file, the image and the zip file onto the root of the SDcard

i waited till phone filly opened ... i typed in the commands

cd sdcard<enter>sh install<enter>

and nothing happens !!!! there has to be something wrong... any success guys ?
[G1 Android Development] deprecate:
If this is a concern of yours, it may be best to not bother :)

But to answer you...yes, if you root/flash your phone and then take your phone to T-Mobile that way with any issues, you will get no recourse.

Now if you were to say keep the rc29 image around and when you need support from t-mobile, reflash it to your phone, then you will keep your warranty.

But again, if this is something that bugs you, just leave it as-is.
[G1 Android Development] T_Reis:
Hi i try to do this:

Type the following into your phone anywhere after it has started up (Yes, it will start up a contact search, don't worry. Just type it.)

cd sdcard<press enter>

sh install<press enter>

But nothing happens. i have the rc7 version now.

What can i do?
[G1 Android Development] nvisi0n:
Make sure the name of the install file is "Install" not install.txt
[G1 Android Development] T_Reis:
Humm. Nothing again.

I do: cd sdcard, and then without spaces sh Install?
[G1 Android Development] eosrider:
I too am having the same issues. ive downgraded from 30 just fine, ive checked that the install file is Install.txt instead of install.txt

i have made sure that i have rc 29. i have even tried the reboot command and that works too

whats going on?
[G1 Android Development] nooselerr:
appreciated! i'm not too concerned, i rooted my phone without any problems, i just wanted to know there's still a possibility to keep my warranty :D Thanks!:)
[G1 Android Development] bobdude5:
only you can prevent forest fires

i did like 3 times and taking out the sd card still went to the multicolored screen but it doesnt go to the grey/white screen for setup..im having tmobile send me new one..hopefully that ones is no updated to rc30
[G1 Android Development] eosrider:
ok now im even more frustrated then i was at the start of all this. after reformatting my sd card to fat 32 (2nd time) and re flashing my phone to rc 29 again. now its like i have no root at all

not even that stupid reboot bug while texting

anyone?

thanks
[G1 Android Development] Koush:
Too many people are having issues doing the "simple" "sh install" method. I've reverted to the older manual telnet way. Please check the instructions again.
[G1 Android Development] schizox:
can u put both methods?

like leaving the sh install method as a optional to the telnet method?

that way if one fails for some they can just use the other method
[G1 Android Development] luiscortes:
So I had no success several times the first method and got fraustrated like the others in here. I have tried the telnet method also with no success twice. I do have rc29. It just does not reboot at all after the last command is entered. Any ideas? I'm really thinking to just keep it stock after 2 days of tampering with this.
[G1 Android Development] eosrider:
done! thanks for the help
[G1 Android Development] The Spirit:
can i root my adp1?

is this the same steps as descriped in post #1?
[G1 Android Development] Eddie_gauge:
Try this: Delete the .txt extention, as soon as the device boots up hit enter, promptly followed by cd sdcard<press enter> sh install<press enter>, worked for me thus far.
[G1 Android Development] JesusFreke:
JesusFreke's Comprehensive Guide To Rooting ADP1 with Stock ADP1 Firmware

Search for and install the "Terminal Emulator" app from the market

Open the "Terminal Emulator" app

Type su and press enter

Congratulations. you now have root
[G1 Android Development] rynosaur:
Hahaha hilarious. It's like Paris Hilton asking what grade of gasoline to put in a Ferrari.
[G1 Android Development] Autarkis:
...which again proves that the best things in life are the simple ones. :D
[G1 Android Development] deprecate:
If you have a dev phone, it is already rooted.
[G1 Android Development] ApexPredatorBoids:
I'm having the exact same issue. I started out with RC30 but downgraded to RC29 without any problems. I've tried the telnet method 5 times so far being very careful to follow the directions and type the commands exactly as they appear in the initial post on this thread. It never reboots automatically for me. Am I missing something simple? (feel free to PM me to avoid further thread clutter)
[G1 Android Development] Koush:
Sorry, that "your phone should reboot" thing was text from another set of instructions.

You guys all have root if you made it to the telnet part (and just did not know it). Hahah...
[G1 Android Development] ApexPredatorBoids:
D'OH!! Sweet. Thanks for the quick reply.
[G1 Android Development] nvisi0n:
Ok, I went from RC30 to ADP1. I got the Terminal Emulator and I can "su" and the warning comes up and I hit OK that tells me I still have ROOT. I cannot connect to the localhost with telnet. Am I missing something?
[G1 Android Development] luiscortes:
Got root now. Thanks soo much for your help.
[G1 Android Development] schizox:
i just followed all the steps on here and they all worked

however i used the sh install option (since it was removed got it off google cache)

imo the sh install option is easier

for all of you having trouble with the sh install option

just press enter twice before typing each command on the keypad

thats what i use to do before every command when i had to blind flash a video card
[G1 Android Development] diset16:
am i supposed to delete the RC29 update when i put the RC30 on the card to flash it
[G1 Android Development] schizox:
the way i did it ... yes

formatted msd card to fat32

added DREAMIMG.nbh

downgraded to RC29 with DREAMIMG.nbh

formatted msd card to fat32

added recovery.img, hardSPL

did all the steps shown on the first post

applied hardspl

formatted msd card to fat32

added modified rom of choice

and good to go...

i decided to do all those formats just cause im ocd that way... im guessing you can just delete the files and add the new ones
[G1 Android Development] diset16:
thanks a bunch
[G1 Android Development] suntmagar:
:(

i can`t instal the rc29 file :((((((((((((((((((((((((((((!!!!!!!!!
[G1 Android Development] JesusFreke:
Why do you need to telnet to localhost again? *scratches head*
[G1 Android Development] nvisi0n:
I dont HAVE to I just figured with root I would still be able to. But the telnetd trick doesnt appear to work anymore.
[G1 Android Development] Koush:
It does work... go to terminal emulator, type su, and then type telnetd...............................................................
[G1 Android Development] suntmagar:
:(

i can`t instal the rc29 file i got 1gb mmc
[G1 Android Development] suntmagar:
ahaha

i instal Android Dev Phone 1 and the phone its not starting up what i have 2 do??? :D
[G1 Android Development] suntmagar:
:D

i need drivers for the phone 2 conected 2 the pc???/
[G1 Android Development] nvisi0n:
You are a God, this has been driving me nuts. I guess the hidden terminal doesnt work in ADP1 like it does in RC29
[G1 Android Development] schizox:
1. did you format the micdo sd to fat32 adn add dreaming.nbh to the microds card?

2. if you are transfering files directly from the pc to the phone , yes, it should ask you to i nstall the driver once you connect the phone

however i did the entire "Rooting, Hacking, and Flashing" wihoud conncting the phone to the keyboard, i downloaded all the needed files and transfered them to the microsd card through a card reader...

i hooked the phone to the pc when i had to follow the register with no simcard process.

hope this helps u
[G1 Android Development] suntmagar:
i instal it but i have a problem with android.process.core i got 2 delete something??
[G1 Android Development] mannyb:
Ok, so I have an ADP1. I downloaded JFv1.31_ADP1.zip, renamed it to update.zip and put it in the root of my SD card. I shut the phone down and started it by pressing Home + Power. It booted up in recovery mode. I pressed Alt+W and the device wiped and then rebooted automatically.

I now see the Android screen (the first one, not the one with the flashing Droid), it just hangs there for maybe like 30-40 seconds, then the second boot screen comes on (the one with the flashing Droid). Then 15 seconds later I'm in, and I am prompted to set up my Google account and all that.

Now the question is, what happened? Am I back on the default ADP1 image or am I on JF's ADP1 image? I never pressed Alt+S to apply the update during the startup (after the wipe). Because I did not know exactly when to press it, I just waited, and here I am.

Halp!
[G1 Android Development] jashsu:
Not sure what happened but it should not reboot automatically after Alt+W. Normally it wipes and then waits for a new command.
[G1 Android Development] mannyb:
Oh, well that's odd. I must have done something wrong I guess, I'm just not sure what.
[G1 Android Development] ApexPredatorBoids:
It automatically reboots for me after a wipe also. Man, this Android stuff is difficult for a computer dunce like me. I find myself missing the intuitive simplicity of WM. Now that I have the modded RC30 update installed is there some SIMPLE test I can do to confirm that I do indeed have full root access and haven't missed something?
[G1 Android Development] jashsu:
Start the terminal emulator and enter su. When it asks for permission, allow it. Then enter whoami. If it returns whoami: unknown uid 0 then you're good to go.

Root access is a means, not an end. I think that's what's confusing a lot of people. Don't confuse having a modified Android as having root. The moment you downgraded to RC29 you had "root access".
[G1 Android Development] JesusFreke:
It will automatically reboot if the text isn't turned on, which it wouldn't be by default on the stock APD1 build.

It sounds like you just did a wipe, but didn't apply the update. btw, there wasn't really a need to do the wipe since you were applying the ADP1 version onto a phone that already had the ADP1 software.

In any case, just go back into recovery mode, press alt+l to turn on text (optional), and press alt+s to apply the update.
[G1 Android Development] mannyb:
Ah, I see. That definitely clears things up a lot.

Thank you!
[G1 Android Development] thainess:
to root my g1 do i need to have t-mobile internet? because i dont lol :]
[G1 Android Development] shilster:
I am stuck on the screen which says

DREA100 PVT 32B

HBOOT-0.95.000

CPLD-4

RADIO-1.22.12.29

SERIAL0

iTS RED, GREEN, BLUE, AND WHITE IN COLOR

What do i do now?
[G1 Android Development] ApexPredatorBoids:
I'm completely 100% lost with Android. I just tried to install the auto rotating browser and I can't get **** accomplished. I get permission denied and/or not found at the very first step. At this point I'm just looking to confirm that my G1 is "rooted" so I can sell the stupid thing on Ebay for a slight premium and revert back to a slightly more idiot-proof WinMo device. When I do a SU then whoami in the terminal emulator it says "unknown uid 0" so I'm guessing this is where I need to be in order to bail out and make a little profit for my troubles. Thanks for your help.
[G1 Android Development] schizox:
press and hold call + menu + end to reboot
[G1 Android Development] pixel-painter:
This was brilliant, thank you to all of the contributors. When I bought my phone and found out I had RC30, I was a little bummed out. I had been looking around for fix a while and just got busy and forgot, when I started looking again recently I found this post. it was well explained and easy to follow.... but most of all it worked like a charm....Thanks !!!! :)
[G1 Android Development] flixxx:
I ran the steps to root my android and when I tried to move my cache I would get permission denied.

I tried the above steps mentioned and I get;

unknown uid 10001

How can I go about to get the proper access?
[G1 Android Development] :
Did you type "su" before "whoami"? I'm seeing 10001 without "su" first.
[G1 Android Development] jashsu:
Processes running in user space get uids assigned starting at 10000. Need to su first.
[G1 Android Development] shilster:
and than try it again? and also do i need to unzip RC29 after putting it on my SD card?
[G1 Android Development] billcollector:
I have followed every step, downgraded to rc29, done the telnetd, remounted as rw, and yet i am still not getting root. when i use terminal emulator, and enter su, I am still getting permission denied. what am i doing wrong????
[G1 Android Development] :
you need to create su

cd /system/bin

cat sh > su

chmod 4755 su

now you have su
[G1 Android Development] diaztradeinc:
Ok quick question, whats the difference between jf firmware rc30 and adp1? :confused:
[G1 Android Development] momentarylapseofreason:
Look below your user name in the upper right hand corner. There is a search button below it.
[G1 Android Development] diaztradeinc:
Yea that helped.
[G1 Android Development] jashsu:
Some differences are noted in this thread:

http://xdaforums.com/showthread.php?t=466243
[G1 Android Development] diaztradeinc:
Thanks i appreciate it when someone tries to help instead of being a d*** :D
[G1 Android Development] schizox:
after following that process, u press those keys to reboot

if you follwoed them correctly you should be downgraded to RC29

and the RC29 zip file has a file in it called DREAMIMG.nbh

thats the file that goes in the sd card root inorder to downgrade, unzip that file then copy it to your sd card

im guessing thats what you are asking right?
[G1 Android Development] shilster:
ok im done with the rooting process. and the software in my phone is RC29. now what do i do.. I installed update.zip on my sd card. but it says NO SIGNATURE. Do i need to unzip that first and than put it on my sd card?
[G1 Android Development] :
you need to flash the recovery image signed with test keys before you can run the update signed with test keys.
[G1 Android Development] shilster:
Iam sorry but how do i do that?
[G1 Android Development] big nu:
koush, i think im gettin it, i got to the point of downgrading from a RC30 to RC29. im currently trying to root my phone but i downloaded the recovery img. files and other files needed but im having trouble gettin the telnet to read the recovery img. file so that i can root the phone.. what should i do?
[G1 Android Development] zechariah:
Maybe someone can help. Im not sure how I am sucking at this whole process, but when I update to the JFv1.31_RC30.zip, I am suddenly losing my root access again. Is there something I am doing wrong?
[G1 Android Development] JesusFreke:
open terminal emulator

type su

see that "#". that means you have root :)

typing "telnetd" into the keyboard only works on RC29 and earlier. This was a HUGE BUG, and it's a very good thing that it doesn't happen anymore. You DO NOT need telnetd to have root access. You do not need to telnet into your phone to have root access. That just happened to be the easiest way to get root access on RC29, using that HUGE BUG (that we are glad is gone :p).

If for some reason you still want to telnet into your phone, make sure you are on JFv1.31 (it doesn't work it JFv1.3), and open a terminal emulator, type su, then type telnetd. You can now telnet into your phone, and will have root access. But again, you don't need to telnet into your phone to get root access - just type su. Once you see a # prompt after you typed su, that means you have root access.
[G1 Android Development] Shagman68:
>What To Do Now That You Have Root

>Now that you have root, you will want to apply "Hard SPL" to your phone. >HardSPL is what will allow you to apply flash images from other regions (like UK >on US phones, and vice versa), create full backups of your phone, install the >latest build from the Android source, and usually resurrect your phone if it is >"bricked". You have already downloaded the file to your SD card, so now you >can apply it.

>

> 1. Power off your phone.

> 2. Start up in recovery mode by holding home and pressing power.

> 3. You will now enter recovery mode. You should see an exclamation.

#3 is where my phone hangs, I get the T-Mobile G1 black and white screen while holding Home+Power and nothing happens just stuck there for 10 minutes. So I pulled the battery. It does boot to the Home screen normally though. Now I have RC29 with root, no hard spl yet, arrrggggg.

Shaggy
[G1 Android Development] Karli:
rooting a german G1

Hi,

i asked this already in the dream-board, but maybe this is the right place, so please excuse my double-post:

i am testing a (to be released) german G1 Phone (don't ask me how i got it), it has the following software running:

Firmware: 1.1

Baseband: 62.33.20.08U_1.22.12.29

Kernel: 2.6.25-01843-gfea26b0 android-build@apa27 #6

Build-Number: 123099

and i was wondering if anyone knows this build and if i want to root it do i have to downgrade and if yes which RCXX (US or UK) should i use for the downgrade.

thanks a lot!
[G1 Android Development] neoobs:
Not sure about the build number (could be faked anyways)

but the rest is the same as the new 1.1 ADP firmware version. But then again maybe my build-number was altered IDK
[G1 Android Development] staulkor:
I have been poking around at this for a few hours now.

I have recompiled dropbear for arm and im trying to see if I can get it to work on here, but the problem is I cant find anything to change ownership of a file!

From looking at the other files in /system/bin that are executable in shell, it looks like they need to be root:shell. I put the dropbear binary on my sdcard (which is locked down with masks and a noexec flag. I am going to try remounting it). I copied dropbear from the sdcard to /system/bin and it automatically changes the permissions to root:root and read only for root. I chmod'd it to 4777, but its still root:root (obviousy) and I keep getting permission denied :(
[G1 Android Development] staulkor:
Well I finally unmounted /sdcard manually. You have to kill mountd manually and then you can unmount it. Unfortunately, as soon as you try to remount it, mountd starts up again and enforces its mount parameters instead of mine :(

Also, I am looking through various startup scripts and the script is calling chown...so where the hell is it!
[G1 Android Development] Darkrift:
chown isnt there. not sure how the scripts get away with it, but check here for busybox (im taking ideas from #android and making little tutorials incase you were wondering about the links): http://android-dls.com/forum/index.php?f=15&p=422&rb_v=viewtopic#p422

You can use this method (at the end) to do 'cp -s busybox chown' and you will then have chown :) good luck and dont brick/break anything.
[G1 Android Development] LGSilva:
Doesn't the OS run all apps sandboxed?

So would you have to change more than permissions to make anything work?
[G1 Android Development] staulkor:
Nice! I am trying this now.

And chown has to be there somewhere...why else would it call it. I guess we will learn eventually as we pick apart android more :p
[G1 Android Development] LGSilva:
Just a complement from my previous post:

“We wanted to sandbox every single application because you can’t trust any of them,” said Rich Cannings, a Google security engineer.
[G1 Android Development] staulkor:
I'm sure all the "real" applications that were intended to be used on Android, such as programs off the marketplace and other APKs, are in a sandbox environment. So far it looks like we are beyond that and are down to the core (or near core) of the OS.
[G1 Android Development] twistkill:
muwahahahahahhaha...this is sweet!
[G1 Android Development] staulkor:
Ok...FINALLY I am able to port apps to native C code for Android. It has only taken me many hours of my time and no sleep, but hey, its all for fun and glory (lol).

I have compiled dropbear and it IS working and running as a daemon. However, I can't actually connect to the SSH server yet. Netstat and ps reveals that is is in fact working:

netstat

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

ps

root 1013 1 1088 252 c00a62ec 0004cfe4 S dropbear

Im so close I can taste it :P I just have to figure out how to make dropbear listen on the correct interface. Im sure there is a setting in the config.h file for dropbear and a simple recompile will fix it.

When I do get it working, I will make a full diy on how to install it.
[G1 Android Development] staulkor:
Got it working ;)

I can connect to the phone via ssh, however, it is asking for a username/password. The problem is there isn't a password for root (so I think) and there definitely isn't a password for the other accounts. So now that I got ssh up and running, I need to figure out how to actually log in and take advantage of this!

Normally for usernames and passwords, they are kept in the /etc/passwd file. The passwords are obviously hashed, but it would show you if there is indeed a password or not so we don't waste our time brute forcing if it comes down to that.
[G1 Android Development] humble:
Wow:eek: again, please sir keep us updated. and give us a walk through. You guy's Are about to make history:D keep up the good work(o yeah, and get some sleep):D
[G1 Android Development] staulkor:
It's just too much fun. I cant go to sleep yet, but I probably will :/

I forgot to mention, /etc/passwd doesnt exist. That would make it too easy, hehe
[G1 Android Development] dagentooboy:
so is there any way to do this over USB so we can tether through ssh? Or do I need to carry a wireless router everywhere to log in?
[G1 Android Development] Samuelgames:
Well done jailbreaking the G1, I want to see some XDA Apps on it
[G1 Android Development] johnkzin:
I hope/wonder-if this will lead to lower level apps for Android, and how-to’s like:

1) how-to set up your Android Phone as a Wifi Router

2) how-to enable other bluetooth profiles (DUN, PAN, HID, BIP)

3) how-to set up symlinks for installing/storing your Android Market apps on your micro-SDHC card

And then apps that aren’t Dalvik based (ie. native binary based apps), and perhaps an apt-get like packaging system for native apps.

Hopefully someone can set up a better terminal emulator than pterminal (it’s great for what it is, but it’s not like running an OS X “Terminal”, nor an xterm … the terminal emulation code from ConnectBot would be ideal to use in place of pterminal’s interface).

However, this is rather outstanding news. Soon, perhaps, Android wont just be the most open phone platform, but it’ll be a genuine unix box in your pocket (that you can use directly as a unix box).

I wonder how long before there’s a Jabber server so you access the SMS/MMS capabilities from your laptop’s Jabber client … and a SIP server for the voice interface. Being able to do that via Wifi and/or USB would be absolutely lovely.
[G1 Android Development] MrUfnb:
Confirmed on a UK G1

Build kila_uk-user 1.0 TC5-RC7 112931 ota-rel-keys,release keys

# mount -oremount,rw /dev/block/mtdblock3 /system

# ls

sqlite_stmt_journals

cache

blah
[G1 Android Development] Byte_76:
Great find!

I am a linux noob and I'm wondering, since you are already root, assuming there is a password, can't you just issue a command to reset the password?
[G1 Android Development] staulkor:
There are no password commands whatsoever. It isnt using standard linux password management. Yes, I could simply use passwd thats built into busybox, but I might risk bricking the phone.
[G1 Android Development] dagentooboy:
That's why we have to be careful with root.... anyone have sshd working yet?
[G1 Android Development] goodwinm:
I tried using passwd in busybox, got an error because of no /etc/passwd. So, why not make one? I can't so far tell that there are any passwords stored on the system anywhere...