diff --git a/assets/images/appium-app/adb-commands.png b/assets/images/appium-app/adb-commands.png new file mode 100644 index 000000000..461e2691d Binary files /dev/null and b/assets/images/appium-app/adb-commands.png differ diff --git a/docs/adb-commands-support.md b/docs/adb-commands-support.md index 9c741c0c6..93ab8e14d 100644 --- a/docs/adb-commands-support.md +++ b/docs/adb-commands-support.md @@ -111,8 +111,13 @@ result = driver.execute_script("lambda-adb",params) params = {"command": "shell", "text": "dumpsys package "} 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** +- **adb shell getprop** 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: @@ -120,6 +125,12 @@ result = driver.execute_script("lambda-adb",params) 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** @@ -131,6 +142,16 @@ result = driver.execute_script("lambda-adb",params) result = driver.execute_script("lambda-adb",params) ``` +- **adb shell cat** + + 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) + ``` +Image + ### Enable/Disable Notification - **enableNotification** @@ -220,4 +241,4 @@ This approach is particularly useful when testing applications that rely on corr - \ No newline at end of file + diff --git a/docs/realdevices-adb-shell.md b/docs/realdevices-adb-shell.md index f9c514d79..d3ad4c6cf 100644 --- a/docs/realdevices-adb-shell.md +++ b/docs/realdevices-adb-shell.md @@ -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. | @@ -106,4 +107,4 @@ To ensure security and compatibility, we have a list of ADB commands that can be - \ No newline at end of file +