I’m also trying to get Arducam OV5647 to work on my Rock Pi 4B (Android 9).
It detects on startup, but when I try to launch the camera app, for some reason, I’m getting symptoms that I can’t find the camera.
ov5647 4-0036: Detected OV005647 sensor
07-31 17:23:28.461 2349 2349 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera2/com.android.camera.CameraActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2951)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6718)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.camera.CaptureModule.getFacingFromCameraId(CaptureModule.java:1629)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.camera.CaptureModule.init(CaptureModule.java:427)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1801)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7171)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7162)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2931)
07-31 17:23:28.461 2349 2349 E AndroidRuntime: ... 11 more
07-31 17:23:28.464 435 1233 W ActivityManager: Force finishing activity com.android.camera2/com.android.camera.CameraActivity
The LED lights up when it starts up, but then it disappears.
When I read this post, I wondered if it might be related to something.
I hope you can find some solution.
uname -a
Linux localhost 4.4.167 #4 SMP PREEMPT Sat Aug 1 12:44:36 UTC 2020 aarch64