问题
So I am trying to replace some small text files and add some apks into the system files of android.
I am working on an emulator for api levle 25 x86 and no gplay. The system.img file is of around 2.5 gb (274783648 bytes ) First I unpacked the system.img using with the help of these files here
https://github.com/nlitsme/extfstools
and ran the code mentioned to extract the files
sudo ./ext2rd system.img ./:savedir
The files I got were of around 650 mb. After making the changes I tried to pack the image using
sudo make_ext4fs -L system -l 274783648 -a system new_system.img savedir/
The image is created successfully and I see this in the terminal
Creating filesystem with parameters:
Size: 2684354560
Block size: 512
Blocks per group: 4096
Inodes per group: 1024
Inode size: 256
Journal blocks: 32768
Label: system
Blocks: 5242880
Block groups: 1280
Reserved block group size: 128
Created filesystem with 1796/1310720 inodes and 1969443/5242880 blocks
I replace the system.img file with this new file. Recreate the avd but it won't boot.
Please help me.
来源:https://stackoverflow.com/questions/57845619/generated-system-img-is-not-running-on-emulator-api-25