Delete the APK under system/APP

Source: Internet
Author: User

To delete the APK under the system/APP directory, because the/system/APP directory is read-only by default, to delete these APK, you must first obtain the permission to delete the system directory. Follow these steps to delete the APK file under system/APP:

1. Connect the device. If it is a mobile phone, You Need To Enable USB debugging, set -- Application -- Development -- USB debugging. For other devices, you may also need the IP address of the ADB connect target device (192.168.1.1 ). ADB connect is used to connect devices.

2. Open cmd to enter the device. Enter the command: ADB Shell

3. # Mount

This command is used to view the mounting status.

You will see the following information:

C: \ Documents ents and Settings \ Administrator> ADB Shell
Root @ Android:/# Mount
Mount
Rootfs/rootfs RW 0 0
Tmpfs/dev tmpfs RW, nosuid, relatime, mode = 755 0 0
Devpts/dev/PTS devpts RW, relatime, mode = 600, ptmxmode = 000 0 0
Proc/proc RW, relatime 0 0
Sysfs/sys sysfs RW, relatime 0 0
/Dev/block/mtdblock3/system yaffs2 Ro, relatime 0 0
/Dev/block/mtdblock4/Param yaffs2 RW, relatime 0 0
/Dev/block/mtdblock5/DTV yaffs2 RW, relatime 0 0
/Dev/block/mtdblock6/ATV yaffs2 RW, relatime 0 0
/Dev/block/mtdblock8/Data yaffs2 RW, nosuid, nodev, relatime 0 0
None/Acct cgroup RW, relatime, cpuacct 0 0
Tmpfs/mnt/ASEC tmpfs RW, relatime, mode = 755, gid = 1000 0 0
Tmpfs/mnt/OBB tmpfs RW, relatime, mode = 755, gid = 1000 0 0
None/dev/cpuctl cgroup RW, relatime, CPU 0 0
/Dev/block/mtdblock7/cache yaffs2 RW, nosuid, nodev, relatime 0 0
None/proc/bus/USB usbfs RW, relatime, devmode = 777, busmode = 777, listmode = 777 0 0

Find the mounting information of system, as shown in red.


Run the following command:

# Mount-O remount RW
/Dev/block/mtdblock3/system yaffs2 Ro, relatime 0 0

4. Exit ADB

Enter the command Exit: root @ Android:/# exit

Then, delete the APK file.

5. Enter the following commands in sequence:

ADB Shell

CD/system/APP

Rm xxx.apk

Xxx.apk is the APK to be deleted.


Conclusion: first obtain the system operation permission and then delete the file.Because system is read-only by default and files cannot be deleted,

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.