How to Take ADB Logcat via PC

In this post, I'll discuss How to Take ADB Logcat via PC, so if you are an Android user, and want to take Logcat for your ROM, follow the steps carefully. I'll also be attaching a YouTube video tutorial link at the end, so make sure to check that out as well.

Table of Content(toc)

What is ADB Logcat?

Logcat is a Command Line tool, that dumps system log messages when the device throws an error and sends messages that you have written from your app with the "Log" class.

If you are facing an issue or bug on your phone, and want to report the bug to the developers, all you need to do is take a proper logcat of the issue and share it with the developers or support team of your device, so that they can work on and fix the issue in future software updates. 

Pre-requisites:

There are two ways of taking a logcat, in this article, I'll be discussing the ADB method. Before following the steps, make sure that you have ADB drivers installed on your PC. If you don't have ADB installed on your PC, download the drivers from the link given below and install it on your PC.



Also read: Custom ROMs for Android: How to Improve Performance, Customization, and Security


How to Take ADB Logcat via PC


  • First of all, open Settings on your phone and navigate to the About Phone section of your phone.
  • Now click on the Build Number option 5-7 times, to enable Developer Options on your device.
  • Once enabled, go back to System Settings, here you'll see Developer Options, tap on it.

  • Once you have entered Developer Options, scroll down, search for the USB Debugging option, and enable it.
  • Now head to your PC and open Command Prompt on it.
  • Connect your device with the USB cable to your PC.
  • Now type adb devices in the Command Prompt and hit Enter.
  • It'll show the list of ADB devices attached to your PC.
  • Now type adb logcat and press Enter.

Code: 

adb logcat(code-box)

Here you'll see a lot of things running in the adb shell, it is capturing all the activity that's happening on your smartphone. So now all you need to do is reproduce the issue you are facing. For example, If you are facing an issue with the Dialer app, open it, use it, close it, and try to reproduce the issue, so that the bug can be captured on your PC.

  • Once done, press CTRL+C on your PC to stop the adb log.
  • Now, to save the adb log, type adb logcat>logpath:/filename.txt and press Enter.



Code: 

adb logcat>logpath:/filename.txt(code-box)

For example adb logcat>C:/test.txt

The file will be saved in the given location. Now you can share it with your device's maintainer and contribute to your ROM's development.

Here's a YouTube video showing all the steps in detail.


Conclusion

So, guys, that's all for today, I hope you enjoyed it, if you have any questions or suggestions, or if you are interested in reading more posts like this, then do let me know by commenting down below. If you liked this post, don't forget to share it with your friends.  Lastly, to stay updated with the latest happenings in the tech world, make sure to follow our social media accounts:- 

Facebook: TecknoKing  

Instagram: Teckno_King  

Twitter: Teckno_King 


Thanks for reading, take care and I'll see you guys in the next one.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.