Root Access on the TMobile G1 and why it works - G1 Android Development

I wrote up instructions on my blog, and someone responded explaining why it works.
To translate: anything the user types on the keyboard is actually being fed into a console shell and potentially executed. So the easiest way to get root on your phone is to simply reboot it, and when it finishes rebooting, type "telnetd" and press enter. Your phone will start doing a contact lookup in your UI, but at the same time it is typing into a root shell.
This is basically a huge oops on Google's part! Looks like some debug related settings that they never took out.
So really, pTerminal was not necessary in this hack, but it it accidentally exposed it!
Edit: should have read the other post about this! Kudos to Jim!
http://forum.xda-developers.com/showthread.php?t=442857

Like the...
Yup, telnetd in essence was the carrot on the stick that led me on.... Further cementing the fact that someone was bound to find this one way or another... Much sooner rather than later.
Obviously this will need to be fixed, I only hope the platform can some how remain open (and be taken even further) even after said fix.

Wow, I will not be taking any updates until I have everything worked out just the way I want it....

forced updating rc30
you may not have a choice short of turning your g1 of and leaving it that way, it has been rumored that this update has a date at which it turn mandatory.
bhang

Related

No onscreen keyboard on 5.0.2h

Hi all
Sorry to make a new thread but this is something that just does not make any sense. I took the plunge when 5.0* was released and I currently do not have the onscreen keyboard. There is a guy on these forums that was nice enough to help me out through gchat but I haven't gotten anywhere.
Just to be clear I have wiped several times and reflashed several times and I do not even have the MENU OPTION to enable the onscreen keyboard. The following picture should show what I mean (sorry I'm really bad at photoshop).
Anybody have a clue what to do? I'm willing to wipe again but it seems pointless because I've done it several times.
Also, I tried out the "G" version just to check it out and the onscreen keyboard comes up on this one.
That's odd. I installed 5.0.2H this morning and have no issues with the VK.
Is there a way to DBAN the G1? Something "better" than al+w? I'm desperate lol.
You must of not flaseheed correctly.
Make sure when you flash you press home and back together. Don't press Phone - Menu and Power
If you still have problems go into settings - Locale & Text
Make sure touchput Chinese is checked.
Mine works fine so yours should as well.
Good Luck
Is this Robbie? If it isn't, there is someone else with the same problem on another forum, so it isn't an isolated issue.
kathi17 said:
Is this Robbie? If it isn't, there is someone else with the same problem on another forum, so it isn't an isolated issue.
Click to expand...
Click to collapse
Thanks for posting that. At least I know I'm not losing my mind or something.
71CH said:
Thanks for posting that. At least I know I'm not losing my mind or something.
Click to expand...
Click to collapse
I've got bad news for you. Robbie forgot that he disabled it because he didn't know what he was clicking in settings.
He remembered this morning what he did, and now he's got it back. I hope your problem is as easy to solve.
One thing, it took me a few minutes to find mine, because I didn't realize that you have to click in the text box to have it appear.
Great. I guess I am losing my mind. Does anybody's "Locale & Text" look like mine?
71HC, could you check if /system/app/HTC_CIME.apk exists? )This is HTC's chinese touch input application and it's huge (>1M).) You can do this by typing "ls /system/app/HTC_CIME.apk" in Terminal or adb shell. if it's not, extract the file from the zip and adb push it to /system/app/ folder. Then reboot the phone. You make have to long press in a textbox to bring up the context menu and select input method, but the IME has to be enabled in Locale & text first.
Thanks for your reply. I appreciate it. I looked it up on terminal and it looks like its there. I also looked it up on Linda file manager and it seems to be there. Can I long press it and install it from there? I was hoping it would be missing so that your solution would work. Now I'm even more confused.
I went ahead and tried to install HTC_CIME.apk
It told me that textinput chinese could not be installed on this device
great

androids port capacitive touch

ever since the android port came out and i tried it ive loved how the hardkeys light up when you touch them and then immediatly go away. is there anyway to get that on wm?
yeah same here. thats so f#$*n awesome
love to have it on wm
soulds like it would require a touch detector hardware system along with the full preasure detector there already is
Rudegar said:
soulds like it would require a touch detector hardware system along with the full preasure detector there already is
Click to expand...
Click to collapse
it already works with our device. Its just part of the android port that can be found here http://www.htc-android.com/viewtopic.php?f=5&t=237
im suprised no ones tried to do this yet?
i have to say i honestly loved that too. though i would miss the touch to light up all keys so i could see them in the dark. then again, thinking as im typing, i would trade for the android style. i dont think i can make up my mind!
Mine does that already.
are you running android or something? if you got it to work with windows share with the class.
Mr.Sir said:
Mine does that already.
Click to expand...
Click to collapse
How did you get this working?
Please share what you know
android still doesnt let us make calls texts or data on our raphael right?
yep, no sound, data, text, phone, proper keyboard support, wifi, bluetooth. but atleast the capacitive navipad works.
haha that navipad is most important
i tried using android last night followed the instructions . how long did bootup take for you guys? it sat on the text page with the blue box for like 40 minutes and never went farther
Wow, didn't know we could boot Android on our phones.
I didn't try that yet, because from tomorrow I will be traveling for a week, and I will need my phone.
I downloaded it though, and on the installation instructions it says to launch haret.exe, I didn't get that, is this some kind of virtual machine, or will it shut down WM and launch Android?
Smaniac said:
Wow, didn't know we could boot Android on our phones.
I didn't try that yet, because from tomorrow I will be traveling for a week, and I will need my phone.
I downloaded it though, and on the installation instructions it says to launch haret.exe, I didn't get that, is this some kind of virtual machine, or will it shut down WM and launch Android?
Click to expand...
Click to collapse
It shuts down WM and launches Android. It isn't a permenant flash because not everything works on it. Android itself loads fine, but there are still some key linux drivers that are required for normal day to day use. The more important thing is the microphone/speaker. The phone works and things like SMS.
player you have obviously had it working
how long does it take to boot for you?
i have the tmp folder on my card with the boot folder in that. in there i click haret18.exe then the box comes up saying it will run default.txt then linux starts and i just get all the small writing on screen but it never goes farther
EDIT- i was told it must be the wrong version. i have the fuze so which raph is that? i tried two diff versions already
you need to either rename the text files in the boot folder or choose the one you want.
If you have the fuze use the raph100 I think it is...don't have my phone on me, but it isn't the 800 one.
I just renamed the default.txt to something else and then the default _raph100 or whatever to default.txt and it worked fine.
Before I realized this I had the same issue you did.
thanks i got it running
so is there really anything we can do at this point? or just play around with the home screen
soooo anyway back to the question i asked... lol
has anyone or is there a way to make it work to when you touch the pad only the area you touch only lights up like it does in the android port?
Wow after loading up the latest port of android, I finally understand what the OP means, this is really cool! I would love to have this. Not only does it look cool, but it will actually reduce error due to pressing the wrong part of the button.
lbhocky19 said:
thanks i got it running
so is there really anything we can do at this point? or just play around with the home screen
Click to expand...
Click to collapse
No, as of right now nothing is really working besides Andriod running. No data or voice services work yet...
you can mess with home AND navipad. cant forget what this thread is all about. i think the fact that you can run android and do it without wiping wm is pretty amazing. theres alot of work that needs to be done if you are planning on doing something useful with android. the phone was meant for wm and is set more up with drivers, configuration, and development for such. hopefully in the future it will do both well and your epeen length will grow as you show off to everyone what your phone can do.

[Q] Wake Device Over USB, On Run And Otherwise.

I have been trying to figure this out on my own through searching, and when that failed experimentation, but to no avail.
What I would like is that every time I run an application from eclipse, my android device will wake (screen on and all that). Additionally I want, though this is not as important, to be able to wake my device from the command line.
The reason I want this is simple. I don't like leaving my device on as I sometimes read code and tutorials or get some food, and I end up not touching the device for a half hour at a time. I don't want to leave it on when plugged in (which is most of the day), and I end up turning it on with the power button about thirty times each day, which seems excessive.
Sorry if this is something obvious, but I can't find anyone talking about it anywhere.
Any help is greatly appreciated.
Nobody else has ever wanted to do this? Noone has looked into this? Surely soneone has an interest in this if not knowledge of how to go about making it work.
moved to QnA, not dev related.
(probably why no one answered your question)
Solved!
Well, I've solved the issue on my own. I created an application called Wakey Droid that does what I want. Then all you need to do is set the command adb shell am start -a android.intent.action.MAIN -n bdjnk.android.wakeydroid/.Wakey to some convenient shortcut, and life is good.

[Q] keyboard to stay lit longer

Howdy,
I have looked at the threads suggested to check out before starting a new one, and they did not help me much. I am a noob, and that may be why.
I have a sidekick 4g and would like the keyboard to stay lit a lot longer than it does. I slide it out and if I pause for the briefest of time, and the light goes out. Id there a way to make it stay lit until I close the keyboard?
Do I have to root the phone in order to make this happen? I have been reading all the root stuff I can find but not quite ready to take the plunge yet. I most likely can do it b sometimes I lack confidence when starting new things.
Thanks for the help ahead of time.
XcntrK
xcntrk said:
Howdy,
I have looked at the threads suggested to check out before starting a new one, and they did not help me much. I am a noob, and that may be why.
I have a sidekick 4g and would like the keyboard to stay lit a lot longer than it does. I slide it out and if I pause for the briefest of time, and the light goes out. Id there a way to make it stay lit until I close the keyboard?
Do I have to root the phone in order to make this happen? I have been reading all the root stuff I can find but not quite ready to take the plunge yet. I most likely can do it b sometimes I lack confidence when starting new things.
Thanks for the help ahead of time.
XcntrK
Click to expand...
Click to collapse
rooting is real simple
first download one click hedmial root (in either a stick in development or my ref)
go to settings on phone then applications then development turn debugging on
open one click
now hit root
finished
and yes to do anything good you need to root
Changing your screen timeout seems to affect how long the keyboard stays lit also. For example, I changed my screen timeout to 1 minute, and the keyboard stayed lit the whole time. Just go into Android Settings, find "Display" --> "Screen timeout" and set it to your choosing. Also, just tapping the Shift or Alt button turns the keyboard backlight on again.
I concur with immorality, rooting is no big deal. It's when you start messing with the system and flashing ROMs that things can go wonky if you don't know what you're doing and aren't careful, but most failures are recoverable using the aforementioned Heimdall.
Thanks for the info. I am going to go ahead and do the root. I would love to get rid of all this tmobile junk on the phone. And there are some other cool things that I have been reading about that you can do after you have rooted your phone. I will keep the forum up and running though just in case LOL
Thanks again y'all
tell you what, ill look into the keyboard light in the next day or so and when i find how to control them ill create you a flashable zip so you can easily change the time they stay on. or maybe even add it to my aroma package
but for now root your phone as you wont be able to do anything without it, follow the above method if youd like, i personally dont like one click root methods for various reasons so heres a quick guide i made
http://forum.xda-developers.com/showpost.php?p=40198560&postcount=27
again follow any method you would like, and i suggest to at least read up on the various ways. hopefully by the time your done and ready to flash your first rom ill have had time to look into the keyboard lights issue
good luck and happy flashing!
@demkantor thank you so very much. I am downloading the aroma, and have copied the notes on your link.
My Kaspersky is not letting me downliad the rage against the machine. I will see if I can get around it and let you know the outcome
I really do appreciate your help with the lights on the keyboard. I have tried resetting the screen timeout and every other thing suggested or that I can think of and it still goes out a second or so after the last letter entered.
hey no problem! try another browser maybe or turn virus protection off, any script that works to exploit a loophole will through the virus protection. hell some wont let you download superuser
but i assure you its legit
as for the keyboard lights, my sk4g is incapacitated right now so i ran a few tests in another android:
When i run this in a shell:
busybox find / -name 'timeout' 2> /dev/null | busybox grep -i timeout
I get this:
2> /dev/null | busybox grep -i timeout <
/system/xbin/timeout
/sys/class/firmware/timeout
/sys/module/uvcvideo/parameters/timeout
/sys/module/nf_conntrack_netbios_ns/parameters/timeout
and if i run:
busybox find / -name 'brightness' 2> /dev/null | busybox grep -i backlight
gives me:
ss' 2> /dev/null | busybox grep -i backlight <
/sys/devices/platform/pwm-backlight/backlight/pwm-backlight/brightness
so i know where to start digging in my other androids, and hopefully if i find a fix in one it will be similar in the sidekick. ill keep you posted!
Got it, had to shut of part of Kaspersky and then make a exclusion for it when I unzipped LOL BUT I GOT IT YEAH!!! LOL
Thanks for all the effort with this.

keyboard/numpad at lockscreen gone

good morning all,
i am hoping someone can help my stupid self.
i finally got a root to work on my phone, for the main purpose of removing mcafee. i start getting rid of the programs i don't need and can't find mcafee anywhere. turns out is in the "cannot remove" list.
so, i find a couple of tasks without any info and turned one off hoping that might be it:angel:.
turns out i turned off my input for the lockscreen. to make it even more fun, it is encrypted. i cannot get it to be recognized on my pc. i can get it to start in safe mode, and i can get it to start in the download mode.
it won't install the mtp drivers, but the rest are there.
so, i was hoping one or more of you wonderful, intelligent and, dare i say, beautiful people would know of a way to get around either the encryption or some way to turn the task back on so that i can enter my code.
thank you for not laughingtoo hard at my pain

Categories

Resources