yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] :
Hello guys!

Please correct me if i´m wrong, but i think we need someone who can tell us, which files have to be changed in addition to get camera working correct.

I´m thinking about manifest, build.prop, Android.mk and so on.

There are a couple of *.cpp and *.h files i found in I9000 CM9 build (from kernel?).

Couple of weeks ago (when we all wrote in first porting thread) someone told us, that some device files are missing. Can´t find the post anymore.

I´ll add a zip here,

PLEASE DON´T INSTALL IT WITH CWM

, they are kernel related.

It´s only a small part of Onecosmics device files for I9000, but i suggest, we don´t even have 50% of the work...

Only a suggest, don´t kill me. ;)
[Galaxy S Plus I9001 Android Development] oisis:
It was me I think :), I have few ideas what to add but you have to wait, I'm on the road :). I don't think so that is kernel related. First of all we have to find out exactly from which ROM added libs came.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I dont know if this post will be helpful to us.

http://xdaforums.com/showpost.php?p=21492850&postcount=43

And I tried to decomiple the Camera.apk from DHD and from Italian Guy. I found that there is additional function on DHD's Camera.smali file and Camera$PopupGestureListener.smali file does not exist on Camera.apk from Italian guy. I am not a dev/coder to modify this file. I just tried to compare. :(
[Galaxy S Plus I9001 Android Development] oisis:
If and when we will finish with camera then you can use stock ROM Camera.apk or one from market, don't think so that this one from CM9 will be working with wrapper.
[Galaxy S Plus I9001 Android Development] nenros:
as i understand that post, we should try with linux-3.0, it should help?
[Galaxy S Plus I9001 Android Development] texten:
after reading this link, i think there is a need to modify camera apk, but for now we should try the cameratests with thirdpart app..

to find out if we have the right files. when videorecording and taking pictures with thirdpart apps will work, then we know, there is a need to modify camera.apk..

but for now we have to find out which files, from where, now included in the latest camera-experimental01.zip

then we should try to replace files step by step and test with some thirdpart apps... if we get this working, we should look in camera.apk
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I think third party app like pudding can have its own lib based on some ligcat it loads data/data/com.kth.puddingcamera/lib/opencv.so and on stock cam there is an error on preview callback...
[Galaxy S Plus I9001 Android Development] texten:
ok then we should look for needed files.
[Galaxy S Plus I9001 Android Development] :
/data/data/com.android.camera/lib/ is empty.

Can someone check this on GB?

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] seba2121:
In MIUI GB data/com.miui.camera/lib is empty

Sorry for my english.

Napisane z SGS+ MIUI GB
[Galaxy S Plus I9001 Android Development] medwe27:
I can't find any folder on KQE you mean, but in system there's a folder named cameradata. I've attached the files from it.
[Galaxy S Plus I9001 Android Development] texten:
i have these data/data files for cam on kqb

com.sec.android.app.camera

- folder lib with no file

- folder shared prefs with this file com.sec.android.app.camera_preferences.xml

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="pref_setup_guideline_key" value="0" />
<int name="pref_camera_videoquality_key" value="0" />
<int name="pref_camera_autocontrast_key" value="0" />
<int name="pref_camcorder_resolution_key" value="7" />
<int name="pref_camera_resolution_key" value="0" />
<int name="pref_camera_focus_key" value="1" />
<int name="pref_camera_flash_key" value="2" />
<int name="pref_setup_review_key" value="0" />
</map>

sorry i`m on the road
[Galaxy S Plus I9001 Android Development] medwe27:
Same in KQE.
[Galaxy S Plus I9001 Android Development] xator91:
Best app for shot camera? I have tried puddingcamera and camera zoom fx paid
[Galaxy S Plus I9001 Android Development] kellermanv:
Camera Zoom FX works great for shots and previews.
[Galaxy S Plus I9001 Android Development] :
vibtest.zip

edit: Found it!!!
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
AWESOME! ;)
[Galaxy S Plus I9001 Android Development] Daniel.96:
I have the file, I'm uploading.

MD5 Sum: ca853e38c7e5f4b8ad2657d075cadf29

https://www.dropbox.com/sh/qtmg1j4dm70eo7o/WJNK79mG83

Here it goes ! :)
[Galaxy S Plus I9001 Android Development] oisis:
I need also output from command:

adb shell lsmod

but from GB 2.3.6 android when camera is on.

Also file /proc/config.gz.

Output form:

adb shell uname -a

Thanks.

EDIT1:

I need this information to find out that is everything what sould be compiled into the kernel.
[Galaxy S Plus I9001 Android Development] :
Posted a request at german forum as i don´t have GB running... :D
[Galaxy S Plus I9001 Android Development] change63:
Don't know if it makes any difference but I'm on Crybernation RC1. It is GB 2.3.6 so it should be ok, right?

C:\android-sdk-windows\platform-tools>adb shell lsmod
dhd 205548 0 - Live 0xbf009000 (F)
sec_param 2170 0 - Live 0xbf006000
bthid 3499 0 - Live 0xbf000000

Can't notice any difference in the output if the camera is on or not..

C:\android-sdk-windows\platform-tools>adb shell uname -a
Linux localhost 2.6.35.7-SkyHigh V1.4d PREEMPT Fri Apr 6 22:18:45 CEST 2012 armv
7l GNU/Linux

Attached the file you've requested.

Thx for your support ^^.
[Galaxy S Plus I9001 Android Development] oisis:
Ok, thanks. I was thinking that there is some module for camera, but it can be compiled as part of the kernel that is why there no difference in lsmod when camera is on or off.

EDIT1:

Look on this: http://4.padadaz.com/~cherix/kernel.png
[Galaxy S Plus I9001 Android Development] Leonelf:
Isnt it possible to use the ICS Camera driver from the i9000?
[Galaxy S Plus I9001 Android Development] oisis:
I don't think so, different hardware, different libs so it is impossible. Maybe HAL implementation but i'm not sure.
[Galaxy S Plus I9001 Android Development] mazen912:
keep your good work :)
[Galaxy S Plus I9001 Android Development] YMYA:
Great work guys..hope you can do it
[Galaxy S Plus I9001 Android Development] androabot:
This is a photo from I9001 repair parts

Samsung I9001 Galaxy S Plus Flex Cable with Rear Camera Socket

If you enlarge photo, you can see that the chip is the same as I9000
[Galaxy S Plus I9001 Android Development] Karls0:
Somebody in previous thread switched screen and camera from i9000 with it in i9001 couse screen was broken. Works both
[Galaxy S Plus I9001 Android Development] [GR]Frostbyte:
Just because a i9000 can work with a i9001 camera, doesn't mean that an i9001 camera and i9001 hardware can work with i9000 drivers.

Apparently it worked because he had an i9000 motherboard and i9000 drivers.. But you're dealing with an i9001 motherboard here.. So things might be different, HAL-wise..

That's at least how I understand it..
[Galaxy S Plus I9001 Android Development] androabot:
Another interesting source

qcom_camera_msm7x30
[Galaxy S Plus I9001 Android Development] Karls0:
I understand that he had matreboard from i9001 and connected to it camera and screen from i9000 and it worked on i9001 kernel. But we don't need to guess - just test it and all will be clear. We have lots of ideas, but do somebody test it?
[Galaxy S Plus I9001 Android Development] t_raven:
As I remember there already was a talk about it. Its not about just a camera module, its all about how kernel communicates with it, and here 9000 and 9001 do it in a different way.
[Galaxy S Plus I9001 Android Development] oisis:
I tried a little more understanding of ICS, kernel, drivers, etc. After my search I found out in what is probably the problem. Application works like this:

Application(Camera.apk) -> Library(libcamera.so) -> HAL -> Kernel(zImage) -> Hardware(MSM7x30)​

The problem with the camera is probably caused by the kernel and/or HAL parts of schema.

Present Arco's kernel dont have switched on options without which the camera will work. I tried to turn on these options, but unfortunately the kernel does not compile. We need to look for patches to the kernel drivers which uses Qualcomm MSM7x30 Samsung during the preparation of kernel for the i9001. Probably receives them from the original equipment manufacturer (Qualcomm?) Who does not provide. So we have three options: find this patches somewhere, someone will write patches(drivers) or try to replace the drivers from another phone(which can go wrong but worth a try). We need to include options shown on the image in this link and compile kernel.

One thing puzzles me why we can not use kernel from Gingerbread ROMs.

GB kernel version: 2.6.35.7

ICS verson kernel: 2.6.35.14

I'll try to check carefully.

The kernel of the GB has all the necessary options. I have to see if Samsung has released somewhere in the GB kernel source.

Another thing that bothers me is whether we can get the kernel source from another phone from Samsung based on the same chipset.

It annoys me that phone manufacturers are trying to adapt the kernel to the hardware and not vice versa. They create some magic patches for kernel which does work or sometimes does not work and do not provide them to communities.

EDIT1:

I can be wrong because i am not coder :).

Phones with MSM7230 chipset:

- Huawei 8800

- Acer Liquid MT (S120)

EDIT2:

There is small hope: CM Forum - i will try it later.

Kernel 3.0.31: Polish forum, German forum - Git Repo - will try it later.
[Galaxy S Plus I9001 Android Development] :
But is there a chance to port 3.X kernel to our phone?

I know that both (2.6.X and 3.X) can be used with ICS, but who is able to port it?

About camera drivers, some people reported, that they where running arcos build with feacore. Isn´t this kernel based on 2.6.35.7?
[Galaxy S Plus I9001 Android Development] mr_omega:
Camera360 Free works great too. (strange, but paid version doesn't work hehe)
[Galaxy S Plus I9001 Android Development] Kokacrime:
Don't know if anybody already mentioned it but QR- and bar-code scan works but after scan something slows down the phone that nothing is responding anymore - tested with barcoo
[Galaxy S Plus I9001 Android Development] oisis:
Could someone do this steps, please:

1. Download stock Samsung ROM i9001.

2. Extract files form stock ROM i9001

3. Copy this files from stock ROM i9001 to CM9:

/system/lib/libcamera.so

/system/lib/libmmipl.so

/system/lib/libmmjpeg.so

/system/lib/liboemcamera.so

/system/etc/media_profiles.xml

/system/app/Camera.apk

/system/firmware/CE147F00.bin

/system/firmware/CE147F01.bin

/system/firmware/CE147F02.bin

/system/firmware/CE147F03.bin

4. Add files form Arco camtest8.zip

5. Install clean Arco CM9 Alpha3

6. Files from pkt. 3 and 5 push to clean CM9 ICS ROM

7. Set proper permissions

8. Do camera test and do logcat and dmesg.

Thanks.
[Galaxy S Plus I9001 Android Development] jackq:
If you want to test here you go, files from GB kqe. cwm package just add files from camtest and install it.

http://www.sendspace.com/file/lc9f13
[Galaxy S Plus I9001 Android Development] oisis:
Don't have time now for tests, it is just next idea how to fix camera. If somebody have time can try.
[Galaxy S Plus I9001 Android Development] mav.erik:
I test and phone brick in bootanimation ;)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
Could u test what Oisis posted? :)
[Galaxy S Plus I9001 Android Development] oisis:
Don't worry it is not possible to brick the phone if you will swap this files(if you are not a noob and you know how to use my instruction), for sure. Check whole thread with camera, i didn't test but found the way to fix a little bit camera and nobody bricks his phone.

If you're afraid just don't test.

Just i don't have a time now for testing, i'm working with AOKP.
[Galaxy S Plus I9001 Android Development] mav.erik:
Escuse me For my english.. my phone stop in bootanimation :rolleyes:

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] oisis:
Do you have logcat?
[Galaxy S Plus I9001 Android Development] kingdavidd:
I don't know if anyone could help over here, but we are using your files for our phone at http://xdaforums.com/showthread.php?t=1532005&page=242 and our camera now works with stock app that is in OP post but when we go to take a picture the log says this: http://pastebin.com/6aKDxTQP Which I assume has to do with our cameras being different :p.
[Galaxy S Plus I9001 Android Development] texten:
our cam is also unstable...

we are working on it.

but it is nice too see, that there are also two other devices where the files run :)

here you can see what is working for us: http://xdaforums.com/showpost.php?p=26511647&postcount=428
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Tried Oisis Test and Stuck on SGS+ Logo

Tried GB Files Except libcamera.so, liboemcamera.so and I get a boot loop.

Does anyone uploaded and test Stock libmmjpeg.so, liboemcamera.so, and libmmipl.so from Galaxy W? If that works that means there is no modification done on Italian Guys libs, correct me if im wrong, because only these 3 libs came from the Italian guy and the rest is on arco's camtest8 in oisis cam_experiment
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
http://xdaforums.com/showpost.php?p=21734698&postcount=125

Based on this post we need to add some line in BoardConfig,mk or in CommonBoardConfig.mk is this present on ours? Or is it applicable in our device? only arco can add this because it can only be added on source.

I think arco is including the camera fix in his github now..:D
[Galaxy S Plus I9001 Android Development] Toombstone:
Same here. I regret that i cant provide a logcat atm.

And indeed arco is pushing stuff in his github but the compiling will take time i presume we need to be patient :)
[Galaxy S Plus I9001 Android Development] oisis:
Need full logcat from my experiment. Can anyone post, please? Thanks.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Tried, I used the attached CM9_camtest.zip and put files from Camtest8.zip so it overwrites libui.so and libcamera_client.so. is that the proper procedure?

heres the logcat
[Galaxy S Plus I9001 Android Development] oisis:
You have to use Arco files from camtest8 rest from stock i9001 ROM.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
yes I think the files included in CM9_camtest.zip is from stock i9001 GB ROM as the uploader says, then I add the libcamera_client.so and libui.so into that zip. plus camera.msm7x30.so in /system/lib/hw.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I manage to Bootup with Oisis Experiment but I did not include libcameraservice.so because it was causing it to loop based on my logcat above.

I Cant open my stock cam, I get either "Cannot Connect to the Camera" or "Unfortunately the camera has stopped"

here's the logcat.

logcat:

http://www.mediafire.com/?2sicb2p5xxz7q77

Here is with 3rd party app. I only use Pudding Camera, I didn't get a preview and didn't get a shot.

http://www.mediafire.com/?465t6s738y6b16c
[Galaxy S Plus I9001 Android Development] kingdavidd:
You should try using this app. https://play.google.com/store/apps/...xLDEsImpwLm1hcnVmdS5hbmRyb2lkLnRveWNhbWVyYSJd
[Galaxy S Plus I9001 Android Development] Xistance:
Dude, did you even test that app yourself? I did and well...the preview worked sure but that was the only thing that worked. Phone didn't respond to anything I did but the preview worked perfectly. After a while everything started FC'ing and it got back to normal. Well, even if it did work perfectly the app sucks anyway.
[Galaxy S Plus I9001 Android Development] kingdavidd:
Yes I tried the app my self and it works for me but pudding camera doesn't. My bad for making a suggestion.
[Galaxy S Plus I9001 Android Development] Xistance:
No, I didn't say it was a bad thing that you suggested it. On the contrary, suggest a lot more. I just simply said that it worked but made my phone unresponsive. Sorry if you took it the wrong way.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Thanks for the suggestion, but I am testing for oisis new experiment where most lbs came from stock GB maybe thats why i cant make it work. But when im using the cam_experiment on first post i dont have issues on any 3rd party cam app. Excpt for video ang fc's on front cam.
[Galaxy S Plus I9001 Android Development] kingdavidd:
Well I am using a different phone and using a fix acro put together and it allows my phone to use silent cam(but very very buggy) and the stock camera app from htc desire s runs but you cant take a picture and it tends to force close alot.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Ok same result if we use the cam_experiment. But we can use panorama in stock and desire cam. Maybe that also works in your phone.
[Galaxy S Plus I9001 Android Development] kingdavidd:
Yea it does.
[Galaxy S Plus I9001 Android Development] oisis:
Could somebody swap this lib from Italian guy or stock ROM and test:

libs3cjpeg.so

This lib is related with camera.

Our could somebody upload this lib from Italian guy system. Don't have laptop now.

Logcat will be nice :).
[Galaxy S Plus I9001 Android Development] shubham412302:
Is any third party camera app working perfectly....
[Galaxy S Plus I9001 Android Development] texten:
italian guy libs3cjpeg.so:
[Galaxy S Plus I9001 Android Development] oisis:
Logs now looks better or i am blind :). Could somebody compare old logs without libs3cjpeg.so and with this lib?
[Galaxy S Plus I9001 Android Development] sparta20:
This is a logcat with libs3cjpeg.so taken from stock rom
[Galaxy S Plus I9001 Android Development] oisis:
Thanks for logcat, really looks better. This is most interesting thing in log, we have to remove this and Camera log will looks almost ok:

E/CAM_FD ( 140): cam_conf: In config thread

A lot of errors related with Audio so maybe next step will be do something with audio libs?
[Galaxy S Plus I9001 Android Development] androabot:
The libs3cjpeg.so taken from stock rom is identical to the libs3cjpeg.so from arco´s rom

I compared it with Hex workshop
[Galaxy S Plus I9001 Android Development] oisis:
So maybe we can try one from CM7 if it is different.
[Galaxy S Plus I9001 Android Development] androabot:
Is the same also
[Galaxy S Plus I9001 Android Development] oisis:
So now i think that audio is the most important. We should focus on that. There is a lot errors in logcat related with audio. Audio is related with camera(audio needed for video recording).
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
could somebody confirm this:

fresh install cm9

install camera_experimental-0.1

fix permissions.

get "Zoom Camera" from market

Video and photo working!?
[Galaxy S Plus I9001 Android Development] Iced-Earth:
Tested it not on fresh install, but taking a picture works. Video recording gives green doubled video.

Sry for bad quality..

Edit: took another picture.

After choosing highest quality, the app slows down and I had to close it. Unfortunately I lost the background image and my statusbar ^^ while writing this, the statusbar came back again..

Do I need to install a log app or is one already installed?

Best regards, Markus

I'll go to bed now-a little bit tired :D

Btw. Here's a Screenshot of batterylife...

Gesendet von meinem GT-I9001 mit Tapatalk 2
[Galaxy S Plus I9001 Android Development] shubham412302:
front camera works but is shown upside down.....

plz fix
[Galaxy S Plus I9001 Android Development] :
I have reinstalled all CM9 alpha 3 and then wipes and camera zip...

i can make pictures with the camera but frontal doesn`t work for me in any case.

thanks!
[Galaxy S Plus I9001 Android Development] texten:
i make right now new tests.

i have compared gb with cm9 and i can see, there are some codec/decodec libs missing...

for example files like this: libOmx*.lib

what can i also do? which files should i try? audio libs?

edit: we need similiar files like these (the files from gb are not useable):

lib/libOMX.TI.720P.Decoder.so	lib/libOMX.TI.G711.decode.so	lib/libOMX.TI.G726.encode.so	lib/libOMX.TI.JPEG.encoder.so	lib/libOMX.TI.WMA.decode.so
lib/libOMX.TI.AAC.decode.so	lib/libOMX.TI.G711.encode.so	lib/libOMX.TI.G729.decode.so	lib/libOMX.TI.MP3.decode.so	lib/libOMX_Core.so
lib/libOMX.TI.AAC.encode.so	lib/libOMX.TI.G722.decode.so	lib/libOMX.TI.G729.encode.so	lib/libOMX.TI.Video.Decoder.so
lib/libOMX.TI.AMR.decode.so	lib/libOMX.TI.G722.encode.so	lib/libOMX.TI.ILBC.decode.so	lib/libOMX.TI.WBAMR.decode.so
[Galaxy S Plus I9001 Android Development] oisis:
Maybe we can find them in some stock ROM or italian guy?
[Galaxy S Plus I9001 Android Development] texten:
i was looking at this,too. there are no similar files. i was looking in some other ics roms with working camera, there you can find similar libs...

maybe we should look into one of these ics roms

- Sony xperia mini,mini pro, neo etc - camera works

- My touch 4g - camera works

- Xperia play - camera works

- Htc desire s - camera works

- Huawei honor - official ICS

- Htc one V - no front camera but official ICS

- http://xdaforums.com/showthread.php?t=1639634
[Galaxy S Plus I9001 Android Development] :
I think following lines are the causer for high battery drain. Camera and/or sensors do not close proper!

[COLOR="Red"]I/CameraHAL( 2230): camera_device_close--- ret 0[/COLOR]
W/dalvikvm( 2328): threadid=11: thread exiting with uncaught exception (group=0x40a3f1f8)
E/AndroidRuntime( 2328): FATAL EXCEPTION: Thread-172
E/AndroidRuntime( 2328): java.lang.RuntimeException: startPreview failed
E/AndroidRuntime( 2328):	at com.android.camera.Camera.startPreview(Camera.java:2031)
E/AndroidRuntime( 2328):	at com.android.camera.Camera.access$3400(Camera.java:86)
E/AndroidRuntime( 2328):	at com.android.camera.Camera$5.run(Camera.java:1157)
E/AndroidRuntime( 2328):	at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime( 2328): Caused by: java.lang.RuntimeException: startPreview failed
E/AndroidRuntime( 2328):	at android.hardware.Camera.startPreview(Native Method)
E/AndroidRuntime( 2328):	at com.android.camera.Camera.startPreview(Camera.java:2028)
E/AndroidRuntime( 2328):	... 3 more
[COLOR="Red"]W/AudioFlinger( 2230): session id 6 not found for pid 2230
W/AudioFlinger( 2230): session id 7 not found for pid 2230[/COLOR]
W/ActivityManager( 608): Force finishing activity com.android.camera/.Camera
[Galaxy S Plus I9001 Android Development] texten:
yes, so we need the libs (audio/video decode/encode) i have mentioned

edit:

first i will look into this rom (i am downloading)

myTouch 4G Android Development >

[ROM][VANILLA AOSP]Awesome Ics v3.6 With A Dirty Shot Of Awesomeness 5.27.12

maybe one other user can look at the next ics rom with working cam
[Galaxy S Plus I9001 Android Development] oisis:
Maybe you can try with my kernel and check this senssors. I added there few extra senssors configs missing in Arco kernel.
[Galaxy S Plus I9001 Android Development] :
No such libs in I9000 CM9 NIGHTLY.

Contains (for example)

libOMX.SEC.AVC.Decoder.aries.so
libOMX.SEC.AVC.Encoder.aries.so
libOMX.SEC.M4V.Decoder.aries.so
libOMX.SEC.M4V.Encoder.aries.so
libOMX.SEC_OMX_Core.aries.so
libstagefright_soft_aacdec.so
libstagefright_soft_armdec.so
libstagefright_soft_g11dec.so
libstagefright_soft_mp3dec.so
libstagefright_soft_mpeg4dec.so
libstagefright_soft_vorbisdec.so
libstagefright_soft_vpxdec.so
[Galaxy S Plus I9001 Android Development] texten:
where can i find this kernel?

i found also, the libstagefright*.lib's in gb have another filesize like these in cm9.. i will replace them and try it now. (these are also codec/encodec files)

---------- Post added at 10:14 PM ---------- Previous post was at 10:13 PM ----------

first we should try with some other stagefright*.lib files, maybe there is no need for libomx*.lib files i have mentioned.
[Galaxy S Plus I9001 Android Development] oisis:
You can find them here:

kernel-1

kernel-2

WiFi is not working with this kernels so only for tests.