Add audioserver uid and restart service when needed

Bug: 24511453
Change-Id: I6987a82149d23ad671478cf21488c62cb1ecfc93
This commit is contained in:
Andy Hung 2015-10-30 14:17:25 -07:00
parent cc84af6946
commit fec47527b4
5 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@
#define AID_DBUS 1038 /* dbus-daemon IPC broker process */
#define AID_TLSDATE 1039 /* tlsdate unprivileged user */
#define AID_MEDIA_EX 1040 /* mediaextractor process */
#define AID_AUDIOSERVER 1041 /* audioserver process */
#define AID_SHELL 2000 /* adb and debug shell user */
#define AID_CACHE 2001 /* cache access */
@ -180,6 +181,7 @@ static const struct android_id_info android_ids[] = {
{ "dbus", AID_DBUS, },
{ "tlsdate", AID_TLSDATE, },
{ "mediaex", AID_MEDIA_EX, },
{ "audioserver", AID_AUDIOSERVER, },
{ "shell", AID_SHELL, },
{ "cache", AID_CACHE, },

View File

@ -3,6 +3,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart audioserver
onrestart restart media
onrestart restart netd
writepid /dev/cpuset/foreground/tasks

View File

@ -3,6 +3,7 @@ service zygote /system/bin/app_process32 -Xzygote /system/bin --zygote --start-s
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart audioserver
onrestart restart media
onrestart restart netd
writepid /dev/cpuset/foreground/tasks

View File

@ -3,6 +3,7 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart audioserver
onrestart restart media
onrestart restart netd
writepid /dev/cpuset/foreground/tasks

View File

@ -3,6 +3,7 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s
socket zygote stream 660 root system
onrestart write /sys/android_power/request_state wake
onrestart write /sys/power/state on
onrestart restart audioserver
onrestart restart media
onrestart restart netd
writepid /dev/cpuset/foreground/tasks