[Q] Rooting with Terminal Emulator - is it possible? - General Questions and Answers

So, i was fooling around my tablet, then i thought : why not run a cmd on this thing and try to root..
Well, that sounds kinda stupid but i was wondering if it is possible to do that without a computer connection...
If there is some way to that or if it is impossible pase let me know.... :good:

Progress?
So, here i was playing with the terminal emulator then i tried to rub wireless adb from my rooted phone using ROM Toolbox here are my acomplishments..
So please some one help me and tel me something. –. –
All this was done from my non-rooted tablet.

most of the exploits (psneuter and zergrush) all involve jacking around with adbd and an on device terminal emulator wouldnt help cuz it doesnt utilize adbd.
Now what you can do is give off wireless adb (if supported on a stock rom which i doubt it) and use this client https://play.google.com/store/apps/details?id=com.jaja.remoteadb
to connect to your device with another device then shoot over psneuter and give it a whirl but like i said , wireless adb being supported by the rom is so unlikely and even if it was supported on stock it would at least be on jelly bean which i dont think is vulnerable to either exploit.
Have fun though

Related

ADB USB Driver

the USB driver for windows is available at:
http://dl.google.com/android/android_usb_windows.zip
It seems to work... I will update this thread with what I find.
Thanks for posting the driver!
I've tried a few things with adb, and so far I can't get an install to work over usb. I tried the following command.
C:\...\android-sdk-windows-1.0_r1\tools>adb install OperaMini.apk
579 KB/s (0 bytes in 278155.000s)
pkg: /data/local/tmp/OperaMini.apk
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
Click to expand...
Click to collapse
http://www.android-freeware.org/tutorial/how-to-install-apk-files-on-android-device-emulator Had some basic info about the emulator, not sure what would be different for the G1.
The "adb shell" option allows you to access a shell on the phone over USB, which is really great but it appears you don't have root privileges. Any ideas on how to obtain root priveleges? Also, is there a command to install from the android shell? When i cd to /sbin i get access denied. I'm trying to figure out some kind of way to invoke an install either from the device or over USB.
I have the same problem... working on it now...
I don't know about the USB installs, but it seems to be something with the APK as well. I also have the OperaMini.apk and it does nothing. I downloaded the iTunes remote via the G1 and it installed just fine without getting a PC involved.
It looks like you have to put the phone into a "Debug on USB" mode to use ADB. It's working for me now.
http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Thank you dagentooboy!
Can someone explain this for this not so savvy person?
chrimage said:
So you were able to install the opera mini apk through adb with no trouble? I got the error listed above and did have debug mode on
Click to expand...
Click to collapse
I think that is caused by an issue with the the AndroidManifest.xml file within the APK having to do with going from "beta" to "live" Android. The same reason most of the apps were pulled from the store. I don't believe it takes a major change to make it compatible, but it's fully compiled so, unless you have a decompiler, I think we may be out of luck on that particular one. I have installed other apk's successfully using the same method.
Mikey1022 said:
Can someone explain this for this not so savvy person?
Click to expand...
Click to collapse
ADB is the Android Debug Bridge that comes as a part of the SKD. I don't think it was really intended as an end user tool. It has to be called from a command line. I know people have built basic UI's for it for file manipulation when the SDK was the only thing out there. If a better solution isn't found shortly I think we'll see one be made, or else I'll make one myself. In the end it seem to make a big difference of what you're trying to install some things work and some don't, there are some differences between the beta SDK and the G1.
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Valicore said:
For any developers out there, you can also access the ADB/DDMS feature through the Eclipse IDE, it provides a somewhat simpler graphic interface and is a really easy way to get screenshots. Has anyone tried just typing su through the ADB command prompt to see if it will switch you to # ?
Click to expand...
Click to collapse
the su command and sudo su returns "no permission" or "access denied" or something like that. That is also the same message i get when typing arbitrary commands that shouldn't be anything. And like i said earlier, /sbin along with many other directories are inaccessible. Hopefully someone will find a way to access the root account on the G1 pretty soon.
yes... must... have.... root...
Also a normal shell would be helpful esp when looking thru /proc/ for information.
Please help (ahhhhhh)
Okay So I am pulling my hair out here... I just booted android on my Vogue for the first time, everything works great, voice calls and sms.. But I can get a Inet connection but I am using Cricket not sprint so I added the username and password lines in default.txt and can connect, but Cricket uses a proxy for all http connections. So I found this article http://fggarcia.blogspot.com/2007/11/setting-up-proxy-for-android-emulator.html , which basicly says to use the adp app that comes in the sdk to add some lines to make the proxy. NOW, here is my problem... I can not for the life of me get my come (in windows or linux) to see my vogue while its in android..
In windows it does not appear ANYWHERE in the device manager... So I cannot install the driver, and in Linux it doesnt make a blip in dmesg..... USB debugging is marked and so is use adb....
It does charge when plugged in to the comp running linux.....
Can anyone please help me... And thanks to DZO and everyone else for there hard work on this project..
check too make sure your Android isnt listed under usb mass storage devices in device manager.
Ya USB isn't possible on Vogue yet, I just extracted data.img and added the proxy that way, but it still doesn't work. My Problem is I need all connection to use the proxy wap.mycricket.com:8080. I am not trying to be cheap or anything like the tzones thing for tmobile. Its just the only data plan cricket have use this proxy. So any Ideas would be greatly appreciated.
my computer already had a driver installed and when i try to update it with this one it says there is no better match for my hardware
anyone got a solution for this
Im really sorry to bump this old thread up but i need the r3 drivers and i dont know why they are nowhere to be found on the official page... i think its a region lock thing...

[Q] Samsung Captive ATT non market app help

I have tried everything to get a one click solution to enable non-market apps. First and foremost I am on a MAC. No access to a windows machine. I have my phone rooted and have installed superuser status.
I am looking for a solution that will let me install (easily) non- market applications. There appears to be several solutions doing this on a windows machine. I have not been able to find a solution on a MAC. And instructions, help, videos anything is greatly appreciated.
Thanks
PS: not a total nube, but I have limited knowledge of the root directory and manipulation, but follow instructions well ........
What firmware are you on? Because if you are on the leaked 2.2 you should look on the leaked ji6 hacks forum page and it will give you the instructions that you can run in adb shell in the terminal application on a mac you just have to type ./adb (command) where windows users just have to type adb (command) you should make sure that you are comfortable on adb though because there are hardly any tutorials for adb on a mac around. I found that the hard way. Hope this helps, if you still can't figure it out post more info and I will do my best to help although I am still kinda a noob to android development.
Sent from my SAMSUNG-SGH-I897 using XDA App
Thank for the help, I will look at thie ji6 hack and see if it works. I'll let you know. Right now I have spent 3 days trying to unlock this pile of dung. ATT should be shot for doing this people. We bought the phone let us put what we want on it. PERIOD
Have you tried ADB? If you can get ADB to work, you should have the skill to copy over the settings.db and use the SQLeditor for Firefox plugin. Or use SQLite on the phone.
Read up on how to enable sideloading - the same commands that work on windows work on a mac - or very similar. As long as you know how to copy files in terminal you should be set.

[Q] 1 Click Root for Mac OS X?

Is there a 1 Click Root for Mac OS X? I want to Root, S-OFF, and Gold Card...
Get bootcamp
Sent from my Desire HD using XDA App
i will be trying to do this from a windows virtual machine on a macbook pro. ill let you know if it works. i see no reason it shouldnt
I had a go at it through Parallels on a Macbook and it worked smoothly.
wats parallels
Moved to general as not android dev.
I did the hack kit using terminal commands. install android sdk for mac and everything else is just step by step in the hack kit. there's a gold card app on the market too.
Sent from my Desire HD using XDA App
g4ess said:
wats parallels
Click to expand...
Click to collapse
It runs Windows in a windowed format through Mac OS as opposed to booting up in Windows like Boot Camp.
I actually ended up using the hack kit with terminal commands and adb. It was my first time rooting and i see the value of doing it this way. You gain more knowledge of what is happening with your phone. And if you have a mac with out a virtual windows machine then I want to recommend not being afraid of manual rooting.
Sent from my Desire HD using XDA App
emarsha said:
I did the hack kit using terminal commands. install android sdk for mac and everything else is just step by step in the hack kit. there's a gold card app on the market too.
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
I did the same thing the first time I rooted an Inspire. I believe I Still have the terminal output I saved (I was siked I got it to work - it was my first bit of rooting/terminal use ever). If it would help to see what I did, PM me.
EDIT: and Yes, above poster killersnowman is 100% correct. When you do it yourself you learn much more. When I first got my (first) inspire, I looked at the root instructions and they were WAY over my head. After just clicking around and browsing around on XDA, I felt like I was ready to tackle it after a few short days. Granted, it took me probably around three hours of trial, error, and asking for help from the incredibly helpful people on this board - but I got it! You can too.
I did the Simple Root running Windows XP in Parallels without a problem on my MacBook Pro. Now I am wanting to go back and redo the root with the Hack Kit to solve the HUSPA problem we simple root people are having but I am having a few problems with the terminal. For some reason I keep getting told HTC device is not found when I run the first command.
If anyone does use the hack kit on a mac and figures this out please let me know. The Mac users are the minority with Android so we need to stick together a bit here. I still am yet to find a good set of directions on how to "use" the terminal. When the Hack Kit directions start with "navigate to the folder" I have to assume I am doing things right by typing in the file path.
If you did pull it off and are willing to do a screen capture of your terminal that would be pretty great too.
bmolloy said:
I did the Simple Root running Windows XP in Parallels without a problem on my MacBook Pro. Now I am wanting to go back and redo the root with the Hack Kit to solve the HUSPA problem we simple root people are having but I am having a few problems with the terminal. For some reason I keep getting told HTC device is not found when I run the first command.
If anyone does use the hack kit on a mac and figures this out please let me know. The Mac users are the minority with Android so we need to stick together a bit here. I still am yet to find a good set of directions on how to "use" the terminal. When the Hack Kit directions start with "navigate to the folder" I have to assume I am doing things right by typing in the file path.
If you did pull it off and are willing to do a screen capture of your terminal that would be pretty great too.
Click to expand...
Click to collapse
When navigating to a folder on a mac, in the terminal, the command is: cd
Then, I would try to do as little typing as necessary to avoid a mistake. I would put in the command cd and then from my finder, physically drag the folder I wanted to navigate to INTO the terminal window, which automatically puts the correct file path.
cd [drag the folder into the terminal window from finder] and voila! It really is pretty easy. Now that you know that, take another look at the directions and see if you think you can make your way through them.
The only mistake I kept running into which someone helped me out with was that I wasn't making the gold card correctly. When I put the command in to the terminal, I wasn't specifying the actual drive, I was specifying a partition on the drive, and the goldcard failed, but looked like it succeeded. 99.9% of the problems you can run into have to do with making an incorrect goldcard I believe.
I have been trying this without restoring to stock, running CM7. I continue to get the "Error detecting HTC phone on USB connection". I will probably restore to stock when I have more than 3 minutes of free time... So it might be a while!!!
If anyone pulls this off without being restored to stock or while running CM7 any advice would be appreciated.
Thanks.
bmolloy said:
I have been trying this without restoring to stock, running CM7. I continue to get the "Error detecting HTC phone on USB connection". I will probably restore to stock when I have more than 3 minutes of free time... So it might be a while!!!
If anyone pulls this off without being restored to stock or while running CM7 any advice would be appreciated.
Thanks.
Click to expand...
Click to collapse
Is usb debugging on? Is the phone connected but NOT in usb mass storage mode? Im not sure but i think cm7 gets rid of fasboot so i dont think you can turn it off
Also if you have cm7 installed then why do you want to root it again? Its already rooted. If you want a new rom the just use rom manager. But if you want to root again then you should restore to stock
Its from my damn phone!!!
Yes, I am set up with USB debugging on but for some reason it will still not recognize the phone, I am sure it has to do with the fact that I am not running a stock ROM.
The reason I want to root again is because I do not have HSUPA enabled because I rooted with the Simple Root, which flashes a stock radio on that does not allow for HSUPA. Using the Hack kit you end up with the right radio that allows you to have the faster upload speeds. I also want to do the hack kit so I can get a better understanding of terminal commands and adb. I have been never found a reason to use the terminal before so this is a nice new challenge.

android rooting without a pc ?

hi, is it conceivably possible to root a fone with something like connect-bot. since it's local command-line shell has access to the directory tree above /mnt/sdcard , couldnt someone download the files needed for the root to the fone via the web browser and copy them to the correct locations with something like connect bot ?
i am new to android so i am wondering if there is a hole in my theory ?
thanks,
Depends on the phone really. Some need to flash files you normally can't while OS is still up. Some, perhaps?
There are root deployment applications which can be ran on some phones
Sent from my Verizon Supersonic using XDA App
thanks, i wonder if there is a roster of files that need to be updated/ replaced for rooting a 'samsung galaxy s2 epic 4g touch by sprint' (i hate that name).
the reason why i ask is because since android has a perfectly capable linux command-line and file browser then there is no need for windows. (i managed to install heimdall on fedora but i have a suspicion that the apb just runs the commands as if it was run directly on the fone).
Most of the phones need to connect into PC usb port... unfortunatelly
The way of rooting depends on which android version you are using. Some exploits allow applications to get root privilege; others, like psneuter(2.1) or zergRush(2.3.3) work restarting the ADBd with root privileges by making it believe it's running on a test(rooted) phone.
On the first case, I remember an application called "Universal Androot", which I used to root my first Android phone, SE Xperia X10 mini, when using Android 1.6. That app exploited some security error on the system, and gained root itself, so I rooted my phone without need of a computer. Also, for 2.3 API Level 9, I think GingerBreak has an android app which does the same.
For the second type(the most common), it's necessary to use a computer, as the only way to get the root privilege once exploited is via the ADB console "adb shell". The other processes will remain running with their original privileges.
^ thx for the explanation. kinda' like you cant upgrade the kernal of a running system.
hmm that would be nice if someone sort this out..
Like Z4?
HTC Thunderbolt running MIUI
sort of, but more related to android security: exploits like psneuter & zergRush attack ADBd to make it run as root. other exploits, like gingerbreak, give root privileges to the application which run the exploit(somehow equivalent to running "su" on the terminal)
Sent from my MK16i using XDA App

Run adb without a pc??

Im trying to see if there is a way to boot kernels and run adb without a pc. There are many times I need to boot a certain kernel but not near my pc to do so. Is this possible at all and if not, any ideas as to maybe something like Pi and running an instance of adb on a Pi device to do such things?
Deep Ellum Dan said:
Im trying to see if there is a way to boot kernels and run adb without a pc. There are many times I need to boot a certain kernel but not near my pc to do so. Is this possible at all and if not, any ideas as to maybe something like Pi and running an instance of adb on a Pi device to do such things?
Click to expand...
Click to collapse
It appears there are people who have sucessfully used Raspberry Pi to execute adb on Android devices, so what're you're looking for ought to be possible.
http://forum.xda-developers.com/search.php?searchid=389891800
Well I'm trying to see if there is any way without having to use a separate device, like fun within my phone, to be able to boot images from the bootloader via fastboot. With that thought, can anyone even say if that ability is even possible to develop of its not already developed? I really would love to switch images just like you can within a VM environment on a computer...

Categories

Resources