Stock camera on LineageOS: Permissions denied

I installed the microg-edition of LineageOS 20 on my Fairphone 4, pulled the stock camera app FPCamera.apk (, v2.0.039(06301600-01)) out of the latest firmware update file and installed it on the phone. I also rooted it via Magisk.

Whenever I start the stock camera app, I get a “Permissions denied” message:

Permissions denied. You can change them in Settings > Apps.

I have given it all permissions it asked for and that are selectable: Camera, Microphone, Location.

adb logcat looks like it wants to have storage permissions, but I do not get asked for them:

CAM_PermissionUtils: checkPermissions, [android.permission.WRITE_EXTERNAL_STORAGE]
ActivityTaskManager: START u0 { (has extras)} from uid 10190
CompatibilityChangeReporter: Compat change id reported: 174042980; UID 10190; state: DISABLED
CAM_QuickActivity: onCreate return,  by permission check!

What can I do to get the stock camera app working on my Fairphone4?

(I read the 2022-02 stock camera thread, but that one seems outdated by now since OpenCamera is able to access the wide angle lens. And according to Gallery Proxy for FPCamera (stock camera app) it must be possible somehow.)

It seems as if the WRITE_EXTERNAL_STORAGE permission is of no help anymore on Android 13:

Note: If your app targets Build.VERSION_CODES.R (Android 11) or higher, this permission has no effect.

So the stock camera on the stock OS probably only works because the default permissions xml file declares the permission :frowning:

I managed to get the camera app working by manually giving the permission via adb:

adb shell pm grant android.permission.WRITE_EXTERNAL_STORAGE

To view the taken photos I had to install the gallery proxy app (forum thread)

1 Like