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,