@yume-chan/adb 2.6.2 → 3.0.0-beta.0
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/LICENSE +1 -1
- package/README.md +1 -1
- package/esm/adb.d.ts +18 -15
- package/esm/adb.d.ts.map +1 -1
- package/esm/adb.js +18 -11
- package/esm/adb.js.map +1 -1
- package/esm/banner.d.ts +1 -1
- package/esm/banner.d.ts.map +1 -1
- package/esm/banner.js.map +1 -1
- package/esm/daemon/auth/authenticator.d.ts +28 -0
- package/esm/daemon/auth/authenticator.d.ts.map +1 -0
- package/esm/daemon/auth/authenticator.js +108 -0
- package/esm/daemon/auth/authenticator.js.map +1 -0
- package/esm/daemon/auth/index.d.ts +5 -0
- package/esm/daemon/auth/index.d.ts.map +1 -0
- package/esm/daemon/auth/index.js +5 -0
- package/esm/daemon/auth/index.js.map +1 -0
- package/esm/daemon/auth/packet-processor.d.ts +42 -0
- package/esm/daemon/auth/packet-processor.d.ts.map +1 -0
- package/esm/daemon/auth/packet-processor.js +129 -0
- package/esm/daemon/auth/packet-processor.js.map +1 -0
- package/esm/daemon/auth/public-key.d.ts +8 -0
- package/esm/daemon/auth/public-key.d.ts.map +1 -0
- package/esm/daemon/auth/public-key.js +74 -0
- package/esm/daemon/auth/public-key.js.map +1 -0
- package/esm/daemon/auth/type.d.ts +5 -0
- package/esm/daemon/auth/type.d.ts.map +1 -0
- package/esm/daemon/auth/type.js +2 -0
- package/esm/daemon/auth/type.js.map +1 -0
- package/esm/daemon/crypto.d.ts +6 -5
- package/esm/daemon/crypto.d.ts.map +1 -1
- package/esm/daemon/crypto.js +23 -72
- package/esm/daemon/crypto.js.map +1 -1
- package/esm/daemon/dispatcher.d.ts +3 -3
- package/esm/daemon/dispatcher.d.ts.map +1 -1
- package/esm/daemon/dispatcher.js +11 -4
- package/esm/daemon/dispatcher.js.map +1 -1
- package/esm/daemon/index.d.ts +1 -1
- package/esm/daemon/index.d.ts.map +1 -1
- package/esm/daemon/index.js +1 -1
- package/esm/daemon/index.js.map +1 -1
- package/esm/daemon/socket.d.ts +3 -3
- package/esm/daemon/socket.d.ts.map +1 -1
- package/esm/daemon/transport.d.ts +13 -65
- package/esm/daemon/transport.d.ts.map +1 -1
- package/esm/daemon/transport.js +18 -140
- package/esm/daemon/transport.js.map +1 -1
- package/esm/device-observer.d.ts +2 -3
- package/esm/device-observer.d.ts.map +1 -1
- package/esm/features-value.d.ts +40 -0
- package/esm/features-value.d.ts.map +1 -0
- package/esm/features-value.js +46 -0
- package/esm/features-value.js.map +1 -0
- package/esm/features.d.ts +4 -12
- package/esm/features.d.ts.map +1 -1
- package/esm/features.js +27 -13
- package/esm/features.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/server/client.d.ts +7 -7
- package/esm/server/client.d.ts.map +1 -1
- package/esm/server/client.js +69 -86
- package/esm/server/client.js.map +1 -1
- package/esm/server/commands/wireless.js +1 -1
- package/esm/server/commands/wireless.js.map +1 -1
- package/esm/server/{stream.d.ts → data-connection.d.ts} +5 -5
- package/esm/server/data-connection.d.ts.map +1 -0
- package/esm/server/{stream.js → data-connection.js} +4 -4
- package/esm/server/data-connection.js.map +1 -0
- package/esm/server/index.d.ts +1 -1
- package/esm/server/index.d.ts.map +1 -1
- package/esm/server/index.js +1 -1
- package/esm/server/index.js.map +1 -1
- package/esm/server/observer.d.ts.map +1 -1
- package/esm/server/observer.js +14 -13
- package/esm/server/observer.js.map +1 -1
- package/esm/server/transport.d.ts +4 -6
- package/esm/server/transport.d.ts.map +1 -1
- package/esm/server/transport.js +9 -24
- package/esm/server/transport.js.map +1 -1
- package/esm/service/framebuffer.d.ts.map +1 -0
- package/esm/service/framebuffer.js.map +1 -0
- package/esm/{commands → service}/index.d.ts +1 -2
- package/esm/service/index.d.ts.map +1 -0
- package/esm/{commands → service}/index.js +1 -2
- package/esm/service/index.js.map +1 -0
- package/esm/{commands → service}/power.d.ts +4 -2
- package/esm/service/power.d.ts.map +1 -0
- package/esm/{commands → service}/power.js +11 -5
- package/esm/service/power.js.map +1 -0
- package/esm/service/reverse/error.d.ts +14 -0
- package/esm/service/reverse/error.d.ts.map +1 -0
- package/esm/service/reverse/error.js +21 -0
- package/esm/service/reverse/error.js.map +1 -0
- package/esm/service/reverse/index.d.ts +3 -0
- package/esm/service/reverse/index.d.ts.map +1 -0
- package/esm/service/reverse/index.js +4 -0
- package/esm/service/reverse/index.js.map +1 -0
- package/esm/service/reverse/response.d.ts +2 -0
- package/esm/service/reverse/response.d.ts.map +1 -0
- package/esm/service/reverse/response.js +30 -0
- package/esm/service/reverse/response.js.map +1 -0
- package/esm/service/reverse/service.d.ts +59 -0
- package/esm/service/reverse/service.d.ts.map +1 -0
- package/esm/{commands/reverse.js → service/reverse/service.js} +16 -45
- package/esm/service/reverse/service.js.map +1 -0
- package/esm/{commands → service}/subprocess/index.d.ts +1 -0
- package/esm/service/subprocess/index.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/index.js +1 -0
- package/esm/service/subprocess/index.js.map +1 -0
- package/esm/service/subprocess/none/index.d.ts.map +1 -0
- package/esm/service/subprocess/none/index.js.map +1 -0
- package/esm/{commands → service}/subprocess/none/process.d.ts +2 -2
- package/esm/service/subprocess/none/process.d.ts.map +1 -0
- package/esm/service/subprocess/none/process.js.map +1 -0
- package/esm/{commands → service}/subprocess/none/pty.d.ts +4 -4
- package/esm/service/subprocess/none/pty.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/none/pty.js +1 -1
- package/esm/service/subprocess/none/pty.js.map +1 -0
- package/esm/service/subprocess/none/service.d.ts +10 -0
- package/esm/service/subprocess/none/service.d.ts.map +1 -0
- package/esm/service/subprocess/none/service.js +44 -0
- package/esm/service/subprocess/none/service.js.map +1 -0
- package/esm/service/subprocess/none/spawner.d.ts +15 -0
- package/esm/service/subprocess/none/spawner.d.ts.map +1 -0
- package/esm/service/subprocess/none/spawner.js +31 -0
- package/esm/service/subprocess/none/spawner.js.map +1 -0
- package/esm/{commands → service}/subprocess/pty.d.ts +1 -1
- package/esm/service/subprocess/pty.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/pty.js.map +1 -1
- package/esm/service/subprocess/service.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/service.js +1 -1
- package/esm/service/subprocess/service.js.map +1 -0
- package/esm/service/subprocess/shell/index.d.ts +5 -0
- package/esm/{commands/subprocess/none → service/subprocess/shell}/index.d.ts.map +1 -1
- package/esm/service/subprocess/shell/index.js +6 -0
- package/esm/{commands/subprocess/none → service/subprocess/shell}/index.js.map +1 -1
- package/esm/{commands → service}/subprocess/shell/process.d.ts +2 -2
- package/esm/service/subprocess/shell/process.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/shell/process.js +4 -6
- package/esm/service/subprocess/shell/process.js.map +1 -0
- package/esm/{commands → service}/subprocess/shell/pty.d.ts +4 -4
- package/esm/service/subprocess/shell/pty.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/shell/pty.js +11 -9
- package/esm/service/subprocess/shell/pty.js.map +1 -0
- package/esm/service/subprocess/shell/service.d.ts +34 -0
- package/esm/service/subprocess/shell/service.d.ts.map +1 -0
- package/esm/service/subprocess/shell/service.js +52 -0
- package/esm/service/subprocess/shell/service.js.map +1 -0
- package/esm/service/subprocess/shell/shared.d.ts +2 -0
- package/esm/service/subprocess/shell/shared.d.ts.map +1 -0
- package/esm/{commands → service}/subprocess/shell/shared.js +2 -0
- package/esm/service/subprocess/shell/shared.js.map +1 -0
- package/esm/{commands → service}/subprocess/shell/spawner.d.ts +3 -7
- package/esm/service/subprocess/shell/spawner.d.ts.map +1 -0
- package/esm/service/subprocess/shell/spawner.js +45 -0
- package/esm/service/subprocess/shell/spawner.js.map +1 -0
- package/esm/service/subprocess/types.d.ts +14 -0
- package/esm/service/subprocess/types.d.ts.map +1 -0
- package/esm/service/subprocess/types.js +2 -0
- package/esm/service/subprocess/types.js.map +1 -0
- package/esm/service/subprocess/utils.d.ts +39 -0
- package/esm/service/subprocess/utils.d.ts.map +1 -0
- package/esm/service/subprocess/utils.js +142 -0
- package/esm/service/subprocess/utils.js.map +1 -0
- package/esm/service/sync/android.d.ts +34 -0
- package/esm/service/sync/android.d.ts.map +1 -0
- package/esm/service/sync/android.js +34 -0
- package/esm/service/sync/android.js.map +1 -0
- package/esm/service/sync/compression/compression.d.ts +17 -0
- package/esm/service/sync/compression/compression.d.ts.map +1 -0
- package/esm/service/sync/compression/compression.js +92 -0
- package/esm/service/sync/compression/compression.js.map +1 -0
- package/esm/service/sync/compression/format-ns.d.ts +5 -0
- package/esm/service/sync/compression/format-ns.d.ts.map +1 -0
- package/esm/service/sync/compression/format-ns.js +5 -0
- package/esm/service/sync/compression/format-ns.js.map +1 -0
- package/esm/service/sync/compression/format.d.ts +4 -0
- package/esm/service/sync/compression/format.d.ts.map +1 -0
- package/esm/service/sync/compression/format.js +3 -0
- package/esm/service/sync/compression/format.js.map +1 -0
- package/esm/service/sync/compression/index.d.ts +2 -0
- package/esm/service/sync/compression/index.d.ts.map +1 -0
- package/esm/service/sync/compression/index.js +2 -0
- package/esm/service/sync/compression/index.js.map +1 -0
- package/esm/service/sync/id/common.d.ts +17 -0
- package/esm/service/sync/id/common.d.ts.map +1 -0
- package/esm/service/sync/id/common.js +29 -0
- package/esm/service/sync/id/common.js.map +1 -0
- package/esm/service/sync/id/index.d.ts +4 -0
- package/esm/service/sync/id/index.d.ts.map +1 -0
- package/esm/service/sync/id/index.js +6 -0
- package/esm/service/sync/id/index.js.map +1 -0
- package/esm/service/sync/id/request.d.ts +7 -0
- package/esm/service/sync/id/request.d.ts.map +1 -0
- package/esm/service/sync/id/request.js +9 -0
- package/esm/service/sync/id/request.js.map +1 -0
- package/esm/service/sync/id/response.d.ts +6 -0
- package/esm/service/sync/id/response.d.ts.map +1 -0
- package/esm/service/sync/id/response.js +8 -0
- package/esm/service/sync/id/response.js.map +1 -0
- package/esm/service/sync/index-ns.d.ts +7 -0
- package/esm/service/sync/index-ns.d.ts.map +1 -0
- package/esm/service/sync/index-ns.js +7 -0
- package/esm/service/sync/index-ns.js.map +1 -0
- package/esm/service/sync/index.d.ts +3 -0
- package/esm/service/sync/index.d.ts.map +1 -0
- package/esm/service/sync/index.js +3 -0
- package/esm/service/sync/index.js.map +1 -0
- package/esm/service/sync/request/index.d.ts +5 -0
- package/esm/service/sync/request/index.d.ts.map +1 -0
- package/esm/service/sync/request/index.js +5 -0
- package/esm/service/sync/request/index.js.map +1 -0
- package/esm/{commands/sync → service/sync/request}/list.d.ts +21 -19
- package/esm/service/sync/request/list.d.ts.map +1 -0
- package/esm/service/sync/request/list.js +77 -0
- package/esm/service/sync/request/list.js.map +1 -0
- package/esm/service/sync/request/pull.d.ts +12 -0
- package/esm/service/sync/request/pull.d.ts.map +1 -0
- package/esm/service/sync/request/pull.js +28 -0
- package/esm/service/sync/request/pull.js.map +1 -0
- package/esm/service/sync/request/push.d.ts +54 -0
- package/esm/service/sync/request/push.d.ts.map +1 -0
- package/esm/service/sync/request/push.js +95 -0
- package/esm/service/sync/request/push.js.map +1 -0
- package/esm/{commands/sync → service/sync/request}/stat.d.ts +40 -50
- package/esm/service/sync/request/stat.d.ts.map +1 -0
- package/esm/service/sync/request/stat.js +89 -0
- package/esm/service/sync/request/stat.js.map +1 -0
- package/esm/service/sync/service.d.ts +123 -0
- package/esm/service/sync/service.d.ts.map +1 -0
- package/esm/service/sync/service.js +170 -0
- package/esm/service/sync/service.js.map +1 -0
- package/esm/service/sync/socket-pool.d.ts +11 -0
- package/esm/service/sync/socket-pool.d.ts.map +1 -0
- package/esm/service/sync/socket-pool.js +80 -0
- package/esm/service/sync/socket-pool.js.map +1 -0
- package/esm/service/sync/socket.d.ts +40 -0
- package/esm/service/sync/socket.d.ts.map +1 -0
- package/esm/service/sync/socket.js +153 -0
- package/esm/service/sync/socket.js.map +1 -0
- package/esm/{commands → service}/tcpip.d.ts +4 -2
- package/esm/service/tcpip.d.ts.map +1 -0
- package/esm/{commands → service}/tcpip.js +10 -7
- package/esm/service/tcpip.js.map +1 -0
- package/esm/utils/array-buffer.d.ts.map +1 -1
- package/esm/utils/array-buffer.js +2 -3
- package/esm/utils/array-buffer.js.map +1 -1
- package/esm/utils/base64.d.ts.map +1 -1
- package/esm/utils/base64.js +22 -10
- package/esm/utils/base64.js.map +1 -1
- package/esm/utils/index.d.ts +1 -0
- package/esm/utils/index.d.ts.map +1 -1
- package/esm/utils/index.js +1 -0
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/md5.d.ts +8 -0
- package/esm/utils/md5.d.ts.map +1 -0
- package/esm/utils/md5.js +149 -0
- package/esm/utils/md5.js.map +1 -0
- package/package.json +9 -9
- package/src/adb.ts +44 -35
- package/src/banner.ts +2 -1
- package/src/daemon/auth/authenticator.ts +186 -0
- package/src/daemon/auth/index.ts +4 -0
- package/src/daemon/auth/packet-processor.ts +212 -0
- package/src/daemon/auth/public-key.ts +112 -0
- package/src/daemon/auth/type.ts +5 -0
- package/src/daemon/crypto.ts +36 -101
- package/src/daemon/dispatcher.ts +15 -8
- package/src/daemon/index.ts +1 -1
- package/src/daemon/socket.ts +3 -3
- package/src/daemon/transport.ts +35 -253
- package/src/device-observer.ts +3 -3
- package/src/features-value.ts +47 -0
- package/src/features.ts +31 -14
- package/src/index.ts +1 -1
- package/src/server/client.ts +94 -93
- package/src/server/commands/wireless.ts +1 -1
- package/src/server/{stream.ts → data-connection.ts} +4 -4
- package/src/server/index.ts +1 -1
- package/src/server/observer.ts +21 -19
- package/src/server/transport.ts +13 -34
- package/src/{commands → service}/index.ts +1 -2
- package/src/{commands → service}/power.ts +14 -5
- package/src/service/reverse/error.ts +35 -0
- package/src/service/reverse/index.ts +3 -0
- package/src/service/reverse/response.ts +38 -0
- package/src/{commands/reverse.ts → service/reverse/service.ts} +32 -72
- package/src/{commands → service}/subprocess/index.ts +1 -0
- package/src/{commands → service}/subprocess/none/process.ts +3 -3
- package/src/{commands → service}/subprocess/none/pty.ts +5 -5
- package/src/service/subprocess/none/service.ts +57 -0
- package/src/service/subprocess/none/spawner.ts +81 -0
- package/src/{commands → service}/subprocess/pty.ts +1 -1
- package/src/{commands → service}/subprocess/service.ts +1 -1
- package/src/{commands → service}/subprocess/shell/index.ts +1 -1
- package/src/{commands → service}/subprocess/shell/process.ts +6 -7
- package/src/{commands → service}/subprocess/shell/pty.ts +15 -13
- package/src/service/subprocess/shell/service.ts +75 -0
- package/src/{commands → service}/subprocess/shell/shared.ts +5 -0
- package/src/service/subprocess/shell/spawner.ts +109 -0
- package/src/service/subprocess/types.ts +19 -0
- package/src/service/subprocess/utils.ts +166 -0
- package/src/service/sync/android.ts +43 -0
- package/src/service/sync/compression/compression.ts +126 -0
- package/src/service/sync/compression/format-ns.ts +4 -0
- package/src/service/sync/compression/format.ts +5 -0
- package/src/service/sync/compression/index.ts +1 -0
- package/src/service/sync/id/common.ts +33 -0
- package/src/service/sync/id/index.ts +7 -0
- package/src/service/sync/id/request.ts +12 -0
- package/src/service/sync/id/response.ts +11 -0
- package/src/service/sync/index-ns.ts +6 -0
- package/src/service/sync/index.ts +2 -0
- package/src/service/sync/request/index.ts +4 -0
- package/src/service/sync/request/list.ts +110 -0
- package/src/service/sync/request/pull.ts +49 -0
- package/src/service/sync/request/push.ts +184 -0
- package/src/service/sync/request/stat.ts +127 -0
- package/src/service/sync/service.ts +255 -0
- package/src/service/sync/socket-pool.ts +97 -0
- package/src/service/sync/socket.ts +201 -0
- package/src/{commands → service}/tcpip.ts +13 -7
- package/src/utils/array-buffer.ts +2 -3
- package/src/utils/base64.ts +24 -10
- package/src/utils/index.ts +1 -0
- package/src/utils/md5.ts +185 -0
- package/yume-chan-adb-3.0.0-beta.0.tgz +0 -0
- package/CHANGELOG.md +0 -257
- package/esm/commands/base.d.ts +0 -8
- package/esm/commands/base.d.ts.map +0 -1
- package/esm/commands/base.js +0 -12
- package/esm/commands/base.js.map +0 -1
- package/esm/commands/framebuffer.d.ts.map +0 -1
- package/esm/commands/framebuffer.js.map +0 -1
- package/esm/commands/index.d.ts.map +0 -1
- package/esm/commands/index.js.map +0 -1
- package/esm/commands/power.d.ts.map +0 -1
- package/esm/commands/power.js.map +0 -1
- package/esm/commands/reverse.d.ts +0 -48
- package/esm/commands/reverse.d.ts.map +0 -1
- package/esm/commands/reverse.js.map +0 -1
- package/esm/commands/subprocess/index.d.ts.map +0 -1
- package/esm/commands/subprocess/index.js.map +0 -1
- package/esm/commands/subprocess/none/process.d.ts.map +0 -1
- package/esm/commands/subprocess/none/process.js.map +0 -1
- package/esm/commands/subprocess/none/pty.d.ts.map +0 -1
- package/esm/commands/subprocess/none/pty.js.map +0 -1
- package/esm/commands/subprocess/none/service.d.ts +0 -10
- package/esm/commands/subprocess/none/service.d.ts.map +0 -1
- package/esm/commands/subprocess/none/service.js +0 -34
- package/esm/commands/subprocess/none/service.js.map +0 -1
- package/esm/commands/subprocess/none/spawner.d.ts +0 -19
- package/esm/commands/subprocess/none/spawner.d.ts.map +0 -1
- package/esm/commands/subprocess/none/spawner.js +0 -26
- package/esm/commands/subprocess/none/spawner.js.map +0 -1
- package/esm/commands/subprocess/pty.d.ts.map +0 -1
- package/esm/commands/subprocess/service.d.ts.map +0 -1
- package/esm/commands/subprocess/service.js.map +0 -1
- package/esm/commands/subprocess/shell/index.d.ts +0 -6
- package/esm/commands/subprocess/shell/index.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/index.js +0 -6
- package/esm/commands/subprocess/shell/index.js.map +0 -1
- package/esm/commands/subprocess/shell/process.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/process.js.map +0 -1
- package/esm/commands/subprocess/shell/pty.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/pty.js.map +0 -1
- package/esm/commands/subprocess/shell/service.d.ts +0 -14
- package/esm/commands/subprocess/shell/service.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/service.js +0 -41
- package/esm/commands/subprocess/shell/service.js.map +0 -1
- package/esm/commands/subprocess/shell/shared.d.ts +0 -19
- package/esm/commands/subprocess/shell/shared.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/shared.js.map +0 -1
- package/esm/commands/subprocess/shell/spawner.d.ts.map +0 -1
- package/esm/commands/subprocess/shell/spawner.js +0 -38
- package/esm/commands/subprocess/shell/spawner.js.map +0 -1
- package/esm/commands/subprocess/utils.d.ts +0 -3
- package/esm/commands/subprocess/utils.d.ts.map +0 -1
- package/esm/commands/subprocess/utils.js +0 -56
- package/esm/commands/subprocess/utils.js.map +0 -1
- package/esm/commands/sync/index.d.ts +0 -9
- package/esm/commands/sync/index.d.ts.map +0 -1
- package/esm/commands/sync/index.js +0 -9
- package/esm/commands/sync/index.js.map +0 -1
- package/esm/commands/sync/list.d.ts.map +0 -1
- package/esm/commands/sync/list.js +0 -64
- package/esm/commands/sync/list.js.map +0 -1
- package/esm/commands/sync/pull.d.ts +0 -12
- package/esm/commands/sync/pull.d.ts.map +0 -1
- package/esm/commands/sync/pull.js +0 -33
- package/esm/commands/sync/pull.js.map +0 -1
- package/esm/commands/sync/push.d.ts +0 -61
- package/esm/commands/sync/push.d.ts.map +0 -1
- package/esm/commands/sync/push.js +0 -83
- package/esm/commands/sync/push.js.map +0 -1
- package/esm/commands/sync/request.d.ts +0 -24
- package/esm/commands/sync/request.d.ts.map +0 -1
- package/esm/commands/sync/request.js +0 -32
- package/esm/commands/sync/request.js.map +0 -1
- package/esm/commands/sync/response.d.ts +0 -28
- package/esm/commands/sync/response.d.ts.map +0 -1
- package/esm/commands/sync/response.js +0 -81
- package/esm/commands/sync/response.js.map +0 -1
- package/esm/commands/sync/socket.d.ts +0 -22
- package/esm/commands/sync/socket.d.ts.map +0 -1
- package/esm/commands/sync/socket.js +0 -78
- package/esm/commands/sync/socket.js.map +0 -1
- package/esm/commands/sync/stat.d.ts.map +0 -1
- package/esm/commands/sync/stat.js +0 -121
- package/esm/commands/sync/stat.js.map +0 -1
- package/esm/commands/sync/sync.d.ts +0 -82
- package/esm/commands/sync/sync.d.ts.map +0 -1
- package/esm/commands/sync/sync.js +0 -138
- package/esm/commands/sync/sync.js.map +0 -1
- package/esm/commands/tcpip.d.ts.map +0 -1
- package/esm/commands/tcpip.js.map +0 -1
- package/esm/daemon/auth.d.ts +0 -54
- package/esm/daemon/auth.d.ts.map +0 -1
- package/esm/daemon/auth.js +0 -104
- package/esm/daemon/auth.js.map +0 -1
- package/esm/server/stream.d.ts.map +0 -1
- package/esm/server/stream.js.map +0 -1
- package/src/commands/base.ts +0 -15
- package/src/commands/subprocess/none/service.ts +0 -45
- package/src/commands/subprocess/none/spawner.ts +0 -68
- package/src/commands/subprocess/shell/service.ts +0 -58
- package/src/commands/subprocess/shell/spawner.ts +0 -90
- package/src/commands/subprocess/utils.ts +0 -61
- package/src/commands/sync/index.ts +0 -8
- package/src/commands/sync/list.ts +0 -99
- package/src/commands/sync/pull.ts +0 -55
- package/src/commands/sync/push.ts +0 -172
- package/src/commands/sync/request.ts +0 -53
- package/src/commands/sync/response.ts +0 -105
- package/src/commands/sync/socket.ts +0 -109
- package/src/commands/sync/stat.ts +0 -177
- package/src/commands/sync/sync.ts +0 -175
- package/src/daemon/auth.ts +0 -203
- package/tsconfig.build.tsbuildinfo +0 -1
- /package/esm/{commands → service}/framebuffer.d.ts +0 -0
- /package/esm/{commands → service}/framebuffer.js +0 -0
- /package/esm/{commands → service}/subprocess/none/index.d.ts +0 -0
- /package/esm/{commands → service}/subprocess/none/index.js +0 -0
- /package/esm/{commands → service}/subprocess/none/process.js +0 -0
- /package/esm/{commands → service}/subprocess/pty.js +0 -0
- /package/esm/{commands → service}/subprocess/service.d.ts +0 -0
- /package/src/{commands → service}/framebuffer.ts +0 -0
- /package/src/{commands → service}/subprocess/none/index.ts +0 -0
package/esm/daemon/transport.js
CHANGED
|
@@ -1,133 +1,12 @@
|
|
|
1
|
-
import { PromiseResolver } from "@yume-chan/async";
|
|
2
|
-
import { AbortController, Consumable, WritableStream, } from "@yume-chan/stream-extra";
|
|
3
|
-
import { decodeUtf8, encodeUtf8 } from "@yume-chan/struct";
|
|
4
1
|
import { AdbBanner } from "../banner.js";
|
|
5
|
-
import { AdbFeature } from "../features.js";
|
|
6
|
-
import { ADB_DEFAULT_AUTHENTICATORS, AdbAuthenticationProcessor, } from "./auth.js";
|
|
2
|
+
import { AdbDeviceFeatures, AdbFeature } from "../features.js";
|
|
7
3
|
import { AdbPacketDispatcher } from "./dispatcher.js";
|
|
8
|
-
import { AdbCommand, calculateChecksum } from "./packet.js";
|
|
9
4
|
export const ADB_DAEMON_VERSION_OMIT_CHECKSUM = 0x01000001;
|
|
10
|
-
// https://android.googlesource.com/platform/packages/modules/adb/+/79010dc6d5ca7490c493df800d4421730f5466ca/transport.cpp#1252
|
|
11
|
-
// There are some other feature constants, but some of them are only used by ADB server, not devices (daemons).
|
|
12
|
-
export const ADB_DAEMON_DEFAULT_FEATURES = /* #__PURE__ */ (() => [
|
|
13
|
-
AdbFeature.ShellV2,
|
|
14
|
-
AdbFeature.Cmd,
|
|
15
|
-
AdbFeature.StatV2,
|
|
16
|
-
AdbFeature.ListV2,
|
|
17
|
-
AdbFeature.FixedPushMkdir,
|
|
18
|
-
"apex",
|
|
19
|
-
AdbFeature.Abb,
|
|
20
|
-
// only tells the client the symlink timestamp issue in `adb push --sync` has been fixed.
|
|
21
|
-
// No special handling required.
|
|
22
|
-
"fixed_push_symlink_timestamp",
|
|
23
|
-
AdbFeature.AbbExec,
|
|
24
|
-
"remount_shell",
|
|
25
|
-
"track_app",
|
|
26
|
-
AdbFeature.SendReceiveV2,
|
|
27
|
-
"sendrecv_v2_brotli",
|
|
28
|
-
"sendrecv_v2_lz4",
|
|
29
|
-
"sendrecv_v2_zstd",
|
|
30
|
-
"sendrecv_v2_dry_run_send",
|
|
31
|
-
AdbFeature.DelayedAck,
|
|
32
|
-
])();
|
|
33
5
|
export const ADB_DAEMON_DEFAULT_INITIAL_PAYLOAD_SIZE = 32 * 1024 * 1024;
|
|
34
6
|
/**
|
|
35
7
|
* An ADB Transport that connects to ADB Daemons directly.
|
|
36
8
|
*/
|
|
37
9
|
export class AdbDaemonTransport {
|
|
38
|
-
/**
|
|
39
|
-
* Authenticate with the ADB Daemon and create a new transport.
|
|
40
|
-
*/
|
|
41
|
-
static async authenticate({ serial, connection, credentialStore, authenticators = ADB_DEFAULT_AUTHENTICATORS, features = ADB_DAEMON_DEFAULT_FEATURES, initialDelayedAckBytes = ADB_DAEMON_DEFAULT_INITIAL_PAYLOAD_SIZE, ...options }) {
|
|
42
|
-
// Initially, set to highest-supported version and payload size.
|
|
43
|
-
let version = 0x01000001;
|
|
44
|
-
// Android 4: 4K, Android 7: 256K, Android 9: 1M
|
|
45
|
-
let maxPayloadSize = 1024 * 1024;
|
|
46
|
-
const resolver = new PromiseResolver();
|
|
47
|
-
const authProcessor = new AdbAuthenticationProcessor(authenticators, credentialStore);
|
|
48
|
-
// Here is similar to `AdbPacketDispatcher`,
|
|
49
|
-
// But the received packet types and send packet processing are different.
|
|
50
|
-
const abortController = new AbortController();
|
|
51
|
-
const pipe = connection.readable
|
|
52
|
-
.pipeTo(new WritableStream({
|
|
53
|
-
async write(packet) {
|
|
54
|
-
switch (packet.command) {
|
|
55
|
-
case AdbCommand.Connect:
|
|
56
|
-
version = Math.min(version, packet.arg0);
|
|
57
|
-
maxPayloadSize = Math.min(maxPayloadSize, packet.arg1);
|
|
58
|
-
resolver.resolve(decodeUtf8(packet.payload));
|
|
59
|
-
break;
|
|
60
|
-
case AdbCommand.Auth: {
|
|
61
|
-
const response = await authProcessor.process(packet);
|
|
62
|
-
await sendPacket(response);
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
default:
|
|
66
|
-
// Maybe the previous ADB client exited without reading all packets,
|
|
67
|
-
// so they are still waiting in OS internal buffer.
|
|
68
|
-
// Just ignore them.
|
|
69
|
-
// Because a `Connect` packet will reset the device,
|
|
70
|
-
// Eventually there will be `Connect` and `Auth` response packets.
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
}), {
|
|
75
|
-
// Don't cancel the source ReadableStream on AbortSignal abort.
|
|
76
|
-
preventCancel: true,
|
|
77
|
-
signal: abortController.signal,
|
|
78
|
-
})
|
|
79
|
-
.then(() => {
|
|
80
|
-
// If `resolver` is already settled, call `reject` won't do anything.
|
|
81
|
-
resolver.reject(new Error("Connection closed unexpectedly"));
|
|
82
|
-
}, (e) => {
|
|
83
|
-
resolver.reject(e);
|
|
84
|
-
});
|
|
85
|
-
const writer = connection.writable.getWriter();
|
|
86
|
-
async function sendPacket(init) {
|
|
87
|
-
// Always send checksum in auth steps
|
|
88
|
-
// Because we don't know if the device needs it or not.
|
|
89
|
-
init.checksum = calculateChecksum(init.payload);
|
|
90
|
-
init.magic = init.command ^ 0xffffffff;
|
|
91
|
-
await Consumable.WritableStream.write(writer, init);
|
|
92
|
-
}
|
|
93
|
-
const actualFeatures = features.slice();
|
|
94
|
-
if (initialDelayedAckBytes <= 0) {
|
|
95
|
-
const index = features.indexOf(AdbFeature.DelayedAck);
|
|
96
|
-
if (index !== -1) {
|
|
97
|
-
actualFeatures.splice(index, 1);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
let banner;
|
|
101
|
-
try {
|
|
102
|
-
await sendPacket({
|
|
103
|
-
command: AdbCommand.Connect,
|
|
104
|
-
arg0: version,
|
|
105
|
-
arg1: maxPayloadSize,
|
|
106
|
-
// The terminating `;` is required in formal definition
|
|
107
|
-
// But ADB daemon (all versions) can still work without it
|
|
108
|
-
payload: encodeUtf8(`host::features=${actualFeatures.join(",")}`),
|
|
109
|
-
});
|
|
110
|
-
banner = await resolver.promise;
|
|
111
|
-
}
|
|
112
|
-
finally {
|
|
113
|
-
// When failed, release locks on `connection` so the caller can try again.
|
|
114
|
-
// When success, also release locks so `AdbPacketDispatcher` can use them.
|
|
115
|
-
abortController.abort();
|
|
116
|
-
writer.releaseLock();
|
|
117
|
-
// Wait until pipe stops (`ReadableStream` lock released)
|
|
118
|
-
await pipe;
|
|
119
|
-
}
|
|
120
|
-
return new AdbDaemonTransport({
|
|
121
|
-
serial,
|
|
122
|
-
connection,
|
|
123
|
-
version,
|
|
124
|
-
maxPayloadSize,
|
|
125
|
-
banner,
|
|
126
|
-
features: actualFeatures,
|
|
127
|
-
initialDelayedAckBytes,
|
|
128
|
-
...options,
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
10
|
#connection;
|
|
132
11
|
get connection() {
|
|
133
12
|
return this.#connection;
|
|
@@ -155,35 +34,34 @@ export class AdbDaemonTransport {
|
|
|
155
34
|
get clientFeatures() {
|
|
156
35
|
return this.#clientFeatures;
|
|
157
36
|
}
|
|
158
|
-
constructor({ serial, connection, version, banner, features =
|
|
37
|
+
constructor({ serial, connection, version, banner, features = AdbDeviceFeatures, initialDelayedAckBytes = ADB_DAEMON_DEFAULT_INITIAL_PAYLOAD_SIZE, ...options }) {
|
|
159
38
|
this.#serial = serial;
|
|
160
39
|
this.#connection = connection;
|
|
161
40
|
this.#banner = AdbBanner.parse(banner);
|
|
162
41
|
this.#clientFeatures = features;
|
|
163
|
-
if (features.includes(AdbFeature.DelayedAck)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
if (!this.#banner.features.includes(AdbFeature.DelayedAck)) {
|
|
168
|
-
initialDelayedAckBytes = 0;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
42
|
+
if (!this.#banner.features.includes(AdbFeature.DelayedAck) ||
|
|
43
|
+
!features.includes(AdbFeature.DelayedAck)) {
|
|
44
|
+
// For `AdbPacketDispatcher`, 0 means disabled
|
|
172
45
|
initialDelayedAckBytes = 0;
|
|
173
46
|
}
|
|
174
|
-
|
|
175
|
-
|
|
47
|
+
else if (initialDelayedAckBytes <= 0) {
|
|
48
|
+
// Delayed Ack is enabled in handshake process, we can't disable it here,
|
|
49
|
+
// so it must be a positive integer
|
|
50
|
+
throw new TypeError("`initialDelayedAckBytes` must be greater than 0 when DelayedAck feature is enabled.");
|
|
51
|
+
}
|
|
52
|
+
let shouldCalculateChecksum;
|
|
53
|
+
let shouldAppendNullToServiceString;
|
|
176
54
|
if (version >= ADB_DAEMON_VERSION_OMIT_CHECKSUM) {
|
|
177
|
-
|
|
178
|
-
|
|
55
|
+
shouldCalculateChecksum = false;
|
|
56
|
+
shouldAppendNullToServiceString = false;
|
|
179
57
|
}
|
|
180
58
|
else {
|
|
181
|
-
|
|
182
|
-
|
|
59
|
+
shouldCalculateChecksum = true;
|
|
60
|
+
shouldAppendNullToServiceString = true;
|
|
183
61
|
}
|
|
184
62
|
this.#dispatcher = new AdbPacketDispatcher(connection, {
|
|
185
|
-
calculateChecksum,
|
|
186
|
-
appendNullToServiceString,
|
|
63
|
+
calculateChecksum: shouldCalculateChecksum,
|
|
64
|
+
appendNullToServiceString: shouldAppendNullToServiceString,
|
|
187
65
|
initialDelayedAckBytes,
|
|
188
66
|
...options,
|
|
189
67
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/daemon/transport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/daemon/transport.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,MAAM,CAAC,MAAM,gCAAgC,GAAG,UAAU,CAAC;AAC3D,MAAM,CAAC,MAAM,uCAAuC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAmDxE;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAC3B,WAAW,CAAsB;IACjC,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAEQ,WAAW,CAAsB;IAE1C,O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ePromiseLike } from "@yume-chan/async";
|
|
2
1
|
import type { Event } from "@yume-chan/event";
|
|
3
|
-
|
|
2
|
+
import type { Closeable } from "./adb.js";
|
|
3
|
+
export interface DeviceObserver<T> extends Closeable {
|
|
4
4
|
readonly onDeviceAdd: Event<readonly T[]>;
|
|
5
5
|
readonly onDeviceRemove: Event<readonly T[]>;
|
|
6
6
|
readonly onListChange: Event<readonly T[]>;
|
|
7
7
|
readonly current: readonly T[];
|
|
8
|
-
stop(): MaybePromiseLike<void>;
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=device-observer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-observer.d.ts","sourceRoot":"","sources":["../src/device-observer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"device-observer.d.ts","sourceRoot":"","sources":["../src/device-observer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,SAAS;IAChD,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC1C,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const Shell2 = "shell_v2";
|
|
2
|
+
export declare const Cmd = "cmd";
|
|
3
|
+
export declare const Stat2 = "stat_v2";
|
|
4
|
+
export declare const Ls2 = "ls_v2";
|
|
5
|
+
/**
|
|
6
|
+
* server only
|
|
7
|
+
*/
|
|
8
|
+
export declare const Libusb = "libusb";
|
|
9
|
+
/**
|
|
10
|
+
* server only
|
|
11
|
+
*/
|
|
12
|
+
export declare const PushSync = "push_sync";
|
|
13
|
+
export declare const Apex = "apex";
|
|
14
|
+
export declare const FixedPushMkdir = "fixed_push_mkdir";
|
|
15
|
+
export declare const Abb = "abb";
|
|
16
|
+
export declare const FixedPushSymlinkTimestamp = "fixed_push_symlink_timestamp";
|
|
17
|
+
export declare const AbbExec = "abb_exec";
|
|
18
|
+
export declare const RemountShell = "remount_shell";
|
|
19
|
+
export declare const TrackApp = "track_app";
|
|
20
|
+
export declare const SendReceive2 = "sendrecv_v2";
|
|
21
|
+
export declare const SendReceive2Brotli = "sendrecv_v2_brotli";
|
|
22
|
+
export declare const SendReceive2Lz4 = "sendrecv_v2_lz4";
|
|
23
|
+
export declare const SendReceive2Zstd = "sendrecv_v2_zstd";
|
|
24
|
+
export declare const SendReceive2DryRunSend = "sendrecv_v2_dry_run_send";
|
|
25
|
+
export declare const DelayedAck = "delayed_ack";
|
|
26
|
+
/**
|
|
27
|
+
* server only
|
|
28
|
+
*/
|
|
29
|
+
export declare const OpenscreenMdns = "openscreen_mdns";
|
|
30
|
+
/**
|
|
31
|
+
* server only
|
|
32
|
+
*/
|
|
33
|
+
export declare const DeviceTrackerProtoFormat = "devicetracker_proto_format";
|
|
34
|
+
export declare const DevRaw = "devraw";
|
|
35
|
+
export declare const AppInfo = "app_info";
|
|
36
|
+
/**
|
|
37
|
+
* server only
|
|
38
|
+
*/
|
|
39
|
+
export declare const ServerStatus = "server_status";
|
|
40
|
+
//# sourceMappingURL=features-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features-value.d.ts","sourceRoot":"","sources":["../src/features-value.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM,aAAa,CAAC;AACjC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,GAAG,UAAU,CAAC;AAC3B;;GAEG;AACH,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B;;GAEG;AACH,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,yBAAyB,iCAAiC,CAAC;AACxE,eAAO,MAAM,OAAO,aAAa,CAAC;AAClC,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,QAAQ,cAAc,CAAC;AACpC,eAAO,MAAM,YAAY,gBAAgB,CAAC;AAC1C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AACjE,eAAO,MAAM,UAAU,gBAAgB,CAAC;AACxC;;GAEG;AACH,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD;;GAEG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AACrE,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,OAAO,aAAa,CAAC;AAClC;;GAEG;AACH,eAAO,MAAM,YAAY,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// cspell: ignore Libusb
|
|
2
|
+
// cspell: ignore devraw
|
|
3
|
+
// cspell: ignore Openscreen
|
|
4
|
+
// cspell: ignore devicetracker
|
|
5
|
+
// The order follows
|
|
6
|
+
// https://cs.android.com/android/platform/superproject/main/+/main:packages/modules/adb/transport.cpp;l=81;drc=2d3e62c2af54a3e8f8803ea10492e63b8dfe709f
|
|
7
|
+
export const Shell2 = "shell_v2";
|
|
8
|
+
export const Cmd = "cmd";
|
|
9
|
+
export const Stat2 = "stat_v2";
|
|
10
|
+
export const Ls2 = "ls_v2";
|
|
11
|
+
/**
|
|
12
|
+
* server only
|
|
13
|
+
*/
|
|
14
|
+
export const Libusb = "libusb";
|
|
15
|
+
/**
|
|
16
|
+
* server only
|
|
17
|
+
*/
|
|
18
|
+
export const PushSync = "push_sync";
|
|
19
|
+
export const Apex = "apex";
|
|
20
|
+
export const FixedPushMkdir = "fixed_push_mkdir";
|
|
21
|
+
export const Abb = "abb";
|
|
22
|
+
export const FixedPushSymlinkTimestamp = "fixed_push_symlink_timestamp";
|
|
23
|
+
export const AbbExec = "abb_exec";
|
|
24
|
+
export const RemountShell = "remount_shell";
|
|
25
|
+
export const TrackApp = "track_app";
|
|
26
|
+
export const SendReceive2 = "sendrecv_v2";
|
|
27
|
+
export const SendReceive2Brotli = "sendrecv_v2_brotli";
|
|
28
|
+
export const SendReceive2Lz4 = "sendrecv_v2_lz4";
|
|
29
|
+
export const SendReceive2Zstd = "sendrecv_v2_zstd";
|
|
30
|
+
export const SendReceive2DryRunSend = "sendrecv_v2_dry_run_send";
|
|
31
|
+
export const DelayedAck = "delayed_ack";
|
|
32
|
+
/**
|
|
33
|
+
* server only
|
|
34
|
+
*/
|
|
35
|
+
export const OpenscreenMdns = "openscreen_mdns";
|
|
36
|
+
/**
|
|
37
|
+
* server only
|
|
38
|
+
*/
|
|
39
|
+
export const DeviceTrackerProtoFormat = "devicetracker_proto_format";
|
|
40
|
+
export const DevRaw = "devraw";
|
|
41
|
+
export const AppInfo = "app_info";
|
|
42
|
+
/**
|
|
43
|
+
* server only
|
|
44
|
+
*/
|
|
45
|
+
export const ServerStatus = "server_status";
|
|
46
|
+
//# sourceMappingURL=features-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features-value.js","sourceRoot":"","sources":["../src/features-value.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,wBAAwB;AACxB,4BAA4B;AAC5B,+BAA+B;AAE/B,oBAAoB;AACpB,wJAAwJ;AAExJ,MAAM,CA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,eAAe,CAAC"}
|
package/esm/features.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly ListV2: "ls_v2";
|
|
6
|
-
readonly FixedPushMkdir: "fixed_push_mkdir";
|
|
7
|
-
readonly Abb: "abb";
|
|
8
|
-
readonly AbbExec: "abb_exec";
|
|
9
|
-
readonly SendReceiveV2: "sendrecv_v2";
|
|
10
|
-
readonly DelayedAck: "delayed_ack";
|
|
11
|
-
};
|
|
12
|
-
export type AdbFeature = (typeof AdbFeature)[keyof typeof AdbFeature];
|
|
1
|
+
import * as AdbFeature from "./features-value.js";
|
|
2
|
+
type AdbFeature = (typeof AdbFeature)[keyof typeof AdbFeature];
|
|
3
|
+
export { AdbFeature };
|
|
4
|
+
export declare const AdbDeviceFeatures: readonly AdbFeature[];
|
|
13
5
|
//# sourceMappingURL=features.d.ts.map
|
package/esm/features.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAGlD,KAAK,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,CAAC;AAItB,eAAO,MAAM,iBAAiB,EAsBzB,SAAS,UAAU,EAAE,CAAC"}
|
package/esm/features.js
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import * as AdbFeature from "./features-value.js";
|
|
2
|
+
export { AdbFeature };
|
|
3
|
+
// https://android.googlesource.com/platform/packages/modules/adb/+/79010dc6d5ca7490c493df800d4421730f5466ca/transport.cpp#1252
|
|
4
|
+
// There are some other feature constants, but some of them are only used by ADB server, not devices (daemons).
|
|
5
|
+
export const AdbDeviceFeatures = [
|
|
6
|
+
AdbFeature.Shell2,
|
|
7
|
+
AdbFeature.Cmd,
|
|
8
|
+
AdbFeature.Stat2,
|
|
9
|
+
AdbFeature.Ls2,
|
|
10
|
+
AdbFeature.FixedPushMkdir,
|
|
11
|
+
AdbFeature.Apex,
|
|
12
|
+
AdbFeature.Abb,
|
|
13
|
+
// only tells the client the symlink timestamp issue in `adb push --sync` has been fixed.
|
|
14
|
+
// No special handling required.
|
|
15
|
+
AdbFeature.FixedPushSymlinkTimestamp,
|
|
16
|
+
AdbFeature.AbbExec,
|
|
17
|
+
AdbFeature.RemountShell,
|
|
18
|
+
AdbFeature.TrackApp,
|
|
19
|
+
AdbFeature.SendReceive2,
|
|
20
|
+
AdbFeature.SendReceive2Brotli,
|
|
21
|
+
AdbFeature.SendReceive2Lz4,
|
|
22
|
+
AdbFeature.SendReceive2Zstd,
|
|
23
|
+
AdbFeature.SendReceive2DryRunSend,
|
|
24
|
+
AdbFeature.DevRaw,
|
|
25
|
+
AdbFeature.AppInfo,
|
|
26
|
+
AdbFeature.DelayedAck,
|
|
27
|
+
];
|
|
14
28
|
//# sourceMappingURL=features.js.map
|
package/esm/features.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../src/features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAKlD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,+HAA+H;AAC/H,+GAA+G;AAC/G,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,GAAG;IACd,UAAU,CAAC,KAAK;IAChB,UAAU,CAAC,GAAG;IACd,UAAU,CAAC,cAAc;IACzB,UAAU,CAAC,IAAI;IACf,UAAU,CAAC,GAAG;IACd,yFAAyF;IACzF,gCAAgC;IAChC,UAAU,CAAC,yBAAyB;IACpC,UAAU,CAAC,OAAO;IAClB,UAAU,CAAC,YAAY;IACvB,UAAU,CAAC,QAAQ;IACnB,UAAU,CAAC,YAAY;IACvB,UAAU,CAAC,kBAAkB;IAC7B,UAAU,CAAC,eAAe;IAC1B,UAAU,CAAC,gBAAgB;IAC3B,UAAU,CAAC,sBAAsB;IACjC,UAAU,CAAC,MAAM;IACjB,UAAU,CAAC,OAAO;IAClB,UAAU,CAAC,UAAU;CACC,CAAC"}
|
package/esm/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./adb.js";
|
|
2
2
|
export * from "./banner.js";
|
|
3
|
-
export * from "./commands/index.js";
|
|
4
3
|
export * from "./daemon/index.js";
|
|
5
4
|
export * from "./device-observer.js";
|
|
6
5
|
export * from "./features.js";
|
|
7
6
|
export * from "./server/index.js";
|
|
7
|
+
export * from "./service/index.js";
|
|
8
8
|
export * from "./utils/index.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from "./adb.js";
|
|
2
2
|
export * from "./banner.js";
|
|
3
|
-
export * from "./commands/index.js";
|
|
4
3
|
export * from "./daemon/index.js";
|
|
5
4
|
export * from "./device-observer.js";
|
|
6
5
|
export * from "./features.js";
|
|
7
6
|
export * from "./server/index.js";
|
|
7
|
+
export * from "./service/index.js";
|
|
8
8
|
export * from "./utils/index.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
package/esm/server/client.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import type { MaybePromiseLike } from "@yume-chan/async";
|
|
2
2
|
import type { Event } from "@yume-chan/event";
|
|
3
3
|
import type { AbortSignal, MaybeConsumable, ReadableWritablePair } from "@yume-chan/stream-extra";
|
|
4
|
-
import type {
|
|
4
|
+
import type { Closeable } from "../adb.js";
|
|
5
5
|
import { Adb } from "../adb.js";
|
|
6
6
|
import type { DeviceObserver as DeviceObserverBase } from "../device-observer.js";
|
|
7
7
|
import type { AdbFeature } from "../features.js";
|
|
8
8
|
import { MDnsCommands, WirelessCommands, AlreadyConnectedError as _AlreadyConnectedError, NetworkError as _NetworkError, UnauthorizedError as _UnauthorizedError } from "./commands/index.js";
|
|
9
|
+
import { AdbServerDataConnection } from "./data-connection.js";
|
|
9
10
|
import { AdbServerDeviceObserverOwner } from "./observer.js";
|
|
10
|
-
import { AdbServerStream } from "./stream.js";
|
|
11
11
|
import { AdbServerTransport } from "./transport.js";
|
|
12
12
|
/**
|
|
13
13
|
* Client for the ADB Server.
|
|
14
14
|
*/
|
|
15
15
|
export declare class AdbServerClient {
|
|
16
16
|
#private;
|
|
17
|
+
static ConnectionState: readonly ["offline", "bootloader", "device", "host", "recovery", "rescue", "sideload", "unauthorized", "authorizing", "detached"];
|
|
17
18
|
static NetworkError: typeof _NetworkError;
|
|
18
19
|
static UnauthorizedError: typeof _UnauthorizedError;
|
|
19
20
|
static AlreadyConnectedError: typeof _AlreadyConnectedError;
|
|
@@ -23,7 +24,7 @@ export declare class AdbServerClient {
|
|
|
23
24
|
readonly wireless: WirelessCommands;
|
|
24
25
|
readonly mDns: MDnsCommands;
|
|
25
26
|
constructor(connector: AdbServerClient.ServerConnector);
|
|
26
|
-
createConnection(request: string, options?: AdbServerClient.ServerConnectionOptions): Promise<
|
|
27
|
+
createConnection(request: string, options?: AdbServerClient.ServerConnectionOptions): Promise<AdbServerDataConnection>;
|
|
27
28
|
/**
|
|
28
29
|
* `adb version`
|
|
29
30
|
*/
|
|
@@ -87,7 +88,6 @@ export declare class AdbServerClient {
|
|
|
87
88
|
createTransport(device: AdbServerClient.DeviceSelector): Promise<AdbServerTransport>;
|
|
88
89
|
createAdb(device: AdbServerClient.DeviceSelector): Promise<Adb>;
|
|
89
90
|
}
|
|
90
|
-
export declare function raceSignal<T>(callback: () => PromiseLike<T>, ...signals: (AbortSignal | undefined)[]): Promise<T>;
|
|
91
91
|
export declare namespace AdbServerClient {
|
|
92
92
|
interface ServerConnectionOptions {
|
|
93
93
|
unref?: boolean | undefined;
|
|
@@ -98,11 +98,11 @@ export declare namespace AdbServerClient {
|
|
|
98
98
|
}
|
|
99
99
|
interface ServerConnector {
|
|
100
100
|
connect(options?: ServerConnectionOptions): MaybePromiseLike<ServerConnection>;
|
|
101
|
-
addReverseTunnel(handler:
|
|
101
|
+
addReverseTunnel(handler: Adb.IncomingSocketHandler, address?: string): MaybePromiseLike<string>;
|
|
102
102
|
removeReverseTunnel(address: string): MaybePromiseLike<void>;
|
|
103
103
|
clearReverseTunnels(): MaybePromiseLike<void>;
|
|
104
104
|
}
|
|
105
|
-
interface Socket extends
|
|
105
|
+
interface Socket extends Adb.Socket {
|
|
106
106
|
transportId: bigint;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
@@ -117,7 +117,7 @@ export declare namespace AdbServerClient {
|
|
|
117
117
|
} | {
|
|
118
118
|
tcp: true;
|
|
119
119
|
} | undefined;
|
|
120
|
-
type ConnectionState =
|
|
120
|
+
type ConnectionState = (typeof AdbServerClient.ConnectionState)[number];
|
|
121
121
|
interface Device {
|
|
122
122
|
serial: string;
|
|
123
123
|
state: ConnectionState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/server/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/server/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EACR,WAAW,EACX,eAAe,EACf,oBAAoB,EACvB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAA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