I was interested in the constant modification of / system folder and tried to unzip the system.img file, which went fine, but I could not create a new img that the emulator was satisfied with (using the mkyaffs2 and unyaffs2 tools to extract and create a new system.img).
Instead, I found a much simpler solution:
- Delete everything from the / data / directory (except for the lost + found)
- Copy the contents of / system to the / data li> folder
- Make the necessary changes to / data /
- Kill emulator
Now you move your ~ / .android / avd / MYANDROID.avd / userdata-qemu.img file to ~ / system.img (or anywhere else) and run your emulator using the new system image:
emulator -debug all -show-kernel -verbose -avd MYANDROID -no-boot-anim \
-gpu on -partition-size 800 -system [path to your new system.img]
/data userdata-qemu.img.
, .
( ).
/system folder, , system.img.