Merge pull request #234 from az-xx/cronet-pinning-bypass

Handle Cronet by re-enabling pinning bypass for local trust anchors
This commit is contained in:
Tim Perry
2026-09-18 14:14:26 +02:00
committed by GitHub
+13
View File
@@ -433,6 +433,19 @@ const PINNING_FIXES = {
};
}
}
],
// --- Cronet (Chromium's network stack - does its own native TLS, bypassing the hooks above)
'org.chromium.net.CronetEngine$Builder': [
{
methodName: 'enablePublicKeyPinningBypassForLocalTrustAnchors',
replacement: (targetMethod) => function (_enabled) {
// Ignore the app's choice and always allow local trust anchors to bypass
// pinning - the method returns the builder, so preserve that for chaining:
return targetMethod.call(this, true);
}
}
]
};