As you’ve probably noticed, there is an ADB tab at the top of VTS. The Android Debug Bridge (ADB) is deepy integrated into VTS. Many features rely on a working ADB connection. This tutorial covers some of the most obvious features related to ADB.
It’s as simple as it sounds. It reboots your device so you can test changes you’ve made. It’s quicker than manually opening up a command prompt to type it in.
This opens up a command window with an interactive shell already running for you. Useful for administrative purposes on your device.
Opens up a command window with ADB ready to use so you can issue custom commands to your device.
This restarts the ADB server. Use this if ADB commands are failing or you are having any problems related to it.
This opens up a window that has several options to make getting and reading a logcat much easier.
First, make sure your phone is plugged in then click Start. The initial loading takes some time, so be patient and wait until the messages appear. You will probably get a lot of words that may seem confusing at first. Here’s where Verbosity and Filters come in handy.
Click on the Verbosity selector and you will see these options:
Clicking any of those options will filter the logcat you have just taken so it shows only that type of output. I find this most useful when reading errors in a logcat. It is much quicker than looking throughout the whole log for just one error.
Next you see Filter and Exclude. These are pretty straight foward.
Typing something into this text box will find whatever you typed in when viewing the log. For example: If I wanted to find where “ril” was in the log I would simply type “ril” and let VTS do the rest.
Typing something into this text box will exclude whatever you typed in while viewing the log. For example: Lets say there are too many lines being spammed by I/QMI-RIL. Simply type that in and it will exclude/hide every line that contains that. This is incredibly useful for shrinking down a large log to help find what you need.
There are also some options available to control the behavior of the text flow. You can toggle whether VTS automatically displays new messages (Live-refresh) as well as whether it automatically scrolls to the last message (Auto-scroll)
To keep the everything performant, VTS will only display a certain amount of logcat messages at one time. You can adjust that value to oyur needs with the Max. entries selector. However, all logcat messages are kept in memory, so if you filter for something it will search all messages.
You can also use the features of the logcat viewer for logcats taken with other tools. Simply click on Load from file to load to load any logcat previously taken. To ease sharing logcats you can also export the logcat to a file with Save to file.
Now get loggin’!