Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP blahbl4hblah

24th April 2012, 04:45 AM   |  #1  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,623
 
5,584 posts
Join Date:Joined: Oct 2010
Donate to Me
More
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/
Last edited by blahbl4hblah; 16th June 2012 at 02:51 AM.
The Following 37 Users Say Thank You to blahbl4hblah For This Useful Post: [ View ]
24th April 2012, 04:46 AM   |  #2  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,623
 
5,584 posts
Join Date:Joined: Oct 2010
Donate to Me
More
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
The Following User Says Thank You to blahbl4hblah For This Useful Post: [ View ]
24th April 2012, 05:14 AM   |  #3  
Senior Member
Flag NYC
Thanks Meter: 521
 
2,891 posts
Join Date:Joined: May 2011
Quote:
Originally Posted by blahbl4hblah

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.
24th April 2012, 05:16 AM   |  #4  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,623
 
5,584 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by aNYthing24

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
The Following User Says Thank You to blahbl4hblah For This Useful Post: [ View ]
24th April 2012, 09:41 AM   |  #5  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,623
 
5,584 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Be sure to read step by step everyone
25th April 2012, 10:58 PM   |  #6  
TamCore's Avatar
Senior Member
Flag Düsseldorf
Thanks Meter: 1,058
 
655 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Quote:
Originally Posted by blahbl4hblah

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
25th April 2012, 11:04 PM   |  #7  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,623
 
5,584 posts
Join Date:Joined: Oct 2010
Donate to Me
More
Quote:
Originally Posted by TamCore

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
15th June 2012, 10:23 AM   |  #8  
azoz123456's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 80
 
332 posts
Join Date:Joined: Jan 2012
More
When I write

adb logcat > logcat.txt

answer is:

Access is denied. Why?
15th June 2012, 11:13 AM   |  #9  
Stephen's Avatar
Forum Moderator / Retired Recognized Developer
Thanks Meter: 4,388
 
6,299 posts
Join Date:Joined: Jul 2010
Can you post a screen shot of what you are doing?
The Following 2 Users Say Thank You to Stephen For This Useful Post: [ View ]
15th June 2012, 02:07 PM   |  #10  
azoz123456's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 80
 
332 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by GhostXSeries

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: [ View ]
Post Reply Subscribe to Thread

Tags
adb, guide, logcat, sdk
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes