gts4lv: Finish telephony features bringup

Change-Id: Ifb7b2550cf3adce6ff3a6d4351e97882c3a611f2
This commit is contained in:
Bruno Martins
2020-10-31 15:04:01 +00:00
parent 85ea759504
commit 43b50c926f
5 changed files with 97 additions and 2 deletions

View File

@@ -32,5 +32,12 @@ DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
TARGET_KERNEL_CONFIG := gts4lv_defconfig
BOARD_MKBOOTIMG_ARGS += --board $(TARGET_BOARD_NAME)
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# RIL
BOARD_PROVIDES_LIBRIL := true
ENABLE_VENDOR_RIL_SERVICE := true
# inherit from the proprietary version
-include vendor/samsung/gts4lv/BoardConfigVendor.mk

View File

@@ -17,11 +17,25 @@
# Get non-open-source specific aspects
$(call inherit-product-if-exists, vendor/samsung/gts4lv/gts4lv-vendor.mk)
# Local overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
# Device init scripts
PRODUCT_PACKAGES += \
init.gts4lv.rc \
init.vendor.rilchip.rc \
init.vendor.rilcommon.rc
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml
# RIL
PRODUCT_PACKAGES += \
librmnetctl \
libxml2
# Inherit from gts4lv-common
$(call inherit-product, device/samsung/gts4lv-common/gts4lv.mk)

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2013, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- This string array should be overridden by the device to present a list of network
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[Connection name],[ConnectivityManager.TYPE_xxxx],
[associated radio-type],[priority],[restoral-timer(ms)],[dependencyMet] -->
<!-- the 5th element "resore-time" indicates the number of milliseconds to delay
before automatically restore the default connection. Set -1 if the connection
does not require auto-restore. -->
<!-- the 6th element indicates boot-time dependency-met value. -->
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1,-1,true"</item>
<item>"mobile,0,0,0,-1,true"</item>
<item>"mobile_mms,2,0,2,240000,true"</item>
<item>"mobile_supl,3,0,2,60000,true"</item>
<item>"mobile_dun,4,0,2,60000,true"</item>
<item>"mobile_hipri,5,0,3,60000,true"</item>
<item>"bluetooth,7,7,0,-1,true"</item>
<item>"ethernet,9,9,2,-1,true"</item>
<item>"mobile_fota,10,0,2,60000,true"</item>
<item>"mobile_ims,11,0,1,-1,true"</item>
<item>"mobile_cbs,12,0,2,60000,true"</item>
<item>"wifi_p2p,13,1,0,-1,true"</item>
<item>"mobile_ia,14,0,2,-1,true"</item>
<item>"mobile_emergency,15,0,2,-1,true"</item>
<item>"mobile_bip,23,0,2,60000,true"</item>
<item>"mobile_cas,24,0,3,60000,true"</item>
<item>"mobile_xcap,27,0,2,60000,true"</item>
<item>"mobile_ent1,28,0,2,-1,true"</item>
<item>"mobile_mcx,32,0,2,-1,true"</item>
<item>"mobile_foc,30,0,2,-1,true"</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of radio
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
<!-- An Array of "[ConnectivityManager connectionType],
[# simultaneous connection types]" -->
<string-array translatable="false" name="radioAttributes">
<item>"1,1"</item>
<item>"0,1"</item>
</string-array>
</resources>

View File

@@ -27,6 +27,7 @@ vendor/etc/audconf/OPEN/Speaker_cal.acdb
vendor/etc/audconf/OPEN/workspaceFile.qwsp
# RIL
vendor/bin/hw/rild
vendor/bin/adpl
vendor/bin/ATFWD-daemon
vendor/bin/netmgrd
@@ -46,14 +47,14 @@ vendor/etc/plmn_delta_hktw.bin
vendor/etc/plmn_delta_usagsm.bin
vendor/etc/plmn_se13.bin
vendor/etc/sec_config_oem
vendor/lib/libril.so
-vendor/lib/libril.so
vendor/lib64/libconfigdb.so
vendor/lib64/liblqe.so
vendor/lib64/libnetmgr.so
vendor/lib64/libnetmgr_common.so
vendor/lib64/libpdnotifier.so
vendor/lib64/libqrtr.so
vendor/lib64/libril.so
-vendor/lib64/libril.so
vendor/lib64/librilutils.so
vendor/lib64/libsec-ril.so
vendor/lib64/libsystem_health_mon.so

9
vendor.prop Normal file
View File

@@ -0,0 +1,9 @@
# RIL
ro.carrier=unknown
ro.radio.noril=no
ro.vendor.epdg.support=true
ro.vendor.multisim.simslotcount=1
ro.vendor.use_data_netmgrd=false
persist.radio.multisim.config=ss
persist.vendor.radio.atfwd.start=true
vendor.sec.rild.libpath=/vendor/lib64/libsec-ril.so