完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
测试平台
Platform: RK3399/RK3328 OS: Android10.0 说明 rk提供了几种预置apk的方案给到客户,具体的集成方案可见源码下文档(RKDocs/android/Rockchip_Introduction_Android_Application_Preinstallation_CN&EN.pdf) 测试发现预置其他apk正常,但是预置kodi打开提示找不到so库 分析 查看源码可知,rk的preinstall是在frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java中做了处理 private static void setNativeLibraryPaths(PackageParser.Package pkg, File appLib32InstallDir, int scanFlags) { ... } else { // Cluster install if ((scanFlags & SCAN_AS_PREBUNDLED_DIR) != 0 || (scanFlags & SCAN_AS_PREINSTALL) != 0) { // mAppLib32InstallDir is the directory /data/app-lib which is used to store native // libs for apps from the system paritition. It isn't really specific to 32bit info // any way except for the variable name, the system will use the primary/secondary // ABI computed below. info.primaryCpuAbi = "armeabi-v7a"; info.nativeLibraryRootDir = new File(codeFile, LIB_DIR_NAME).getAbsolutePath(); Log.d(TAG, info.primaryCpuAbi + " prebundled install " + info.nativeLibraryRootDir); } else { info.nativeLibraryRootDir = new File(codeFile, LIB_DIR_NAME).getAbsolutePath(); } info.nativeLibraryRootRequiresIsa = true; info.nativeLibraryDir = new File(info.nativeLibraryRootDir, getPrimaryInstructionSet(info)).getAbsolutePath(); if (info.secondaryCpuAbi != null) { info.secondaryNativeLibraryDir = new File(info.nativeLibraryRootDir, VMRuntime.getInstructionSet(info.secondaryCpuAbi)).getAbsolutePath(); } } 他在这里指定了info.primaryCpuAbi = “armeabi-v7a”; 强制使用armv7的so库,但是kodi-arm64中只有arm64位的库无32位的.所以修改这里让其可以适配64位和32位即可,修改补丁如下: -info.primaryCpuAbi = "armeabi-v7a"; +info.primaryCpuAbi = "arm64-v8a"; +info.secondaryCpuAbi = "armeabi-v7a"; 编译后测试OK。 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1924 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2406 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5193 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 10:25 , Processed in 0.632860 second(s), Total 75, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号