[MOD][addon.d] Improved Camera - Nexus 4 Android Development

This mod improves the camera on the Nexus 4 by increasing the 720p and 1080p video and audio bitrate, and increasing the image decoding memory cap. This is done without replacing the media_profiles.xml file with a modified one! The script searches for entries and changes them, so no other entries are affected. This ensures the mod is pretty much future proof if any changes are made to other parts of the file in future ROM updates. This mod also includes an addon.d script.
What is addon.d?
On some ROMs, like Cyanogenmod, there are scripts in /system/addon.d that run during a ROM update or flash. They can backup and restore system apps (like Gapps), or perform many other functions. This mod includes an addon.d script, so the mod is not lost during a ROM update! If your ROM doesn't support addon.d, this mod should still flash properly, but you won't benefit from addon.d.
Tested and Confirmed to work on:
CyanogenMod 10.1
It should work on any AOSP based ROM for the Nexus 4. Let us know if it works!
Install Instructions:
- Boot into recovery
- Flash Enable zip
- Reboot
Uninstall Instructions:
- Boot into recovery
- Flash Disable zip
- Reboot
Downloads:
Enable-Nexus4CameraImprove-1.0.zip
Disable-Nexus4CameraImprove-1.0.zip
Changelog:
Code:
1.0 - 1/7/13
- Initial release
Credits and Thanks:
mohit1234 - ideas on what values to modify in media_profiles.xml from his thread
Chainfire - output to recovery UI from shell script code
DISCLAIMER:
This mod involves editing system files. Use at your own risk! Also please don't forget, before you report ROM related bugs in the ROM developer thread, you should remove this mod to make sure the issue is not caused by this mod!

Thankyou
Is this different than [MOD] Increase Camera Audio/Video/Image Quality http://forum.xda-developers.com/showthread.php?t=2039553 ?

m3nster said:
Thankyou
Is this different than [MOD] Increase Camera Audio/Video/Image Quality http://forum.xda-developers.com/showthread.php?t=2039553 ?
Click to expand...
Click to collapse
Read the OP. The end result is similar. It's how we get there, plus addon.d that is different.

Looks like the same one you did for the Camera silent but with this one. Nice, will flash so I don't have to reflash everytime.

Everytime I try to open the camera app, it crashes and says " gallery stopped responding"!!

+1
Sent from my Nexus 4 using Tapatalk 2

Will try later on!

sstanton86 said:
Everytime I try to open the camera app, it crashes and says " gallery stopped responding"!!
Click to expand...
Click to collapse
What ROM?

Cheers for this mate :thumbup:
Sent from my Nexus 4 using Tapatalk 2

Thank you sir
Sent from my Nexus 4 using xda app-developers app

Thanks, working great on CM10 for me

I asked in the other thread but had not reply.....
Does this actually improve the sound quality when recording to usable levels? Just so far stock levels are absolutely shocking.

neo6776 said:
I asked in the other thread but had not reply.....
Does this actually improve the sound quality when recording to usable levels? Just so far stock levels are absolutely shocking.
Click to expand...
Click to collapse
I would like to think so, but I haven't had a chance to perform tests in a controlled environment.
Sent from my Nexus 4 using Tapatalk 2

thanks gonna try!

sstanton86 said:
Everytime I try to open the camera app, it crashes and says " gallery stopped responding"!!
Click to expand...
Click to collapse
Well i think that happens because the Video bitrate is set too high.
If i am not wrong the mod here does similar things than the other one [MOD] Increase Camera Audio/Video/Image Quality.
So I tried to set once bitrate to 30000000 than to 20000000 and my app crashed everytime.
if i am wrong sorry for my useless post =/

Ƶero said:
Well i think that happens because the Video bitrate is set too high.
If i am not wrong the mod here does similar things than the other one [MOD] Increase Camera Audio/Video/Image Quality.
So I tried to set once bitrate to 30000000 than to 20000000 and my app crashed everytime.
if i am wrong sorry for my useless post =/
Click to expand...
Click to collapse
It crashes when video recording? Or simply opening the camera app?

rmkilc said:
It crashes when video recording? Or simply opening the camera app?
Click to expand...
Click to collapse
It crashed as i tried to start recording, the app opens and everything but when i press record button, gallery closed..
and when i try restart the app only gallery closed appears (not happening when bitrate is at 20000000 but over that value it happend to me)

Ƶero said:
It crashed as i tried to start recording, the app opens and everything but when i press record button, gallery closed..
and when i try restart the app only gallery closed appears (not happening when bitrate is at 20000000 but over that value it happend to me)
Click to expand...
Click to collapse
Are you using 20121212 gapps? Or a ROMs included camera?

rmkilc said:
Are you using 20121212 gapps? Or a ROMs included camera?
Click to expand...
Click to collapse
i use the stock rom 4.2.1 and changed the values in media_profiles.xml

Ƶero said:
i use the stock rom 4.2.1 and changed the values in media_profiles.xml
Click to expand...
Click to collapse
I guess I'm a little confused. This mod currently sets the 1080p video bitrate to 20000000, not 30000000. It is or it isn't force closing at 20000000?

Related

[Q]Stock vs CM 7 camera

Can someone give me the stock camera app for cm7 ?? When i take a photo in cm7 it makes a loud iritannt sound. Someone know how to change that or give me please camera stock ??
http://www.4shared.com/file/iNXQFHMm/MIUI_Camera_17.html
dunno about stock but i think this is even better
Andy98 said:
Can someone give me the stock camera app for cm7 ?? When i take a photo in cm7 it makes a loud iritannt sound. Someone know how to change that or give me please camera stock ??
Click to expand...
Click to collapse
You can disable it in CyanogenMod settings. If that doesn't work, try editing build.prop file in System folder.
Use miui camera..u can always disable the shutter click
Sent from public phone using 10cents.
The MIUI Camera doesn't look very good on my SGM. There seems to be a alignment problem. Does anyone else have this issue?
I use Camera 360 for taking pictures on all roms. You can turn off all effects and use it as regular camera app..
I have a question about this too...
Does the CM7 camera really has touch focus feature???
You can google it sir. You can find everything on google , or you can browse on the development section on cm7 threads there are links on camera there.
Stock camera will not work in cm7 coz framework are different.
-------------------------------------------
nishanty13 said:
Stock camera will not work in cm7 coz framework are different.
-------------------------------------------
Click to expand...
Click to collapse
what about TitaniumBackup? I think we can use it in stock rom, backup the camera app then restore in Cm7 rom
I think that and I had not tried, can someone try it and tell me that working?
mr_v_d said:
what about TitaniumBackup? I think we can use it in stock rom, backup the camera app then restore in Cm7 rom
I think that and I had not tried, can someone try it and tell me that working?
Click to expand...
Click to collapse
Not gonna work
-------------------------------------------
to disable the CM cam sound
Settings>CM Settings>Sound> now deres an option to disable the camera sound just check it done!!! no need to switch to any other cam...
Use root explorer, go to system ---- media ---- sounds -- ui and delete the first file- called camera click or something like that

[PORT][CM 7.2 N2 camera for nightlies/RC/ThemedCM7] :D

I've made this flashable zip by merging the files from latest CM sources provided by trettet and from adam's N2 ROM.
Advantages of this patch-
-Working Exposures
-Better Default Exposure
-Better Cam Quality
-Better Auto Exposure
-It is probably better than stock ROM's camera
-Fast shutter speed
Disadvantages of this patch-
-zoom in vid recording won't work [ I don't use zoom in vid recording at 480p as it spoils the quality ]
Instructions-
Flash the ZIP and enjoy
DOWNLOAD MIRROR
umangleekha said:
I've made this flashable zip by merging the files from latest CM sources provided by trettet and from adam's N2 ROM.
Advantages of this patch-
-Working Exposures
-Better Default Exposure
-Better Cam Quality
-Better Auto Exposure
-It is probably better than stock ROM's camera
-Fast shutter speed
Disadvantages of this patch-
-Little delay of about 2-3 seconds before the start of video rec.
Instructions-
Flash the ZIP and enjoy
Click to expand...
Click to collapse
hey can i flash it on lewa m6?
Free.rockstar said:
hey can i flash it on lewa m6?
Click to expand...
Click to collapse
maybe, you can try it, if anything goes wrong, you can reflash your ROM and no need to wipe /data and /cache in that case
it's only for Nightlies ?
speedyspd said:
it's only for Nightlies ?
Click to expand...
Click to collapse
I've tested it on RC1, I think that it should work on nightlies too..
umangleekha said:
maybe, you can try it, if anything goes wrong, you can reflash your ROM and no need to wipe /data and /cache in that case
Click to expand...
Click to collapse
okay flashing
vaise it should work as lewa is based on latest rc1
and backup b h system restore kar dunga
Free.rockstar said:
okay flashing
vaise it should work as lewa is based on latest rc1
and backup b h system restore kar dunga
Click to expand...
Click to collapse
yea, it should work, btw please use english only otherwise moderators will ban you
umangleekha said:
yea, it should work, btw please use english only otherwise moderators will ban you
Click to expand...
Click to collapse
this worked finee!!
and lol sorry moderators
and there's a lack of zoom (only 2x) everything else is good and no delay in video recording either
can i flash it on nightly foure v. 4.8?
Free.rockstar said:
this worked finee!!
and lol sorry moderators
and there's a lack of zoom (only 2x) everything else is good and no delay in video recording either
Click to expand...
Click to collapse
vidit_panchal said:
can i flash it on nightly foure v. 4.8?
Click to expand...
Click to collapse
try try, is it based on RC1 ?
umangleekha said:
try try, is it based on RC1 ?
Click to expand...
Click to collapse
I think RC0
instead of [PORT] you could have used [FIX] in the heading. thanks for the work
josinpaul said:
instead of [PORT] you could have used [FIX] in the heading. thanks for the work
Click to expand...
Click to collapse
doesn't matter, just enjoy the cool camera
I flash it on nightlyfoure v5
after zoom camera app is restarting.
hristodipchikov said:
I flash it on nightlyfoure v5
after zoom camera app is restarting.
Click to expand...
Click to collapse
double tap to zoom means FC try it from settings slider
umangleekha said:
double tap to zoom means FC try it from settings slider
Click to expand...
Click to collapse
I zoom with volume buttons after zoom +2 app restart.
double tap to zoom restart immediately.
hristodipchikov said:
I zoom with volume buttons after zoom +2 app restart.
double tap to zoom restart immediately.
Click to expand...
Click to collapse
That's because you are using RC0 based rom, in my RC1, zoom is availible upto 2x only and works fine
Free.rockstar said:
this worked finee!!
and lol sorry moderators
and there's a lack of zoom (only 2x) everything else is good and no delay in video recording either
Click to expand...
Click to collapse
Thanks for the info, gonma flash this also. .
Thx for making the zip
Sent from my LG-P500 using XDA
nshaziq89 said:
Thanks for the info, gonma flash this also. .
Thx for making the zip
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
Trettet already posted the fix, please search forums before you repost the same fixes, especially if pulling files from other peoples Roms.
http://forum.xda-developers.com/showthread.php?t=1587870

[MOD][CAMERA] for cm10.1 with autofocus

MOD camera for cm10.1 with autofocus
Hy guys i found a way to use the autofocus on 4.2.1 versions
This is not my work i only deleted unnecessary files and rezipped the file
HOW TO:
-froze or delete the galery2 app from system/app (to avoid duplicates)
-put the file attached to your sd card
-flash via CWM
-done
TO KNOW
-there are still problems with panorama shots but it didnt work either with the other one
-the other panorama mode as far as i know its only for nexus phones
-the apps has wrong permissions when u flash it go to system/app and set it to rw-r--r--
link : http://d-h.st/WLb
why don't u post in http://forum.xda-developers.com/showthread.php?t=2091599 thread and included in the same mod?
swifer_lf said:
why don't u post in http://forum.xda-developers.com/showthread.php?t=2091599 thread and included in the same mod?
Click to expand...
Click to collapse
That are two different Mods.
Thanks!!
mivv said:
MOD camera for cm10.1 with autofocus
Hy guys i found a way to use the autofocus on 4.2.1 versions
This is not my work i only deleted unnecessary files and rezipped the file
HOW TO:
-froze or delete the galery2 app from system/app (to avoid duplicates)
-put the file attached to your sd card
-flash via CWM
-done
TO KNOW
-there are still problems with panorama shots but it didnt work either with the other one
-the other panorama mode as far as i know its only for nexus phones
-the apps has wrong permissions when u flash it go to system/app and set it to rw-r--r--
link : http://d-h.st/W7l
Click to expand...
Click to collapse
Thank you for your hard work, I would love to use it but download link expired
Justray said:
Thank you for your hard work, I would love to use it but download link expired
Click to expand...
Click to collapse
updated download link
mivv said:
updated download link
Click to expand...
Click to collapse
I installed this on CM10 PACman, and it works , bad thing is; now I got 2 camera apps and 2 gallery apps, also now BOTH cameras have autofocus... weird uh, or maybe the PACman rom has a camera app with autofocus?, I will reflash this rom and check first, then delete this camera and gallery then flash your mod. lets see what happens, I will also flash in the latest CM10.1 unofficial (new bootloader) and post my results (dual boot FTW!).
You shouldve read op first.
punyategar said:
You shouldve read op first.
Click to expand...
Click to collapse
I did it on purpose to compare both cameras but I was naive because there was no way to tell them apart... and after re flashing the rom I saw the camera in the rom has autofocus, but they're far from the same, gallery app us the same, but the camera has different menus, a lot less options... unfortunately, I don't know if use yours or port the one in PACman rom to the CM10.1 unofficial for the new bootloader... the CM10.1 camera also has autofocus... but the menus and UI suck ass.
Good thing is it works for both CM10 and CM10.1
Maybe mivv uses default cm camera, rezip it, and set it up as default. Sorry if offensive.
when i was recording a video it was capturing nicely, then when i viewed it it was broken.

Lenovo Super Camera and Gallery V4.12

Found the Lenovo super camera and gallery latest version v4.12 and decided to share it here.
By the way can someone who knows chinese help by translating the developer options in the app?
Camera v4.12 https://drive.google.com/file/d/0B7MOPhVHPaItNHZiQ0MtUGtmVDA/view?usp=sharing
Gallery v4.12 https://drive.google.com/file/d/0B7MOPhVHPaItdEhGU2FPTUNpa0U/view?usp=sharing
Just install as a normal apk or push in system/apps
I have corrected the links. Please try to download again.
Thanks for sharing! Just flash in recovery?
Just install as a normal apk or push in system/apps
thanks. but the camera app crashes on front camera and on video recording. and it's too bad the app looks nice.
ryaneu said:
Just install as a normal apk or push in system/apps
Click to expand...
Click to collapse
:good::good::good:
Works like a charm. Video recording, front camera evrything works like a charm. I love the menu and the UI. Miles ahead than the Cyanogenmod Camera.
Awesome pic quality in the gallery app, will try out the camera later,but it seems ok from the few pic's I have taken so far,but it's to dark outside to make a proper test..
Thanx for sharing:good:
Nice app I'll test it. But 59MB for camera app?
I tried it and I realized all the third party camera apps are useless with flash on.
see the pics attached
you can see the vertical line in the middle of the picture.
Is it just me or does it fail to install either installing as normal APK or pushing to system. I'm on cm11s and have had to revert to using an older version of lenovo super camera.
I installed as a normal app..it is working great no flash issues..all is well
bruciebabie1963 said:
I installed as a normal app..it is working great no flash issues..all is well
Click to expand...
Click to collapse
What rom do you use?
I am on Temasek v154 and after every reboot have to go into system>app>lenovo and reinstall it for it to work and wont install as regular app.
After testing the camera on mahdi/AK,i'm fairly impressed with it.only the option to change resolution size is missing and that is really annoying.but everything else is working perfectly, haven't tried 4k recording yet,but the option is there..
Change your language to English and SOME of the options in dev settings are readable
Amazing camera APP!!
zodiaxe66 said:
After testing the camera on mahdi/AK,i'm fairly impressed with it.only the option to change resolution size is missing and that is really annoying.but everything else is working perfectly, haven't tried 4k recording yet,but the option is there..
Change your language to English and SOME of the options in dev settings are readable
Click to expand...
Click to collapse
Where did you find 4K. There is only 2K and does not work. Im also using Mahdi rom with Mahdi kernel.
dtosun said:
Where did you find 4K. There is only 2K and does not work. Im also using Mahdi rom with Mahdi kernel.
Click to expand...
Click to collapse
In dev setting's.
zodiaxe66 said:
In dev setting's.
Click to expand...
Click to collapse
When i check it, it is chinese? Can you show me which one is 4K?
dtosun said:
When i check it, it is chinese? Can you show me which one is 4K?
Click to expand...
Click to collapse
Look below where it says "normal".as I said I haven't tried it yet.
EDIT: no only 2k recording is available.
zodiaxe66 said:
Look below where it says "normal".as I said I haven't tried it yet.
EDIT: no only 2k recording is available.
Click to expand...
Click to collapse
When i try it, it does not work.

[APP][FEEDBACK] Arnova8G2's Google Camera Port

This thread has been created to provide Redmi 4X feedback to @Arnova8G2 regarding his port of the Google Camera app.
Describe your experience (mostly what doesn't work as expected)
Provide logcats (the dev does not have your phone, so logs are needed if you want him to fix stuff)
Mention @Arnova8G2 when you post your feedback
ALL FEEDBACK PROVIDED IN OTHER THREADS OR WITHOUT LOGS WILL BE IGNORED​
Flash THIS zip for enabling camera2API (GCam Included) and more.
Latest update:
v1.4
Arnova8G2 said:
2017/01/04 – GCMod5 based on Mod By B-S-G
Add toggle for portrait mode or Lens Blur
AutoFocus enhancement and faster
Support level override back in ZSl, front in ZSL_REPROCESSING and Level_3 for OP3/OP3t, MI5,Mi5s
Black screen fix test
Add 4K for devices that do not have it
GCam5.1.018-Arnova8G2-V1.4.apk
** Please mention me in the thread of your device with a logcat or screenshots.
Click to expand...
Click to collapse
Previous versions:
v1.3.1
v1.3
Recommended Settings (that i uses):- see attachments
Image Samples by @__PG__
https://ibb.co/ffmEGb
https://ibb.co/kxzehG
https://ibb.co/eKA8bb
https://ibb.co/htZ1wb
I installed the app. It is mostly unusable due to crashes. Bt when it works photos are flawless.
I have 3.4b installed, works better, no crashes, more configuration options available.
akkowicz said:
I have 3.4b installed, works better, no crashes, more configuration options available.
Click to expand...
Click to collapse
Please give me the link for that version, is it enabled the HDR+ feature?
akkowicz said:
I have 3.4b installed, works better, no crashes, more configuration options available.
Click to expand...
Click to collapse
I tried that version it doesn't work. What device did you choose from the settings for hdr+. I tried it kept crashing.
https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177/page24
Try this
gauti_1998 said:
https://forum.xda-developers.com/mi-5/themes/app-collection-camera-modded-t3591177/page24
Try this
Click to expand...
Click to collapse
Can you tell me what hdr+ are you using?
thejoker said:
Can you tell me what hdr+ are you using?
Click to expand...
Click to collapse
https://forum.xda-developers.com/attachment.php?attachmentid=4267789&d=1504975880
i m using v3.4
thejoker said:
Can you tell me what hdr+ are you using?
Click to expand...
Click to collapse
its not working bruh ! tried every HDR+ mode but the App is getting stopped evertime I do this.
though if you still want to use the HDR+ mode choose from Pixel & when the app crashes..
1.long press the App Icon
2.Select take a selfie
3.Change to Rear Camera
it will work but its annoying :silly:
is available in newest version saving photos to sd card?
Hi,
I've been using this for a 3 days now and it is pretty awesome! Thank you so much! Photos are way better than any modded cameras out there.
The only thing I've been struggling to fix now is the slow motion. It says "can't connect to the camera". I've tried basic fixes out of YouTube and tried flashing some fixes I found on the internet -esp. here in XDA but I am still out of luck.
I am 99% complete now on this camera, just the slow motion isn't working. I am using Xiaomi Redmi 4x running Resurrection Remix 5.8.5-20170929-santoni-Final
I surely will wait for your help.
Thanks in advance!
BTW, I'm a new member.
kevinxmiguel said:
Hi,
I've been using this for a 3 days now and it is pretty awesome! Thank you so much! Photos are way better than any modded cameras out there.
The only thing I've been struggling to fix now is the slow motion. It says "can't connect to the camera". I've tried basic fixes out of YouTube and tried flashing some fixes I found on the internet -esp. here in XDA but I am still out of luck.
I am 99% complete now on this camera, just the slow motion isn't working. I am using Xiaomi Redmi 4x running Resurrection Remix 5.8.5-20170929-santoni-Final
I surely will wait for your help.
Thanks in advance!
BTW, I'm a new member.
Click to expand...
Click to collapse
slomo wii be fixed soon
psdashing said:
slomo wii be fixed soon
Click to expand...
Click to collapse
Thank you so much. I'll look forward to it. And one more thing as I am currently playing with the cam right now, 60FPS also won't work on my device. I have replaced media_profiles.xml and set the necessary permissions but it also says "can't connect to the camera"
Camera App crashes after making any changes in settings . I have done everything dats recomended but nothing helps .
What device are you using and what rom?
kevinxmiguel said:
What device are you using and what rom?
Click to expand...
Click to collapse
i m using xiaomi redmi 4x with aosp extended rom
rkdok23 said:
i m using xiaomi redmi 4x with aosp extended rom
Click to expand...
Click to collapse
Are you using magisk root? Uninstall the stock camera first via any system app remover. Secondly, Try flashing camera 2 api module. Then download the modded camera on this thread. Works for me (except slow motion and 60fps video -but fix will be coming soon as per dev.)
kevinxmiguel said:
Are you using magisk root? Uninstall the stock camera first via any system app remover. Secondly, Try flashing camera 2 api module. Then download the modded camera on this thread. Works for me (except slow motion and 60fps video -but fix will be coming soon as per dev.)
Click to expand...
Click to collapse
yes i use magisk ..i have edited the buildprop but not stock camera app
rkdok23 said:
yes i use magisk ..i have edited the buildprop but not stock camera app
Click to expand...
Click to collapse
Install camera2api enabler module. Then install the gcam attached on OP. Reboot and done
kevinxmiguel said:
Thank you so much. I'll look forward to it. And one more thing as I am currently playing with the cam right now, 60FPS also won't work on my device. I have replaced media_profiles.xml and set the necessary permissions but it also says "can't connect to the camera"
Click to expand...
Click to collapse
Same happened with me too.
I was on stock rom BTW.
I reverted back to stock media_profiles.xml
But the stock miui camera supports the slo-mo and works quite fine at a speed of x0.25

Categories

Resources