3 # This script should be run as root on the target device
5 if [ $(id -u) != "0" ]; then
6 echo "You must be root to run this script" >&2
10 echo "-----------------------------------------------"
11 echo "Tell launchctl to unload the old one"
12 launchctl unload
-w /System
/Library
/LaunchDaemons
/com.apple.security.cloudkeychainproxy.plist
14 echo "call darwinup install"
15 darwinup
install /var
/mobile
/security.roots.tgz
17 /usr
/local
/bin
/darwinup uninstall superseded
> /dev
/null
2>&1 || true
19 echo "Untar sym files"
20 symdir
="/var/mobile/secsyms"
21 if [ ! -d "$symdir" ]; then
24 echo "Untar sym files to " $symdir
25 tar -xzvf /var
/mobile
/security.syms.tgz
-C $symdir
26 echo "To use, enter e.g. in gdb: add-dsym /var/mobile/secsyms/SecurityTests.app.dSYM"
29 touch /System
/Library
/Caches
/com.apple.xpcd
/xpcd_cache.dylib
31 echo "Killing off old CloudKeychainProxy..."
32 killall
-9 CloudKeychainProxy
|| true
34 echo "Tell launchctl to load the new one"
35 launchctl load
-w /System
/Library
/LaunchDaemons
/com.apple.security.cloudkeychainproxy.plist
38 echo "Kill the old SyncTest"
39 killall
-9 SyncTest2
|| true
41 echo "Rebuild mobile app cache"
42 /usr
/local
/bin
/mobile_install rebuild internal
|| true