summaryrefslogtreecommitdiff
path: root/device-common.mk
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2021-08-18 17:42:32 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2021-08-18 17:47:47 +0800
commit4b5a0f8e11d175f0e83c1c3475f271321e74f07b (patch)
tree3de99f48a4bcf852cdae65f0b0b3d6340161abe0 /device-common.mk
parent03c11dfce22a389404b492ed9475adc3441774dc (diff)
downloadhikey-4b5a0f8e11d175f0e83c1c3475f271321e74f07b.tar.gz
suspend_blocker: Use Cuttlefish's workaround to avoid suspending the device
Reuse Cuttlefish's suspend blocker service to avoid suspending the device while running CTS tests. This is actuallly a cherry-pick of Amit's change on db845c here: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/1723130 The problem is that "adb shell stop" is causing a PM suspend and subsequent loss of adb connectivity. The problem could also be reproduced by the vts ltp test. Test: booted to homescreen with hikey and hikey960 board, and adb shell stop does not cause suspend any more Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I290faa5182135a619c4053d12a88a2d534641d7f
Diffstat (limited to 'device-common.mk')
-rw-r--r--device-common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/device-common.mk b/device-common.mk
index 1eb2e56f..e5506ec2 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -253,3 +253,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl-cuttlefish \
android.hardware.health@2.1-service
+
+# TODO: disable this service once we implement system suspend
+PRODUCT_PACKAGES += \
+ suspend_blocker