Has anybody looked into this, and whether it works?
https://github.com/levyitay/AddSecurityExceptionAndroid
Apparently you can simply pass this an APK file, and it will automate adding the network exceptions into it (i.e. the stuff above in #2054 (comment)) It also requires apktool:
Original source: mitmproxy/mitmproxy#2054