使用百度人脸sdk无法激活的问题

有一个已在生产环境使用,并且非常稳定的项目,由于业务需要,需要适配新的一批机器,然后这批机器是新的Android11版本,也支持arm64-v8a,然后就发生特别神奇的问题,就是死活也激活不了设备,明明网络存储什么的都是正常的:

2024-02-27 15:58:49.672 10598-10598/?? E/crash: crash init completed!
2024-02-27 15:58:49.821 10598-10598/?? E/fullScreen: set window to full screen...--------- beginning of kernel
2024-02-27 15:58:50.005 10598-10598/?? E/getPermission: get permission is granted?true
2024-02-27 15:58:50.027 10598-10665/?? W/linker: Warning: "/data/app/~~TW74fzVJC_IH5HgB5Nlx_w==/??-EvQj9DXhawckghwzr464Sg==/lib/arm64/libbdface_sdk.so" unused DT entry: DT_RPATH (type 0xf arg 0x23b78) (ignoring)
2024-02-27 15:58:50.037 10598-10598/?? I/activity: current activity is change...
2024-02-27 15:58:50.039 10598-10665/?? E/FaceAuth: expireTime:0,packageName:,license:MYDD-REACH-1808-4NXW-face-offline-app,model:QD-8
2024-02-27 15:58:50.074 10598-10598/?? I/activity: current activity is change...
2024-02-27 15:58:50.104 10598-10598/?? I/Thread-9: type=1400 audit(0.0:1001): avc: denied { search } for name="block" dev="tmpfs" ino=2181 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=1 app=??
2024-02-27 15:58:50.111 10598-10666/?? E/License-SDK: Load liantian ac succeed
2024-02-27 15:58:50.104 10598-10598/?? I/Thread-9: type=1400 audit(0.0:1002): avc: denied { read } for name="platform" dev="tmpfs" ino=2183 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=1 app=??
2024-02-27 15:58:50.104 10598-10598/?? I/Thread-9: type=1400 audit(0.0:1003): avc: denied { open } for path="/dev/block/platform" dev="tmpfs" ino=2183 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=1 app=??
2024-02-27 15:58:50.107 10598-10598/?? I/Thread-9: type=1400 audit(0.0:1004): avc: denied { search } for name="mmcblk2" dev="sysfs" ino=27303 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:sysfs_mmc:s0 tclass=dir permissive=1 app=??
2024-02-27 15:58:50.135 214-222/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate;got new private_handle_t instance @0xb40000769d996190 for buffer 'Splash Screen ??#0'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 800, height : 1280, req_format : 0x1, producer_usage : 0x933, consumer_usage : 0x933, internal_format : 0x0, stride : 800, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 4096000, layer_count : 1, backing_store_size : 4096000, backing_store_id : 919123002653, allocating_pid : 214, ref_count : 1, yuv_info : 0
2024-02-27 15:58:50.155 214-222/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate;got new private_handle_t instance @0xb40000769d996bb0 for buffer 'Splash Screen ??#0'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 800, height : 1280, req_format : 0x1, producer_usage : 0x933, consumer_usage : 0x933, internal_format : 0x0, stride : 800, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x1, size : 4096000, layer_count : 1, backing_store_size : 4096000, backing_store_id : 919123002654, allocating_pid : 214, ref_count : 1, yuv_info : 0
2024-02-27 15:58:50.165 10598-10655/?? I/mali_so: [File] : hardware/rockchip/mali_so/driver/product/base/src/mali_base_kbase.c; [Line] : 1311; [Func] : base_context_deal_with_version_affairs_rk_ext;arm_release_ver of this mali_so is 'g2p0-01eac0', rk_so_ver is '8@0 '.
2024-02-27 15:58:50.165 10598-10655/?? I/mali_so: [File] : hardware/rockchip/mali_so/driver/product/base/src/mali_base_kbase.c; [Line] : 1327; [Func] : base_context_deal_with_version_affairs_rk_ext;arm_release_vers are match. to set the full mali_ver 'g2p0-01eac0-x-8@0' as value of 'sys.gmali.version'.
2024-02-27 15:58:50.220 214-222/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate;got new private_handle_t instance @0xb40000769d996190 for buffer '??/??.activity.SplashActivity#0'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 800, height : 1280, req_format : 0x1, producer_usage : 0x40000000000b00, consumer_usage : 0x40000000000b00, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x100000001, size : 4160512, layer_count : 1, backing_store_size : 4160512, backing_store_id : 919123002655, allocating_pid : 214, ref_count : 1, yuv_info : 0
2024-02-27 15:58:50.222 214-222/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate;got new private_handle_t instance @0xb40000769d996bb0 for buffer '??/??.activity.SplashActivity#0'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 800, height : 1280, req_format : 0x1, producer_usage : 0x40000000000b00, consumer_usage : 0x40000000000b00, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x100000001, size : 4160512, layer_count : 1, backing_store_size : 4160512, backing_store_id : 919123002656, allocating_pid : 214, ref_count : 1, yuv_info : 0
2024-02-27 15:58:50.224 214-222/? D/gralloc4: [File] : hardware/rockchip/libgralloc/bifrost/src/hidl_common/Allocator.cpp; [Line] : 149; [Func] : allocate;got new private_handle_t instance @0xb40000769d996190 for buffer '??/??.activity.SplashActivity#0'. share_fd : 8, share_attr_fd : 9, flags : 0x4, width : 800, height : 1280, req_format : 0x1, producer_usage : 0x40000000000b00, consumer_usage : 0x40000000000b00, internal_format : 0x0, stride : 0, byte_stride : 0, internalWidth : 0, internalHeight : 0, alloc_format : 0x100000001, size : 4160512, layer_count : 1, backing_store_size : 4160512, backing_store_id : 919123002657, allocating_pid : 214, ref_count : 1, yuv_info : 0
2024-02-27 15:58:50.280 10598-10666/?? E/License-SDK: read_license_from_data Exception File app_/sdcard/bd_license_request_url.txt contains a path separator
2024-02-27 15:58:50.282 10598-10666/?? W/System.err: java.lang.IllegalArgumentException: File app_/sdcard/bd_license_request_url.txt contains a path separator
2024-02-27 15:58:50.283 10598-10666/?? W/System.err:     at android.app.ContextImpl.makeFilename(ContextImpl.java:2867)
2024-02-27 15:58:50.284 10598-10666/?? W/System.err:     at android.app.ContextImpl.getDir(ContextImpl.java:2558)
2024-02-27 15:58:50.284 10598-10666/?? W/System.err:     at android.content.ContextWrapper.getDir(ContextWrapper.java:318)
2024-02-27 15:58:50.285 10598-10666/?? W/System.err:     at android.content.ContextWrapper.getDir(ContextWrapper.java:318)
2024-02-27 15:58:50.285 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_data(LicenseReaderUtils.java:50)
2024-02-27 15:58:50.286 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:34)
2024-02-27 15:58:50.286 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
2024-02-27 15:58:50.287 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
2024-02-27 15:58:50.288 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:69)
2024-02-27 15:58:50.288 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceAuth$4.run(FaceAuth.java:378)
2024-02-27 15:58:50.288 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
2024-02-27 15:58:50.288 10598-10666/?? E/License-SDK: read_license_from_data
2024-02-27 15:58:50.289 10598-10666/?? E/License-SDK: read_license_from_asset
2024-02-27 15:58:50.289 10598-10666/?? E/License-SDK: read_license_from_asset IOException
2024-02-27 15:58:50.289 10598-10666/?? W/System.err: java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt
2024-02-27 15:58:50.290 10598-10666/?? W/System.err:     at android.content.res.AssetManager.nativeOpenAsset(Native Method)
2024-02-27 15:58:50.290 10598-10666/?? W/System.err:     at android.content.res.AssetManager.open(AssetManager.java:874)
2024-02-27 15:58:50.290 10598-10666/?? W/System.err:     at android.content.res.AssetManager.open(AssetManager.java:851)
2024-02-27 15:58:50.290 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_asset(LicenseReaderUtils.java:80)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:38)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:69)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceAuth$4.run(FaceAuth.java:378)
2024-02-27 15:58:50.291 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
2024-02-27 15:58:50.292 10598-10666/?? E/License-SDK: open license file path /sdcard/bd_license_request_url.txt
2024-02-27 15:58:50.292 10598-10666/?? E/License-SDK: open license file error.
2024-02-27 15:58:50.293 10598-10666/?? E/License-SDK: read_license_from_data file not found
2024-02-27 15:58:50.293 10598-10666/?? E/License-SDK: read_license_from_data
2024-02-27 15:58:50.293 10598-10666/?? E/License-SDK: read_license_from_asset
2024-02-27 15:58:50.293 10598-10666/?? E/License-SDK: read_license_from_asset IOException
2024-02-27 15:58:50.293 10598-10666/?? W/System.err: java.io.FileNotFoundException: idl-license.face-android
2024-02-27 15:58:50.294 10598-10666/?? W/System.err:     at android.content.res.AssetManager.nativeOpenAsset(Native Method)
2024-02-27 15:58:50.295 10598-10666/?? W/System.err:     at android.content.res.AssetManager.open(AssetManager.java:874)
2024-02-27 15:58:50.295 10598-10666/?? W/System.err:     at android.content.res.AssetManager.open(AssetManager.java:851)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_asset(LicenseReaderUtils.java:80)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:38)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:69)
2024-02-27 15:58:50.296 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceAuth$4.run(FaceAuth.java:378)
2024-02-27 15:58:50.297 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
2024-02-27 15:58:50.297 10598-10666/?? E/License-SDK: open license file path idl-license.face-android
2024-02-27 15:58:50.297 10598-10666/?? E/License-SDK: open license file error.
2024-02-27 15:58:50.357 10598-10666/?? E/License-SDK: Exception Value sdk_v of type java.lang.String cannot be converted to JSONObject
2024-02-27 15:58:50.358 10598-10666/?? W/System.err: org.json.JSONException: Value sdk_v of type java.lang.String cannot be converted to JSONObject
2024-02-27 15:58:50.358 10598-10666/?? W/System.err:     at org.json.JSON.typeMismatch(JSON.java:112)
2024-02-27 15:58:50.358 10598-10666/?? W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:169)
2024-02-27 15:58:50.358 10598-10666/?? W/System.err:     at org.json.JSONObject.<init>(JSONObject.java:182)
2024-02-27 15:58:50.359 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.LicenseNewReader.httpPostRequest(LicenseNewReader.java:167)
2024-02-27 15:58:50.359 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
2024-02-27 15:58:50.359 10598-10666/?? W/System.err:     at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:69)
2024-02-27 15:58:50.359 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceAuth$4.run(FaceAuth.java:378)
2024-02-27 15:58:50.359 10598-10666/?? W/System.err:     at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
2024-02-27 15:58:50.362 10598-10666/?? I/FaceSDK: licenseKey:MYDD-REACH-1808-4NXW-FACE-OFFLINE-APP,algorithmId:3;packageName:??,md5:0EBA50A45C15B35D977D04D84379B355;deviceId:151FED1B91502D1976B742AA4F99A1937D,fingerVersion:5.0.1.1;licenseSdkVersion:5.0.1.1
2024-02-27 15:58:50.363 438-464/system_process I/ActivityTaskManager: Displayed ??/.activity.SplashActivity: +2s68ms
2024-02-27 15:58:50.365 10598-10666/?? E/FaceAuth: code:13,response: -- read file error: -1 -> parse license error 1 -->local auth failed:3 -> HTTP Status Code:-3 -->remote auth failed:13
2024-02-27 15:58:50.375 438-1826/system_process V/WindowManager: getPackagePerformanceMode -- ComponentInfo{??/??.activity.SplashActivity} -- ?? -- mode=0
2024-02-27 15:58:50.384 438-805/system_process V/WindowManager: getPackagePerformanceMode -- ComponentInfo{??/??.activity.SplashActivity} -- ?? -- mode=0
2024-02-27 15:58:50.389 10598-10666/?? E/getDbTime: db time:1709015656189,current time:1709020730389

提示这样的错误,后来根据提示LICENSE_INFO_FORMAT_ERROR这个格式错误,怀疑是系统不兼容导致百度人脸sdk获取的字符串有问题,所以干脆不要arm64-v8a芯片的库了。

然后注释,运行,果然能激活,真是个大无语= =

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/496658.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

TSINGSEE青犀AI智能分析网关V4智慧油田安全生产监管方案

一、方案背景 随着科技的不断发展&#xff0c;视频监控技术在油田行业中得到了广泛应用。为了提高油田生产的安全性和效率&#xff0c;建设一套智能视频监控平台保障安全生产显得尤为重要。本方案采用先进的视频分析技术、物联网技术、云计算技术、大数据和人工智能技术&#…

【Hudi】核心概念

https://www.bilibili.com/video/BV1ue4y1i7na?p17&vd_sourcefa36a95b3c3fa4f32dd400f8cabddeaf 大数据新风口&#xff1a;Hudi数据湖&#xff08;尚硅谷&Apache Hudi联合出品&#xff09; 1 基础概念 1.1 时间轴(TimeLine) 1.2 文件布局(File Layout) 1.3 索引(In…

Opencv实战(3)详解霍夫变换

霍夫变换 Opencv实战系列指路前文&#xff1a; Opencv(1)读取与图像操作 Opencv(2)绘图与图像操作 文章目录 霍夫变换1.霍夫线变换1.1 原理1.2 HoughLines() 2.霍夫圆变换2.1 原理2.2 HoughCircles() 最基本的霍夫变换是从黑白图像中检测直线(线段) 霍夫变换(Hough Transform…

C 嵌入式系统设计模式 13:中断模式

本书的原著为&#xff1a;《Design Patterns for Embedded Systems in C ——An Embedded Software Engineering Toolkit 》&#xff0c;讲解的是嵌入式系统设计模式&#xff0c;是一本不可多得的好书。 本系列描述我对书中内容的理解。本文章描述访问硬件的设计模式之六&…

闲扯B-Tree和B+Tree的异同

我们今天要聊一个比较硬的话题&#xff1a; 一个 / 传说中的 / 惊天动地的 / 牛逼的 / 大家都听说过的 / 却又很少实际深入接触到的 / 但又基本每天都在使用的数据结构。&#xff08;大家注意看上一句话的定语&#xff09; 我记得我最先接触B树是在大学学数据结构的时候&#x…

能在手机上运行,仅仅0.5B大小的小语言模型MobiLlama

模型介绍 该模型基于LLaMA-7B架构设计&#xff0c;旨在能够在边缘设备上高效运行&#xff0c;无需将数据发送到远程服务器或云端处理。如智能手机、平板电脑、智能手表等。MobiLlama模型虽然体积小、对资源的需求低&#xff0c;但仍能提供高精度的语言理解和生成能力。项目还提…

redis是单线程,为什么这么快?

redis是纯内存操作&#xff0c;C语言编写&#xff0c;执行速度非常快。 采用单线程&#xff0c;避免不必要的上下文切换&#xff0c;不用考虑线程安全问题。 采用I/O多路复用模型&#xff0c;非阻塞I/O。 例如&#xff1a;bgsave和bgrewriteaof都是在后台执行操作&#xff0…

软考50-上午题-【数据库】-SQL访问控制

一、SQL访问控制 数据控制&#xff0c;控制的是用户对数据的存储权力&#xff0c;由DBA决定。 DBA&#xff1a;数据库管理员。 DBMS数据控制应该具有一下功能&#xff1a; 1-1、授权语句格式 说明&#xff1a; 示例&#xff1a; 1-2、收回权限语句格式 示例&#xff1a; PUBLI…

亿道信息新品EM-T195轻薄型工业平板,隆重登场!

EM-T195是一款轻巧但坚固的平板电脑&#xff0c;仅 650克重、10.5mm毫米厚&#xff0c;即使没有额外的便携配件进行辅助&#xff0c;您也可以轻松将其长时间随身携带。耐用性外壳完全密封&#xff0c;防尘防潮&#xff1b;出色的坚固性和可靠性&#xff0c;使T195天生适合在苛刻…

雾锁王国服务器怎么建?雾锁王国服务器搭建方法

雾锁王国Enshrouded服务器搭建怎么搭建&#xff1f;非常简单&#xff0c;阿里云计算巢雾锁王国程序&#xff0c;可以一键搭建雾锁王国多人联机服务器&#xff0c;腾讯云是基于雾锁王国镜像系统&#xff0c;阿里云服务网aliyunfuwuqi.com汇总雾锁王国服务器搭建&#xff0c;超简…

面试经典150题【31-40】

文章目录 面试经典150题【31-40】76.最小覆盖字串36.有效的数独54.螺旋矩阵48.旋转图像73.矩阵置零289.生命游戏383.赎金信205.同构字符串290.单词规律242.有效的字母异位词 面试经典150题【31-40】 76.最小覆盖字串 基本思路很简单&#xff0c;就是先移动右边到合适位置。再移…

在from子句中使用子查询

目录 查询每个部门的编号、名称、位置、部门人数、平均工资 多表查询分组统计 子查询分组统计 Oracle从入门到总裁:https://blog.csdn.net/weixin_67859959/article/details/135209645 为了解释这种查询的作用&#xff0c;下面做一个简单的查询 查询每个部门的编号、名称、…