Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/appium-app/adb-commands.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 23 additions & 2 deletions docs/adb-commands-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,26 @@ result = driver.execute_script("lambda-adb",params)
params = {"command": "shell", "text": "dumpsys package <package_info>"}
result = driver.execute_script("lambda-adb",params)
```
Example -
```python
params = {"command": "shell", "text": "dumpsys package dumpsys input_method"}
result = driver.execute_script("lambda-adb",params)
```

- **adb shell getprop** <VirtualDeviceTag value="Virtual Device" />
- **adb shell getprop** <VirtualDeviceTag value="Virtual Device" /> <RealDeviceTag value="Real Device" />

This command is used to retrieve system properties from an Android device. When executed, it provides a list of key-value pairs representing various system settings and configurations. These properties include information about the device's build, hardware, and other system-related details. The output can be useful for debugging, development or understanding the device's current state. The following is a Python sample using the adb command:

```python
params = {"command": "shell", "text": "getprop"}
result = driver.execute_script("lambda-adb",params)
```
Example -
```python
params = {"command": "shell", "text": "getprop ro.build.version.security_patch"}
result = driver.execute_script("lambda-adb",params)
```


- **adb shell ping -c 4 YOUR_URL** <VirtualDeviceTag value="Virtual Device" />

Expand All @@ -131,6 +142,16 @@ result = driver.execute_script("lambda-adb",params)
result = driver.execute_script("lambda-adb",params)
```

- **adb shell cat** <RealDeviceTag value="Real Device" />

This command provides detailed information about the system’s kernel version and build information. It outputs the Linux kernel version, along with build information such as the GCC version used to compile the kernel. This command is useful when you need to check the underlying kernel version of the Android device, typically for compatibility checks, debugging, or ensuring that a device meets specific requirements for apps or tests. The following is a Python sample using the adb command:

```python
params = {"command": "shell", "text": "cat /proc/version"}
result = driver.execute_script("lambda-adb",params)
```
<img loading="lazy" src={require('../assets/images/appium-app/adb-commands.png').default} alt="Image" width="1444" height="703" className="doc_img img_center"/>

### Enable/Disable Notification

- **enableNotification** <RealDeviceTag value="Real Device" /> <VirtualDeviceTag value="Virtual Device" />
Expand Down Expand Up @@ -220,4 +241,4 @@ This approach is particularly useful when testing applications that rely on corr
</span>
</li>
</ul>
</nav>
</nav>
3 changes: 2 additions & 1 deletion docs/realdevices-adb-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ To ensure security and compatibility, we have a list of ADB commands that can be
| pwd | Prints the current working directory on the device. |
| dumpsys | Dumps system information from the device. |
| getprop | Retrieves device properties. |
| cat | Helps in compatibility checks, debugging and system diagnostics. |



Expand Down Expand Up @@ -106,4 +107,4 @@ To ensure security and compatibility, we have a list of ADB commands that can be
</span>
</li>
</ul>
</nav>
</nav>
Loading