OnePlus 5/5T Front Camera Fix (V1)
About the fix:
- It modifies the front camera library to enable portrait mode, hdr+, raw, etc.
- Credits go to defcomg/savitar, Arnova8G2, shadowstep, and everyone that worked on previous versions.
- Android versions: Android 8 (use v3 or higher for Android 9).
- Requirements: TWRP recovery or a rooted phone.
- Limitations:
- The front camera resolution is reduced to 4MP to avoid pink/red photos.
- Breaks the front unlock feature (use Tasker to avoid this issue).
- Suggestion: Perform a TWRP backup before applying the fix in case something goes wrong.
- All versions: v1, 2, 2.2, 2.3, 2.4, 2.5, 3, 4, 4.1, 4.2, 4.3, 4.41, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 6.0, 6.1, 6.2, 6.3, 7.0.
Downloads:
- Magisk module: magisk-front-camera-fix-oreo-4MP-op5-5t-v1.1.zip;
- TWRP: twrp-front-camera-fix-oreo-op5-5t.zip;
- File manager: files-front-camera-fix-oreo-op5-5t.zip;
- Tasker script: XDA thread;
Instructions:
Using Magisk:
- Download and install the module via the Magisk Manager
- Reboot
Using TWRP:
- Download the zip and install it via TWRP
- Reboot
- Repeat these steps every time you update your ROM
Using a file manager (root):
- Download and unzip the .zip file
- Using a file manager (eg: MiXplorer), move the file(s) to /system/vendor/lib
- Make sure the permissions for both files are 644
- Reboot
- Repeat these steps every time you update your ROM
Using Tasker:
How to remove the fix:
- If you used a TWRP zip/manually moved the files: dirty flash your ROM.
- If you used Magisk: remove the module and restart.
Final notes:
- This fix was created by defcomg.
- Arnova8G2 created TWRP zips with defcomg's fixes for users without root.
- Rohit jat helped me with details about the 5/5T camera limitations.
- I've fixed an incompatibility with Magisk 16.
- Thanks to everyone that helped testing this fix.
- (For developers) defcomg explains how he modified the files: imx179, imx371.
- Update alerts: telegram, rss feed, twitter, mastodon