mirror of
https://github.com/httptoolkit/frida-interception-and-unpinning.git
synced 2026-10-11 10:22:12 +02:00
Add an patch against additional check config on native Android OkHttp
This seems to be used internally by some Android TLS connections - note that this is OkHttp (v2 I think), but vendored into com.android and used internally, not as a separate module.
This commit is contained in:
@@ -65,16 +65,10 @@ Java.perform(function () {
|
||||
// To do that, we effectively pattern match our way through all the
|
||||
// related types to work out what's what:
|
||||
|
||||
console.log('checking chain types...');
|
||||
|
||||
const chainType = Java.use(method.argumentTypes[0].className);
|
||||
const responseTypeName = method.returnType.className;
|
||||
|
||||
console.log('got chain response type', responseTypeName);
|
||||
|
||||
const matchedChain = matchOkHttpChain(chainType, responseTypeName);
|
||||
|
||||
console.log('matchedChain', matchedChain);
|
||||
return !!matchedChain;
|
||||
};
|
||||
|
||||
@@ -86,8 +80,6 @@ Java.perform(function () {
|
||||
);
|
||||
if (matchingMethods.length !== 1) return;
|
||||
|
||||
console.log('got chain proceed method');
|
||||
|
||||
const [proceedMethodName, proceedMethod] = matchingMethods[0];
|
||||
if (proceedMethod.argumentTypes.length !== 1) return;
|
||||
|
||||
@@ -101,8 +93,6 @@ Java.perform(function () {
|
||||
);
|
||||
if (matchingFields.length !== 1) return;
|
||||
|
||||
console.log('got chain request field');
|
||||
|
||||
const [requestFieldName] = matchingFields[0];
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user