• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Rooting from a linux box

cannibal

Lurker
Nov 26, 2009
6
0
Wahoo first post! I've had an account for a while but have been lurking and soaking up information. I'm going to root my phone (hopefully today) but I am running linux on all my PCs, and do not actually have a windows install. I wanted to ask if anyone knew if the ADB commands can just be run straight from a terminal window from my linux box, since it seems ADB is just a terminal emulator on windows to be able to talk to the phone. It seems like I'm missing something though, I would think ADB would do more than that but let me know if I'm in the wrong. I'd like to root my phone from my linux box but if i need to find a windows machine I could probably do it from work. I was trying to find some sort of tutorial for ADB on linux but could not find anything, even installed the SDK for linux and have access to ADB but am not sure how to get ADB to see my phone after going through the tutorials. I would not be surprised if I missed something as I can be a little dense at times :)

Thanks in advance!
 
I guess I posted too early, I might have answered my own question. I searched developer.android and found Developing on a Device | Android Developers
I'll include the except here in case it comes in handy for someone else running into the same problem...

under "setting up a device for development"

  1. Setup your system to detect your device.
    • If you're developing on Windows, you need to install a USB driver for adb. See the Windows USB Driver documentation.
    • If you're developing on Mac OS X, it just works. Skip this step.
    • If you're developing on Ubuntu Linux, you need to add a rules file that contains a USB configuration for each type of device you want to use for development. Each device manufacturer uses a different vendor ID. The example rules files below show how to add an entry for a single vendor ID (the HTC vendor ID). In order to support more devices, you will need additional lines of the same format that provide a different value for the SYSFS{idVendor} property. For other IDs, see the table of USB Vendor IDs, below. (motorola vendor id is 22b8, i updated the code below to reflect this V-ID )
      1. Log in as root and create this file: /etc/udev/rules.d/51-android.rules. For Gusty/Hardy, edit the file to read:
        SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666"
        For Dapper, edit the file to read:
        SUBSYSTEM=="usb_device", SYSFS{idVendor}=="22b8", MODE="0666"
      2. Now execute:
        chmod a+r /etc/udev/rules.d/51-android.rules
You can verify that your device is connected by executing adb devices from your SDK tools/ directory. If connected, you'll see the device name listed as a "device."
If using Eclipse, select run or debug as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device to install and run the application there.
If using the Android Debug Bridge (adb), you can issue commands with the -d flag to target your connected device.
 
Upvote 0
Does this help? How-To Install Android SDK On Windows, Mac and Linux

Or is it that ADB seems to work but can't find your device? It might help if you do this as root on your Linux box. The simple command "su" should do that on most distros, but some distros like Ubuntu have "su" disabled, so if you do "sudo -s", you should get a similar result.

EDIT: Nevermind, I see you fixed your own problem. :)
 
Upvote 0
Does this help? How-To Install Android SDK On Windows, Mac and Linux

Or is it that ADB seems to work but can't find your device? It might help if you do this as root on your Linux box. The simple command "su" should do that on most distros, but some distros like Ubuntu have "su" disabled, so if you do "sudo -s", you should get a similar result.

EDIT: Nevermind, I see you fixed your own problem. :)

Yar, Thanks for the reply though! It's nice everyone around here is so willing to help. I'm just a dunce and didn't have my system setup correctly to have ADB recognize my device. Everything is working now, can't wait to see what a rooted droid is capable of!
 
Upvote 0
Thanks for posting that info Cannibal. I have access to Windows on one of my computers, but I really prefer not to go near it :)

Yeah, I prefer to stay in my comfort zone ;)

I'm all rooted and happy-snappy now. By the way, I used Virtualbox on ubuntu to run RSD Lite 4.6 to put SPRecovery on my phone (2.1 OTA droid)

Downloading NexBeastv1 now and going to do a full backup before installing it. I don't know much about the rooted droid, but if you have any questions about how I got it going through linux just let me know :)
 
Upvote 0
I'm all rooted and happy-snappy now. By the way, I used Virtualbox on ubuntu to run RSD Lite 4.6 to put SPRecovery on my phone (2.1 OTA droid)

See!? It confuses me to see that someone can successfully flash an SBF file with RSD Lite in a virtual machine and half of our members can't do it with Windows running natively on their hardware.
 
Upvote 0
I'm trying to push some apks to my rooted Backflip with the Linux SDK running on Ubuntu 10.04.

I can "ping" my phone with ./adb devices. I can mount the Backflip system folder using ./adb shell. I can even cd to the /system/app folder and see all the individual files using ls. However, when I try to push the apks (located in the SDK/tools folder) to system/app, I get a "permission denied". I've tried running the command in a root shell and, if I remember right, I get the same message.

I would much appreciate any help you all can provide.

mojohn
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones