On the Pixel 7 Pro ARCore switches to the wide angle camera when going close to something and autofocus is enabled.
There's no way this can be influenced and I couldn't find anything in the changelog or the documentation of the focus mode.
The problem with this happening is that the viewport changes but the camera matrix doesn't update so I cannot adapt to the changes and fix the positioning of my 3D objects.
VERSIONS USED
Android Studio: Android Studio Giraffe | 2022.3.1 Patch 2
ARCore SDK for Android: 1.39.0 and 1.40.0
Device manufacturer, model, and O/S: Google Pixel 7 Pro with Android 14
Google Play Services for AR (ARCore): 1.39.232070593 or 1.40.232630293
On Windows, use: adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
On macOS, use: adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
Output of adb shell getprop ro.build.fingerprint: google/cheetah/cheetah:14/UP1A.231005.007/10754064:user/release-keys
STEPS TO REPRODUCE THE ISSUE
Use the hello_ar_kotlin sample project and enable auto focus
Move the device slowly close to a surface. At a specific distance (about 10cm) ARCore switches to the wide angle camera of the device. When moving further away it switches back.
WORKAROUNDS (IF ANY)
Disabling the autofocus but that has other downsides and doesn't make sense for me
ADDITIONAL COMMENTS
Tested also on other devices but wasn't able to reproduce it on those:
Pixel 7 (panther), Pixel 6 Pro (raven), Pixel 6 (oriole), Pixel 5 (redfin), Samsung Galaxy S22+ (SM-S906B/DS)
SPECIFIC ISSUE ENCOUNTERED
On the Pixel 7 Pro ARCore switches to the wide angle camera when going close to something and autofocus is enabled. There's no way this can be influenced and I couldn't find anything in the changelog or the documentation of the focus mode. The problem with this happening is that the viewport changes but the camera matrix doesn't update so I cannot adapt to the changes and fix the positioning of my 3D objects.
VERSIONS USED
adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
On macOS, use:adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
adb shell getprop ro.build.fingerprint
: google/cheetah/cheetah:14/UP1A.231005.007/10754064:user/release-keysSTEPS TO REPRODUCE THE ISSUE
WORKAROUNDS (IF ANY)
ADDITIONAL COMMENTS