-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathpatcher.sh
executable file
·50 lines (46 loc) · 2.08 KB
/
patcher.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
#!/bin/sh
# Apply these patches before compilation:
CUSTOM=$PWD/patcher/custom
SULTAN=$PWD/patcher/sultan
# Clean up first
git -C build clean -dfqx
git -C build reset -q --hard
git -C device/oppo/common clean -dfqx
git -C device/oppo/common reset -q --hard
git -C frameworks/av clean -dfqx
git -C frameworks/av reset -q --hard
git -C frameworks/base clean -dfqx
git -C frameworks/base reset -q --hard
git -C frameworks/native clean -dfqx
git -C frameworks/native reset -q --hard
git -C packages/apps/Gallery2 clean -dfqx
git -C packages/apps/Gallery2 reset -q --hard
git -C packages/apps/LockClock clean -dfqx
git -C packages/apps/LockClock reset -q --hard
git -C packages/apps/Settings clean -dfqx
git -C packages/apps/Settings reset -q --hard
git -C system/core clean -dfqx
git -C system/core reset -q --hard
git -C vendor/cm clean -dfqx
git -C vendor/cm reset -q --hard
### Sultan's patches
git -C build apply $SULTAN/build0.patch
git -C device/oppo/common apply $SULTAN/device-oppo-common0.patch
git -C frameworks/av apply $SULTAN/frameworks-av0.patch
git -C frameworks/base apply $SULTAN/frameworks-base0.patch
git -C frameworks/base apply $SULTAN/frameworks-base1.patch
git -C frameworks/base apply $SULTAN/frameworks-base2.patch
git -C frameworks/base apply $SULTAN/frameworks-base3.patch
git -C frameworks/base apply $SULTAN/frameworks-base4.patch
git -C frameworks/native apply $SULTAN/frameworks-native0.patch
git -C packages/apps/LockClock apply $SULTAN/packages-apps-LockClock0.patch
git -C packages/apps/Settings apply $SULTAN/packages-apps-Settings0.patch
git -C system/core apply $SULTAN/system-core0.patch
git -C system/core apply $SULTAN/system-core1.patch
git -C vendor/cm apply $SULTAN/vendor-cm0.patch
git -C vendor/cm apply $SULTAN/vendor-cm1.patch
### Custom patches
git -C frameworks/av apply $CUSTOM/frameworks-av0.patch
git -C packages/apps/Gallery2 apply $CUSTOM/packages-apps-Gallery20.patch
git -C packages/apps/Gallery2 apply $CUSTOM/packages-apps-Gallery21.patch
git -C packages/apps/Gallery2 apply $CUSTOM/packages-apps-Gallery22.patch