appium-espresso-driver 9.3.6 → 9.3.8
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.
- package/CHANGELOG.md +12 -0
- package/build/lib/commands/context.d.ts +1 -1
- package/build/lib/commands/context.js +1 -1
- package/build/lib/commands/element.d.ts +10 -10
- package/build/lib/commands/element.js +10 -10
- package/build/lib/commands/idling-resources.d.ts +1 -1
- package/build/lib/commands/idling-resources.js +1 -1
- package/build/lib/commands/misc.d.ts +5 -4
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +3 -3
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/services.d.ts +2 -2
- package/build/lib/commands/services.js +2 -2
- package/build/lib/driver.js +1 -1
- package/build/lib/driver.js.map +1 -1
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/gradle/libs.versions.toml +1 -1
- package/espresso-server/gradle.properties +1 -1
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/lib/commands/context.ts +1 -1
- package/lib/commands/element.ts +10 -10
- package/lib/commands/idling-resources.ts +1 -1
- package/lib/commands/misc.ts +5 -4
- package/lib/commands/services.ts +2 -2
- package/lib/driver.ts +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js +6 -3
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/bidi.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/commands/timeout.js.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js +40 -3
- package/node_modules/@appium/base-driver/build/lib/basedriver/helpers.js.map +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/commands/bidi.ts +6 -3
- package/node_modules/@appium/base-driver/lib/basedriver/commands/timeout.ts +1 -1
- package/node_modules/@appium/base-driver/lib/basedriver/helpers.ts +41 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js +13 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js +13 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/base-driver/node_modules/asyncbox/lib/asyncbox.ts +20 -3
- package/node_modules/@appium/base-driver/node_modules/asyncbox/package.json +1 -1
- package/node_modules/@appium/base-driver/package.json +9 -9
- package/node_modules/@appium/base-driver/tsconfig.json +1 -1
- package/node_modules/@appium/logger/CHANGELOG.md +8 -0
- package/node_modules/@appium/logger/package.json +3 -3
- package/node_modules/@appium/support/build/lib/fs.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/fs.js +7 -0
- package/node_modules/@appium/support/build/lib/fs.js.map +1 -1
- package/node_modules/@appium/support/build/lib/index.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/net.js +6 -2
- package/node_modules/@appium/support/build/lib/net.js.map +1 -1
- package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/util.js +10 -4
- package/node_modules/@appium/support/build/lib/util.js.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
- package/node_modules/@appium/support/build/lib/zip.js +2 -7
- package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
- package/node_modules/@appium/support/lib/fs.ts +8 -1
- package/node_modules/@appium/support/lib/net.ts +7 -2
- package/node_modules/@appium/support/lib/util.ts +9 -3
- package/node_modules/@appium/support/lib/zip.ts +3 -9
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js +13 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js +13 -3
- package/node_modules/@appium/support/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +1 -1
- package/node_modules/@appium/support/node_modules/asyncbox/lib/asyncbox.ts +20 -3
- package/node_modules/@appium/support/node_modules/asyncbox/package.json +1 -1
- package/node_modules/@appium/support/package.json +9 -9
- package/node_modules/@appium/types/package.json +4 -4
- package/node_modules/@img/sharp-libvips-linux-x64/README.md +1 -1
- package/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +2 -2
- package/node_modules/@img/sharp-libvips-linux-x64/lib/{libvips-cpp.so.8.18.6 → libvips-cpp.so.8.18.7} +0 -0
- package/node_modules/@img/sharp-libvips-linux-x64/package.json +2 -2
- package/node_modules/@img/sharp-libvips-linux-x64/versions.json +11 -11
- package/node_modules/@img/sharp-linux-x64/index.cjs +1 -1
- package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.5.node +0 -0
- package/node_modules/@img/sharp-linux-x64/package.json +2 -2
- package/node_modules/appium-adb/CHANGELOG.md +37 -0
- package/node_modules/appium-adb/README.md +1 -1
- package/node_modules/appium-adb/build/lib/tools/aab-utils.js +34 -34
- package/node_modules/appium-adb/build/lib/tools/aab-utils.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/android-manifest.js +1 -1
- package/node_modules/appium-adb/build/lib/tools/android-manifest.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apk-signing.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apk-signing.js +21 -9
- package/node_modules/appium-adb/build/lib/tools/apk-signing.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apks-utils.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/apks-utils.js +6 -5
- package/node_modules/appium-adb/build/lib/tools/apks-utils.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/app-commands.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/app-commands.js +63 -62
- package/node_modules/appium-adb/build/lib/tools/app-commands.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/device-settings.js +1 -1
- package/node_modules/appium-adb/build/lib/tools/device-settings.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.js +3 -9
- package/node_modules/appium-adb/build/lib/tools/lockmgmt.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/system-calls.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/system-calls.js +7 -6
- package/node_modules/appium-adb/build/lib/tools/system-calls.js.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/types.d.ts +4 -0
- package/node_modules/appium-adb/build/lib/tools/types.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/index.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/index.js +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/index.js.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts +19 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.d.ts.map +1 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.js +57 -0
- package/node_modules/appium-adb/build/lib/utils/helpers/redact.js.map +1 -0
- package/node_modules/appium-adb/build/lib/utils/index.d.ts +2 -0
- package/node_modules/appium-adb/build/lib/utils/index.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/utils/index.js +2 -0
- package/node_modules/appium-adb/build/lib/utils/index.js.map +1 -1
- package/node_modules/appium-adb/lib/tools/aab-utils.ts +35 -35
- package/node_modules/appium-adb/lib/tools/android-manifest.ts +1 -1
- package/node_modules/appium-adb/lib/tools/apk-signing.ts +26 -9
- package/node_modules/appium-adb/lib/tools/apks-utils.ts +13 -5
- package/node_modules/appium-adb/lib/tools/app-commands.ts +59 -68
- package/node_modules/appium-adb/lib/tools/device-settings.ts +1 -1
- package/node_modules/appium-adb/lib/tools/lockmgmt.ts +3 -8
- package/node_modules/appium-adb/lib/tools/system-calls.ts +15 -6
- package/node_modules/appium-adb/lib/tools/types.ts +4 -0
- package/node_modules/appium-adb/lib/utils/helpers/index.ts +1 -0
- package/node_modules/appium-adb/lib/utils/helpers/redact.ts +59 -0
- package/node_modules/appium-adb/lib/utils/index.ts +2 -0
- package/node_modules/appium-adb/package.json +10 -13
- package/node_modules/appium-android-driver/CHANGELOG.md +31 -0
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +10 -6
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.js +55 -35
- package/node_modules/appium-android-driver/build/lib/commands/file-actions.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/log.js +2 -2
- package/node_modules/appium-android-driver/build/lib/commands/log.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/context/exports.ts +10 -6
- package/node_modules/appium-android-driver/lib/commands/file-actions.ts +58 -39
- package/node_modules/appium-android-driver/lib/commands/log.ts +2 -2
- package/node_modules/appium-android-driver/package.json +1 -1
- package/node_modules/appium-chromedriver/CHANGELOG.md +68 -0
- package/node_modules/appium-chromedriver/README.md +2 -4
- package/node_modules/appium-chromedriver/build/lib/commands/version.d.ts.map +1 -1
- package/node_modules/appium-chromedriver/build/lib/commands/version.js +9 -0
- package/node_modules/appium-chromedriver/build/lib/commands/version.js.map +1 -1
- package/node_modules/appium-chromedriver/config/mapping.json +7 -1
- package/node_modules/appium-chromedriver/lib/commands/version.ts +10 -0
- package/node_modules/appium-chromedriver/package.json +10 -13
- package/node_modules/asyncbox/README.md +43 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
- package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
- package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
- package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
- package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
- package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
- package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
- package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
- package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
- package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
- package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
- package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
- package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
- package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
- package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
- package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
- package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
- package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
- package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
- package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
- package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
- package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
- package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
- package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
- package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
- package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
- package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
- package/node_modules/asyncbox/lib/errors.ts +15 -0
- package/node_modules/asyncbox/lib/index.ts +21 -0
- package/node_modules/asyncbox/lib/limit-function.ts +18 -0
- package/node_modules/asyncbox/lib/lock.ts +360 -0
- package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
- package/node_modules/asyncbox/lib/retry.ts +61 -0
- package/node_modules/asyncbox/lib/sleep.ts +79 -0
- package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
- package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
- package/node_modules/asyncbox/package.json +8 -8
- package/node_modules/bare-fs/binding.c +52 -23
- package/node_modules/bare-fs/index.d.ts +12 -10
- package/node_modules/bare-fs/index.js +43 -10
- package/node_modules/bare-fs/package.json +2 -1
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-url/README.md +4 -0
- package/node_modules/bare-url/index.d.ts +3 -0
- package/node_modules/bare-url/index.js +42 -18
- package/node_modules/bare-url/lib/errors.js +4 -0
- package/node_modules/bare-url/package.json +1 -1
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/bplist-creator/README.md +26 -6
- package/node_modules/bplist-creator/dist/index.cjs +508 -0
- package/node_modules/bplist-creator/dist/index.cjs.map +7 -0
- package/node_modules/bplist-creator/dist/index.d.cts +12 -0
- package/node_modules/bplist-creator/dist/index.d.ts +12 -0
- package/node_modules/bplist-creator/dist/index.mjs +472 -0
- package/node_modules/bplist-creator/dist/index.mjs.map +7 -0
- package/node_modules/bplist-creator/package.json +43 -9
- package/node_modules/bplist-parser/README.md +37 -3
- package/node_modules/bplist-parser/dist/index.cjs +385 -0
- package/node_modules/bplist-parser/dist/index.cjs.map +7 -0
- package/node_modules/bplist-parser/dist/index.d.cts +13 -0
- package/node_modules/bplist-parser/dist/index.d.ts +13 -0
- package/node_modules/bplist-parser/{bplistParser.js → dist/index.mjs} +141 -171
- package/node_modules/bplist-parser/dist/index.mjs.map +7 -0
- package/node_modules/bplist-parser/package.json +39 -12
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/io.appium.settings/CHANGELOG.md +72 -0
- package/node_modules/io.appium.settings/README.md +126 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/build/lib/client.d.ts +4 -0
- package/node_modules/io.appium.settings/build/lib/client.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/client.js +4 -0
- package/node_modules/io.appium.settings/build/lib/client.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/clipboard.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts +55 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js +156 -0
- package/node_modules/io.appium.settings/build/lib/commands/jpeg-stream.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/media-projection.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media-projection.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/media.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/network.js +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/network.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/types.d.ts +65 -0
- package/node_modules/io.appium.settings/build/lib/commands/types.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +56 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +166 -0
- package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/constants.d.ts +7 -0
- package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
- package/node_modules/io.appium.settings/build/lib/constants.js +7 -0
- package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/index.js +1 -1
- package/node_modules/io.appium.settings/build/lib/index.js.map +1 -1
- package/node_modules/io.appium.settings/build/lib/{utils.d.ts → utils/apk-path.d.ts} +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/apk-path.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/{utils.js → utils/apk-path.js} +1 -1
- package/node_modules/io.appium.settings/build/lib/utils/apk-path.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.d.ts +5 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.js +4 -0
- package/node_modules/io.appium.settings/build/lib/utils/index.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +47 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +67 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +142 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +416 -0
- package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -0
- package/node_modules/io.appium.settings/lib/client.ts +5 -0
- package/node_modules/io.appium.settings/lib/commands/clipboard.ts +1 -0
- package/node_modules/io.appium.settings/lib/commands/jpeg-stream.ts +175 -0
- package/node_modules/io.appium.settings/lib/commands/media-projection.ts +1 -5
- package/node_modules/io.appium.settings/lib/commands/media.ts +1 -1
- package/node_modules/io.appium.settings/lib/commands/network.ts +1 -1
- package/node_modules/io.appium.settings/lib/commands/types.ts +70 -0
- package/node_modules/io.appium.settings/lib/commands/video-stream.ts +185 -0
- package/node_modules/io.appium.settings/lib/constants.ts +10 -0
- package/node_modules/io.appium.settings/lib/index.ts +1 -1
- package/node_modules/io.appium.settings/lib/utils/index.ts +4 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +93 -0
- package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +450 -0
- package/node_modules/io.appium.settings/package.json +17 -20
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +27 -1
- package/node_modules/morgan/README.md +49 -10
- package/node_modules/morgan/index.js +24 -6
- package/node_modules/morgan/package.json +6 -6
- package/node_modules/on-finished/index.js +14 -2
- package/node_modules/on-finished/package.json +11 -7
- package/node_modules/qs/.github/THREAT_MODEL.md +4 -2
- package/node_modules/qs/CHANGELOG.md +38 -14
- package/node_modules/qs/README.md +31 -3
- package/node_modules/qs/dist/qs.js +20 -20
- package/node_modules/qs/lib/parse.js +94 -4
- package/node_modules/qs/lib/stringify.js +4 -4
- package/node_modules/qs/lib/utils.js +130 -6
- package/node_modules/qs/package.json +4 -4
- package/node_modules/qs/test/parse.js +174 -0
- package/node_modules/qs/test/stringify.js +263 -33
- package/node_modules/qs/test/utils.js +184 -0
- package/node_modules/readable-stream/lib/internal/shims/process.js +19 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/duplexify.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/from.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/legacy.js +6 -1
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/readable.js +1 -1
- package/node_modules/readable-stream/lib/internal/streams/writable.js +1 -1
- package/node_modules/readable-stream/package.json +3 -2
- package/node_modules/sharp/dist/index.d.cts +2 -2
- package/node_modules/sharp/dist/index.d.mts +3 -3
- package/node_modules/sharp/dist/is.cjs +8 -2
- package/node_modules/sharp/dist/is.mjs +8 -2
- package/node_modules/sharp/dist/operation.cjs +2 -2
- package/node_modules/sharp/dist/operation.mjs +2 -2
- package/node_modules/sharp/dist/output.cjs +1 -0
- package/node_modules/sharp/dist/output.mjs +1 -0
- package/node_modules/sharp/dist/resize.cjs +14 -14
- package/node_modules/sharp/dist/resize.mjs +14 -14
- package/node_modules/sharp/dist/sharp.cjs +3 -3
- package/node_modules/sharp/dist/sharp.mjs +3 -3
- package/node_modules/sharp/lib/index.d.ts +2 -2
- package/node_modules/sharp/package.json +35 -35
- package/node_modules/sharp/src/binding.gyp +1 -1
- package/node_modules/sharp/src/common.cc +4 -4
- package/node_modules/sharp/src/common.h +2 -2
- package/node_modules/sharp/src/pipeline.cc +31 -6
- package/node_modules/sharp/src/utilities.cc +1 -1
- package/node_modules/stream-buffers/.codeclimate.yml +12 -0
- package/node_modules/stream-buffers/.eslintignore +1 -0
- package/node_modules/stream-buffers/.eslintrc +25 -0
- package/node_modules/stream-buffers/.github/workflows/codeql-analysis.yml +71 -0
- package/node_modules/stream-buffers/.github/workflows/node.js.yml +31 -0
- package/node_modules/stream-buffers/.mailmap +1 -0
- package/node_modules/stream-buffers/.nvmrc +1 -0
- package/node_modules/stream-buffers/README.md +65 -65
- package/node_modules/stream-buffers/lib/constants.js +8 -6
- package/node_modules/stream-buffers/lib/readable_streambuffer.js +114 -136
- package/node_modules/stream-buffers/lib/streambuffer.js +5 -3
- package/node_modules/stream-buffers/lib/writable_streambuffer.js +72 -97
- package/node_modules/stream-buffers/package.json +7 -5
- package/node_modules/tar-stream/package.json +7 -7
- package/node_modules/type-fest/index.d.ts +7 -7
- package/node_modules/type-fest/package.json +2 -1
- package/node_modules/type-fest/readme.md +7 -16
- package/node_modules/type-fest/source/all-extend.d.ts +9 -7
- package/node_modules/type-fest/source/array-reverse.d.ts +13 -12
- package/node_modules/type-fest/source/array-tail.d.ts +3 -3
- package/node_modules/type-fest/source/delimiter-case.d.ts +1 -1
- package/node_modules/type-fest/source/get.d.ts +1 -1
- package/node_modules/type-fest/source/int-closed-range.d.ts +4 -1
- package/node_modules/type-fest/source/int-range.d.ts +56 -9
- package/node_modules/type-fest/source/internal/array.d.ts +14 -13
- package/node_modules/type-fest/source/internal/numeric.d.ts +0 -38
- package/node_modules/type-fest/source/internal/object.d.ts +30 -1
- package/node_modules/type-fest/source/is-boolean-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-literal.d.ts +43 -269
- package/node_modules/type-fest/source/is-numeric-literal.d.ts +50 -0
- package/node_modules/type-fest/source/is-string-literal.d.ts +72 -0
- package/node_modules/type-fest/source/is-symbol-literal.d.ts +39 -0
- package/node_modules/type-fest/source/is-tuple.d.ts +3 -3
- package/node_modules/type-fest/source/jsonify.d.ts +1 -5
- package/node_modules/type-fest/source/merge-deep.d.ts +3 -3
- package/node_modules/type-fest/source/remove-prefix.d.ts +1 -1
- package/node_modules/type-fest/source/remove-suffix.d.ts +1 -1
- package/node_modules/type-fest/source/rename-keys.d.ts +163 -0
- package/node_modules/type-fest/source/set-required.d.ts +10 -9
- package/node_modules/type-fest/source/shared-union-fields-deep.d.ts +6 -4
- package/node_modules/type-fest/source/some-extend.d.ts +9 -7
- package/node_modules/type-fest/source/split-on-rest-element.d.ts +14 -13
- package/node_modules/type-fest/source/split.d.ts +22 -11
- package/node_modules/type-fest/source/string-repeat.d.ts +1 -1
- package/node_modules/type-fest/source/string-to-array.d.ts +1 -1
- package/node_modules/type-fest/source/tsconfig-json.d.ts +1 -1
- package/node_modules/type-fest/source/typed-array.d.ts +6 -0
- package/node_modules/type-fest/source/union-max.d.ts +56 -0
- package/node_modules/type-fest/source/writable.d.ts +2 -2
- package/node_modules/xpath/LICENSE +22 -22
- package/node_modules/xpath/package.json +43 -43
- package/node_modules/xpath/xpath.d.ts +51 -51
- package/node_modules/xpath/xpath.js +17 -2
- package/package.json +5 -5
- package/node_modules/@appium/base-driver/node_modules/axios/CHANGELOG.md +0 -1872
- package/node_modules/@appium/base-driver/node_modules/axios/LICENSE +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/@appium/base-driver/node_modules/axios/README.md +0 -2623
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.js +0 -5509
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/@appium/base-driver/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/dist/browser/axios.cjs +0 -5469
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.js +0 -5490
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/dist/node/axios.cjs +0 -6356
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.cts +0 -762
- package/node_modules/@appium/base-driver/node_modules/axios/index.d.ts +0 -783
- package/node_modules/@appium/base-driver/node_modules/axios/index.js +0 -45
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/adapters.js +0 -132
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/fetch.js +0 -643
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/http.js +0 -1406
- package/node_modules/@appium/base-driver/node_modules/axios/lib/adapters/xhr.js +0 -228
- package/node_modules/@appium/base-driver/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/@appium/base-driver/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/Axios.js +0 -301
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosError.js +0 -219
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/buildFullPath.js +0 -88
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/dispatchRequest.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/mergeConfig.js +0 -174
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/settle.js +0 -27
- package/node_modules/@appium/base-driver/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/index.js +0 -177
- package/node_modules/@appium/base-driver/node_modules/axios/lib/defaults/transitional.js +0 -10
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/@appium/base-driver/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/combineURLs.js +0 -23
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/composeSignals.js +0 -68
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/cookies.js +0 -64
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toFormData.js +0 -286
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/@appium/base-driver/node_modules/axios/lib/helpers/validator.js +0 -112
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/base-driver/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/@appium/base-driver/node_modules/axios/lib/utils.js +0 -1029
- package/node_modules/@appium/base-driver/node_modules/axios/package.json +0 -203
- package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +0 -1872
- package/node_modules/@appium/support/node_modules/axios/LICENSE +0 -7
- package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +0 -877
- package/node_modules/@appium/support/node_modules/axios/README.md +0 -2623
- package/node_modules/@appium/support/node_modules/axios/dist/axios.js +0 -5509
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +0 -5469
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +0 -5490
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +0 -6356
- package/node_modules/@appium/support/node_modules/axios/index.d.cts +0 -762
- package/node_modules/@appium/support/node_modules/axios/index.d.ts +0 -783
- package/node_modules/@appium/support/node_modules/axios/index.js +0 -45
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +0 -36
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +0 -132
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +0 -643
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +0 -1406
- package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +0 -228
- package/node_modules/@appium/support/node_modules/axios/lib/axios.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +0 -135
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +0 -22
- package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +0 -301
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +0 -219
- package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +0 -474
- package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +0 -72
- package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +0 -8
- package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +0 -88
- package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +0 -174
- package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +0 -27
- package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +0 -177
- package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +0 -10
- package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +0 -1
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -156
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -59
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -29
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +0 -69
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +0 -18
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +0 -23
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +0 -64
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -31
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +0 -166
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +0 -125
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +0 -119
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +0 -68
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +0 -14
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -16
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +0 -2
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +0 -71
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +0 -54
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +0 -105
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +0 -60
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +0 -329
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +0 -28
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +0 -44
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +0 -286
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +0 -89
- package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +0 -112
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +0 -52
- package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +0 -11
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +0 -37
- package/node_modules/@appium/support/node_modules/axios/lib/utils.js +0 -1029
- package/node_modules/@appium/support/node_modules/axios/package.json +0 -203
- package/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64-0.35.4.node +0 -0
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
- package/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
- package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
- package/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
- package/node_modules/asyncbox/lib/asyncbox.ts +0 -382
- package/node_modules/big-integer/BigInteger.d.ts +0 -2393
- package/node_modules/big-integer/BigInteger.js +0 -1453
- package/node_modules/big-integer/BigInteger.min.js +0 -1
- package/node_modules/big-integer/LICENSE +0 -24
- package/node_modules/big-integer/README.md +0 -589
- package/node_modules/big-integer/bower.json +0 -29
- package/node_modules/big-integer/package.json +0 -48
- package/node_modules/big-integer/tsconfig.json +0 -24
- package/node_modules/bplist-creator/bplistCreator.d.ts +0 -8
- package/node_modules/bplist-creator/bplistCreator.js +0 -460
- package/node_modules/bplist-creator/test/airplay.bplist +0 -0
- package/node_modules/bplist-creator/test/binaryData.bplist +0 -0
- package/node_modules/bplist-creator/test/creatorTest.js +0 -211
- package/node_modules/bplist-creator/test/iTunes-small.bplist +0 -0
- package/node_modules/bplist-creator/test/integers.bplist +0 -0
- package/node_modules/bplist-creator/test/sample1.bplist +0 -0
- package/node_modules/bplist-creator/test/sample2.bplist +0 -0
- package/node_modules/bplist-creator/test/uid.bplist +0 -0
- package/node_modules/bplist-creator/test/utf16.bplist +0 -0
- package/node_modules/bplist-parser/.editorconfig +0 -12
- package/node_modules/bplist-parser/.eslintignore +0 -1
- package/node_modules/bplist-parser/.eslintrc.js +0 -296
- package/node_modules/bplist-parser/bplistParser.d.ts +0 -8
- package/node_modules/io.appium.settings/build/lib/utils.d.ts.map +0 -1
- package/node_modules/io.appium.settings/build/lib/utils.js.map +0 -1
- package/node_modules/on-finished/HISTORY.md +0 -98
- package/node_modules/stream-buffers/.travis.yml +0 -28
- package/node_modules/stream-buffers/coverage/coverage.json +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/base.css +0 -182
- package/node_modules/stream-buffers/coverage/lcov-report/index.html +0 -73
- package/node_modules/stream-buffers/coverage/lcov-report/lib/constants.js.html +0 -63
- package/node_modules/stream-buffers/coverage/lcov-report/lib/index.html +0 -112
- package/node_modules/stream-buffers/coverage/lcov-report/lib/readable_streambuffer.js.html +0 -453
- package/node_modules/stream-buffers/coverage/lcov-report/lib/streambuffer.js.html +0 -54
- package/node_modules/stream-buffers/coverage/lcov-report/lib/writable_streambuffer.js.html +0 -336
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.css +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/prettify.js +0 -1
- package/node_modules/stream-buffers/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/node_modules/stream-buffers/coverage/lcov-report/sorter.js +0 -156
- package/node_modules/stream-buffers/coverage/lcov.info +0 -305
- /package/node_modules/io.appium.settings/lib/{utils.ts → utils/apk-path.ts} +0 -0
|
@@ -1,3 +1,75 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [8.4.3](https://github.com/appium/appium-android/compare/io.appium.settings@8.4.2...io.appium.settings@8.4.3) (2026-10-23)
|
|
7
|
+
|
|
8
|
+
### Miscellaneous Chores
|
|
9
|
+
|
|
10
|
+
* **deps:** bump gradle-wrapper in /packages/settings ([#43](https://github.com/appium/appium-android/issues/43)) ([0e5c018](https://github.com/appium/appium-android/commit/0e5c0183b6d5c3a667d9c782ace729f71e00a2a2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [8.4.2](https://github.com/appium/appium-android/compare/io.appium.settings@8.4.1...io.appium.settings@8.4.2) (2026-10-17)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous Chores
|
|
16
|
+
|
|
17
|
+
* **deps:** bump gradle-wrapper in /packages/settings ([#33](https://github.com/appium/appium-android/issues/33)) ([628e7f6](https://github.com/appium/appium-android/commit/628e7f6ae849ea1e0da0ddad968c12d17730c47b))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [8.4.1](https://github.com/appium/appium-android/compare/io.appium.settings@8.4.0...io.appium.settings@8.4.1) (2026-10-06)
|
|
21
|
+
|
|
22
|
+
### Miscellaneous Chores
|
|
23
|
+
|
|
24
|
+
* **deps:** bump org.apache.commons:commons-lang3 in /packages/settings ([#17](https://github.com/appium/appium-android/issues/17)) ([7bb1d6d](https://github.com/appium/appium-android/commit/7bb1d6dd5164846065e6214d8fa9ae952d9c3df2))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [8.4.0](https://github.com/appium/appium-android/compare/io.appium.settings@8.3.1...io.appium.settings@8.4.0) (2026-10-02)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* move appium-adb into packages/adb ([#12](https://github.com/appium/appium-android/issues/12)) ([50f5880](https://github.com/appium/appium-android/commit/50f588086efda73655a2282efde26621f0319a65))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [8.3.1](https://github.com/appium/appium-android/compare/io.appium.settings@8.3.0...io.appium.settings@8.3.1) (2026-10-02)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package io.appium.settings
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 8.3.0 (2026-10-02)
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* set up lerna monorepo and move io.appium.settings into packages/settings ([#1](https://github.com/appium/appium-android/issues/1)) ([4e7495c](https://github.com/appium/appium-android/commit/4e7495c33063c833b0a3d6ab9f897536c0268ba4))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [8.2.1](https://github.com/appium/io.appium.settings/compare/v8.2.0...v8.2.1) (2026-09-28)
|
|
50
|
+
|
|
51
|
+
### Miscellaneous Chores
|
|
52
|
+
|
|
53
|
+
* **deps:** bump gradle-wrapper from 9.7.1 to 9.8.0 ([#323](https://github.com/appium/io.appium.settings/issues/323)) ([35d8ddb](https://github.com/appium/io.appium.settings/commit/35d8ddbf06fab3877c977277f8060f9ea16fcaad))
|
|
54
|
+
|
|
55
|
+
## [8.2.0](https://github.com/appium/io.appium.settings/compare/v8.1.0...v8.2.0) (2026-09-28)
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
* adapt live JPEG/video streaming to device rotation ([#322](https://github.com/appium/io.appium.settings/issues/322)) ([c537b49](https://github.com/appium/io.appium.settings/commit/c537b49922d6790ccfb2e78792d4bee20b15c772))
|
|
60
|
+
|
|
61
|
+
## [8.1.0](https://github.com/appium/io.appium.settings/compare/v8.0.10...v8.1.0) (2026-09-27)
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
* Add streaming support ([#320](https://github.com/appium/io.appium.settings/issues/320)) ([d166701](https://github.com/appium/io.appium.settings/commit/d16670175769e62e5dc8edb0883705f1baaa46bf))
|
|
66
|
+
|
|
67
|
+
## [8.0.10](https://github.com/appium/io.appium.settings/compare/v8.0.9...v8.0.10) (2026-09-26)
|
|
68
|
+
|
|
69
|
+
### Bug Fixes
|
|
70
|
+
|
|
71
|
+
* quote media scan destination paths ([#321](https://github.com/appium/io.appium.settings/issues/321)) ([71c90d0](https://github.com/appium/io.appium.settings/commit/71c90d09fb3e0cae33b20749217df593eb630d57))
|
|
72
|
+
|
|
1
73
|
## [8.0.9](https://github.com/appium/io.appium.settings/compare/v8.0.8...v8.0.9) (2026-08-25)
|
|
2
74
|
|
|
3
75
|
### Miscellaneous Chores
|
|
@@ -9,6 +9,26 @@ Toggle settings in Android device or emulator.
|
|
|
9
9
|
|
|
10
10
|
A small and simple Android application that deals with the system settings. Then the application shuts down.
|
|
11
11
|
|
|
12
|
+
## Trusted test environment
|
|
13
|
+
|
|
14
|
+
Appium Settings is intended for dedicated test devices and emulators with trusted
|
|
15
|
+
applications. Its exported broadcast receivers support ADB and external automation
|
|
16
|
+
tools; they do not authenticate callers or provide isolation from malicious apps
|
|
17
|
+
installed on the same device.
|
|
18
|
+
|
|
19
|
+
In particular, granting Appium Settings `READ_SMS` allows other installed apps to
|
|
20
|
+
request SMS data through its SMS receiver without holding `READ_SMS` themselves.
|
|
21
|
+
When notification access is enabled and the service that registers the notification
|
|
22
|
+
receiver is running, other installed apps can request buffered notification data
|
|
23
|
+
without having notification access themselves. These requests happen on the device;
|
|
24
|
+
network isolation alone does not prevent them.
|
|
25
|
+
|
|
26
|
+
Use test data and avoid devices containing personal or confidential SMS messages or
|
|
27
|
+
notifications. Grant only the permissions needed for your tests. When the helper is
|
|
28
|
+
no longer needed, revoke its SMS permission and notification access, or uninstall it.
|
|
29
|
+
Ending an Appium session should not be treated as revoking those grants or removing
|
|
30
|
+
the helper.
|
|
31
|
+
|
|
12
32
|
## Requirements
|
|
13
33
|
|
|
14
34
|
* [Android SDK](http://developer.android.com)
|
|
@@ -255,6 +275,11 @@ adb shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.l
|
|
|
255
275
|
|
|
256
276
|
## Notifications
|
|
257
277
|
|
|
278
|
+
**Trust requirement:** While notification access is enabled and the notification
|
|
279
|
+
receiver is registered, other apps on the device can retrieve buffered notifications
|
|
280
|
+
through this helper. See [Trusted test environment](#trusted-test-environment) before
|
|
281
|
+
enabling this feature.
|
|
282
|
+
|
|
258
283
|
Since version 2.16.0 Appium Settings supports retrieval of system notifications.
|
|
259
284
|
You need to manually switch the corresponding security switcher next to `Appium Settings`
|
|
260
285
|
application name in `Settings->Notification Access` (the path to this page under Settings
|
|
@@ -306,6 +331,10 @@ for more information on available notification properties and their values.
|
|
|
306
331
|
|
|
307
332
|
## SMS
|
|
308
333
|
|
|
334
|
+
**Trust requirement:** Once this helper has `READ_SMS`, other apps on the device can
|
|
335
|
+
request SMS data through its exported receiver without that permission themselves.
|
|
336
|
+
See [Trusted test environment](#trusted-test-environment) before granting access.
|
|
337
|
+
|
|
309
338
|
Since version 3.1 Appium Settings supports retrieval of SMS messages.
|
|
310
339
|
Make sure the corresponding permission has been granted to the app
|
|
311
340
|
in order to make this feature available. The next step would be to send
|
|
@@ -398,6 +427,103 @@ Obtain Recording Output File:
|
|
|
398
427
|
adb pull /storage/emulated/0/Android/data/io.appium.settings/files/abc.mp4 abc.mp4
|
|
399
428
|
```
|
|
400
429
|
|
|
430
|
+
## Live Screen Streaming (JPEG / H.264 / HEVC)
|
|
431
|
+
|
|
432
|
+
In addition to file-based recording above, Appium Settings can stream the screen live as
|
|
433
|
+
either a sequence of JPEG frames or an H.264/HEVC video (with an optional interleaved AAC
|
|
434
|
+
audio track), instead of writing a file. This is a **raw local-socket protocol**, not an
|
|
435
|
+
HTTP/MJPEG server: the app opens a local abstract socket on-device, and the consumer is
|
|
436
|
+
expected to `adb forward` it to a host TCP port and parse the (simple, length-prefixed)
|
|
437
|
+
frame protocol itself. The [SettingsApp](./lib/client.js) wrapper (`makeJpegStreamSession()` /
|
|
438
|
+
`makeVideoStreamSession()`) already does this for you and is the recommended way to consume
|
|
439
|
+
either stream; talking to the socket directly is only needed for other languages/tools.
|
|
440
|
+
|
|
441
|
+
Required steps to activate streaming (same as recording; `RECORD_AUDIO` is only needed if you
|
|
442
|
+
enable the video stream's `audio` option):
|
|
443
|
+
|
|
444
|
+
```bash
|
|
445
|
+
adb shell pm grant io.appium.settings android.permission.RECORD_AUDIO
|
|
446
|
+
adb shell appops set io.appium.settings PROJECT_MEDIA allow
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### JPEG streaming
|
|
450
|
+
|
|
451
|
+
Start:
|
|
452
|
+
```bash
|
|
453
|
+
adb shell am start -n "io.appium.settings/io.appium.settings.Settings" -a io.appium.settings.streaming.jpeg.ACTION_START --es socket_name my-jpeg-stream --es fps 30 --es quality 80 --es scale 100
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
- `socket_name` (Mandatory) - Name of the local abstract socket the app should listen on; forward it with `adb forward tcp:<port> localabstract:<socket_name>`
|
|
457
|
+
- `fps` (Optional) - Default value: 60
|
|
458
|
+
- `quality` (Optional) - JPEG quality, 1-100. Default value: 80
|
|
459
|
+
- `scale` (Optional) - Percentage (1-100) to scale the captured frame to before encoding. Default value: 100
|
|
460
|
+
|
|
461
|
+
Stop:
|
|
462
|
+
```bash
|
|
463
|
+
adb shell am start -n "io.appium.settings/io.appium.settings.Settings" -a io.appium.settings.streaming.jpeg.ACTION_STOP
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
### Video streaming
|
|
467
|
+
|
|
468
|
+
Start:
|
|
469
|
+
```bash
|
|
470
|
+
adb shell am start -n "io.appium.settings/io.appium.settings.Settings" -a io.appium.settings.streaming.video.ACTION_START --es socket_name my-video-stream --es codec h264 --es fps 30 --es bitrate 4000000 --es resolution 1920x1080 --es audio false
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
- `socket_name` (Mandatory) - Same meaning as for JPEG streaming above
|
|
474
|
+
- `codec` (Optional) - `h264` or `hevc`. Default value: `h264`
|
|
475
|
+
- `fps` (Optional) - Default value: 30
|
|
476
|
+
- `bitrate` (Optional) - In bits per second. Default value: 4000000 (4 Mbps)
|
|
477
|
+
- `resolution` (Optional) - Same syntax/allowed values as the recording `resolution` argument above
|
|
478
|
+
- `audio` (Optional) - `true` to interleave an AAC audio track captured via `AudioPlaybackCaptureConfiguration`. Default value: `false`
|
|
479
|
+
|
|
480
|
+
Stop:
|
|
481
|
+
```bash
|
|
482
|
+
adb shell am start -n "io.appium.settings/io.appium.settings.Settings" -a io.appium.settings.streaming.video.ACTION_STOP
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Node usage example
|
|
486
|
+
|
|
487
|
+
```js
|
|
488
|
+
import ADB from 'appium-adb'
|
|
489
|
+
import { SettingsApp } from 'io.appium.settings';
|
|
490
|
+
|
|
491
|
+
async function main() {
|
|
492
|
+
const app = new SettingsApp({adb: await ADB.createADB()});
|
|
493
|
+
await app.adjustMediaProjectionServicePermissions();
|
|
494
|
+
|
|
495
|
+
const session = app.makeVideoStreamSession();
|
|
496
|
+
await session.start({codec: 'h264', fps: 30, audio: true});
|
|
497
|
+
for await (const unit of session.accessUnits()) {
|
|
498
|
+
console.log(unit.track, unit.data.length, unit.isKeyFrame);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
main();
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
By default the Node wrapper picks an OS-assigned ephemeral port for the `adb forward` bridge
|
|
506
|
+
between the device's local socket and the host. Both `makeJpegStreamSession().start()` and
|
|
507
|
+
`makeVideoStreamSession().start()` also accept:
|
|
508
|
+
|
|
509
|
+
- `localPort` (Optional) - Use this exact local TCP port instead. Throws if it's already in use.
|
|
510
|
+
- `localPortRange` (Optional) - A `[min, max]` tuple; the first free port in this inclusive range is used. Throws if none are free.
|
|
511
|
+
|
|
512
|
+
Only one of `localPort`/`localPortRange` may be provided at a time. This is useful if you need a
|
|
513
|
+
predictable port (e.g. for a firewall rule or a proxy in front of the stream):
|
|
514
|
+
|
|
515
|
+
```js
|
|
516
|
+
await session.start({codec: 'h264', localPort: 8000});
|
|
517
|
+
// or
|
|
518
|
+
await session.start({codec: 'h264', localPortRange: [8000, 8010]});
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
_Note_
|
|
522
|
+
|
|
523
|
+
JPEG streaming throughput is CPU-bound (each frame is compressed on-device via
|
|
524
|
+
`Bitmap.compress`), so on lower-end devices or emulators you may need to reduce `fps`,
|
|
525
|
+
`quality` and/or `scale` from their defaults to keep up with real-time capture.
|
|
526
|
+
|
|
401
527
|
|
|
402
528
|
## Notes:
|
|
403
529
|
|
|
Binary file
|
|
@@ -4,6 +4,7 @@ import { setAnimationState } from './commands/animation.js';
|
|
|
4
4
|
import { setBluetoothState, unpairAllBluetoothDevices } from './commands/bluetooth.js';
|
|
5
5
|
import { getClipboard } from './commands/clipboard.js';
|
|
6
6
|
import { setGeoLocation, getGeoLocation, refreshGeoLocationCache } from './commands/geolocation.js';
|
|
7
|
+
import { makeJpegStreamSession } from './commands/jpeg-stream.js';
|
|
7
8
|
import { setDeviceLocale, listSupportedLocales } from './commands/locale.js';
|
|
8
9
|
import { makeMediaProjectionRecorder, adjustMediaProjectionServicePermissions } from './commands/media-projection.js';
|
|
9
10
|
import { scanMedia } from './commands/media.js';
|
|
@@ -11,6 +12,7 @@ import { setDataState, setWifiState } from './commands/network.js';
|
|
|
11
12
|
import { getNotifications, adjustNotificationsPermissions } from './commands/notifications.js';
|
|
12
13
|
import { getSmsList } from './commands/sms.js';
|
|
13
14
|
import { performEditorAction, typeUnicode } from './commands/typing.js';
|
|
15
|
+
import { makeVideoStreamSession } from './commands/video-stream.js';
|
|
14
16
|
export interface SettingsAppOpts {
|
|
15
17
|
adb: ADB;
|
|
16
18
|
}
|
|
@@ -44,6 +46,8 @@ export declare class SettingsApp {
|
|
|
44
46
|
typeUnicode: typeof typeUnicode;
|
|
45
47
|
makeMediaProjectionRecorder: typeof makeMediaProjectionRecorder;
|
|
46
48
|
adjustMediaProjectionServicePermissions: typeof adjustMediaProjectionServicePermissions;
|
|
49
|
+
makeJpegStreamSession: typeof makeJpegStreamSession;
|
|
50
|
+
makeVideoStreamSession: typeof makeVideoStreamSession;
|
|
47
51
|
constructor(opts: SettingsAppOpts);
|
|
48
52
|
/**
|
|
49
53
|
* Ensures that Appium Settings helper application is running
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../lib/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAC,iBAAiB,EAAE,yBAAyB,EAAC,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAC,cAAc,EAAE,cAAc,EAAE,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAClG,OAAO,EAAC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M,EAAE,MAAM,EAAE,iBAAiB,UAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB/F;;;;;;;;OAQG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,GAAG;CAoBxD"}
|
|
@@ -3,6 +3,7 @@ import { setAnimationState } from './commands/animation.js';
|
|
|
3
3
|
import { setBluetoothState, unpairAllBluetoothDevices } from './commands/bluetooth.js';
|
|
4
4
|
import { getClipboard } from './commands/clipboard.js';
|
|
5
5
|
import { setGeoLocation, getGeoLocation, refreshGeoLocationCache } from './commands/geolocation.js';
|
|
6
|
+
import { makeJpegStreamSession } from './commands/jpeg-stream.js';
|
|
6
7
|
import { setDeviceLocale, listSupportedLocales } from './commands/locale.js';
|
|
7
8
|
import { makeMediaProjectionRecorder, adjustMediaProjectionServicePermissions } from './commands/media-projection.js';
|
|
8
9
|
import { scanMedia } from './commands/media.js';
|
|
@@ -10,6 +11,7 @@ import { setDataState, setWifiState } from './commands/network.js';
|
|
|
10
11
|
import { getNotifications, adjustNotificationsPermissions } from './commands/notifications.js';
|
|
11
12
|
import { getSmsList } from './commands/sms.js';
|
|
12
13
|
import { performEditorAction, typeUnicode } from './commands/typing.js';
|
|
14
|
+
import { makeVideoStreamSession } from './commands/video-stream.js';
|
|
13
15
|
import { SETTINGS_HELPER_ID, SETTINGS_HELPER_MAIN_ACTIVITY } from './constants.js';
|
|
14
16
|
import { log, LOG_PREFIX } from './logger.js';
|
|
15
17
|
export class SettingsApp {
|
|
@@ -34,6 +36,8 @@ export class SettingsApp {
|
|
|
34
36
|
typeUnicode = typeUnicode;
|
|
35
37
|
makeMediaProjectionRecorder = makeMediaProjectionRecorder;
|
|
36
38
|
adjustMediaProjectionServicePermissions = adjustMediaProjectionServicePermissions;
|
|
39
|
+
makeJpegStreamSession = makeJpegStreamSession;
|
|
40
|
+
makeVideoStreamSession = makeVideoStreamSession;
|
|
37
41
|
constructor(opts) {
|
|
38
42
|
this.adb = opts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G,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAI9C;;;;;;;;;;GAUG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BrE"}
|
|
@@ -25,7 +25,7 @@ export async function getClipboard() {
|
|
|
25
25
|
catch (err) {
|
|
26
26
|
throw new Error(`Cannot retrieve the current clipboard content from the device. ` +
|
|
27
27
|
`Make sure the Appium Settings application is up to date. ` +
|
|
28
|
-
`Original error: ${err.message}
|
|
28
|
+
`Original error: ${err.message}`, { cause: err });
|
|
29
29
|
}
|
|
30
30
|
const match = /data="([^"]*)"/.exec(output);
|
|
31
31
|
if (!match) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAE,0BAA0B,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,+BAA+B,CAAC,CAAC;IAC5D,MAAM,IAAI,CAAC,cAAc,CAAC,EAAC,uBAAuB,EAAE,IAAI,EAAC,CAAC,CAAC;IAC3D,MAAM,iBAAiB,GAAG,KAAK,IAAqB,EAAE,CACpD,MAAM,IAAI,CAAC,cAAc,CACvB,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,0BAA0B,CAAC,EAC5D,oBAAoB,EACpB,KAAK,CACN,CAAC;IACJ,IAAI,MAAc,CAAC;IACnB,IAAI,CAAC;QACH,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,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,iEAAiE;YAC/D,2DAA2D;YAC3D,mBAAmB,GAAG,CAAC,OAAO,EAAE,EAClC,EAAC,KAAK,EAAE,GAAG,EAAC,CACb,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,sEAAsE,MAAM,EAAE,CAAC,CAAC;IAClG,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ADB } from 'appium-adb';
|
|
2
|
+
import type { SettingsApp } from '../client.js';
|
|
3
|
+
import type { JpegFrame, StartJpegStreamOpts } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new instance of the live JPEG frame streaming session.
|
|
6
|
+
* The stream only works since Android API 29+
|
|
7
|
+
*
|
|
8
|
+
* @returns The streaming session instance
|
|
9
|
+
*/
|
|
10
|
+
export declare function makeJpegStreamSession(this: SettingsApp): JpegStreamSession;
|
|
11
|
+
/**
|
|
12
|
+
* Live JPEG frame streaming session for the device screen.
|
|
13
|
+
* This class provides methods to start, stop, and consume a continuous
|
|
14
|
+
* sequence of JPEG-encoded frames over a local socket (API 29+).
|
|
15
|
+
*/
|
|
16
|
+
export declare class JpegStreamSession {
|
|
17
|
+
private readonly adb;
|
|
18
|
+
private transport;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new JpegStreamSession instance.
|
|
21
|
+
*
|
|
22
|
+
* @param adb - ADB instance for device communication
|
|
23
|
+
*/
|
|
24
|
+
constructor(adb: ADB);
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the JPEG stream is currently running.
|
|
27
|
+
*/
|
|
28
|
+
isRunning(): Promise<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* Starts the live JPEG frame stream.
|
|
31
|
+
* If a stream is already running, this method returns false without starting a new one.
|
|
32
|
+
*
|
|
33
|
+
* @param opts Streaming options including fps, quality, scale, and the local port to use
|
|
34
|
+
* @returns True if the stream was started successfully, false if already running
|
|
35
|
+
* @throws {Error} If the stream fails to start within the timeout period
|
|
36
|
+
*/
|
|
37
|
+
start(opts?: StartJpegStreamOpts): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Yields JPEG frames as they arrive from the device.
|
|
40
|
+
* `start()` must be called before iterating.
|
|
41
|
+
*
|
|
42
|
+
* A device rotation reconfigures the capture pipeline to the new dimensions, so a
|
|
43
|
+
* later frame's width/height (decoded from its own JPEG header) may differ from
|
|
44
|
+
* the first frame's - consumers should not assume a fixed size across the stream.
|
|
45
|
+
*/
|
|
46
|
+
frames(): AsyncGenerator<JpegFrame>;
|
|
47
|
+
/**
|
|
48
|
+
* Stops the currently running JPEG stream.
|
|
49
|
+
*
|
|
50
|
+
* @returns True if the stream was stopped successfully, false if it was not running
|
|
51
|
+
* @throws {Error} If the stream fails to stop within the timeout period
|
|
52
|
+
*/
|
|
53
|
+
stop(): Promise<boolean>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=jpeg-stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jpeg-stream.d.ts","sourceRoot":"","sources":["../../../lib/commands/jpeg-stream.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAS9C,OAAO,KAAK,EAAC,SAAS,EAAE,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAK/D;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,iBAAiB,CAE1E;AAgBD;;;;GAIG;AACH,qBAAa,iBAAiB;IAQhB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAPhC,OAAO,CAAC,SAAS,CAAgC;IAEjD;;;;OAIG;gBAC0B,GAAG,EAAE,GAAG;IAErC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAKnC;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,GAAE,mBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAgD7D;;;;;;;OAOG;IACI,MAAM,IAAI,cAAc,CAAC,SAAS,CAAC;IAa1C;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAyB/B"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { waitForCondition } from 'asyncbox';
|
|
3
|
+
import { JPEG_STREAM_ACTION_START, JPEG_STREAM_ACTION_STOP, JPEG_STREAM_SERVICE_NAME, SETTINGS_HELPER_ID, STREAMING_ACTIVITY_NAME, } from '../constants.js';
|
|
4
|
+
import { StreamTransport, validateLocalPortOpts } from '../utils/index.js';
|
|
5
|
+
const STREAM_STARTUP_TIMEOUT_MS = 10 * 1000;
|
|
6
|
+
const STREAM_STOP_TIMEOUT_MS = 3 * 1000;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new instance of the live JPEG frame streaming session.
|
|
9
|
+
* The stream only works since Android API 29+
|
|
10
|
+
*
|
|
11
|
+
* @returns The streaming session instance
|
|
12
|
+
*/
|
|
13
|
+
export function makeJpegStreamSession() {
|
|
14
|
+
return new JpegStreamSession(this.adb);
|
|
15
|
+
}
|
|
16
|
+
function validateJpegStreamOpts(opts) {
|
|
17
|
+
const { fps, quality, scale } = opts;
|
|
18
|
+
if (fps !== undefined && (!Number.isInteger(fps) || fps <= 0)) {
|
|
19
|
+
throw new TypeError(`fps must be a positive integer, got ${fps}`);
|
|
20
|
+
}
|
|
21
|
+
if (quality !== undefined && (!Number.isInteger(quality) || quality < 1 || quality > 100)) {
|
|
22
|
+
throw new TypeError(`quality must be an integer between 1 and 100, got ${quality}`);
|
|
23
|
+
}
|
|
24
|
+
if (scale !== undefined && (!Number.isInteger(scale) || scale < 1 || scale > 100)) {
|
|
25
|
+
throw new TypeError(`scale must be an integer between 1 and 100, got ${scale}`);
|
|
26
|
+
}
|
|
27
|
+
validateLocalPortOpts(opts);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Live JPEG frame streaming session for the device screen.
|
|
31
|
+
* This class provides methods to start, stop, and consume a continuous
|
|
32
|
+
* sequence of JPEG-encoded frames over a local socket (API 29+).
|
|
33
|
+
*/
|
|
34
|
+
export class JpegStreamSession {
|
|
35
|
+
adb;
|
|
36
|
+
transport = null;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new JpegStreamSession instance.
|
|
39
|
+
*
|
|
40
|
+
* @param adb - ADB instance for device communication
|
|
41
|
+
*/
|
|
42
|
+
constructor(adb) {
|
|
43
|
+
this.adb = adb;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Checks if the JPEG stream is currently running.
|
|
47
|
+
*/
|
|
48
|
+
async isRunning() {
|
|
49
|
+
const stdout = await this.adb.shell(['dumpsys', 'activity', 'services', JPEG_STREAM_SERVICE_NAME]);
|
|
50
|
+
return stdout.includes(JPEG_STREAM_SERVICE_NAME);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Starts the live JPEG frame stream.
|
|
54
|
+
* If a stream is already running, this method returns false without starting a new one.
|
|
55
|
+
*
|
|
56
|
+
* @param opts Streaming options including fps, quality, scale, and the local port to use
|
|
57
|
+
* @returns True if the stream was started successfully, false if already running
|
|
58
|
+
* @throws {Error} If the stream fails to start within the timeout period
|
|
59
|
+
*/
|
|
60
|
+
async start(opts = {}) {
|
|
61
|
+
validateJpegStreamOpts(opts);
|
|
62
|
+
if (await this.isRunning()) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
const { fps, quality, scale, localPort, localPortRange } = opts;
|
|
66
|
+
// Socket names are validated on-device against ^[a-zA-Z0-9._-]{1,200}$, so this
|
|
67
|
+
// must not contain a "/" - unlike JPEG_STREAM_SERVICE_NAME.
|
|
68
|
+
const socketName = `${SETTINGS_HELPER_ID}.jpegstream.${randomUUID()}`;
|
|
69
|
+
const args = [
|
|
70
|
+
'am',
|
|
71
|
+
'start',
|
|
72
|
+
'-n',
|
|
73
|
+
STREAMING_ACTIVITY_NAME,
|
|
74
|
+
'-a',
|
|
75
|
+
JPEG_STREAM_ACTION_START,
|
|
76
|
+
'--es',
|
|
77
|
+
'socket_name',
|
|
78
|
+
socketName,
|
|
79
|
+
];
|
|
80
|
+
if (fps) {
|
|
81
|
+
args.push('--es', 'fps', `${fps}`);
|
|
82
|
+
}
|
|
83
|
+
if (quality) {
|
|
84
|
+
args.push('--es', 'quality', `${quality}`);
|
|
85
|
+
}
|
|
86
|
+
if (scale) {
|
|
87
|
+
args.push('--es', 'scale', `${scale}`);
|
|
88
|
+
}
|
|
89
|
+
await this.adb.shell(args);
|
|
90
|
+
try {
|
|
91
|
+
await waitForCondition(async () => await this.isRunning(), {
|
|
92
|
+
waitMs: STREAM_STARTUP_TIMEOUT_MS,
|
|
93
|
+
intervalMs: 300,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
catch {
|
|
97
|
+
throw new Error(`The JPEG stream is not running after ${STREAM_STARTUP_TIMEOUT_MS}ms. ` +
|
|
98
|
+
`Please check the logcat output for more details.`);
|
|
99
|
+
}
|
|
100
|
+
this.transport = await StreamTransport.connect(this.adb, socketName, { localPort, localPortRange });
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Yields JPEG frames as they arrive from the device.
|
|
105
|
+
* `start()` must be called before iterating.
|
|
106
|
+
*
|
|
107
|
+
* A device rotation reconfigures the capture pipeline to the new dimensions, so a
|
|
108
|
+
* later frame's width/height (decoded from its own JPEG header) may differ from
|
|
109
|
+
* the first frame's - consumers should not assume a fixed size across the stream.
|
|
110
|
+
*/
|
|
111
|
+
async *frames() {
|
|
112
|
+
if (!this.transport) {
|
|
113
|
+
throw new Error('The JPEG stream has not been started. Call start() first.');
|
|
114
|
+
}
|
|
115
|
+
for await (const frame of this.transport.frames()) {
|
|
116
|
+
yield {
|
|
117
|
+
data: frame.data,
|
|
118
|
+
sequence: Number(frame.sequence),
|
|
119
|
+
timestampMicros: Number(frame.timestampMicros),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Stops the currently running JPEG stream.
|
|
125
|
+
*
|
|
126
|
+
* @returns True if the stream was stopped successfully, false if it was not running
|
|
127
|
+
* @throws {Error} If the stream fails to stop within the timeout period
|
|
128
|
+
*/
|
|
129
|
+
async stop() {
|
|
130
|
+
try {
|
|
131
|
+
if (!(await this.isRunning())) {
|
|
132
|
+
// The on-device service may have already stopped itself (e.g. the client
|
|
133
|
+
// disconnected), leaving a local transport/adb-forward that still needs closing.
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
await this.adb.shell(['am', 'start', '-n', STREAMING_ACTIVITY_NAME, '-a', JPEG_STREAM_ACTION_STOP]);
|
|
137
|
+
try {
|
|
138
|
+
await waitForCondition(async () => !(await this.isRunning()), {
|
|
139
|
+
waitMs: STREAM_STOP_TIMEOUT_MS,
|
|
140
|
+
intervalMs: 300,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
throw new Error(`The attempt to stop the current JPEG stream timed out after ${STREAM_STOP_TIMEOUT_MS}ms`);
|
|
145
|
+
}
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
finally {
|
|
149
|
+
if (this.transport) {
|
|
150
|
+
await this.transport.close();
|
|
151
|
+
this.transport = null;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=jpeg-stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jpeg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AW,GAAG,OAAO,CAAC,OAAO,CAAC,CAMjG;AAMD;;;;GAIG;AACH,qBAAa,uBAAuB;
|
|
1
|
+
{"version":3,"file":"media-projection.d.ts","sourceRoot":"","sources":["../../../lib/commands/media-projection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAQ9C,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,YAAY,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,WAAW,GAAG,uBAAuB,CAEtF;AAED;;;;;GAKG;AACH,wBAAsB,uCAAuC,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAMjG;AAMD;;;;GAIG;AACH,qBAAa,uBAAuB;IAMtB,OAAO,CAAC,QAAQ,CAAC,GAAG;IALhC;;;;OAIG;gBAC0B,GAAG,EAAE,GAAG;IAErC;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAKnC;;;;;;;OAOG;IACG,KAAK,CAAC,IAAI,GAAE,iCAAsC,GAAG,OAAO,CAAC,OAAO,CAAC;IAmC3E;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAe1C;;;;;OAKG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAmB/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-projection.js","sourceRoot":"","sources":["../../../lib/commands/media-projection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAG1C,OAAO,EACL,kBAAkB,EACl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AAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,yFAAyF;QACzF,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,eAAe,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE;YAClE,OAAO,EAAE,MAAM;SAChB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,qBAAqB,CAAC,CAAC,CAAC;QAClG,IAAI,CAAC;YACH,MAAM,gBAAgB,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,EAAE;gBAC5D,MAAM,EAAE,yBAAyB;gBACjC,UAAU,EAAE,GAAG;aAChB,CAAC,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CACb,6EAA6E;gBAC3E,GAAG,yBAAyB,IAAI,CACnC,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -10,6 +10,6 @@ import { LOG_PREFIX } from '../logger.js';
|
|
|
10
10
|
*/
|
|
11
11
|
export async function scanMedia(destination) {
|
|
12
12
|
this.log.debug(LOG_PREFIX, `Scanning '${destination}' for media files`);
|
|
13
|
-
await this.checkBroadcast(['-n', MEDIA_SCAN_RECEIVER, '-a', MEDIA_SCAN_ACTION, '--es', 'path', destination], 'scan media');
|
|
13
|
+
await this.checkBroadcast(['-n', MEDIA_SCAN_RECEIVER, '-a', MEDIA_SCAN_ACTION, '--es', 'path', `'${destination.replace(/'/g, `'"'"'`)}'`], 'scan media');
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=media.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../lib/commands/media.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAoB,WAAmB;IACpE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,aAAa,WAAW,mBAAmB,CAAC,CAAC;IACxE,MAAM,IAAI,CAAC,cAAc,CACvB,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../lib/commands/media.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAoB,WAAmB;IACpE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE,aAAa,WAAW,mBAAmB,CAAC,CAAC;IACxE,MAAM,IAAI,CAAC,cAAc,CACvB,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,EAC/G,YAAY,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -45,7 +45,7 @@ export async function setDataState(on, isEmulator = false) {
|
|
|
45
45
|
await this.adb.shell(['cmd', 'phone', 'data', on ? 'enable' : 'disable']);
|
|
46
46
|
}
|
|
47
47
|
catch (e) {
|
|
48
|
-
throw new Error(`Cannot change the data state. Original error: ${e.stderr || e.message}
|
|
48
|
+
throw new Error(`Cannot change the data state. Original error: ${e.stderr || e.message}`, { cause: e });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../lib/commands/network.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,8BAA8B,EAAE,gCAAgC,EAAC,MAAM,iBAAiB,CAAC;AAEjG;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAoB,EAAW,EAAE,UAAU,GAAG,KAAK;IACnF,IAAI,UAAU,EAAE,CAAC;QACf,2DAA2D;QAC3D,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACjE,OAAO;IACT,CAAC;IAED,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC;QACxC,6DAA6D;QAC7D,wEAAwE;QACxE,kBAAkB;QAClB,MAAM,IAAI,CAAC,cAAc,CACvB;YACE,IAAI;YACJ,8BAA8B;YAC9B,IAAI;YACJ,gCAAgC;YAChC,MAAM;YACN,WAAW;YACX,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;SAC1B,EACD,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,OAAO,CACpC,CAAC;QACF,OAAO;IACT,CAAC;IAED,MAAM,IAAI,CAA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