Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run ARCORE with the SM-G9500?

When I run ARcore on my mobile phone with SM-G95000, the project will crash. Is my device not supported ARcore?

like image 586
夏蒋勇 Avatar asked Feb 01 '26 12:02

夏蒋勇


2 Answers

Try a modified version of the arcore-client which removes the check: https://github.com/tomthecarrot/arcore-for-all

In your Android project, simply replace the Google-provided arcore_client.aar with the one in this repo, and voilà! ARCore on any Android device.

Make sure to first install ARCore Service - "Preparing your Device" section of Google's instructions https://developers.google.com/ar/develop/java/getting-started

EDIT: If you use such "hacked" versions, you have to expect a bad tracking performance since the devices have to be properly calibrated.

like image 160
PhilLab Avatar answered Feb 04 '26 07:02

PhilLab


I run ARCore on Samsung Galaxy S8+ SM-G955F which is not officially supported, so I believe that you can run too.

Prerequisite:

  1. Read your Model Number from Settings. In my case SM-G955F.
  2. Open ARCore sample project in AndroidStudio, open HelloArActivity.java and go to onCreate method.
  3. Add Log here.

    if (!mSession.isSupported(mDefaultConfig)) {
        Toast.makeText(this, "This device does not support AR", Toast.LENGTH_LONG).show();
        Log.d(TAG, "Fingerprint=" + Build.FINGERPRINT);
        finish();
        return;
    }
    
  4. Run this code and read fingerprint. In my case it contains

    dream2ltexx/dream2lte

Now go to ARCore folder.

  1. Extract arcore-android-sdk-master/libraries/arcore_client.aar
  2. Go to extracted folder and extract classes.jar
  3. Edit /com/google/atap/tangoservice/SupportedDevices.class I use MidnightCommander in GNU/Linux system. Shortcut to edit is Shift+F3 then F4 then find similar string to yours fingerprint. In my case it was "dreamltexx/dreamlte:7". I changed this string to "dream2ltexx/dream2lte"
  4. Use 'jar' tool to zip back to classes.jar or use 'zip' and change extension to .jar.
  5. Zip back all arcore_client and change extension to .aar
  6. Replace aar library and rebuild in AndroidStudio.

In my case it works. Happy hacking!

like image 30
marekk Avatar answered Feb 04 '26 05:02

marekk