equal
deleted
inserted
replaced
127 To kill process:: |
127 To kill process:: |
128 |
128 |
129 $ adb shell ps | grep $REGEX |
129 $ adb shell ps | grep $REGEX |
130 $ adb shell kill $PID |
130 $ adb shell kill $PID |
131 |
131 |
|
132 To stop application:: |
|
133 |
|
134 $ adb shell am kill com.google.android.contacts |
|
135 $ adb shell am force-stop com.google.android.contacts |
|
136 |
132 Take a screenshort:: |
137 Take a screenshort:: |
133 |
138 |
134 $ adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
139 $ adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png |
135 |
140 |
136 Power button:: |
141 Power button:: |
144 Show system log:: |
149 Show system log:: |
145 |
150 |
146 $ adb logcat |
151 $ adb logcat |
147 $ adb logcat "*:W" |
152 $ adb logcat "*:W" |
148 |
153 |
|
154 List partition. |
|
155 =============== |
|
156 |
|
157 List partitions (with sizes):: |
|
158 |
|
159 android# cat /proc/partitions |
|
160 android# cat /proc/mtd |
|
161 |
|
162 List mounted file systems:: |
|
163 |
|
164 android# mount |
|
165 android# df |
|
166 |
149 Controlling Android from PC. |
167 Controlling Android from PC. |
150 ============================ |
168 ============================ |
151 |
169 |
152 * http://code.google.com/p/androidscreencast/ |
170 * http://code.google.com/p/androidscreencast/ |
153 * http://code.google.com/p/android-screen-monitor/ |
171 * http://code.google.com/p/android-screen-monitor/ |