FORUMS

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

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

5,600 posts
Thanks Meter: 1,625
 
Post Reply Subscribe to Thread Email Thread
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 01:51 AM.
The Following 38 Users Say Thank You to blahbl4hblah For This Useful Post: [ View ]
 
 
24th April 2012, 03:46 AM |#2  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,625
 
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, 04:14 AM |#3  
Senior Member
Flag NYC
Thanks Meter: 521
 
More
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, 04:16 AM |#4  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,625
 
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, 08:41 AM |#5  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,625
 
Donate to Me
More
Be sure to read step by step everyone
25th April 2012, 09:58 PM |#6  
TamCore's Avatar
Senior Member
Flag Düsseldorf
Thanks Meter: 1,058
 
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, 10:04 PM |#7  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,625
 
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, 09:23 AM |#8  
azoz123456's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 91
 
More
When I write

adb logcat > logcat.txt

answer is:

Access is denied. Why?
15th June 2012, 10:13 AM |#9  
Stephen's Avatar
Forum Moderator / Retired Recognized Developer
Thanks Meter: 5,999
 
More
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, 01:07 PM |#10  
azoz123456's Avatar
Senior Member
Flag Jeddah
Thanks Meter: 91
 
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 ]
15th June 2012, 07:38 PM |#11  
blahbl4hblah's Avatar
OP Recognized Developer
Flag Los Angeles, CA
Thanks Meter: 1,625
 
Donate to Me
More
Quote:
Originally Posted by GhostXSeries

Can you post a screen shot of what you are doing?

May be, but I don't see the point since it's an EASY GUIDE.

Adb logcat part tells you before to open terminal.

Is that really hard to follow?

Sent from my Sensation
Last edited by blahbl4hblah; 15th June 2012 at 07:41 PM.
The Following User Says Thank You to blahbl4hblah For This Useful Post: [ View ]

Read More
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