ril: Restart 1st qcrild after SIM config changed
Bug: 143519042
Test: SIM switch from SSIM to DSDS
SIM switch from DSDS to SSIM
Change-Id: Ib6bbcc5c3c17a96ca5f11fb0e8fdb72b4becad1e
diff --git a/init.hardware.rc b/init.hardware.rc
index 6af35e9..0c7e6f4 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -852,6 +852,13 @@
chown system system /sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input2/suspend
# DSDS feature
+# Restart 1st qcrild after SIM config changed
+on property:vendor.radio.sim_num.switch=1to2 && property:persist.radio.multisim.config=dsds
+ restart vendor.qcrild
+
+on property:vendor.radio.sim_num.switch=2to1 && property:persist.radio.multisim.config=
+ restart vendor.qcrild
+
# Enable 2nd qcrild when the property set to dsds
on property:persist.radio.multisim.config=dsds
start vendor.qcrild2