forked from YumeMichi/patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
patcher.sh
executable file
·57 lines (49 loc) · 1.35 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
51
52
53
54
55
56
57
#!/bin/bash
ROOT="${PWD}"
PROTONAOSP=(
'art'
'bionic'
'bootable/recovery'
'build/soong'
'external/tinycompress'
'frameworks/av'
'frameworks/opt/net/ims'
'hardware/libhardware'
'hardware/qcom/display'
'hardware/qcom/media'
'hardware/qcom/wlan'
'packages/apps/Nfc'
'packages/apps/PhoneCommon'
'packages/modules/common'
'system/libhidl'
'system/libhwbinder'
'system/libsysprop'
'vendor/qcom/opensource/audio-hal/primary-hal'
'vendor/qcom/opensource/commonsys-intf/bluetooth'
'vendor/qcom/opensource/commonsys/packages/apps/Bluetooth'
'vendor/qcom/opensource/core-utils'
'vendor/qcom/opensource/data-ipa-cfg-mgr'
'vendor/qcom/opensource/dataservices'
'vendor/qcom/opensource/power'
'vendor/qcom/opensource/usb'
'vendor/qcom/opensource/vibrator'
)
ASB0805=(
'frameworks/av'
'frameworks/base'
'frameworks/native'
'packages/apps/Settings'
'packages/providers/ContactsProvider'
'system/bt'
'vendor/qcom/opensource/commonsys/system/bt'
)
for repository in "${PROTONAOSP[@]}"; do
cd "${ROOT}/${repository}"
git am --keep-cr "${ROOT}/patcher/protonaosp/${repository}"/*
cd "${ROOT}"
done
for repository in "${ASB0805[@]}"; do
cd "${ROOT}/${repository}"
git am --keep-cr "${ROOT}/patcher/asb_0805/${repository}"/*
cd "${ROOT}"
done