These scripts work on rooted Android emulators/devices, including AVD with or without Magisk. For Magisk-based setups, there are usually better and cleaner alternatives using Magisk modules (like AlwaysTrustUserCerts). This repository mainly targets rooted & Magisk-less emulators, such as AVD with Google APIs image.
./der2pem.sh /path/to/burp_ca.der./android_inject_cert.sh