-
Notifications
You must be signed in to change notification settings - Fork 142
Device calibration unavailable OnePlus 3T #28
Comments
On my 3T logcat says:
|
Thanks for sharing your log! It is consistent with other crash logs, which is good. Isolating the issue. Please stay tuned. |
@tomthecarrot you think it's possible to force a specific build fingerprint like sailfish or marlin build to load the harcoded configuration ? |
My opinion is, Google's packed camera setting with calibration profile (FOV,focal length, etc) using for calculating in AR. That's mean hacking need more than a mimic fingerprint. |
Tried running sample.apk got same error as @SohnyBohny. On Android sample, getting no crash but it shows black screen with no viewfinder. I'm on OxygenOS 4.1.7 Log:
|
@tazzkiller Changing the build fingerprint requires modifying Has anyone here seen this file before? We might be able to transfer it, or at least analyze its format, which is unknown to me since Tango calibration happens in the shared library. |
@GearWalker I agree that this will require more than a fingerprint bypass to run well; Google has packed camera information into each device calibration file. However, it should still run on other devices, albeit with inferior tracking. Should be able to fix that eventually with other calibration files. |
This is the calibration of my lenovo phab 2 pro. If you have some times... Help us to use arcore. I hope it can be useful for the other devices:
|
Thank you very much @vespino75! I'll try it out. |
Please try this ARCore Service data directory mod and install it using: This modification to the data directory seems to make the calibration XML load just fine from the logcat messages I am seeing. It is based on the calibration XML that @vespino75 posted (thanks btw!) Please also make sure you have a recent backup of your device. Even though it only contains a backup for Tango Service + it didn't clear data on my phone + it shouldn't on yours, there is a chance of unexpected results when restoring. |
Have Xiaomi Mi5 with latest MIUI 8 Android 7.0 stock and restoring your backup-mod.ab and installing arcore modified.apk doesn't work..
so can a restore operation fail silently? |
also on this article "https://elandroidelibre.elespanol.com/2017/08/probamos-arcore-la-realidad-aumentada-mas-sencilla-android.html" a java arcore apk is provided |
@oscarbg Sorry about that.. Yes you are correct, the XML file should be named "calibration" and not "configuration". I'll correct that on my end also. It's possible that the restore itself failed or the directory was overwritten after the restore. Or maybe there is a necessary file manifest that doesn't contain the newly-added files? |
Hi, I was trying to make ARCore work on a Moto G5 Plus, but it's crashing when I try to open What's the best way to submit a diagnostic log? |
09-04 10:48:26.177 9051-9051/com.google.ar.core.examples.java.helloar E/SupportedDevices: Device calibration unavailable. |
I can't install “modified ARCore Service APK”,analysis this installation package APK failed |
@feng612266 please first uninstall the existing one via Settings > Apps or |
@nkkollaw The best way to submit a diagnostic log is to open a new issue on this repo with your device type, OS, and logcat output of the error. Thanks! |
S8-SM-G9500,Still open, stop running directly. |
Samsung Galaxy S7 Edge SM-G935A Nougat 7.0 doesn't work. Everything installed perfectly fine, tango stops working, unity logo, app closes. Asus Nexus 7 doesn't work Nougat 7.1.2 (it was worth a shot!) Everything installs perfectly fine, tango stops working, unity logo, app closes. |
In fact, modifying |
@PhanTask It seems that ARCore is loading a specific calibration file for each supported device, while unsupported devices do not contain a calibration file. If we could force ARCore to use a Pixel calibration file for every device, it wouldn't be perfect, but at least devs with other devices could start trying it out. |
Hi all, Just found out about this project but i think i have one pointer. After extracting the original arcore-preview.apk, i did a grep for "sailfish" or "marlin" strings, and found that some native libraries matched:
So, i decided to try the "strings" commandline tool in linux, and dumped the "libcamera_intrinsic_util.so" this way:
And found a section with what seems to be calibration files for sailfish (Pixel) and marlin (Pixel XL): Pixel
Pixel XL
So, maybe you can give this a try, instead of the Phab2pro calibration? I haven't tried it myself, but just getting familiar with the experiments you tried. Great work btw. Hope this helps. Regards, |
That's fantastic, @saaguirre! Thank you for your detailed research. Your information on the calibration files brings us a step closer to solving this challenge. |
@tomthecarrot |
I've resigned the arcore-preview-modified.apk with my debug keystore, and written another app with the same shareId to write "calibration.xml" into "/data/data/com.google.tango/files/config/online-calibration.xml". It seems I've passed the online calibration file check, but failed at CAD calibration check. Here's the log: 10-30 18:13:25.347 21015-21058/? I/tango: calibration_provider.cc:486 Instantiating calibration provider with sources:
10-30 18:13:25.362 21015-21015/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 21015 (om.google.tango) |
@tomthecarrot |
Hi @raghav-alevoor, could you send me a copy of "calibration_cad.xml"?Or you can paste it here in case others may need it. |
@Rysle I'm using the xml file for "Pixel XL" as posted by @saaguirre in this thread. |
Hy, If you want i have made a module for Magisk to enable ArCore to all devices. After installation your device is recognize to a Pixel XL and the calibration file is auto mounted to the right folder on system. you can download the zip here : https://drive.google.com/open?id=13yhaX7o5hk76Goz2GAnfXpn-ycwb8GuY PS : Of course official apk service by google work with this module. |
Hi everyone, sorry for the delay in responses; I have been working on college applications :) @Rysle I like your solution of a Service started by a received Broadcast, as it would also run on non-rooted devices. Does loading the calibration XML make ARCore functional on your device? @raghav-alevoor I'm glad it's stable with the build.prop modification. Is ARCore functioning normally, i.e. is it detecting surfaces and tracking points on your device? |
@tomthecarrot With the "Pixel XL" configuration file, image is inverted on my device (it's a custom device not OnePlus 3T). The sample app can detect surfaces and track point, due to the autofocus camera on my device it is not very reliable. |
Official ARCore service (tango core) works on Xiaomi Red Mi Note4 with Pixel Experience 8.1 AOSP custom ROM after installing magisk module that recognises device as Pixel XL, created by @tazzkiller posted in this thread. |
@irfan-r It's possible that Google made a change in the ARCore library that broke this modification on some devices. Feel free to research and try additional modifications to arcore-for-all to see if those will work on your device. |
arcore installs successfully but on running sample it logs:
The text was updated successfully, but these errors were encountered: