Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,360 Members 48,741 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Installing ADB/SDK and How to make a logcat

Tip us?
 
blahbl4hblah
Old
(Last edited by blahbl4hblah; 16th June 2012 at 01:51 AM.)
#1  
blahbl4hblah's Avatar
Recognized Developer - OP
Thanks Meter 1,623
Posts: 5,584
Join Date: Oct 2010
Location: Los Angeles, CA

 
DONATE TO ME
Default [GUIDE] Installing ADB/SDK and How to make a logcat

I'm doing this simple guide on how to achieve a logcat when an issue is received
It's very simple but some people on here don't know how to do one.

1. Download Android SDK from here:
Code:
http://developer.android.com/sdk/index.html
2. Extract Android SDK to any area

3. Once Android SDK is extracted, be sure to put the path and download Android SDK Tools:

Examples:

Windows
Open your start menu, right click on 'My Computer' and select 'Properties'
Once another window opens go to 'Advanced settings'
Followed by selecting 'Environmental Variables'
Look for PATH and enter the following:
Code:
C:\Android-sdk-windows; C:\Android-sdk-windows\platform-tools; C:\Android-sdk-windows\tools;
Now java will need to be installed
Go to the following link:
Code:
http://www.java.com/en/
Go into Android SDK folder and open 'SDK Manager.exe'
Only check 'Android SDK Tools' and Android SDK Platform-tools

Linux
Go into your Home folder and Press CTRL+H (This is done to show hidden folders and files)
Look for the file '.bashrc'
Open it and put the following or similar:
Code:
export PATH=$PATH:~/android/sdk
export PATH=$PATH:~/android/sdk/platform-tools
export PATH=$PATH:~/android/sdk/tools
You will need to add something for any devices to be recognized:
Open terminal and enter:
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
Enter the following in the file:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
Now save and close the file, in terminal enter:
Code:
sudo chmod +x /etc/udev/rules.d/51-android.rules
Now you will need to install java
Open terminal and enter:
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin
Now that everything is installed
Open terminal either type:
Code:
android
OR, if that doesn't work
Code:
cd ~/android/sdk/tools
./android
4. How to do a logcat:
This is very simple as now you have installed Android SDK and ADB

First connect the device via USB to your computer
Be sure to have usb debugging enabled

To verify the device is connected type:
Code:
adb devices

Windows

Open Command Prompt
Enter the following (Yes there's a space in between the '>'):

Code:
adb logcat > logcat.txt

Linux

Open Terminal

Enter the following (Yes there's a space in between the '>'):
Code:
adb logcat > logcat.txt
*The logcat.txt is your logcat that you can copy and paste for developers

5. Now that you've created a logcat copy and paste it to:
http://pastebin.com/
Before you even ask for help, do help yourself and search for it first!
The Following 37 Users Say Thank You to blahbl4hblah For This Useful Post: [ Click to Expand ]
 
blahbl4hblah
Old
#2  
blahbl4hblah's Avatar
Recognized Developer - OP
Thanks Meter 1,623
Posts: 5,584
Join Date: Oct 2010
Location: Los Angeles, CA

 
DONATE TO ME
Now if someone in any sensation development thread ask you how do create a logcat
Be sure to give them the link to this guide

Thanks
Before you even ask for help, do help yourself and search for it first!
The Following User Says Thank You to blahbl4hblah For This Useful Post: [ Click to Expand ]
 
aNYthing24
Old
#3  
Senior Member
Thanks Meter 521
Posts: 2,890
Join Date: May 2011
Location: NYC
Quote:
Originally Posted by blahbl4hblah View Post
Now if someone in any sensation development thread ask you how do create a logcat
Be sure to give them the link to this guide

Thanks
Should keep it in your sig too. Good work.
 
blahbl4hblah
Old
#4  
blahbl4hblah's Avatar
Recognized Developer - OP
Thanks Meter 1,623
Posts: 5,584
Join Date: Oct 2010
Location: Los Angeles, CA

 
DONATE TO ME
Quote:
Originally Posted by aNYthing24 View Post
Should keep it in your sig too. Good work.
Good point
I'm tired of people reporting issues and there's no logcat
Now they have no excuse
Before you even ask for help, do help yourself and search for it first!
The Following User Says Thank You to blahbl4hblah For This Useful Post: [ Click to Expand ]
 
blahbl4hblah
Old
#5  
blahbl4hblah's Avatar
Recognized Developer - OP
Thanks Meter 1,623
Posts: 5,584
Join Date: Oct 2010
Location: Los Angeles, CA

 
DONATE TO ME
Be sure to read step by step everyone
Before you even ask for help, do help yourself and search for it first!
 
TamCore
Old
#6  
TamCore's Avatar
Senior Member
Thanks Meter 1,058
Posts: 655
Join Date: Jul 2010
Location: Düsseldorf

 
DONATE TO ME
Quote:
Originally Posted by blahbl4hblah View Post
Now you will need to install java
Open terminal and enter:
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin
Why not OpenJDK? The Android stuff works fine with it
Blog // Twitter // Google+ // github // something else
 
blahbl4hblah
Old
#7  
blahbl4hblah's Avatar
Recognized Developer - OP
Thanks Meter 1,623
Posts: 5,584
Join Date: Oct 2010
Location: Los Angeles, CA

 
DONATE TO ME
Quote:
Originally Posted by TamCore View Post
Why not OpenJDK? The Android stuff works fine with it
When it comes to just adb I don't really care for openjdk but when it comes to compiling a rom I don't want it near my pc

Sent from my HTC Sensation
Before you even ask for help, do help yourself and search for it first!
 
azoz123456
Old
#8  
azoz123456's Avatar
Senior Member
Thanks Meter 76
Posts: 325
Join Date: Jan 2012
Location: Jeddah
When I write

adb logcat > logcat.txt

answer is:

Access is denied. Why?
 
Ghost
Old
#9  
Ghost's Avatar
Forum Moderator / Retired Recognized Developer
Thanks Meter 4,047
Posts: 5,862
Join Date: Jul 2010
Location: XDA MODERATOR
Can you post a screen shot of what you are doing?
The Following 2 Users Say Thank You to Ghost For This Useful Post: [ Click to Expand ]
 
azoz123456
Old
#10  
azoz123456's Avatar
Senior Member
Thanks Meter 76
Posts: 325
Join Date: Jan 2012
Location: Jeddah
Quote:
Originally Posted by GhostXSeries View Post
Can you post a screen shot of what you are doing?
[Q]First do "adb logcat" then do "adb logcat > logcat.txt" ?


......

and this "Access is denied" is disappear.

now I am waiting to finish "adb logcat" then I well do "adb logcat > logcat.txt".

If doesn't Work I will post a screen shot

---------- Post added at 01:07 PM ---------- Previous post was at 12:42 PM ----------

what is this? :|

https://www.dropbox.com/s/9ubqfwhevpfetqi/Loop.bmp

The Following 2 Users Say Thank You to azoz123456 For This Useful Post: [ Click to Expand ]
Tags
adb, guide, logcat, sdk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes