Related
I have re-written the ICS camera HAL module to be a thin wrapper for the gingerbread libcamera.so and hence it will only work with the 2.6 kernel. The advantage is that getting to gingerbread level functionality should be quick Creating a new thread because there is a slight chance that this will work for all qualcomm devices with existing libcamera.so files (with slight mods ofcourse )
http://www.mediafire.com/download.php?wjf035mz2vzunw4
Here is a zip file which contains the new camera HAL module. README file accompanying it has instructions on the locations for the files. If you already have the previous version of camera HAL working, all you have to do is replace camera.qsd8k.so and libcamera.so with the ones in the zip file.
What works:
1) Preview works.
2) Taking a picture works pretty well.
3) Size of picture is no longer huge.
4) Software zoom works.
5) Most of the other knobs like focus, file size etc. seemed to work as well in my testing.
6) Pretty stable as far as I can see
Not working yet:
Video and other fancy stuff.
If people have requests for other qualcomm devices after having tried the HAL included in the zip file, kindly include the following information.
1) logcat from having used the HAL module.
2) build.prop
3) libcamera.so from gingerbread ROM for the device.
4) liboemcamera.so from gingerbread ROM.
Currently known to work on the following devices:
1) Nexus One.
2) HTC Desire
3) HTC HD2
Enjoy and thanks for all the feedback.
Updates:
02/09/2012
Working barcode scanner mode
Flashable zip file (should work with texasice's ROMs)
http://www.mediafire.com/?w4fu0u05qtxq3tu
01/30/2012
Working Panorama mode
Flashable zip file (should work with texasice's ROMs)
http://www.mediafire.com/?5r599m5jg5yfaqn
Known issues:
Sometimes screen has some garbage while in Panorama mode viewfinder. Quitting completely from the app and restart or invoking Gallery from inside the app and returning back to camera app should mostly fix it.
Video enabled version:
Fastboot compatible images compiled from evervolv base:
For Stock hboot :
http://www.mediafire.com/?wdlip7h6necetia
For HBoot(s) supporting larger /system partition
http://www.mediafire.com/?f6rz3sz2r97qln0
Source code is now available at
https://github.com/rapmv78/
Your upload doesn't include a HAL, and from your instructions I am not sure if you are implying to use the HAL and the GB libcamera and liboemcamera, or the ones included.
please show me what i have to type in adb to push these files? (sorry i'm noob)
is camera.qsd8k.so not included?
sorry for my english..
Sorry wrong link. Now updated. Please re-download. And yes the files need to pushed through adb.
One step closer!
Thank you!
twistedumbrella said:
Your upload doesn't include a HAL, and from your instructions I am not sure if you are implying to use the HAL and the GB libcamera and liboemcamera, or the ones included.
Click to expand...
Click to collapse
Link fixed. The files included in the zip are the ones to be used. The generic libs part is only for people with non nexus one devices and would want help enabling camera on them. Hope this clarifies better.
Is the code specific to qsd8 or just a generic wrapper function? On most "newer" devices you are looking at msm7x30, but generic qsd8 code, much like the gralloc, would still work with a rename.
Sent from my ADR6400L using Tapatalk
rapmv78 said:
Sorry wrong link. Now updated. Please re-download. And yes the files need to pushed through adb.
Click to expand...
Click to collapse
if i have installed the previous version, is it right what i have to type in adb?
Code:
adb remount
adb push libcamera.so /system/lib/libcamera.so
adb push camera.qsd8k.so /system/lib/hw/camera.qsd8k.so
adb reboot bootloader
fastboot flash boot boot-new.img
fastboot reboot
please help, i don't know what to do..
thanks..
mulerokeh said:
if i have installed the previous version, is it right what i have to type in adb?
Code:
adb remount
adb push libcamera.so /system/lib/libcamera.so
adb push camera.qsd8k.so /system/lib/hw/camera.qsd8k.so
adb reboot bootloader
fastboot flash boot boot-new.img
fastboot reboot
please help, i don't know what to do..
thanks..
Click to expand...
Click to collapse
If you have previously working camera, you can skip flashing the boot-new.img file. It is there for people who do not have existing ics camera hal. Rest looks fine to me.
twistedumbrella said:
Is the code specific to qsd8 or just a generic wrapper function? On most "newer" devices you are looking at msm7x30, but generic qsd8 code, much like the gralloc, would still work with a rename.
Sent from my ADR6400L using Tapatalk
Click to expand...
Click to collapse
It is just a wrapper, but is dynamically linked with the libcamera.so file. So, if kernel change does not change structs and constants, things will work fine with a rename as you suggest. Otherwise it will not.
Maybe you should ask @charnsingh_online help for video, as he already works on 720p for N1
rapmv78 said:
It is just a wrapper, but is dynamically linked with the libcamera.so file. So, if kernel change does not change structs and constants, things will work fine with a rename as you suggest. Otherwise it will not.
Click to expand...
Click to collapse
So what were the kernel changes?
twistedumbrella said:
So what were the kernel changes?
Click to expand...
Click to collapse
There are none in this hal, that is why it works. What I was intending to say was that if MSMx30 kernel uses different size structs/constants it will not work.
rapmv78 said:
There are none in this hal, that is why it works. What I was intending to say was that if MSMx30 kernel uses different size structs/constants it will not work.
Click to expand...
Click to collapse
That is why I asked if it was generic code or specialized to qsd8. If the kernel code was not edited, that will be irrelevant because the source is not built (at least not by anyone other than CAF) using an inline kernel.
twistedumbrella said:
That is why I asked if it was generic code or specialized to qsd8. If the kernel code was not edited, that will be irrelevant because the source is not built (at least not by anyone other than CAF) using an inline kernel.
Click to expand...
Click to collapse
The hal code itself is generic, but it depends on libcamera.so, which inturn depends on kernel structs and constants to match the running kernel for successful control ioctls/pmem etc.
Can confirm this works on HTC Desire exactly as mentioned in OP.
Sent from my HTC Desire using XDA App
I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?
sucon said:
I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?
Click to expand...
Click to collapse
it works for me, but sometimes not responding after take 2 or 3 photos..
but great work!!
Sent from my Nexus One using xda premium
sucon said:
I tried it with (Texas)Ice ICS ROM and network not work. Failed to load driver! Need flash another kernel?
Click to expand...
Click to collapse
Works both fine with texasice ICS!
So I just got 720p video recording working on my Nexus 7 and felt you guys should know about this too. It's a simple fix as it's not a limitation of hardware or a kernel function or anything, rather it's just Google didn't add the media profile for 720p to tell it how to use 720p.
What firmware does this need?
It doesn't matter. If you're on the original N7 firmware or the latest builds from Google, it still works just fine. I'm now on JOP40C and it works just fine. One update.zip fits all. I do suggest keeping your original file as a backup though as it plays up with OTA updates if you have this mod installed.
You don't need to install this if you are running a CM based firmware (CM10, etc) as I have pushed the patch to the CM repositories and it will be preloaded on your Nexus 7. And no, it's not them stealing credit, I pushed the patch to them.
Download Link
Update.zip: http://d-h.st/8Cw
Video For Your Delectation
Definitely a huge difference between the vids. Nice find and thanks for sharing!!
Sent from my Nexus 7 using xda premium
seems to be complicated to a newcomer like me
Sent from my Nexus 7 using xda app-developers app
wildcolor said:
seems to be complicated to a newcomer like me
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I'm sure this will be made to a flashable zip soon.
Sent from my Nexus 7 using xda premium
the.emilio said:
I'm sure this will be made to a flashable zip soon.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
If you want, I can upload my ROM which contains it?
Please share your rom, so we can flashed it and try it.
hillbeast said:
If you want, I can upload my ROM which contains it?
Click to expand...
Click to collapse
I know I'm not that far in to deving to make a flashable zip that can be universal for most of these roms. All I have done was port a rom to the EVO 4G. So... I guess if you upload the apk and associated edited files someone can do something or I will give it a shot.
Sent from my Nexus 7 using xda premium
I love you!
Sent From My Toro+ via RED Tapatalk
I use the camera app from Modaco and sound works great when shooting videos. Its strange why yours isn't working. Anyway it would be great if someone made a flashable zip or an apk out of this. Great work there buddy!
I found 5 different media_profiles im cm10 source folder:
1. /development/tools/emulator/system/camera
2. /out/target/product/grouper/obj/PACKAGING/target_files_intermediates/cm_grouper-target_files_eng.<your user name>/SYSTEM/etc
3. /out/target/product/grouper/system/etc
4./out/target/product/grouper/
5. /device/panda
is it likely the file that you mentioned in number 3, right?
(sorry for my english)
Thanks in advance.
oldlight said:
I found 5 different media_profiles im cm10 source folder:
1. /development/tools/emulator/system/camera
2. /out/target/product/grouper/obj/PACKAGING/target_files_intermediates/cm_grouper-target_files_eng.<your user name>/SYSTEM/etc
3. /out/target/product/grouper/system/etc
4./out/target/product/grouper/
5. /device/panda
is it likely the files that you mentioned in number 3, right?
(sorry for my english)
Thanks in advance.
Click to expand...
Click to collapse
I edited /device/asus/grouper/media_profiles.xml. Refer to this commit:
https://github.com/hillbeast/android_device_asus_grouper/commit/543f1d58abdb98567445ef5deebfa5b8eff0de03
Thanks, I found mine in source. I wonder if it will make any trouble when brunch for other devices, S2, for example?
oldlight said:
Thanks, I found mine in source. I wonder if it will make any trouble when brunch for other devices, S2, for example?
Click to expand...
Click to collapse
No because we're only editing the grouper device files. The files for the Galaxy S2 won't be affected by this.
I replaced the file in the system/etc folder with the 720p file from your ROM.
I opened the camera, but it just force closes. Any ideas?
Im using CodenameAndroid ROM
Added (copied) the relevant code from the OP to the /system/etc/media_profiles.xml file of my stock (build #: JRO03D), but rooted, Nexus 7 16gb. When attempting to record video the camera app closes with this error message; "Unfortunately, Gallery has stopped." With the option of "Report" or "Ok".
The camera app does not crash when taking a picture or when using the panoramic picture mode. The files are saved to the /sdcard/DCIM/Camera/ folder. It appears the crashed video files are there, two for each recording (one is "VID_xxxxxxxx_xxxxxx.3gp" the other is "VID_xxxxxxxx_xxxxxx.3gp.tmp", but neither play. Both are zero bytes in size.
Also, is there a way to change between 480p and the new 720p setting? Looked but didn't see an option to make that change in the camera app.
Works great on latest CM10 Nightly. Just did an adb pull on /system/etc/media_profiles.xml and added the 720p lines. Then I adb pushed it back and did a chmod and rebooted. Will this be merged into CM10?
This would be a great as a flashable zip! I'm currently deploying a bunch of nexus tablets at my work and i'm sure everyone would like to have the ability to use the camera to record 720p
bennor3814 said:
Added (copied) the relevant code from the OP to the /system/etc/media_profiles.xml file of my stock (build #: JRO03D), but rooted, Nexus 7 16gb. When attempting to record video the camera app closes with this error message; "Unfortunately, Gallery has stopped." With the option of "Report" or "Ok".
The camera app does not crash when taking a picture or when using the panoramic picture mode. The files are saved to the /sdcard/DCIM/Camera/ folder. It appears the crashed video files are there, two for each recording (one is "VID_xxxxxxxx_xxxxxx.3gp" the other is "VID_xxxxxxxx_xxxxxx.3gp.tmp", but neither play. Both are zero bytes in size.
Also, is there a way to change between 480p and the new 720p setting? Looked but didn't see an option to make that change in the camera app.
Click to expand...
Click to collapse
Not sure what has gone wrong. I did a full recompile to add it so perhaps something else was changed by this file.
dawgpound6985 said:
Works great on latest CM10 Nightly. Just did an adb pull on /system/etc/media_profiles.xml and added the 720p lines. Then I adb pushed it back and did a chmod and rebooted. Will this be merged into CM10?
Click to expand...
Click to collapse
I'm not a member of the CM team and I cannot understand how Gerrit works so I can't submit it so probably not. If someone can tell me then please do.
Sent from my Nexus 7 using xda app-developers app
hillbeast said:
Not sure what has gone wrong. I did a full recompile to add it so perhaps something else was changed by this file.
Click to expand...
Click to collapse
I think I fixed my issue. It may have been because the file permissions were incorrectly set when the file was saved. Permissions should be rw- r-- r--, instead when saved from the ES File Explore Editor after editing it was rw- --- ---.
I also rebooted the tablet after changing the file permissions just to be safe.
Sent from my Nexus 7 using Tapatalk 2
bennor3814 said:
I think I fixed my issue. It may have been because the file permissions were incorrectly set when the file was saved. Permissions should be rw- r-- r--, instead when saved from the ES File Explore Editor after editing it was rw- --- ---.
I also rebooted the tablet after changing the file permissions just to be safe.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Ah yes that would cause it. The application wouldn't have been able to read the file.
I asked for help to build a rom ics on our xt615
I present the trick:
we recover a leak motorola ics for our phone (. sbf)
we extracted the boot.img system.img recovery. etc. .....
we have for the moment a Chinese cwm recovery but works in English or a problem with the nandroid
the problem is that when trying to build the rom for our phone and flash that we have a "status 0"
then here we ask a person who could help us build a rom ics
thank you
links:
extracted from sbf
https://docs.google.com/file/d/0B2k1N5APM4JQLWZ3ajVETG54UTQ/edit
testing the construction of the ROM
https://docs.google.com/file/d/0B2k1N5APM4JQaWF0N0Q0TV9pWTA/edit
and the subject of motoluxe xt615 not play pass all first pages on pages 65 to
http://forum.xda-developers.com/showthread.php?t=1660377&page=77
Up please
Thank
Sent from my XT615 using xda app-developers app
I don't know anything about your phone, but your zip file is incorrect.
You want to put all the files except META_INF into a folder called system. Look in META_INF/com/google/android/updater-script and you will see this is what the recovery is expecting.
Also, add a boot.img since it will try to flash that as well.
This is what the root directory of the zip file should look like:
Code:
[email protected]:/android/work/moto/zipper# ls
boot.img META-INF system
[email protected]:/android/work/moto/zipper# ls system/
app bin build_proj etc framework media usr
arcsoft build_id build.prop fonts lib tts xbin
gee one said:
I don't know anything about your phone, but your zip file is incorrect.
You want to put all the files except META_INF into a folder called system. Look in META_INF/com/google/android/updater-script and you will see this is what the recovery is expecting.
Also, add a boot.img since it will try to flash that as well.
Click to expand...
Click to collapse
Yes but try various solution and i have always error status 0
If you look the topic we have try
Page n° 70\80
Thank
Sent from my XT615 using xda app-developers app
gee one said:
This is what the root directory of the zip file should look like:
Code:
[email protected]:/android/work/moto/zipper# ls
boot.img META-INF system
[email protected]:/android/work/moto/zipper# ls system/
app bin build_proj etc framework media usr
arcsoft build_id build.prop fonts lib tts xbin
Click to expand...
Click to collapse
I don't understand
I took example on several
can you help me to do this update
A big thank
Sent from my XT615 using xda app-developers app
I read that thread a little- it looks like a lot of people trying different things. Also, use post numbers because it's page 17 on my computer
So, where did the updater-binary and script come from? The script has to match the rom, but I think the binary is a lot more forgiving. I think a binary from another ics or gb rom should work. Your phone uses yaffs, so maybe an older binary? I thought a lot of the ics devices were moving to ext3/4?
I think the stock recovery won't work. Usually, they will only accept zips that are signed by the manufacturer.
sent while running with scissors
gee one said:
I read that thread a little- it looks like a lot of people trying different things. Also, use post numbers because it's page 17 on my computer
So, where did the updater-binary and script come from? The script has to match the rom, but I think the binary is a lot more forgiving. I think a binary from another ics or gb rom should work. Your phone uses yaffs, so maybe an older binary? I thought a lot of the ics devices were moving to ext3/4?
I think the stock recovery won't work. Usually, they will only accept zips that are signed by the manufacturer.
sent while running with scissors
Click to expand...
Click to collapse
we have a custom recovery rom just leaked motorola
I built the rom update with kitchen
I get a flash of themes yet but they put me in error
and I saw no or that I can just
I can not make a updater-script
can you tell me the way to follow
Thank
Sent from my XT615 using xda app-developers app
dams161 said:
we have a custom recovery rom just leaked motorola
I built the rom update with kitchen
I get a flash of themes yet but they put me in error
and I saw no or that I can just
I can not make a updater-script
can you tell me the way to follow
Thank
Sent from my XT615 using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=31086093
Sent from my XT615 using xda app-developers app
Flash at your own risk- I didn't read the thread and I wouldn't know you device from an iphone.
https://rapidshare.com/files/2281343112/xt615ics1.2_mod1.zip
I cleaned up the system and added the boot.img. if you can get the /etc/recovery.fstab from your recovery, it might help since the partitions might have different names.
sent while running with scissors
gee one said:
Flash at your own risk- I didn't read the thread and I wouldn't know you device from an iphone.
https://rapidshare.com/files/2281343112/xt615ics1.2_mod1.zip
I cleaned up the system and added the boot.img. if you can get the /etc/recovery.fstab from your recovery, it might help since the partitions might have different names.
sent while running with scissors
Click to expand...
Click to collapse
thank you
i try and i say if work
does not work I toujour error status 0
I think that is an error with the update binary. Maybe you can get one from a similar phone? It should be pretty generic, as long as it uses a similar file system/android version. So try to find a binary from an ics device that uses yaffs/MTD.
sent while running with scissors
i try and i say if work
yes works but the boot.img is bad thank you
I thought this was the stock firmware? Could you just put in a similar ics kernel and see if that works? A kernel from an ics moto phone might work, but you'll have to change the ramdisk.
sent while running with scissors
gee one said:
I thought this was the stock firmware? Could you just put in a similar ics kernel and see if that works? A kernel from an ics moto phone might work, but you'll have to change the ramdisk.
sent while running with scissors
Click to expand...
Click to collapse
the concern is that the bootloader is locked
and I think he does not want ics files
you have ideas on how to bypass the UNLOCK or
thank you again
Do you have a copy of a working boot.img or kernel? Even a dump from a running phone would work.
sent while running with scissors
gee one said:
Do you have a copy of a working boot.img or kernel? Even a dump from a running phone would work.
sent while running with scissors
Click to expand...
Click to collapse
my boot.img
So the zip that I uploaded flashes, but it doesn't boot?
I think your working boot image is GB or Froyo and the new one is ICS. So maybe if I take the kernel from the ICS boot.img and add the ramdisk from your working one, then maybe it might work.
Maybe...
This is the new kernel with the old ramdisk. Again, flash at your own risk.
https://rapidshare.com/files/908298923/xt615ics1.2_mod3.zip
whenever i install a 4.2 rom the same problems occur, camera says no external storage available and so does gallery and playstore just force closes
I had this problem n solved it.
This is strange but trust me!
I guess your using a blade42 kernel for aokp etc?! Flash a cm10 kernel, wipe cache and dalvik. Wait for optimizing apps to finish n it will get stuck on starting android or something like that. After a min or two reboot into bootloader n flash the latest blade42, wipe cache and dalvik then reboot.
Done
I had this n no matter how many different blade42 kernels I tried they were all the same. I had a feeling there was a problem changing kernels, just a hunch, I assumed that forcing the phone to change wrongly to a cm10 kernel made the phone make a better job of changing back to the correct kernel.
If you get what I mean!
Anyway try the cm10 idea
Sent from my HTC One X+ using xda premium
indie12 said:
whenever i install a 4.2 rom the same problems occur, camera says no external storage available and so does gallery and playstore just force closes
Click to expand...
Click to collapse
It is because you did not create the 0 folder...
Reading the thread from which you installed the 4.2 ROM really helps!
Trust me on this!!!!
This 'problem' has been reported at least 1000 times and the solution is within the first 3 or 4 posts on each and every 4.2 thread!
bassyboy said:
I had this problem n solved it.
This is strange but trust me!
I guess your using a blade42 kernel for aokp etc?! Flash a cm10 kernel, wipe cache and dalvik. Wait for optimizing apps to finish n it will get stuck on starting android or something like that. After a min or two reboot into bootloader n flash the latest blade42, wipe cache and dalvik then reboot.
Done
I had this n no matter how many different blade42 kernels I tried they were all the same. I had a feeling there was a problem changing kernels, just a hunch, I assumed that forcing the phone to change wrongly to a cm10 kernel made the phone make a better job of changing back to the correct kernel.
If you get what I mean!
Anyway try the cm10 idea
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
nothing to do with kernels, all to do with the rom's and reading the F&Q of CM10.1\AOKP
Addicted2xda said:
It is because you did not create the 0 folder...
Reading the thread from which you installed the 4.2 ROM really helps!
Trust me on this!!!!
This 'problem' has been reported at least 1000 times and the solution is within the first 3 or 4 posts on each and every 4.2 thread!
Click to expand...
Click to collapse
I already had the 0 folder. I had been successfully using 4.2 ROMs for a little while. It wasn't until I updated my kernel that the problem started. Then eventually even the origional kernel (that worked) started to say no storage. The only way it got solved was the way I mentioned.
Sent from my HTC One X+ using xda premium
---------- Post added at 06:34 PM ---------- Previous post was at 06:31 PM ----------
Lloir said:
nothing to do with kernels, all to do with the rom's and reading the F&Q of CM10.1\AOKP
Click to expand...
Click to collapse
Im not sure what the cause is/was. As I say above, the 0 folder is there and I could only sort it that one way.
Sorry if this is a stupid question but what is the f&q
Sent from my HTC One X+ using xda premium
Its ok i know what it means. Well ive read the info on rom pages but i didn't read anything that I didn't try or help.
Sent from my HTC One X+ using xda premium
bassyboy said:
Its ok i know what it means. Well ive read the info on rom pages but i didn't read anything that I didn't try or help.
Sent from my HTC One X+ using xda premium
Click to expand...
Click to collapse
Ditto.
I carefully followed the instructions for the AOKP 4.2.2 - 2.0k installation. It all runs fine, I have the data/media/0 folder (i checked in TWRP), but my apps keep telling me there is no external storage.
Perhaps someone could point me at ANOTHER FAQ that I might have missed.
Ta,
Fitz.
fitzeh said:
Ditto.
I carefully followed the instructions for the AOKP 4.2.2 - 2.0k installation. It all runs fine, I have the data/media/0 folder (i checked in TWRP), but my apps keep telling me there is no external storage.
Perhaps someone could point me at ANOTHER FAQ that I might have missed.
Ta,
Fitz.
Click to expand...
Click to collapse
Just need to know one thing, after you created the 0 folder - did you copy the items in SDCARD/ to the 0 folder?
Also, if possible - always use the boot.img which is inside the ROM...
fitzeh said:
Ditto.
I carefully followed the instructions for the AOKP 4.2.2 - 2.0k installation. It all runs fine, I have the data/media/0 folder (i checked in TWRP), but my apps keep telling me there is no external storage.
Perhaps someone could point me at ANOTHER FAQ that I might have missed.
Ta,
Fitz.
Click to expand...
Click to collapse
yes
http://forum.xda-developers.com/showthread.php?t=2338443
Lloir said:
yes
http://forum.xda-developers.com/showthread.php?t=2338443
Click to expand...
Click to collapse
Thanks mate, just to be clear, stock ROM would include revolution HD?
Just need to know one thing, after you created the 0 folder - did you copy the items in SDCARD/ to the 0 folder?
Also, if possible - always use the boot.img which is inside the ROM...
Click to expand...
Click to collapse
Second bit first, yes I did use he boot.img from the ROM....
As to copying stuff, no I didn't because there wasn't anything in it I wanted, this is my "mess about and break" phone.
My issue wasnt as much "where's all my stuffs gone???????!!!!!!!!!1111111oneone" as "my camera app keeps ending because it can't see anywhere to store pictures"
Thanks for the input folks. Shall install revolution HD, make some files, make a 0 dir, copy those files into it, flash AOKP and report back...!
fitzeh said:
Thanks mate, just to be clear, stock ROM would include revolution HD?
Click to expand...
Click to collapse
Did not quite get you - if you mean stock look and feel? Yeah pretty much stock
Second bit first, yes I did use he boot.img from the ROM....
As to copying stuff, no I didn't because there wasn't anything in it I wanted, this is my "mess about and break" phone.
My issue wasnt as much "where's all my stuffs gone???????!!!!!!!!!1111111oneone" as "my camera app keeps ending because it can't see anywhere to store pictures"
Thanks for the input folks. Shall install revolution HD, make some files, make a 0 dir, copy those files into it, flash AOKP and report back...!
Click to expand...
Click to collapse
Pretty weird, I have tried both Carbon & CM 10.1 by loir - these issues were not there....
Could you try reflashing the ROM & Kernel again, if you have spare time
fitzeh said:
Thanks mate, just to be clear, stock ROM would include revolution HD?
Second bit first, yes I did use he boot.img from the ROM....
As to copying stuff, no I didn't because there wasn't anything in it I wanted, this is my "mess about and break" phone.
My issue wasnt as much "where's all my stuffs gone???????!!!!!!!!!1111111oneone" as "my camera app keeps ending because it can't see anywhere to store pictures"
Thanks for the input folks. Shall install revolution HD, make some files, make a 0 dir, copy those files into it, flash AOKP and report back...!
Click to expand...
Click to collapse
Yes
Sent from my One X+ using Tapatalk 4 Beta
Lloir said:
Yes
Sent from my One X+ using Tapatalk 4 Beta
Click to expand...
Click to collapse
All sorted now, thanks mate.
For all P760 cm 10.1.x based roms, replace /system/vendor/firmware/ducati-m3.bin with P768 ICS version make P768 camera work. Below is a flashable patches.
For P768 with NFC
http://d-h.st/Zdz
For P768 without NFC (remove all NFC related files)
http://d-h.st/T63
After flash this zip
1. you can change your phone model from p760 to p768 in /system/build.prop , I change following line
ro.build.display.id=cm_p768-userdebug 4.2.2 JDQ39E eng.jenkins.20130712.024505 test-keys
ro.product.model=LG-P768
ro.product.device=p768
ro.product.board=p768
ro.build.product=p768
ro.build.description=u2_open_eu-user 4.1.2 JRO03L P76820b.4DAAAC8F release-keys
ro.build.fingerprint=lge/u2_open_eu/u2:4.1.2/JRO03L/P76820b.4DAAAC8F:user/release-keys
ro.cm.device=p768
ro.cm.version=10.1.2-p768
ro.modversion=10.1.2-p768
Click to expand...
Click to collapse
or if you can adb to your device please try following command (backup your build.prop first, I've tried on my phone without problem)
# mount -o rw,remount /system
# cd /system
# sed -e 's/p760/p768/g' build.prop > build.tmp
# sed -e 's/P760/P768/g' build.tmp > build.prop
# reboot
2. After change build.prop your sound may not working, please rename these file
/system/lib/hw/audio.primary.p760.so to /system/lib/hw/audio.primary.p768.so
/system/vendor/lib/hw/hwcomposer.p760.so to /system/vendor/lib/hw/hwcomposer.p768.so
Click to expand...
Click to collapse
3. If you flash mikegapinski's patch to fix headphone sound, you need to delete and rename step 2 files again because his patch include p760 version.
4. I've read in some thread that enable auto rotation increase touch sensitivity. So you can try to enable it.
I want to share how to make CM (with camera) work on P768. After take a look at how to build P760 CM 10.1 and I've successfully built one for P760. I found that we can replace some files to make camera and other modules work on P768. But I did try to replace camera firmware in the past but no success. Why?
Today, I find out that proprietary files in P760 CM is from ICS rom, because in my JB rom some files is missing. So I replaced P768 ICS proprietary files in P760 CM10.1 and flash it on my phone. After phone boot up my camera works!!! :highfive:
Below is list of files I replaced (in /system)
etc/cert/lge.cer
etc/firmware/fw_bcmdhd.bin
etc/firmware/fw_bcmdhd_apsta.bin
etc/firmware/fw_bcmdhd_p2p.bin
etc/firmware/fw_bcmdhd_mfgtest.bin
lib/libril.so
lib/hw/gps.omap4.so
lib/hw/sensors.omap4.so
lib/hw/camera.omap4.so
lib/libini.so
lib/lge-ril.so
lib/libhdcp.so
lib/liblgehdmi.so
vendor/firmware/ducati-m3.bin
vendor/lib/drm/libdrmwvmplugin.so
vendor/lib/libPVRScopeServices_SGX540_120.so
vendor/lib/liblvverx.so
vendor/lib/libIMGegl_SGX540_120.so
vendor/lib/libwvm.so
vendor/lib/libsrv_init_SGX540_120.so
vendor/lib/libpvrANDROID_WSEGL_SGX540_120.so
vendor/lib/libglslcompiler_SGX540_120.so
vendor/lib/hw/gralloc.omap4.so
vendor/lib/libpvr2d_SGX540_120.so
vendor/lib/liblvvetx.so
vendor/lib/libsmapi.so
vendor/lib/libsrv_um_SGX540_120.so
vendor/lib/libusc_SGX540_120.so
vendor/lib/libtf_crypto_sst.so
vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
vendor/bin/pvrsrvinit_SGX540_120
vendor/bin/pvrsrvinit
bin/sensord
bin/glgps
bin/rild
## TEMPORARY - need to sync up to TI's DOMX
lib/libmm_osal.so
lib/libOMX_Core.so
lib/libion.so
lib/libtiutils.so
lib/libdomx.so
lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so
lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so
lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so
lib/libOMX.TI.DUCATI1.VIDEO.H264E.so
lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so
lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so
For now I have problem with my Wifi and adb (I always have this problem when I flash CM10.1 for P760). May be some wifi config in CM is not compatible with my region setting. For adb, it not work on windows 7 but I can use adb in linux to connect to my phone, strange?
I also attach files from my Thailand V10E rom for those who want to test. Just replace these file in CM10.1 for P760 and flash it (Backup your phone before flash).
You're a genius man, I've been waiting so long for this, thank you so so much, I'll keep an eye on this thread to check out your progress, again thanks for your hard work.
P.D: Can you make a ROM with your modified files and camera working for us to test?, also have you solved the NFC battery drain issue? or can you check that? please and thanks, I'll wait for your answer.
Sent from my LG-P768 using xda premium
OH MY DAYS! if this means we can finally use all these custom roms, you are a genius!
This means we can get all CM based ROMS working tho, am I right?
Sent from my LG-P768 using xda premium
HOLY COW!! i wish i knew how to build CyanogenMod 10.2!! HOPE SOMEONE MAKE IT for 768G! THANKS FOR UR SWEEET DISCOVER!!
Very nice, now we have a valid reason to unlock our bootloaders
Great!!! Thanks for all artit!!!
Dude, what mean "## TEMPORARY - need to sync up to TI's DOMX"?
viktorfk said:
You're a genius man, I've been waiting so long for this, thank you so so much, I'll keep an eye on this thread to check out your progress, again thanks for your hard work.
P.D: Can you make a ROM with your modified files and camera working for us to test?, also have you solved the NFC battery drain issue? or can you check that? please and thanks, I'll wait for your answer.
Sent from my LG-P768 using xda premium
Click to expand...
Click to collapse
Which P768 variant have NFC? I look in many asia rom but can't find it (and many ICS link is down). If we don't have it, NFC module should be removed from CM rom for P768.
donk165 said:
OH MY DAYS! if this means we can finally use all these custom roms, you are a genius!
Click to expand...
Click to collapse
viktorfk said:
This means we can get all CM based ROMS working tho, am I right?
Sent from my LG-P768 using xda premium
Click to expand...
Click to collapse
I think all CM based rom should work but I haven't test it yet.
Snowers96 said:
Great!!! Thanks for all artit!!!
Dude, what mean "## TEMPORARY - need to sync up to TI's DOMX"?
Click to expand...
Click to collapse
That line is just a comment.
This is a full list of proprietary files for P760 at github
https://github.com/CyanogenMod/android_device_lge_p760/blob/cm-10.1/proprietary-files.txt
For my wifi problem, it's solved in CM10.1.2 but I have to turn off AES in my router.
artit said:
Which P768 variant have NFC? I look in many asia rom but can't find it (and many ICS link is down). If we don't have it, NFC module should be removed from CM rom for P768.
Click to expand...
Click to collapse
As far as I know, none of the P768s have NFC. Only the P760 has it right?
None of the P768 variants has NFC, but CM 10.1 has a bug, it leaves NFC ALWAYS ON, it's a bug, so if you can fix that or remove the module, that would be greatly appreciated :good:
P.D: Can you build a flashable ROM with the modified files and NFC module removed? thanks again for your hard work buddy.
viktorfk said:
None of the P768 variants has NFC, but CM 10.1 has a bug, it leaves NFC ALWAYS ON, it's a bug, so if you can fix that or remove the module, that would be greatly appreciated :good:
P.D: Can you build a flashable ROM with the modified files and NFC module removed? thanks again for your hard work buddy.
Click to expand...
Click to collapse
I just found that P768E for Malaysia has NFC. I'll try to disable NFC in CM.
My P768 don´t boot after puting the files :/ It could be for any mistake of paste in the /system.. Can someone do and a flash zip for the recovery?
verrrrrrrrrrrrry goooooooooood
viktorfk said:
None of the P768 variants has NFC, but CM 10.1 has a bug, it leaves NFC ALWAYS ON, it's a bug, so if you can fix that or remove the module, that would be greatly appreciated :good:
P.D: Can you build a flashable ROM with the modified files and NFC module removed? thanks again for your hard work buddy.
Click to expand...
Click to collapse
http://www.mediafire.com/download/mb6d8dl8zuskxet/P768_fix_cam_cm10.1.zip
Mr.Sky said:
http://www.mediafire.com/download/mb6d8dl8zuskxet/P768_fix_cam_cm10.1.zip
Click to expand...
Click to collapse
With this zip the camera working!!! But threre is a big problem, the camera only works at 5mpx, and not to 8 mpx.
However.... THANKS THANKS TO THE ALL DEVS ARE WORKING ON THIS
Mr.Sky said:
http://www.mediafire.com/download/mb6d8dl8zuskxet/P768_fix_cam_cm10.1.zip
Click to expand...
Click to collapse
Thank you so much buddy, I'll test this... now how to fix the nfc battery drain issue?
Uninstall the NFC service through a root uninstaller. Also uninstall any other apps that are titled NFC. It might crash the os but a reboot will fix that. Now you no longer have NFC running
Sent from my LG-P769 using xda premium
So guys I've been testing this so far, I've installed mateo's build for CM 10.1 and everythings working as it should, my camera is fully working at 8MP, I have also deleted the NFC module using Titanium Backup, will post on battery life later, but I'm really happy so far with this... credits to artit for making this possible, mateo's for his amazing ROM, and Mr. Sky because he made a flashable zip of this fix, will continue testing and will post later, english ain't my main language so sorry if I made some mistakes.
Here's the link to mateo's rom, credits to him: http://forum.xda-developers.com/showthread.php?t=2388161 :good:
P.D: Found a bug guys, when the patch is apllied, screen rotation stops working, please take a look at this issue, is the only one I've found, everything else seems to work fine besides that.
viktorfk said:
So guys I've been testing this so far, I've installed mateo's build for CM 10.1 and everythings working as it should, my camera is fully working at 8MP, I have also deleted the NFC module using Titanium Backup, will post on battery life later, but I'm really happy so far with this... credits to artit for making this possible, mateo's for his amazing ROM, and Mr. Sky because he made a flashable zip of this fix, will continue testing and will post later, english ain't my main language so sorry if I made some mistakes.
Here's the link to mateo's rom, credits to him: http://forum.xda-developers.com/showthread.php?t=2388161 :good:
P.D: Found a bug guys, when the patch is apllied, screen rotation stops working, please take a look at this issue, is the only one I've found, everything else seems to work fine besides that.
Click to expand...
Click to collapse
I also got this problem. May be we should replace files that required for camera module.
Yeah you should replace just the camera files and tell Mr. Sky what files they're so he can make a zip just for those files, leaving alone the sensors files.
Sent from my LG-P768 using xda premium
viktorfk said:
Yeah you should replace just the camera files and tell Mr. Sky what files they're so he can make a zip just for those files, leaving alone the sensors files.
Sent from my LG-P768 using xda premium
Click to expand...
Click to collapse
Yes, I've test this. Replace just one camera file solve camera problem.