Generated system.img is not running on emulator. Api 25

廉价感情. 提交于 2019-12-11 15:41:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!