-
Notifications
You must be signed in to change notification settings - Fork 5
/
patchddi.sh
executable file
·84 lines (84 loc) · 4.23 KB
/
patchddi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# run as root
set -e
hdiutil convert -format UDRW -o DeveloperDiskImageModified_16.1.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.1/DeveloperDiskImage.dmg
hdiutil convert -format UDRW -o DeveloperDiskImageModified_16.0.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.0/DeveloperDiskImage.dmg
hdiutil convert -format UDRW -o DeveloperDiskImageModified_15.7.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.7/DeveloperDiskImage.dmg
hdiutil convert -format UDRW -o DeveloperDiskImageModified_15.6.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.6/DeveloperDiskImage.dmg
hdiutil convert -format UDRW -o DeveloperDiskImageModified_15.5.dmg /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.5/DeveloperDiskImage.dmg
hdiutil attach -owners on DeveloperDiskImageModified_16.1.dmg
for i in com.apple.debugserver.plist
do
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
for i in com.apple.ps.plist
do
ln -s ../../../bin/ps /Volumes/DeveloperDiskImage/usr/bin/
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
hdiutil detach /Volumes/DeveloperDiskImage
hdiutil attach -owners on DeveloperDiskImageModified_16.0.dmg
for i in com.apple.debugserver.plist
do
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
for i in com.apple.ps.plist
do
ln -s ../../../bin/ps /Volumes/DeveloperDiskImage/usr/bin/
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
hdiutil detach /Volumes/DeveloperDiskImage
hdiutil attach -owners on DeveloperDiskImageModified_15.7.dmg
for i in com.apple.debugserver.plist
do
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
for i in com.apple.ps.plist
do
ln -s ../../../bin/ps /Volumes/DeveloperDiskImage/usr/bin/
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
hdiutil detach /Volumes/DeveloperDiskImage
hdiutil attach -owners on DeveloperDiskImageModified_15.6.dmg
for i in com.apple.debugserver.plist
do
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
for i in com.apple.ps.plist
do
ln -s ../../../bin/ps /Volumes/DeveloperDiskImage/usr/bin/
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
hdiutil detach /Volumes/DeveloperDiskImage
hdiutil attach -owners on DeveloperDiskImageModified_15.5.dmg
for i in com.apple.debugserver.plist
do
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
for i in com.apple.ps.plist
do
ln -s ../../../bin/ps /Volumes/DeveloperDiskImage/usr/bin/
cp $i /Volumes/DeveloperDiskImage/Library/LaunchDaemons/
chown root:wheel /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
chmod 644 /Volumes/DeveloperDiskImage/Library/LaunchDaemons/$i
done
hdiutil detach /Volumes/DeveloperDiskImage
bash signddi.sh