From cd2ef4ef1cc91997c305925af7e24318cc00913a Mon Sep 17 00:00:00 2001 From: Chien-Yu Chen Date: Thu, 3 Dec 2015 16:32:12 -0800 Subject: [PATCH] Restart cameraserver Bug: 24511454 Change-Id: Ia27f4ef0eb71f891c789f637a21b04afe0b1c4e9 --- include/private/android_filesystem_config.h | 2 ++ rootdir/init.zygote32.rc | 1 + rootdir/init.zygote32_64.rc | 1 + rootdir/init.zygote64.rc | 1 + rootdir/init.zygote64_32.rc | 1 + 5 files changed, 6 insertions(+) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 85d6c1931..c220a0c62 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -88,6 +88,7 @@ #define AID_WEBSERV 1044 /* webservd process */ #define AID_DEBUGGERD 1045 /* debuggerd unprivileged user */ #define AID_MEDIA_CODEC 1046 /* mediacodec process */ +#define AID_CAMERASERVER 1047 /* cameraserver process */ #define AID_SHELL 2000 /* adb and debug shell user */ #define AID_CACHE 2001 /* cache access */ @@ -194,6 +195,7 @@ static const struct android_id_info android_ids[] = { { "webserv", AID_WEBSERV }, { "debuggerd", AID_DEBUGGERD, }, { "mediacodec", AID_MEDIA_CODEC, }, + { "cameraserver", AID_CAMERASERVER, }, { "shell", AID_SHELL, }, { "cache", AID_CACHE, }, diff --git a/rootdir/init.zygote32.rc b/rootdir/init.zygote32.rc index 53cfcc229..1b1d747ef 100644 --- a/rootdir/init.zygote32.rc +++ b/rootdir/init.zygote32.rc @@ -4,6 +4,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on onrestart restart audioserver + onrestart restart cameraserver onrestart restart media onrestart restart netd writepid /dev/cpuset/foreground/tasks /sys/fs/cgroup/stune/foreground/tasks diff --git a/rootdir/init.zygote32_64.rc b/rootdir/init.zygote32_64.rc index a9a94d736..04b88549c 100644 --- a/rootdir/init.zygote32_64.rc +++ b/rootdir/init.zygote32_64.rc @@ -4,6 +4,7 @@ service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-s onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on onrestart restart audioserver + onrestart restart cameraserver onrestart restart media onrestart restart netd writepid /dev/cpuset/foreground/tasks /sys/fs/cgroup/stune/foreground/tasks diff --git a/rootdir/init.zygote64.rc b/rootdir/init.zygote64.rc index 8f471743a..21ff647f3 100644 --- a/rootdir/init.zygote64.rc +++ b/rootdir/init.zygote64.rc @@ -4,6 +4,7 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on onrestart restart audioserver + onrestart restart cameraserver onrestart restart media onrestart restart netd writepid /dev/cpuset/foreground/tasks /sys/fs/cgroup/stune/foreground/tasks diff --git a/rootdir/init.zygote64_32.rc b/rootdir/init.zygote64_32.rc index 70a967815..257ae19b6 100644 --- a/rootdir/init.zygote64_32.rc +++ b/rootdir/init.zygote64_32.rc @@ -4,6 +4,7 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s onrestart write /sys/android_power/request_state wake onrestart write /sys/power/state on onrestart restart audioserver + onrestart restart cameraserver onrestart restart media onrestart restart netd writepid /dev/cpuset/foreground/tasks /sys/fs/cgroup/stune/foreground/tasks