清除原来的icoud 帐号,只要清楚/var/mobile/Library/Accounts 下的所有目录即可
rm
kn-iPhone:/var/mobile/Library/Accounts root# rm -rf * kn-iPhone:/var/mobile/Library/Accounts root# killall -9 SpringBoard
如何删除iOS11.0.1-iOS11.1.2中的iCloud(激活状态)
手动修改https://github.com/sqlitebrowser/sqlitebrowser/releases
static void kncleanAccount3Sqlite() { sqlite3 *database; const char* path = "/private/var/mobile/Library/Accounts/Accounts3.sqlite"; int databaseResult = sqlite3_open(path, &database); if (databaseResult != SQLITE_OK) { NSLog(@"kn创建/打开数据库%s失败,%d",path, databaseResult); return; } const char *sql = "delete from ZACCOUNT where ZUSERNAME <> \"\""; char *error; int tableResult = sqlite3_exec(database, sql, NULL, NULL, &error); if (tableResult != SQLITE_OK) { NSLog(@"kn操作失败:%@",@(error)); goto knclose; } knclose: sqlite3_close(database); }
2、/var/mobile/Library/UserConfigurationProfiles (最好一起删除此文件)
rm -rf -rw-rw-rw- 1 mobile mobile 181 Aug 9 14:40 ClientTruth.plist rm -rf CloudConfigurationDetails.plist
kn-iPhone:/var/mobile/Library/UserConfigurationProfiles root# ls -lrt total 40 -rw-rw-rw- 1 mobile mobile 181 Sep 11 2017 PayloadDependency.plist -rw-rw-rw- 1 mobile mobile 263 Jan 30 2018 PayloadManifest.plist -rw-rw-rw- 1 mobile mobile 181 Jan 30 2018 ProfileTruth.plist -rw-rw-rw- 1 mobile mobile 181 Aug 9 14:40 ClientTruth.plist -rw-r--r-- 1 mobile mobile 17729 Aug 9 19:47 EffectiveUserSettings.plist -rw-rw-rw- 1 mobile mobile 181 Aug 9 19:54 UserSettings.plist drwxr-xr-x 6 mobile mobile 192 Aug 9 19:54 PublicInfo
/var/mobile/Library/Accounts
common files
wal
is a temporary write-ahead logging fileshm
is an index file forwal
kn-iPhone:/var/mobile/Library/Accounts root# ls -lrt total 2420 -rw-r--r-- 1 mobile mobile 192512 Jul 6 09:03 Accounts3.sqlite -rw-r--r-- 1 mobile mobile 32768 Aug 9 19:51 Accounts3.sqlite-shm -rw-r--r-- 1 mobile mobile 1759272 Aug 9 21:00 Accounts3.sqlite-wal
- 升级最新系统
/Library/MobileSubstrate/DynamicLibraries
/usr/lib
-rwxr-xr-x 1 mobile staff 51792 Aug 9 19:46 libjailbreak.dylib drwxr-xr-x 4 root wheel 128 Aug 9 20:27 TweakInject
TweakInject
- 需要安装 tweak injector 才可以
/Library/TweakInject -> ../usr/lib/TweakInject kn-iPhone:/usr/lib/TweakInject root# ls -lrt total 72 -rw-r--r-- 1 root wheel 57 Mar 15 11:47 tweakinjectmapscheck.plist -rw-r--r-- 1 root wheel 66672 Mar 15 11:47 tweakinjectmapscheck.dylib
LaunchDaemons
kn-iPhone:/Library/LaunchDaemons root# ls -lrt total 12 -rwxr-xr-x 1 root wheel 446 Feb 16 2017 com.saurik.Cydia.Startup.plist -rw-r--r-- 1 root wheel 438 Feb 14 04:08 com.openssh.sshd.plist -rw-r--r-- 1 root wheel 820 Aug 9 19:51 jailbreakd.plist
/Library
lrwxr-xr-x 1 root admin 26 Jan 18 2018 Preferences -> ../private/var/preferences lrwxr-xr-x 1 root admin 27 Jan 18 2018 MobileDevice -> ../private/var/MobileDevice lrwxr-xr-x 1 root admin 19 Jan 18 2018 Logs -> ../private/var/logs lrwxr-xr-x 1 root admin 24 Jan 18 2018 Keychains -> ../private/var/Keychains
See Also
/Users/devzkn/bin//knpost electra1131 Electra for iOS 11.0 - 11.3.1 -t jb #原来""的参数,需要自己加上""
转载请注明:张坤楠的博客 > electra1131