Oneplus Two Camera - G3 Developer Discussion [Developers Only]

Camera: https://drive.google.com/file/d/0B1WgAwb79dTuQWJnQmo4aHpTZEE/view?usp=docslist_api (This is not the deodexed camera, just the stock O+2 camera)
I deodexed it, camera fails to flash in TWRP. It just says failed. I don't know what the issue is, but it keeps failing. I'll edit this post with TWRP logs shortly.
The camera from Crazy Boy that (I think) is deodexed isn't working either. Post: http://forum.xda-developers.com/oneplus-one/themes-apps/apps-deodexed-oxygenos-2-0-apps-t3178472
Help!

It won't work.
Sent from my LG-D852 using Tapatalk

It's not a great camera UI anyways

Related

[Q] JB 4.3.1 - Camera broke

First off, does apps like Instagram use the camera app?
After updating to 4.3.1 (didn't do a wipe) I've had som issues with the camera, the rear camera does not work at all.
Links2004 said:
I got it too.
in the update file a some changes at:
keymaster / keystore
camera firmware
framework
services and telephony-common
what exactly has changed I do not know.
root + recovery need to be flashed again. but no problems.
Click to expand...
Click to collapse
HERE
That means I need a new camera app, right? The front facing camera works.
So the camera worked before with the same app? I would download some other ones to test it out. I also recommend a WIPE after doing the update.

[APP] Camera HAL Switcher

Hey guys!
I'm learning Android app development and decided to put the skills I learnt to some use, so here it is-
This app is for people like me who prefer the higher exposure time of the Stock HAL in low light (brighter and less noisy photos), but at the same time want to use all the features of Sultan's HAL like 4K video, etc.
It can also be used if you want to compare the two HALs or decide to revert to Stock in the future (no need to dirty flash your ROM now!).
Features:
Switch between Stock and Sultan's HAL on the fly (no reboot required!)
Backup and restore Stock HAL files (no need of a revert zip now)
Launch your default Camera from within the app
Should work on all ROMs 5.1.1 and above (EDIT: It doesn't seem to be working on OOS. Will try to fix it in the near future).
Will even work when Sultan updates his HAL
WARNING: This app is designed to run only on a rooted OPX running Android 5.1.1 and above. It might break your camera if used on any other phone!
Installation Instructions:
Install the APK file
Dirty flash your current ROM (only if you have already flashed Sultan's HAL)
Press the Backup button in the app (Status should say "Not Installed" at this time)
Flash Sultan's HAL zip from recovery
Usage:
If you're performing a clean ROM install in the future, be sure to hit the backup button within the app before flashing Sultan's HAL.
If Sultan releases an update to his HAL, be sure to switch to his HAL from within the app before flashing the updated zip.
If for whatever reason you encounter any issues, dirty flash your ROM and follow the Installation instructions again. This should fix them.
Credits:
@Sultanxda for his awesome HAL!
Note: Neither Stock HAL files nor Sultan's HAL files are included in this app
Any bug fixes, feature requests and reviews are always welcome (I'll be working on it only when I have free time).
Finally, it goes without saying- I'm not responsible for any damage whatsoever caused to your device by using this app!
XDA:DevDB Information
Camera HAL Switcher, App for the OnePlus X
Contributors
ashwinpilgaonkar
Source Code: https://github.com/ashwinpilgaonkar/CamHALChanger
Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2016-05-25
Created 2016-05-25
Last Updated 2016-05-25
XDA:DevDB Information
Camera HAL Switcher, Device Specific App for the OnePlus X
Contributors
ashwinpilgaonkar
Version Information
Status: Stable
Created 2016-05-25
Last Updated 2016-08-17
Changelog:
26th May, 2016 (v1.0)
- Initial Build
28th May, 2016 (v1.01)
- Fixed issue in which camera was broken after switching to Stock HAL.
OMG awesome mate!!
But where's the link??
animesh1558 said:
OMG awesome mate!!
But where's the link??
Click to expand...
Click to collapse
Downloads tab at the top of OP.
Really great work @ashwinpilgaonkar This will come in handy to a vast majority of people !
Great application and idea, good job, but for some reason when switching to stock HAL my camera apps stop working. I was following your instructions and flashed HAL after installing the app and backuping the old HAL. Any suggestions?
Wht if im usimg sultanrom?
WOW
nice idea.
Love it!
LolHacker17 said:
Wht if im usimg sultanrom?
Click to expand...
Click to collapse
No, this wont work if you're using Sultan's ROM as it comes with the custom HAL pre installed. You would have to manually copy the Stock HAL files from CM13 for it to work.
mindphuq said:
Great application and idea, good job, but for some reason when switching to stock HAL my camera apps stop working. I was following your instructions and flashed HAL after installing the app and backuping the old HAL. Any suggestions?
Click to expand...
Click to collapse
Does this only happen when switching to Stock HAL? It works fine for me.
Which ROM are you using?
Try dirty flashing it and following the instructions once again.
where does it backup stock camera hal to?
jgcmurray said:
where does it backup stock camera hal to?
Click to expand...
Click to collapse
It creates a copy with the extension of .stock in the same directory where it is originally located.
ashwinpilgaonkar said:
No, this wont work if you're using Sultan's ROM as it comes with the custom HAL pre installed. You would have to manually copy the Stock HAL files from CM13 for it to work.
Does this only happen when switching to Stock HAL? It works fine for me.
Which ROM are you using?
Try dirty flashing it and following the instructions once again.
Click to expand...
Click to collapse
It only works with Sultan HAL and when switching to stock HAL, camera stops working. I am on CM13 Official latest nightly with bluspark kernel, xposed and supersu 2.65. First time I've tried it I had OOS 3.0.1 camera installed from the other thread. Then I dirty flashed without installing that camera and tried your app with the stock google camera from opengapps, still no luck. I really, really want this working on my phone
mindphuq said:
It only works with Sultan HAL and when switching to stock HAL, camera stops working. I am on CM13 Official latest nightly with bluspark kernel, xposed and supersu 2.65. First time I've tried it I had OOS 3.0.1 camera installed from the other thread. Then I dirty flashed without installing that camera and tried your app with the stock google camera from opengapps, still no luck. I really, really want this working on my phone
Click to expand...
Click to collapse
I have the same ROM and kernel as you and it's working fine for me. It doesn't look like anyone else is having any issues either.
Send me a screen record of the entire process. I maybe able to figure out whats going wrong.
ashwinpilgaonkar said:
I have the same ROM and kernel as you and it's working fine for me. It doesn't look like anyone else is having any issues either.
Send me a screen record of the entire process. I maybe able to figure out whats going wrong.
Click to expand...
Click to collapse
This is great in theory and i've waited for something like this to hopefully be made in which I am very greatful for. However, I'm on rooted OOS 2.2.0 with Blue spark and the same issue occurs for me - It says action performed successfully when applying the Stock HAL, but when launching the camera app it says "Unknwon error".
I have tried clearing cache and data for the stock camera app, but no luck.
Matthius said:
This is great in theory and i've waited for something like this to hopefully be made in which I am very greatful for. However, I'm on rooted OOS 2.2.0 with Blue spark and the same issue occurs for me - It says action performed successfully when applying the Stock HAL, but when launching the camera app it says "Unknwon error".
I have tried clearing cache and data for the stock camera app, but no luck.
Click to expand...
Click to collapse
Same problem as him - "Unknown Error" in OOS camera and "Can't connect to the camera" in google camera. Tried cleaning cache aswell, even tried with cleaning davlik/cache after installing sultan HAL.
For some reason my screen recorder cuts the videos before I can't record everything, so I can't provide a video. I can extract logs or something if you need them?
Mindphuq said:
Same problem as him - "Unknown Error" in OOS camera and "Can't connect to the camera" in google camera. Tried cleaning cache aswell, even tried with cleaning davlik/cache after installing sultan HAL.
For some reason my screen recorder cuts the videos before I can't record everything, so I can't provide a video. I can extract logs or something if you need them?
Click to expand...
Click to collapse
Yeah my recorder stops too. Here's error though after applying https://youtu.be/ivviaicSa4I
Maybe a direct option to clear "camera App" data (not onlycache) could help.
I'm trying the MOD right now.
Edit : same problem for me.
I had to wipe camera app data, , launch it from drawer and then it worked.
Without that, camera app couldn't be launched from Hal Switcher.
Kéno40 said:
Maybe a direct option to clear "camera App" data (not onlycache) could help.
I'm trying the MOD right now.
Edit : same problem for me.
I had to wipe camera app data, , launch it from drawer and then it worked.
Without that, camera app couldn't be launched from Hal Switcher.
Click to expand...
Click to collapse
I just tried this, still doesn't work for me unfortunately.
It doesn't matter what app it is so therefore I presume it's not just the stock camera app it's to do with something technical that can hopefully be fixed with a bit of tweaking.
Matthius said:
I just tried this, still doesn't work for me unfortunately.
It doesn't matter what app it is so therefore I presume it's not just the stock camera app it's to do with something technical that can hopefully be fixed with a bit of tweaking.
Click to expand...
Click to collapse
Doesn't work with clearing app data for me aswell.
Matthius said:
I just tried this, still doesn't work for me unfortunately.
It doesn't matter what app it is so therefore I presume it's not just the stock camera app it's to do with something technical that can hopefully be fixed with a bit of tweaking.
Click to expand...
Click to collapse
Root ok on your app?
Kéno40 said:
Root ok on your app?
Click to expand...
Click to collapse
What do you mean?
Nothing on the app seems to indicate if root access is okay.
Sent from Tapatalk on the OPX

Google camera port with Hdr+ (abandoned)

This is kinda work in progress port of Gcam with hdr+ for arm devices. it's based on google camera version 4.2.035.141213305-arm.
it needs camera api 2 enabled. you can enable it via flashing the zip I've attached or add below line into build.prop.
Code:
persist.camera.HAL3.enabled=1
Stock rom is preferred, but it should work on all roms as long as above requirement is met.
Google camera apk
Please let me know if auto/touch focus works or not. happy testing :good:
Credit : @defcomg
Requires TWRP for flashing zip. or root for manually editing build.prop
rooted?
kraatus90 said:
This is kinda work in progress port of Gcam with hdr+ for arm devices. it's based on google camera version 4.2.035.141213305-arm.
it needs camera api 2 enabled. you can enable it via flashing the zip I've attached or add below line into build.prop.
Code:
persist.camera.HAL3.enabled=1
Stock rom is preferred, but it should work on all roms as long as above requirement is met.
Please let me know if auto/touch focus works or not. happy testing :good:
Credit : @defcomg
Click to expand...
Click to collapse
Does it need a rooted phone?
rioschala said:
Does it need a rooted phone?
Click to expand...
Click to collapse
Since it requires flashing this file, I think root is required. Not sure if can be done without.
Activating "Slow Motion" mode crashing the camera app.
rioschala said:
Does it need a rooted phone?
Click to expand...
Click to collapse
To modify the build.prop requires root as you are changing a file in system
gkornaks said:
Activating "Slow Motion" mode crashing the camera app.
Click to expand...
Click to collapse
slowmotion video won't work, nor i will fix it. moto cam have that option already. this is only for hdr+
Again, i don't have this phone to test, does HDR+ with touch/auto focus works or not on this phone ? seriously guys you are getting free lunch here, all i'm asking how it tastes and you can't even tell me that ?
Camera not working
My camera not working after flash zip.Before camera work
AsusZenFone3Deluxe said:
My camera not working after flash zip.Before camera work
Click to expand...
Click to collapse
Very detailed post. :good:
Ahhhahah
Hahaha reboot and camera2api deleted and canera working bro
Not working, have installed apk n also flashed zip. No option in build.prop so added my own (no idea if it's right) camera just stops on opening.
Any further testing feel free to give me a shout
I've included my about phone so you can see what I'm running need to get around to sorting my signature out on here
What don't will work without root/camera2 api?
m-rufflesmcghie said:
Not working, have installed apk n also flashed zip. No option in build.prop so added my own (no idea if it's right) camera just stops on opening.
Any further testing feel free to give me a shout
I've included my about phone so you can see what I'm running need to get around to sorting my signature out on here
Click to expand...
Click to collapse
Can you try it on stock rom ? custom roms have their own set of problems some times.
kraatus90 said:
Can you try it on stock rom ? custom roms have their own set of problems some times.
Click to expand...
Click to collapse
I tried on Stock. Same issue
Hello
First of all thank you the thing is working great on aicp (13).
There seems to be no problem with touch to focus our HDR+. In fact I even tried it on copy is (android 8.0.0) and it kinda cured it of the camera bug.
Thanks again.
Post more.
Thanks again...
Working in LOS 15! Seems that it doesn't fall victim to the problem of freezing when trying to take more than one consecutive photo which is very nice! It has a few quirks such as only going up to about 9MP max resolution (due to being ported from a 9MP device?), a few of the features such as slow motion and panorama etc. are not working, and trying to use HDR+ with the front-facing camera crashes the app, but it seems that the point of this was just to get HDR+ working so I'd say it's working nicely! The image quality is great despite the loss of resolution, especially in low light and autofocus / touch to focus seems to be working fine! Thanks!
I was testing with Ressurection Remix 7.1.1 and the camera doesn't work.
Tried without editing the build.prop and crashed, flashed the .zip and not only the google camera didn't work, it also broke the other cameras (LO Camera and Moto Camera). Putting the value back to 0 restored functionality in both cameras but Google Camera is still not working.
Hope my feedback helps
Enabling api2 completely crashes my camera and makes my flashlight unusable, know why?
Could you please port the ar stickers for Moto g5.... tried too much.
---------- Post added at 07:23 AM ---------- Previous post was at 07:21 AM ----------
kraatus90 said:
This is kinda work in progress port of Gcam with hdr+ for arm devices. it's based on google camera version 4.2.035.141213305-arm.
it needs camera api 2 enabled. you can enable it via flashing the zip I've attached or add below line into build.prop.
Code:
persist.camera.HAL3.enabled=1
Stock rom is preferred, but it should work on all roms as long as above requirement is met.
Google camera apk
Please let me know if auto/touch focus works or not. happy testing :good:
Credit : @defcomg
Requires TWRP for flashing zip. or root for manually editing build.prop
Click to expand...
Click to collapse
Please port the AR stickers for Moto g5.
CypherPotato said:
What don't will work without root/camera2 api?
Click to expand...
Click to collapse
HDR+ won't work without enabling camera 2api.
Root is required to manually enable camera 2api so you can probably just flash the zip by the dev and be done with it without rooting your device.
Nice port. Everything working fine on STOCK OPTIMIZED rom, except:
- HDR+ in Frontal Camera crashes the app
- Slow Motion crashes the app
- Sometimes the video recorder don't saves the video, don'ts show any message or error.
And for some uses that can't start app because it's crashing on start:
Reinstall system
Don't flash HAL3 zip
Start the rom, boot, insert your Google Credentials
after setting up the rom, restart your phone and flash the zip
after flashing the zip, install gcam apk as normal apk
that's all
---------- Post added at 10:21 AM ---------- Previous post was at 10:20 AM ----------
And yes, touch to focus and auto-focus is working too. In video recorder the touch to focus works too.

[MIUI Camera][ANXCamera][48MP Fixed][Working][Custom roms]

MIUI camera for all custom roms.
Uninstall all camera mods and patches
AXN Camera v94 modded
1-portrait mode fixed.
2-48mp fixed
Download-https://drive.google.com/file/d/15-czv6xrbp0-DJjyjGgZQeLVdfsqJfKO/view?usp=sharing
All credit goes to #AEonAX for his ANXcamera port and Me
Try it and report me back what is working and what is not.
Tested on Mokee latest 201906190631 nightly rom .
Every thing is working perfectly
Tested it. The camera works fine, the 48MP options working good. But always crashed on potrait mode camera.
IMHO, gcam had a better picture quality.
This mod replaces the default camera apps on installed. It means, your default camera apps will gone after flash this mod.
Any way to recover it?
Thanks anyway.
Good job devs.
Testing on PE Rom CAF Edition latest build.
psychoelmo said:
Tested it. The camera works fine, the 48MP options working good. But always crashed on potrait mode camera.
IMHO, gcam had a better picture quality.
This mod replaces the default camera apps on installed. It means, your default camera apps will gone after flash this mod.
Any way to recover it?
Thanks anyway.
Good job devs.
Testing on PE Rom CAF Edition latest build.
Click to expand...
Click to collapse
Only portrait mode is not working??
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender?? Then I can make that version stable with 48Mp mod.
ARNOB XENON said:
Only portrait mode is not working??
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender?? Then I can make that version stable with 48Mp mod.
Click to expand...
Click to collapse
Yeah, for me the potrait mode made the apps crashed and when I open the camera again, it stays on potrait mode. So I can barely open the apps, the only way to recover it just with clear the storage of the apps. So the camera restarting the state, just like when opened for the first time.
ARNOB XENON said:
Is portrait mode working on 112 original version?? from anx??
Can u mention any other anx camera version in which portrait mode is working on your lavender??
Click to expand...
Click to collapse
Idk, never tried ported anx camera before. This was my first time.
Maybe you can provide the link for other version of this ported apps for lavender? I can try if I know where to download the files.
psychoelmo said:
Yeah, for me the potrait mode made the apps crashed and when I open the camera again, it stays on potrait mode. So I can barely open the apps, the only way to recover it just with clear the storage of the apps. So the camera restarting the state, just like when opened for the first time.
Idk, never tried ported anx camera before. This was my first time.
Maybe you can provide the link for other version of this ported apps for lavender? I can try if I know where to download the files.
Click to expand...
Click to collapse
https://github.com/XEonAX/ANXCamera/releases/
try the lower versions and let me know
ARNOB XENON said:
https://github.com/XEonAX/ANXCamera/releases/
try the lower versions and let me know
Click to expand...
Click to collapse
Tried every lower version till v100
V98 cannot even open in photo mode.
So I'm guessing lower than that will not work anymore.
Every version till v100, none of them works in potrait mode.
The rom still on PE ROM CAF editions.
I flashed it in my Redmi note 7 Indian version and it broke everything the anxCamera says can't connect to the camera. GCam is crashing and WhatsApp is crashing while opening camera.
I'm on PE ROM caf edition.
AsifKhan22 said:
I flashed it in my Redmi note 7 Indian version and it broke everything the anxCamera says can't connect to the camera. GCam is crashing and WhatsApp is crashing while opening camera.
I'm on PE ROM caf edition.
Click to expand...
Click to collapse
Reflash the zip in twrp, it will uninstall the anxCamera.
psychoelmo said:
Reflash the zip in twrp, it will uninstall the anxCamera.
Click to expand...
Click to collapse
Reflashing the zip uninstalled the camera but gcam and other camera apps still didn't work. I had to reflash the ROM to make it work again.
psychoelmo said:
Tried every lower version till v100
V98 cannot even open in photo mode.
So I'm guessing lower than that will not work anymore.
Every version till v100, none of them works in potrait mode.
The rom still on PE ROM CAF editions.
Click to expand...
Click to collapse
please change the rom and try something else like other caf based roms.And see if it works or not because in our violet some the people stated that they are having same portrait mode bug but after switching 1/2 roms they found everything working.I don't have lavender so u need to test. And portrait mode bug is reported on the official Camera mod too.So if they fix portrait mode u will have fully bugless camera app from me .
AsifKhan22 said:
Reflashing the zip uninstalled the camera but gcam and other camera apps still didn't work. I had to reflash the ROM to make it work again.
Click to expand...
Click to collapse
Same here, Lavender with Havoc OS 2.6. Installed everything (camera related) crashed, uninstalled, still nothing works. Even the stock camera app stops working.
Please check it, or put a warning in the first post.
papp0us said:
Same here, Lavender with Havoc OS 2.6. Installed everything (camera related) crashed, uninstalled, still nothing works. Even the stock camera app stops working.
Please check it, or put a warning in the first post.
Click to expand...
Click to collapse
The post is updated try out the official one.
Note- It will never work on havoc and OOS try some other caf based rom
ARNOB XENON said:
The post is updated try out the official one.
Note- It will never work on havoc and OOS try some other caf based rom
Click to expand...
Click to collapse
Well not working is one thing, creating problems is another
Thanks for mentioning though, too bad it looked great.
papp0us said:
Well not working is one thing, creating problems is another
Thanks for mentioning though, too bad it looked great.
Click to expand...
Click to collapse
Use v115 and use this patch uninstall previous patch before flashing this https://drive.google.com/file/d/1c5t-rlIZN8j3D2wPv5aoVzfFkKmJc3kr/view
And report me back
AXN Camera Official 115
Download-https://github.com/XEonAX/ANXCamera/releases/download/115.singularity/ANXCameraUnity_115.BlissfulHeftyLion.zip
Patch link-https://drive.google.com/file/d/1c5t-rlIZN8j3D2wPv5aoVzfFkKmJc3kr/view?usp=sharing
At 1st flash the camera then reboot then flash the 48mp patch fix.
Do not flash the 48Mp patch from Github
All users please try this one with new patch
I'm using V83 and it so good to work. No problem with Gcam & other. But when i use v111 - 114 it crash all. No Camera can working, Anx & Gcam. So i uninstall it and Gcam working good again. Hope v115 so good than.
Can i flash v115 on v83 or uninstall 83 before install v115
V115: Portrait make app error. Come back v83 is the good idea !
v115 works fine except for portrait mode where the app crashes. Also shooting in 48mp mode only gives 12mp images.
can anyone test 4k eis?
BabyRed2234 said:
V115: Portrait make app error. Come back v83 is the good idea !
Click to expand...
Click to collapse
V115 with patch?? Installed

[XT1789-03] Flashed Dirty Unicorns 13.4 RC-Build and camera keeps Crashing..Solution?

Recently flashed Dirty Unicorns 13.4 most RC-Build & Tachyon Kernel by Uzephi on my [XT1789-03] {Sprint} variant everything is working fine except Camera. Like previous (DU-Pie builds) Camera app of rom Doesn't open it shows message "Camera Stopped working close app?" .
Moto Camera 2 also shows an error "A rear Camera isn't working some modes aren't available. if restarting your phone doesn't fix this problem, you can contact Motorola Error Code : 04400001" and there is no option to use Portrait mode on rear camera in the app .
while I was on stock 8.0 I was using this Modded Gcam Apk from a post (link below) I decided to give it a shot on DU Camera working but not as expected.
Anyone who could help?
https://forum.xda-developers.com/z2-force/themes/app-modded-gcam-hdr-t3735494/page7
Try this cam, it's pretty decent.
https://www.celsoazevedo.com/files/android/google-camera/dev-arnova8G2-beta/#apk1075
DU seems to have disabled/not been built to support the 2nd main camera (black & white mode).

Categories

Resources