简体   繁体   English

我们可以在不受支持的 Android 设备上运行 Google ARCore 吗?

[英]Can we run Google ARCore in non-supported Android Device?

We have customized ROM for Android P and running on one of our QCom board.我们为 Android P 定制了 ROM,并在我们的 QCom 板上运行。 We're trying to run the ARCore in our test android app just to make sure that our devices will have support for the Google ARCore.我们正在尝试在我们的测试 android 应用程序中运行 ARCore,以确保我们的设备将支持 Google ARCore。

Now in order to make it work, I've followed the steps mentioned here:现在为了使它工作,我已经按照这里提到的步骤进行操作:

Download & Installed the Google Play Services for ARCore.apk from https://developers.google.com/ar/develop/java/emulator#update-arcorehttps://developers.google.com/ar/develop/java/emulator#update-arcore下载并安装 ARCore.apk 的 Google Play 服务

Download & Installed the ARCore test app from https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java/app/src/main/java/com/google/ar/core/examples/java/common/renderinghttps://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java/app/src/main/java/com/google/ar/core/下载并安装 ARCore 测试应用程序示例/java/common/rendering

Now when I tried to run the app I am getting this exception:现在,当我尝试运行该应用程序时,我得到了这个异常:

06-24 10:14:45.858 31388 31388 E native  : session_create_implementation_shared.cc:1912 Unable to obtain device profile from the content provider: NOT_FOUND: Device is not supported.
06-24 10:14:45.858 31388 31388 E native  : session_create_implementation_shared.cc:1670 Failed to create calibration config and device profile.
06-24 10:14:45.859 31388 31388 W native  : session_create_implementation_shared.cc:1671 CreateDeviceProfileDirectDependencies returning NOT_FOUND:
06-24 10:14:45.859 31388 31388 W native  : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:1916
06-24 10:14:45.859 31388 31388 W native  :  [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE'].
06-24 10:14:45.859 31388 31447 V third_party/redwood/infrastructure/jni_common/jni_helper.cc: ~JniHelper: about to detach thread (Called from line 339).
06-24 10:14:45.859 31388 31447 V third_party/redwood/infrastructure/jni_common/jni_helper.cc: ~JniHelper: detached thread (Called from line 339).
06-24 10:14:45.860 31388 31388 E native  : error_policy_util.cc:260
06-24 10:14:45.860 31388 31388 E native  : ################ ARCore Native Error ##################
06-24 10:14:45.860 31388 31388 E native  : BUILD_CHANGELIST:309859035
06-24 10:14:45.860 31388 31388 E native  : BUILD_BASELINE_CHANGELIST:307322850
06-24 10:14:45.860 31388 31388 E native  : ################### Stack Trace Begin ################
06-24 10:14:45.860 31388 31388 E native  : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:1916  https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc?g=0&l=1916
06-24 10:14:45.860 31388 31388 E native  : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:257  https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=257
06-24 10:14:45.860 31388 31388 E native  : ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:337  https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=337
06-24 10:14:45.860 31388 31388 E native  : ################### Stack Trace End #################
06-24 10:14:45.860 31388 31388 E native  :
06-24 10:14:45.975 26848 26880 E libc    : Access denied finding property "ro.hardware.chipname"
06-24 10:14:45.965 26848 26848 W com.android.vending: type=1400 audit(0.0:654): avc: denied { open } for comm=62674578656375746F72202331 path="/dev/__properties__/u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=12631 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
06-24 10:14:46.010 31388 31388 E HelloArActivity: Exception creating session
06-24 10:14:46.010 31388 31388 E HelloArActivity: com.google.ar.core.exceptions.UnavailableDeviceNotCompatibleException
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at java.lang.reflect.Constructor.newInstance0(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.google.ar.core.Session.throwExceptionFromArStatus(Session.java:102)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.google.ar.core.Session.nativeCreateSessionAndWrapperWithFeatures(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.google.ar.core.Session.<init>(Session.java:14)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.google.ar.core.Session.<init>(Session.java:6)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.google.ar.core.examples.java.helloar.HelloArActivity.onResume(HelloArActivity.java:169)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1413)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.Activity.performResume(Activity.java:7300)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3815)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3855)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1817)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.os.Handler.dispatchMessage(Handler.java:106)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.os.Looper.loop(Looper.java:193)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at android.app.ActivityThread.main(ActivityThread.java:6746)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at java.lang.reflect.Method.invoke(Native Method)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-24 10:14:46.010 31388 31388 E HelloArActivity:       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)

I believe it is because of my device is not in the list of ARCore supported devices: https://developers.google.com/ar/discover/supported-devices我相信这是因为我的设备不在 ARCore 支持的设备列表中: https://developers.google.com/ar/discover/supported-devices

My question is, is there a way I can run ARCore in my device?我的问题是,有没有办法可以在我的设备中运行 ARCore? I have also downloaded the ARCore SDK source code, is there a way I can update that source code and run AR Core app on my device?我还下载了 ARCore SDK 源代码,有没有办法可以更新该源代码并在我的设备上运行 AR Core 应用程序?

Thanks in Advance.提前致谢。

If your Android smartphone is not on the list of supported ARCore devices, try to use PTC Vuforia 9.0 for Unity.如果您的 Android 智能手机不在支持的 ARCore 设备列表中,请尝试使用 PTC Vuforia 9.0 for Unity。 There are some chances that your phone may build ARCore projects via Vuforia.您的手机有可能通过 Vuforia 构建 ARCore 项目。

Also, you can try to install ARCore-for-All with ARCore-Patch to get around ARCore installation's restrictions but I'm not sure if it'll helps you to cheat Google.此外,您可以尝试使用ARCore-Patch安装ARCore-for-All以绕过 ARCore 安装的限制,但我不确定它是否会帮助您欺骗 Google。 And please take into consideration that installation of these libs may break / compromise security of your Android OS.请注意,安装这些库可能会break / compromise Android 操作系统的安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM