frida 17.1.5 → 17.2.1
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/build/src/frida.d.ts +25 -2
- package/build/src/frida.js +20 -1
- package/build/src/frida_binding.d.ts +61 -1
- package/package.json +1 -1
- package/src/frida_bindgen/__pycache__/__init__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/__main__.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/cli.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/codegen.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/customization.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/loader.cpython-312.pyc +0 -0
- package/src/frida_bindgen/__pycache__/model.cpython-312.pyc +0 -0
- package/src/frida_bindgen/customization.py +1 -1
- package/src/frida_bindgen/model.py +2 -0
- package/subprojects/frida-core.wrap +1 -1
package/build/src/frida.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { DeviceManager as _DeviceManager, DeviceAddedHandler as _DeviceAddedHandler, DeviceRemovedHandler as _DeviceRemovedHandler, DeviceChangedHandler as _DeviceChangedHandler, Device as _Device, SpawnAddedHandler as _SpawnAddedHandler, SpawnRemovedHandler as _SpawnRemovedHandler, ChildAddedHandler as _ChildAddedHandler, ChildRemovedHandler as _ChildRemovedHandler, ProcessCrashedHandler as _ProcessCrashedHandler, OutputHandler as _OutputHandler, UninjectedHandler as _UninjectedHandler, DeviceLostHandler as _DeviceLostHandler, RemoteDeviceOptions as _RemoteDeviceOptions, Application as _Application, Process as _Process, ProcessMatchOptions as _ProcessMatchOptions, RawSpawnOptions as _RawSpawnOptions, Spawn as _Spawn, Child as _Child, Crash as _Crash, Bus as _Bus, BusDetachedHandler as _BusDetachedHandler, BusMessageHandler as _BusMessageHandler, Service as _Service, ServiceCloseHandler as _ServiceCloseHandler, ServiceMessageHandler as _ServiceMessageHandler, Session as _Session, SessionDetachedHandler as _SessionDetachedHandler, Script as _Script, ScriptDestroyedHandler as _ScriptDestroyedHandler, ScriptMessageHandler as _ScriptMessageHandler, PortalMembership as _PortalMembership, ControlService as _ControlService, ControlServiceOptions as _ControlServiceOptions, PortalService as _PortalService, PortalNodeConnectedHandler as _PortalNodeConnectedHandler, PortalNodeJoinedHandler as _PortalNodeJoinedHandler, PortalNodeLeftHandler as _PortalNodeLeftHandler, PortalNodeDisconnectedHandler as _PortalNodeDisconnectedHandler, PortalControllerConnectedHandler as _PortalControllerConnectedHandler, PortalControllerDisconnectedHandler as _PortalControllerDisconnectedHandler, PortalAuthenticatedHandler as _PortalAuthenticatedHandler, PortalSubscribeHandler as _PortalSubscribeHandler, PortalMessageHandler as _PortalMessageHandler, FileMonitor as _FileMonitor, FileMonitorChangeHandler as _FileMonitorChangeHandler, Compiler as _Compiler, CompilerStartingHandler as _CompilerStartingHandler, CompilerFinishedHandler as _CompilerFinishedHandler, CompilerOutputHandler as _CompilerOutputHandler, CompilerDiagnosticsHandler as _CompilerDiagnosticsHandler, CompilerOptions as _CompilerOptions, BuildOptions as _BuildOptions, WatchOptions as _WatchOptions, StaticAuthenticationService as _StaticAuthenticationService, FrontmostQueryOptions as _FrontmostQueryOptions, ApplicationQueryOptions as _ApplicationQueryOptions, ProcessQueryOptions as _ProcessQueryOptions, SessionOptions as _SessionOptions, ScriptOptions as _ScriptOptions, SnapshotOptions as _SnapshotOptions, PortalOptions as _PortalOptions, PeerOptions as _PeerOptions, Relay as _Relay, EndpointParameters as _EndpointParameters, AuthenticationService as _AuthenticationService, AbstractAuthenticationService as _AbstractAuthenticationService, BaseObject as _BaseObject, Cancellable as _Cancellable, CancelledHandler as _CancelledHandler, IOStream as _IOStream, InputStream as _InputStream, OutputStream as _OutputStream, InetSocketAddress as _InetSocketAddress, InetAddress as _InetAddress, UnixSocketAddress as _UnixSocketAddress, BaseSocketAddress as _BaseSocketAddress, SocketAddressEnumerator as _SocketAddressEnumerator, SocketConnectable as _SocketConnectable, Runtime as _Runtime, DeviceType as _DeviceType, OutputFormat as _OutputFormat, BundleFormat as _BundleFormat, TypeCheckMode as _TypeCheckMode, SourceMaps as _SourceMaps, JsCompression as _JsCompression, Realm as _Realm, SessionDetachReason as _SessionDetachReason, Scope as _Scope, Stdio as _Stdio, ChildOrigin as _ChildOrigin, SnapshotTransport as _SnapshotTransport, ScriptRuntime as _ScriptRuntime, RelayKind as _RelayKind, FileMonitorEvent as _FileMonitorEvent, SocketFamily as _SocketFamily, UnixSocketAddressType as _UnixSocketAddressType, TargetProcess as _TargetProcess, ProcessID as _ProcessID, InjecteeID as _InjecteeID, FileDescriptor as _FileDescriptor, ProcessName as _ProcessName, SystemParameters as _SystemParameters, SystemInterface as _SystemInterface, NetworkInterface as _NetworkInterface, CellularInterface as _CellularInterface, SpawnOptions as _SpawnOptions, RelayProperties as _RelayProperties, Message as _Message, MessageType as _MessageType, SendMessage as _SendMessage, ErrorMessage as _ErrorMessage, ScriptLogHandler as _ScriptLogHandler, ScriptExports as _ScriptExports, LogLevel as _LogLevel, EnableDebuggerOptions as _EnableDebuggerOptions, PortalServiceOptions as _PortalServiceOptions, PortalConnectionId as _PortalConnectionId, PortalConnectionTag as _PortalConnectionTag, EndpointParametersSubset as _EndpointParametersSubset, AuthenticationScheme as _AuthenticationScheme, TokenAuthenticationScheme as _TokenAuthenticationScheme, CallbackAuthenticationScheme as _CallbackAuthenticationScheme, AuthenticationCallback as _AuthenticationCallback, AuthenticatedSessionInfo as _AuthenticatedSessionInfo, SocketAddress as _SocketAddress, IPV4SocketAddress as _IPV4SocketAddress, IPV6SocketAddress as _IPV6SocketAddress, AnonymousUnixSocketAddress as _AnonymousUnixSocketAddress, PathUnixSocketAddress as _PathUnixSocketAddress, AbstractUnixSocketAddress as _AbstractUnixSocketAddress, Variant as _Variant, VariantValue as _VariantValue, VariantDict as _VariantDict } from "./frida_binding.d.ts";
|
|
1
|
+
import type { DeviceManager as _DeviceManager, DeviceAddedHandler as _DeviceAddedHandler, DeviceRemovedHandler as _DeviceRemovedHandler, DeviceChangedHandler as _DeviceChangedHandler, Device as _Device, SpawnAddedHandler as _SpawnAddedHandler, SpawnRemovedHandler as _SpawnRemovedHandler, ChildAddedHandler as _ChildAddedHandler, ChildRemovedHandler as _ChildRemovedHandler, ProcessCrashedHandler as _ProcessCrashedHandler, OutputHandler as _OutputHandler, UninjectedHandler as _UninjectedHandler, DeviceLostHandler as _DeviceLostHandler, RemoteDeviceOptions as _RemoteDeviceOptions, Application as _Application, Process as _Process, ProcessMatchOptions as _ProcessMatchOptions, RawSpawnOptions as _RawSpawnOptions, Spawn as _Spawn, Child as _Child, Crash as _Crash, Bus as _Bus, BusDetachedHandler as _BusDetachedHandler, BusMessageHandler as _BusMessageHandler, Service as _Service, ServiceCloseHandler as _ServiceCloseHandler, ServiceMessageHandler as _ServiceMessageHandler, Session as _Session, SessionDetachedHandler as _SessionDetachedHandler, Script as _Script, ScriptDestroyedHandler as _ScriptDestroyedHandler, ScriptMessageHandler as _ScriptMessageHandler, PortalMembership as _PortalMembership, PackageManager as _PackageManager, PackageManagerInstallProgressHandler as _PackageManagerInstallProgressHandler, Package as _Package, PackageSearchOptions as _PackageSearchOptions, PackageSearchResult as _PackageSearchResult, PackageInstallOptions as _PackageInstallOptions, PackageInstallResult as _PackageInstallResult, ControlService as _ControlService, ControlServiceOptions as _ControlServiceOptions, PortalService as _PortalService, PortalNodeConnectedHandler as _PortalNodeConnectedHandler, PortalNodeJoinedHandler as _PortalNodeJoinedHandler, PortalNodeLeftHandler as _PortalNodeLeftHandler, PortalNodeDisconnectedHandler as _PortalNodeDisconnectedHandler, PortalControllerConnectedHandler as _PortalControllerConnectedHandler, PortalControllerDisconnectedHandler as _PortalControllerDisconnectedHandler, PortalAuthenticatedHandler as _PortalAuthenticatedHandler, PortalSubscribeHandler as _PortalSubscribeHandler, PortalMessageHandler as _PortalMessageHandler, FileMonitor as _FileMonitor, FileMonitorChangeHandler as _FileMonitorChangeHandler, Compiler as _Compiler, CompilerStartingHandler as _CompilerStartingHandler, CompilerFinishedHandler as _CompilerFinishedHandler, CompilerOutputHandler as _CompilerOutputHandler, CompilerDiagnosticsHandler as _CompilerDiagnosticsHandler, CompilerOptions as _CompilerOptions, BuildOptions as _BuildOptions, WatchOptions as _WatchOptions, StaticAuthenticationService as _StaticAuthenticationService, FrontmostQueryOptions as _FrontmostQueryOptions, ApplicationQueryOptions as _ApplicationQueryOptions, ProcessQueryOptions as _ProcessQueryOptions, SessionOptions as _SessionOptions, ScriptOptions as _ScriptOptions, SnapshotOptions as _SnapshotOptions, PortalOptions as _PortalOptions, PeerOptions as _PeerOptions, Relay as _Relay, EndpointParameters as _EndpointParameters, AuthenticationService as _AuthenticationService, AbstractAuthenticationService as _AbstractAuthenticationService, BaseObject as _BaseObject, Cancellable as _Cancellable, CancelledHandler as _CancelledHandler, IOStream as _IOStream, InputStream as _InputStream, OutputStream as _OutputStream, InetSocketAddress as _InetSocketAddress, InetAddress as _InetAddress, UnixSocketAddress as _UnixSocketAddress, BaseSocketAddress as _BaseSocketAddress, SocketAddressEnumerator as _SocketAddressEnumerator, SocketConnectable as _SocketConnectable, Runtime as _Runtime, DeviceType as _DeviceType, PackageInstallPhase as _PackageInstallPhase, OutputFormat as _OutputFormat, BundleFormat as _BundleFormat, TypeCheckMode as _TypeCheckMode, SourceMaps as _SourceMaps, JsCompression as _JsCompression, Realm as _Realm, SessionDetachReason as _SessionDetachReason, Scope as _Scope, Stdio as _Stdio, ChildOrigin as _ChildOrigin, SnapshotTransport as _SnapshotTransport, ScriptRuntime as _ScriptRuntime, RelayKind as _RelayKind, FileMonitorEvent as _FileMonitorEvent, SocketFamily as _SocketFamily, UnixSocketAddressType as _UnixSocketAddressType, TargetProcess as _TargetProcess, ProcessID as _ProcessID, InjecteeID as _InjecteeID, FileDescriptor as _FileDescriptor, ProcessName as _ProcessName, SystemParameters as _SystemParameters, SystemInterface as _SystemInterface, NetworkInterface as _NetworkInterface, CellularInterface as _CellularInterface, SpawnOptions as _SpawnOptions, RelayProperties as _RelayProperties, Message as _Message, MessageType as _MessageType, SendMessage as _SendMessage, ErrorMessage as _ErrorMessage, ScriptLogHandler as _ScriptLogHandler, ScriptExports as _ScriptExports, LogLevel as _LogLevel, EnableDebuggerOptions as _EnableDebuggerOptions, PortalServiceOptions as _PortalServiceOptions, PortalConnectionId as _PortalConnectionId, PortalConnectionTag as _PortalConnectionTag, EndpointParametersSubset as _EndpointParametersSubset, AuthenticationScheme as _AuthenticationScheme, TokenAuthenticationScheme as _TokenAuthenticationScheme, CallbackAuthenticationScheme as _CallbackAuthenticationScheme, AuthenticationCallback as _AuthenticationCallback, AuthenticatedSessionInfo as _AuthenticatedSessionInfo, SocketAddress as _SocketAddress, IPV4SocketAddress as _IPV4SocketAddress, IPV6SocketAddress as _IPV6SocketAddress, AnonymousUnixSocketAddress as _AnonymousUnixSocketAddress, PathUnixSocketAddress as _PathUnixSocketAddress, AbstractUnixSocketAddress as _AbstractUnixSocketAddress, Variant as _Variant, VariantValue as _VariantValue, VariantDict as _VariantDict } from "./frida_binding.d.ts";
|
|
2
2
|
export declare const MessageType: typeof _MessageType;
|
|
3
3
|
export declare const LogLevel: typeof _LogLevel;
|
|
4
|
-
export declare const DeviceManager: typeof _DeviceManager, Device: typeof _Device, RemoteDeviceOptions: _RemoteDeviceOptions, Application: typeof _Application, Process: typeof _Process, ProcessMatchOptions: _ProcessMatchOptions, RawSpawnOptions: _RawSpawnOptions, Spawn: typeof _Spawn, Child: typeof _Child, Crash: typeof _Crash, Bus: typeof _Bus, Service: typeof _Service, Session: typeof _Session, Script: typeof _Script, PortalMembership: typeof _PortalMembership, ControlService: typeof _ControlService, ControlServiceOptions: _ControlServiceOptions, PortalService: typeof _PortalService, FileMonitor: typeof _FileMonitor, Compiler: typeof _Compiler, CompilerOptions: _CompilerOptions, BuildOptions: _BuildOptions, WatchOptions: _WatchOptions, StaticAuthenticationService: typeof _StaticAuthenticationService, FrontmostQueryOptions: _FrontmostQueryOptions, ApplicationQueryOptions: _ApplicationQueryOptions, ProcessQueryOptions: _ProcessQueryOptions, SessionOptions: _SessionOptions, ScriptOptions: _ScriptOptions, SnapshotOptions: _SnapshotOptions, PortalOptions: _PortalOptions, PeerOptions: _PeerOptions, Relay: typeof _Relay, EndpointParameters: typeof _EndpointParameters, AbstractAuthenticationService: typeof _AbstractAuthenticationService, BaseObject: typeof _BaseObject, Cancellable: typeof _Cancellable, IOStream: typeof _IOStream, InputStream: typeof _InputStream, OutputStream: typeof _OutputStream, InetSocketAddress: typeof _InetSocketAddress, InetAddress: typeof _InetAddress, UnixSocketAddress: typeof _UnixSocketAddress, BaseSocketAddress: typeof _BaseSocketAddress, SocketAddressEnumerator: typeof _SocketAddressEnumerator, Runtime: typeof _Runtime, DeviceType: typeof _DeviceType, OutputFormat: typeof _OutputFormat, BundleFormat: typeof _BundleFormat, TypeCheckMode: typeof _TypeCheckMode, SourceMaps: typeof _SourceMaps, JsCompression: typeof _JsCompression, Realm: typeof _Realm, SessionDetachReason: typeof _SessionDetachReason, Scope: typeof _Scope, Stdio: typeof _Stdio, ChildOrigin: typeof _ChildOrigin, SnapshotTransport: typeof _SnapshotTransport, ScriptRuntime: typeof _ScriptRuntime, RelayKind: typeof _RelayKind, FileMonitorEvent: typeof _FileMonitorEvent, SocketFamily: typeof _SocketFamily, UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
4
|
+
export declare const DeviceManager: typeof _DeviceManager, Device: typeof _Device, RemoteDeviceOptions: _RemoteDeviceOptions, Application: typeof _Application, Process: typeof _Process, ProcessMatchOptions: _ProcessMatchOptions, RawSpawnOptions: _RawSpawnOptions, Spawn: typeof _Spawn, Child: typeof _Child, Crash: typeof _Crash, Bus: typeof _Bus, Service: typeof _Service, Session: typeof _Session, Script: typeof _Script, PortalMembership: typeof _PortalMembership, PackageManager: typeof _PackageManager, Package: typeof _Package, PackageSearchOptions: _PackageSearchOptions, PackageSearchResult: typeof _PackageSearchResult, PackageInstallOptions: _PackageInstallOptions, PackageInstallResult: typeof _PackageInstallResult, ControlService: typeof _ControlService, ControlServiceOptions: _ControlServiceOptions, PortalService: typeof _PortalService, FileMonitor: typeof _FileMonitor, Compiler: typeof _Compiler, CompilerOptions: _CompilerOptions, BuildOptions: _BuildOptions, WatchOptions: _WatchOptions, StaticAuthenticationService: typeof _StaticAuthenticationService, FrontmostQueryOptions: _FrontmostQueryOptions, ApplicationQueryOptions: _ApplicationQueryOptions, ProcessQueryOptions: _ProcessQueryOptions, SessionOptions: _SessionOptions, ScriptOptions: _ScriptOptions, SnapshotOptions: _SnapshotOptions, PortalOptions: _PortalOptions, PeerOptions: _PeerOptions, Relay: typeof _Relay, EndpointParameters: typeof _EndpointParameters, AbstractAuthenticationService: typeof _AbstractAuthenticationService, BaseObject: typeof _BaseObject, Cancellable: typeof _Cancellable, IOStream: typeof _IOStream, InputStream: typeof _InputStream, OutputStream: typeof _OutputStream, InetSocketAddress: typeof _InetSocketAddress, InetAddress: typeof _InetAddress, UnixSocketAddress: typeof _UnixSocketAddress, BaseSocketAddress: typeof _BaseSocketAddress, SocketAddressEnumerator: typeof _SocketAddressEnumerator, Runtime: typeof _Runtime, DeviceType: typeof _DeviceType, PackageInstallPhase: typeof _PackageInstallPhase, OutputFormat: typeof _OutputFormat, BundleFormat: typeof _BundleFormat, TypeCheckMode: typeof _TypeCheckMode, SourceMaps: typeof _SourceMaps, JsCompression: typeof _JsCompression, Realm: typeof _Realm, SessionDetachReason: typeof _SessionDetachReason, Scope: typeof _Scope, Stdio: typeof _Stdio, ChildOrigin: typeof _ChildOrigin, SnapshotTransport: typeof _SnapshotTransport, ScriptRuntime: typeof _ScriptRuntime, RelayKind: typeof _RelayKind, FileMonitorEvent: typeof _FileMonitorEvent, SocketFamily: typeof _SocketFamily, UnixSocketAddressType: typeof _UnixSocketAddressType;
|
|
5
5
|
declare const frida: {
|
|
6
6
|
readonly DeviceManager: typeof _DeviceManager;
|
|
7
7
|
readonly Device: typeof _Device;
|
|
@@ -18,6 +18,12 @@ declare const frida: {
|
|
|
18
18
|
readonly Session: typeof _Session;
|
|
19
19
|
readonly Script: typeof _Script;
|
|
20
20
|
readonly PortalMembership: typeof _PortalMembership;
|
|
21
|
+
readonly PackageManager: typeof _PackageManager;
|
|
22
|
+
readonly Package: typeof _Package;
|
|
23
|
+
readonly PackageSearchOptions: _PackageSearchOptions;
|
|
24
|
+
readonly PackageSearchResult: typeof _PackageSearchResult;
|
|
25
|
+
readonly PackageInstallOptions: _PackageInstallOptions;
|
|
26
|
+
readonly PackageInstallResult: typeof _PackageInstallResult;
|
|
21
27
|
readonly ControlService: typeof _ControlService;
|
|
22
28
|
readonly ControlServiceOptions: _ControlServiceOptions;
|
|
23
29
|
readonly PortalService: typeof _PortalService;
|
|
@@ -50,6 +56,7 @@ declare const frida: {
|
|
|
50
56
|
readonly SocketAddressEnumerator: typeof _SocketAddressEnumerator;
|
|
51
57
|
readonly Runtime: typeof _Runtime;
|
|
52
58
|
readonly DeviceType: typeof _DeviceType;
|
|
59
|
+
readonly PackageInstallPhase: typeof _PackageInstallPhase;
|
|
53
60
|
readonly OutputFormat: typeof _OutputFormat;
|
|
54
61
|
readonly BundleFormat: typeof _BundleFormat;
|
|
55
62
|
readonly TypeCheckMode: typeof _TypeCheckMode;
|
|
@@ -117,6 +124,13 @@ declare namespace frida {
|
|
|
117
124
|
type ScriptDestroyedHandler = _ScriptDestroyedHandler;
|
|
118
125
|
type ScriptMessageHandler = _ScriptMessageHandler;
|
|
119
126
|
type PortalMembership = _PortalMembership;
|
|
127
|
+
type PackageManager = _PackageManager;
|
|
128
|
+
type PackageManagerInstallProgressHandler = _PackageManagerInstallProgressHandler;
|
|
129
|
+
type Package = _Package;
|
|
130
|
+
type PackageSearchOptions = _PackageSearchOptions;
|
|
131
|
+
type PackageSearchResult = _PackageSearchResult;
|
|
132
|
+
type PackageInstallOptions = _PackageInstallOptions;
|
|
133
|
+
type PackageInstallResult = _PackageInstallResult;
|
|
120
134
|
type ControlService = _ControlService;
|
|
121
135
|
type ControlServiceOptions = _ControlServiceOptions;
|
|
122
136
|
type PortalService = _PortalService;
|
|
@@ -166,6 +180,7 @@ declare namespace frida {
|
|
|
166
180
|
type SocketConnectable = _SocketConnectable;
|
|
167
181
|
type Runtime = _Runtime;
|
|
168
182
|
type DeviceType = _DeviceType;
|
|
183
|
+
type PackageInstallPhase = _PackageInstallPhase;
|
|
169
184
|
type OutputFormat = _OutputFormat;
|
|
170
185
|
type BundleFormat = _BundleFormat;
|
|
171
186
|
type TypeCheckMode = _TypeCheckMode;
|
|
@@ -253,6 +268,13 @@ export type Script = _Script;
|
|
|
253
268
|
export type ScriptDestroyedHandler = _ScriptDestroyedHandler;
|
|
254
269
|
export type ScriptMessageHandler = _ScriptMessageHandler;
|
|
255
270
|
export type PortalMembership = _PortalMembership;
|
|
271
|
+
export type PackageManager = _PackageManager;
|
|
272
|
+
export type PackageManagerInstallProgressHandler = _PackageManagerInstallProgressHandler;
|
|
273
|
+
export type Package = _Package;
|
|
274
|
+
export type PackageSearchOptions = _PackageSearchOptions;
|
|
275
|
+
export type PackageSearchResult = _PackageSearchResult;
|
|
276
|
+
export type PackageInstallOptions = _PackageInstallOptions;
|
|
277
|
+
export type PackageInstallResult = _PackageInstallResult;
|
|
256
278
|
export type ControlService = _ControlService;
|
|
257
279
|
export type ControlServiceOptions = _ControlServiceOptions;
|
|
258
280
|
export type PortalService = _PortalService;
|
|
@@ -302,6 +324,7 @@ export type SocketAddressEnumerator = _SocketAddressEnumerator;
|
|
|
302
324
|
export type SocketConnectable = _SocketConnectable;
|
|
303
325
|
export type Runtime = _Runtime;
|
|
304
326
|
export type DeviceType = _DeviceType;
|
|
327
|
+
export type PackageInstallPhase = _PackageInstallPhase;
|
|
305
328
|
export type OutputFormat = _OutputFormat;
|
|
306
329
|
export type BundleFormat = _BundleFormat;
|
|
307
330
|
export type TypeCheckMode = _TypeCheckMode;
|
package/build/src/frida.js
CHANGED
|
@@ -606,6 +606,18 @@ export const LogLevel = binding.LogLevel;
|
|
|
606
606
|
binding.PortalMembership.prototype[inspect.custom] = function (depth, options) {
|
|
607
607
|
return inspectWrapper(this, "PortalMembership", [], depth, options);
|
|
608
608
|
};
|
|
609
|
+
binding.PackageManager.prototype[inspect.custom] = function (depth, options) {
|
|
610
|
+
return inspectWrapper(this, "PackageManager", ["registry"], depth, options);
|
|
611
|
+
};
|
|
612
|
+
binding.Package.prototype[inspect.custom] = function (depth, options) {
|
|
613
|
+
return inspectWrapper(this, "Package", ["name", "version", "description", "url"], depth, options);
|
|
614
|
+
};
|
|
615
|
+
binding.PackageSearchResult.prototype[inspect.custom] = function (depth, options) {
|
|
616
|
+
return inspectWrapper(this, "PackageSearchResult", ["packages", "total"], depth, options);
|
|
617
|
+
};
|
|
618
|
+
binding.PackageInstallResult.prototype[inspect.custom] = function (depth, options) {
|
|
619
|
+
return inspectWrapper(this, "PackageInstallResult", ["packages"], depth, options);
|
|
620
|
+
};
|
|
609
621
|
binding.ControlService.prototype[inspect.custom] = function (depth, options) {
|
|
610
622
|
return inspectWrapper(this, "ControlService", [], depth, options);
|
|
611
623
|
};
|
|
@@ -764,7 +776,7 @@ export const LogLevel = binding.LogLevel;
|
|
|
764
776
|
};
|
|
765
777
|
}
|
|
766
778
|
binding.commitConstructors();
|
|
767
|
-
export const { DeviceManager, Device, RemoteDeviceOptions, Application, Process, ProcessMatchOptions, RawSpawnOptions, Spawn, Child, Crash, Bus, Service, Session, Script, PortalMembership, ControlService, ControlServiceOptions, PortalService, FileMonitor, Compiler, CompilerOptions, BuildOptions, WatchOptions, StaticAuthenticationService, FrontmostQueryOptions, ApplicationQueryOptions, ProcessQueryOptions, SessionOptions, ScriptOptions, SnapshotOptions, PortalOptions, PeerOptions, Relay, EndpointParameters, AbstractAuthenticationService, BaseObject, Cancellable, IOStream, InputStream, OutputStream, InetSocketAddress, InetAddress, UnixSocketAddress, BaseSocketAddress, SocketAddressEnumerator, Runtime, DeviceType, OutputFormat, BundleFormat, TypeCheckMode, SourceMaps, JsCompression, Realm, SessionDetachReason, Scope, Stdio, ChildOrigin, SnapshotTransport, ScriptRuntime, RelayKind, FileMonitorEvent, SocketFamily, UnixSocketAddressType, } = binding;
|
|
779
|
+
export const { DeviceManager, Device, RemoteDeviceOptions, Application, Process, ProcessMatchOptions, RawSpawnOptions, Spawn, Child, Crash, Bus, Service, Session, Script, PortalMembership, PackageManager, Package, PackageSearchOptions, PackageSearchResult, PackageInstallOptions, PackageInstallResult, ControlService, ControlServiceOptions, PortalService, FileMonitor, Compiler, CompilerOptions, BuildOptions, WatchOptions, StaticAuthenticationService, FrontmostQueryOptions, ApplicationQueryOptions, ProcessQueryOptions, SessionOptions, ScriptOptions, SnapshotOptions, PortalOptions, PeerOptions, Relay, EndpointParameters, AbstractAuthenticationService, BaseObject, Cancellable, IOStream, InputStream, OutputStream, InetSocketAddress, InetAddress, UnixSocketAddress, BaseSocketAddress, SocketAddressEnumerator, Runtime, DeviceType, PackageInstallPhase, OutputFormat, BundleFormat, TypeCheckMode, SourceMaps, JsCompression, Realm, SessionDetachReason, Scope, Stdio, ChildOrigin, SnapshotTransport, ScriptRuntime, RelayKind, FileMonitorEvent, SocketFamily, UnixSocketAddressType, } = binding;
|
|
768
780
|
const frida = {
|
|
769
781
|
DeviceManager,
|
|
770
782
|
Device,
|
|
@@ -781,6 +793,12 @@ const frida = {
|
|
|
781
793
|
Session,
|
|
782
794
|
Script,
|
|
783
795
|
PortalMembership,
|
|
796
|
+
PackageManager,
|
|
797
|
+
Package,
|
|
798
|
+
PackageSearchOptions,
|
|
799
|
+
PackageSearchResult,
|
|
800
|
+
PackageInstallOptions,
|
|
801
|
+
PackageInstallResult,
|
|
784
802
|
ControlService,
|
|
785
803
|
ControlServiceOptions,
|
|
786
804
|
PortalService,
|
|
@@ -813,6 +831,7 @@ const frida = {
|
|
|
813
831
|
SocketAddressEnumerator,
|
|
814
832
|
Runtime,
|
|
815
833
|
DeviceType,
|
|
834
|
+
PackageInstallPhase,
|
|
816
835
|
OutputFormat,
|
|
817
836
|
BundleFormat,
|
|
818
837
|
TypeCheckMode,
|
|
@@ -18,6 +18,12 @@ export interface FridaBinding {
|
|
|
18
18
|
Script: typeof Script;
|
|
19
19
|
_Script: typeof _Script;
|
|
20
20
|
PortalMembership: typeof PortalMembership;
|
|
21
|
+
PackageManager: typeof PackageManager;
|
|
22
|
+
Package: typeof Package;
|
|
23
|
+
PackageSearchOptions: PackageSearchOptions;
|
|
24
|
+
PackageSearchResult: typeof PackageSearchResult;
|
|
25
|
+
PackageInstallOptions: PackageInstallOptions;
|
|
26
|
+
PackageInstallResult: typeof PackageInstallResult;
|
|
21
27
|
ControlService: typeof ControlService;
|
|
22
28
|
ControlServiceOptions: ControlServiceOptions;
|
|
23
29
|
PortalService: typeof PortalService;
|
|
@@ -54,6 +60,7 @@ export interface FridaBinding {
|
|
|
54
60
|
SocketAddressEnumerator: typeof SocketAddressEnumerator;
|
|
55
61
|
Runtime: typeof Runtime;
|
|
56
62
|
DeviceType: typeof DeviceType;
|
|
63
|
+
PackageInstallPhase: typeof PackageInstallPhase;
|
|
57
64
|
OutputFormat: typeof OutputFormat;
|
|
58
65
|
BundleFormat: typeof BundleFormat;
|
|
59
66
|
TypeCheckMode: typeof TypeCheckMode;
|
|
@@ -103,7 +110,7 @@ export class Device extends _Device {
|
|
|
103
110
|
attach(target: TargetProcess, options?: SessionOptions, cancellable?: Cancellable | null): Promise<Session>;
|
|
104
111
|
injectLibraryFile(target: TargetProcess, path: string, entrypoint: string, data: string, cancellable?: Cancellable | null): Promise<InjecteeID>;
|
|
105
112
|
injectLibraryBlob(target: TargetProcess, blob: Buffer, entrypoint: string, data: string, cancellable?: Cancellable | null): Promise<InjecteeID>;
|
|
106
|
-
openChannel(address: string, cancellable?: Cancellable | null): Promise<
|
|
113
|
+
openChannel(address: string, cancellable?: Cancellable | null): Promise<import("stream").Duplex>;
|
|
107
114
|
readonly output: Signal<OutputHandler>;
|
|
108
115
|
readonly uninjected: Signal<UninjectedHandler>;
|
|
109
116
|
}
|
|
@@ -296,6 +303,42 @@ export class PortalMembership extends BaseObject {
|
|
|
296
303
|
terminate(cancellable?: Cancellable | null): Promise<void>;
|
|
297
304
|
}
|
|
298
305
|
|
|
306
|
+
export class PackageManager extends BaseObject {
|
|
307
|
+
constructor();
|
|
308
|
+
search(query: string, options?: PackageSearchOptions, cancellable?: Cancellable | null): Promise<PackageSearchResult>;
|
|
309
|
+
install(options?: PackageInstallOptions, cancellable?: Cancellable | null): Promise<PackageInstallResult>;
|
|
310
|
+
registry: string;
|
|
311
|
+
readonly installProgress: Signal<PackageManagerInstallProgressHandler>;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type PackageManagerInstallProgressHandler = (phase: PackageInstallPhase, fraction: number, details: string | null) => void;
|
|
315
|
+
|
|
316
|
+
export class Package extends BaseObject {
|
|
317
|
+
name: string;
|
|
318
|
+
version: string;
|
|
319
|
+
description: string;
|
|
320
|
+
url: string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface PackageSearchOptions {
|
|
324
|
+
offset?: number;
|
|
325
|
+
limit?: number;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export class PackageSearchResult extends BaseObject {
|
|
329
|
+
packages: Package[];
|
|
330
|
+
total: number;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export interface PackageInstallOptions {
|
|
334
|
+
specs?: string[];
|
|
335
|
+
projectRoot?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export class PackageInstallResult extends BaseObject {
|
|
339
|
+
packages: Package[];
|
|
340
|
+
}
|
|
341
|
+
|
|
299
342
|
export class ControlService extends BaseObject {
|
|
300
343
|
constructor(endpointParams: EndpointParameters, options?: ControlServiceOptions);
|
|
301
344
|
start(cancellable?: Cancellable | null): Promise<void>;
|
|
@@ -602,6 +645,23 @@ export enum DeviceType {
|
|
|
602
645
|
Usb = "usb"
|
|
603
646
|
}
|
|
604
647
|
|
|
648
|
+
export enum PackageInstallPhase {
|
|
649
|
+
Initializing = "initializing",
|
|
650
|
+
PreparingDependencies = "preparing-dependencies",
|
|
651
|
+
ResolvingPackage = "resolving-package",
|
|
652
|
+
UsingLockfileData = "using-lockfile-data",
|
|
653
|
+
MetadataFetched = "metadata-fetched",
|
|
654
|
+
FetchingResource = "fetching-resource",
|
|
655
|
+
PackageAlreadyInstalled = "package-already-installed",
|
|
656
|
+
DownloadingPackage = "downloading-package",
|
|
657
|
+
PackageInstalled = "package-installed",
|
|
658
|
+
ResolvingAndInstallingAll = "resolving-and-installing-all",
|
|
659
|
+
AwaitingCompletion = "awaiting-completion",
|
|
660
|
+
DependenciesProcessed = "dependencies-processed",
|
|
661
|
+
FinalizingManifests = "finalizing-manifests",
|
|
662
|
+
Complete = "complete"
|
|
663
|
+
}
|
|
664
|
+
|
|
605
665
|
export enum OutputFormat {
|
|
606
666
|
Unescaped = "unescaped",
|
|
607
667
|
HexBytes = "hex-bytes",
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -445,7 +445,7 @@ if (opts !== undefined) {
|
|
|
445
445
|
custom_logic="const pid = await this.#getPid(target, cancellable);",
|
|
446
446
|
),
|
|
447
447
|
"open_channel": MethodCustomizations(
|
|
448
|
-
return_typing=
|
|
448
|
+
return_typing='Promise<import("stream").Duplex>',
|
|
449
449
|
return_wrapper="new IOStreamAdapter",
|
|
450
450
|
),
|
|
451
451
|
},
|