-
-
Notifications
You must be signed in to change notification settings - Fork 600
feat: Add Custom network security patch
#6151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
Custom network security patch
|
How does this differ from the certificate pinning patch? This seems to also do the same, but this is domain specific? |
|
Well, its more configurable, and the biggest thing is that it allows bundling custom CAs with apk, not just disabling cert pinning, which is not helpful in my case, as I do not want to MITM access to aforementioned API, just let the app connect to it normally, the same way as on newer android OSes. |
|
Also it allows easier distribution of patched app, because with the other patch I would have to separately ship the CA .pem file and manually install it in Android's user store (which is still possible with my patch). |
|
And yes it can be domain specific, but if I specify just TLDs it could be made to work like a global config when |
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
…rtificates/CustomCertificatesPatch.kt Co-authored-by: LisoUseInAIKyrios <[email protected]>
…rtificates/CustomCertificatesPatch.kt Co-authored-by: LisoUseInAIKyrios <[email protected]>
…rtificates/CustomCertificatesPatch.kt Co-authored-by: LisoUseInAIKyrios <[email protected]>
…rtificates/CustomCertificatesPatch.kt Co-authored-by: LisoUseInAIKyrios <[email protected]>
…rtificates/CustomCertificatesPatch.kt Co-authored-by: LisoUseInAIKyrios <[email protected]>
|
@Pawloland Ready to merge? |
|
Yes! |
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
.../src/main/kotlin/app/revanced/patches/all/misc/customcertificates/CustomCertificatesPatch.kt
Outdated
Show resolved
Hide resolved
|
I think other than the |
|
Thank you for contributing to ReVanced. Join us on Discord to receive a role for your contribution. |
# [5.44.0](v5.43.1...v5.44.0) (2025-10-24) ### Bug Fixes * **Google Photos - Spoof features:** Add support for Pixel 10 devices ([#6161](#6161)) ([754b719](754b719)) * **X / Twitter - Change link sharing domain:** Use bytecode patching to resolve patching with Manager ([#6125](#6125)) ([0af8c8a](0af8c8a)) * **YouTube - Hide layout components:** Hide new kind of community post ([#6146](#6146)) ([cfd244b](cfd244b)) * **YouTube Music:** Resolve patching 7.29 target ([2e4c6fd](2e4c6fd)) ### Features * Add `Custom network security` patch ([#6151](#6151)) ([e7336d2](e7336d2)) * **Duolingo - Enable debug menu:** Support latest app target ([#6163](#6163)) ([08baa19](08baa19)) * **Duolingo:** Add `Skip energy recharge ads` patch ([#6167](#6167)) ([591e106](591e106)) * **Samsung Radio:** Add `Disable device checks` patch ([#6145](#6145)) ([de97562](de97562))
Adds a new universal patch that easily changes networkSecurityConfig.
https://developer.android.com/privacy-and-security/security-config
Example patching with CLI: