Reproduction steps:
1. Open the attached project "ReproProj" with Android Platform
2. Open the “/Assets/Scenes/main scene.unity” Scene
3. Build and Run on an Android device
4. Observe that the AR camera automatically focuses
5. Press the Button with the text “Set Resolution”
6. Observe the Player
Expected result: The camera automatically focuses
Actual result: The camera will not focus
Reproducible with: 5.0.6 (2021.3.31f1)
Not reproducible with: 5.1.0 (2021.3.30f1, 2022.3.10f1, 2023.1.15f1), 6.0.0-pre.3 (2023.2.0b11, 2023.3.0a7)
Fixed in: 5.0.7 (2021.3.31f1)
Reproducible on:
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- If the Button to set the resolution is pressed one more time after completing the above steps, the camera will focus again
- If you turn off autofocus before you change the config, and then wait one second, and then turn autofocus back on, it works