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

Search This thread

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
Los Angeles, CA
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:

azoz123456

Senior Member
Jan 21, 2012
423
103
Jeddah

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
Los Angeles, CA
[Q]First do "adb logcat" then do "adb logcat > logcat.txt" ?


......

and this "Access is denied" is disappear.:eek:

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

You sir don't follow instructions do you?

I said do adb logcat > logcat.txt for a reason. It's to save your logcat to a text file to give developers of your issues

Sent from my Sensation
 
  • Like
Reactions: azoz123456

azoz123456

Senior Member
Jan 21, 2012
423
103
Jeddah
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

sorry
This is what I did:Here

Probably because you didn't enable us debugging in your phone

Sent from my Sensation

I do it bro.:(

You sir don't follow instructions do you?

I said do adb logcat > logcat.txt for a reason. It's to save your logcat to a text file to give developers of your issues

Sent from my Sensation

I do every thing.


My phone is Incredible s.
S-OFF & Rooted $ I have recovery
now I am use this ROM:
[ROM] ★ TSM UltimateKangBang v3.5 Rev. C ★ ICS 4.0.3 • Sense 4.0a • Updated 12/06/12

and I need the adb logcat because I am going to learn how to port ROM HTC one V to my Inc s.

I am use this thread :
http://xdaforums.com/showthread.php?t=1222746
and this:
http://xdaforums.com/showthread.php?t=1563857(although

but the result is:
ROM successfully insulted when I do reboot stay in HTC page.:(





......................................................


[Q] When I port ROM from ONE v to my phone, must be use ROM ICS4.0 or I can use any ROM "2.3.5"?!

because I use RUU stock for my phone." When I do porting"


[Q] how time take to finsh " adb logcat"?!



I know my English is bad sorry:D:D

I hope you get the point:mad:
 

chrolmesq

Senior Member
Dec 30, 2011
424
42
After I enter "adb logcat > logcat.txt" nothing happens. ADB recognizes my devices. I have debugging enabled. It does say adb server is out of date, if that means anything.

Running 8-10-2012 tamcore nightly on HTC sensation. with tamcore kernel. Boot loader is locked with S-off. if that means anything.
 
Last edited:

chrolmesq

Senior Member
Dec 30, 2011
424
42
Paste bin says my log cat is too big. How can I fix this?

Sent from my HTC Sensation using xda premium
 

toe451

Senior Member
Dec 24, 2010
191
26
orlando,fl
Hello, I'm having some trouble on win 7 . when i type in cmd adb devices i get adb is not recognized as a internal or external command. i installed the sdk manager in c\Android , installed java and i changed the environment variables to, path c:\Android-sdk-windows etc.... per the instructions. but i did something wrong since it's not working...i could use some help.... Thanks...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    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/
    2
    Can you post a screen shot of what you are doing?
    2
    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.:eek:

    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
    2
    I also have been trying to get a logcat on my galaxy s3 and I have been having problems with drivers and getting ADB to recognize my phone, but I finally got it to recognize it, however when I go to create the logcat via adb logcat > logcat.txt I also get the "access is denied" error. I just created a logcat on my girlfriends computer no problem. Well I got adb working on my pc and wanted to try to create a logcat and I got this error and googled it and found this thread, wondering if anyone figured out what is causing this.


    Whoever facing the problem of "access is denied " try this
    right click android-sdk -properties - Security- Edit the users permission and give Full Control
    It worked for me .. I think it is not having administrator permissions while saving the log in the system . .. this is for windows 7.
    1
    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 :cool: