Skip to content

Instantly share code, notes, and snippets.

View penerbangkode's full-sized avatar
💭
Late response

Rido Mulanda penerbangkode

💭
Late response
View GitHub Profile
@unoexperto
unoexperto / patch_apk_for_sniffing.md
Last active June 29, 2025 09:53
How to patch Android app to sniff its HTTPS traffic with self-signed certificate

How to patch Android app to sniff its HTTPS traffic with self-signed certificate

  • Download apktool from https://ibotpeaches.github.io/Apktool/
  • Unpack apk file: java -jar /home/expert/work/tools/apktool.jar d net.flixster.android-9.1.3@APK4Fun.com.apk
  • Modify AndroidManifest.xml by adding android:networkSecurityConfig="@xml/network_security_config" attribute to application element.
  • Create file /res/xml/network_security_config.xml with following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config>