yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] texten:
here with working videorecording and audio, after that i switched to frontcam, app freezes

edit: this is interessting, it seems it is the reason, why hd is not working

E/MediaProfilesJNI( 784): native_has_camcorder_profile: 1 5

E/MediaProfiles( 784): Guru : quality = 5, index = -1

E/MediaProfilesJNI( 784): native_get_camcorder_profile: 1 1

E/MediaProfiles( 784): getCamcorderProfileParamByName: duration for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: file.format for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: vid.codec for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: vid.bps for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: vid.fps for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: vid.width for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: vid.height for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: aud.codec for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: aud.bps for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: aud.hz for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

E/MediaProfiles( 784): getCamcorderProfileParamByName: aud.ch for camera 1, quality 1

E/MediaProfiles( 784): Guru : quality = 1, index = 15

edit:

for these errors, i was looking for the missing codecs

E/OMXCodec( 141): Attempting to allocate OMX node 'OMX.google.h264.decoder'

E/OMXCodec( 141): Successfully allocated OMX node 'OMX.google.h264.decoder'

I/OMXCodec( 141): [OMX.google.h264.decoder] Non-Interlaced format detected

I/OMXCodec( 141): [OMX.google.h264.decoder] AVC profile = 66 (Baseline), level = 30

E/OMXCodec( 141): [OMX.google.h264.decoder] Video O/P format.eColorFormat 0x4263b9e8

we will definitly need these libs from kqb:

please let us make a new full changelog with all included files in experimental zip

and always add to the changelog.. so if arco is looking in some days he knows at the frist view, whats going on ;)
[Galaxy S Plus I9001 Android Development] oisis:
Last update today, need to get some sleep. camera_experimental-0.5.zip

Changelog:

- Added libs to: /system/libs:

libaomx_aacdec_sharedlibrary.so
libaomx_ac3dec_sharedlibrary.so
libaomx_divx3dec_sharedlibrary.so
libaomx_flacdec_sharedlibrary.so
libaomx_h264dec_sharedlibrary.so
libaomx_mp3dec_sharedlibrary.so
libaomx_mpeg4dec_sharedlibrary.so
libaomx_radec_sharedlibrary.so
libaomx_rvdec_sharedlibrary.so
libaomx_s263dec_sharedlibrary.so
libaomx_wmvdec_sharedlibrary.so
libqcomm_omx.so
libs263domxoc.so
libs263eomxoc.so
libs264domxoc.so
libs264eomxoc.so
libsaacdomxoc.so
libsaaceomxoc.so
libsac3domxoc.so
libsamrdomxoc.so
libsamreomxoc.so
libsdiv3domxoc.so
libsflacdomxoc.so
libsmp3domxoc.so
libsmp4vdomxoc.so
libsvc1domxoc.so
libswmadomxoc.so
libswmv7domxoc.so
libswmv8domxoc.so
libseccamera.so
libseccameraadaptor.so

Added some video codecs and libs for front camera.

Waiting for fast logcat :).
[Galaxy S Plus I9001 Android Development] texten:
ok i will install it and make logcat. later i will make a full changelog and we should in future only add to this...
[Galaxy S Plus I9001 Android Development] projeto56:
I know no one said it would, but I tested on AOKP and it doesn't work.

Com.android.phone keeps force closing, and I can't do anything.

I'm on college right now. So I don't have a logcat.
[Galaxy S Plus I9001 Android Development] texten:
you didnt include the codecs i have attached above..

here logcat with exp5 and videorecording on frontcam
[Galaxy S Plus I9001 Android Development] oisis:
Log looks better now. We need:

1. some of missing codecs - not so important for now

2. Libs for sensors - i have seen libs but not remember names now

Sensors error:

native_set_ext_config E

3. Maybe some audio codecs

Ok, it is late, i have to wake up at the morning so good night :)
[Galaxy S Plus I9001 Android Development] texten:
good night, i will sort all files and make a clear changelog :)
[Galaxy S Plus I9001 Android Development] michhh:
so camera is fully work now?

what is,the last experimental fix?

edit thankyou for your great job
[Galaxy S Plus I9001 Android Development] :
Will try to find a fitting codec for this. I'll report back...

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] oisis:
Could you try with media-profiles.xml from stock rom? Remember to wipe cache and dalvik after copy file to etc. Thanks.
[Galaxy S Plus I9001 Android Development] :
OK, don´t know exactly, but i think the link to OMX.google.h264.decoder is wrong.

I´m not sure to 100%, but i think it dependes on a wrong line in /system/framework/base/media/libstagefright/OMXCodec.cpp.

If there would be a change to OMX.qcom.h264.decoder, or OMX.qcom.7x30.video.decoder (OMX.qcom.7x30.audio.decoder), it should be fine.

Still, our base problem are CyanogenMod Stock files, that weren´t adapted to our device properly, in case cause nobody knew how the changes have to look like.

This is caused by the fact, that this ROM is compiled from source, so all drivers, libs and firmwares are coming from Google source. Sure, a big part of them is allready adapted, otherwise we wouldn´t have a booting, and nearly perfect working ROM.

I´m at work now, so i can not go deeper in sources now, but if anybody is able to post the content of OMXCodec.cpp, we will (maybe, hope so) make a big step forward.

BIG THX to texten and Oisis for their work last night.

Buddys, hit the "Thanks-Button" as hard as you can for them!

Edit: Also we have to take a look at package com.android.camera (JAVA file i think), causing a few errors.
[Galaxy S Plus I9001 Android Development] oisis:
I can take care of this but at Saturday or Sunday. Busy :(.
[Galaxy S Plus I9001 Android Development] lagloose:
Hey folks,

need a little help from you people please.

We're just trying to get the camera working for Galaxy Ace. Tried a lot of things but no success yet...

Ok, when i boot up i get the following entries in logcat:

I/CameraService( 1856): CameraService started (pid=1856)

E/CameraHAL( 1856): CameraHAL_GetNum_Cameras:

D/CameraHAL( 1856): CameraHAL_GetNum_Cameras: loading libcamera at 0xb000e8a8

D/CameraHAL( 1856): CameraHAL_GetNum_Cameras: numCameras:1

and when i start camera i get the following:

I/ActivityManager( 325): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera} from pid 968

D/memalloc( 325): /dev/pmem: Allocated buffer base:0x4a2f4000 size:614400 offset:4177920 fd:263

V/CameraHolder( 1775): open camera 0

D/CameraHAL( 1856): CameraHAL_GetNum_Cameras: loading libcamera at 0xb000e8a8

I/CameraService( 1856): Opening camera 0

D/CameraHAL( 1856): qcamera_device_open: name:0 device:0x13ab4 cameraId:0

D/CameraHAL( 1856): loading libcamera at 0xb000e8a8

V/QualcommCameraHardware( 1856): openCameraHardware: call createInstance

D/QualcommCameraHardware( 1856): createInstance: E

V/QualcommCameraHardware( 1856): Storing the current target type as 0

V/QualcommCameraHardware( 1856): constructor EX

V/QualcommCameraHardware( 1856): startCamera E

V/QualcommCameraHardware( 1856): loading liboemcamera at 0xb000ead8

V/QualcommCameraHardware( 1856): opening /dev/msm_camera/control0 fd: 15

I/QualcommCameraHardware( 1856): startCamera: camsensor name s5k4ecgx, flash 1

V/QualcommCameraHardware( 1856): startCamera X

V/QualcommCameraHardware( 1856): initDefaultParameters E

V/QualcommCameraHardware( 1856): native_set_parm: fd 15, type 1, length 32

Afterwards libc crashes.

Anyway, IMO the entries in logcat show to me that camera can be found. On the other hand i've ben told that 'It isn't loading camera, only base functionality of libraries, which is needed to boot phone with it, unfortunally nothing more.' Now what ? To clear things out, how do i have to interpret this entries in logcat ? Is camera (hardware) recognized or not ? Is it correct that camera can have the id '0' ?

Thanks, lagloose
[Galaxy S Plus I9001 Android Development] :
Can you profide a full logcat, maybe we can help you.

It´s correct, as it is a native method for counting. As Ace has no frontcam, so camera on the back is first camera, with native counting this is "device 0".

If there would be a second cam, it would be "device 1"
[Galaxy S Plus I9001 Android Development] :
Had not much time to look into that logfile, but it seems to me, that you have the libs, but the firmware files are missing, or are not the right ones.

Second issue could be a wrong definend media profile.

That´s just a quick suggest, don´t kill me. :D:D
[Galaxy S Plus I9001 Android Development] Karls0:
Please keep this thread cleane - it's about camera in i9001. If you need help with other devices just pm to oisis or texten and invite them to proper thread. If we let post here about all phones we will make nothing because of mess
[Galaxy S Plus I9001 Android Development] :
It gives me FC in android phone :/
[Galaxy S Plus I9001 Android Development] UpGado:
After Installing Camera zip #6 ,, the camera became much stable,, Camera even worked in many other apps ,,Code Scanner in AirDroid and Pepsi Football work now !!
[Galaxy S Plus I9001 Android Development] Xistance:
You are probably using AOKP. For now this is for CM9
[Galaxy S Plus I9001 Android Development] oisis:
I will try to port camera to AOKP when will be more stable.
[Galaxy S Plus I9001 Android Development] gezze:
hey guys

i looked up both apps pudding camera and standard camera and what i found it is that pudding camera has in "lib folder " another folder called "armeabi" so i guess and hope that this is important for the feature to take pictures....

can someone tell me how to copy this folder into the camera apk ? i would then test it and give u result ?!
[Galaxy S Plus I9001 Android Development] texten:
there is no need to modifiy camera.apk.

you can also copy the libs to system/lib its the same result, but we should look on it, that we only use libs from same source, like kqb or android4.03

maybe you can post the names of the libs..

i will test more later in the evening, now break
[Galaxy S Plus I9001 Android Development] gezze:
nooo!

i guess you dont understand: what i try with that idea is to change the apk itself because what we know is that we can take pictures with puddingcamera but not with normal camera apk so there must also be a difference between the apks
[Galaxy S Plus I9001 Android Development] texten:
no. you dont understand ;)

it is the same, if you place libs in a apk or directly in the system

pudding camera has the libs in its included, because it is a thirdpart app for many different devices and systems.

there is no need to include all libs from pudding camera to our system.
[Galaxy S Plus I9001 Android Development] gezze:
like i said pudding camera works with that foto stuff while normal camera doesnt and you say that there is no difference ... how shall i understand that ?!?!
[Galaxy S Plus I9001 Android Development] medwe27:
Apps and services needs libs. These libs can be in the apk or somewhere in the file system. For third-party apps its more stable to include libs in the apk. camera.apk is a system app, the libs are in the system, and there's no need to include them in the apk. So you only need to put the libs in the right place.

Sorry for off.
[Galaxy S Plus I9001 Android Development] texten:
the different is, that pudding camera has its libs included for taking pictures, and we dont have included to system the need libs so far.

we will add libs for taking pictures from kqb, if we know which files are needed.

just be patient ;)
[Galaxy S Plus I9001 Android Development] gezze:
ok i explain myself: i opened both apps in rootexplorer and both folders there show a folder called libs, the difference was that in puddingcam there was one more folder with one more lib...

btw it cant be normal for the normal camera apk that you first have to go to options and then switch back to cam before it works...
[Galaxy S Plus I9001 Android Development] texten:
it is a experimental fix, we dont have add all files which needed.

you dont want to understand and i dont want to explain everything twice.

now i will go to further tests. in fact, we don't need libs from a thirdpart app and we dont need a modified camera.apk. sorry, end of explaination.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Like you've said pudding camera has its own lib that's why taking photos work. Stock camera uses system libs. So even if you paste pudding cam libs to system libs stock cam will use local libs unless you modify camera.apk which texten said no need to do.
[Galaxy S Plus I9001 Android Development] kellermanv:
Well, with Camera Zoom FX it's working to take pictures, but it's not always loading the camera. The camera will work in 75% cases of running the app.
[Galaxy S Plus I9001 Android Development] texten:
i will try arcos new changes from git hub

need some time for reflection

for all testers latest camfix is here: http://xdaforums.com/showpost.php?p=26821949&postcount=741

edit: here is arcos latest (01.jun2012) media_profiles.xml, we should take this.
[Galaxy S Plus I9001 Android Development] oisis:
I have an idea. We need a bug tracker for this project. Access only for developers. If there is something that works then we will publish it on the xda forum. What do you think about it? I have own Redmine so I can start a project ICS-i9001-camera and ICS-sound. If someone don't know Redmine just read about it, really cool tool. There is: Wiki, SVN, bug report, forum etc. We will create a dev team and maybe few testers. Redmine will be closed for everyone else.

For now developers: me, texten, Grabber28, and we will wait for 2-3 testers with free time. Just think about my proposition. Thanks.
[Galaxy S Plus I9001 Android Development] :
Guys, little information. I just took a look at a picture which i took with front cam. Details of picture shows as device info that the picture was taken with a Epic 4G II...

Maybe a hint what's causing errors, or where the libs of italien guy come from.

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
i think a development platform will be nice,

but i also think, our thread here is realy informative for all developer on camera for other devices.

so, i dont know which is the best solution

can you make the same with latest media_profiles.xml from arco? thanks
[Galaxy S Plus I9001 Android Development] oisis:
We have quite big mess in the libs :). I propose to clean this up and take libs only form stock GB i9001 or i9001 CM7.
[Galaxy S Plus I9001 Android Development] :
Did it with 3 different media profiles, all show the same, so this information comes from a different file.

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
maybe we have to replace the libs from italian guy with one of stock kqb or android4.03
[Galaxy S Plus I9001 Android Development] oisis:
I think we should use only from stock or CM7.
[Galaxy S Plus I9001 Android Development] texten:
agree, but some codecs we have to take from android4

we will replace italian guys libs with these from kqb:
[Galaxy S Plus I9001 Android Development] :
I had the same idea. I'm not at home yet, but i think a complete format and new setup is indicated.

Don't get me wrong, you guys did a huge step in the right direction. But for me it's not fully visible which libs are on my phone for now.

As Arco did some changes in kernel, it would be great, if he could give us a little feedback, if the results of this thread will find their way into his build. And not at least, what he thinks about next step and current results.

However, i think a clean, fresh installation, and change libs from GB step by step, with protocol and many, many logs is the only way to get usable results.

I'm looking forward to a long and boring night at the opera, maybe can start tomorow, if my kids just give me a little time.

Nice evening for all those men, who not have to consume "fine arts" cause they are in a relationship.

OK, opera is about to begin, will dim my display and keep online... GGG

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
we have only italian guys libs from another device...

all other is related to sgs+ /samsung /mutlimedia

arco did many changes for camera last two days, so in the next build there will be a update for camera in base rom and kernel

edit: all my further tests will base on latest camera-eexperimental 06 ,arcos media_profiles.xml, and replaced italian guy libs

here is it:
[Galaxy S Plus I9001 Android Development] :
I saw it, and think the same. Hope the update will come soon, i'm sure it will make camera development much easier as we do not make changes in kernel.

And we will need both, software (libs, firmware, media profiles) and kernel.

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
ok, when i replace all libs from italian guy with kqb libs i will stuck on bootlogo.

i have seen there is no need to add

libmmjpeg.so

libmmipl.so

libui.so

libcamera_client.so

arcos has it already included in the build, i will try camera experimental06 without these files and with arcos media_profile

edit: we need a working liboemcamera.so for our device

i think this file is the reason for grabber's report about epic touch 4g
[Galaxy S Plus I9001 Android Development] oisis:
Maybe try libs from CM7?
[Galaxy S Plus I9001 Android Development] texten:
yes i will try every liboemcamera.so i can find.

now phone is booting.

i will test with replace file

edit: arcos media_profile is much better, video filled the whole screen in sd quality now

edit2: what i have done

removed italian guy files,

added liboemcamera.so from kqb stock

replaced media_profile.xml with arcos.

but now the camera give fc's, after replacing liboemcamera.so

will try with a factory reset

edit3: ok the problem is liboemcamera.so

i will test with some other
[Galaxy S Plus I9001 Android Development] oisis:
Could you try with this files? Start only with libomcamera.so, later on try to swap all files, and logcat :). Thanks.

EDIT1:

Maybe file media_profiles.xml is bad so use Arco one.
[Galaxy S Plus I9001 Android Development] texten:
only with this?

stock cm9, and these files?

need to replace android.hardware.camera.flash-autofocus.xml

media_profiles.xml

but the idea is good, because i have seen other ics roms, there are not so much codecs, only the codecs we have taken from android4.03
[Galaxy S Plus I9001 Android Development] oisis:
First step:

- use only libomcamera.so with your libs

Secound step:

- use all files except media_profile.xml
[Galaxy S Plus I9001 Android Development] oisis:
Could you give me a link to thread with ICS on Feacore kernel?

I finished kernel compilation 2.6.35.7 witch config from CM9 ICS(2.6.35.14) but i don't have time to test it now(have to find out how to create installable boot.zip for recovery form zImage and modules).

Maybe kernel 3.X.X have needed drivers for our device, have to check it first.

You don't have to port kernel 3.X to ICS you have to add/patch drivers(if required) for i9001 to kernel 3.X. Newes kernel have more drivers so maybe everything is there. Am i wrong?
[Galaxy S Plus I9001 Android Development] bikeaholics:
It was feamod recovery not feacore kernel.

But I think arcos recovery should be prefered
[Galaxy S Plus I9001 Android Development] :
Sorry, my fault.

Arcos kernel from 12th of April was based on 2.6.35.7

2.6.35.7-cyanogenmod arco@tuxbox #1 Thu Apr 12 08:05:05 CEST 2012

EDIT: See screenshot @ post 1009
[Galaxy S Plus I9001 Android Development] oisis:
So the question is why Arco changed the kernel to 2.6.35.14? Maybe will be good to make some test with 2.6.35.7 and try to run camera.
[Galaxy S Plus I9001 Android Development] :
Kernels where posted at site 83, 84, 85 HERE.

Sorry, i´m @work, can only do a little research, no possibility for testing or flashing.
[Galaxy S Plus I9001 Android Development] mav.erik:
If we take me a kernel i test...

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] oisis:
Arco's removed all old kernels so maybe we will have to start from the beginning.
[Galaxy S Plus I9001 Android Development] mav.erik:
i have all kernel's old from arco.. :)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] :
So, please, upload them anywhere. Is this possible?

Put them in a zip together an use maybe mediafire...
[Galaxy S Plus I9001 Android Development] oisis:
Kernels and roms if it is possible. We have to move back and try to fix camera first and then all rest things.
[Galaxy S Plus I9001 Android Development] mav.erik:
Unique problem is i don't have nothing where upload this :(

After oisis i send you via email kernek... but for rom i din't know :(

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] :
Google Drive for example? 5 GB free Webspace. Upload it, after that you only have to share the link by

PM

with OISIS.
[Galaxy S Plus I9001 Android Development] androabot:
Here is the stock kernel from XXKQ7

kernel from XXKQ7
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
Are you kidding me?????:confused:
[Galaxy S Plus I9001 Android Development] mav.erik:
Now i'm at my work... 4 pm i return home and try use google drive....

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] androabot:
Yes :D
[Galaxy S Plus I9001 Android Development] BzArEx:
I have the first release with bad kerel but I've replaced it with fixed kernel. It's 1st booting package, do You need it?
[Galaxy S Plus I9001 Android Development] :
YES, that´s it what OISIS was talking about! THX!
[Galaxy S Plus I9001 Android Development] oisis:
Yes, will be good. Now i need to find kernel 2.6.35.7 sources.
[Galaxy S Plus I9001 Android Development] BzArEx:
OK you'll find link here soon :)

First working kernel CM9 by Arco68:

http://www.mediafire.com/?i84ikavr3tzafre

First working rom CM9 by Arco68 (probably above kernel included):

http://www.mediafire.com/?03ytod9i9gwebp1
[Galaxy S Plus I9001 Android Development] texten:
ok, i will flash expi06 with removed italian guy files and your liboemcamera

after that i will replace all files with yours except media_profiles.xml
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
hi i have install your file post now(system.tar and camera apk for me camera no open thanks. i hope texten work good ciao
[Galaxy S Plus I9001 Android Development] texten:
doesnt work, first try with replacing liboemcamera stuck on boot

second try camera.apk is not visible.

i have another idea for liboemcamera. after replacing liboemcamera from expi06 with the one from kqb i saw in the logcat while open the cam, an error in libc.so.. this file was the reason for fc

i will replace this also with the one from kqb

i think we should look for needed files in kqb
[Galaxy S Plus I9001 Android Development] oisis:
I don't think so that you can swap this lib, this one is most important lib in system, you will have boot loop. But you can try :).
[Galaxy S Plus I9001 Android Development] texten:
then i will now fresh install cm9, expi06 without italian guy files, and test with some liboemcamera.so and reading logcat
[Galaxy S Plus I9001 Android Development] kingdavidd:
Hey guys my phone the Samsung Exhbit II just got updated to 2.3.6 and in the update there is a file named libcamera_ics.so what do you guys think I should do with it?