appium-uiautomator2-driver 10.4.1 → 10.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/lib/driver.d.ts +32 -35
  3. package/build/lib/driver.d.ts.map +1 -1
  4. package/build/lib/execute-method-map.d.ts +4 -0
  5. package/build/lib/execute-method-map.d.ts.map +1 -1
  6. package/build/lib/method-map.d.ts +28 -35
  7. package/build/lib/method-map.d.ts.map +1 -1
  8. package/node_modules/appium-adb/CHANGELOG.md +14 -0
  9. package/node_modules/appium-adb/build/lib/tools/keyboard-commands.d.ts.map +1 -1
  10. package/node_modules/appium-adb/build/lib/tools/keyboard-commands.js +20 -9
  11. package/node_modules/appium-adb/build/lib/tools/keyboard-commands.js.map +1 -1
  12. package/node_modules/appium-adb/lib/tools/keyboard-commands.ts +19 -9
  13. package/node_modules/appium-adb/package.json +3 -3
  14. package/node_modules/appium-android-driver/CHANGELOG.md +52 -0
  15. package/node_modules/appium-android-driver/build/lib/commands/context/exports.d.ts.map +1 -1
  16. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +6 -12
  17. package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
  18. package/node_modules/appium-android-driver/build/lib/commands/context/helpers.d.ts +11 -0
  19. package/node_modules/appium-android-driver/build/lib/commands/context/helpers.d.ts.map +1 -1
  20. package/node_modules/appium-android-driver/build/lib/commands/context/helpers.js +193 -1
  21. package/node_modules/appium-android-driver/build/lib/commands/context/helpers.js.map +1 -1
  22. package/node_modules/appium-android-driver/build/lib/commands/execute.d.ts.map +1 -1
  23. package/node_modules/appium-android-driver/build/lib/commands/execute.js +2 -1
  24. package/node_modules/appium-android-driver/build/lib/commands/execute.js.map +1 -1
  25. package/node_modules/appium-android-driver/build/lib/commands/streamscreen.d.ts +3 -0
  26. package/node_modules/appium-android-driver/build/lib/commands/streamscreen.d.ts.map +1 -1
  27. package/node_modules/appium-android-driver/build/lib/commands/streamscreen.js +3 -0
  28. package/node_modules/appium-android-driver/build/lib/commands/streamscreen.js.map +1 -1
  29. package/node_modules/appium-android-driver/build/lib/doctor/checks.d.ts.map +1 -1
  30. package/node_modules/appium-android-driver/build/lib/doctor/checks.js +3 -2
  31. package/node_modules/appium-android-driver/build/lib/doctor/checks.js.map +1 -1
  32. package/node_modules/appium-android-driver/build/lib/driver.d.ts +78 -81
  33. package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
  34. package/node_modules/appium-android-driver/build/lib/driver.js +3 -3
  35. package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
  36. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +4 -0
  37. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
  38. package/node_modules/appium-android-driver/build/lib/execute-method-map.js +5 -0
  39. package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
  40. package/node_modules/appium-android-driver/build/lib/method-map.d.ts +74 -81
  41. package/node_modules/appium-android-driver/build/lib/method-map.d.ts.map +1 -1
  42. package/node_modules/appium-android-driver/build/lib/method-map.js +35 -30
  43. package/node_modules/appium-android-driver/build/lib/method-map.js.map +1 -1
  44. package/node_modules/appium-android-driver/lib/commands/context/exports.ts +7 -11
  45. package/node_modules/appium-android-driver/lib/commands/context/helpers.ts +222 -1
  46. package/node_modules/appium-android-driver/lib/commands/execute.ts +2 -2
  47. package/node_modules/appium-android-driver/lib/commands/streamscreen.ts +3 -0
  48. package/node_modules/appium-android-driver/lib/doctor/checks.ts +3 -2
  49. package/node_modules/appium-android-driver/lib/driver.ts +3 -3
  50. package/node_modules/appium-android-driver/lib/execute-method-map.ts +6 -0
  51. package/node_modules/appium-android-driver/lib/method-map.ts +37 -30
  52. package/node_modules/appium-android-driver/package.json +6 -6
  53. package/node_modules/appium-chromedriver/CHANGELOG.md +14 -0
  54. package/node_modules/appium-chromedriver/README.md +25 -0
  55. package/node_modules/appium-chromedriver/build/lib/archive-installer.d.ts +4 -0
  56. package/node_modules/appium-chromedriver/build/lib/archive-installer.d.ts.map +1 -1
  57. package/node_modules/appium-chromedriver/build/lib/archive-installer.js +11 -3
  58. package/node_modules/appium-chromedriver/build/lib/archive-installer.js.map +1 -1
  59. package/node_modules/appium-chromedriver/build/lib/driver-installer.d.ts +64 -0
  60. package/node_modules/appium-chromedriver/build/lib/driver-installer.d.ts.map +1 -0
  61. package/node_modules/appium-chromedriver/build/lib/driver-installer.js +175 -0
  62. package/node_modules/appium-chromedriver/build/lib/driver-installer.js.map +1 -0
  63. package/node_modules/appium-chromedriver/build/lib/index.d.ts +2 -0
  64. package/node_modules/appium-chromedriver/build/lib/index.d.ts.map +1 -1
  65. package/node_modules/appium-chromedriver/build/lib/index.js +1 -0
  66. package/node_modules/appium-chromedriver/build/lib/index.js.map +1 -1
  67. package/node_modules/appium-chromedriver/config/checksums.json +8 -0
  68. package/node_modules/appium-chromedriver/config/mapping.json +1 -0
  69. package/node_modules/appium-chromedriver/lib/archive-installer.ts +12 -3
  70. package/node_modules/appium-chromedriver/lib/driver-installer.ts +237 -0
  71. package/node_modules/appium-chromedriver/lib/index.ts +2 -0
  72. package/node_modules/appium-chromedriver/package.json +2 -2
  73. package/node_modules/appium-uiautomator2-server/CHANGELOG.md +16 -0
  74. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk +0 -0
  75. package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk.idsig +0 -0
  76. package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v11.6.1.apk → appium-uiautomator2-server-v11.6.3.apk} +0 -0
  77. package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v11.6.1.apk.idsig → appium-uiautomator2-server-v11.6.3.apk.idsig} +0 -0
  78. package/node_modules/appium-uiautomator2-server/package.json +3 -3
  79. package/node_modules/bare-buffer/CMakeLists.txt +10 -20
  80. package/node_modules/bare-buffer/package.json +1 -1
  81. package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
  82. package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
  83. package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
  84. package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
  85. package/node_modules/bare-events/README.md +4 -0
  86. package/node_modules/bare-events/index.d.ts +158 -1
  87. package/node_modules/bare-events/index.js +60 -34
  88. package/node_modules/bare-events/package.json +1 -1
  89. package/node_modules/bare-events/web.d.ts +29 -0
  90. package/node_modules/bare-fs/index.js +2 -2
  91. package/node_modules/bare-fs/lib/queue.js +29 -0
  92. package/node_modules/bare-fs/package.json +2 -3
  93. package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
  94. package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
  95. package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
  96. package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
  97. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
  98. package/node_modules/brace-expansion/dist/commonjs/index.js +8 -1
  99. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  100. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
  101. package/node_modules/brace-expansion/dist/esm/index.js +8 -1
  102. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  103. package/node_modules/brace-expansion/package.json +1 -1
  104. package/node_modules/io.appium.settings/CHANGELOG.md +22 -0
  105. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  106. package/node_modules/io.appium.settings/package.json +4 -4
  107. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +10 -0
  108. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
  109. package/node_modules/lru-cache/dist/commonjs/browser/index.js +180 -91
  110. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
  111. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
  112. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
  113. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
  114. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
  115. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
  116. package/node_modules/lru-cache/dist/commonjs/index.d.ts +10 -0
  117. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
  118. package/node_modules/lru-cache/dist/commonjs/index.js +180 -91
  119. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
  120. package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  121. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
  122. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +10 -0
  123. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
  124. package/node_modules/lru-cache/dist/commonjs/node/index.js +180 -91
  125. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
  126. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
  127. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
  128. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
  129. package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
  130. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
  131. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
  132. package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
  133. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
  134. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +10 -0
  135. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -1
  136. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +180 -91
  137. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -1
  138. package/node_modules/lru-cache/dist/commonjs/react-native/index.min.js +2 -0
  139. package/node_modules/lru-cache/dist/commonjs/react-native/index.min.js.map +7 -0
  140. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -1
  141. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +1 -2
  142. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -1
  143. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +10 -0
  144. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
  145. package/node_modules/lru-cache/dist/esm/browser/index.js +180 -91
  146. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
  147. package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  148. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
  149. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
  150. package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
  151. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
  152. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
  153. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
  154. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -1
  155. package/node_modules/lru-cache/dist/esm/index.d.ts +10 -0
  156. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
  157. package/node_modules/lru-cache/dist/esm/index.js +180 -91
  158. package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
  159. package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  160. package/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
  161. package/node_modules/lru-cache/dist/esm/node/index.d.ts +10 -0
  162. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
  163. package/node_modules/lru-cache/dist/esm/node/index.js +180 -91
  164. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
  165. package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  166. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
  167. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
  168. package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
  169. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
  170. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
  171. package/node_modules/lru-cache/dist/esm/perf.js +1 -2
  172. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
  173. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +10 -0
  174. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -1
  175. package/node_modules/lru-cache/dist/esm/react-native/index.js +180 -91
  176. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -1
  177. package/node_modules/lru-cache/dist/esm/react-native/index.min.js +2 -0
  178. package/node_modules/lru-cache/dist/esm/react-native/index.min.js.map +7 -0
  179. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -1
  180. package/node_modules/lru-cache/dist/esm/react-native/perf.js +1 -2
  181. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -1
  182. package/node_modules/lru-cache/package.json +14 -8
  183. package/node_modules/teen_process/CHANGELOG.md +6 -0
  184. package/node_modules/teen_process/package.json +1 -2
  185. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [10.4.2](https://github.com/appium/appium-uiautomator2-driver/compare/v10.4.1...v10.4.2) (2026-12-02)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * bump appium-android-driver to ^16.1.9 and deprecate screen streaming docs ([#1098](https://github.com/appium/appium-uiautomator2-driver/issues/1098)) ([a5f5dc2](https://github.com/appium/appium-uiautomator2-driver/commit/a5f5dc2db9f103553c086310d4c860bff6422e15))
6
+
1
7
  ## [10.4.1](https://github.com/appium/appium-uiautomator2-driver/compare/v10.4.0...v10.4.1) (2026-11-27)
2
8
 
3
9
  ### Miscellaneous Chores
@@ -44,11 +44,34 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
44
44
  readonly command: "getLogTypes";
45
45
  };
46
46
  };
47
- readonly '/session/:sessionId/timeouts/implicit_wait': {
47
+ readonly '/session/:sessionId/orientation': {
48
+ readonly GET: {
49
+ readonly command: "getOrientation";
50
+ };
51
+ readonly POST: {
52
+ readonly command: "setOrientation";
53
+ readonly payloadParams: {
54
+ readonly required: readonly ["orientation"];
55
+ };
56
+ };
57
+ };
58
+ readonly '/session/:sessionId/rotation': {
59
+ readonly GET: {
60
+ readonly command: "getRotation";
61
+ };
48
62
  readonly POST: {
49
- readonly command: "implicitWait";
63
+ readonly command: "setRotation";
50
64
  readonly payloadParams: {
51
- readonly required: readonly ["ms"];
65
+ readonly required: readonly ["x", "y", "z"];
66
+ };
67
+ };
68
+ };
69
+ readonly '/session/:sessionId/appium/device/keyevent': {
70
+ readonly POST: {
71
+ readonly command: "keyevent";
72
+ readonly payloadParams: {
73
+ readonly required: readonly ["keycode"];
74
+ readonly optional: readonly ["metastate"];
52
75
  };
53
76
  readonly deprecated: true;
54
77
  };
@@ -87,17 +110,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
87
110
  readonly deprecated: true;
88
111
  };
89
112
  };
90
- readonly '/session/:sessionId/orientation': {
91
- readonly GET: {
92
- readonly command: "getOrientation";
93
- };
94
- readonly POST: {
95
- readonly command: "setOrientation";
96
- readonly payloadParams: {
97
- readonly required: readonly ["orientation"];
98
- };
99
- };
100
- };
101
113
  readonly '/session/:sessionId/context': {
102
114
  readonly GET: {
103
115
  readonly command: "getCurrentContext";
@@ -114,17 +126,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
114
126
  readonly command: "getContexts";
115
127
  };
116
128
  };
117
- readonly '/session/:sessionId/rotation': {
118
- readonly GET: {
119
- readonly command: "getRotation";
120
- };
121
- readonly POST: {
122
- readonly command: "setRotation";
123
- readonly payloadParams: {
124
- readonly required: readonly ["x", "y", "z"];
125
- };
126
- };
127
- };
128
129
  readonly '/session/:sessionId/keys': {
129
130
  readonly POST: {
130
131
  readonly command: "keys";
@@ -211,6 +212,7 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
211
212
  readonly payloadParams: {
212
213
  readonly required: readonly ["keycode"];
213
214
  readonly optional: readonly ["metastate", "flags"];
215
+ readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
214
216
  };
215
217
  readonly deprecated: true;
216
218
  };
@@ -221,6 +223,7 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
221
223
  readonly payloadParams: {
222
224
  readonly required: readonly ["keycode"];
223
225
  readonly optional: readonly ["metastate", "flags"];
226
+ readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
224
227
  };
225
228
  readonly deprecated: true;
226
229
  };
@@ -297,16 +300,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
297
300
  readonly deprecated: true;
298
301
  };
299
302
  };
300
- readonly '/session/:sessionId/appium/device/keyevent': {
301
- readonly POST: {
302
- readonly command: "keyevent";
303
- readonly payloadParams: {
304
- readonly required: readonly ["keycode"];
305
- readonly optional: readonly ["metastate"];
306
- };
307
- readonly deprecated: true;
308
- };
309
- };
310
303
  readonly '/session/:sessionId/appium/device/current_activity': {
311
304
  readonly GET: {
312
305
  readonly command: "getCurrentActivity";
@@ -684,12 +677,16 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
684
677
  };
685
678
  readonly 'mobile: startScreenStreaming': {
686
679
  readonly command: "mobileStartScreenStreaming";
680
+ readonly deprecated: true;
681
+ readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
687
682
  readonly params: {
688
683
  readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
689
684
  };
690
685
  };
691
686
  readonly 'mobile: stopScreenStreaming': {
692
687
  readonly command: "mobileStopScreenStreaming";
688
+ readonly deprecated: true;
689
+ readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
693
690
  };
694
691
  readonly 'mobile: getNotifications': {
695
692
  readonly command: "mobileGetNotifications";
@@ -1 +1 @@
1
- {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA6B,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAmB,KAAK,GAAG,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,aAAa,EAAQ,MAAM,uBAAuB,CAAC;AAuF3D,OAAiC,EAAC,KAAK,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAIxF,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EAEtB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAavE,OAAO,EAAiB,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,8BAA8B,CAAC;AACtC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,wBAAwB,CAAC;AAChC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kCAAkC,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AG,SAAS,CAAC;IAE/B,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,qCAAqC,EAAE,OAAO,CAAC;IAE/C,yBAAyB,EAAE,OAAO,CAAC;IAEnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAEjB,IAAI,EAAE,sBAAsB,CAAC;IAE7B,IAAI,EAAE,sBAAsB,CAAC;IAE7B,qBAAqB,EAAE,uBAAuB,CAAC;gBAE5C,IAAI,GAAE,WAA+B,EAAE,kBAAkB,UAAO;IAuC7D,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,MAAM;IAIjD,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,sBAAsB;IAIxD,aAAa,CAAC,eAAe,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC;IA+EhF,gBAAgB,IAAI,OAAO,CAAC,yBAAyB,CAAC;IA0B7C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAMvC,gBAAgB;IAKb,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAMvC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAMpC,iBAAiB,IAAI,YAAY,EAAE;IAiB7B,cAAc,CAAC,QAAQ,EAAE,oBAAoB;IAK7C,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC;IASnD,UAAU,IAAI,GAAG;YAQH,eAAe;YAoCf,wBAAwB;YA6BxB,eAAe;YAwBf,kBAAkB;YA6BlB,mBAAmB;CAYlC;AA6HD,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
@@ -238,12 +238,16 @@ export declare const executeMethodMap: {
238
238
  };
239
239
  readonly 'mobile: startScreenStreaming': {
240
240
  readonly command: "mobileStartScreenStreaming";
241
+ readonly deprecated: true;
242
+ readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
241
243
  readonly params: {
242
244
  readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
243
245
  };
244
246
  };
245
247
  readonly 'mobile: stopScreenStreaming': {
246
248
  readonly command: "mobileStopScreenStreaming";
249
+ readonly deprecated: true;
250
+ readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
247
251
  };
248
252
  readonly 'mobile: getNotifications': {
249
253
  readonly command: "mobileGetNotifications";
@@ -1 +1 @@
1
- {"version":3,"file":"execute-method-map.d.ts","sourceRoot":"","sources":["../../lib/execute-method-map.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Ma,CAAC"}
1
+ {"version":3,"file":"execute-method-map.d.ts","sourceRoot":"","sources":["../../lib/execute-method-map.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Ma,CAAC"}
@@ -21,11 +21,34 @@ export declare const newMethodMap: {
21
21
  readonly command: "getLogTypes";
22
22
  };
23
23
  };
24
- readonly '/session/:sessionId/timeouts/implicit_wait': {
24
+ readonly '/session/:sessionId/orientation': {
25
+ readonly GET: {
26
+ readonly command: "getOrientation";
27
+ };
25
28
  readonly POST: {
26
- readonly command: "implicitWait";
29
+ readonly command: "setOrientation";
27
30
  readonly payloadParams: {
28
- readonly required: readonly ["ms"];
31
+ readonly required: readonly ["orientation"];
32
+ };
33
+ };
34
+ };
35
+ readonly '/session/:sessionId/rotation': {
36
+ readonly GET: {
37
+ readonly command: "getRotation";
38
+ };
39
+ readonly POST: {
40
+ readonly command: "setRotation";
41
+ readonly payloadParams: {
42
+ readonly required: readonly ["x", "y", "z"];
43
+ };
44
+ };
45
+ };
46
+ readonly '/session/:sessionId/appium/device/keyevent': {
47
+ readonly POST: {
48
+ readonly command: "keyevent";
49
+ readonly payloadParams: {
50
+ readonly required: readonly ["keycode"];
51
+ readonly optional: readonly ["metastate"];
29
52
  };
30
53
  readonly deprecated: true;
31
54
  };
@@ -64,17 +87,6 @@ export declare const newMethodMap: {
64
87
  readonly deprecated: true;
65
88
  };
66
89
  };
67
- readonly '/session/:sessionId/orientation': {
68
- readonly GET: {
69
- readonly command: "getOrientation";
70
- };
71
- readonly POST: {
72
- readonly command: "setOrientation";
73
- readonly payloadParams: {
74
- readonly required: readonly ["orientation"];
75
- };
76
- };
77
- };
78
90
  readonly '/session/:sessionId/context': {
79
91
  readonly GET: {
80
92
  readonly command: "getCurrentContext";
@@ -91,17 +103,6 @@ export declare const newMethodMap: {
91
103
  readonly command: "getContexts";
92
104
  };
93
105
  };
94
- readonly '/session/:sessionId/rotation': {
95
- readonly GET: {
96
- readonly command: "getRotation";
97
- };
98
- readonly POST: {
99
- readonly command: "setRotation";
100
- readonly payloadParams: {
101
- readonly required: readonly ["x", "y", "z"];
102
- };
103
- };
104
- };
105
106
  readonly '/session/:sessionId/keys': {
106
107
  readonly POST: {
107
108
  readonly command: "keys";
@@ -188,6 +189,7 @@ export declare const newMethodMap: {
188
189
  readonly payloadParams: {
189
190
  readonly required: readonly ["keycode"];
190
191
  readonly optional: readonly ["metastate", "flags"];
192
+ readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
191
193
  };
192
194
  readonly deprecated: true;
193
195
  };
@@ -198,6 +200,7 @@ export declare const newMethodMap: {
198
200
  readonly payloadParams: {
199
201
  readonly required: readonly ["keycode"];
200
202
  readonly optional: readonly ["metastate", "flags"];
203
+ readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
201
204
  };
202
205
  readonly deprecated: true;
203
206
  };
@@ -274,16 +277,6 @@ export declare const newMethodMap: {
274
277
  readonly deprecated: true;
275
278
  };
276
279
  };
277
- readonly '/session/:sessionId/appium/device/keyevent': {
278
- readonly POST: {
279
- readonly command: "keyevent";
280
- readonly payloadParams: {
281
- readonly required: readonly ["keycode"];
282
- readonly optional: readonly ["metastate"];
283
- };
284
- readonly deprecated: true;
285
- };
286
- };
287
280
  readonly '/session/:sessionId/appium/device/current_activity': {
288
281
  readonly GET: {
289
282
  readonly command: "getCurrentActivity";
@@ -1 +1 @@
1
- {"version":3,"file":"method-map.d.ts","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBf,CAAC"}
1
+ {"version":3,"file":"method-map.d.ts","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBf,CAAC"}
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [17.0.6](https://github.com/appium/appium-android/compare/appium-adb@17.0.5...appium-adb@17.0.6) (2026-11-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **adb:** send BACK before ESC in hideKeyboard ([#188](https://github.com/appium/appium-android/issues/188)) ([692d8d3](https://github.com/appium/appium-android/commit/692d8d3d2bbbf8b1da6619151183f3dd7dbed50f))
11
+
12
+
13
+ ## [17.0.5](https://github.com/appium/appium-android/compare/appium-adb@17.0.4...appium-adb@17.0.5) (2026-11-27)
14
+
15
+ ### Miscellaneous Chores
16
+
17
+ * bump @appium/types to v3 ([#186](https://github.com/appium/appium-android/issues/186)) ([13b4f2b](https://github.com/appium/appium-android/commit/13b4f2bb5df0efae68a1b535b24256642b98bc33))
18
+
19
+
6
20
  ## [17.0.4](https://github.com/appium/appium-android/compare/appium-adb@17.0.3...appium-adb@17.0.4) (2026-11-17)
7
21
 
8
22
  ### Miscellaneous Chores
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard-commands.d.ts","sourceRoot":"","sources":["../../../lib/tools/keyboard-commands.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,WAAW,CAAC;AAEnC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAK9C;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,IA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AAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWlE;AAED;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAa/E;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CA6BjG"}
@@ -1,7 +1,8 @@
1
- import { sleep, waitForCondition } from 'asyncbox';
1
+ import { ConditionUnmetError, sleep, waitForCondition } from 'asyncbox';
2
2
  import { log } from '../logger.js';
3
3
  const KEYCODE_ESC = 111;
4
4
  const KEYCODE_BACK = 4;
5
+ const KEYCODES = [KEYCODE_BACK, KEYCODE_ESC];
5
6
  /**
6
7
  * Hides software keyboard if it is visible.
7
8
  * Noop if the keyboard is already hidden.
@@ -12,25 +13,35 @@ const KEYCODE_BACK = 4;
12
13
  * @throws {Error} If the keyboard cannot be hidden.
13
14
  */
14
15
  export async function hideKeyboard(timeoutMs = 1000) {
15
- const keyboardState = await this.isSoftKeyboardPresent();
16
- let { isKeyboardShown } = keyboardState;
17
- const { canCloseKeyboard } = keyboardState;
16
+ let { isKeyboardShown, canCloseKeyboard } = await this.isSoftKeyboardPresent();
18
17
  if (!isKeyboardShown) {
19
18
  log.info('Keyboard has no UI; no closing necessary');
20
19
  return false;
21
20
  }
22
- // Try ESC then BACK if the first one fails
23
- for (const keyCode of [KEYCODE_ESC, KEYCODE_BACK]) {
21
+ // BACK is consumed by the visible IME; ESC reaches the app (Chrome 138+ navigates back),
22
+ // so it is only sent after BACK was sent and the keyboard is still shown.
23
+ let nextKeyIdx = 0;
24
+ for (let attempt = 0; attempt <= KEYCODES.length; attempt++) {
24
25
  if (canCloseKeyboard) {
25
- await this.keyevent(keyCode);
26
+ await this.keyevent(KEYCODES[nextKeyIdx++]);
27
+ }
28
+ else {
29
+ log.debug(`The keyboard input view is not shown; not sending keycode ${KEYCODES[nextKeyIdx]}`);
26
30
  }
27
31
  try {
28
32
  return await waitForCondition(async () => {
29
- ({ isKeyboardShown } = await this.isSoftKeyboardPresent());
33
+ ({ isKeyboardShown, canCloseKeyboard } = await this.isSoftKeyboardPresent());
30
34
  return !isKeyboardShown;
31
35
  }, { waitMs: timeoutMs, intervalMs: 500 });
32
36
  }
33
- catch { }
37
+ catch (e) {
38
+ if (!ConditionUnmetError.is(e)) {
39
+ throw e;
40
+ }
41
+ }
42
+ if (nextKeyIdx >= KEYCODES.length) {
43
+ break;
44
+ }
34
45
  }
35
46
  throw new Error(`The software keyboard cannot be hidden`);
36
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"keyboard-commands.js","sourceRoot":"","sources":["../../../lib/tools/keyboard-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAC,GAAG,EAAC,MAAM,cAAc,CAAC;AAGjC,MAAM,WAAW,GAAG,GAAG,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAY,YAAoB,IAAI;IACpE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACzD,IAAI,EAAC,eAAe,EAAC,GAAG,aAAa,CAAC;IACtC,MAAM,EAAC,gBAAgB,EAAC,GAAG,aAAa,CAAC;IACzC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,GAAG,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QACrD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,2CAA2C;IAC3C,KAAK,MAAM,OAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE,CAAC;QAClD,IAAI,gBAAg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,WAAW,IAAI,WAAW,KAAK,GAAG,EAAE,CAAC;YACvC,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAC/B,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;AACH,CAAC;AAED,2BAA2B;AAE3B;;;GAGG;AACH,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACtC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YACvC,yDAAyD;YACzD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,aAAa"}
@@ -1,4 +1,4 @@
1
- import {sleep, waitForCondition} from 'asyncbox';
1
+ import {ConditionUnmetError, sleep, waitForCondition} from 'asyncbox';
2
2
 
3
3
  import type {ADB} from '../adb.js';
4
4
  import {log} from '../logger.js';
@@ -6,6 +6,7 @@ import type {KeyboardState} from './types.js';
6
6
 
7
7
  const KEYCODE_ESC = 111;
8
8
  const KEYCODE_BACK = 4;
9
+ const KEYCODES = [KEYCODE_BACK, KEYCODE_ESC];
9
10
 
10
11
  /**
11
12
  * Hides software keyboard if it is visible.
@@ -17,27 +18,36 @@ const KEYCODE_BACK = 4;
17
18
  * @throws {Error} If the keyboard cannot be hidden.
18
19
  */
19
20
  export async function hideKeyboard(this: ADB, timeoutMs: number = 1000): Promise<boolean> {
20
- const keyboardState = await this.isSoftKeyboardPresent();
21
- let {isKeyboardShown} = keyboardState;
22
- const {canCloseKeyboard} = keyboardState;
21
+ let {isKeyboardShown, canCloseKeyboard} = await this.isSoftKeyboardPresent();
23
22
  if (!isKeyboardShown) {
24
23
  log.info('Keyboard has no UI; no closing necessary');
25
24
  return false;
26
25
  }
27
- // Try ESC then BACK if the first one fails
28
- for (const keyCode of [KEYCODE_ESC, KEYCODE_BACK]) {
26
+ // BACK is consumed by the visible IME; ESC reaches the app (Chrome 138+ navigates back),
27
+ // so it is only sent after BACK was sent and the keyboard is still shown.
28
+ let nextKeyIdx = 0;
29
+ for (let attempt = 0; attempt <= KEYCODES.length; attempt++) {
29
30
  if (canCloseKeyboard) {
30
- await this.keyevent(keyCode);
31
+ await this.keyevent(KEYCODES[nextKeyIdx++]);
32
+ } else {
33
+ log.debug(`The keyboard input view is not shown; not sending keycode ${KEYCODES[nextKeyIdx]}`);
31
34
  }
32
35
  try {
33
36
  return await waitForCondition(
34
37
  async () => {
35
- ({isKeyboardShown} = await this.isSoftKeyboardPresent());
38
+ ({isKeyboardShown, canCloseKeyboard} = await this.isSoftKeyboardPresent());
36
39
  return !isKeyboardShown;
37
40
  },
38
41
  {waitMs: timeoutMs, intervalMs: 500},
39
42
  );
40
- } catch {}
43
+ } catch (e) {
44
+ if (!ConditionUnmetError.is(e)) {
45
+ throw e;
46
+ }
47
+ }
48
+ if (nextKeyIdx >= KEYCODES.length) {
49
+ break;
50
+ }
41
51
  }
42
52
  throw new Error(`The software keyboard cannot be hidden`);
43
53
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-adb",
3
- "version": "17.0.4",
3
+ "version": "17.0.6",
4
4
  "description": "Android Debug Bridge interface",
5
5
  "homepage": "https://appium.io",
6
6
  "bugs": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@appium/tsconfig": "^2.0.0-beta.2",
56
- "@appium/types": "^2.0.0-beta.6",
56
+ "@appium/types": "^3.0.0",
57
57
  "@types/ini": "^4.1.0",
58
58
  "@types/node": "^26.6.5",
59
59
  "@types/semver": "^7.5.0",
@@ -64,5 +64,5 @@
64
64
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
65
65
  "npm": ">=10"
66
66
  },
67
- "gitHead": "d3c3bdc927cdf82b47f8ae8ff2516ed525a74b73"
67
+ "gitHead": "534d3c886d3a8bb0215ce2290652482b9a68f764"
68
68
  }
@@ -3,6 +3,58 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [16.1.11](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.10...appium-android-driver@16.1.11) (2026-12-02)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **driver-lib:** automatically restore Chromedriver after losing the DevTools connection ([#187](https://github.com/appium/appium-android/issues/187)) ([75d6962](https://github.com/appium/appium-android/commit/75d696259f603563a50a85316892ba7c17432427))
11
+
12
+
13
+ ## [16.1.10](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.9...appium-android-driver@16.1.10) (2026-12-02)
14
+
15
+ **Note:** Version bump only for package appium-android-driver
16
+
17
+
18
+
19
+
20
+
21
+ ## [16.1.9](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.8...appium-android-driver@16.1.9) (2026-12-01)
22
+
23
+ ### Miscellaneous Chores
24
+
25
+ * **driver-lib:** deprecate GStreamer-based screen streaming extensions ([#193](https://github.com/appium/appium-android/issues/193)) ([45da71d](https://github.com/appium/appium-android/commit/45da71dc236114559593e3841ec33e27839aa9cb))
26
+
27
+
28
+ ## [16.1.8](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.7...appium-android-driver@16.1.8) (2026-11-30)
29
+
30
+ **Note:** Version bump only for package appium-android-driver
31
+
32
+
33
+
34
+
35
+
36
+ ## [16.1.7](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.6...appium-android-driver@16.1.7) (2026-11-29)
37
+
38
+ ### Bug Fixes
39
+
40
+ * **adb:** send BACK before ESC in hideKeyboard ([#188](https://github.com/appium/appium-android/issues/188)) ([692d8d3](https://github.com/appium/appium-android/commit/692d8d3d2bbbf8b1da6619151183f3dd7dbed50f))
41
+
42
+
43
+ ## [16.1.6](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.5...appium-android-driver@16.1.6) (2026-11-27)
44
+
45
+ **Note:** Version bump only for package appium-android-driver
46
+
47
+
48
+
49
+
50
+
51
+ ## [16.1.5](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.4...appium-android-driver@16.1.5) (2026-11-27)
52
+
53
+ ### Miscellaneous Chores
54
+
55
+ * bump @appium/types to v3 ([#186](https://github.com/appium/appium-android/issues/186)) ([13b4f2b](https://github.com/appium/appium-android/commit/13b4f2bb5df0efae68a1b535b24256642b98bc33))
56
+
57
+
6
58
  ## [16.1.4](https://github.com/appium/appium-android/compare/appium-android-driver@16.1.3...appium-android-driver@16.1.4) (2026-11-26)
7
59
 
8
60
  **Note:** Version bump only for package appium-android-driver
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/context/exports.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAIhD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAInD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAejD,OAAO,QAAQ,iBAAiB,CAAC;IAC/B,UAAU,aAAa,CAAC,CAAC,SAAS,wBAAwB;QACxD,WAAW,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;QACrF,iBAAiB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;QACvG,kBAAkB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG,UAAU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I,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAOhF;AAED;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAc5F;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA0C3E"}
@@ -4,7 +4,7 @@ import { errors } from 'appium/driver.js';
4
4
  import { APP_STATE } from '../app-management.js';
5
5
  import { BIDI_EVENT_NAME } from '../bidi/constants.js';
6
6
  import { makeContextUpdatedEvent, makeObsoleteContextUpdatedEvent } from '../bidi/models.js';
7
- import { CHROMIUM_WIN, KNOWN_CHROME_PACKAGE_NAMES, NATIVE_WIN, WEBVIEW_BASE, WEBVIEW_WIN, dismissChromeWelcome, getWebViewsMapping, parseWebviewNames, setupExistingChromedriver, setupNewChromedriver, shouldDismissChromeWelcome, } from './helpers.js';
7
+ import { CHROMIUM_WIN, KNOWN_CHROME_PACKAGE_NAMES, NATIVE_WIN, WEBVIEW_BASE, WEBVIEW_WIN, bindChromedriverProxy, dismissChromeWelcome, getWebViewsMapping, parseWebviewNames, proxyChromedriverCommand, setupExistingChromedriver, setupNewChromedriver, shouldDismissChromeWelcome, } from './helpers.js';
8
8
  // https://github.com/appium/appium/issues/20710
9
9
  const DEFAULT_NATIVE_WINDOW_HANDLE = '1';
10
10
  /**
@@ -154,8 +154,7 @@ export async function getWindowHandle() {
154
154
  if (!this.isWebContext()) {
155
155
  return DEFAULT_NATIVE_WINDOW_HANDLE;
156
156
  }
157
- const chromedriver = this.chromedriver;
158
- return (await chromedriver.jwproxy.command('/window/handle', 'GET'));
157
+ return (await proxyChromedriverCommand.bind(this)('/window/handle', 'GET'));
159
158
  }
160
159
  /**
161
160
  * Gets all available window handles. Returns a default handle for native contexts.
@@ -166,8 +165,7 @@ export async function getWindowHandles() {
166
165
  if (!this.isWebContext()) {
167
166
  return [DEFAULT_NATIVE_WINDOW_HANDLE];
168
167
  }
169
- const chromedriver = this.chromedriver;
170
- return (await chromedriver.jwproxy.command('/window/handles', 'GET'));
168
+ return (await proxyChromedriverCommand.bind(this)('/window/handles', 'GET'));
171
169
  }
172
170
  /**
173
171
  * Sets the current window to the specified handle. Does nothing for native contexts.
@@ -178,8 +176,7 @@ export async function setWindow(handle) {
178
176
  if (!this.isWebContext()) {
179
177
  return;
180
178
  }
181
- const chromedriver = this.chromedriver;
182
- await chromedriver.jwproxy.command('/window', 'POST', { handle });
179
+ await proxyChromedriverCommand.bind(this)('/window', 'POST', { handle });
183
180
  }
184
181
  /**
185
182
  * Turns on proxying to an existing Chromedriver session or creates a new one.
@@ -260,9 +257,7 @@ export async function startChromedriverProxy(context, webviewsMapping) {
260
257
  this.sessionChromedrivers[context] = cd;
261
258
  }
262
259
  // hook up the local variables so we can proxy this biz
263
- this.chromedriver = cd;
264
- this.proxyReqRes = this.chromedriver.proxyReq.bind(this.chromedriver);
265
- this.proxyCommand = this.chromedriver.jwproxy.command.bind(this.chromedriver.jwproxy);
260
+ bindChromedriverProxy.bind(this)(cd);
266
261
  this.jwpProxyActive = true;
267
262
  }
268
263
  /**
@@ -389,8 +384,7 @@ export async function startChromeSession() {
389
384
  // of session chromedrivers so we can switch back and forth
390
385
  this.curContext = CHROMIUM_WIN;
391
386
  this.sessionChromedrivers[CHROMIUM_WIN] = chromedriver;
392
- this.proxyReqRes = chromedriver.proxyReq.bind(chromedriver);
393
- this.proxyCommand = chromedriver.jwproxy.command.bind(chromedriver.jwproxy);
387
+ bindChromedriverProxy.bind(this)(chromedriver);
394
388
  this.jwpProxyActive = true;
395
389
  if (shouldDismissChromeWelcome.bind(this)()) {
396
390
  // dismiss Chrome welcome dialog