FP3 stock Camera app - APK please

I recently switched to /e/ OS. Would like to use the FPOS stock Camera app because of its nice video stabilization.

Any hints on how to get this app?

PS it’s a bit like https://forum.fairphone.com/t/how-to-reinstall-official-fairphone-camera-app-under-cyanogenmod/3836

OK, extracted a ‘SnapdragonCamera.apk’ from system.img in Fairphone’s latest FP3 ROM.

It crashes on /e/ :roll_eyes:

You may try to get a log from your phone while starting the app to search for the crash reason.

1 Like

Got the logcat!

Seems the app is missing several libraries - I suspect they’re not part of the APK I was so glad to obtain. Hmmm… :thinking: any chance a normal user can fix this?

07-14 10:19:02.895 11102 11102 E PanoramaCapture: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_panorama.so"
07-14 10:19:02.896 11102 11102 D ChromaflashFilter: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_chromaflash.so"
07-14 10:19:02.896 11102 11102 D BlurbusterFilter: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_blurbuster.so"
07-14 10:19:02.897 11102 11102 D SharpshooterFilter: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_sharpshooter.so"
07-14 10:19:02.898 11102 11102 D TrackingFocusFrameListener: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_trackingfocus.so"
07-14 10:19:02.898 11102 11102 D SnapCam_SettingsManager: add camera 0 facing:back=0
07-14 10:19:02.898 11102 11102 D SnapCam_SettingsManager: add camera 1 facing:front=1
07-14 10:19:02.902 11102 11102 E SnapCam_SettingsManager: Codec = 1, capabilities: mMinFrameWidth = 176 , mMinFrameHeight = 144 , mMaxFrameWidth = 800 , mMaxFrameHeight = 480
07-14 10:19:02.903 11102 11102 I chatty  : uid=10139(com.android.fpcamera3) identical 3 lines
07-14 10:19:02.904 11102 11102 E SnapCam_SettingsManager: Codec = 1, capabilities: mMinFrameWidth = 176 , mMinFrameHeight = 144 , mMaxFrameWidth = 800 , mMaxFrameHeight = 480
07-14 10:19:02.910   484   484 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
07-14 10:19:02.926   484   484 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 2 lines
07-14 10:19:02.926   484   484 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
07-14 10:19:02.934 11102 11102 D SnapCam_CaptureModule: init
07-14 10:19:02.934 11102 11102 D AndroidRuntime: Shutting down VM
07-14 10:19:02.935 11102 11102 E AndroidRuntime: FATAL EXCEPTION: main
07-14 10:19:02.935 11102 11102 E AndroidRuntime: Process: com.android.fpcamera3, PID: 11102
07-14 10:19:02.935 11102 11102 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/base.apk"],nativeLibraryDirectories=[/data/app/com.android.fpcamera3-p3U-0k43Jf138iL2JNgQ1w==/lib/arm64, /system/lib64]]] couldn't find "libjni_imageutil.so"
1 Like

@fidelious Could you please share the SnapdragonCamera.apk ? I’d like to try it on the current version of /e/; I even have both an FP3 and FP3+ here. I just have never extracted something out of a ROM…

1 Like

Hello @Hamm325, please find it at https://we.tl/t-2o4FnItSsM

@fidelious Thank you! Crashes at start for me too on both the FP3 with Android 9 based /e/ and FP3+ with Android 10 based /e/.

Hi all,
that app is a priviledged system app on the stock FP3 system and trying to get it to run is a lot of trouble.

I was able to half-way fix this on LineageOS by first uploading these blobs into the app’s own native libraries folder, named something like /data/app/com.android.fpcamera3-gXAqD9Yq5Z1FKG6CO0tFyA==/lib/arm64/. The lib/arm64 part of the path needs to be created first since it does not exist. After this, the app will start, but not run stably. I got a few pictures and videos, but it always ends up crashing sooner or later.

1 Like

Thanks for testing!

On LOS 17.1-based Arrow OS for Motorola G5Plus (potter), the included Camera app looks like another SnapDragonCamera offspring. Repository is at ArrowOS · GitHub.

Hi all,
I tried installing the stock camera app on Lineageos 17.1 and I wanted to give some feedback.
I extracted the SnapdragonCamera.apk from the stock ROM, installed it on my FP3 with its file manager, then I added the binary blobs dkk1978 provided (the stock ROM still uses the exact same .so files apparently).
After rebooting the phone, the app launched successfully. I was able to film videos, and take photos using the portrait mode and the pro mode. But taking a photo in the “photo mode” made the app crash for some reason I was not able to understand.
I can provide logs if someone needs it.
Apparently, some libraries are still missing (namely “libjni_panorama.so”, “libjni_chromaflash.so”, “libjni_blurbuster.so”, “libjni_sharpshooter.so”, “libjni_trackingfocus.so” and maybe “libmpbase.so”) but I wasn’t able to find them in the stock ROM.
The logcat also states some permissions are being denied (I didn’t install the app as a system app so that may be related).
Just before the app crashed, the last logs were related to java exceptions (buffer overflow).
I hope this will help and thanks to those who explored before me.