diff --git a/patches/apply-patch.sh b/patches/apply-patch.sh index 20b8620..2316cb9 100644 --- a/patches/apply-patch.sh +++ b/patches/apply-patch.sh @@ -35,6 +35,9 @@ cd ../../.. #cd system/core #git apply -v ../../device/mediatek/mt6753_common/patches/system_core/prevent-MTK-audio-and-silead-fingerprint-libs-from-spamming-log.patch #cd ../.. +cd build/ +git apply -v ../device/mediatek/mt6753_common/patches/build/0001-Replace-dev-keys-flag-by-release-flag-to-trick-Googl.patch +cd .. cd system/netd git apply -v ../../device/mediatek/mt6753_common/patches/system_netd/hotpost-fix.patch cd ../.. diff --git a/patches/build/0001-Replace-dev-keys-flag-by-release-flag-to-trick-Googl.patch b/patches/build/0001-Replace-dev-keys-flag-by-release-flag-to-trick-Googl.patch new file mode 100644 index 0000000..cbd2251 --- /dev/null +++ b/patches/build/0001-Replace-dev-keys-flag-by-release-flag-to-trick-Googl.patch @@ -0,0 +1,27 @@ +From d7fd2b84d90789f3020bc6aecf19dd7ba7d222e7 Mon Sep 17 00:00:00 2001 +From: Moyster +Date: Sat, 19 Nov 2016 21:26:22 +0100 +Subject: [PATCH] Replace dev-keys flag by release-flag to trick Google Apps + like Android Wear + +Change-Id: Icc37b9c7a31704f0a26dd37f3d7a74c21ea97d09 +--- + core/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/core/Makefile b/core/Makefile +index 9ab196a..52aa385 100644 +--- a/core/Makefile ++++ b/core/Makefile +@@ -111,7 +111,7 @@ endif + ifeq ($(DEFAULT_SYSTEM_DEV_CERTIFICATE),build/target/product/security/testkey) + BUILD_KEYS := test-keys + else +-BUILD_KEYS := dev-keys ++BUILD_KEYS := release-keys + endif + BUILD_VERSION_TAGS += $(BUILD_KEYS) + BUILD_VERSION_TAGS := $(subst $(space),$(comma),$(sort $(BUILD_VERSION_TAGS))) +-- +2.9.3 + diff --git a/patches/uninstall.sh b/patches/uninstall.sh index c61398c..cd1cb2f 100644 --- a/patches/uninstall.sh +++ b/patches/uninstall.sh @@ -4,7 +4,7 @@ echo $1 rootdirectory="$PWD" # --------------------------------- -dirs="frameworks/av frameworks/base frameworks/opt/telephony hardware/libhardware hardware/libhardware_legacy packages/apps/Settings packages/services/telephony system/core system/netd" +dirs="build frameworks/av frameworks/base frameworks/opt/telephony hardware/libhardware hardware/libhardware_legacy packages/apps/Settings packages/services/telephony system/core system/netd" VENDOR=meizu DEVICE=m2note