From 2aa2947bbc76d758a375e88a21a1818249167c95 Mon Sep 17 00:00:00 2001 From: zhong_ning Date: Tue, 13 Jul 2021 10:47:52 +0800 Subject: [PATCH 1/3] modify init.cfg Signed-off-by: zhong_ning --- services/etc/init.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/etc/init.cfg b/services/etc/init.cfg index 10f128c72..86c68c1a8 100755 --- a/services/etc/init.cfg +++ b/services/etc/init.cfg @@ -181,6 +181,8 @@ "chown system system /sys/power/state", "chown system system /sys/power/wakeup_count", "chmod 0660 /sys/power/state", + "chmod 0666 /dev/binder", + "chmod 0666 /dev/zbinder", "start logd", "start servicemanager", "start hwservicemanager", -- Gitee From 3a646eeaf6afeaed90feccf4b5c3fd36c460926f Mon Sep 17 00:00:00 2001 From: zhong_ning Date: Tue, 13 Jul 2021 13:36:35 +0800 Subject: [PATCH 2/3] modify init.cfg Signed-off-by: zhong_ning --- services/etc/init.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/services/etc/init.cfg b/services/etc/init.cfg index 86c68c1a8..25a1e2a94 100755 --- a/services/etc/init.cfg +++ b/services/etc/init.cfg @@ -182,7 +182,6 @@ "chown system system /sys/power/wakeup_count", "chmod 0660 /sys/power/state", "chmod 0666 /dev/binder", - "chmod 0666 /dev/zbinder", "start logd", "start servicemanager", "start hwservicemanager", -- Gitee From 81551c2b65c75f01d75e84ae6d019f95a12c85dc Mon Sep 17 00:00:00 2001 From: zhong_ning Date: Tue, 13 Jul 2021 14:41:12 +0800 Subject: [PATCH 3/3] modif log level Signed-off-by: zhong_ning --- services/src/init_cmds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/src/init_cmds.c b/services/src/init_cmds.c index 6db7b6fcb..66a55eabd 100644 --- a/services/src/init_cmds.c +++ b/services/src/init_cmds.c @@ -485,28 +485,28 @@ static void DoInsmod(const char *cmdContent) size_t count = strlen(cmdContent); if (count > OPTIONS_SIZE) { - INIT_LOGE("options too long, maybe lost some of options\n"); + INIT_LOGE("DoInsmod options too long, maybe lost some of options\n"); } line = (char *)malloc(count + 1); if (line == NULL) { - INIT_LOGE("Allocate memory failed.\n"); + INIT_LOGE("DoInsmod allocate memory failed.\n"); return; } if (memcpy_s(line, count, cmdContent, count) != EOK) { - INIT_LOGE("memcpy failed\n"); + INIT_LOGE("DoInsmod memcpy failed\n"); free(line); return; } line[count] = '\0'; do { if ((p = strtok_r(line, " ", &restPtr)) == NULL) { - INIT_LOGE("debug, cannot get filename\n"); + INIT_LOGE("DoInsmod cannot get filename.\n"); free(line); return; } fileName = p; - INIT_LOGE("debug, fileName is [%s]\n", fileName); + INIT_LOGI("DoInsmod fileName is [%s].\n", fileName); if ((p = strtok_r(NULL, " ", &restPtr)) == NULL) { break; } -- Gitee