Go Back   Android Forums > Android Phones > LG Spirit 4G

Like Tree5Likes
  • 2 Post By GameTheory
  • 1 Post By GameTheory
  • 2 Post By GameTheory

test: Reply
 
LinkBack Thread Tools
Old February 24th, 2013, 10:05 PM   #1 (permalink)
ROM Developer
Thread Author (OP)
 
GameTheory's Avatar
 
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,845
 
Device(s): [Optimus F6 Xperion ROM] [Spirit 4G Samurai ROM] [Galaxy S3 4.3 Stock]
Carrier: Metro pcs $60 plan

Thanks: 418
Thanked 2,042 Times in 942 Posts
Default Install ADB on Windows & ubuntu 12.04 or 12.10

Install ADB on Windows & ubuntu 12.04 or 12.10

This is a guide I made for
ubuntu users and included a guide for windows users to setup Android SDK which contains ADB.

Android Debug Bridge (ADB) provides a terminal interface on your PC to interact with your device's file system. This can be useful for many things like installing & uninstalling apps, logcat, backup & restore, and hacking your device just to name a few.

Contents in order:
---ubuntu 12.04 & 12.10 guide
---Windows guide
---Commands for windows & ubuntu to get you started
---Wireless ADB on second post

ubuntu 12.04 & 12.10 Guide

1. Go here and download android-sdk (not the adt-bundle)....
http://developer.android.com/sdk/index.html

2. Place the downloaded file in your home folder and then extract it and you should get a folder named android-sdk-linux (do not rename it).

3. If you’re on a 64bit machine run these commands in terminal to make sdk compatible with 64bit (if you’re on 32bit machine then skip this step)....
sudo apt-get update
sudo apt-get install ia32-libs-multiarch

4. Run this command in terminal to install jdk if you don’t have it already....
sudo apt-get install openjdk-6-jdk

5. Navigate to the home folder where you extracted android-sdk-linux and open the folder then open the folder named tools

6. Inside the tools folder there will be a file named android... double click it and select run then android sdk manager will open.

7. In the center pane deselect everything... Now only select the following....
Android SDK Tools
Android SDK Platform-tools
Android Support Library

8. Once selections have been made click on install packages and wait till finished.

9. Upon completion of step 8 in terminal run this command....
sudo gedit ~/.bashrc

When the file opens, go to the very bottom and copy/paste the following 3 lines (make sure they’re each on separate lines)....
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools


10. Now reboot your computer.

11. Set your phone to usb debugging then plug it to your pc after pc is done booting

12. Open a terminal on your pc and enter....
adb devices

If all went well, you should see your phone’s serial number and you’ll be ready to go.

~~~~~Important~~~~~
You can use steps 5 & 6 to open Android SDK Manager & update your ADB/SDK installation. Only select your installed packages then update.

--------------------------------------------------------------------------------------------------------------
Windows Guide

1. Make sure your phones Windows drivers are installed

2. Install Java SE Development Kit 6 (JDK6)
Windows x86 for 32bit systems
Windows x64 for 64bit systems

3. Go here and download android-sdk (not the adt-bundle)....
http://developer.android.com/sdk/index.html

4. Then follow this video for the rest of the setup....
http://www.youtube.com/watch?v=oaNM-lt_aHw

---------------------------------------------------------------------------------------------------------

ubuntu & Windows Commands

Visit this website for some commands to get you started....
http://adbshell.com/


Enjoy
twogbsd and richardren like this.

Advertisements
__________________
Free Apps
GameTheory is offline  
Last edited by GameTheory; April 12th, 2013 at 09:30 PM.
Reply With Quote
The Following 4 Users Say Thank You to GameTheory For This Useful Post:
alfick3 (February 25th, 2013), Android Addict (October 10th, 2013), cubone (February 25th, 2013), twogbsd (February 24th, 2013)
sponsored links
Old February 26th, 2013, 08:20 PM   #2 (permalink)
ROM Developer
Thread Author (OP)
 
GameTheory's Avatar
 
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,845
 
Device(s): [Optimus F6 Xperion ROM] [Spirit 4G Samurai ROM] [Galaxy S3 4.3 Stock]
Carrier: Metro pcs $60 plan

Thanks: 418
Thanked 2,042 Times in 942 Posts
Default

So we all know that you have to connect your phone to your PC with USB cable for ADB-SDK.

Well thanks to adbWireless we don't need a USB cable any more.
This is my favorite root app and the one I install immediately after rooting a device.

Pros:

---Quick access to ADB on the fly
---If your phone is near full battery and not ready for a charge... go wireless. I don't like charging unless I'm under 25%. So it's great I don't have to plug in to use ADB.
---Simple & to the point with many options in the settings to fill your needs

Cons:

---Large files can take long to transfer versus wired connection.
A 1.4gb file takes about 30 minutes for me (i.e. CWM backup).

Play Store link: adbWireless

_______Tips_______
---Make sure USB debugging is enabled before opening app to connect to ADB.
---When transferring files to & from phone, it will look like nothing is happening... Just wait & eventually when the transfer is complete, the "$" sign will appear again. Windows users I think your sign looks like ">".

_____Commands I use to transfer to & from_____
You can copy/paste these commands and set your own paths in place.
I use these to transfer clockworkmod backups.

From phone to PC:
adb pull mnt/sdcard/external_sd/clockworkmod/backup /home/tony/backup

From PC to phone:
adb push /home/tony/backup /mnt/sdcard/external_sd/clockworkmod/backup

Enjoy
GameTheory is offline  
Last edited by GameTheory; October 25th, 2013 at 09:05 PM.
Reply With Quote
Old February 27th, 2013, 07:41 AM   #3 (permalink)
Junior Member
 
FergatROn's Avatar
 
Join Date: Sep 2010
Location: GA
Gender: Male
Posts: 15
 
Device(s): LG Spirit
Carrier: Metro PCS

Thanks: 7
Thanked 0 Times in 0 Posts
marcferguson@gmail.com
Default

Nothing shows up when I type in "adb devices". I have my phone set to enable USB debugging, but when I plug it in to the computer it doesn't show up in nautilus nor as an available device for adb. Note: I'm running Fedora 18, but I wonder if the connection methods have anything to do with it: usb-charge only, sync with windows media, etc.?
FergatROn is offline  
Reply With Quote
Old February 27th, 2013, 12:39 PM   #4 (permalink)
ROM Developer
Thread Author (OP)
 
GameTheory's Avatar
 
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,845
 
Device(s): [Optimus F6 Xperion ROM] [Spirit 4G Samurai ROM] [Galaxy S3 4.3 Stock]
Carrier: Metro pcs $60 plan

Thanks: 418
Thanked 2,042 Times in 942 Posts
Default

Quote:
Originally Posted by FergatROn View Post
Nothing shows up when I type in "adb devices". I have my phone set to enable USB debugging, but when I plug it in to the computer it doesn't show up in nautilus nor as an available device for adb. Note: I'm running Fedora 18, but I wonder if the connection methods have anything to do with it: usb-charge only, sync with windows media, etc.?
This is the title for this thread....

Install ADB on Windows & ubuntu 12.04 or 12.10

Unless you have any of these operating systems installed, this will not work.
twogbsd likes this.
GameTheory is offline  
Reply With Quote
Old February 27th, 2013, 01:30 PM   #5 (permalink)
Junior Member
 
FergatROn's Avatar
 
Join Date: Sep 2010
Location: GA
Gender: Male
Posts: 15
 
Device(s): LG Spirit
Carrier: Metro PCS

Thanks: 7
Thanked 0 Times in 0 Posts
marcferguson@gmail.com
Default

I understand that, I really do. I figured that we may be able to have a discussion about it. Ubuntu and Fedora aren't that much different. But I now see that this thread is os-specific. I'll leave it alone.
FergatROn is offline  
Reply With Quote
Old February 27th, 2013, 02:23 PM   #6 (permalink)
ROM Developer
Thread Author (OP)
 
GameTheory's Avatar
 
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,845
 
Device(s): [Optimus F6 Xperion ROM] [Spirit 4G Samurai ROM] [Galaxy S3 4.3 Stock]
Carrier: Metro pcs $60 plan

Thanks: 418
Thanked 2,042 Times in 942 Posts
Default

I can't have a discussion on an OS I don't use and know nothing about. Fedora seems to have limited support because the community is smaller, so things take longer to be available for it. This is one reason why I don't use it.

Here's a link to the Fedora Project. They have a guide to setting up SDK which includes ADB. Not sure if this will work for you... If not, you may have to do some serious googling.

HOWTO Setup Android Development - FedoraProject
GameTheory is offline  
Reply With Quote
Old February 27th, 2013, 11:48 PM   #7 (permalink)
LG Whiz Kid
 
sammyz's Avatar
 
Join Date: Jun 2011
Location: Pompano Beach, Fl
Gender: Male
Posts: 8,717
 
Device(s): LG Motion 4G---- LG Optimus L9
Carrier: MetroPCS

Thanks: 2,169
Thanked 2,323 Times in 1,512 Posts
Default Re: Install ADB on Windows & ubuntu 12.04 or 12.10

@GameTheory, you know we have everything for adb right here:
http://androidforums.com/faqs/443072-adb-guide-updated-2013-05-21-a.html#post5389081

No installs/sdk needed, maybe just a tutorial on how to use adb on windows would be great, oh and how to set up adb to be used from anywhere while terminal/cmd is open.
__________________
Ok, you want help? I am here to help. But if you can't read, I can't really help you.
Why on earth would anyone help someone who does not read? This is a forum, the purpose of it is to read.
sammyz is online now  
Last edited by sammyz; February 27th, 2013 at 11:50 PM.
Reply With Quote
Old February 28th, 2013, 02:36 AM   #8 (permalink)
ROM Developer
Thread Author (OP)
 
GameTheory's Avatar
 
Join Date: Jul 2012
Location: ???
Gender: Male
Posts: 2,845
 
Device(s): [Optimus F6 Xperion ROM] [Spirit 4G Samurai ROM] [Galaxy S3 4.3 Stock]
Carrier: Metro pcs $60 plan

Thanks: 418
Thanked 2,042 Times in 942 Posts
Default

I know about mini SDK but I've always preferred to install SDK tools (it's the standard method). When installed it's easier to use with quicker access for someone in a rush. It's only 150mb installed, so I don't mind. It also comes with a GUI to keep it updated with one click.

Here's an example of the same set of commands in both for a wireless connection....

____Mini SDK____

tony@E4610:~/Downloads/sdk-tools$ sudo ./adb-linux connect 192.168.1.3
[sudo] password for tony:
already connected to 192.168.1.3:5555
tony@E4610:~/Downloads/sdk-tools$ ./adb-linux devices
List of devices attached
192.168.1.3:5555 device

tony@E4610:~/Downloads/sdk-tools$ ./adb-linux shell
shell@android:/ $ su
shell@android:/ #

____Standard SDK____

tony@E4610:~$ adb connect 192.168.1.3
already connected to 192.168.1.3:5555
tony@E4610:~$ adb devices
List of devices attached
192.168.1.3:5555 device

tony@E4610:~$ adb shell
shell@android:/ $ su
shell@android:/ #
______________

As you can see from the examples... It's quicker, shorter, and easier with standard sdk installed. When installed your not required to login (sudo) or to have to execute (./) and you don't need to point to its location. These are some of the elements that make it easier to use especially for noobz.

I don't use windows so I don't think I can do a write up on it unless it's something I remember from the past. Admittedly I do own a copy of windows 7 ultimate.

My goal with this guide was for beginners to have an easy to follow guide, to setup an easy to use environment on their PC's. I did see the standard guide at the top of your link, but it wasn't too beginner friendly.

Oh and I'll get back on using adb from anywhere.
sammyz and Slim1001 like this.
GameTheory is offline  
Reply With Quote
Old May 8th, 2013, 11:25 AM   #9 (permalink)
Junior Member
 
Join Date: Apr 2010
Posts: 82
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by GameTheory View Post
Install ADB on Windows & ubuntu 12.04 or 12.10

This is a guide I made for
ubuntu users and included a guide for windows users to setup Android SDK which contains ADB.

Android Debug Bridge (ADB) provides a terminal interface on your PC to interact with your device's file system. This can be useful for many things like installing & uninstalling apps, logcat, backup & restore, and hacking your device just to name a few.

Contents in order:
---ubuntu 12.04 & 12.10 guide
---Windows guide
---Commands for windows & ubuntu to get you started
---Wireless ADB on second post

ubuntu 12.04 & 12.10 Guide

1. Go here and download android-sdk (not the adt-bundle)....
http://developer.android.com/sdk/index.html

2. Place the downloaded file in your home folder and then extract it and you should get a folder named android-sdk-linux (do not rename it).

3. If you’re on a 64bit machine run these commands in terminal to make sdk compatible with 64bit (if you’re on 32bit machine then skip this step)....
sudo apt-get update
sudo apt-get install ia32-libs-multiarch

4. Run this command in terminal to install jdk if you don’t have it already....
sudo apt-get install openjdk-6-jdk

5. Navigate to the home folder where you extracted android-sdk-linux and open the folder then open the folder named tools

6. Inside the tools folder there will be a file named android... double click it and select run then android sdk manager will open.

7. In the center pane deselect everything... Now only select the following....
Android SDK Tools
Android SDK Platform-tools
Android Support Library

8. Once selections have been made click on install packages and wait till finished.

9. Upon completion of step 8 in terminal run this command....
sudo gedit ~/.bashrc

When the file opens, go to the very bottom and copy/paste the following 3 lines (make sure they’re each on separate lines)....
# Android tools
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools


10. Now reboot your computer.

11. Set your phone to usb debugging then plug it to your pc after pc is done booting

12. Open a terminal on your pc and enter....
adb devices

If all went well, you should see your phone’s serial number and you’ll be ready to go.

~~~~~Important~~~~~
You can use steps 5 & 6 to open Android SDK Manager & update your ADB/SDK installation. Only select your installed packages then update.

--------------------------------------------------------------------------------------------------------------
Windows Guide

1. Make sure your phones Windows drivers are installed

2. Install Java SE Development Kit 6 (JDK6)
Windows x86 for 32bit systems
Windows x64 for 64bit systems

3. Go here and download android-sdk (not the adt-bundle)....
http://developer.android.com/sdk/index.html

4. Then follow this video for the rest of the setup....
http://www.youtube.com/watch?v=oaNM-lt_aHw

---------------------------------------------------------------------------------------------------------

ubuntu & Windows Commands

Visit this website for some commands to get you started....
http://adbshell.com/


Enjoy
Hi,

I followed these instructions to install ADB on ubunto 12.04 but when I run adb devices the command isn't recognised.

I've also tried to run the command from the android-sdk-linux folder.

Any idea why it's not working ?

Thanks for any help.

Edit: I ran the steps in this link and now the ADB commands work:

http://bernaerts.dyndns.org/linux/245-ubuntu-precise-install-android-sdk

However now when I run ControlBear I get this error:

sh: 1: .tmp/fastboot: not found
Starting up......
Testing ADB connection
sh: 1: .tmp/adb: not found

I'm guessing there's something wrong with the path variables set as ControlBear is looking in tmp for fastboot etc.

This is painful !!!
PJD007 is offline  
Last edited by PJD007; May 8th, 2013 at 01:17 PM.
Reply With Quote
Old October 1st, 2013, 12:14 PM   #10 (permalink)
New Member
 
Join Date: Sep 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the sharing. It helps a lot.

Regards.
richardren is offline  
Reply With Quote
sponsored links
Old October 10th, 2013, 10:15 PM   #11 (permalink)
Disabled
 
Join Date: Jul 2013
Location: In a house
Gender: Male
Posts: 640
 
Device(s): One that I wish I didn't buy
Carrier: Whoever wants to carry me

Thanks: 151
Thanked 182 Times in 158 Posts
Default

Nice!
Android Addict is offline  
Last edited by Android Addict; October 11th, 2013 at 12:26 PM.
Reply With Quote
Reply

LG Spirit 4G
Current Rating:
Rate this Phone:

The LG Spirit is a mid-end device with a bit of a stronger punch. The device doesn't do bad with a 4.5-inch screen, Android 4.0 and a 1.2 GHz processor. All for $200 after a $70 mail-in rebate (no contract) from Metro PCS. Not a bad deal if you... Read More



Go Back   Android Forums > Android Phones > LG Spirit 4G
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 08:16 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.