USB Debugging:
To take android device log from PC/Mac, USB debugging should be enabled
in device. Following are the steps to enable USB debugging:
in device. Following are the steps to enable USB debugging:
Enable USB Debugging in Android Devices
- Go to Settings > About phone.
- Then move on to Build number option
- Tap on Build number repeatedly about 7 times.
- After touching 7th time you will see a message that, you are now a developer.
- Now the ‘Developer options’ will be placed in Settings menu.
- Enter ‘Developer options’.
- Check on ‘USB Debugging’.
- Wanring popup ‘Allow USB debugging?’ will appear.
- Tap ‘Ok’ to confirm.
USB debugging in Android 4.0 and Later
- Go to settings.
- Enter ‘Developer options’.
- Check on ‘USB Debugging’.
- Warning popup ‘Allow USB debugging?’ will appear.
- Tap ‘Ok’ to confirm.
With USB debugging enabled, after connecting device to any PC/Mac, device will be connected as a media device.
Getting device log:
Logs from PC/Mac:
- Download android SDK tools. Android SDK tools can be downloaded from here: http://developer.android.com/sdk/
- In tools folder, there is a tool ‘monitor’. Open monitor.
- Connect the device with PC/Mac. Make sure USB debugging is enabled in device.
- Device will appear at top right ‘Device’ panel. Select the device (i.e. Nexus 5.1).
- Device log should appear at the bottom ‘Logcat’ panel.
- Device log can be filtered with log tag or other parameters.
- Select the necessary logs.
- Tap on ‘Save’ button to save.
- Device log will be saved as text file.
As numerous logs are recorded, clearing logs after saving would save redundancy in saved logs.
Logs from device:
There are many apps to record device log in google play store. The app CatLog’ is a convenient one. Note that rooting might be required for devices to record logs using CatLog. Following are steps to record device log using CatLog:
- Download ‘CatLog’ from google play store.
- Open CatLog. Keep this app in background while testing app.
- When device log needs to be saved, open CatLog.
- Tap on android options button on device.
- From these options device log can be saved in device or can be sent to =
an email address as text file.

No comments:
Post a Comment