diff options
| author | Moyster <oysterized@gmail.com> | 2018-02-14 14:21:45 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-05-26 14:04:14 +0200 |
| commit | a7c266a3d336f1d6313076d44dbed55f42346c0b (patch) | |
| tree | 9cbac950a11afaa8e6fe22af1b6f4e260b7141e1 | |
| parent | db9f3c5a0dd5203ccf5f55eeec9f0859038c1f65 (diff) | |
patch: rebase on lineage-15.1 branch
| -rw-r--r-- | patches/build/soong/0001-build-soong-add-BOARD_USES_MTK_HARDWARE.patch | 28 | ||||
| -rw-r--r-- | patches/system/core/0002-gatekeeperd-Add-use-software-gatekeeper-option.patch | 21 |
2 files changed, 24 insertions, 25 deletions
diff --git a/patches/build/soong/0001-build-soong-add-BOARD_USES_MTK_HARDWARE.patch b/patches/build/soong/0001-build-soong-add-BOARD_USES_MTK_HARDWARE.patch index 9e41933..e5ab374 100644 --- a/patches/build/soong/0001-build-soong-add-BOARD_USES_MTK_HARDWARE.patch +++ b/patches/build/soong/0001-build-soong-add-BOARD_USES_MTK_HARDWARE.patch @@ -1,4 +1,4 @@ -From 761f370fd3ed00aa31de3cc745e8d4479151a06b Mon Sep 17 00:00:00 2001 +From b737c64ed265f4b2c6094f8efbb320e76b99b888 Mon Sep 17 00:00:00 2001 From: Mister Oyster <oysterized@gmail.com> Date: Sun, 3 Sep 2017 16:45:22 +0200 Subject: [PATCH] build: soong: add BOARD_USES_MTK_HARDWARE (v2) @@ -14,10 +14,10 @@ Change-Id: I9affcbc31411c9f1b22ae9ce19e12144012d0cc7 3 files changed, 16 insertions(+) diff --git a/android/config.go b/android/config.go -index 686eeb8..268d121 100644 +index aa0ac82..f4065cb 100644 --- a/android/config.go +++ b/android/config.go -@@ -473,6 +473,10 @@ func (c *deviceConfig) BtConfigIncludeDir() string { +@@ -519,6 +519,10 @@ func (c *deviceConfig) BtConfigIncludeDir() string { return String(c.config.ProductVariables.BtConfigIncludeDir) } @@ -25,14 +25,14 @@ index 686eeb8..268d121 100644 + return Bool(c.config.ProductVariables.Mtk_hardware) +} + - func (c *deviceConfig) NativeCoverageEnabled() bool { - return Bool(c.config.ProductVariables.NativeCoverage) + func (c *deviceConfig) DeviceKernelHeaderDirs() []string { + return c.config.ProductVariables.DeviceKernelHeaders } diff --git a/android/variable.go b/android/variable.go -index 13456f1..40ecafd 100644 +index 6113063..2adc563 100644 --- a/android/variable.go +++ b/android/variable.go -@@ -60,6 +60,13 @@ type variableProperties struct { +@@ -69,6 +69,13 @@ type variableProperties struct { Cflags []string } @@ -46,19 +46,19 @@ index 13456f1..40ecafd 100644 // treble is true when a build is a Treble compliant device. This is automatically set when // a build is shipped with Android O, but can be overriden. This controls such things as // the sepolicy split and enabling the Treble linker namespaces. -@@ -133,6 +140,7 @@ type productVariables struct { +@@ -143,6 +150,7 @@ type productVariables struct { Eng *bool `json:",omitempty"` EnableCFI *bool `json:",omitempty"` - Treble *bool `json:",omitempty"` + Device_uses_hwc2 *bool `json:",omitempty"` + Mtk_hardware *bool `json:",omitempty"` - - VendorPath *string `json:",omitempty"` + Treble *bool `json:",omitempty"` + Pdk *bool `json:",omitempty"` diff --git a/cc/compiler.go b/cc/compiler.go -index aed4480..415eed3 100644 +index c7fcca7..07fdf61 100644 --- a/cc/compiler.go +++ b/cc/compiler.go -@@ -314,6 +314,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag +@@ -336,6 +336,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags) Flag flags.GlobalFlags = append(flags.GlobalFlags, "-D__BRILLO__") } @@ -70,5 +70,5 @@ index aed4480..415eed3 100644 if Bool(compiler.Properties.Rtti) { flags.CppFlags = append(flags.CppFlags, "-frtti") -- -2.11.0 +2.14.1 diff --git a/patches/system/core/0002-gatekeeperd-Add-use-software-gatekeeper-option.patch b/patches/system/core/0002-gatekeeperd-Add-use-software-gatekeeper-option.patch index 76ed031..f8324b5 100644 --- a/patches/system/core/0002-gatekeeperd-Add-use-software-gatekeeper-option.patch +++ b/patches/system/core/0002-gatekeeperd-Add-use-software-gatekeeper-option.patch @@ -1,4 +1,4 @@ -From b5a73b765859c8bcafdbfac5a4d8306550db4286 Mon Sep 17 00:00:00 2001 +From 382dd714f41f45f5e2e0ea908bed288b2d55a32a Mon Sep 17 00:00:00 2001 From: danielhk <daniel.p6800@gmail.com> Date: Fri, 22 Dec 2017 23:35:45 +0800 Subject: [PATCH] gatekeeperd:Add use software gatekeeper option @@ -6,14 +6,14 @@ Subject: [PATCH] gatekeeperd:Add use software gatekeeper option Add BOARD_USE_SOFT_GATEKEEPER flag to use software gatekeeper. --- gatekeeperd/Android.mk | 4 ++++ - gatekeeperd/gatekeeperd.cpp | 5 ++++- - 2 files changed, 8 insertions(+), 1 deletion(-) + gatekeeperd/gatekeeperd.cpp | 4 ++++ + 2 files changed, 8 insertions(+) diff --git a/gatekeeperd/Android.mk b/gatekeeperd/Android.mk -index 0dfd9d8a9..652c21d29 100644 +index 28f0b07ab..acb1114d1 100644 --- a/gatekeeperd/Android.mk +++ b/gatekeeperd/Android.mk -@@ -39,6 +39,10 @@ LOCAL_SHARED_LIBRARIES := \ +@@ -38,6 +38,10 @@ LOCAL_SHARED_LIBRARIES := \ libhwbinder \ android.hardware.gatekeeper@1.0 \ @@ -25,22 +25,21 @@ index 0dfd9d8a9..652c21d29 100644 LOCAL_C_INCLUDES := external/scrypt/lib/crypto LOCAL_INIT_RC := gatekeeperd.rc diff --git a/gatekeeperd/gatekeeperd.cpp b/gatekeeperd/gatekeeperd.cpp -index e6eb3bc25..85ca97259 100644 +index 61c880409..67160642e 100644 --- a/gatekeeperd/gatekeeperd.cpp +++ b/gatekeeperd/gatekeeperd.cpp -@@ -56,8 +56,11 @@ static const String16 DUMP_PERMISSION("android.permission.DUMP"); - class GateKeeperProxy : public BnGateKeeperService { +@@ -57,7 +57,11 @@ class GateKeeperProxy : public BnGateKeeperService { public: GateKeeperProxy() { + clear_state_if_needed_done = false; +#ifdef USE_SOFT_GATEKEEPER + hw_device = nullptr; +#else hw_device = IGatekeeper::getService(); -- +#endif + if (hw_device == nullptr) { ALOGW("falling back to software GateKeeper"); - soft_device.reset(new SoftGateKeeperDevice()); -- -2.11.0 +2.14.1 |
