Source: https://www.linkedin.com/pulse/android-emulator-tips-security-testers-divya-mudgal/
emulator -list-avds
emulator -avd Pixel_3_XL_API_26 -writable-system
adb root
Remount "/system" because it is by default mounted as "read-only" even if "-writable-system" is used:
adb remount
adb shell
su
mount -o rw,remount /system
mount -o rw,remount /
I've the same problem!! help me please!