cameraservice recompile for froyo - XPERIA X8 General

can some one recompile camera service.so (camera lib) for froyo ?
Dioxanh already post his project on github.. so pls

Related

Settings.apk

I want to modify my settings.apk so that I can use the rotation mod to get up to 360 rotation.
I have attached 2 smali files, first one is the original smali from my settings.apk and the second one is the smali from a settings.apk that has the rotation mod setting that I want.
How can I port it over???
Hi,
as far as I know settings.apk is part of android source tree. Why do u decompile the .apk when you can have available the java source for your modifications ?

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

Need help by Camera Porting...

Hi!
I have port this ROM ►►[AOSP] 4.2.2 - S4 Google Edition - Final-v1 - Feel the Experience of Nexus◄◄ (from S4 (GT-I9505) to my S4 Active.
Here is my port: [AOSP][Port]★I9295★ Official 4.2.2 - S4 Google Edition - Feel the Experience of Nexus
All is running but i get the Camera not to work.....
S4 have a 13MP Camera and the S4Active have only a 8MP.
The AOSP Camera from the S4 ROM open and get then the Error "no connection to camera"
I have try a few files from LIB folder .... not work
I have try Android 4.2 Camera .... not work
I have try CM10.1 Camera from N7100 .... not work
I have no more ideas .... it is my first ROM Port ... i hope any one can help me!!
Logcat first!!
You can try these from an AOSP rom for your device
camera.msm8960.so
liboemcamera
All libchromatix
libsecnativefeature
libcsd-client
libvdis.so
There is no AOSP ROM at the moment....
I will make an Logcat and post it here!
Ok then, just pull those from stock tw
CNexus said:
camera.msm8960.so
liboemcamera
All libchromatix
libsecnativefeature
libcsd-client
libvdis.so
Click to expand...
Click to collapse
So i copy this files from my stock TW deodexed ROM (Camera Works) to the GoogleEdition (Port) ... the file libvdis.so can i not found
In attachment i make a logcat..... There are a few Errors about the camera.
Code:
F/libc ( 3127): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 3143 (Binder_4)
E/mm-camera( 317): config_proc_native_ctrl_cmd: CAMERA_SET_PARM_DIMENSION called
F/libc ( 317): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 2794 (mm-qcamera-daem)
Error = Galerie stoppt
Error = no connection to camera
the camera and galerie App is from the Original GoogleEdition ROM. With the TW Cam App and Galerie App the same
Any one more have an Idea?? :crying:
Try adding/overwriting these from the stock rom. At least they made the camera work with cm 10.1. You probably want to add the rest of the libchromatix_s5k3h5xa... files.
# Probably don't need to change these
lib/libmmjpeg.so
lib/libgemini.so
lib/libmercury.so
lib/libmmcamera_statsproc31.so
lib/libmmcamera_frameproc.so
lib/libmmcamera_wavelet_lib.so
lib/libmmcamera_hdr_lib.so
lib/libmmcamera_plugin.so
lib/libmmcamera_interface.so
lib/libmmjpeg_interface.so
lib/libmmstillomx.so
# Probably need to add/change these
lib/liboemcamera.so
lib/libchromatix_s5k3h5xa_zsl.so
lib/libchromatix_s5k3h5xa_default_video.so
lib/libTsAwb.so
lib/libTsAccm.so

[Need help]-Porting camera from ICS 4.0.4 ROM

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

Categories

Resources