sm8250-common: Set DSDS based on simcardnum.doublesim=1

Change-Id: Ib0ae4728b33aefeaf50f0c3c074481ef35ccb0b0
This commit is contained in:
LuK1337
2022-04-14 17:25:48 +02:00
parent 9fd2a3a103
commit b77a4354ff
4 changed files with 27 additions and 0 deletions

View File

@@ -276,6 +276,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
init.class_main.sh \
init.oplus.rc \
init.oplus.sh \
init.qcom.early_boot.sh \
init.qcom.post_boot.sh \
init.qcom.rc \

View File

@@ -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",

View File

@@ -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
View 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