### Wireless connection (without using the USB cable)
**Note: You need root privileges.**
**Note: You need root privileges.**
On a "wireless connection (need to use USB cable)" method is described in official documents, need the help of a USB cable to enable the wireless connection.
@ -318,7 +351,7 @@ Since we want to achieve a wireless connection, it can all step down are wireles
1. Install a terminal emulator on the Android device.
Equipment already installed you can skip this step. Terminal emulator download address I use is: [Terminal Emulator for Android Downloads] (https://jackpal.github.io/Android-Terminal-Emulator/)
Equipment already installed you can skip this step. Terminal emulator download address I use is: [Terminal Emulator for Android Downloads](https://jackpal.github.io/Android-Terminal-Emulator/)
2. To run the Android device and computer adb is connected to the same local area network, such as connected to the same WiFi.
@ -345,7 +378,7 @@ Since we want to achieve a wireless connection, it can all step down are wireles
@ -802,7 +835,7 @@ The commands and default sources are:
roll <dx><dy> (Default: trackball)
```
Such as using `adb shell input keyevent <keycode>` command, different keycode to achieve different functions, keycode complete list see [KeyEvent] (https://developer.android.com/reference/android/view/KeyEvent.html), I think the interesting part of the quote is as follows:
Such as using `adb shell input keyevent <keycode>` command, different keycode to achieve different functions, keycode complete list see [KeyEvent](https://developer.android.com/reference/android/view/KeyEvent.html), I think the interesting part of the quote is as follows:
@ -954,21 +987,21 @@ If no password lock screen is unlocked by sliding gestures, so you can `input sw
Command (parameter models Nexus 5, swipe up to unlock, for example):
`` `Sh
```sh
adb shell input swipe 300 1000 300 500
```
```
`3001000300 parameters represent` 500` starting x coordinate of the start point y coordinate of the end point x coordinate y coordinate of the end point '.
Enter text ###
### Enter text
When the focus is in a text box, you can enter text by `input` command.
command:
`` `Sh
```sh
adb shell input text hello
```
```
`Hello` now appear in the text box.
@ -986,7 +1019,7 @@ Format:
Common usage are listed below:
Filter the log level by ####
### Filter the log by level
Android log divided into the following levels:
@ -1078,7 +1111,7 @@ Log supported by the following `<format>`:
```sh
Disconnected process message: 10, size: 0
```
```
* time
@ -1122,7 +1155,7 @@ Log supported by the following `<format>`:
Specified format can be used simultaneously with the above filter. such as:
@ -1134,7 +1167,7 @@ adb logcat -v long ActivityManager:I *:S
```sh
adb logcat -c
```
```
### Kernel log
@ -1162,7 +1195,7 @@ By kernel log, we can do some things, such as a measure of the kernel boot time,
## View device information
Model ###
### Model
command:
@ -1305,7 +1338,7 @@ Result: Parcel(
The effective content is extracted from the inside of the IMEI, such as here is `860955027785041`.
Reference: [adb shell dumpsys iphonesubinfo not working since Android 5.0 Lollipop] (http://stackoverflow.com/questions/27002663/adb-shell-dumpsys-iphonesubinfo-not-working-since-android-5-0-lollipop)
Reference: [adb shell dumpsys iphonesubinfo not working since Android 5.0 Lollipop](http://stackoverflow.com/questions/27002663/adb-shell-dumpsys-iphonesubinfo-not-working-since-android-5-0-lollipop)