sm8250-common: Set DSDS based on simcardnum.doublesim=1
Change-Id: Ib0ae4728b33aefeaf50f0c3c074481ef35ccb0b0
This commit is contained in:
@@ -51,6 +51,12 @@ sh_binary {
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "init.oplus.sh",
|
||||
src: "init.oplus.sh",
|
||||
device_specific: true,
|
||||
}
|
||||
|
||||
sh_binary {
|
||||
name: "init.qcom.early_boot.sh",
|
||||
src: "init.qcom.early_boot.sh",
|
||||
|
||||
@@ -79,6 +79,16 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,none,adb && pro
|
||||
write /config/usb_gadget/g1/idVendor 0x22D9
|
||||
write /config/usb_gadget/g1/idProduct 0x2766
|
||||
|
||||
# Radio
|
||||
on property:vendor.radio.multisim.config=*
|
||||
setprop persist.radio.multisim.config ${vendor.radio.multisim.config}
|
||||
|
||||
service oplus-sh /odm/bin/init.oplus.sh
|
||||
class late_start
|
||||
user system
|
||||
group system radio
|
||||
oneshot
|
||||
|
||||
service oplus_sensor_fb /odm/bin/oplus_sensor_fb
|
||||
user system
|
||||
group system
|
||||
|
||||
10
init/init.oplus.sh
Executable file
10
init/init.oplus.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /vendor/bin/sh
|
||||
#
|
||||
# Copyright (C) 2022 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if grep -q simcardnum.doublesim=1 /proc/cmdline; then
|
||||
setprop vendor.radio.multisim.config dsds
|
||||
fi
|
||||
Reference in New Issue
Block a user