yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] oisis:
Ok, we have to compare files from GB with ICS:

/system/etc/permissions
/android.hardware.camera.flash-autofocus.xml
/system/etc/permissions
/android.hardware.camera.front.xml

They are related with camera permissions.

We have problems that is appering in logs:

E/QualcommCameraHardware( 142): Failed to get maximum zoom value...setting max zoom to zero
E/QualcommCameraHardware( 142): native_set_ext_config E (cmd 25, param1 85 param2 0)

Zoom related.

E/CAM_FD ( 142): [HCHYUN]ce147_video_config, sfd = 21
E/CAM_FD ( 142): [HCHYUN]ce147_video_config, sfd = 21
E/CAM_FD ( 142): cam_conf: In config thread

Video related.

Maybe few libs is missing, will find out soon.

EDIT1:

Needed output from GB stock rom with working camera:

adb shell ls -al /system/lib/ | grep camera

and this:

adb shell ls -al /system/lib/ | grep video

Somebody can help me? :)

EDIT2:

We need in first post list what is working and what is not working maybe :).
[Galaxy S Plus I9001 Android Development] texten:
and here it is (it looks good with the app "alogcat" .you all can use this app from google play store for making logcat. so i hope we will become more next time :D

:

http://dl.dropbox.com/u/49291099/alogcat.2012-05-24-22-28-21%2B0200.txt

thanks to Cpt. Captain (he can't post here, because he hasn't enough posts)
[Galaxy S Plus I9001 Android Development] :
Can confirm this. But after use of stock camera app it won´t start again till a reboot.

Otherwise after use of stock app and closing, pudding camera is working without problems.
[Galaxy S Plus I9001 Android Development] mobuch:
Restoring my GB backup: XXKQE - BlazR®, will post in a sec.

# ls -l /system/lib/ | grep camera
ls -l /system/lib/ | grep camera
-rw-r--r-- root root 2156747 2008-08-01 14:00 libarccamera.so
-rw-r--r-- root root 131416 2008-08-01 14:00 libcamera.so
-rw-r--r-- root root 90424 2008-08-01 14:00 libcamera_client.so
-rw-r--r-- root root 13808 2008-08-01 14:00 libcamerafirmwarejni.so
-rw-r--r-- root root 55224 2008-08-01 14:00 libcameraservice.so
-rw-r--r-- root root 578116 2008-08-01 14:00 liboemcamera.so
-rw-r--r-- root root 48272 2008-08-01 14:00 libseccamera.so
-rw-r--r-- root root 94432 2008-08-01 14:00 libseccameraadaptor.so

# ls -l /system/lib/ | grep video
ls -l /system/lib/ | grep video

# ls -l /system/lib/ | grep vid
ls -l /system/lib/ | grep vid
-rw-r--r-- root root 141116 2008-08-01 14:00 libsavidocn.so
-rw-r--r-- root root 26668 2008-08-01 14:00 libsavidreg.so

# ls -l /system/lib/ | grep vi
ls -l /system/lib/ | grep vi
-rw-r--r-- root root 55224 2008-08-01 14:00 libcameraservice.so
-rw-r--r-- root root 182472 2008-08-01 14:00 libmediaplayerservice.so
-rw-r--r-- root root 27900 2008-08-01 14:00 libqmiservices.so
-rw-r--r-- root root 141116 2008-08-01 14:00 libsavidocn.so
-rw-r--r-- root root 26668 2008-08-01 14:00 libsavidreg.so
-rw-r--r-- root root 68288 2008-08-01 14:00 libsensorservice.so
-rw-r--r-- root root 47528 2008-08-01 14:00 libtvoutservice.so
[Galaxy S Plus I9001 Android Development] Xistance:
Is it just me but after doing this it made the camera lens really hot? Might just be me O.o
[Galaxy S Plus I9001 Android Development] wintel_mac:
From rooted, deodexed XXKQ7:

-rw-r--r-- 1 0 0 2156747 Aug 1 2008 libarccamera.so

-rw-r--r-- 1 0 0 131400 Aug 1 2008 libcamera.so

-rw-r--r-- 1 0 0 90408 Aug 1 2008 libcamera_client.so

-rw-r--r-- 1 0 0 13808 Aug 1 2008 libcamerafirmwarejni.so

-rw-r--r-- 1 0 0 55208 Aug 1 2008 libcameraservice.so

-rw-r--r-- 1 0 0 578116 Aug 1 2008 liboemcamera.so

-rw-r--r-- 1 0 0 48272 Aug 1 2008 libseccamera.so

-rw-r--r-- 1 0 0 94416 Aug 1 2008 libseccameraadaptor.so

None.

But with changed grep to "vi" I'll get:

-rw-r--r-- 1 0 0 55208 Aug 1 2008 libcameraservice.so

-rw-r--r-- 1 0 0 182424 Aug 1 2008 libmediaplayerservice.so

-rw-r--r-- 1 0 0 27900 Aug 1 2008 libqmiservices.so

-rw-r--r-- 1 0 0 141116 Aug 1 2008 libsavidocn.so

-rw-r--r-- 1 0 0 26668 Aug 1 2008 libsavidreg.so

Maybe those last two ones are necessary?
[Galaxy S Plus I9001 Android Development] texten:
ok, i will add this to this post and rom_tester or an moderator can edit the first post of this topic by quoting mine...

edit: done. can someone look on that and confirm?
[Galaxy S Plus I9001 Android Development] oisis:
In ICS we have only:

-rw-r--r-- root root 131416 2008-08-01 14:00 libcamera.so

-rw-r--r-- root root 129856 2008-08-01 14:00 libcamera_client.so

-rw-r--r-- root root 55424 2008-08-01 14:00 libcameraservice.so

-rw-r--r-- root root 582228 2008-08-01 14:00 liboemcamera.so

So maybe try to add missing libs :). And logcat :).
[Galaxy S Plus I9001 Android Development] ketheriel:
thx for sharing, I've edited removed the rant about the permissions.
[Galaxy S Plus I9001 Android Development] oisis:
This files are only libs and binary file, so don't know that you can lose any of your data. Just fix this because I have no experience in building packages and I did it for the first time.

Anyway perms in GB are the same so I do not know what is the problem!
[Galaxy S Plus I9001 Android Development] texten:
new info: he reported also, AUDIO was working in videorecording with frontcam

he can play the recorded videofile with sound.

edit: but the videos rotated on device 180° and on pc 90° by playback..

he said the camera is only working after some tries. but if it is working than he can open the cam again and again successfuly

edit: here is a logcat of a failed try (from Cpt. Captain )

http://dl.dropbox.com/u/49291099/alogcat.2012-05-24-23-30-15%2B0200.txt
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
This is getting better and better.

At another forum someone said that "panorama" is also working.
[Galaxy S Plus I9001 Android Development] Xistance:
It would be even better if that stuff worked for everyone >.<
[Galaxy S Plus I9001 Android Development] texten:
videorecording with dhd camera?
[Galaxy S Plus I9001 Android Development] Xistance:
Yeah, just tested. It works but only for one time at boot. It would be great if we could fix this :/. Oh and I can confirm audio being recorded as well.

Edit: Seems we don't have to reboot just to test. It works after uninstalling an app as well...
[Galaxy S Plus I9001 Android Development] wintel_mac:
Sorry, I'm out for the next 5 days and can not flash things on my phone. Maybe someone else could be so kind to try it and see if it changes anything?

Sent from my iPad2 with Tapatalk
[Galaxy S Plus I9001 Android Development] mobuch:
Copied all *camera* and *vi* files grepped out of GB but ICS is stuck on boot.

Will restore and copy only those non-existing to see if it blows up.

Restored ics libs, copied missing GB libs, behaviour is as without those files: can take shots with camerazoomfx and puddingcam (back camera) but fc on video and freezes on switching to front cam. Time to bed... will try to play a little tomorrow, upload logs an stuff..
[Galaxy S Plus I9001 Android Development] texten:
thank you for testing

will anybody help, too?
[Galaxy S Plus I9001 Android Development] oisis:
OT:

Put this to yours /system/etc/ and say goodbye to ads :).

We can try GPU libs from Sony Ericsson Xperia PLAY because it is phone for games so maybe GPU drivers will be better.

Sorry for OT.
[Galaxy S Plus I9001 Android Development] crazybasss:
I noticed that to! strange thing...
[Galaxy S Plus I9001 Android Development] texten:
i think i will flash cm9 again right now and will test some camera.apk's and camera tweaks

what can i also do?

give me some homework oisis, i have some hours time to test :p

edit:

i made this command with logcat:

type logcat.txt | findstr camera > nwelogcat.txt

is that output right?

W/PackageManager( 289): Package com.android.camera desires unavailable shared library com.google.android.media.effects; ignoring!

I/ActivityManager( 289): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[0,556][120,707]} from pid 600

I/ActivityManager( 289): Start proc com.android.camera for activity com.android.camera/.Camera: pid=964 uid=10008 gids={1006, 1015}

I/ActivityManager( 289): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[0,556][120,707]} from pid 600

E/AndroidRuntime( 964):	at com.android.camera.CameraErrorCallback.onError(CameraErrorCallback.java:31)

W/ActivityManager( 289): Force finishing activity com.android.camera/.Camera

W/ActivityManager( 289): Activity pause timeout for ActivityRecord{4105dca0 com.android.camera/.Camera}

I/ActivityManager( 289): Process com.android.camera (pid 964) has died.

I/WindowManager( 289): WIN DEATH: Window{41090f30 com.android.camera/com.android.camera.Camera paused=false}

I/ActivityManager( 289): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[0,556][120,707]} from pid 600

I/ActivityManager( 289): Start proc com.android.camera for activity com.android.camera/.Camera: pid=1035 uid=10008 gids={1006, 1015}

I/ActivityManager( 289): START {act=android.media.action.VIDEO_CAMERA flg=0x6000000 cmp=com.android.camera/.VideoCamera} from pid 1035

W/ActivityManager( 289): Activity destroy timeout for ActivityRecord{4105dca0 com.android.camera/.Camera}

I/InputDispatcher( 289): Application is not responding: Window{410bfe68 com.android.camera/com.android.camera.VideoCamera paused=false}. 7538.5ms since event, 5062.9ms since wait started

I/QualcommCameraHardware( 1107): getCameraInfo: loading libqcamera at 0xb000ed0c

I/QualcommCameraHardware( 1107): camera_id: 0

I/QualcommCameraHardware( 1107): camera_id: 1

V/QualcommCameraHardware( 1107): getCameraInfo: dlclose(libqcamera)

I/CameraHAL( 1107): camera_get_number_of_cameras: number:2

W/PackageManager( 1135): Package com.android.camera desires unavailable shared library com.google.android.media.effects; ignoring!
[Galaxy S Plus I9001 Android Development] BzArEx:
Lens heating up really, I didn't use camera much and I can't tell, but maybe this is normal. But probably not.

OP please add a specific warning to 1st post that could be dangerous to device itself.
[Galaxy S Plus I9001 Android Development] texten:
can confirm.

i will try with another cpu setup.

edit: seems to be better with max 1200 and powersave

edit:

(all tests will be without gapps and simcard)

here is a first logcat (logcat01.txt), after fresh install and flash of experimental_cam-01

bootup, open cam, switch to video, press record button... racording starts, force close / reboot of bootanimation while tried to stop the record..

logcat01.txt

taking panorama pictures with stock cam works without any issues (logcat02.txt):

logcat02.txt
[Galaxy S Plus I9001 Android Development] sqnyster:
On GB, lens, after a few minutes of camera use, is getting warmish, but not hot.
[Galaxy S Plus I9001 Android Development] RavoxX:
If libs are not the same as drivers, I'm sorry, but Arco already included the drivers made directly by Qualcomm for ICS so they will probably the same as ours.
[Galaxy S Plus I9001 Android Development] texten:
yes, and i think they have to replace the firmware folder and the mdia_profile.xml withe the ones of their latest gingerbread ...

added these attached files to ics.

nothing new. after reboot, started cam (no picture visibile) switched to frontcam -> camera not found. (logcat03.txt)

----

i have also tried some other camera apk's from htc desire s, from sony xperia mini,mini pro, neo etc and from u8860... they all shows blackscreen or fc's (only with camera_experimental-01.zip)

kamera ics+ from google play store works like the stock cam very unstable, there is no need to buy this ;)

i think we should try some media_profile.xml
[Galaxy S Plus I9001 Android Development] texten:
i have added the camera.apk and from cm7 to /system/app

videorecording is successfully working only on frontcamera(it is also unstable, for example sometimes the rotation is wrong).

when switching to backcam the camera is not found but sometimes the app starts directly with backcam and you can record videos, but you can not stop the recording, fc. (just another advice that maybe the media_profile.xml is not the best)

here is a logcat with videorecording on backcam and fc ... and successfully recording with frontcam with cm7 camera apk and missed kqb libs for ics (from post above) (logcat10.txt):

..............

edit: logcat20.txt with replaced media_profile.xml from cm7 and camera from cm7 and missed kqb libs for ics (from post above) ... first try successfuly recording video with frontcamera, after that switch to backcam - camera not found

we need a camera.apk and a media_profile.xml from a working ics from a similar device - just for testing

.............

edit: here is my last logcat so far. for the next days i can't test....

added missed kqb libs for ics (from post above) and i have replaced the media_profile.xml and the camera.apk with the ones of italianguy.

i was testing a little bit, it seems the autofocus is working... (the focus frame is not red, it is green)

ok, but it was always unstable. so no logcat of these tests.

but one logcat with these files and these steps -> switching to front cam camera not found, second try open the camera app, camera not found (logcat30.txt)

......

sorry, my concentration is gone, i'm tired. good night.
[Galaxy S Plus I9001 Android Development] oisis:
This log is also interesting, camera is looking for libqcamera.so and we do not have it. So let somebody try to find it in Italian guy or stock rom.

Checked one more time and I don't have this library after clean installation alpha3 and camera experimental.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I tried MIUI Camera, I put camera.apk on /system/app then reboot. Now I got 2 camera, 1 default and 1 MIUI.

* Both no preview but I can access video recording

* Video recording in MIUI no FC but generates empty video file.

* Video recording in default cam FC

here's the logcat:

1. logcat for taking pic with MIUI

http://www.mediafire.com/?7zy20cby45n0082

2. logcat for recording video with MIUI

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

important note: No preview even on other third party camera app

I hope its readable
[Galaxy S Plus I9001 Android Development] EminSG:
Tip. While music is opened, you can't photo in panorama. When you close music, panorama works. Tested with pudding and dhd camera.
[Galaxy S Plus I9001 Android Development] fender90:
It would be awesome if some of you guys could help us over here :)
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I tried to find libqcamera.so on italian guy's file but there is none, so i tried on the net. I find it here, i dont exactly know if it works or if it affects anything, but anyhow heres the logcat.

* i found libqcamera.so here: http://code.google.com/p/piraterum/source/browse/trunk/system/lib/libqcamera.so?r=250

with libqcamera.so

http://www.mediafire.com/?got31lj2o6ovv1l
[Galaxy S Plus I9001 Android Development] oisis:
You have to try with media_profiles.xml and part of libs from your stock GB rom(rest take from Arco Camtest8.zip). Firmware binary files also from stock GB ROM.

---------- Post added at 07:39 AM ---------- Previous post was at 07:29 AM ----------

Will be better if you take this lib from stock GB or one of the phones listed on 1 page form their ICS with working camera(best with working 2 cameras :) ).

EDIT1:

In file /system/build.prop is one option:

debug.enabletr=false

can you change it to:

debug.enabletr=true

and the post log, i think log will be more verbose so more informations to read :).
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I haven't tried yet. And sorry which file is that? I'm a bit confused coz i have downloaded quite many files from here and know i can't determine which is which. lol
[Galaxy S Plus I9001 Android Development] oisis:
It is libqcamera.so file. The best way is to do clean installation of Alpha3 and camera-experimental-01.zip then tests and post logcats. :)

EDIT1:

Reading logs:

Let's look for a lines like:

V/ - means worning?, it is not so important like clean E/ but is worth to read.

E/ - it is error - we have to remove all errors somehow :)

I/ - think that is information - nothing to do with that

D/ - debug some verbose output for developers - nothing to do with that
[Galaxy S Plus I9001 Android Development] fender90:
That's the matter, in my GB stock rom there isn't any /system/firmware folder to copy, and neither ther is one in the "italian guy" system.

I see that /system/etc/firmware does exist though, but there are loads of files. Is that folder correct?
[Galaxy S Plus I9001 Android Development] oisis:
We have this folder: /system/firmware and there are this files:

CE147F00.bin
CE147F01.bin
CE147F02.bin
CE147F03.bin

I do not have i8150 and i can not check directory and files inside this phone, maybe later on will find some stock rom in zip format to extract it and take a look.
[Galaxy S Plus I9001 Android Development] fender90:
This is how our folders look like.
[Galaxy S Plus I9001 Android Development] Phoenix Fire:
can you try with i vid* file?
[Galaxy S Plus I9001 Android Development] oisis:
Need take a look on /system/firmware/* but from GB stock ROM:). /system/etc/firmware we have this same or similar.
[Galaxy S Plus I9001 Android Development] fender90:
This is the system partition from a GB stock ROM :)

THIS is a stock ROM, it would be awesome if you could check when you have time :)
[Galaxy S Plus I9001 Android Development] oisis:
So camera in i8150 is working in different way? There is no /system/firmware directory. Can you try to find files like:

CE147F00.bin
CE147F01.bin
CE147F02.bin
CE147F03.bin

In yours Samsung GB ROM? Thanks.
[Galaxy S Plus I9001 Android Development] nenros:
nevermind, post to delete
[Galaxy S Plus I9001 Android Development] fender90:
There isn't any similar *.bin file in our GB ROMs.
[Galaxy S Plus I9001 Android Development] dbx4:
Regarding front camera:

Face unlock successfully activates front camera, image is upside down. Trying to set the image does not work for me.

Also, in Skype the back camera works when activated for the first time but has a green tint and the front camera does not seem to work.
[Galaxy S Plus I9001 Android Development] :
Without comment...

https://github.com/arco/android_ven...mmit/7e56e570dcb929227f16d919552ec5aef0b5983b
[Galaxy S Plus I9001 Android Development] oisis:
What do you mean? :).

Have seen that few days ago, didn't know why. The same with cifs in kernel, now it is there. Was thinking about NFS too.
[Galaxy S Plus I9001 Android Development] :
He added the libs a few hours ago.

EDIT: If i´ve seen it correct, the libs from italien guy found also their way into the changes.

https://github.com/arco/android_vendor_samsung_ariesve/blob/ics/device-vendor-blobs.mk

Maybe he will add our work to the next build (edit :-) ).

However, i hope our research helps other people which try to port CM9 to their phones with hardware related debelopment.
[Galaxy S Plus I9001 Android Development] oisis:
Our work is not related with kernel but more with CM9 OS.

We have to compare md5sums ItalianGuy libs with libs from stock ROMs and ICS9, need to know where they came from :).
[Galaxy S Plus I9001 Android Development] texten:
i'm very interested in Arco68's ideas for further tests with camera..

arco, it would be nice if you can look into the latest logcats..

for all others, still current: http://xdaforums.com/showpost.php?p=26511647&postcount=428

edit:
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
I tried videorecording on miui cam. I cant get a preview and when i press record i get a still snapshot from back camera then miui FC. Here is my logcat if you can find any useful info.

http://www.mediafire.com/?qsxnlxb5l97qqqz
[Galaxy S Plus I9001 Android Development] texten:
i prefer what oisis means, for now only focus on taking pictures.

please make logcats while taking pictures with camera.apk's and thirdpart apps
[Galaxy S Plus I9001 Android Development] oisis:
Exactly because video is related with next libs, audio and maybe some new settings.
[Galaxy S Plus I9001 Android Development] Bongerz_0522:
Third party apps have their own lib in data/data/app folder/libs is there a way we can check their functions and compare it to our libcamera.so???? :confused:
[Galaxy S Plus I9001 Android Development] texten:
would you explain which files (from where?) exactly are now in the camera-experimental.zip?

so i can better restore steps and try files to replace with some others.

thanks
[Galaxy S Plus I9001 Android Development] oisis:
We have to do small research and some tests, till now was interesting only photos. After weekend will take care about that, will need help :).

I think that libs from /system/lib/ with video and audio in names don't know now.
[Galaxy S Plus I9001 Android Development] Daniel.96:
It's just amazing what you guys did in just a few days :) nice work !:)
[Galaxy S Plus I9001 Android Development] oisis:
We know from Italian guy libs came from? They should be from stock i8150 ROM or from CM9 for i8150.
[Galaxy S Plus I9001 Android Development] texten:
from this build for i8150

ro.build.id=IMM76D

ro.build.display.id=IMM76D

ro.build.version.incremental=eng.arco.20120401.211706

the question is, are these the original files or are some of these replaced by tweaks
[Galaxy S Plus I9001 Android Development] Sh0rty007:
Just installed cm9 alpha3 en camera zip.. works great with pudding camara :) great jobbbbb

Verstuurd van mijn GT-I9001 met Tapatalk
[Galaxy S Plus I9001 Android Development] mav.erik:
Pudding camera For me work ;) but when i tale a photo and i see this foto in Gallery and return to camera have a Black screen

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] Xistance:
Yeah, when you see a black screen instead of a preview then just click on the settings on the upper right and come back to the camera.
[Galaxy S Plus I9001 Android Development] texten:
guys, please read some posts above:

still current: http://xdaforums.com/showpost.php?p=26511647&postcount=428
[Galaxy S Plus I9001 Android Development] oisis:
That is what I would like to know but now I'm on the road without laptop so it is difficult to check :).
[Galaxy S Plus I9001 Android Development] :
Just tried media profile and camera app from I9000 CM9.

2nd try only with i9000 CM9 camera app.

EDIT 1:

Maybe more interessting, add an direct shortcut by using camcorder shortcut app from playstore.

Now i´m able to launch video camera without going way over camera.apk, change of input method and so on.

Sadly, app starts and the error "Could not connect to camera!" pops up. Log added.
[Galaxy S Plus I9001 Android Development] projeto56:
Pay attention on driving then bro!

Lol
[Galaxy S Plus I9001 Android Development] oisis:
I'm not a driver :).
[Galaxy S Plus I9001 Android Development] texten:
the frontcam is sometimes working and sometimes not.

what definitly works: taking pictures with thirdpart app, panorama picture with stock cam.
[Galaxy S Plus I9001 Android Development] Phoenix Fire:
Hi guys, thanks for all the works you are doing for ours.

One little question, just to know at wich level we are, What is the resolution of the photo?

Sorry for the english
[Galaxy S Plus I9001 Android Development] Xistance:
Resolution? You can change it to what you like up to 5mp. Same as GB.
[Galaxy S Plus I9001 Android Development] broodplank1337:
Which is 2560 x 1920 ;)
[Galaxy S Plus I9001 Android Development] kunalwanvari:
its still in its alpha stages mate .. long tym to go before v have a working proper bug free cam .. forget resolution for now .. rejoice at the progress made :D
[Galaxy S Plus I9001 Android Development] oisis:
I have the same problem, we will see at Monday what to do with that and continue research and testing. Now it's weekend, time to rest :).