O'Reilly logo

Bulletproof Android™: Practical Advice for Building Secure Apps by Godfrey Nolan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logs

It’s common to add debug logging information to an app when it’s being developed. Unfortunately, many of these debug logs make it into production.

To see all of the logging information, simply type adb logcat from the command line. There is such a wealth of information that it helps to save it out to a file using adb logcat > logging.txt to get some idea of what’s in the logs.

We can filter the logs using LogCat that can be run from the command line. LogCat also comes with the Dalvik Debug Monitor Server (DDMS) that is part of the Android SDK. Ideally, because of the volume of logs, we’d want to filter the logs based on log messages coming from the application we’re looking at. See Figure 8-2 for the log messages from com.riis.logfiles. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required