yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] texten:
we should definitly look on the libstagefright*.lib files...

i was searching in google and found many changelogs for cm9 with "stagefright" for camera changes

edit: i will only add some missing files compared to gb
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
Finally I am back:o I have broken my middlefinger (dont ask how:D)

So I couldnt develop..sorry about that! Now lets finish this and have a awesome phone!! I am maybe have found help for the audio files, but more tomorrow:beer:
[Galaxy S Plus I9001 Android Development] texten:
ok guys, i made my first picture with working backcamera :)

camera apk didnt give fc's so far. still testing :p :o

i have added many many many files from kqb

i also found something about fm radio, i need a radio.apk for cm9 to test

also i have found something for tv out and usb tethering and face recognation

need some time to test this all

edit: when i am done with adding files, i will test also with your kernels oisis

and make logcat for all 3kernel.

edit: camera button is working

back camera is working

settings are working

autofocus is working

timer is working

but the picture will not save so far..

also i will try to have zoom.

edit: thirdpart apps are running without trouble

btw: here is the gingerbread taskmanger for ics (will need to add more language values from gb, atm only english and german)

place it into /system/app, set permissions, reboot
[Galaxy S Plus I9001 Android Development] texten:
ok here are some logcats, always the same steps

(have included

ALL

missing files and build.prop entrys for media streaming from xxKQB)

kernel, factory reset, wipe cache, wipe dalvik, fix permissions, shutdown, boot, start camera.apk, choose options, switch to vga media profile, press camera button, press home button, press power button > make logcat

(without simcard and gapps)

logcat01.txt with arcos kernel

logcat02.txt with oisis kernel 01

logcat03.txt with oisis kernel 02

backcamera was always visible while/after switching the media profile in settings of camera.apk, but picture or videos are not saved on sdcard. camera stops and freezes screen on it

many new output in the logcat :)

btw: i have added these lines to arcos build.prop

# system props for the MM modules
#
media.stagefright.enable-player=true
media.stagefright.enable-meta=false
media.stagefright.enable-scan=false
media.stagefright.enable-http=true

next step, i will try some other camera.apk form other ics roms

because these errors in logcat:

W/PackageManager( 289): Package com.android.camera desires unavailable shared library [COLOR="Red"]com.google.android.media.effects[/COLOR]; ignoring!
E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 10, param1 0 param2 0)E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 34, param1 0 param2 0)
E/QualcommCameraHardware( 141): #########################################SCENE_MODE : 0
E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 46, param1 0 param2 0)E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 5, param1 0 param2 0)

maybe there is a extra apk for effects or a extra framework in official cm9?

i saw in many ics roms, there isn't camera effects working and they used modified camera without effect settings.
[Galaxy S Plus I9001 Android Development] texten:
because these errors, i have added some libs for this, but i thinkwe need some similar:

E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 46, param1 0 param2 0)

E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 25, param1 90 param2 0)

E/QualcommCameraHardware( 141): native_set_ext_config E (cmd 5, param1 0 param2 0)

files i have added for this issue in /system/lib

-libnative_resize.so

-libnativeEffect.so

-libnativeEraser.so

-libnativeUtils.so

from kqb stock.

maybe we should looking for some similar libnative*.lib's

the only error outputs are from "native configurations" and from "effects" and i guess there are no media informations, "metadata", for videorecording

edit: arco68 was looking here :p he is working on github .. i'm curious :o

edit: here is a video saved and taken with stock camera.apk cm9 by arco, nothing to see, it will not open, but maybe someone can read the metadata, if there is something missing:
[Galaxy S Plus I9001 Android Development] :
Grear work, texten!

About the camera.apk. I think we have to look for a working CM9 app, cause when we take one from stock ICS, the whole "branded framework crap" is compiled in there, which may cause a couple of problems too, just as not saving pictures. Maybe cause of wrong paths?

Another hint, when you take a look into the lib files, nearly at the end there is a section, which shows other libs which are called. Maybe a way to find a couple of missing files.

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
i have added ALL files from kqb which are not included in cm9 :D

i compared folder by folder.. i have now a kqb cm9 rom ;)

arco has already something done... i guess he was looking into my logcats..

just take a look into github ;)
[Galaxy S Plus I9001 Android Development] :
Looks like there will be a alpha 4 in near future.

For your taken video, i will check it when i'm in office, there i have a the right software for this stuff.

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
i think so,too. arco added some of the missing "effects" i have mentioned
[Galaxy S Plus I9001 Android Development] texten:
here is another logcat (using camera.apk and arco kernel) while changing the settings from 5mp to vga for taking pictures... and at second try while changing the settings for "lighting" in videorecording ...

when i open the camera.apk, there is nothing to see, but while i change the settings, the cam is visible and show me the changes directly on screen but when i click on the shutter, the app freezes....

switching to frontcamera was ending with "unfortunately camera was terminated"...

new errors and much more output
[Galaxy S Plus I9001 Android Development] oisis:
Texten, could you make zip with missing libs, i can create installable pkg. I'm going back to camera development, last few days focused on AOKP.

Well done texten!
[Galaxy S Plus I9001 Android Development] texten:
i would, but there is a need to remove 100% unneeded files. i have all files seperatly, sure i can make a zip. but these are ALL files from kqb which are not included in cm9 ;) i think half of them are not needed.
[Galaxy S Plus I9001 Android Development] oisis:
Ok, i will check strings in libs and try to figure out what is related with single lib. If you want to do it by yourself use linux command: strings ./lib_name.so.
[Galaxy S Plus I9001 Android Development] texten:
i am uploading everythin what i have added, right now.

i am no coder, i am just a tester, so i guess it will be the work for one with more skills ;)

Edit: download (zippyshare) - all_kqb_files_missed_in_cm9.rar

melfas_keytouch.kl is not included ;)
[Galaxy S Plus I9001 Android Development] shubham412302:
the camera is working every time for me but not able to save images....

as the app hangs up
[Galaxy S Plus I9001 Android Development] texten:
i found these files right now in the system of italian guy...

will try it..

edit: they are already included, but have another filesize as these from italian guy
[Galaxy S Plus I9001 Android Development] siet567:
How do i have to copy the missing files? :p
[Galaxy S Plus I9001 Android Development] texten:
have replaced the stock adreno with these of italian guy, and i think the ui is much smoother and better graphic resolution..

while i have replaced them i got some issues with rotating popups, so i think these are some needfull graphic drivers or something similar.
[Galaxy S Plus I9001 Android Development] oisis:
Could somebody post full logcat with new libs from booting. I would like to check what is going on there :).
[Galaxy S Plus I9001 Android Development] texten:
here is one, played around with the camera settings:

cm9 + kqb + new adreno

for errors like these:

E/QualcommCameraHardware( 835): native_set_ext_config E (cmd 50, param1 0 param2 0)

E/QualcommCameraHardware( 835): native_set_ext_config E (cmd 50, param1 0 param2 0)

E/QualcommCameraHardware( 835): native_set_ext_config E (cmd 50, param1 0 param2 0)

arco has added something to github
[Galaxy S Plus I9001 Android Development] oisis:
I think that is time to compare two files form Arco CM9 and Stock/Italian guy roms, this files is:

media_profiles.xml
build.prop

Should look for camera settings in media_profiles.xml and some camera/video/audio rows in build props. There is something missing or have wrong values.
[Galaxy S Plus I9001 Android Development] oisis:
I think this is interesting for us:

#
# system props for the MM modules
#
media.stagefright.enable-player=true
media.stagefright.enable-meta=false
media.stagefright.enable-scan=false
media.stagefright.enable-http=true

MM - MultiMedia ?

And form media_profiles.xml there are sections with settings for camera and video.

And this maybe:

/system/etc/permissions/android.hardware.camera.flash-autofocus.xml
/system/etc/permissions/android.hardware.camera.front.xml
[Galaxy S Plus I9001 Android Development] texten:
all three media_profiles are different.

so i will try with everyone step by step

/system/etc/permissions/

are also different

cm9/italian guy

android.hardware.camera.flash-autofocus.xml :

<!-- This is the standard set of features for a camera with a flash. Note
that this currently requires having auto-focus as well. -->
<permissions>
<feature name="android.hardware.camera" />
<feature name="android.hardware.camera.autofocus" />
<feature name="android.hardware.camera.flash" />
</permissions>

kqb

android.hardware.camera.autofocus.xml :

<!-- This is the standard set of features for an auto-focus camera. -->
<permissions>
<feature name="android.hardware.camera" />
<feature name="android.hardware.camera.autofocus" />
</permissions>

we don't have flash...

so we need the file of kqb

remove android.hardware.camera.flash-autofocus.xml in cm9

add android.hardware.camera.autofocus.xml from kqb
[Galaxy S Plus I9001 Android Development] oisis:
Maybe try stock one and add missing rows from CM9 and italian one. Thanks.
[Galaxy S Plus I9001 Android Development] oisis:
Yes, i have seen your last update.

So with /system/etc/permissions/ should be ok for now. I think is correct, and yes we don't have flash lights in our camera so don't need rows related to that.

Next thing is media_profiles.xml, so we should use this file(also Camera.apk) from the same rom that we have libs because libs/apk needs configurations. Correct me if I'm wrong.
[Galaxy S Plus I9001 Android Development] medwe27:
What do you mean under camera button?

Btw great work, so on!
[Galaxy S Plus I9001 Android Development] texten:
the shutter of stock camera.apk gives a feedback in our new version
[Galaxy S Plus I9001 Android Development] :
As I9000 has the same camera device (hardware), the supported settings should be the same.

https://github.com/Onecosmic/Android-4.0.3-device-files

Here are device files for research, i think the settings should be fine for copy.
[Galaxy S Plus I9001 Android Development] texten:
this one looks like a creation of all our three files :D

looks good

i will try with this media_profile

and the

android.hardware.camera.autofocus.xml

of kqb
[Galaxy S Plus I9001 Android Development] oisis:
Remember about full logcat :).

EDIT1:

Do we have files:

/system/framework/seccamera.jar

if not just add them if we hawe maybe you can try swap, reboot recovery, wipe cache and dalvik cache and then test and logcat :).

EDIT2:

Could you post your super media_profile.xml file :D? Thanks.
[Galaxy S Plus I9001 Android Development] texten:
yes yes yes. thats a good media_profile. i have a new option on the videosettings.. "hd" and "SD"

first time videocamera is visible

lol, we need arcos new work on github as soon as possible
[Galaxy S Plus I9001 Android Development] texten:
HELL YEAH, i can make VIDEOS WITH AUDIO

:cool: FTW! :eek:
​
[Galaxy S Plus I9001 Android Development] EminSG:
AWESOME!!!! What did you used?? And which camera apk did you used?
[Galaxy S Plus I9001 Android Development] plictisit17:
so basically , camera is fully working on our device ?
[Galaxy S Plus I9001 Android Development] oisis:
Cleaned up files attached before, checking libs still because a lot of them.
[Galaxy S Plus I9001 Android Development] texten:
no, we need the new built from arco...

camera is still unstable, but will do something more now ;)

here is the logcat (working video recording on "sd" quality):
[Galaxy S Plus I9001 Android Development] :
Could you share your config please, i think it will be easier for Arco to include it in his work.
[Galaxy S Plus I9001 Android Development] texten:
we are working on it (oisis is cleaning up the files and i will try then)

phone is getting very hot while videorecording

audio is mono
[Galaxy S Plus I9001 Android Development] oisis:
Need around 1-2 hours for that because need to check libs "inside" and there is a lot of them.

I'm going to live only related with camera. You can try last package that i attached.
[Galaxy S Plus I9001 Android Development] plictisit17:
well awesome job thus far , our ics is getting close to perfect
[Galaxy S Plus I9001 Android Development] texten:
videorecording with audio on frontcamera is also working

but rotating screen :D 180°

you can use recorded video with mp3 for the movie studio app, it works.

video playback in gallery and file manager is also working
[Galaxy S Plus I9001 Android Development] texten:
yes i have still all files included, i have uploaded to clean. only removed the

android.hardware.camera.flash-autofocus.xml

and added the android.hardware.camera.autofocus.xml

from kqb

and replaced the adreno files with these of italian guy

and replaced media_profile with this one:

edit: i will make a backup now and then i try to improve
[Galaxy S Plus I9001 Android Development] annqx:
24/7 awake texten? ;)
[Galaxy S Plus I9001 Android Development] oisis:
WTF? In Samsung they are using Windows for Android compilation:

"C:\\DOCUME~1\\pxiao\\LOCALS~1\\Temp\\0240810:$C$L19:1:1291704329
dec_errMB.c
_check_mv
_check_mv
_InterpolateQpel
_check_mv
_check_mv
_check_mv
_InterpolateQpel
_InterpolateQpel
_InterpolateQpel
_InterpolateQpel
_ClearBlock
Dec1
odeInterMB_DP
_DecodeInterMB_DP
dec_errMB.c
dec_errMB.c
TpDec
_pDec
[Galaxy S Plus I9001 Android Development] texten:
only for today, because i really wanted that the camera works ..

did not want to be defeated by it :o
[Galaxy S Plus I9001 Android Development] oisis:
Attached first part of libs, libs only related with camera/video/pictures. There is a lot of them so will take more time :(.
[Galaxy S Plus I9001 Android Development] texten:
no reason for panic..

i will look while this for some better libs ;)

you can replace/add new adreno libs, i have tested:

http://xdaforums.com/showthread.php?t=1638889

download: http://xdaforums.com/attachment.php?attachmentid=1036468&d=1335962517

i am looking on your uploaded files, too.. just to be sure, doublecheck :)

arco should eventually find out what files he needs then

btw: hd is not working (app freezes), so i think we have to look for another medie_profiles.xml or for the missed codec's
[Galaxy S Plus I9001 Android Development] oisis:
Could you put all libs and files which you swaped to zip and post here, and make changlog what is working and what not? Thanks.
[Galaxy S Plus I9001 Android Development] texten:
i am waiting for the rest of the libs you want to clean up, then i will look over all the files and make a nicy nice changelog ;)

@arco68 these files are for samsung devices, we need all of them: https://github.com/Onecosmic/Android-4.0.3-device-files/tree/master/sec_mm

i got only added these files so far:

media_profiles.xml

libOMX.SEC.AVC.Decoder.so
libOMX.SEC.AVC.Encoder.so
libOMX.SEC.M4V.Decoder.so
libOMX.SEC.M4V.Encoder.so
[Galaxy S Plus I9001 Android Development] oisis:
Secound part: libs2.

I'm checking functions name, libs relations and if i will find something related to audio/camera/video i am living lib if not deleting.

EDIT1:

Added last part of libs. Hope that removed a lot of rubbish.
[Galaxy S Plus I9001 Android Development] oisis:
Libs and others uploaded.
[Galaxy S Plus I9001 Android Development] genericmann:
Yes, can someone make a flashable CWM zip please? Thank you in advance ;)
[Galaxy S Plus I9001 Android Development] oisis:
Ok, i will do it, give me 10 minutes :).

Texten can you post what is working and what not? Thanks.
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
batterydrain solved, because of audio libs?
[Galaxy S Plus I9001 Android Development] oisis:
Uploaded: camera_experimental-0.2.zip. Could somebody check to install this? Thanks.
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
works on aokp, too?
[Galaxy S Plus I9001 Android Development] oisis:
Don't know for now, didn't have time for tests. Always you can try :).
[Galaxy S Plus I9001 Android Development] han-yunzhong:
I can not download, open the link failure.
[Galaxy S Plus I9001 Android Development] AlessandroXCV:
A my friend tested it and said me that don't work :(
[Galaxy S Plus I9001 Android Development] saperkus:
Phone hangs at "Samsung GALAXY S Plus" logo, after installing this file... Catlog shows only:

I/Netd ( (685): : Netd 1.0 starting
[Galaxy S Plus I9001 Android Development] texten:
i will test it. please wait
[Galaxy S Plus I9001 Android Development] perilousx:
Installed it and now i'm stuck at the samsung galaxy logo.

Going to revert to a back up now.
[Galaxy S Plus I9001 Android Development] oisis:
So maybe we will have to add libs one by one and check logcat just like before. Now we know which libs and files are missing. Rest will be in logcat.
[Galaxy S Plus I9001 Android Development] texten:
no, i think i know whats wrong, just dont download the zip. i wil fix it

edit: if everything will not help, i restore my kqb/cm9 backup and delete all unneded files step by step ;)
[Galaxy S Plus I9001 Android Development] oscarmalo:
+10000 installed it and now i'm stuck at the samsung galaxy logo... heeelp! :S
[Galaxy S Plus I9001 Android Development] texten:
ok, i think we should publish the version where are all kqb files included, what do you think, oisis?

then we could remove them step by step without rush

and hopefuly with arcos help

user should make a backup before installing and using these files only for tests, after that they need to restore the backup
[Galaxy S Plus I9001 Android Development] oisis:
I need to tell you guys what to add and do notes with steps. Give me 1-2 hours for rest and we can start :).
[Galaxy S Plus I9001 Android Development] texten:
then wait, i will upload the full pack /with the new libs i have added
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
Thank you guys for doing such awesome work!
[Galaxy S Plus I9001 Android Development] texten:
try to make it flashable for your tests, if these files are working, then you can start to remove ;) thank you

cm9_kqb.rar (only for dev)

if not, i will upload my nandroid backup

just let us write via pm
[Galaxy S Plus I9001 Android Development] Tomajdon:
One of my friends have a galaxy gio, and in that topic they managed to get a preview and some kind of camera fix. Here is the topic, maybe it canbe helpfull for you.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Before when i tried oisis experiment i got stuck on samsung logo when using libcameraclient.so from GB rom. When I switched it whin the one from cm9 i got it to boot
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
for me no stuck at logo, boot ok work ok panoramic and 5 second video after fc reboot and no work thanks
[Galaxy S Plus I9001 Android Development] texten:
there is not the latest version out there, just wait before flashing anything of this thread.

we will link to the new download today.
[Galaxy S Plus I9001 Android Development] Tomajdon:
Waiting ;)
[Galaxy S Plus I9001 Android Development] texten:
-

ok, post is up to date now:

http://xdaforums.com/showpost.php?p=26800123&postcount=692

please read carefully and make some tests.

upload logcat if you can, thanks.
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
why i can only teste? and no use today? is dangereus for my sgs+ ? thanks for reply

---------- Post added at 09:04 PM ---------- Previous post was at 09:02 PM ----------

i have boot, camera work first time only in panoramic but no save, video work and no work, and after fc. thanks i wait for update
[Galaxy S Plus I9001 Android Development] oisis:
Now for tests because more things not working rather than working. This thread is for developers only.
[Galaxy S Plus I9001 Android Development] texten:
i have added a guide. please follow the steps for using camera
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
i have follow the step..i use kqe and not kqb is a problem this? thanks for reply
[Galaxy S Plus I9001 Android Development] texten:
you need cm9 and arcos recovery

the camera on kqe needs no fix ;)
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
i must install kqb stock and after cm9? sorry for my question and thanks for reply bye
[Galaxy S Plus I9001 Android Development] oisis:
No, you don't have to. Important is to use Arco CWM recovery.
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
yes i use cm9 arco recovery, only whit this is possible install cm9 whit feamrecovery there is error thanks
[Galaxy S Plus I9001 Android Development] oisis:
Just created camera-experimental-0.3.zip. Could you test it and post logcat? Thanks.

Changelog:

- Added:

/system/etc/permissions/seccamera.xml
/system/framework/sec_feature.jar
/system/framework/seccamera.jar
/system/framework/sechardware.jar

I think we need them :).

EDIT1

Always use last Arco CM9 pkg and last camera_experimental pkg(all previous patches are included to lastone).

Wanted logcat
[Galaxy S Plus I9001 Android Development] texten:
all new files from kqb?

then we need these,too: :p

/system/etc/permissions/sec_feature.xml
/system/etc/permissions/sec_hardware_library.xml

edit: and the libs for seccam
[Galaxy S Plus I9001 Android Development] uberto.costanzo:
i hope is good bye
[Galaxy S Plus I9001 Android Development] texten:
is good. we need more codecs, maybe these from kqb or we should look for more from 4.0.3

also audiolibs are needed, here kqb:

edit: audiolibs are not needed now, the errors came from hardware
[Galaxy S Plus I9001 Android Development] oisis:
Try to find codecs from ICS rom, i will check logcat.
[Galaxy S Plus I9001 Android Development] texten:
try this from ics, its an addition to the files we have added in experimental2

we have forgotten.
[Galaxy S Plus I9001 Android Development] oisis:
Yes, you right, camera_experimental-0.4.zip released.

Changelog:

- added:

/system/etc/permissions/sec_feature.xml
/system/etc/permissions/sec_hardware_library.xml

Wanted logcat :).