Camera drivers/development question - HTC One X

Hey guys, perhaps a dev could answer this pretty quickly.
Does this device have proprietary drivers? Is the source code released? I want to use CM9 when it comes out but I wonder if the camera will be crippled as a result of this. Not a biggy, but just curious.

bongd said:
Hey guys, perhaps a dev could answer this pretty quickly.
Does this device have proprietary drivers? Is the source code released? I want to use CM9 when it comes out but I wonder if the camera will be crippled as a result of this. Not a biggy, but just curious.
Click to expand...
Click to collapse
The stock camera app is probably proprietary. Apps can still use the sensor though. Stock camera has way too much compression to be worth it. I take photos with Camera360 instead.

Related

[DEV] We have a 90% working cam now

Ok, so, Thanks to aread22 We have a 90% working cam, since we still dont have 720p and some effects ares still broke, but share and set as both work which was the original goal of this, and while we dont have 720p recording yet, im sure we will get there (eventually )
Heres that Cam:View attachment HTCCamera.apk
oh and btw, its from the 1.84 desire sense rom.
So things still to fix:
-720P
-Some effects (graphic intensive ones, probably gpu related)
(and i really hope some mod doesn't move this thread to q&a like my last thread, WHICH WAS NOT A Q&A THREAD)
* reserved*
Ok, i guess what ill put here are the tools that will help anyone who wants to contribute to this,
Beyond compare: A very very good compare tool for directory's and files
http://www.scootersoftware.com/
Apk manager: a very easy feature rich app script package for apk's that will let you extract,decompile,recompile and a ton of other stuff
http://forum.xda-developers.com/showthread.php?t=695701
Notepad++: one of the best text/data editors i have ever used, very handy..
http://notepad-plus-plus.org/
DroidExplorer: will let you access your android device like an explorer window..
http://de.codeplex.com/
dsixda's HTC Android Kitchen: a very easy kitchen to use, windows (with cygwin) and linux compatible
http://forum.xda-developers.com/showthread.php?t=633246
u forgot cmylxgo's desire HD camera fix..
dailomac said:
u forgot cmylxgo's desire HD camera fix..
Click to expand...
Click to collapse
omfg not this sh*t again..
i defer you to this:
http://forum.xda-developers.com/showthread.php?t=981881
hell, go read cmylxgos thread, hes using my fixed apk..
and one of the people collaborating with us on this is cmylxgo along with g.lewarne,dandiest and a few others should be contributing too..
ok, anyways.. i have been pouring over smali files for days, trying different files in lib,bin and from looking at the log, my current guess is that the issue lies with the recording of audio when you hit record, which it runs into an error when it tries and crashes the apk.. i dont know if thats correct and im not sure what needs to be done to fix it, but thats why we have a dev thread for eh?
How about 720 recording ...is it just not possible cause I figured someone would have figured this out by now
tigerz0202 said:
How about 720 recording ...is it just not possible cause I figured someone would have figured this out by now
Click to expand...
Click to collapse
well, that isnt something i believe that can be done at the moment, but i do believe it is possible and from what i have read its mostly a kernel issue, seeing as how wp7 can do it on our hardware and thats all software..
but before we even approach that here, i would like to get just basic recording working with the newer camcorder function..
pyrorob said:
well, that isnt something i believe that can be done at the moment, but i do believe it is possible and from what i have read its mostly a kernel issue, seeing as how wp7 can do it on our hardware and thats all software..
but before we even approach that here, i would like to get just basic recording working with the newer camcorder function..
Click to expand...
Click to collapse
Which apk is the one with all the boxy border .....I hate that one, the one that comes with cmyxlo builds is the one I would love to have in my cm7 rom I'm currently on. And will it install
tigerz0202 said:
Which apk is the one with all the boxy border .....I hate that one, the one that comes with cmyxlo builds is the one I would love to have in my cm7 rom I'm currently on. And will it install
Click to expand...
Click to collapse
the boxy border? i have not seen that.. and the one in cmylxgo's rom is of course, the older one with the working camcorder function..
pyrorob said:
the boxy border? i have not seen that.. and the one in cmylxgo's rom is of course, the older one with the working camcorder function..
Click to expand...
Click to collapse
Its got a grey border around the screen. Some devs skin it some don't
tigerz0202 said:
How about 720 recording ...is it just not possible cause I figured someone would have figured this out by now
Click to expand...
Click to collapse
What about A/V sync in Sense builds? I've been flashing and flashing, and have yet to find a truly working camcorder in this regard? Is this likely to be fixed?
inconceeeivable said:
What about A/V sync in Sense builds? I've been flashing and flashing, and have yet to find a truly working camcorder in this regard? Is this likely to be fixed?
Click to expand...
Click to collapse
well, who knows? maybe the different version of the camcorder could fix it? who knows until we get it working...
i think people are more likely to be using the camera so if we get a camera,it will be a big breakthrough and then the camcorder will probably come after you figured out the camera,keep up the hard work
Keep up the good work ! And this thread deserves to be in the stickies !
Finally, I'm glad to see that you've taken the initiative to get this moving. Can this also apply to the currently non-working camera that appears in the new Gingerbread Sense build by iMilka (and for other future builds)?
jonboyuk said:
Finally, I'm glad to see that you've taken the initiative to get this moving. Can this also apply to the currently non-working camera that appears in the new Gingerbread Sense build by iMilka (and for other future builds)?
Click to expand...
Click to collapse
well, who knows, what i would like to see is people posting logs from alogcat at the time the try to run the camera (if it fc's as soon as you open it) or when they hit record (if it fc's there)
i dont know what the issue is with the gb camera (does it fc on open?)
but i wouldn't mind if this say, became the thread where we work out camera issues on all builds
and if enough people posted log snippets, just maybe we can find a commonality and that would head us in the right direction..
as it stands im figuring that the issue lies in the kernel or the libs, with the kernel looking more likely, im figuring it needs updated code to be compatible with the newer cameras and more then likely if we can get the newer camera working here, then the gb camera would also..
logcat
here i have attached the logcat. this is my first time. so im not sure if ok. i have started the logcat and then i click the camera then it did soft reset and reboot i close the logcat.
pyrorob said:
well, who knows, what i would like to see is people posting logs from alogcat at the time the try to run the camera (if it fc's as soon as you open it) or when they hit record (if it fc's there)
i dont know what the issue is with the gb camera (does it fc on open?)
but i wouldn't mind if this say, became the thread where we work out camera issues on all builds
and if enough people posted log snippets, just maybe we can find a commonality and that would head us in the right direction..
as it stands im figuring that the issue lies in the kernel or the libs, with the kernel looking more likely, im figuring it needs updated code to be compatible with the newer cameras and more then likely if we can get the newer camera working here, then the gb camera would also..
Click to expand...
Click to collapse
rasumia said:
here i have attached the logcat. this is my first time. so im not sure if ok. i have started the logcat and then i click the camera then it did soft reset and reboot i close the logcat.
Click to expand...
Click to collapse
what camera apk is this and what rom?
and do this when you post these, look at the time on your watch or computer when you hit record and mention that. as long as its set the same as your device (your pc should have its clocked auto synced just like your phone so its times should match). this way there wont be a need to do a bunch of fishing for the error in the log.. oh, and set your log type to long under alogcat preferences..
edit: ok i see this is the gingerbread rom..
and wow lots of permission errors and a java failed binder transaction then all your services die..
and another odd, it seems to be connecting to htc database servers to check for updates..
camera
Sooo.. for ex. I have frankinstein droid 1.5 rom, when i hit record it doesn't work, and i must reboot my hd2.
What i wanna install ?

ICS Video camera

Quick question - now that the photo camera on ICS for Desire Z is mostly working, would it be hard to get it to make movies?
I have no idea how hard this is to do. Just asking
You'd have to write the code.
Sent from my SGH-T989 using xda premium
bogdan5844 said:
Quick question - now that the photo camera on ICS for Desire Z is mostly working, would it be hard to get it to make movies?
I have no idea how hard this is to do. Just asking
Click to expand...
Click to collapse
I am not a developer, but I am certain that, yes, this is a very hard thing to do and I really haven't read anything about progress in this regard, since zbuw came up with the initial workaround to get the camera partially working.
The main problem still seems to be that, so much code has changed in ICS that we basically need new drivers from htc or qualcomm in order to get it fully working. I expect that we won't see full camera functionality until a leak comes up from which we can extract the drivers (I don't know enough about the similarities of other devices, hardware-wise, to guess on how likely this is.
thomas_wlc said:
I am not a developer, but I am certain that, yes, this is a very hard thing to do and I really haven't read anything about progress in this regard, since zbuw came up with the initial workaround to get the camera partially working.
The main problem still seems to be that, so much code has changed in ICS that we basically need new drivers from htc or qualcomm in order to get it fully working. I expect that we won't see full camera functionality until a leak comes up from which we can extract the drivers (I don't know enough about the similarities of other devices, hardware-wise, to guess on how likely this is.
Click to expand...
Click to collapse
yes, thats right
is the camera video mode working at all in Andromadus v10?
I can't find that information and can't post yet in their topic (noob here).
fenixus said:
is the camera video mode working at all in Andromadus v10?
I can't find that information and can't post yet in their topic (noob here).
Click to expand...
Click to collapse
Flash it and find out
Sent from my HTC Vision using xda premium
Spastic909 said:
Flash it and find out
Sent from my HTC Vision using xda premium
Click to expand...
Click to collapse
That's normally fair game but you're replying to someone who can't even post in the dev section yet, don't make him download backup wipe flash discover it isn't working then restore.. no, to the best of my knowledge (having just tested it and seen it reported elsewhere) recording does not work at this time (unless some wild development has happened in the past couple days).
Sent from my HTC Vision using XDA App
Spastic909 said:
Flash it and find out
Sent from my HTC Vision using xda premium
Click to expand...
Click to collapse
not too kind reply, but ok, since I have no other choice...
noneabove said:
That's normally fair game but you're replying to someone who can't even post in the dev section yet, don't make him download backup wipe flash discover it isn't working then restore.. no, to the best of my knowledge (having just tested it and seen it reported elsewhere) recording does not work at this time (unless some wild development has happened in the past couple days).
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
thanks. I will give that a shot. I kinda need video recording working from time to time, so it will be painful running ROM without it ... is that true that none of ICS ROMs have the video camera working (just pic taking)?
From everything I have read either here or CM, what I believe they are waiting on is drivers from either HTC or Qualcom to further develop the camera. I believe they have it working somewhat. I am NOT a dev by any stretch just passing along what I have read.
Hope this helps
fenixus said:
thanks. I will give that a shot. I kinda need video recording working from time to time, so it will be painful running ROM without it ... is that true that none of ICS ROMs have the video camera working (just pic taking)?
Click to expand...
Click to collapse
Yes this is true, and even picture taking is iffy at best (you have to install third party app and most people can only take non-buggy pictures at VGA (really low) quality)
If you need video recording AT ALL do not use ICS yet.
thanks guys, those statements change the ground. in fact I will wait a little longer until those drivers get released and developers can fix camera issues.
I use camera for pics often and videos occasionally, so I wouldn't like a phone like that at all.
also, what does it mean that GPS is "kinda" working now (Andromadus v10), it's broken or not?
I use Google Navigation frequently whenever I get lost or traveling to current closest (unknown) chain store location and such ... and I kinda rely on that ... I guess I need to wait for a beta ROM, alphas are not for me yet.
Doc76013 said:
From everything I have read either here or CM, what I believe they are waiting on is drivers from either HTC or Qualcom to further develop the camera. I believe they have it working somewhat. I am NOT a dev by any stretch just passing along what I have read.
Hope this helps
Click to expand...
Click to collapse
noneabove said:
Yes this is true, and even picture taking is iffy at best (you have to install third party app and most people can only take non-buggy pictures at VGA (really low) quality)
If you need video recording AT ALL do not use ICS yet.
Click to expand...
Click to collapse
Seems to work with lg camera. Get the free version. Use adfree to block the ads. I think I just got it to work. Need to go to blackdroid and get full lg camera to make sure
Sent from my HTC Vision using xda premium

How to improve CyanogenMod based ROMs' filming quality?

Hi peep. I decided to start this thread because I don't wanna go OffTopic in the CM10 Quarx thread.
The fact is that I own a RedLense Defy, and since the first time I had it, I always tried to use Cyanogen. It was first the CM7 release, CM7.1, Cm7.2, now CM10 Quarx and Epsylon3... and in all the CMod ROM's I've had, they have the same trouble: filming quality is not good at all.
The only ROM that fit my necessities about the Defy's camera, is Walter's MS2GINGER. He did a great work there, and I've been using it for some months so far. But is a stock-based ROM (thats maybe the reason of why does it works there).
I would love to have a Cyanogen ROM with a nice filming quality. Even if its not 720p, at least a good wide 480p image. The first thing I've obviously tried is moving libraries from the "HD" zip to CM, the media XML, and some build.prop configs, but nothing happened (bootloop). So I ended thinking: its imposible to use those on CM.
So did someone try to improve filming in CyanoGen? Do anyone of you know a way to make it work, or the reason of why is it impossible on Cyanogen?
Thanks.
leandeganis said:
Hi peep. I decided to start this thread because I don't wanna go OffTopic in the CM10 Quarx thread.
The fact is that I own a RedLense Defy, and since the first time I had it, I always tried to use Cyanogen. It was first the CM7 release, CM7.1, Cm7.2, now CM10 Quarx and Epsylon3... and in all the CMod ROM's I've had, they have the same trouble: filming quality is not good at all.
The only ROM that fit my necessities about the Defy's camera, is Walter's MS2GINGER. He did a great work there, and I've been using it for some months so far. But is a stock-based ROM (thats maybe the reason of why does it works there).
I would love to have a Cyanogen ROM with a nice filming quality. Even if its not 720p, at least a good wide 480p image. The first thing I've obviously tried is moving libraries from the "HD" zip to CM, the media XML, and some build.prop configs, but nothing happened (bootloop). So I ended thinking: its imposible to use those on CM.
So did someone try to improve filming in CyanoGen? Do anyone of you know a way to make it work, or the reason of why is it impossible on Cyanogen?
Thanks.
Click to expand...
Click to collapse
yes it is Impossible until MOTOROLA unlocks the Bootloader ,,, so JOIN THE FIGHT !!!
yamandude said:
yes it is Impossible until MOTOROLA unlocks the Bootloader ,,, so JOIN THE FIGHT !!!
Click to expand...
Click to collapse
Do you really think so?
I thought that there was a trick now to unload fixed modules from the kernel and upload new ones that might work for this too
http://forum.xda-developers.com/showpost.php?p=28323403&postcount=1169
elnacho12 said:
Do you really think so?
I thought that there was a trick now to unload fixed modules from the kernel and upload new ones that might work for this too
http://forum.xda-developers.com/showpost.php?p=28323403&postcount=1169
Click to expand...
Click to collapse
It means that it is POSSIBLE, I guess. :victory: And I totally think so, I don't believe a locked bootloader can make it all imposible for those with an advanced knowledge on linux and Android development.
But isn't any developer actually focused on the camera here? I searched on the forum but didn't found anything. I mean yeah, they are all fighting with the bootloader, but not to make a better camera so far.
elnacho12 said:
Do you really think so?
I thought that there was a trick now to unload fixed modules from the kernel and upload new ones that might work for this too
http://forum.xda-developers.com/showpost.php?p=28323403&postcount=1169
Click to expand...
Click to collapse
hmmm .. hope it works then
elnacho12 said:
Do you really think so?
I thought that there was a trick now to unload fixed modules from the kernel and upload new ones that might work for this too
http://forum.xda-developers.com/showpost.php?p=28323403&postcount=1169
Click to expand...
Click to collapse
I highly doubt it, think we'll just have to wait for a stable with better video quality options...
elnacho12 said:
Do you really think so?
I thought that there was a trick now to unload fixed modules from the kernel and upload new ones that might work for this too
http://forum.xda-developers.com/showpost.php?p=28323403&postcount=1169
Click to expand...
Click to collapse
Sorry, I re-read the post and realized that it was only related to opengl stuff... it was not a generic workaround for kernel modules.
We still need the bootloader unlock
Cheers!
elnacho12 said:
Sorry, I re-read the post and realized that it was only related to opengl stuff... it was not a generic workaround for kernel modules.
We still need the bootloader unlock
Cheers!
Click to expand...
Click to collapse
Ok I guess I'll have to say bye to a CyanoGen MOD with a proper camcorder. Stock's the choice for me.

LG camera app for non-LG ROMs

Where to find stock LG camera app for non-LG ROMs, which has lots of features?
Namely, I have installed Cyanogen 5.1, need help.
Thanks.
There isn't a version. The stock camera will only work on stock ROMs.
IIIIkoolaidIIII said:
There isn't a version. The stock camera will only work on stock ROMs.
Click to expand...
Click to collapse
Thanks,
SO whats gonna be the next best thing? I'm using stock google camera app but missing instant HDR and it seeme like picture quality (in terms of color balances) is not that great and camera is much slower.
I might be wrong, but there IS an LG camera app for cm based roms. You still don't have the great image quality, since the drivers are closed source. But you do get the camera software. I don't remember on which ROM thread the app is located, but I would start on the CM13 and CM12 threads.
worry said:
Thanks,
SO whats gonna be the next best thing? I'm using stock google camera app but missing instant HDR and it seeme like picture quality (in terms of color balances) is not that great and camera is much slower.
Click to expand...
Click to collapse
Check the CM 13 thread, there's Dev on a cagers app that with quality and features of the G4, still buggy at present as in early stages of dev.
kafepuya said:
I might be wrong, but there IS an LG camera app for cm based roms. You still don't have the great image quality, since the drivers are closed source. But you do get the camera software. I don't remember on which ROM thread the app is located, but I would start on the CM13 and CM12 threads.
Click to expand...
Click to collapse
Noting in CM13 thread, but is pointless as you get worse pictures than using any normal cagers app.
Second post on CM 13 Thread
Laser Af isnt working
Sent from my LG-H815 using Tapatalk
It doesn't work on the g4 snap camera v3. In the older version it works but pics won't get saved with flash.
That's because it's closed source.
Follow the thread, maybe codeworkx will find a solution.
It's all fixed now
https://www.androidfilehost.com/?fid=24352994023705766

Camera and other on custom MM an N ROMS

Can anybody tell me, why camera and other things are broken on all ROMs based MM and N? But it still works on LP ROMs (e.g. this). As I know, they are based on different kernel, but why can't anybody just merge old kernel to new and get fully working camera?
Sorry for my English
leon0399 said:
Can anybody tell me, why camera and other things are broken on all ROMs based MM and N? But it still works on LP ROMs (e.g. this). As I know, they are based on different kernel, but why can't anybody just merge old kernel to new and get fully working camera?
Sorry for my English
Click to expand...
Click to collapse
I'm no expert, but here's the little bit I know... Camera function depends on special files called blobs. The blobs are owned by Sony. The last good blobs Sony released to developers for the Z1c were the Lollipop ones, (since there hasn't been an update for Z1c since lollipop). All other roms developed since then use the old blobs, which don't work well on new roms. Noone can do anything about it except wait on Sony.
Since there's no official update after Lollipop, it would require someone to port the files from a Sony N roms to work on non-Sony roms, as was done for Lollipop, (https://forum.xda-developers.com/cr...ide-how-to-port-featured-sony-camera-t3169253 - more than just 'merging kernel'). That's possible, but very difficult, (https://forum.xda-developers.com/showpost.php?p=71999171&postcount=1381), but it seems that someone is making progress, (https://forum.xda-developers.com/showthread.php?p=72328809#post72328809)... That, combined with @munjeni's TA tool, (https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893), gives us hope for stock-quality camera on MM and N roms.
levone1 said:
I'm no expert, but here's the little bit I know... Camera function depends on special files called blobs. The blobs are owned by Sony. The last good blobs Sony released to developers for the Z1c were the Lollipop ones, (since there hasn't been an update for Z1c since lollipop). All other roms developed since then use the old blobs, which don't work well on new roms. Noone can do anything about it except wait on Sony.
Since there's no official update after Lollipop, it would require someone to port the files from a Sony N roms to work on non-Sony roms, as was done for Lollipop, (https://forum.xda-developers.com/cr...ide-how-to-port-featured-sony-camera-t3169253 - more than just 'merging kernel'). That's possible, but very difficult, (https://forum.xda-developers.com/showpost.php?p=71999171&postcount=1381), but it seems that someone is making progress, (https://forum.xda-developers.com/showthread.php?p=72328809#post72328809)... That, combined with @munjeni's TA tool, (https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893), gives us hope for stock-quality camera on MM and N roms.
Click to expand...
Click to collapse
So, why can't we just "borrow" this blobs from other phones' kernels, I mean, there SHOULD be other phones by other brands with the same camera module and open-source kernel. Or I'm wrong and there is nothing like this?
leon0399 said:
So, why can't we just "borrow" this blobs from other phones' kernels, I mean, there SHOULD be other phones by other brands with the same camera module and open-source kernel. Or I'm wrong and there is nothing like this?
Click to expand...
Click to collapse
"open source" doesn't mean quite the same thing for Sony as it might for some others...
leon0399 said:
So, why can't we just "borrow" this blobs from other phones' kernels, I mean, there SHOULD be other phones by other brands with the same camera module and open-source kernel. Or I'm wrong and there is nothing like this?
Click to expand...
Click to collapse
I had the same idea and found this: https://github.com/PureNexusProject-Mod/android_device_wileyfox_kipper
Credit goes to the PureNexusProject team. This Wileyfox Storm called phone has the same IMX220 sensor, and as far as I know the nougat rom which is built from this sources is working fine (at least nobody is complaining about it)
leon0399 said:
So, why can't we just "borrow" this blobs from other phones' kernels, I mean, there SHOULD be other phones by other brands with the same camera module and open-source kernel. Or I'm wrong and there is nothing like this?
Click to expand...
Click to collapse
gerg1 said:
I had the same idea and found this: https://github.com/PureNexusProject-Mod/android_device_wileyfox_kipper
Credit goes to the PureNexusProject team. This Wileyfox Storm called phone has the same IMX220 sensor, and as far as I know the nougat rom which is built from this sources is working fine (at least nobody is complaining about it)
Click to expand...
Click to collapse
Sony blobs are device-specific, and there is no access to them. We can only wait for them to release. Several very knowledgeable and capable people have worked quite hard on it, and possibly could crack something soon, but not yet. If you have ideas, go for it
....
levone1 said:
Sony blobs are device-specific, and there is no access to them. We can only wait for them to release. Several very knowledgeable and capable people have worked quite hard on it, and possibly could crack something soon, but not yet. If you have ideas, go for it
....
Click to expand...
Click to collapse
So if I put those camera sources into for example the aosp Z1C kernel code, and compile it, the camera wouldnt even work?
gerg1 said:
So if I put those camera sources into for example the aosp Z1C kernel code, and compile it, the camera wouldnt even work?
Click to expand...
Click to collapse
I'm no expert - my point is just that if there was a simple solution, I would expect that the experienced devs who have been working on it would have figured it out, but I'm not going to discourage any efforts. We're all rooting you on. I'm just here to support ..
: )
levone1 said:
I'm no expert - my point is just that if there was a simple solution, I would expect that the experienced devs who have been working on it would have figured it out, but I'm not going to discourage any efforts. We're all rooting you on. I'm just here to support ..
: )
Click to expand...
Click to collapse
I'm not an expert either, but yes, your words have logic. Just because if it could work i would set up a building enviroment, but if it has 99% chance of not successing than I dont want to waste my time
gerg1 said:
I'm not an expert either, but yes, your words have logic. Just because if it could work i would set up a building enviroment, but if it has 99% chance of not successing than I dont want to waste my time
Click to expand...
Click to collapse
Maybe @munjeni has some input about your idea.
There is a Xperia X Compact with the same camera (Exmos RS 1/2,3) and it has an 6.0 official update and unnofician 7.X ROMs
leon0399 said:
There is a Xperia X Compact with the same camera (Exmos RS 1/2,3) and it has an 6.0 official update and unnofician 7.X ROMs
Click to expand...
Click to collapse
Its IMX300 sensor, like in the Z5 series, it's not completely the same (also ours is 20.7 mp max, and a X compact's is 23 mp)
Sorry to revive an old thread...but I have a Z1c coming and have a question: is the quality of the camera comparable between 5.1.1 ROMs and stock 4.2?

Categories

Resources