-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpatch.sh
executable file
·37 lines (25 loc) · 953 Bytes
/
patch.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
#!/bin/bash
cd `dirname $0`
DSTDIR=$1
if [ -z "$DSTDIR" ]
then
echo "Usage: $0 <sources dir>"
exit 1
fi
red=$(tput setaf 1) # Red
grn=$(tput setaf 2) # Green
txtrst=$(tput sgr0) # Reset
echo "${grn}Applying nfc patch${txtrst}"
cat patches/1.nfc.patch | patch -d $DSTDIR/packages/apps/Nfc -p1 -N -r -
echo "${grn}Applying camera patch${txtrst}"
cat patches/2.camera.patch | patch -d $DSTDIR/frameworks/base/ -p1 -N -r -
echo "${grn}Applying relocs patch${txtrst}"
cat patches/3.relocs.patch | patch -d $DSTDIR/bionic/ -p1 -N -r -
echo "${grn}Applying build patch${txtrst}"
cat patches/4.build.patch | patch -d $DSTDIR/build/ -p1 -N -r -
echo "${grn}Applying frameworks lights patch${txtrst}"
cat patches/6.frame.patch | patch -d $DSTDIR/frameworks/base/ -p1 -N -r -
echo "${grn}Applying Settings patch${txtrst}"
cat patches/5.sett.patch | patch -d $DSTDIR/packages/apps/Settings -p1 -N -r -
#cd $DSTDIR
#find . -name '*.orig' -delete