标**的为可选项
需求: 删除或操作系统数据库文件
操作如下
没有删除权限
iPhone:/var/mobile/Library/Application Support/com.apple.remotemanagementd root# rm *
rm: cannot remove ‘RMAdminStore-Local.sqlite’: Operation not permitted
rm: cannot remove ‘RMAdminStore-Local.sqlite-shm’: Operation not permitted
rm: cannot remove ‘RMAdminStore-Local.sqlite-wal’: Operation not permitted
ls查看无异常
iPhone:/var/mobile/Library/Application Support/com.apple.remotemanagementd root# ls -lh
total 23M
-rw-r–r-- 1 mobile mobile 18M Apr 21 10:37 RMAdminStore-Local.sqlite
-rw-r–r-- 1 mobile mobile 32K Apr 22 17:07 RMAdminStore-Local.sqlite-shm
-rw-r–r-- 1 mobile mobile 3.5M Apr 22 18:06 RMAdminStore-Local.sqlite-wal
sqlite操作显示只读
iPhone:/var/mobile/Library/Application Support/com.apple.remotemanagementd root# sqlite3 RMAdminStore-Local.sqlite
SQLite version 3.24.0 2018-06-04 19:24:41
Enter “.help” for usage hints.
sqlite> DELETE FROM ACHANGE;
Error: attempt to write a readonly database
sqlite>