[Need help]-Porting camera from ICS 4.0.4 ROM - Desire HD General

I need help or any advices
Recently, I want to port the camera from a ICS 4.0.4 ROM to my own ICS 4.0.4 ROM
So, which library files in /system/libs for camera should I have to take care ?
As I known, it includes:
/system/libs/hw camera.default.so
/system/libs/
liboemcamera.so
libhtccamera.so
libcameraface.so
libcamera_client.so
libcamerapp.so
libcameraservice.so
All libchromatix_xxx files
all libmmcamera_xxx files
....
DO I MISS something ?
Thanks

Here is logcat
can someone help me to find the issue from logcat file
sometime, the camera application auto shutdown after launching few senconds without any errors or notification

Related

Is there any way of fixing camera in racht's 2.3 roms?

Is there a way of fixing camera on racht's roms? I need at least VGA...Can't we copy drivers from another gingerbread with working camera, if yes, what should i replace to enable the camera...cuz i really like Racht's rom, but i need camera...
-------------->Up
i dont thing theres any fix for the camera..if there is a fix,dont you think racht will use it on his rom already?..so just wait until racht fix the camera..
I'd quite like to know what the problem is as well, then other people can have a go at fixing it. I've had a look and search round the forum and can't find any information
There is many roms with half or full camera working,coping libs should help.
racht prefers doing most of the development himself so give him time .
Use minicm based roms or the floyo 0.20 . (all android 2.2.1)
P.S - unless u intend to become a developer and fix the camera yourself, do not open useless threads like these . A thorough read through the forums can give you all the answers you need.
Dont give Racht pressure. Hes doing his best to make our X8 a more suitable device for us
How is this pressure? I'd quite like to know what the problem is so I can have a go at fixing it myself, and the original poster was suggesting something that could work.
as-mario said:
There is many roms with half or full camera working,coping libs should help.
Click to expand...
Click to collapse
I already know that, but which libs should i copy?
The answer to finding module dependencies is actually in the first page of Racht's ROM thread. >>>>>
Updated 10-Feb-2011 :
Cookers only
Here is the tool to check library dependencies in roms.
ld-linux
It is arm-compiled, to setup do these steps :
adb push ld-linux /system/bin/
adb shell
chmod 04755 /system/bin/ld-linux
To see library dependencies run ld-linux on any .so file and it will give u the list.
To install your cooked Floyo rom built from sources, put this script update-script
into
/META-INF/com/google/android/ directory inside update.zip, delete both update-binary and updater-script from it and copy to SDcard.
Now use xRecovery to install it normally.
Once installed, and BEFORE REBOOT reinstall xRecovery files into /system/bin/ directory.
You should also extract original boot.img files into /system/bin/ramdisk.tar and install chargemon from one of my Floyo roms.
To enable adb root and debug mode, put property.tar to /system/bin/ - take it from Floyo rom.
Now it should boot.
If you don't see boot animation of Floyo, try replacing /system/lib/libgsl.so
To fix sound, replace libaudio.so
To fix Vibra and Leds : libhardware_legacy.so
make sure these programs start fine before going further :
app_process
mediaserver
surfaceflinger
If one of these 3 fails, it won't boot.
The following are for network and gsm :
ifconfig
netcfg
dhcpcd
rild
wpa_supplicant - make sure if you run it manually, reported interface is wlan0 and not tiwlan0
The fixes required for ramdisk.tar :
init.rc file should have 2 parts from original sony init.rc that are marked as #SEMC
add original init.delta.rc and init.delta.sh from sony or one of my ramdisks, those are responsible for service declarations.
Rom patching modifications :
/system/etc/firmware/ dir
/system/etc/sensors* files
/system/etc/*.sh files
/system/lib/hw/ dir
/system/lib/modules/ dir
Those are probably required for every rom..
For all who would like to help fixing remaining cm7 problems:
libcamera :
in froyo (2.2.x) roms, we could configure the makefile to use eclair (2.1) libs for camera and replaced libcamera.so with original se file (USE_ECLAIR_CAMERA)
in ginger (2.3.x) roms, this option fails compiling and seems to be not available anymore.
Thus, its not possible to have old library and the only way to have it working is compiling from source. Available libcamera source is in J's github repository, it's very limited in functionality (no video, vga-only).
If you would like to help - get J's sources and try to fix libcamera.
fmradio,sound recording (with original recorder and during calls) :
we are still using se libaudio.so with cm7 roms, as we don't have a properly working libaudio compiled from source.
once again, initial libaudio sources half-working are in J's repository, the library loads up and works for some sounds, but sound routing (libsoundpool) is incorrect, and that makes problems with switching audio sources like during calls etc.
graphics :
cm7 roms are clearly slower in 2d graphics (scrolling), and quicker in 3d graphics.
This is because we use source-compiled drivers for 3d and se libs for 2d, which are not very good anymore.
fixing this would be done by re-writing sources for libgsl and libEGL.
One more possible way of fixing audio and gfx issues is by booting custom kernel, compiled with HTC or LG sources for the missing things.
In that case we could use the rest of libs from other device (HTC/LG).
I guess those are remaining issues left.
racht said:
For all who would like to help fixing remaining cm7 problems:
libcamera :
in froyo (2.2.x) roms, we could configure the makefile to use eclair (2.1) libs for camera and replaced libcamera.so with original se file (USE_ECLAIR_CAMERA)
in ginger (2.3.x) roms, this option fails compiling and seems to be not available anymore.
Thus, its not possible to have old library and the only way to have it working is compiling from source. Available libcamera source is in J's github repository, it's very limited in functionality (no video, vga-only).
If you would like to help - get J's sources and try to fix libcamera.
fmradio,sound recording (with original recorder and during calls) :
we are still using se libaudio.so with cm7 roms, as we don't have a properly working libaudio compiled from source.
once again, initial libaudio sources half-working are in J's repository, the library loads up and works for some sounds, but sound routing (libsoundpool) is incorrect, and that makes problems with switching audio sources like during calls etc.
graphics :
cm7 roms are clearly slower in 2d graphics (scrolling), and quicker in 3d graphics.
This is because we use source-compiled drivers for 3d and se libs for 2d, which are not very good anymore.
fixing this would be done by re-writing sources for libgsl and libEGL.
One more possible way of fixing audio and gfx issues is by booting custom kernel, compiled with HTC or LG sources for the missing things.
In that case we could use the rest of libs from other device (HTC/LG).
I guess those are remaining issues left.
Click to expand...
Click to collapse
Thank you! I will have a look at what I can over the next few weeks but I have exams coming up so can't spend too much time, will do my best though
racht said:
For all who would like to help fixing remaining cm7 problems:
libcamera :
in froyo (2.2.x) roms, we could configure the makefile to use eclair (2.1) libs for camera and replaced libcamera.so with original se file (USE_ECLAIR_CAMERA)
in ginger (2.3.x) roms, this option fails compiling and seems to be not available anymore.
Thus, its not possible to have old library and the only way to have it working is compiling from source. Available libcamera source is in J's github repository, it's very limited in functionality (no video, vga-only).
If you would like to help - get J's sources and try to fix libcamera.
fmradio,sound recording (with original recorder and during calls) :
we are still using se libaudio.so with cm7 roms, as we don't have a properly working libaudio compiled from source.
once again, initial libaudio sources half-working are in J's repository, the library loads up and works for some sounds, but sound routing (libsoundpool) is incorrect, and that makes problems with switching audio sources like during calls etc.
graphics :
cm7 roms are clearly slower in 2d graphics (scrolling), and quicker in 3d graphics.
This is because we use source-compiled drivers for 3d and se libs for 2d, which are not very good anymore.
fixing this would be done by re-writing sources for libgsl and libEGL.
One more possible way of fixing audio and gfx issues is by booting custom kernel, compiled with HTC or LG sources for the missing things.
In that case we could use the rest of libs from other device (HTC/LG).
I guess those are remaining issues left.
Click to expand...
Click to collapse
It would be great if you could provide link or attach to working libcamera, at least VGA, that's all i need
after i used the camera fix.zip and after reboot the Wifi didnt work anymore, any suggestions?
I'm using GingerCruzt Revision 5 and that is a fully functional ROM with the Camera currently limited to VGA, also Jerapleas CM7 ROM has a working VGA Camera so iot's possible to have a working Camera in Gingerbread ROMs.
Roland

[DEV] My own x8 rom port bootloop ... Logcat inside DEV NEEDED

Hello!
I want to port an x8 rom to swift as mietas but with looping result I took lib/hw from openswift and kernel from swiftdroid 1.8 and made small changes in build.prop and keylayout ... This is my logcat output:
http://www.4shared.com/file/pq_kYLbt/logcat.html? (open with wordpad)
And this is the package: (for old recovery)
http://www.4shared.com/file/ojhhP5_q/swift_unsigned_061211_090711.html
Would you mind to take a look and help me? Mietas already told me to remove gralloc.msm7k.so but nothing changed and I restored this ...
Someone met that error before ? What should I do to make this stuff working?
mikegapinski

[ROM][FIX][ICS]Onecosmic's ICS Port Android 4.0.3 Beta 3

Here you are the link to mine fix package for Onecosmic's ICS Port Android 4.0.3 Beta 3
GUFix_for_ICS_BETA3_Onecosmics.zip
What's fixed:
-shacking camera prewiev
-su premissions
-gapps (based on gappsv5.3 based on teamhacsung)
-brightness
-some market troubles (build.prop)
If you wont some apps just delete it from package.
Write to me if it breaks something (shouldn't, but only I can take down it from serwer) was tested on mine sgs i9000 and works xD
To moderators if you can move this to http://forum.xda-developers.com/showthread.php?t=1398223 and delete from this place just cause i can't write there
You know where's thank button

rom porter patch beta 1

after too many test i finally made a patch for porting ics stock roms from arc/s (and maybe other xperia 2011 devices) to pur lovely xperia play
it will install all the things that you need for fully working rom on xperia play and deletes the cybershot camera(because it not working on our device)
installation guide:
there are 2 ways for installing
1-if the rom has armo installer
2-if it doesnt have armo installer
if it has armo installer its very easy to use this
here is the instruction
1-open rom zip and ics rom porter.zip files with winrar
2-find the device section in rom zip file
3-drag all the files inside system folder in the ics rom porter.zip to lt28i(xperia arc) folder of rom zip
4-now simply flash the rom zip ans choose xperia arc as your device and everything will be fine
if the rom doesnt have armo installer
do the same thing as i said for the the roms with armo installer but instead of draging the files to lt28i folder drag them to system folder
bugs:
1-no touchpad. i need help for this part.
2-flashable.zip is broken. i need help for this one too
3-build.prob will be replaced with xperia z v5 by markphyton so you wont see the original tweaks after the port
4-some of the roms will give bootloop because they have more space than our system partition. if some one can repartiton a kernel with more system storage it will be great
to do list:
1-making an armo zip with all build.prob form popular roms and the requested roms
2-adding touchpad fix
tested on(working):
1-anzumi : by myself
2-4.1.b.1.13(arc version by jader) : by myself
tested on(not working):
xperia ray 4.1.b.1.13 (touchscreen had some problems)
download link:
http://d-h.st/eJv
thanks to:
1-markphyton : i have taken my files from his rom
2-all the developers of xperia arc :for making roms(that gived me the idea of this patch)
3- xda: all of us know why
4-dev host : i use it for uploading my files
5-xperia play users : for not giving up
reserved
please help me for fixing the bugs
i will start working on gb and jb patch as soon as i get time
waiting for reports now
that all i can do now
if you want to help for completing this patch i need help for these things
1- someone with good knowledge in making armo installer and update.zip files
2-someone for helping me in making build.prob files of requested roms
3-(the moost ipmortant) helping me for fixing touchpads
Smokerman is good in porting roms, you should ask him for touchpad fix
I have basic knowledge of aroma installer and build.prop editing, if i can, i'll help
touchpads
@smokerman
can you help me for fixing the touchpads?
i will release an update soon
things that i changed:
1-fixed the flashable zip
2-im using 4.0.4 ics build.prob instead of xperia z rom by markphyton
jb patch is being tested now
for now i only get bootloops
but im trying to solve the problem
i aslo wanted to make an gb patch but i saw that we will get a little problem in gamepad after porting gb roms from arc
(always open game pad. you cant use touchscreen for gaming anymore in ported gb roms.)
pedyvirus said:
@smokerman
can you help me for fixing the touchpads?
Click to expand...
Click to collapse
i can help for sure..what is the rom? send me the link..i will look into it on the weekend.
well im making a patch for all of the roms
i need to know the way so i can support all the roms that xperia play users want
do you use farenheith's patch for fixing the touchpad in stock based roms?
update coming in less than 30 minutes
im doing the final test
changelog:
1-you don't need to do anything yourself now. just flash the rom + the porter package and everything is finished
2-build.prob replaced with 4.1.b.1.13 for xperia play (made by myself)
3-updated most of the files
to do list:
1-building a 410mg system partition kernel.(i really need help or this one. i don't have enough experience)
2-fixing touchpads (i really dont know how to this because i never fixed touchpads for stock based ics roms. please help me )
also i saw project lard remover script
it can remover build.prob lines
if i can remove xperia arc lines and replace them with xperia play lines most of the bugs will be fixed
but my problem is with different build.prob lines like 4.1.b.1.13 or 4.1.b.0.631 and these things
for now i will add a guide about how to make the build.prob yourself for activating the build.prob tweaks of the rom after applying my patch(for better speed)
update: i got bootloop using the new zip although its working with the old way of porting (extracting the files to the system folder)
i will release it when i fix this problem
pedyvirus said:
update coming in less than 30 minutes
im doing the final test
changelog:
1-you don't need to do anything yourself now. just flash the rom + the porter package and everything is finished
2-build.prob replaced with 4.1.b.1.13 for xperia play (made by myself)
3-updated most of the files
to do list:
1-building a 410mg system partition kernel.(i really need help or this one. i don't have enough experience)
2-fixing touchpads (i really dont know how to this because i never fixed touchpads for stock based ics roms. please help me )
also i saw project lard remover script
it can remover build.prob lines
if i can remove xperia arc lines and replace them with xperia play lines most of the bugs will be fixed
but my problem is with different build.prob lines like 4.1.b.1.13 or 4.1.b.0.631 and these things
for now i will add a guide about how to make the build.prob yourself for activating the build.prob tweaks of the rom after applying my patch(for better speed)
update: i got bootloop using the new zip although its working with the old way of porting (extracting the files to the system folder)
i will release it when i fix this problem
Click to expand...
Click to collapse
is it possible to port ics stock rom of arc to our device(xperia miro) (2012) ?????
a help would be appreciated!!! and i know @pedyvirus you can help me

Recreation of CM 7 RC 4 (Allmost all Bugs Fixed)

Dear Friends / Dev / Vistors.,
I am looking for a long time for cm7 without no bug.. Finally CyanogenMod 7.2 for Galaxy Y (S5630) Has been released By bieltv.3 http://forum.xda-developers.com/member.php?u=4686683 With CM Specific Kernel :good:
But FM radio and usb tetherstill have a bug
other than
RC 4:
Fixed al 3g and Data issues on EXT4
My FIX.zip integrated on the ROM zip
IMEI is showing on EXT4 data partition
RILD is now prebuilt and updated last LibRIL.
Broken WIFI hotpost os wprking again
Icon of Wifi Hotpost is working well
ethd back again
RNDIS and USB0 are initialized in USB tether (still not working)
Added all offline charging files
Fixed offline charging using my 3.0 #7 kernel
NOTE: No format is needed, update-script has been modify to format the partition automatically
many dev have created hundreds of there rom on "CM 7 RC.2" which is most nicely theamed :good:
I Decide to use there Rom on Rc4.
LIKE PORTING ROM
Simple method
1, RC.4 Rom as base rom
2, Any rom based on cm7
3, Open base rom zip with Winrar (or other) ( pls not exctact zip file) and open system folder.
4. Delete app folder, font, framework, build.prop (" dont delete media because it consist offline battery chargering animation files")
5, Open Rom u need to Port to Rc.4 copy those folder and files (app folder, font, framework, media, build.prop)
and directly drag into base rom /system/ (If you can work with build.prop to change ver info) but i am lazy :silly:
6, on base rom open system/etc/ and delete init.d and permissions
7, copy those folders from other cm7 rom and drag into the base rom system/etc/
8, last META-INF on base rom just go into Meta-inf/com/google/andriod then delete updater-script
9. darg updater -script from port rom to base rom RC4
"the flash as per Insturction given by Mr bieltv.3"
"And please do it with your own risk"
By this method I Ported many CM7 rom..
And for MIUI, lewa some more files to be copy like media, and libs etc.... i have some doubt on that so let we decuse about that later
and this is my 1st post so Any mistakes please tel me.. thanks
My porting method is a little bit quick and faster.
aniket.lamba said:
My porting method is a little bit quick and faster.
Click to expand...
Click to collapse
can u give me your method ?:victory:
AhZhi said:
can u give me your method ?:victory:
Click to expand...
Click to collapse
See this video: https://www.youtube.com/watch?v=0MBLCPnrMww&feature=youtube_gdata_player
aniket.lamba said:
My porting method is a little bit quick and faster.
Click to expand...
Click to collapse
Both are good, i tried yours aniket and I will post the rom soon
Gonna give this a try
Sent from my GT-S5360 using Tapatalk 2

Categories

Resources