Related
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
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.
[C103/106][0x04] Linage OS 14.1It's ROM made for 0x04 revision of our device.
You can try to install on other revision, but all tested only at 0x04. (C103 Sound work)
I am using universal sound libs, sound should work on r116 c106 c103, but not tested.
You need installed JUI and twrp for installing this rom;
Working:
- Wifi
- Data
- Ril
- Sensor/led
-BT
-Sound
- A2DP
- Camera
-Vide recording
- Native brightness (Full)
- HAL3
- ... all except "Not working"
Not working:
- Stock camera app (EUI,JUI Coolpad camera) Use Gcam https://www.celsoazevedo.com/files/android/google-camera/f/GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk
Rom is very clean. No gapps and camera app. You need to install this yourself.
Download:
V4.1:
- Stock camera patch (install after first start)
- fix Wifi save state bug
- fix WifiAPbug (after Wifi AP , could not connect to wifi)
- PowerSave native android mode (work two cores from little cluster)
- fix Noize in mic
Download https://drive.google.com/file/d/1QG3FgVFV76DYdC2SlcYZT-zZU4E8_Ye2/view
After install and start install Stock camera patch:
https://drive.google.com/file/d/1JnI-q295VcxEBWbUP8QzNlDWccwJ5odf/view?usp=sharing
v3
Changelog:
- PlayMarket work (fixed)
- Gapps
Download (v3):
https://drive.google.com/file/d/1Wcbzq4dpdudue9so8zo2J_fY389_6D3M/view
- Stock camera
For work you need restore TitaniumBackup
https://drive.google.com/file/d/1bOhZro0-63SkH71nyLyZxuocHsDW5290/view?usp=sharing
I fixed this in v4
P.S. You need restore only appdata
V2
- IR Working
- core_ctl (JUI CPU Powermanagment support)
V2
https://drive.google.com/file/d/1jtZVyRJLibZFz8r1HTTseCdOdojPkghQ/view
Screenshots:
Clean LinageOS 14.1 , noting else.
Credits:
hromoyzorin
uadima
Donate
1529yLvkmQHqhtgcDkYyZ7VgYxHnUyxefj (BitCoin)
IR fix uploading
Tried it. But after flashing Gapps there is no google playstore. I failed to install google play services and decided to revert to Jui. Can you include a working Gapps with playstore?
I cannot flash this rom on my phone,do you know why:crying:
---------- Post added at 05:00 AM ---------- Previous post was at 04:52 AM ----------
timothymontes said:
Tried it. But after flashing Gapps there is no google playstore. I failed to install google play services and decided to revert to Jui. Can you include a working Gapps with playstore?
Click to expand...
Click to collapse
Hi,I flashed this rom,but it did not work,do you know why
timothymontes said:
Tried it. But after flashing Gapps there is no google playstore. I failed to install google play services and decided to revert to Jui. Can you include a working Gapps with playstore?
Click to expand...
Click to collapse
It's fixed in v3
Some bug
I tried v3. Its wonderfull ROM. Almost worked properly. But I got some bugs. Stock camera FC , dark of video record at lowlight & incorrect battery capacity. Only 3000mAh. Can you fix that.
I using R116
Thanks.
mulyono24 said:
I tried v3. Its wonderfull ROM. Almost worked properly. But I got some bugs. Stock camera FC , dark of video record at lowlight & incorrect battery capacity. Only 3000mAh. Can you fix that.
I using R116
Thanks.
Click to expand...
Click to collapse
Stock camera work but you need restore titanium backup.
https://drive.google.com/file/d/1bOhZro0-63SkH71nyLyZxuocHsDW5290/view?usp=sharing
Dark google camera its not bug of firmware. If you restore Camera backup you can record video on stock camera.
(Stock camera SLR work, but after capture camera crashed, but photo made)
Battery capacity fixed in v4. Its not important
Hello,I tried this rom,very great!But the Magisk and Substratum were not work,can you fix them in v4¿Thank you very much
Thanks. Working in c106.
The only problem was no voice calls. Fixed it by installing Buildprop app from playstore. In Buildprop, search and type "call" and 2 entries will appear; choose the first one on fluence and edit change from "true" to "false." Save and reboot. Good to go.
V4!
---------- Post added at 03:14 AM ---------- Previous post was at 02:50 AM ----------
V4!
Update v4.1
Changelog:
- Stock camera patch
- fix Wifi save state bug
- fix WifiAPbug (after Wifi AP , could not connect to wifi)
- PowerSave native android mode (work two cores from little cluster)
- fix Noize in mic
Is it essential to be already upgraded to jui 7.1 or can we flash it in eui 5.8 , why?
SnapDRAGON98 said:
Is it essential to be already upgraded to jui 7.1 or can we flash it in eui 5.8 , why?
Click to expand...
Click to collapse
Only after install JUI, i can not start Android7 on EUI kernel.
Camera issue
I flashed the stock camera. No video, says audio in use.
And the SLR doesn't work, the beauty mode is not taking any effect.
Tried the GCam, no video either.
Other than these, works great.
@SimbyOS i've a problem with ussd. Can you help me? USSD messages doesnt show completely. How i can fix that?
Do I have to burn this package at the bottom of the j u i?
Substratum and Magisk not work
All work in my phone c106 except camera not stable, flash jui first and flash this, don't forget flash kernel by simbyos too
C103 v4.1 stock camera SLR not work
Hi.. i have tried v4.1 and install patch for stock camera but it always fc anytime i use slr mode. How do i fix this problem? Thank you so much.
How do i check my hardware is 0x04 or not? I'm on Cuoco JUI 7.1.
Hi, I updated the camera app on play store, but after that it never worked anymore. When I open it, it gets stucked in a black screen with the camera logo in the center of the screen and then crashes. Can somebody please help me to fix this issue? Thanks in advice
Latest Google Camera (or version installed with gapps) only works on google devices (and maybe android one).
That is why there is GCam Ports available, and to make these work, you need to downgrade gapps to version that doesn't include Google Camera (Pico/Nano). Otherwise they will conflict even if you remove the app with TiBu etc.
Thank you very much! And how can I downgrade gapps? I have the super package
peppejuve said:
Thank you very much! And how can I downgrade gapps? I have the super package
Click to expand...
Click to collapse
Dirty flash a smaller gapps package, be careful with what launcher your using because it maybe removed in the process.
Backup before hand just in case other google apps your using get removed. Reinstall from backup or play.
As for Gcam Port, i use this version from this thread.
As another alternative look at Mi A2 camera port for access to duel camera features.
Let me know if I got it: to downgrade the package, I only have to install a smaller package and it will automatically remove the bigger one? Is there a tutorial for it?
Okay, I managed to do everything right. But now I have another problem. The camera that you sent to me, crashes when I try to open the front camera. So I tried a bunch of other cameras, and the only one that works is the Arnovas, even if it doesn't save the selfies with hdr+ activated and when I try to take a selfie with flash at night, I only get a black image. This is the one that has less problems :laugh:
I'm on MIUI 10 (10.3.4 miui.eu) stable oreo
rooted with magisk 19.1 stable
kangarooX Kernel 3.4 stable oc
Now everything works just fine, but I'm facing weird problem with cam on all messenger apps like (Telegram - Skype ...), when I'm trying to take a photo or make a video call the cam preview (what i see on my side) is flipped cam view! Even when i hold my phone in vertical way and auto rotation is off!. I tried everything (trun on/off cam2api - used multi cam fix module - clear cache from recovery - clear cam app data - reflash rom - edit some cam-related values on whyred.xml ....)
Can anyone help me to fix this problem please ?
As you haven't mentioned, I ask: Does this also happen with the stock kernel of Miui? You tested with custom roms (AOSP)?
onliner said:
As you haven't mentioned, I ask: Does this also happen with the stock kernel of Miui? You tested with custom roms (AOSP)?
Click to expand...
Click to collapse
nope, i figure it out.. it has nothing to do with kernel or rom, it was caused by magisk module called "skia enabler", so i just disabled it
thanks for caring