You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,8 +46,6 @@ import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/co
44
46
})
45
47
}}
46
48
></script>
47
-
48
-
49
49
Android Debug Bridge (adb) is a versatile command-line tool that lets users communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps.
50
50
51
51
LambdaTest provides support for limited commands which can be executed in your app automation test scripts via javascript executors. The following command with the below mentioned parameters need to be used to execute adb command with LambdaTest real device cloud.
> **NOTE :** All these commands are supported on both Real and Virtual Devices except for the [**adb shell dumpsys**](/support/docs/adb-commands-support/#adb-shell-command) command, which is not supported for Virtual Device.
The command is used to generate a swipe gesture by defining the coordinates of starting and ending point of the swipe. The following is a Python sample of using the adb swipe command with LambdaTest executor.
65
65
@@ -70,7 +70,7 @@ result = driver.execute_script("lambda-adb",params)
The command is used to sends text as if typed at the keyboard in the real devices. The following is a Python sample of using the adb sendKeys command with LambdaTest executor.
76
76
@@ -81,7 +81,7 @@ result = driver.execute_script("lambda-adb",params)
81
81
82
82
### Home Button
83
83
84
-
-**Navigate to the home screen**
84
+
-**Navigate to the home screen** <RealDeviceTagvalue="Real Device" /> <VirtualDeviceTagvalue="Virtual Device" />
85
85
86
86
The command is used to navigate to the home screen of the device while running an app automation test script. The following is a Python sample of using the adb command to navigate to the home screen with LambdaTest executor.
87
87
@@ -92,7 +92,7 @@ result = driver.execute_script("lambda-adb",params)
The command is used to auto rotate the screen of the device while running an app automation test script. The following is a Python sample using the adb command to allow auto rotation with LambdaTest executor.
98
98
@@ -102,17 +102,18 @@ result = driver.execute_script("lambda-adb",params)
This command is used to obtain detailed information about installed packages on device. When you run this command, it provides a list of information for each package installed on the device. The output includes various details about each package.The following is a Python sample using the adb command:
These commands enable or disable your app notifications on the device based on the value provided for `enableNotification`. **True** is used to enable notifications, while **False** is used to disable them.The following is a Python sample using the adb command with LambdaTest executor:
118
119
@@ -128,7 +129,7 @@ result = driver.execute_script("lambda-adb",params)
This command is used to enable or disable battery optimization for your app on the device. The following is a Python sample using the adb command to disable battery optimization with LambdaTest executor:
134
135
@@ -139,7 +140,7 @@ result = driver.execute_script("lambda-adb",params)
This command serves to lock the screen rotation in alignment with the app's default behavior and user-defined settings. Below is a Python example utilizing the adb command to enforce fixed screen rotation with the LambdaTest executor:
Disabling animations can enhance test execution speed by preventing unnecessary visual effects. The following commands are used to disable different types of animations:
154
+
155
+
-`adb shell settings put global animator_duration_scale 0`: Disables property animation effects, such as object transitions and transformations.
156
+
-`adb shell settings put global transition_animation_scale 0`: Disables window transition animations, making UI transitions instant.
157
+
-`adb shell settings put global window_animation_scale 0`: Disables activity window animations, eliminating fade-in or zoom-in effects.
158
+
159
+
These commands set the respective global animation scales to 0, effectively disabling animations.
160
+
161
+
```java
162
+
Map<String, String> params =Map.of("command", "shell", "text", "settings get global animator_duration_scale");
0 commit comments