[OnePlus 5T  Themes, Apps, and Mods] JCDentonMale:
Hi,

This is my first thread as a dev so please accept my appologies if there's an established way to make this and I'm not doing it. :)

I managed to create a flashable zip to add the official OnePlus Camera, OnePlus Camera Service and OnePlus Gallery packages to an existing LineageOS 15.1 rom.

Maybe this was already availble somewhere made by someone else but I couldn't find it so here I upload it and share my version of it.

Instructions:

1. Remove any phone protection (fingerprints, schemas...) prior to anything else

2. Reboot to TWRP

3. Flash op5t_camera_patch.zip (make a backup if you want before)

4. Wipe Cache/Dalvik when proposed

5. Reboot system

6. Open the OnePlus Camera, this will create the config files in /data/data/com.oneplus.camera with correct permissions. At this step, portrait mode is not enabled yet, this is normal.

7. Long press the OnePlus camera icon and open the infos of the camera app, and force close it.

8. Extract the data-data-com.oneplus.camera.zip archive.

9. Inside you will find a folder com.camera.one/shared_prefs

10. Copy the XML files of the folder com.oneplus.camera/shared_prefs/ from the zip to your device /data/data/com.oneplus.camera/shared_prefs/ (replace existing files, may require root)

11. Now you can use the OnePlus Camera and the OnePlus Gallery! And Portrait mode should work.

Enjoy :o

Caution:

- Please don't flash over non-LineageOS roms! It could overwrite some important files and cause issues. I personally use the MicroG fork of LineageOS with no issues. Also, it has been tested only with the latest LineageOS builds (starting from 2018-05-14).

- This is only for the OnePlus 5T. It may work for the 5 but I cannot test it. Also this is the APKs from the 5T and there's no guarantee they will work with another device.

Notes:

- This is a work in progress, at the moment there are issues with HDR Auto, optical zoom and portrait mode not being 100% functional.

- Don't take me for responsible about any problem that may arise, this is your device, and only you can decide what you flash inside. That said, it should not cause any issue.

- This is the APKs from the latest OxygenOS for the OP5T (5.1.1)

- I had to re-sign the OnePlusCameraService.apk with my own signature because of a shared user issue. When I removed the shared user from AndroidManifest.xml, obviously the signature was wrong. So I re-signed it.

- There are a lot of shared libraries in this flashable zip, some probably unrelated to the camera, service and gallery. I just compared the libraries and jar between OxygenOS and LineageOS, and put them in the zip. I didn't take the time to check which one are unrelated.

- This also adds the package com.oneplus (OnePlus System). Don't know if that's a good thing or not.

- This zip will not overwrite anything because it only contains something no present in LineageOS.

- I have the feeling my iddle battery drain has reduced. Maybe because of the Oneplus System package.

Downloads:

https://nofile.io/f/QMteWeWCT7h/op5t_camera_patch.zip

https://nofile.io/f/rurW0tJpWND/data-data-com.oneplus.camera.zip

Temporary mirrors (will stop working in 60 days):

https://framadrop.org/r/nvdU_L7q_C#j9XrmIRz+WWshtyhkmm1i8Asgbown0D5OkeAfmmKo4o=

https://framadrop.org/r/nOAqp4mVNE#i6JKBlxBQHEVQnRh6UgWAyLjqxwX/BYnDsXKt0bR8MU=

I will post Android File Host links as soon as possible.