From 32f69204046c24c15ff2d2bac7122cbfd5896596 Mon Sep 17 00:00:00 2001 From: Hongguang Chen Date: Thu, 7 Sep 2023 21:15:00 -0700 Subject: [PATCH] Only restart media.tuner when it's running Fix: 287520719 Test: Kill system_server on TV device w/o tuner. media.tuner is not restarted. Change-Id: I13006f16746a12c33960feca1288aa17ef2ed9c9 --- rootdir/init.zygote32.rc | 2 +- rootdir/init.zygote64.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/init.zygote32.rc b/rootdir/init.zygote32.rc index 2f0ec8a17..442bd153f 100644 --- a/rootdir/init.zygote32.rc +++ b/rootdir/init.zygote32.rc @@ -13,7 +13,7 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys onrestart restart audioserver onrestart restart cameraserver onrestart restart media - onrestart restart media.tuner + onrestart restart --only-if-running media.tuner onrestart restart netd onrestart restart wificond task_profiles ProcessCapacityHigh diff --git a/rootdir/init.zygote64.rc b/rootdir/init.zygote64.rc index 74a64c80f..342212123 100644 --- a/rootdir/init.zygote64.rc +++ b/rootdir/init.zygote64.rc @@ -13,7 +13,7 @@ service zygote /system/bin/app_process64 -Xzygote /system/bin --zygote --start-s onrestart restart audioserver onrestart restart cameraserver onrestart restart media - onrestart restart media.tuner + onrestart restart --only-if-running media.tuner onrestart restart netd onrestart restart wificond task_profiles ProcessCapacityHigh MaxPerformance