Follow the instructions to install WSA with Megisk and GooglePlay services. MagiskOnWSALocal
Download following modules for Magisk.
- MagiskFrida: A Magisk module that automatically runs frida server at boot
- magic_overlayfs: Make system partition become read-write
Microsoft Launcher - For Launcher to access apps like settings etc. ProxyDroid - For Global proxy
-
Connect to ADB
adb connect 127.0.0.1:58526
Note: Make sure developer mode is enabled in WSA settings -
After connecting Convert and push the certificate file to WSA.
openssl x509 -inform DER -in burp.der -out burp.pem
openssl x509 -inform PEM -subject_hash_old -in burp.pem | head -n -1
Output result will be something like9a5ba575.0
- Rename the certificate
mv burp.pem 9a5ba575.0
- Transfer the certificate file to WSA
adb push 9a5ba575.0 /data/local/tmp/
- Open shell
adb shell
- Change user to root
su
- Remount all overlayfs to read-write
magic_remount_rw
- Copy the certificate to the system certificates directory
cp /data/local/tmp/9a5ba575.0 /system/etc/security/cacerts/
- Restore all system partitons back to read-only
magic_remount_ro
- Reboot Emulator and check if the brup certificate is visible under System certs in android settings.
-
Open Microsoft Launcher → Settings → Security → Encryption & Credentials → Install a certifcate. Then browse and select brup.cer file and click install anyway.
-
Reboot WSA using Turn off button in WSA App or using Magisk. After reboot check PortSwigger's certificate under Trusted System Credentials.
After installing the magisk_overlayfs module, Magisk has stopped working, and I am unsure why. I have attempted various solutions, but the issue persists. Any assistance would be greatly appreciated.