Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Droid - All Things Root Rooting, ROMS, Overclocking, etc.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old May 7th, 2010, 11:23 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Rooting from a linux box

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!

Advertisements
cannibal is offline  
Reply With Quote
sponsored links
Old May 7th, 2010, 11:32 AM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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"

Quote:
  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.
cannibal is offline  
Last edited by cannibal; May 7th, 2010 at 11:53 AM.
Reply With Quote
Old May 7th, 2010, 11:37 AM   #3 (permalink)
Senior Member
 
Join Date: Nov 2009
Location: Queens, New York
Posts: 1,842
 
Device(s): Motorola Droid, Samsung Droid Charge
Carrier: Not Provided

Thanks: 52
Thanked 122 Times in 107 Posts
Default

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.
__________________
Current phone: Droid Charge @ 1200MHz. ROM jumping, waiting for CM to arrive!

Quote:
Originally Posted by UBRocked View Post
Just put your phone in airplane mode and tell him you loaded an iPhone 4 simulator on your Droid.
shadowdude777 is offline  
Reply With Quote
Old May 7th, 2010, 12:07 PM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by shadowdude777 View Post
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!
cannibal is offline  
Reply With Quote
Old May 7th, 2010, 04:10 PM   #5 (permalink)
Member
 
glitch32's Avatar
 
Join Date: Dec 2009
Location: Arizona
Posts: 111
 
Device(s): Samsung Galaxy Nexus!
Carrier: Not Provided

Thanks: 25
Thanked 2 Times in 2 Posts
Default

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
glitch32 is offline  
Reply With Quote
Old May 7th, 2010, 04:15 PM   #6 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by glitch32 View Post
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
cannibal is offline  
Reply With Quote
Old May 7th, 2010, 07:15 PM   #7 (permalink)
Senior Member
 
Join Date: Nov 2009
Location: Queens, New York
Posts: 1,842
 
Device(s): Motorola Droid, Samsung Droid Charge
Carrier: Not Provided

Thanks: 52
Thanked 122 Times in 107 Posts
Default

Quote:
Originally Posted by cannibal View Post
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.
shadowdude777 is offline  
Reply With Quote
Old May 7th, 2010, 11:09 PM   #8 (permalink)
Member
 
glitch32's Avatar
 
Join Date: Dec 2009
Location: Arizona
Posts: 111
 
Device(s): Samsung Galaxy Nexus!
Carrier: Not Provided

Thanks: 25
Thanked 2 Times in 2 Posts
Default

Will do. I'm still reading all I can about rooting before I go through with it. I really just want to overclock my phone a little.
glitch32 is offline  
Reply With Quote
Old August 31st, 2010, 09:09 PM   #9 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
mojohn is offline  
Reply With Quote
Old August 31st, 2010, 09:13 PM   #10 (permalink)
Antidisestablishmentarian
 
johnlgalt's Avatar
 
Join Date: Oct 2009
Location: 3rd Rock
Gender: Male
Posts: 9,395
 
Device(s): Motorola® DROID® BIONIC®
Carrier: VZW

Thanks: 2,168
Thanked 1,919 Times in 1,362 Posts
Send a message via ICQ to johnlgalt Send a message via MSN to johnlgalt Send a message via Yahoo to johnlgalt Send a message via Skype™ to johnlgalt johnlgalt@gmail.com
Default

Hm, you are doing su first, right?

Perhaps since the phone is actually on it is not allowing you full access to System - I think you'll need to mount /System as R/W first.
__________________

Files for the Motorola® DROID® BIONIC®:
Motorola USB drivers v5.9.0 | Motorola RSD Lite v5.7
My DropBox Referral link
johnlgalt is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.