Manually delete the built-in application permanently in the root Android Simulator

Source: Internet
Author: User
Tags delete cache
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!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.