Squashed 'LYNQ_PUBLIC/' changes from f3167cdb0..3d04c4df6
3d04c4df6 [Feature][T8TSK-289] chagne packagegroup-lync-mt2735 to packagegroup-lynq-mt2735
5a98de181 Merge "[Feature][ZK-65][mtklog] ftp log to soc 2 set max syslog size to 2700M"
dca9ff302 [Feature][ZK-65][mtklog] ftp log to soc 2 set max syslog size to 2700M
d36491f92 Merge "[Feature][ZK-65][mtklog] ftp log to soc"
4e37932a9 [Feature][T8TSK-289] add liblynq-at-fota, lynq-log-transfer & change packagegroup-lync-mt2735
5c0d3160b [Feature][ZK-65][mtklog] ftp log to soc
be7540ca5 [Feature][T8TSK-305][FOTA]fix fota to mergev2.0
305fadcb2 [bugfix][API-1525][call] answer call sometimes fail
b26cb1ccb [Feature][T8TSK-289] merge rndis_status of uci config from old platform branch
e1d75e9dc [Feature][T8TSK-289] merge lynq-ril-service from old platform branch
604e75d9c Merge "[Feature][T8TSK-289] add at+gpsinfo command"
67117dd03 Merge "[Feature][T8TSK-289] merge liblynq-sim from old platform branch"
24d54af81 [Feature][T8TSK-289] merge liblynq-sim from old platform branch
b990775f9 [Feature][T8TSK-289] add at+gpsinfo command
7a54b2130 [Feature][T8TSK-289] temp fix circle reboot caused by fota backup
git-subtree-dir: LYNQ_PUBLIC
git-subtree-split: 3d04c4df6c666dad1d8f09839b8f4989e26d22a4
Change-Id: I998dc04ab224e6fefdd82db6370791456784c560
diff --git a/common_src/framework/lynq-ril-service/src/stateManager/stateManager.cpp b/common_src/framework/lynq-ril-service/src/stateManager/stateManager.cpp
index 9e16b5e..d4f3ce3 100755
--- a/common_src/framework/lynq-ril-service/src/stateManager/stateManager.cpp
+++ b/common_src/framework/lynq-ril-service/src/stateManager/stateManager.cpp
@@ -47,6 +47,9 @@
#include "util/utils.h"
#include <cutils/jstring.h>
#include <liblog/lynq_deflog.h>
+#ifdef LED_SUPPORT
+#include "led.h"
+#endif
#undef LOG_TAG
#define LOG_TAG "DEMO_MANAGER"
@@ -96,7 +99,13 @@
size_t pos = p.dataPosition();
p.writeInt32(1);
- p.writeInt32(atoi(argv[1]));
+
+ int screen_state= atoi(argv[1]);
+ p.writeInt32(screen_state);
+#ifdef LED_SUPPORT
+ mbtk_netled_state_update(screen_state==0 ? GPIO_NETLED_AP_GOINGSLEEP : GPIO_NETLED_AP_WAKEUP);
+ usleep(wait_led_update_effective_timer_ms*1000);
+#endif
p.setDataPosition(pos);
pRI->pCI->dispatchFunction(p, pRI);