klte-common: Enable single/dual SIM support with fragments
* klte-common has to support both single- and dual-SIM devices, and there are multiple devices of each kind. It makes most sense to provide fragments in the -common tree that these devices can inherit to configure HIDL manifest, system properties, audio support, and any additional services necessary for MSIM support. Change-Id: Ic3b04fa500615c33cef9b0f0a999209150969123
This commit is contained in:
parent
1dbfdd79c5
commit
7915dc24f9
8 changed files with 71 additions and 23 deletions
22
manifest.xml
22
manifest.xml
|
@ -26,28 +26,6 @@
|
|||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISap</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.deprecated</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IOemHook</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.vibrator</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
|
|
9
radio/dual/board.mk
Normal file
9
radio/dual/board.mk
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Audio
|
||||
AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
|
||||
AUDIO_FEATURE_SAMSUNG_DUAL_SIM := true
|
||||
|
||||
# Properties
|
||||
TARGET_SYSTEM_PROP += $(COMMON_PATH)/radio/dual/system.prop
|
||||
|
||||
# Radio/RIL
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/radio/dual/manifest.xml
|
27
radio/dual/manifest.xml
Normal file
27
radio/dual/manifest.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISap</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.deprecated</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IOemHook</name>
|
||||
<instance>slot1</instance>
|
||||
<instance>slot2</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
3
radio/dual/product.mk
Normal file
3
radio/dual/product.mk
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Radio/RIL
|
||||
PRODUCT_PACKAGES += \
|
||||
init.dsds.rc
|
5
radio/dual/system.prop
Normal file
5
radio/dual/system.prop
Normal file
|
@ -0,0 +1,5 @@
|
|||
# RIL
|
||||
persist.radio.multisim.config=dsds
|
||||
ro.multisim.simslotcount=2
|
||||
ro.multisim.set_audio_params=true
|
||||
ro.telephony.ril.config=simactivation
|
2
radio/single/board.mk
Normal file
2
radio/single/board.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Radio/RIL
|
||||
DEVICE_MANIFEST_FILE += $(COMMON_PATH)/radio/single/manifest.xml
|
24
radio/single/manifest.xml
Normal file
24
radio/single/manifest.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IRadio</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
<interface>
|
||||
<name>ISap</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.radio.deprecated</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IOemHook</name>
|
||||
<instance>slot1</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
</manifest>
|
|
@ -27,7 +27,7 @@
|
|||
#
|
||||
|
||||
import init.qcom.usb.rc
|
||||
import init.target.rc
|
||||
import init.dsds.rc
|
||||
|
||||
on early-init
|
||||
export LD_SHIM_LIBS /system/vendor/lib/hw/camera.vendor.msm8974.so|libshim_camera.so:/system/lib/libcutils.so|libshim_cutils_atomic.so
|
||||
|
|
Loading…
Reference in a new issue