解决VtsHalLightTargetTest问题

一、问题描述:

解决VtsHalLightTargetTest问题_第1张图片

二、解决方案:

Date: Fri, 14 Jul 2023 11:14:31 +0800
Subject: [PATCH] fix: 解决VtsHalLightTargetTest问题

Description:依据报错修改代码

Self Test:Pass

Change-Id: Ia0bca62480cd26845b285ae61c3d8264d8555d9a
---

diff --git a/aidl/default/Lights.cpp b/aidl/default/Lights.cpp
index d17856d..86b4131 100644
--- a/aidl/default/Lights.cpp
+++ b/aidl/default/Lights.cpp
@@ -179,7 +179,7 @@
     if (nowStatus == 0) {
             ret = write_int(RED_LED_FILE, 0);
     }
-    else if (nowStatus == 1) {
+    /*else if (nowStatus == 1) {
 //            write_int(RED_LED_FILE, level); // default full brightness
         ret = write_str(RED_TRIGGER_FILE, "timer");
         while (((access(RED_DELAY_OFF_FILE, F_OK) == -1) || (access(RED_DELAY_OFF_FILE, R_OK|W_OK) == -1)) && i<10) {
@@ -189,9 +189,9 @@
         }
         ret = write_int(RED_DELAY_OFF_FILE, offMS);
         ret = write_int(RED_DELAY_ON_FILE, onMS);
-    }
+    }*/
     else {
-        ret = write_str(RED_TRIGGER_FILE, "none");
+        //ret = write_str(RED_TRIGGER_FILE, "none");
         ret = write_int(RED_LED_FILE, 255); // default full brightness
     }

你可能感兴趣的:(GMS-GTS,android,gms)