Start the android simulator first. Open the CMD command line window. Enter ADB-s emulator-5554 Shell
Now you can manage system folders, and then enter ls
The folder and file are listed. Enter CD system/APP and then ls.
You can see the application APK file of the system, delete the app you want to delete, such as phone.apk, and enter RM phone.apk.
The system prompts RM failed for phone.apk and read-only file system. These are read-only files and we have no permission to delete them. So the next step is to get the permission. First, view the permission and enter Mount
We can see that/dev/block/mtdblock0/system yaffs2 Ro 0 0 indicates that we do not have the permission in the system. Then we will obtain the permission and enter Mount-O remount, RW-T yaffs2/dev/block/mtdblock0/System
No error is prompted. view the permission again and enter mount.
You can see that/dev/block/mtdblock0/system yaffs2 RW 0 0 indicates that we have obtained the permission, and then enter RM phone.apk to delete it.
Finally, even if you successfully delete it, the android simulator will be restored every time it is started.
For example, he yongjiu deletes the deprecated SDK, deletes sdksetup.apk, and inputs RM sdksetup.apk.
Before you finish, find the AVD directory (usually in my documents), go to the XXXX. AVD directory, delete cache. IMG and userdata-qemu.img
Also, find % sdk_home %/platforms/Android-x/images/system. IMG and copy it to the preceding directory.
Finally, restart the simulator!