]>
Commit | Line | Data |
---|---|---|
427c49bc A |
1 | #!/bin/sh |
2 | ||
3 | # This script should be run as root on the target device | |
4 | ||
5 | if [ $(id -u) != "0" ]; then | |
6 | echo "You must be root to run this script" >&2 | |
7 | exit 1 | |
8 | fi | |
9 | ||
10 | echo "-----------------------------------------------" | |
11 | echo "Tell launchctl to unload the old one" | |
12 | launchctl unload -w /System/Library/LaunchDaemons/com.apple.security.cloudkeychainproxy.plist | |
13 | ||
14 | echo "call darwinup install" | |
15 | darwinup install /var/mobile/security.roots.tgz | |
16 | ||
17 | /usr/local/bin/darwinup uninstall superseded > /dev/null 2>&1 || true | |
18 | ||
19 | echo "Untar sym files" | |
20 | symdir="/var/mobile/secsyms" | |
21 | if [ ! -d "$symdir" ]; then | |
22 | mkdir $symdir | |
23 | fi | |
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" | |
27 | ||
28 | echo "touch cache" | |
29 | touch /System/Library/Caches/com.apple.xpcd/xpcd_cache.dylib | |
30 | ||
31 | echo "Killing off old CloudKeychainProxy..." | |
32 | killall -9 CloudKeychainProxy || true | |
33 | ||
34 | echo "Tell launchctl to load the new one" | |
35 | launchctl load -w /System/Library/LaunchDaemons/com.apple.security.cloudkeychainproxy.plist | |
36 | echo "done" | |
37 | ||
38 | echo "Kill the old SyncTest" | |
39 | killall -9 SyncTest2 || true | |
40 | ||
41 | echo "Rebuild mobile app cache" | |
42 | /usr/local/bin/mobile_install rebuild internal || true |