[HOW TO] Make logcat with adb

Discussion in 'Bugs' started by andy.afef, Oct 11, 2012.

  1. andy.afef

    andy.afefMembers

    Jul 22, 2012
    167
    21
    38
    Male
    Student
    PALESTINE
    Logcats are the most useful thing you can provide to the developers to solve almost any problem you have with the system.

    A lot of users can't make logcat and a lot don't even know what is it.


    Logcat: every single action happen in the phone, will be listed in the logcat.


    How to make it:

    In the phone:
    1- Go to settings -> Full settings -> Developer options.



    [​IMG]



    2- Activate Developer options, click ok.


    [​IMG]


    3- Activate USB debugging, click ok.


    [​IMG]



    4- When connected to USB it must be like the pic.


    [​IMG]



    6- Now to PC.


    In the PC:
    1- Download ADB from here.





    2- Extract it to an easy to access place like desktop.





    3- Connect your phone to the PC with USB cable.





    4- Start "Make log.bat" in the ADB folder.


    [​IMG]

    [​IMG]


    5- Recreate the bug, if the bug is, camera FC on start. then start the camera to make it FC





    6- After making the bug happen, close the "Make log.bat".





    7- in adb folder there will be new file called "Log.txt", this is the log you have to upload it to the bug forum.


    [​IMG]


    Where to upload:
    1- miuiandroid Logcat page
    2- mediafire.com
    3- Dropbox.com
    4- box.com
    5- Skydrive
    6- Google drive
    7- anywhere you like, don't use adf.ly or any other stupid link ads

    P.S. You may need to install the drivers for your phone, Nexus phones have the drivers with android SDK, Samsung phones may have to install Samsung Kies app and so for your device.

    If you have anything to ask or you feel something isn't working, ...ets
    feel free to ask.

    Attention please:
    Some of you reported the file isn't working, and they solve it by replacing my adb file with a new file from Android SDK.
    So, if the app didn't work, please download the Android SDK and replace adb.exe from my file, with the adb.exe from the new SDK.
    download link: http://developer.android.com/sdk/index.html

    Good luck everyone
     

    Attached Files:

    • adb.zip
      File size:
      171.9 KB
      Views:
      504
  2. Mavamaarten

    Jan 26, 2013
    77
    17
    18
    Male
    Sorry for bombing this forum with my noobness... I found a really annoying bug in MIUIv5 but I can't make a logcat because I can't find the drivers for my Xiaomi MI-2.
    I've downloaded the Setup.exe that's supposed to be on your phone, and if I click the green button (in chinese) it installs an adb driver, but still the "MI-2" device has no driver.

    [​IMG]

    ADB does not find my device. If I try "adb devices" I simply get an empty list of devices (and yes, it's enabled under developers options).
    Does anyone know where to find the correct drivers for the Xiaomi MI2? Thanks in advance.
     
  3. andy.afef

    andy.afefMembers

    Jul 22, 2012
    167
    21
    38
    Male
    Student
    PALESTINE
    Try to uninstall the drivers, then reboot the phone and the PC.
    after that you may try another USB port to re-install them, if you still have the same problem, please try another PC
    and if it worked, you'll need to fix your OS.
     
  4. Mavamaarten

    Jan 26, 2013
    77
    17
    18
    Male
    I managed to get it working. Not by reinstalling the drivers, but apparently MiFlash contains the drivers you need, but not the driver package itself.
    Installing MiFlash fixed the issue, but not entirely. I also had to download adb using the android sdk itself, the provided adb showed my device as offline.
     
  5. cranticumar

    Mar 21, 2013
    4
    0
    11
    Male
    Even i have the same problem...it shows the device but in offline mode
     
  6. Mavamaarten

    Jan 26, 2013
    77
    17
    18
    Male
    You need to download adb from Google itself... That fixed my issue.
     
  7. cranticumar

    Mar 21, 2013
    4
    0
    11
    Male
    Yeah that worked for me too...thanks man!!
     
  8. Here's how to do it on Mac OS X
    1. Change Developer settings in your phone to USB Debug
    2. Download and unzip adb-fastboot-install from http://code.google.com/p/adb-fastboot-install/downloads/list
    3. Open Terminal, drag & drop the file ADB-Install-Mac.sh to install adb
    4. Close and open a new terminal
    5. Connect phone with USB
    6. In terminal execute the command:
      Code:
      adb logcat *:I | tee -a ~/Desktop/logcat.txt
      Where | tee makes it possible to display the live output in the console while logging to a textfile at the same time. Where -a appends logcat.txt if it already exists. And where *:I is the error level:
      V — Verbose (lowest priority)
      D — Debug
      I — Info (default priority)
      W — Warning
      E — Error
      F — Fatal
      S — Silent (highest priority, on which nothing is ever printed)
    7. Ctrl+C in terminal to stop logging
    8. Your logcat.txt is on your desktop
     
  9. ilyas5000

    ilyas5000Members

    Oct 11, 2013
    16
    0
    21
    Male
    Ouargla
    i did evrything but i have a lot prob
    nothing work
    1-i cant in to my internal storage in my pc
    plz help

    sorry for the bad ENG

    my phone is miui 1+
    androide v:4.0.1
     
  10. mike fiera

    mike fieraMembers

    May 18, 2014
    7
    0
    11
    Male
    thanks for this helpful post
     
  11. love sites

    love sitesMembers

    Jun 13, 2016
    4
    0
    11
    Male
    I have learned something ,thank you for your sharing.
     
  12. Alexdiep

    AlexdiepMembers

    Apr 21, 2016
    9
    2
    13
    Male