[NEED MORE TESTERS]ARcore working on Axon 7 (also for non-rooted users)

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
First of all READ THE WHOLE OP, PLEASE. Also pay attention to the "PS" at the bottom of this post.
(This post is still a work in progress)

WE NEED MORE TESTERS. Anybody with an A2017G and stock oreo(and the cam2 api patch below). Also more A2017U users on stock oreo need to help and test this.
Please report back if it works or not.

Requirements:
Selinux set to permissive (idk why but with enforced, ARcore doesn't work)
Camera 2 api is required. A2017G users need to flash this patch by @raystef66 https://androidfilehost.com/?fid=11410932744536993784

This won't be any simplified how to guide from me (more on that later).
Instead im gonna link 2 github issue posts which anyone with a little know-how about adb, sideloading/restore, root etc can follow to get ARcore working (reminder that it's also possible for non-rooted users).

First the main post
https://github.com/tomthecarrot/arcore-for-all/issues/139

IMPORTANT QUOTE and reason for not making a personal simple tutorial by myself (PAY ATTENTION TO THE LAST 2 SENTENCES PLEASE):
"Finally, we really only intended this mechanism for internal development use. We're mentioning it here because we see users super excited about running ARCore on additional devices, and agree that having to root your phone to do that is dumb. That said, we really only want to expose this to users already familiar with adb, side-loading, rooting, and the instability and wackyness that can arise from those things. Don't go out of your way to make it easy for novice users run ARCore on unsupported devices, and don't ask for support through official channels. If either of those start happening, we may have to cripple or remove this capability, and I think that's a loss for everyone involved."

What i think they are trying to prevent is "novice" users which don't know much about the matter in general, from flooding/spamming the official channels seeking for help. Also don't treat github as a forum. Don't ask the official devs for help. This is an UNSUPPORTED gift from the devs after all.
INSTEAD ask your questions here on this very xda thread and respect the official ARcore devs and the ARcore-for-all project. Thank you

I recommend reading through the whole github post as it's very informative on the matter and you might learn a thing or two.

Second post with instructions for rooted devices:
https://github.com/tomthecarrot/arcore-for-all/issues/139#issuecomment-466587565

For non-rooted users, please read through the github post. You need to know how to operate ADB restore properly.

Again, if you have any questions, ask here.
ARcore isn't working perfectly as of now since the calibration file we will be using isn't property tweaked yet (as the file itself was created for max compatibility for as many devices as possible). So let's work together, experiment with the values inside the calibration file (if you know how and what each value does, unlike me lol) and maybe, one day, we will have a proper, stable and smooth ARcore experience for our device.

Here is an example gif of me trying it out
https://thumbs.gfycat.com/GleefulShortBordercollie.webp (cant use IMG BB code to embed it into the post since its not in an actual gif format)

PS: i made this post on the phone and it's still a work in progress (especially now since xda labs messed up and only posted half of the OP for some reason). I plan to edit it later on pc for more clarity to make it visually easier and more appealing to read (currently sick, but i was so excited that i got ARcore working and really wanted to share it with you guys).
Since xda labs messed up with the post, some sentences are written differently than i originally intended. So i tried to fix it by re-writing the missing parts from memory and copy-pasting the whole text and posting it through the browser version of xda. So sorry if it is a little messy. All the more reason to edit it on pc later on xD.
 
Last edited:

kountry83

Senior Member
Mar 5, 2011
587
270
53
Baytown
Did everything the second post says to do for rooted users. Still a no go for me. When I load arcore measure it just flashes "acore keeps stopping"
Then it says ArCore is not able to run on this device.
What did you edit in your custom device profile?
Thanks bud
 

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
Did everything the second post says to do for rooted users. Still a no go for me. When I load arcore measure it just flashes "acore keeps stopping"
Then it says ArCore is not able to run on this device.
What did you edit in your custom device profile?
Thanks bud
I didn't edit anything yet since i have no idea what these values accomplish.

Do you have installed the camera2 api patch by @raystef66 ? Its needed, otherwise ARcore can't work. I edited OP and put the link to it at the top. (Totally forgot to add that this is the requirement)

Have you followed the steps exactly as they say? Quote: "Install the "arcore-modified-preview.apk" from*the "service-mod" branch*(it's linked in the README)"
See attached screenshot.


Download latest Arcore (from apmirror for example) and install that.
It doesn't have to be 1.7. You can just download the latest up to date version.

Follow the steps until he asks you to open the ARcore apk. What he now means by that is use any zip file viewer (i used rar for example) and with it open the official ARcore apk you downloaded (not the modified preview) and extract the textproto file from there.

Other than that i don't see any confusion coming from the rest of the instructions (renaming the file, putting it in the right folder etc)
 

Attachments

Last edited:

kountry83

Senior Member
Mar 5, 2011
587
270
53
Baytown
I didn't edit anything yet since i have no idea what these values accomplish.


Do you have the camera2 api patch installed by raystef66? This is necessary since it won't work without camera 2 api.

Have you followed the steps exactly as they say? Quote: "Install the "arcore-modified-preview.apk" from
I haven't installed raysteff66's camera2api patch but I have level_3 camera2 API and I went by the instructions you linked for rooted devices. I installed and modified everything it tells me to do.

P.s. I am using a ZTE Axon 7 A2017U on Oreo stock.
 

Attachments

Last edited:

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
I haven't installed raysteff66's camera2api patch but I have level_3 camera2 API and I went by the instructions you linked for rooted devices. I installed and modified everything it tells me to do.

P.s. I am using a ZTE Axon 7 A2017U on Oreo stock.
Im sorry read my reply again, xda labs doesn't post my full replies for some odd reason so i used the browser version.
 

kountry83

Senior Member
Mar 5, 2011
587
270
53
Baytown
I'm running stock B20 Oreo and followed the instructions accurately. Do I need to clear the cache? I don't understand why it's crashing. I posted the screenshots of what I have.
 

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
I'm running stock B20 Oreo and followed the instructions accurately. Do I need to clear the cache? I don't understand why it's crashing. I posted the screenshots of what I have.
Hmm. Did you also set the permissions from the "files" folder as same as the others?

I didn't need to clear the cache and it worked for me.
 

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
@kountry83 if the "files" folder have the right permission and it still doesnt work. Could you maybe try a different camera ID?

Open the textproto file inside the files folder and edit the line camera_id: and change the 0 to 1.
Maybe this will do it.
See screenshot below

Maybe 0 is the front and 1 could be the back on the A2017U
 

Attachments

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
We need more A2017G and U users with stock oreo to test ARcore. Please if any of you have already tested it and it works or not, please just say so in a reply and mention which device you used (G or U).

Edited OP as well to mention this
 
Last edited:

kountry83

Senior Member
Mar 5, 2011
587
270
53
Baytown
We need more A2017G and U users with stock oreo to test this. Please if yoh have already tested it and it works or not, please just say so in a reply and mention which device you used (G or U)
Set the file to 0666. Still crashes with arcore measurement app. Even restarted and still crashes. What is your files folder permission?

Do you think you could make a flashible please with set permissions?
 

GodOfPsychos

Senior Member
Mar 15, 2014
497
614
0
26
Solingen
Set the file to 0666. Still crashes with arcore measurement app. Even restarted and still crashes. What is your files folder permission?

Do you think you could make a flashible please with set permissions?
My folder permission is the same as yours, 2771

Did you try changing camera ID as i mentioned in a previous post?