Skip to content

Commit fa29b75

Browse files
committed
Add optional SOCKS support to ADB intent data (not yet used)
In a future Android app version, this will be used to activate SOCKS-based tunnelling, allowing support for non-HTTP protocols.
1 parent fe508b6 commit fa29b75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interceptors/android/android-adb-interceptor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export class AndroidAdbInterceptor implements Interceptor {
6767
}
6868

6969
async activate(proxyPort: number, options: {
70-
deviceId: string
70+
deviceId: string,
71+
enableSocks?: boolean
7172
}): Promise<void | {}> {
7273
const deviceClient = new DeviceClient(this.adbClient, options.deviceId);
7374

@@ -106,6 +107,7 @@ export class AndroidAdbInterceptor implements Interceptor {
106107
),
107108
port: proxyPort,
108109
localTunnelPort: proxyPort,
110+
enableSocks: options.enableSocks ?? false,
109111
certFingerprint: await generateSPKIFingerprint(this.config.https.certContent)
110112
};
111113
const intentData = urlSafeBase64(JSON.stringify(setupParams));

0 commit comments

Comments
 (0)