diff --git a/Android.bp b/Android.bp index 74365d9..0203482 100644 --- a/Android.bp +++ b/Android.bp @@ -3353,6 +3353,39 @@ cc_prebuilt_library_shared { soc_specific: true, } +cc_prebuilt_library_shared { + name: "lbs_hidl_service-impl", + owner: "xiaomi", + strip: { + none: true, + }, + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/lib64/lbs_hidl_service-impl.so", + ], + shared_libs: [ + "liblog", + "libcutils", + "libbase", + "libhardware", + "libbinder", + "libhidlbase", + "libhidltransport", + "libutils", + "vendor.mediatek.hardware.lbs@1.0", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + prefer: true, + soc_specific: true, +} + cc_prebuilt_library_shared { name: "lc_algoutils", owner: "xiaomi", @@ -14067,6 +14100,15 @@ prebuilt_etc_xml { soc_specific: true, } +prebuilt_etc_xml { + name: "lbs_hidl_service@1.0.xml", + owner: "xiaomi", + src: "proprietary/vendor/etc/vintf/manifest/lbs_hidl_service@1.0.xml", + filename_from_src: true, + sub_dir: "vintf/manifest", + soc_specific: true, +} + prebuilt_etc_xml { name: "manifest_android.hardware.drm-service.widevine.xml", owner: "xiaomi", @@ -14816,6 +14858,40 @@ cc_prebuilt_binary { soc_specific: true, } +cc_prebuilt_binary { + name: "lbs_hidl_service", + owner: "xiaomi", + target: { + android_arm64: { + srcs: [ + "proprietary/vendor/bin/lbs_hidl_service", + ], + shared_libs: [ + "liblog", + "libcutils", + "libbase", + "libhardware", + "libbinder", + "libhidlbase", + "libhidltransport", + "libutils", + "vendor.mediatek.hardware.lbs@1.0", + "lbs_hidl_service-impl", + "libc++", + "libc", + "libm", + "libdl", + ], + }, + }, + compile_multilib: "64", + strip: { + none: true, + }, + prefer: true, + soc_specific: true, +} + sh_binary { name: "lib3a.ccu.dm", owner: "xiaomi", diff --git a/gale-vendor.mk b/gale-vendor.mk index ee322fe..e0d8b97 100644 --- a/gale-vendor.mk +++ b/gale-vendor.mk @@ -383,6 +383,7 @@ PRODUCT_COPY_FILES += \ vendor/xiaomi/gale/proprietary/vendor/etc/init/init.wlan_drv.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlan_drv.rc \ vendor/xiaomi/gale/proprietary/vendor/etc/init/init.wmt_drv.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wmt_drv.rc \ vendor/xiaomi/gale/proprietary/vendor/etc/init/ipsec_mon.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/ipsec_mon.rc \ + vendor/xiaomi/gale/proprietary/vendor/etc/init/lbs_hidl_service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/lbs_hidl_service.rc \ vendor/xiaomi/gale/proprietary/vendor/etc/init/microtrust.bp_kmsetkey_ca.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/microtrust.bp_kmsetkey_ca.rc \ vendor/xiaomi/gale/proprietary/vendor/etc/init/microtrust.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/microtrust.rc \ vendor/xiaomi/gale/proprietary/vendor/etc/init/mtk_agpsd_p.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/mtk_agpsd_p.rc \ @@ -585,6 +586,7 @@ PRODUCT_PACKAGES += \ vendor.mediatek.hardware.nvram@1.1-impl \ vendor.mediatek.hardware.pq@2.15-impl \ vendor.mediatek.hardware.videotelephony@1.0-impl \ + lbs_hidl_service-impl \ lc_algoutils \ lib3a.ae.core \ lib3a.ae \ @@ -933,6 +935,7 @@ PRODUCT_PACKAGES += \ android.hardware.tetheroffload-V1-service.xml \ gnss-mtk.xml \ gnss@2.1-service.xml \ + lbs_hidl_service@1.0.xml \ manifest_android.hardware.drm-service.widevine.xml \ manifest_media_c2_V1_2_default.xml \ bp_kmsetkey_ca \ @@ -957,6 +960,7 @@ PRODUCT_PACKAGES += \ vendor.silead.hardware.fingerprintext@1.0-service \ vtservice_hidl \ ipsec_mon \ + lbs_hidl_service \ lib3a.ccu.dm \ lib3a.ccu.pm \ mi_thermald \ diff --git a/proprietary/vendor/bin/lbs_hidl_service b/proprietary/vendor/bin/lbs_hidl_service new file mode 100755 index 0000000..0e3ab31 Binary files /dev/null and b/proprietary/vendor/bin/lbs_hidl_service differ diff --git a/proprietary/vendor/etc/init/lbs_hidl_service.rc b/proprietary/vendor/etc/init/lbs_hidl_service.rc new file mode 100644 index 0000000..43e5cc0 --- /dev/null +++ b/proprietary/vendor/etc/init/lbs_hidl_service.rc @@ -0,0 +1,4 @@ +service lbs_hidl_service /vendor/bin/lbs_hidl_service + class hal + user system + group system gps radio inet sdcard_r sdcard_rw diff --git a/proprietary/vendor/etc/vintf/manifest/lbs_hidl_service@1.0.xml b/proprietary/vendor/etc/vintf/manifest/lbs_hidl_service@1.0.xml new file mode 100644 index 0000000..6af7b48 --- /dev/null +++ b/proprietary/vendor/etc/vintf/manifest/lbs_hidl_service@1.0.xml @@ -0,0 +1,30 @@ + + + vendor.mediatek.hardware.lbs + hwbinder + 1.0 + + ILbs + mtk_lppe_socket_agps + mtk_lppe_socket_wlan + mtk_lppe_socket_bt + mtk_lppe_socket_sensor + mtk_lppe_socket_network + mtk_lppe_socket_ipaddr + mtk_lppe_socket_lbs + mtk_framework2agps + mtk_agps2framework + mtk_mnld2nlputils + AgpsInterface + AgpsDebugInterface + mtk_meta2mnld + mtk_debugService2mnld + mtk_mnld2debugService + mtk_mnld2mtklogger + mtk_mtklogger2mnld + mtk_lbs_log_v2s + mtk_debugService2agpsd + mtk_agpsd2debugService + + + diff --git a/proprietary/vendor/lib64/lbs_hidl_service-impl.so b/proprietary/vendor/lib64/lbs_hidl_service-impl.so new file mode 100644 index 0000000..ce930d1 Binary files /dev/null and b/proprietary/vendor/lib64/lbs_hidl_service-impl.so differ