使用百度人脸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芯片的库了。

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

  • 8
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值