Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The solution is to install the certificate Globally. For that I has to install only the emulator:
- [Android Emulator (32.1.13) Stable][1]
- Then you have to find the name of your AVD:
- ```
- ╭─░▒▓ ~/src/emulator
- ╰─ ./emulator -list-avds
- P6
- ```
- Then Run the AVD using this command:
- ```
- ANDROID_SDK_ROOT=~/Android/Sdk/ /home/syst/src/emulator/./emulator -avd P6 -writable-system
- ```
- You obviously have to change the path of your emulator and the AVD name to yours
- Then you have to export your public Der certificate from BurpSuite:
- [![Export Burp Certificate][2]][2]
- Name it `cacert.der`
- The execute these commands:
- ```
- ╭─░▒▓ ~/Desktop ✔ base Py 03:22:26 ▓▒░
- ╰─ openssl x509 -inform DER -in cacert.der -out cacert.pem
- ╭─░▒▓ ~/Desktop ✔ base Py 03:22:30 ▓▒░
- ╰─ openssl x509 -inform PEM -subject_hash_old -in cacert.pem | head -1
- 9a5ba575
- ```
- Then you will rename your certificate like this <PrevOutput>.0
- In my case
- ```
- mv cacert.pem 9a5ba575.0
- ```
- Then
- ```
- adb push 9a5ba575.0 /sdcard/
- ```
- Before installing the certificate we need to gain root over the AVD
- ```
- ╭─░▒▓ ~ ✔ base Py 03:20:31 ▓▒░
- ╰─ adb root
- restarting adbd as root
- ╭─░▒▓ ~ ✔ base Py 03:20:35 ▓▒░
- ╰─ adb remount
- Disabling verity for /system
- Using overlayfs for /system
- Using overlayfs for /vendor
- Using overlayfs for /product
- Using overlayfs for /system_ext
- Now reboot your device for settings to take effect
- ╭─░▒▓ ~ ✔ base Py 03:20:39 ▓▒░
- ╰─ adb reboot
- ╭─░▒▓ ~ 1 ✘ base Py 03:20:56 ▓▒░
- ╰─ adb root
- restarting adbd as root
- ╭─░▒▓ ~ ✔ base Py 03:22:16 ▓▒░
- ╰─ adb remount
- remount succeeded
- ```
- Once the Remount has succeeded, we will install the Certificate:
- ```
- ╭─░▒▓ ~/Desktop ✔ base Py 03:23:19 ▓▒░
- ╰─ adb shell
- emu64xa:/ # mv /sdcard/9a5ba575.0 /system/etc/security/cacerts/
- emu64xa:/ # chmod 664 /system/etc/security/cacerts/9a5ba575.0
- emu64xa:/ # exit
- ╭─░▒▓ ~/Desktop ✔ 36s base Py 03:24:17 ▓▒░
- ╰─ adb reboot
- ```
- Now it should be working !
- [1]: https://developer.android.com/studio/emulator_archive
- [2]: https://i.sstatic.net/odPekRA4.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement