-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathpatch.sh
More file actions
executable file
·27 lines (18 loc) · 1.23 KB
/
patch.sh
File metadata and controls
executable file
·27 lines (18 loc) · 1.23 KB
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
#!/bin/bash
mkdir -p "submodules/incremental_delivery/sysprop/include/"
cp "misc/IncrementalProperties.sysprop.h" "submodules/incremental_delivery/sysprop/include/"
cp "misc/IncrementalProperties.sysprop.cpp" "submodules/incremental_delivery/sysprop/"
cp "misc/platform_tools_version.h" "submodules/soong/cc/libbuildversion/include"
# As our sources are in submodules and not in frameworks/base/tools/aapt2 we need to change the inclusions
configPattern="s#frameworks/base/tools/aapt2/Configuration.proto#Configuration.proto#g"
ressourcesPattern="s#frameworks/base/tools/aapt2/Resources.proto#Resources.proto#g"
sed -i "$configPattern" "submodules/base/tools/aapt2/Resources.proto"
sed -i "$configPattern" "submodules/base/tools/aapt2/ResourcesInternal.proto"
sed -i "$ressourcesPattern" "submodules/base/tools/aapt2/ApkInfo.proto"
sed -i "$ressourcesPattern" "submodules/base/tools/aapt2/ResourcesInternal.proto"
# Apply modification made by IBotPeaches for apktool
git apply "patches/apktool_ibotpeaches.patch"
git apply "patches/protobuf.patch"
# Fix BusError when executing a 32b binary on a armv8 with compatibility mode
git apply "patches/32bsystem_on_armv8.patch"
ln -sf "submodules/googletest" "submodules/boringssl/src/third_party/googletest"