一种基于动态符号重定向的异构闭源驱动兼容运行方法

By modifying the libhybris source code and building a dynamic symbol redirection mechanism, the problems of undefined functions, symbol conflicts, and resource contention in libhybris under the OpenHarmony system were solved, and the stable and compatible operation of Android HAL components under the OpenHarmony system was achieved.

CN122152364BActive Publication Date: 2026-07-17北京麟卓信息科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
北京麟卓信息科技有限公司
Filing Date
2026-05-11
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

The libhybris source code cannot be directly compiled into the OpenHarmony system. It has problems such as undefined functions, symbol conflicts, redundant graphics modules, mismatched driver loading logic, and lack of runtime monitoring and fault self-healing capabilities, which makes the Android HAL component unable to run stably in OpenHarmony.

Method used

By modifying the libhybris source code, a dynamic symbol redirection mechanism was established, an adaptation layer was built, and a sandbox environment was created. This enabled the implementation of a function behavior feature library, an interface adaptation table, and a permission mapping table. Irrelevant graphics modules were trimmed, function behaviors were dynamically adapted, a rendering resource pool was built, and hardware hot-plug events were monitored to achieve cross-platform compatibility.

Benefits of technology

This invention achieves stable and compatible operation of libhybris under the OpenHarmony system, resolves issues such as undefined functions, symbol conflicts, and resource contention, and improves the running efficiency and stability of Android HAL components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122152364B_ABST
    Figure CN122152364B_ABST
Patent Text Reader

Abstract

本发明公开了一种基于动态符号重定向的异构闭源驱动兼容运行方法,修改适配层源码适配鸿蒙系统,搭建动态符号重定向引擎建立映射表,编译生成动态库;系统创建安卓硬件抽象层容器进程并配置系统沙箱,模拟安卓运行目录结构完成映射,加载动态库并启动动态符号重定向引擎;系统将异构闭源驱动加载至沙箱,根据依赖函数类型完成符号预处理,构建渲染资源池,完成硬件级GPU上下文创建;驱动登记硬件信息完成设备备案与服务绑定,适配层根据函数类型分别响应,通过虚拟Binder驱动与代理进程完成跨平台Binder通信调用鸿蒙系统服务,驱动完成渲染后调取帧缓冲数据推送至显示控制器,实现安卓异构闭源驱动在鸿蒙环境下的兼容运行。
Need to check novelty before this filing date? Find Prior Art