User Tools

Site Tools


notes:adb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:adb [2013/03/04 17:00]
andy created
notes:adb [2013/03/04 17:34]
andy [Debugging Commands]
Line 20: Line 20:
 ==== Debugging Commands ==== ==== Debugging Commands ====
  
-^ ''​logcat''​ | Effectively runs a constant ''​%%tail -f%%''​ on the system log file. | +^ ''​logcat''​ | Effectively runs a constant ''​%%tail -f%%''​ on the system log file. || 
-^ ''​shell''​ | Opens a remote shell on the specified device. |+^ :::        | **''​%%-c%%''​** | Clears the system log file and exits. | 
 +^ ''​shell''​ | Opens a remote shell on the specified device. ​||
  
  
Line 29: Line 30:
 ^ ''​push <​local>​ <​remote>''​ | Copies the specified local file to the specified remote location. | ^ ''​push <​local>​ <​remote>''​ | Copies the specified local file to the specified remote location. |
 ^ ''​pull <​remote>​ <​local>''​ | Copies the specified remote file to the specified local location. | ^ ''​pull <​remote>​ <​local>''​ | Copies the specified remote file to the specified local location. |
 +
 +
 +===== Recipes =====
 +
 +This section includes some handy snippets for particular tasks.
 +
 +==== Debugging JNI ====
 +
 +> **''​adb shell setprop debug.checkjni 1''​**
 +
 +Enables additional checks on [[wikipedia>​JNI]] behaviour as detailed in [[http://​android-developers.blogspot.co.uk/​2011/​07/​debugging-android-jni-with-checkjni.html|this post]].
  
notes/adb.txt · Last modified: 2013/03/04 17:34 by andy