sm8250-common: Set DSDS based on simcardnum.doublesim=1
Change-Id: Ib0ae4728b33aefeaf50f0c3c074481ef35ccb0b0
This commit is contained in:
@@ -276,6 +276,7 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
init.class_main.sh \
|
init.class_main.sh \
|
||||||
init.oplus.rc \
|
init.oplus.rc \
|
||||||
|
init.oplus.sh \
|
||||||
init.qcom.early_boot.sh \
|
init.qcom.early_boot.sh \
|
||||||
init.qcom.post_boot.sh \
|
init.qcom.post_boot.sh \
|
||||||
init.qcom.rc \
|
init.qcom.rc \
|
||||||
|
|||||||
@@ -51,6 +51,12 @@ sh_binary {
|
|||||||
vendor: true,
|
vendor: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sh_binary {
|
||||||
|
name: "init.oplus.sh",
|
||||||
|
src: "init.oplus.sh",
|
||||||
|
device_specific: true,
|
||||||
|
}
|
||||||
|
|
||||||
sh_binary {
|
sh_binary {
|
||||||
name: "init.qcom.early_boot.sh",
|
name: "init.qcom.early_boot.sh",
|
||||||
src: "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/idVendor 0x22D9
|
||||||
write /config/usb_gadget/g1/idProduct 0x2766
|
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
|
service oplus_sensor_fb /odm/bin/oplus_sensor_fb
|
||||||
user system
|
user system
|
||||||
group 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