Giter VIP home page Giter VIP logo

flutter_bdface_collect's Introduction

flutter_bdface_collect

a baidu face offline collect plugin. Only Android and IOS platforms are supported. 【armeabi-v7a、arm64-v8a】

百度人脸离线采集插件,只支持安卓和iOS。【armeabi-v7a、arm64-v8a】

PS: SDK only support armeabi-v7a、arm64-v8a, if want x86, Please select old-sdk

PS: SDK 只支持 armeabi-v7a、arm64-v8a, 如果想使用 x86, 请选择 old-sdk

SDK Version

Platform Version
Android 4.1.5
iOS 4.1.5

Preparing for use

PS:已注释隐私授权检查,故使用前请自行检查授权

Android

在 Android 项目的app/src/main/assets 目录下放入百度离线采集SDK的Android授权文件,文件名固定为 idl-license.face-android SDK 会校验 apk 签名,请使用申请授权相符的签名证书

iOS

Info.plistdict 标签内添加以下内容

<key>NSCameraUsageDescription</key>
<string>使用相机</string>

在 iOS 项目的 Runner 目录下放入百度离线采集SDK的iOS授权文件,文件名固定为 idl-license.face-ios,并将文件加入资源 example

Usage

Init 初始化

    late var licenseId;
    if (Platform.isAndroid) licenseId = "demo-face-android";
    else if (Platform.isIOS) licenseId = "demo-face-ios";
    print('开始初始化');
    String? err = await FlutterBdfaceCollect.instance.init(licenseId);
    print('初始化结果${err == null ? '成功' : '失败'}');

Collect 采集

    FaceConfig config = FaceConfig(livenessTypes: Set.from(LivenessType.all.sublist(1, 4)));
    CollectRresult res = await FlutterBdfaceCollect.instance.collect(config);
    print('采集错误结果:${res.error.isNotEmpty} 内容:${res.error}');
    print('采集原图imageCropBase64:${res.imageSrcBase64.isNotEmpty}');
    print('采集抠图imageSrcBase64:${res.imageCropBase64.isNotEmpty}');

UnInit 释放

    FlutterBdfaceCollect.instance.unInit();

常见问题

iOS

Android

flutter_bdface_collect's People

Contributors

alexv525 avatar ccwawamiya avatar cyjaysong avatar laiiihz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_bdface_collect's Issues

华为荣耀android8系统,调用人脸采集闪退

Version

1.1.8

Platforms

dart, Android

Device Model

华为荣耀android8

flutter info

[✓] Flutter (Channel stable, 3.13.0, on macOS 12.6.3 21G419 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.13.0 on channel stable at /Users/nanhaichao/Library/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (3 weeks ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/nanhaichao/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.74.3)
    • VS Code at /Users/nanhaichao/Desktop/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (3 available)
    • DUA AL00 (mobile) • HFK9K18803907705 • android-arm64  • Android 8.1.0 (API 27)
    • macOS (desktop)   • macos            • darwin-arm64   • macOS 12.6.3 21G419 darwin-arm64 (Rosetta)
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 116.0.5845.140

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

调用人脸采集方法CollectResult res = await FlutterBdfaceCollect.instance.collect(FaceConfig(
scale: 0.7,
livenessTypes: Set.from(LivenessType.all.sublist(0, 1))));

Logs

V/jhw     (32532): call Intent.migrateExtraStreamToClipData(1)
D/WifiManager(32532): startScan, uid:10107
D/BrightnessUtils(32532): set  lp.screenBrightness == 1.392157
W/way.zhxl.common(32532): type=1400 audit(0.0:7792): avc: denied { search } for name="clients" dev="debugfs" ino=7268 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:debugfs_ion:s0 tclass=dir permissive=0
D/skia    (32532): SkJpegCodec::onGetPixels + (1081, 510)
D/skia    (32532): SkJpegCodec::onGetPixels -
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
D/CubicBezierInterpolator(32532): CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
D/HwRTBlurUtils(32532): check blur style for HwPhoneWindow, themeResId : 0x7f120251, context : com.fluttercandies.flutter_bdface_collect.FaceDetectActivity@e302cb5, Nhwext : 0, get Blur : disable with , null
D/Camera-JNI(32532): (tid:32532)[MtkJNICameraContext] this:0x77f767ad60 camera->getStrongCount(3) 
D/Camera  (32532): app passed NULL surface
V/PhoneWindow(32532): DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@73ce68f[]
D/WindowClient(32532): Add to mViews: DecorView@73ce68f[FaceDetectActivity], this = android.view.WindowManagerGlobal@85f83cf
D/ViewRootImpl[FaceDetectActivity](32532): hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
V/PhoneWindow(32532): DecorView setVisiblity: visibility = 0, Parent = ViewRoot{2372efa com.lntransway.zhxl.common/com.fluttercandies.flutter_bdface_collect.FaceDetectActivity,ident = 1}, this = DecorView@73ce68f[FaceDetectActivity]
D/Surface (32532): Surface::connect(this=0x77c8daf000,api=1)
D/Camera-JNI(32532): (tid:32566)[~MtkJNICameraContext] this:0x77f767ad60 
D/Camera-JNI(32532): (tid:32532)[MtkJNICameraContext] this:0x77f7678600 camera->getStrongCount(3) 
I/Choreographer(32532): Skipped 48 frames!  The application may be doing too much work on its main thread.
D/HWUIExtension(32532): MTKProgramCache.generateProgram: 1099511627784
D/HWUIExtension(32532): createProgram 0x0000010000000008, binary 0x77cdc8a2d2, length 13254, format 37168 within 14555ns
D/HWUIExtension(32532): MTKProgramCache.generateProgram: 562949953421313
D/HWUIExtension(32532): createProgram 0x0002000000000001, binary 0x77cdc7c31b, length 11553, format 37168 within 766ns
D/HWUIExtension(32532): MTKProgramCache.generateProgram: 633318697598977
D/HWUIExtension(32532): MTKProgramCache.generateProgram: 70368744177665
D/HWUIExtension(32532): MTKProgramCache.generateProgram: 562984313159683
D/HWUIExtension(32532): createProgram 0x0002000800000003, binary 0x77cdc87603, length 11471, format 37168 within 1149ns
I/Camera  (32532): handleMessage: 16
D/AndroidRuntime(32532): Shutting down VM
E/AndroidRuntime(32532): FATAL EXCEPTION: main
E/AndroidRuntime(32532): Process: com.lntransway.zhxl.common, PID: 32532
E/AndroidRuntime(32532): java.lang.RuntimeException: Camera is being used after Camera.release() was called
E/AndroidRuntime(32532):        at android.hardware.Camera.setHasPreviewCallback(Native Method)
E/AndroidRuntime(32532):        at android.hardware.Camera.-wrap2(Unknown Source:0)
E/AndroidRuntime(32532):        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1165)
E/AndroidRuntime(32532):        at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(32532):        at android.os.Looper.loop(Looper.java:166)
E/AndroidRuntime(32532):        at android.app.ActivityThread.main(ActivityThread.java:6861)
E/AndroidRuntime(32532):        at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32532):        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:450)
E/AndroidRuntime(32532):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process (32532): Sending signal. PID: 32532 SIG: 9
Lost connection to device.

Example code (optional)

CollectResult res = await FlutterBdfaceCollect.instance.collect(FaceConfig(
              scale: 0.7,
              livenessTypes: Set.from(LivenessType.all.sublist(0, 1))));

Contact

[email protected]

iOS端授权失败

不知道是否因为百度的库更新了,目前iOS端不好用,framework这些都没加入资源,认证失败

[Discussions] ios人脸采集返回error:取消识别 可能是什么原因呢?

Content

你好,目前是在开发模式,手动关闭采集页面和正常采集完成都返回 取消识别,代码:

late String licenseId;
if (Platform.isAndroid) {
  licenseId = 'yuqishi-face-android';
} else if (Platform.isIOS) {
  licenseId = 'yqs-face-ios-face-ios';
}
try {
  String? err = await FlutterBdfaceCollect.instance.init(licenseId);
  if (err != null) throw FlutterError('初始化失败');

  FaceConfig config = FaceConfig(
    livenessTypes: Set.from(LivenessType.all.sublist(1, 4)),
  );
  CollectResult res = await FlutterBdfaceCollect.instance.collect(config);
  print("百度人脸采集结果:error:${res.error} imageSrcBase64 isEmpty:${res.imageSrcBase64.isEmpty}");
  if (res.error.isNotEmpty) {
    throw FlutterError(res.error);
  }
  FlutterBdfaceCollect.instance.unInit();
  // request...
} catch (e) {
  print(e);
}

xcode log:
20230514191817

ios 初始化报错

resource_path == nil
oc->bdface_auth_get_error_msg auth remote data get error -- read file error: -1 -- local auth failed: 12 -> err_no: 700 -> err_msg: wrong match of appkey/packedge_name/signature_md5 -- remote auth failed: 13
oc->bdface_auth_get_local_info alg_id=3 key=QIANQIAN2-FACE-IOS pk=com.fluttercandies.flutter-bdface-collect-example md5=00000000000000000000000000000000 device_id=4E219A60F8893264E011A17CDE164CDE1F8376CD
os->sample-init license errorCode=13
[Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 93 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 93 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
flutter: 初始化结果失败
oc->bdface_create_instance errorCode:-13
os->faceApi is nil
oc->bdface_create_instance errorCode:-13
os->faceApi is nil

[Bug report] 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs

Version

1.1.8

Platforms

Android

Device Model

MIUI 12.0.3 Android 9.0

flutter info

[√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [版本 10.0.19045.2965], locale zh-CN)
    • Flutter version 3.7.12 on channel stable at D:\flutter3.7
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (7 weeks ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)

Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android 
devices (Android SDK version 33.0.2)
    • Android SDK at D:\AndroidSDK
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = D:\AndroidSDK
    • Java binary at: D:\Program Files\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.24)
    • Visual Studio at D:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.33328.57
    • Windows 10 SDK version 10.0.20348.0

[√] Android Studio (version 2022.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)

[√] Android Studio (version 2022.2)
    • Android Studio at D:\Program Files\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] Connected device (4 available)
    • Redmi Note 5 (mobile) • 5b98d4f4 • android-arm64  • Android 9 (API 28)
    • Windows (desktop)     • windows  • windows-x64    • Microsoft Windows [版本 10.0.19045.2965]
    • Chrome (web)          • chrome   • web-javascript • Google Chrome 114.0.5735.110
    • Edge (web)            • edge     • web-javascript • Microsoft Edge 114.0.1823.37

[√] HTTP Host Availability
    • All required HTTP hosts are available

How to reproduce?

这个问题有遇到过吗?之前是 1.1.4版本一直可以的,今天突然就报错了,升级了1.1.8版本也是一样的错误
flutter clean 手动删除gradle缓存 ,都是一样

Logs

[+2792 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[   +1 ms] Execution failed for task ':app:mergeDebugNativeLibs'.
[        ] > A failure occurred while executing
com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
[   +1 ms]    > 2 files found with path 'lib/arm64-v8a/libc++_shared.so' from inputs:
[   +1 ms]       -
E:\app\project\build\flutter_bdface_collect\intermediates\library_jni\debug\jni\arm64-v8a\libc++_shared.so
[   +1 ms]       -
D:\gradle\.gradle\caches\transforms-3\8404f54285650adaa3a4526cf877cfe4\transformed\jetified-base-7.5.7.1\jni\arm64-v8a\libc++_shared.so
[   +3 ms]      If you are using jniLibs and CMake IMPORTED targets, see
[   +1 ms]      https://developer.android.com/r/tools/jniLibs-vs-imported-targets
[        ] * Try:
[        ] > Run with --debug option to get more log output.
[        ] > Run with --scan to get full insights.
[        ] * Exception is:
[        ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':app:mergeDebugNativeLibs'.
[        ]      at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)

Example code (optional)

No response

Contact

No response

ios 插件覆盖ios的appicon

我现在使用这个插件,运行,打包,ios的的appicon这个插件覆盖成了flutter默认的图标。这个问题有好的处理办法吗。
我注释掉这个插件,运行,打包,ios的的appicon是显示正常的。

把 flutter_bdface_collect: ^1.1.1 注释掉,就不会报错

Could not build the precompiled application for the device.
Error (Xcode): Multiple commands produce '/Users/coderxslee/WrokSpace/youlin/build/ios/Debug-iphoneos/Runner.app/Assets.car':

  1. Target 'Runner' (project 'Runner') has compile command with input '/Users/coderxslee/WrokSpace/youlin/ios/Runner/Assets.xcassets'
  2. That command depends on command in Target 'Runner' (project 'Runner'): script phase “[CP] Copy Pods Resources”

安卓初始化错误!

E/License-SDK(19027): open license file error.
E/License-SDK(19027): read_license_from_data file not found
E/License-SDK(19027): read_license_from_asset
E/License-SDK(19027): write_license_content
I/bdface (19027): 参数是:{"mh":"offlineSdkStatistic","dt":{"analysisType":"offline_Sdk","deviceId":"11140C1F12FEEB2C52DFBE8E1D64FADC09","cpuCore":8,"cpuBit":0,"ghz":2016,"ram":1856,"networkType":1,"networkDesc":"WIFI网络","os":1,"osVersion":"10","sdk":1,"sdkVersion":"4.1"}}
E/License-SDK(19027): license file info =0B700C7CF0A20862671F5DD7432F57CDB0D588FEB7C648E03A2C3357E9CA6F8026541C25B8B945FE08DACEFF88AB149F8CD12323CFB8C53A27AA207D72EAA1CA7DF6F884B61FC5D0863FB52A5EC4E89C8BDC0112CC77A2F5B876B69457B66719CB82957F05DC8A6CFF9933B2DC7CA4EA5DE8473A1279158FFB1A96FDCCE84DEAF4820C4598741CE722C51F1576607F3F200BE8B1D32ADE32D1021D
I/DpmTcmClient(19027): RegisterTcmMonitor from: $Proxy0
E/zxq (19027): request code 200
E/zxq (19027): request data {"code":0,"msg":"success","result":null}
I/bdface (19027): response结果:{"code":0,"msg":"success","result":null}
E/License-SDK(19027): request get_remote_license =https://aip.baidubce.com/public/2.0/license/face-api/app/querydevicelicense
E/License-SDK(19027): request code 200
E/License-SDK(19027): request data {"err_no":301,"err_msg":"such app not exists","result":[],"timestamp":1675817448,"cached":0,"serverlogid":"3048446431","error_code":301,"error_msg":"such app not exists"}
E/jni (19027): java result = {"err_no":301,"err_msg":"such app not exists","result":[],"timestamp":1675817448,"cached":0,"serverlogid":"3048446431","error_code":301,"error_msg":"such app not exists"}

安卓平台 应用宝和小米商店检测到隐私合规问题

感谢作者做的功能插件
这次在上架小米商店和应用宝的过程中 反馈了隐私政策合规问题

com.zilue.beehivej/com.baidu.liantian.LiantianReceiver action=android.intent.action.BOOT_COMPLETED

com.android.server.am.BroadcastQueue.processNextBroadcast(BroadcastQueue.java:1391)<---com.android.server.am.BroadcastQueue$BroadcastHandler.handleMessage(BroadcastQueue.java:176)<---android.os.Handler.dispatchMessage(Handler.java:106)<---android.os.Looper.loop(Looper.java:164)<---android.os.HandlerThread.run(HandlerThread.java:65)<---com.android.server.ServiceThread.run(ServiceThread.java:46)

应用自启动的问题 请教怎么解决

安卓初始化报错

Version

1.1.8

Platforms

dart

Device Model

Android 11

flutter info

[!] Flutter (Channel unknown, 3.10.0, on Microsoft Windows [版本 10.0.19045.3208], locale zh-CN)
    ! Flutter version 3.10.0 on channel unknown at D:\Flutter\SDK\flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Unknown upstream repository.
      Reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    • Framework revision 84a1e904f4 (2 months ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at D:\AndroidStudio\SDK
    • Platform android-33-ext5, build-tools 33.0.2
    • Java binary at: D:\AndroidStudio\to\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio 15 生成工具 2017 15.9.55)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    • Visual Studio 15 生成工具 2017 version 15.9.33801.237
    • Windows 10 SDK version 10.0.17763.0
    X Visual Studio 2019 or later is required.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.2)
    • Android Studio at D:\AndroidStudio\to
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] Connected device (4 available)
    • ELE AL00 (mobile) • 8KE0219423003518 • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [版本 10.0.19045.3208]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 113.0.5672.129
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 114.0.1823.82

[√] Network resources
    • All expected network resources are available.

How to reproduce?

调试环境报错可以初始化成功,打包之后初始化app直接闪退了

Logs

W/System.err(23459): java.lang.ClassNotFoundException: Didn't find class "com.baidu.liantian.ac.LH" on path: DexPathList[[zip file "/data/app/com.czyhqc.qczn-oHMyoUrpAZN2jVsszfg9Iw==/base.apk"],nativeLibraryDirectories=[/data/app/com.czyhqc.qczn-oHMyoUrpAZN2jVsszfg9Iw==/lib/arm64, /data/app/com.czyhqc.qczn-oHMyoUrpAZN2jVsszfg9Iw==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64, /prets/lib64]]
W/System.err(23459): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:209)
W/System.err(23459): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
W/System.err(23459): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.getDeviceId(AndroidLicenser.java:63)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:114)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceAuth$1.run(FaceAuth.java:121)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
I/License-SDK(23459): Load liantian ac failed
E/License-SDK(23459): read_license_from_system_path FileNotFoundException
W/System.err(23459): java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt: open failed: ENOENT (No such file or directory)
W/System.err(23459): 	at libcore.io.IoBridge.open(IoBridge.java:496)
W/System.err(23459): 	at java.io.FileInputStream.<init>(FileInputStream.java:159)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_system_path(LicenseReaderUtils.java:54)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:38)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:114)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceAuth$1.run(FaceAuth.java:121)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
W/System.err(23459): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
W/System.err(23459): 	at libcore.io.Linux.open(Native Method)
W/System.err(23459): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
W/System.err(23459): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
W/System.err(23459): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
W/System.err(23459): 	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8469)
W/System.err(23459): 	at libcore.io.IoBridge.open(IoBridge.java:482)
W/System.err(23459): 	... 8 more
E/License-SDK(23459): read_license_from_asset
E/License-SDK(23459): read_license_from_asset IOException
W/System.err(23459): java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt
W/System.err(23459): 	at android.content.res.AssetManager.nativeOpenAsset(Native Method)
W/System.err(23459): 	at android.content.res.AssetManager.open(AssetManager.java:942)
W/System.err(23459): 	at android.content.res.AssetManager.open(AssetManager.java:919)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_asset(LicenseReaderUtils.java:99)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:45)
W/System.err(23459): 	at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
W/System.err(23459): 	at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:114)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceAuth$1.run(FaceAuth.java:121)
W/System.err(23459): 	at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
E/License-SDK(23459): open license file error.
E/License-SDK(23459): license file info

Example code (optional)

No response

Contact

No response

androind 初始化报错

I/flutter (15830): 开始初始化
E/AndroidRuntime(15830): FATAL EXCEPTION: main
E/AndroidRuntime(15830): java.lang.UnsatisfiedLinkError: dlopen failed: library "libbdface_sdk.so" not found
E/AndroidRuntime(15830): at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
E/AndroidRuntime(15830): at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
E/AndroidRuntime(15830): at java.lang.System.loadLibrary(System.java:1664)
E/AndroidRuntime(15830): at com.baidu.idl.main.facesdk.FaceAuth.(FaceAuth.java:33)
E/AndroidRuntime(15830): at com.baidu.idl.face.platform.FaceSDKManager.(FaceSDKManager.java:54)
E/AndroidRuntime(15830): at com.baidu.idl.face.platform.FaceSDKManager.getInstance(FaceSDKManager.java:69)
E/AndroidRuntime(15830): at com.fluttercandies.flutter_bdface_collect.FlutterBdfaceCollectPlugin.init(FlutterBdfaceCollectPlugin.java:125)
E/AndroidRuntime(15830): at com.fluttercandies.flutter_bdface_collect.FlutterBdfaceCollectPlugin.onMethodCall(FlutterBdfaceCollectPlugin.java:51)
E/AndroidRuntime(15830): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/AndroidRuntime(15830): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
E/AndroidRuntime(15830): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:865)
E/AndroidRuntime(15830): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(15830): at android.os.MessageQueue.next(MessageQueue.java:335)
E/AndroidRuntime(15830): at android.os.Looper.loop(Looper.java:183)

iOS端导入后运行导致APPIcon变成默认的flutter图标

iOS端设置了APP图标,导入flutter_bdface_collect: ^1.1.1后运行,图标会变成默认的flutter图标,去掉后又恢复回来,摸不清楚原因
以下是Podfile

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

install! 'cocoapods', :disable_input_output_paths => true
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))

  pod 'AMapLocation','~>2.8.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        # dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',

        # dart: PermissionGroup.photos
        'PERMISSION_PHOTOS=1',

        # dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        'PERMISSION_LOCATION=1',
      ]

    end
  end
end

环境如下

[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)

初始化报错

java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt: open failed: ENOENT (No such file or directory)
image
image

可以用手机视频?

Platforms

dart

Description

现在有一个功能是手机百度人脸识别打卡,但是现在发现手机录视频,然后对着另一个设备做识别,居然能通过?采集这块如何避免手机视频?

My code

No response

Try do it

No response

写入xml就会无法启用

Version

1.1.4

Platforms

Android

Device Model

安卓模拟器

flutter info

<!--将com.baidu.idl.face.demo替换成您工程的包名-->
        <provider android:authorities="com.zhiling.app.liantian.ac.provider"
                  android:name="com.baidu.liantian.LiantianProvider" android:exported="true"/>

只要在xml中写这个,就会无法启用,错误信息如下

How to reproduce?

    <provider android:authorities="com.zhiling.app.liantian.ac.provider"
              android:name="com.baidu.liantian.LiantianProvider" android:exported="true"/>

只要在xml中写这个,就会无法启用,错误信息如下

Logs

Launching lib\main.dart on DLT A0 in debug mode...
main.dart:1
√  Built build\app\outputs\flutter-apk\app-debug.apk.
E/AndroidRuntime(18919): FATAL EXCEPTION: main
E/AndroidRuntime(18919): Process: com.zhiling.app, PID: 18919
E/AndroidRuntime(18919): java.lang.RuntimeException: Unable to get provider com.baidu.liantian.LiantianProvider: java.lang.ClassNotFoundException: Didn't find class "com.baidu.liantian.LiantianProvider" on path: DexPathList[[zip file "/data/app/com.zhiling.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.zhiling.app-1/lib/x86, /data/app/com.zhiling.app-1/base.apk!/lib/x86, /system/lib, /vendor/lib]]
E/AndroidRuntime(18919): 	at android.app.ActivityThread.installProvider(ActivityThread.java:5934)
E/AndroidRuntime(18919): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5523)
E/AndroidRuntime(18919): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5462)
E/AndroidRuntime(18919): 	at android.app.ActivityThread.-wrap2(ActivityThread.java)
E/AndroidRuntime(18919): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1550)
E/AndroidRuntime(18919): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18919): 	at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(18919): 	at android.app.ActivityThread.main(ActivityThread.java:6197)
E/AndroidRuntime(18919): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(18919): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
E/AndroidRuntime(18919): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
E/AndroidRuntime(18919): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.baidu.liantian.LiantianProvider" on path: DexPathList[[zip file "/data/app/com.zhiling.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.zhiling.app-1/lib/x86, /data/app/com.zhiling.app-1/base.apk!/lib/x86, /system/lib, /vendor/lib]]
E/AndroidRuntime(18919): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(18919): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
E/AndroidRuntime(18919): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(18919): 	at android.app.ActivityThread.installProvider(ActivityThread.java:5919)
E/AndroidRuntime(18919): 	... 10 more

Example code (optional)

No response

Contact

No response

ios人脸识别后,关闭page释放资源,在进入page释放资源后会卡死。

ios系统:14.7.1
插件版本:1.0.4
执行await FlutterBdfaceCollect.instance.collect(config)人脸识别后,关闭page释放资源执行FlutterBdfaceCollect.instance.unInit(),然后再次进入Page,不管有没有执行 FlutterBdfaceCollect.instance.collect(config),在界面销毁释放资源后返回上一个界面会卡死。xocde定位是释放的资源方法报错。怎么解决?
lALPDhmOwlK8PDHNBKbNB8g_1992_1190
lALPDg7mRmRovEbNBMDNB-w_2028_1216

android 集成之后闪退

I/flutter ( 1641): 开始初始化
W/linker ( 1641): Warning: "/data/app/com.fluttercandies.flutter_bdface_collect_example-ysjrr808Vvqc_qQyRdK05Q==/lib/arm64/libpaddle_light_api_shared.so" unused DT entry: DT_RPATH (type 0xf arg 0x8a19) (ignoring)
E/License-SDK( 1641): bd_unifylicense load start
E/License-SDK( 1641): bd_unifylicense load end
W/Thread-4( 1641): type=1400 audit(0.0:56712): avc: denied { search } for pid=1641 name="block" dev="tmpfs" ino=10441 scontext=u:r:untrusted_app:s0:c235,c256,c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
I/License-SDK( 1641): Load liantian ac succeed
W/Thread-4( 1641): type=1400 audit(0.0:56713): avc: denied { search } for pid=1641 name="block" dev="tmpfs" ino=10441 scontext=u:r:untrusted_app:s0:c235,c256,c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
I/QarthLog( 1641): [PatchStore] createDisableExceptionQarthFile
I/QarthLog( 1641): [PatchStore] create disable file for com.fluttercandies.flutter_bdface_collect_example uid is 10235
E/AndroidRuntime( 1641): FATAL EXCEPTION: Thread-5
E/AndroidRuntime( 1641): Process: com.fluttercandies.flutter_bdface_collect_example, PID: 1641
E/AndroidRuntime( 1641): java.lang.UnsupportedOperationException: SDK Self Check: Provider Error,
E/AndroidRuntime( 1641): at com.baidu.liantian.g.d.j(CommonMethods.java:1497)
E/AndroidRuntime( 1641): at com.baidu.liantian.core.d$1.run(MethodImpl.java:63)
E/AndroidRuntime( 1641): at java.lang.Thread.run(Thread.java:929)
E/RtgSchedManager( 1641): endActivityTransaction: margin state not match
E/RtgSchedManager( 1641): endActivityTransaction: margin state not match
D/DecorView( 1641): showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true
I/Process ( 1641): Sending signal. PID: 1641 SIG: 9
Lost connection to device.

[Bug report] Android crash

Version

^1.1.8

Platforms

Android

Device Model

oppo(android 13)

flutter info

[✓] Flutter (Channel stable, 3.0.2, on macOS 13.3.1 22E772610a darwin-arm, locale zh-Hans-CN)
    • Flutter version 3.0.2 at /Users/yudaigua/Downloads/flutter_3.0.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cd41fdd495 (11 months ago), 2022-06-08 09:52:13 -0700
    • Engine revision f15f824b57
    • Dart version 2.17.3
    • DevTools version 2.12.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/yudaigua/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.65.2)
    • VS Code at /Users/yudaigua/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.40.0

[✓] Connected device (2 available)
    • PEQM00 (mobile) • FYKVMRLRRWDAXO65 • android-arm64 • Android 13 (API 33)
    • macOS (desktop) • macos            • darwin-arm64  • macOS 13.3.1 22E772610a darwin-arm

[✓] HTTP Host Availability
    • All required HTTP hosts are available

How to reproduce?

I use the main.dart code of the github project associated with the plugin. The test package name is the same as the official package name, the test is normal, but it crashes when the official package is opened

Logs

F/com.zlsk.xczx(32140): thread.cc:2468] No pending exception expected: java.lang.NoSuchMethodError: no static method "Lcom/baidu/vis/unified/license/AndroidLicenser;.getDeviceId(Landroid/content/Context;)Ljava/lang/String;"
F/com.zlsk.xczx(32140): thread.cc:2468]   at int com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(android.content.Context, java.lang.String, java.lang.String, boolean, int) (:-2)
F/com.zlsk.xczx(32140): thread.cc:2468]   at com.baidu.vis.unified.license.AndroidLicenser$a com.baidu.vis.unified.license.AndroidLicenser.a(android.content.Context, java.lang.String, java.lang.String, boolean, int) (:-1)
F/com.zlsk.xczx(32140): thread.cc:2468]   at void com.baidu.idl.main.facesdk.FaceAuth$1.run() (:-1)
F/com.zlsk.xczx(32140): thread.cc:2468]   at void com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run() (:-1)
F/com.zlsk.xczx(32140): thread.cc:2468] 
F/com.zlsk.xczx(32140): runtime.cc:675] Runtime aborting...
F/com.zlsk.xczx(32140): runtime.cc:675] All threads:
F/com.zlsk.xczx(32140): runtime.cc:675] DALVIK THREADS (50):
F/com.zlsk.xczx(32140): runtime.cc:675] "Thread-8" prio=5 tid=50 Runnable
F/com.zlsk.xczx(32140): runtime.cc:675]   | group="" sCount=0 ucsCount=0 flags=0 obj=0x12d6d920 self=0xb400007017acf400
F/com.zlsk.xczx(32140): runtime.cc:675]   | sysTid=6617 nice=0 cgrp=default sched=0/0 handle=0x704fde3cb0
F/com.zlsk.xczx(32140): runtime.cc:675]   | state=R schedstat=( 6007693 347000 2 ) utm=0 stm=0 core=6 HZ=100
F/com.zlsk.xczx(32140): runtime.cc:675]   | stack=0x704fce0000-0x704fce2000 stackSize=1039KB
F/com.zlsk.xczx(32140): runtime.cc:675]   | held mutexes= "abort lock" "mutator lock"(shared held)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #00 pc 0000000000570ec4  /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+148) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #01 pc 0000000000675a24  /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+340) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #02 pc 000000000069310c  /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+908) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #03 pc 000000000068ccac  /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+508) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #04 pc 000000000068bf54  /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool)+1796) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #05 pc 0000000000641644  /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+212) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #06 pc 000000000062bdc0  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1440) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #07 pc 0000000000017560  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80) (BuildId: 167481ebf6d9d15c317feb684fe496e7)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #08 pc 0000000000016a84  /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+356) (BuildId: 167481ebf6d9d15c317feb684fe496e7)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #09 pc 000000000067ac84  /apex/com.android.art/lib64/libart.so (art::Thread::AssertNoPendingException() const+1588) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #10 pc 00000000002a5660  /apex/com.android.art/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+64) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #11 pc 0000000000470f08  /apex/com.android.art/lib64/libart.so (art::JNI<false>::FindClass(_JNIEnv*, char const*)+1000) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #12 pc 000000000001bb88  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/lib/arm64/libbd_unifylicense.so (vka_license::vka_read_file(char const*, char**)+112) (BuildId: 6d30600a7d4ac45ea3f586cd761989e6b29b364f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #13 pc 000000000001e468  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/lib/arm64/libbd_unifylicense.so (vka_license::vka_license_init_local_info(vka_license::VKA_License*)+188) (BuildId: 6d30600a7d4ac45ea3f586cd761989e6b29b364f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #14 pc 000000000001e72c  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/lib/arm64/libbd_unifylicense.so (vka_license::vka_license_auth_from_file(vka_license::VKA_License*, char const*, char const*, int)+60) (BuildId: 6d30600a7d4ac45ea3f586cd761989e6b29b364f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #15 pc 0000000000019e68  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/lib/arm64/libbd_unifylicense.so (Java_com_baidu_vis_unified_license_AndroidLicenser_nativeFaceAuthFromFile+140) (BuildId: 6d30600a7d4ac45ea3f586cd761989e6b29b364f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #16 pc 000000000021a354  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #17 pc 000000000020a9d8  /apex/com.android.art/lib64/libart.so (nterp_helper+5848) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #18 pc 0000000000055e56  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/oat/arm64/base.vdex (com.baidu.vis.unified.license.AndroidLicenser.a+10)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #19 pc 000000000020a958  /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #20 pc 00000000000512de  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/oat/arm64/base.vdex (com.baidu.idl.main.facesdk.FaceAuth$1.run+94)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #21 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #22 pc 0000000000054028  /data/app/~~7H5HvJb7JJxHfsN9BvVdOw==/com.zlsk.xczx-Qhj8HHv3jBy1EnXHpl3Pxw==/oat/arm64/base.vdex (com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run+84)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #23 pc 000000000021096c  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+556) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #24 pc 000000000027af68  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+184) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #25 pc 0000000000624cac  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #26 pc 000000000066de60  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1296) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #27 pc 00000000000eb720  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #28 pc 000000000007e2d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native method)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.baidu.vis.unified.license.AndroidLicenser.a(unavailable:5)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.baidu.idl.main.facesdk.FaceAuth$1.run(unavailable:47)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(unavailable:42)
F/com.zlsk.xczx(32140): runtime.cc:675] 
F/com.zlsk.xczx(32140): runtime.cc:675] "main" prio=10 tid=1 Native
F/com.zlsk.xczx(32140): runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x72f72f28 self=0xb4000070cc410800
F/com.zlsk.xczx(32140): runtime.cc:675]   | sysTid=32140 nice=-10 cgrp=default sched=1073741824/0 handle=0x716e677500
F/com.zlsk.xczx(32140): runtime.cc:675]   | state=S schedstat=( 1013559227 60741769 1456 ) utm=74 stm=26 core=3 HZ=100
F/com.zlsk.xczx(32140): runtime.cc:675]   | stack=0x7ffe846000-0x7ffe848000 stackSize=8188KB
F/com.zlsk.xczx(32140): runtime.cc:675]   | held mutexes=
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #00 pc 00000000000d6a38  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #01 pc 0000000000017ffc  /system/lib64/libutils.so (android::Looper::pollInner(int)+188) (BuildId: 6038dbf95f76d91eaf842148f10f89ea)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #02 pc 0000000000017ee0  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: 6038dbf95f76d91eaf842148f10f89ea)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #03 pc 0000000000163fbc  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 81ca132df01d94e0a434a39c3d566749)
F/com.zlsk.xczx(32140): runtime.cc:675]   at android.os.MessageQueue.nativePollOnce(Native method)
F/com.zlsk.xczx(32140): runtime.cc:675]   at android.os.MessageQueue.next(MessageQueue.java:339)
F/com.zlsk.xczx(32140): runtime.cc:675]   at android.os.Looper.loopOnce(Looper.java:186)
F/com.zlsk.xczx(32140): runtime.cc:675]   at android.os.Looper.loop(Looper.java:351)
F/com.zlsk.xczx(32140): runtime.cc:675]   at android.app.ActivityThread.main(ActivityThread.java:8380)
F/com.zlsk.xczx(32140): runtime.cc:675]   at java.lang.reflect.Method.invoke(Native method)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
F/com.zlsk.xczx(32140): runtime.cc:675]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
F/com.zlsk.xczx(32140): runtime.cc:675] 
F/com.zlsk.xczx(32140): runtime.cc:675] "Signal Catcher" prio=10 tid=6 WaitingInMainSignalCatcherLoop
F/com.zlsk.xczx(32140): runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x144001f8 self=0xb4000070af40d000
F/com.zlsk.xczx(32140): runtime.cc:675]   | sysTid=6216 nice=-20 cgrp=default sched=0/0 handle=0x70af9fbcb0
F/com.zlsk.xczx(32140): runtime.cc:675]   | state=S schedstat=( 1520307 1032999 18 ) utm=0 stm=0 core=0 HZ=100
F/com.zlsk.xczx(32140): runtime.cc:675]   | stack=0x70af904000-0x70af906000 stackSize=991KB
F/com.zlsk.xczx(32140): runtime.cc:675]   | held mutexes=
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #00 pc 00000000000d6458  /apex/com.android.runtime/lib64/bionic/libc.so (__rt_sigtimedwait+8) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #01 pc 000000000008cc28  /apex/com.android.runtime/lib64/bionic/libc.so (sigwait64+88) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #02 pc 000000000065211c  /apex/com.android.art/lib64/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+364) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #03 pc 0000000000650e08  /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)+264) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #04 pc 00000000000eb720  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #05 pc 000000000007e2d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   (no managed stack frames)
F/com.zlsk.xczx(32140): runtime.cc:675] 
F/com.zlsk.xczx(32140): runtime.cc:675] "perfetto_hprof_listener" prio=10 tid=7 Native (still starting up)
F/com.zlsk.xczx(32140): runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x0 self=0xb4000070af278c00
F/com.zlsk.xczx(32140): runtime.cc:675]   | sysTid=6217 nice=-20 cgrp=default sched=0/0 handle=0x70af8fdcb0
F/com.zlsk.xczx(32140): runtime.cc:675]   | state=S schedstat=( 446770 5376460 17 ) utm=0 stm=0 core=1 HZ=100
F/com.zlsk.xczx(32140): runtime.cc:675]   | stack=0x70af806000-0x70af808000 stackSize=991KB
F/com.zlsk.xczx(32140): runtime.cc:675]   | held mutexes=
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #00 pc 00000000000d5774  /apex/com.android.runtime/lib64/bionic/libc.so (read+4) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #01 pc 000000000001dee4  /apex/com.android.art/lib64/libperfetto_hprof.so (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ArtPlugin_Initialize::$_34> >(void*)+260) (BuildId: e183e81495b737c36e3362453df41044)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #02 pc 00000000000eb720  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #03 pc 000000000007e2d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   (no managed stack frames)
F/com.zlsk.xczx(32140): runtime.cc:675] 
F/com.zlsk.xczx(32140): runtime.cc:675] "Jit thread pool worker thread 0" prio=5 tid=8 Native
F/com.zlsk.xczx(32140): runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x14400270 self=0xb4000070af41e800
F/com.zlsk.xczx(32140): runtime.cc:675]   | sysTid=6218 nice=9 cgrp=default sched=0/0 handle=0x70af7ffcb0
F/com.zlsk.xczx(32140): runtime.cc:675]   | state=S schedstat=( 415538 9253921 16 ) utm=0 stm=0 core=5 HZ=100
F/com.zlsk.xczx(32140): runtime.cc:675]   | stack=0x70af700000-0x70af702000 stackSize=1023KB
F/com.zlsk.xczx(32140): runtime.cc:675]   | held mutexes=
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #00 pc 0000000000078dec  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #01 pc 00000000002833dc  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+140) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #02 pc 0000000000694b78  /apex/com.android.art/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+120) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #03 pc 0000000000693f10  /apex/com.android.art/lib64/libart.so (art::ThreadPoolWorker::Run()+80) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #04 pc 00000000006939cc  /apex/com.android.art/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+172) (BuildId: 6633b359b987101fec368cce4b6cf785)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #05 pc 00000000000eb720  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   native: #06 pc 000000000007e2d0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: cd953571180b7f5f8ae5570dad29595f)
F/com.zlsk.xczx(32140): runtime.cc:675]   (no managed stack frames)
...
...

Example code (optional)

No response

Contact

[email protected]

android 初始化报错

请帮看看 Android,我实在是找不出原因了。
ios已经成功了,可以取到 base64数据

看记录好像是有3个问题:

  1. W/System.err(13851): java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt (No such file or directory)

  2. E/License-SDK(13851): request data {"err_no":700,"err_msg":"wrong match of appkey/packedge_name/signature_md5","result":[],"timestamp":1654142839,"cached":0,"serverlogid":"0439685333","error_code":700,"error_msg":"wrong match of appkey/packedge_name/signature_md5"}

  3. E/linker (13851): library "/system/lib/libandroid_runtime.so" ("/system/lib/libandroid_runtime.so") needed or dlopened by "/data/data/com.xcall.luding3rd2022/files/com.baidu.liantian.x0/libliantiansec35210.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="", permitted_paths="/data:/mnt/expand"]


Launching lib/main.dart on Mi Note 3 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Debug service listening on ws://127.0.0.1:49513/V4bkSrKd8bg=/ws
Syncing files to device Mi Note 3...
D/vndksupport(13851): Loading /vendor/lib64/hw/[email protected] from current namespace instead of sphal namespace.
D/vndksupport(13851): Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
I/l.luding3rd202(13851): ProcessProfilingInfo new_methods=1211 is saved saved_to_disk=1 resolve_classes_delay=8000
I/flutter (13851): 开始初始化
W/linker (13851): Warning: "/data/app/com.xcall.luding3rd2022-qut8UK5T4OXKeLB57NgCyw==/lib/arm64/libpaddle_light_api_shared.so" unused DT entry: DT_RPATH (type 0xf arg 0x8a19) (ignoring)
E/License-SDK(13851): bd_unifylicense load start
E/License-SDK(13851): bd_unifylicense load end
I/flutter (13851): 开始初始化
W/Thread-4(13851): type=1400 audit(0.0:2082): avc: denied { search } for name="block" dev="tmpfs" ino=11894 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
I/License-SDK(13851): Load liantian ac succeed
W/Thread-4(13851): type=1400 audit(0.0:2086): avc: denied { search } for name="block" dev="tmpfs" ino=11894 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
E/License-SDK(13851): read_license_from_system_path FileNotFoundException
W/System.err(13851): java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt (No such file or directory)
W/System.err(13851): at java.io.FileInputStream.open0(Native Method)
W/System.err(13851): at java.io.FileInputStream.open(FileInputStream.java:231)
W/System.err(13851): at java.io.FileInputStream.(FileInputStream.java:165)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_system_path(LicenseReaderUtils.java:54)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:38)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
W/System.err(13851): at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
W/System.err(13851): at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:114)
W/System.err(13851): at com.baidu.idl.main.facesdk.FaceAuth$1.run(FaceAuth.java:125)
W/System.err(13851): at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
E/License-SDK(13851): read_license_from_asset
E/License-SDK(13851): read_license_from_asset IOException
W/System.err(13851): java.io.FileNotFoundException: /sdcard/bd_license_request_url.txt
W/System.err(13851): at android.content.res.AssetManager.nativeOpenAsset(Native Method)
W/System.err(13851): at android.content.res.AssetManager.open(AssetManager.java:748)
W/System.err(13851): at android.content.res.AssetManager.open(AssetManager.java:725)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseReaderUtils.read_license_from_asset(LicenseReaderUtils.java:99)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseReaderUtils.get_local_license_file_inputstream(LicenseReaderUtils.java:45)
W/System.err(13851): at com.baidu.vis.unified.license.LicenseNewReader.readFile(LicenseNewReader.java:48)
W/System.err(13851): at com.baidu.vis.unified.license.AndroidLicenser.nativeFaceAuthFromFile(Native Method)
W/System.err(13851): at com.baidu.vis.unified.license.AndroidLicenser.authFromFile(AndroidLicenser.java:114)
W/System.err(13851): at com.baidu.idl.main.facesdk.FaceAuth$1.run(FaceAuth.java:125)
W/System.err(13851): at com.baidu.idl.main.facesdk.FaceQueue$PoolWorker.run(FaceQueue.java:51)
E/License-SDK(13851): open license file error.
E/License-SDK(13851): license file info =57140F3FE775DA74A225B85AA8DC6A39792F6E61D9C9FC1A1167870CB5A3AE7A83D8E844702CF84F56EECDD3491B55AB47147A34311B050CA0929B70A7690D85CBA81B932E1846DFEDB04629651BC0569F7F1960B6EEE11B5EE2D9587F4C0972CB42D10B2F2F6410AA9D13C662B7AAB72A54CD6321FAD7190D3F3835818A0918E8BF1B2669A8C13C14126DE006A2D03F3F862673CC8AD251969449D644517828684C9DFA8AB3A0DE931A9550647675B8628E4670616102FAF4302A6A4FC70C6A462A2A0A45586877F97468A2247BD27E6716A3C6F74889C901B9855C61E8D4E839B48313F0474CD071922B66A402ADA9AC717DD38BD85E758539313960FE80FE
E/License-SDK(13851): license file info =7EC7D5CB417800FC92E4F55E934494CEDE0664C2635FFE7EE39A4D86965FF9076811E788965F719AE6F5AB123B117EDF4DC6F7AD799A58BB399D15802AF16B156FCA1DE659F713253A30D147F582F24BEDA9D898AFA49CABFFDCA32AE9D88EE3459CF7B079D9CECE968472019530033B2B14C3E708473369E7BE0FC9336571AC10A462444B25BE7227023F13DC9462BF3CE58C1F8A283D3FF84F37735A74773779927ED285076BC07AC0D6119B2FAAE4A06FADBC529175F263327C111D6E6DDDF8EFF1978A2DA67621CD519A6356A03E2B8F882E18DD068C0C742C029BC0B74B68D1B2085BB19FDB05F1184FB27A2F491F0E5406C97836723FD281B8804071C9
D/NetworkSecurityConfig(13851): No Network Security Config specified, using platform default
E/License-SDK(13851): request get_remote_license =https://aip.baidubce.com/public/2.0/license/face-api/app/querydevicelicense
W/l.luding3rd202(13851): Accessing hidden field Landroid/content/pm/ApplicationInfo;->primaryCpuAbi:Ljava/lang/String; (light greylist, reflection)
W/l.luding3rd202(13851): Unsupported class loader
W/l.luding3rd202(13851): Skipping duplicate class check due to unsupported classloader
E/License-SDK(13851): request code 200
E/License-SDK(13851): request data {"err_no":700,"err_msg":"wrong match of appkey/packedge_name/signature_md5","result":[],"timestamp":1654142839,"cached":0,"serverlogid":"0439685333","error_code":700,"error_msg":"wrong match of appkey/packedge_name/signature_md5"}
E/jni (13851): java result = {"err_no":700,"err_msg":"wrong match of appkey/packedge_name/signature_md5","result":[],"timestamp":1654142839,"cached":0,"serverlogid":"0439685333","error_code":700,"error_msg":"wrong match of appkey/packedge_name/signature_md5"}
I/FaceSDK (13851): licenseKey:LUDING3RD2022-FACE-ANDROID,algorithmId:3;packageName:com.xcall.luding3rd2022,md5:18074EA6EA7A2A1098BD3B7248EEB4D5;deviceId:11140C1F12FEEB2C52DFBE67ED3E636897,fingerVersion:3.5.7.5;licenseSdkVersion:5.5.0.1-mobile-collection
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/res/AssetManager;->()V (light greylist, reflection)
E/l.luding3rd202(13851): Invalid ID 0x00000000.
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/res/AssetManager;->addAssetPath(Ljava/lang/String;)I (light greylist, reflection)
E/l.luding3rd202(13851): Invalid ID 0x00000000.
E/l.luding3rd202(13851): Invalid ID 0x00000000.
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/pm/PackageParser;->()V (light greylist, linking)
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/pm/PackageParser;->parsePackage(Ljava/io/File;I)Landroid/content/pm/PackageParser$Package; (light greylist, linking)
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/pm/PackageUserState;->()V (light greylist, linking)
W/l.luding3rd202(13851): Accessing hidden method Landroid/content/pm/PackageParser;->generatePackageInfo(Landroid/content/pm/PackageParser$Package;[IIJJLjava/util/Set;Landroid/content/pm/PackageUserState;)Landroid/content/pm/PackageInfo; (light greylist, linking)
E/l.luding3rd202(13851): Invalid ID 0x00000000.
W/sec-1-thread-4(13851): type=1400 audit(0.0:2097): avc: denied { getattr } for path="/system/bin/dun-server" dev="dm-0" ino=6906 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:dun-server_exec:s0 tclass=file permissive=0
W/sec-1-thread-4(13851): type=1400 audit(0.0:2098): avc: denied { getattr } for path="/system/bin/statsd" dev="dm-0" ino=6909 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:statsd_exec:s0 tclass=file permissive=0
W/sec-1-thread-4(13851): type=1400 audit(0.0:2099): avc: denied { getattr } for path="/system/bin/dumpstate" dev="dm-0" ino=6910 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:dumpstate_exec:s0 tclass=file permissive=0
W/sec-1-thread-4(13851): type=1400 audit(0.0:2100): avc: denied { getattr } for path="/system/bin/bpfloader" dev="dm-0" ino=6911 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:bpfloader_exec:s0 tclass=file permissive=0
W/sec-1-thread-4(13851): type=1400 audit(0.0:2101): avc: denied { getattr } for path="/system/bin/uncrypt" dev="dm-0" ino=6916 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:uncrypt_exec:s0 tclass=file permissive=0
W/Settings(13851): Setting adb_enabled has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
W/l.luding3rd202(13851): Accessing hidden method Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder; (light greylist, reflection)
W/l.luding3rd202(13851): Accessing hidden method Landroid/os/ServiceManager;->()V (light greylist, reflection)
E/libc (13851): Access denied finding property "persist.service.bdroid.bdaddr"
W/sec-1-thread-4(13851): type=1400 audit(0.0:2186): avc: denied { read } for name="u:object_r:bluetooth_prop:s0" dev="tmpfs" ino=11916 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:bluetooth_prop:s0 tclass=file permissive=0
W/sec-1-thread-4(13851): type=1400 audit(0.0:2187): avc: denied { search } for name="asound" dev="proc" ino=4026532036 scontext=u:r:untrusted_app:s0:c237,c256,c512,c768 tcontext=u:object_r:proc_asound:s0 tclass=dir permissive=0
W/l.luding3rd202(13851): Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (light greylist, reflection)
W/l.luding3rd202(13851): Accessing hidden field Landroid/app/ActivityThread;->mPackages:Landroid/util/ArrayMap; (light greylist, reflection)
E/linker (13851): library "/system/lib/libandroid_runtime.so" ("/system/lib/libandroid_runtime.so") needed or dlopened by "/data/data/com.xcall.luding3rd2022/files/com.baidu.liantian.x0/libliantiansec35210.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="", permitted_paths="/data:/mnt/expand"]
I/chatty (13851): uid=10237(com.xcall.luding3rd2022) sec-1-thread-4 identical 2 lines
E/linker (13851): library "/system/lib/libandroid_runtime.so" ("/system/lib/libandroid_runtime.so") needed or dlopened by "/data/data/com.xcall.luding3rd2022/files/com.baidu.liantian.x0/libliantiansec35210.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="", permitted_paths="/data:/mnt/expand"]
E/linker (13851): library "/system/lib/libgui.so" ("/system/lib/libgui.so") needed or dlopened by "/data/data/com.xcall.luding3rd2022/files/com.baidu.liantian.x0/libliantiansec35210.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="", permitted_paths="/data:/mnt/expand"]
E/linker (13851): library "/system/lib/libgui.so" ("/system/lib/libgui.so") needed or dlopened by "/data/data/com.xcall.luding3rd2022/files/com.baidu.liantian.x0/libliantiansec35210.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="", permitted_paths="/data:/mnt/expand"]

Failed to build iOS app

Content

克隆项目后直接运行报错, 运行日志:

aunching lib/main.dart on iPhone 14 Pro in debug mode...
Adding input path to Thin Binary build phase.
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Running pod install...
Running Xcode build...
Xcode build done. 47.7s
Failed to build iOS app
Error (Xcode): Undefined symbol: OBJC_CLASS$_FaceSDKManager

Error (Xcode): Undefined symbol: OBJC_CLASS$_IDLFaceDetectionManager

Error (Xcode): Undefined symbol: OBJC_CLASS$_IDLFaceLivenessManager

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.

集成后出现初始化错误(安卓)!

设置了 android 配置文件,同时授权文件也放到项目文件夹了。初始化出现问题,如下:
E/License-SDK( 7774): request get_remote_license =https://aip.baidubce.com/public/2.0/license/face-api/app/querydevicelicense
E/License-SDK( 7774): request code 200
E/License-SDK( 7774): request data {"err_no":301,"err_msg":"such app not exists","result":[],"timestamp":1675754866,"cached":0,"serverlogid":"1666225574","error_code":301,"error_msg":"such app not exists"}

虽然出现这个错误,还可以打开人脸识别界面,但是不能抓取人脸图像信息,请指教!

关于 iOS 音量的问题

Content

有个现象,iOS 手机声音开到最大,但是提示音量很小这个是什么原因造成的?有人遇到过吗?

iOS 采集闪退

Version

1.1.8

Platforms

dart, iOS

Device Model

iPhone 14 pro max iOS17

flutter info

[✓] Flutter (Channel stable, 3.13.5, on macOS 14.0 23A344 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.83.0)
[✓] Connected device (2 available)

How to reproduce?

人脸采集动作做完后闪退
问题详情.pdf

Logs

No response

Example code (optional)

No response

Contact

No response

集成进来的时候可能会爆错

error: Multiple commands produce '/Users/flower/merchant-app/merchant_app/build/ios/Debug-iphoneos/Runner.app/Assets.car':
1) Target 'Runner' (project 'Runner') has compile command with input '/Users/flower/merchant-app/merchant_app/ios/Runner/Assets.xcassets'
2) That command depends on command in Target 'Runner' (project 'Runner'): script phase “[CP] Copy Pods Resources”

我的处理方式

platform :ios, '9'

install! 'cocoapods', :disable_input_output_paths => true
添加了上面一句话,解决了,我现在是

environment:
sdk: ">=2.10.0 <3.0.0"
没有使用空安全

百度到的解决方案是:https://www.jianshu.com/p/1e46bf6c48eb 查看链接处理

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.