It is no longer possible to disable the stock camera by ordinary means but I’m going to show you a workaround for disabling the camera in CM12 and CM12.1.
I am not a fan of the stock camera in CyanogenMod 12, 12.1, or any other AOSP based custom ROM. They just never produce photos that are high enough quality when compared to the camera that comes with the OEM firmware. For example, the LG G3 camera, when using LG’s software, is amazing and it can really take some great looking photos. Then when you slap an AOSP based custom ROM on your phone, like CM12.1, the photos are noisy, have less detail and are just horrible in comparison. Don’t get me wrong, they’re okay. . .they just don’t compare to the OEM camera.
This is because the AOSP camera uses open source software and OEMs generally put a lot of work into tweaking, optimizing and getting their camera to work just right with the OEM firmware.
They almost always close source this code too, so it’s not easy to just port over the camera from an OEM skin like TouchWiz or LG UX and have it run exactly like it does for an AOSP ROM. Most of these OEM camera apps require a framework that is in the OEM skin and again, it’s just not easy to port it over and implant it into the AOSP ROMs. This isn’t always the case though but more often than not, it is.
So the solution to this is to download a nice camera application from the Google Play Store. Camera applications like A Better Camera, Manual Camera and FV-5 Camera all shoot some great photos and they work on AOSP based custom ROMs. They still don’t match the exact quality that an OEM camera application does, but still, it’s very, very close. Some people recommend downloading a port of Motorola’s stock camera, and it’s okay, but personally I like FV-5 Camera the most. It has a lot of nice features, the UI isn’t horrible and the quality of the photos are good on my LG G3.
The thing is, when you have two camera applications installed on an Android device, other 3rd party applications always ask you which camera application you want to use. For most stuff, this is okay because you can simply tap the ‘always’ button and the application will always know to open URL links in Chrome or Firefox(for example). For cameras though, this doesn’t seem to work. . .at least in WhatsApp. When I have two camera applications installed and I try to launch a camera from within the application, I always get asked which camera application I want to use. This isn’t the end of the world but it’s rather annoying when I take a dozen or so photos per day.
Thankfully, you can just go into the Apps section from within the Settings of Android, find the application that you want to disable and then disable it so that it doesn’t appear. This is what I used to do in CM12 and CM12.1 and I would disable the stock camera so then WhatsApp always knows to launch the FV-5 Camera application by default. However, for the last few weeks, the nightlies for CM12.1 have stopped allowing this. The Disable button is just grayed out and it can’t be disabled. Thankfully though, I have found a way to disable the camera and that is what I want to show you today.
CM12 Disable Stock Camera
- Enable Root for Apps
- Download and Install Terminal Emulator for Android
- Launch Terminal Emulator for Android
- Type the Following. . .
- . . .Press Enter
- Grant Root Access for Terminal Emulator for Android
- Type the Following. . .
- pm disable com.android.camera2
- . . .Press Enter
- Tap On the ‘X’ at the Top Right to Close the App Session
I’m not sure why the Disable button is grayed out on CM12.1 now but it used to not be that way. I used to be able to go into Settings, then Apps, tap on the Camera app and then tap on the Disable button and it would be disabled and moved to the Disabled column. Since this can’t be done anymore, you’ll have to enable root access for applications(if you already don’t have root enabled on CM12) and then download a terminal application. I suggest Terminal Emulator for Android as it is linked in the tutorial above. Once downloaded, launch the application and type the su command before pressing enter.
This will make the application ask for root access and you’ll want to grant root access to it so that we can execute the next command. After executing the second command, that is all you need to do to disable the stock camera in CM12. So just tap on the ‘X’ at the top right and it will close the session. You don’t want to leave a terminal command open with root access given to it and just tapping on the home button will not terminate the session. So close the session and then the application will close. Now you can double-check to make sure the camera application is no longer in the application drawer.