It seems that with these steps (I've installed another emulator with Android 14 and Google Play services just in case), plus generating my own CA certificate (not a self-signed one) and installing it on the emulator, at the same time it was configured in the assets/certs and the res/raw did the work.