From 3dca425300821842da891490c67a7abec4e0afcb Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Wed, 19 Jan 2022 17:36:16 +0100 Subject: [PATCH] sm7125: Update RIL and QMI to S *Explicitly build tether dependencies *Keep R libril since the build system needs it Change-Id: I0c2f2599e72287803f2d118e767ef226deb6d355 --- common.mk | 4 +++- configs/framework_compatibility_matrix.xml | 2 +- configs/manifest.xml | 18 +++------------ proprietary-files.txt | 27 +++++++++++----------- rootdir/etc/init.vendor.rilchip.rc | 4 ++-- rootdir/etc/init.vendor.rilcommon.rc | 1 - vendor.prop | 6 ++--- 7 files changed, 25 insertions(+), 37 deletions(-) diff --git a/common.mk b/common.mk index f682a71..d7ecb31 100644 --- a/common.mk +++ b/common.mk @@ -396,7 +396,9 @@ PRODUCT_PACKAGES += \ # Tether PRODUCT_PACKAGES += \ ipacm \ - IPACM_cfg.xml + IPACM_cfg.xml \ + android.hardware.tetheroffload.config@1.0.vendor \ + android.hardware.tetheroffload.control@1.0.vendor # WiFi PRODUCT_PACKAGES += \ diff --git a/configs/framework_compatibility_matrix.xml b/configs/framework_compatibility_matrix.xml index 0af05ca..5d4de0d 100644 --- a/configs/framework_compatibility_matrix.xml +++ b/configs/framework_compatibility_matrix.xml @@ -961,7 +961,7 @@ vendor.samsung.hardware.radio - 2.1 + 2.2 ISehRadio slot1 diff --git a/configs/manifest.xml b/configs/manifest.xml index 774bd16..8b4d948 100644 --- a/configs/manifest.xml +++ b/configs/manifest.xml @@ -465,25 +465,17 @@ @2.0::ISehMiscPower/default - - vendor.samsung.hardware.radio - hwbinder - vendor.samsung.hardware.radio hwbinder - 2.1 + 2.2 ISehRadio slot1 slot2 - @2.1::ISehRadio/slot1 - @2.1::ISehRadio/slot2 - - - vendor.samsung.hardware.radio.bridge - hwbinder + @2.2::ISehRadio/slot1 + @2.2::ISehRadio/slot2 vendor.samsung.hardware.radio.bridge @@ -497,10 +489,6 @@ @2.0::ISehBridge/slot1 @2.0::ISehBridge/slot2 - - vendor.samsung.hardware.radio.channel - hwbinder - vendor.samsung.hardware.radio.channel hwbinder diff --git a/proprietary-files.txt b/proprietary-files.txt index de0010b..db46551 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -918,6 +918,8 @@ vendor/lib64/libqcci_legacy.so vendor/lib64/libqdi.so vendor/lib64/libqdp.so vendor/lib64/libqsocket.so +vendor/lib64/libqmiservices-sem-ext.so +vendor/lib64/libqmiextservices.so vendor/etc/sec_config # QTI @@ -929,7 +931,6 @@ vendor/etc/ssg/ta_config.json vendor/bin/hw/rild vendor/bin/secril_config_svc vendor/bin/adpl -vendor/bin/ATFWD-daemon vendor/bin/netmgrd vendor/bin/ipacm-diag vendor/bin/tftp_server @@ -939,7 +940,6 @@ vendor/etc/init/ipacm-diag.rc vendor/etc/init/vendor.qti.tftp.rc vendor/etc/init/netmgrd.rc vendor/etc/init/vendor.qti.rmt_storage.rc -vendor/etc/seccomp_policy/atfwd@2.0.policy vendor/etc/data/dsi_config.xml vendor/etc/data/netmgr_config.xml vendor/etc/plmn_delta_usagsm.bin @@ -954,17 +954,10 @@ vendor/etc/plmn_delta_hktw.bin vendor/etc/mtu-conf.xml vendor/etc/sec_config_oem vendor/etc/pdpcnt-conf.xml -vendor/lib64/libsec-ril.so -vendor/lib64/libsec-ril-dsds.so -vendor/lib64/libsecril-client.so --vendor/lib/libril.so --vendor/lib64/libril.so -vendor/lib/librilqmiservices-ext.so -vendor/lib64/librilqmiservices-ext.so +vendor/lib64/libril_sem.so vendor/lib/libconfigdb.so vendor/lib64/libconfigdb.so vendor/lib64/libengmode_client.so -vendor/lib64/liblqe.so vendor/lib/libnetmgr.so vendor/lib/libnetmgr_common.so vendor/lib64/libnlnetmgr.so @@ -979,18 +972,24 @@ vendor/lib64/libsystem_health_mon.so vendor/lib64/libvkmanager_vendor.so vendor/lib/libxml.so vendor/lib64/libxml.so -vendor/lib/vendor.samsung.hardware.radio.bridge@2.0.so vendor/lib64/vendor.samsung.hardware.radio.bridge@2.0.so -vendor/lib/vendor.samsung.hardware.radio@2.0.so -vendor/lib/vendor.samsung.hardware.radio@2.1.so -vendor/lib64/vendor.qti.hardware.radio.atcmdfwd@1.0.so +vendor/lib64/vendor.samsung.hardware.radio.bridge@2.1.so vendor/lib64/vendor.samsung.hardware.radio@2.0.so vendor/lib64/vendor.samsung.hardware.radio.channel@2.0.so vendor/lib64/vendor.samsung.hardware.radio@2.1.so +vendor/lib64/vendor.samsung.hardware.radio@2.2.so vendor/lib/libdsi_netctrl.so vendor/lib64/libdsi_netctrl.so vendor/lib/libqcmaputils.so vendor/lib64/libqcmaputils.so +vendor/lib64/liboffloadhal.so +vendor/lib64/libipanat.so +vendor/lib64/libnfnetlink.so +vendor/lib64/libnetfilter_conntrack.so + +# A525FXXU4AUJ2 (R) +-vendor/lib/libril.so|b7759521aeb60a07b929e4ff53ba25338c4cd087 +-vendor/lib64/libril.so|49d4eebf79faefd03b8378c3ed07cf44730a15ff # Sensors vendor/bin/factory.ssc diff --git a/rootdir/etc/init.vendor.rilchip.rc b/rootdir/etc/init.vendor.rilchip.rc index 6f08bf7..bfc36db 100644 --- a/rootdir/etc/init.vendor.rilchip.rc +++ b/rootdir/etc/init.vendor.rilchip.rc @@ -7,14 +7,14 @@ service ril-daemon /vendor/bin/hw/rild class main user radio - group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock + group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock net_admin capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN SYS_TIME socket sap_uim_socket1 stream 660 bluetooth bluetooth service ril-daemon1 /vendor/bin/hw/rild -c 2 class main user radio - group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock + group radio cache inet misc audio log oem_2901 system drmrpc vpn readproc wakelock net_admin capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW SYS_ADMIN CHOWN SYS_TIME # QMUX must be in multiple groups to support external process connections diff --git a/rootdir/etc/init.vendor.rilcommon.rc b/rootdir/etc/init.vendor.rilcommon.rc index 1abe230..3fe8748 100644 --- a/rootdir/etc/init.vendor.rilcommon.rc +++ b/rootdir/etc/init.vendor.rilcommon.rc @@ -9,7 +9,6 @@ on post-fs-data mkdir /data/vendor/secradio 0770 radio radio - restorecon -R /data/vendor/secradio on property:ro.vendor.multisim.simslotcount=1 stop ril-daemon1 diff --git a/vendor.prop b/vendor.prop index 8362cdd..bc4289e 100644 --- a/vendor.prop +++ b/vendor.prop @@ -146,10 +146,10 @@ debug.stagefright.ccodec=1 # RIL vendor.sec.rild.libpath=/vendor/lib64/libsec-ril.so -vendor.sec.rild.libpath2=/vendor/lib64/libsec-ril-dsds.so -persist.vendor.radio.atfwd.start=true +ro.vendor.sec.radio.def_network=9 persist.vendor.radio.enableadvancedscan=true -ro.carrier=unknown +ro.telephony.default_cdma_sub=0 +ro.vendor.use_data_netmgrd=false ro.radio.noril=no ro.vendor.epdg.support=true