yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy SL i9003] loSconosciuto:
Camera HAL - part 6

No big changes, just some little edits here and there. I lowered the default number of frames dropped (=> initial frames are sometimes garbled, change the value as explained in my other posts if this happens too often).

___

One of the cool things of CyanogenMod is that you can upgrade it with no data loss (there are some exceptions, but normally the user is warned). This is not true if you flash it over another custom ROM, even if it's based on CyanogenMod.

The preview is intentionally laggy, especially the 720p one. The colour conversion and the downscale required for the preview would otherwise use all the CPU power and the final video would be a lot worse. I actually exaggerated, but you can tune it, read my previous posts. It's enough to know where you are pointing the camera, but laggy indeed, I've just been too lazy to find the optimal value.

Anyway the average framerates are close to those of the preview (30fps for 480p, 25fps for 720p), but that's not the only indicator of quality (read alfrix's posts).

It's my daily driver, but there might be bugs that I'm not aware of. All I need is working perfectly.

Technically it should work with every JB ROM, maybe those using the 3.0 kernel are not ok because of the OMX differences, but those based on my builds are surely fine.

Don't forget that I'm just revising dhiru's work, he did a hell of a good job.
[Samsung Galaxy SL i9003] simratcs:
Great work loco.So.i am now going to install ur CM10 so after that i can install this Camera HAL part 6 directly right ??
[Samsung Galaxy SL i9003] tejadakenneth:
for the developers who are looking for a video sample in stock gb, i recorded some with audio. https://www.facebook.com/photo.php?v=3899055847444&set=vb.1610598831&type=3&theater this video is not for sale hehe
[Samsung Galaxy SL i9003] danierakes:
Losco,480 recording excellent :thumbup:.but front camera have problem..

galaxy sl i9003.

galaxy s3.

xperia neo.
[Samsung Galaxy SL i9003] abderrezak:
yes front camera not work with me :(
[Samsung Galaxy SL i9003] loSconosciuto:
What else otherwise? :silly:

Thanks, but I think it's a private video. Anyway I guess Facebook manipulates the uploaded videos to reduce their size. Not a big deal, it's just that I have no idea how proper videos should be.

What are the problems with the front facing camera?

It takes bad pictures, too awesome pictures, too big, too small, it's slow, fast, it causes FCs, the filesizes of the taken pictures are not prime numbers... ?

If you don't tell me at least what's wrong, what am I supposed to do?

The known problems are:

Not able to take videos properly (this is not allowed in stock ROMs, that's why I didn't look at this "problem")

There are random instantaneous preview rotations while video calling (will look at this)

Unfortunately I'll be busy and I won't do much for a while.
[Samsung Galaxy SL i9003] abderrezak:
it causes FCs when trun it .
[Samsung Galaxy SL i9003] BachuArg:
The only problem I get with front camera si that video changes constantly from portrait to landscape, although it was taken without moving the camera.

I can take pictures correctly with front camera.

Thanks for your work!

Are you planning to upload a new cm10 with the latest camera impovements soon, or should I install the one that´s uploaded?
[Samsung Galaxy SL i9003] loSconosciuto:
I found a bug in the kernel. The sensitivity of the touchscreen is set to the wrong value (50 instead of 32) if you reboot while charging (my fault).

I'd say it's time to release v4.0, no one reported bugs and I hadn't issues till now.

I included hostap and tiap_drv.drv to make WiFi tethering possible with android-wifi-tether.

Download:

kernel-qwerty-cm-10-galaxysl-v4.0.zip - 6.62 MB

(It's like this with the sensitivity bug fixed. I'll update my public repo sooner or later).

The current (read the post linked right above) is not reported if you reboot while charging. You need to power off, unplug, reboot. Otherwise it will always be 0. I still don't know exactly what's the value reported, I think is something proportional to the current.

There's no need to post a new build, flash the latest kernel and the latest libcamera.

Please, make sure it's not a bug of your ROM (I can see from your signature that you are not using my CM10 builds). Logs are always welcome.

I tried to see how Skype is working. The preview is stretched and there are problems with the orientation/mode. There's also this (it happens also with the original libcamera), but at least I'm not getting random rotations. I'm unable to replicate this issue, maybe it was fixed with one of the changes I made (libcamera/kernel/ROM). I'm sure Skype used to work correctly. GTalk is working perfectly though.
[Samsung Galaxy SL i9003] cukierkas:
Thanks dear developer for update.

But can you tell me a proper way to lock app in memory?

sys_keep_app it build.prop seems not to work properly. Apps still reloads.

kernel 4, xgamerz rom.

Thank you.

Sent from my GT-I9003
[Samsung Galaxy SL i9003] rodero95:
The right way to do it is by using the sys.keep_app_1=packagename prop on the /data/local.prop file (you'll probably have to create it). That's how I do it to keep Facebook Home opened on my device.

EDIT: I forgot to comment something, although I think it's obvious. If you wanna keep some more apps on memory, add them using the sys.keep_app_2, sys.keep_app_3 and so on props.
[Samsung Galaxy SL i9003] tejadakenneth:
are you still looking for a 720p video? if yes just tell me where can i upload my private vid that will not decrease the quality of the vid. may be this week but im not sure when this week. :)
[Samsung Galaxy SL i9003] cukierkas:
Thanks rodero, but I did tried with local.prop and with build.prop. I have the apps imputed into both. Maybe that is the reason? Maybe they interfere each other?

Sent from my GT-I9003
[Samsung Galaxy SL i9003] rodero95:
Could be a possibility, but you should do it the right way, by adding them to the local.prop file inside /data :)
[Samsung Galaxy SL i9003] loSconosciuto:
@cukierkas and @rodero95

As far as I know the following files do more or less the same thing:

/default.prop
/system/build.prop
/system/default.prop
/data/local.prop
/data/property/persist.*

I listed them in order, from the first read to the last read. It's worth to mention that they are read in different moments. This is important because certain props must be set before certain events. This is also important when you want to override certain props redefining them. A prop defined in /data/local.prop will override a prop defined in /system/build.prop.

Some props can't be overridden (ie: ro.*) or need to be read in the right moment.

With

getprop
#or
getprop name.of.the.prop

you can easly see what's the current value of the prop.

For more info: property_service.c

Back to the problem, are you sure this sys.keep_app_N prop really exists? I'm asking because I couldn't find any trace of it in the source code.

Maybe it was used in old versions of Android or in mods like Supercharger (those mods require changes in the framework to fully work if I'm not wrong).

If Facebook is not killed as often as other apps is probably because of its service. Here you can see defined some priorities used by Android to choose what needs to be killed first.

I won't do anything for a while as I'm currently busy. I'll PM you in case I need it. Thanks.

PS: Skype 2.9.0.315 is working correctly. I'm wondering if the preview is stretched in dhiru's builds.
[Samsung Galaxy SL i9003] cukierkas:
Thanks for info, you are like teacher :)

So witch I need to edit first? default.prop?

I made changes manually editing them. Maybe I need a key or other structure? Sorry I'm a noob, but willing to learn:)

Regards

Sent from my GT-I9003
[Samsung Galaxy SL i9003] rodero95:
Yes, I'm sure that prop is working, at least on CM10.1.Before, Facebook Home kept reloading everytime I did something else like browsing the web with Chrome or anything, now it is kept open and is never reloaded again when I press home, the change is pretty noticeable, so I'm sure it is working.

And yes, you're like a teacher, thank you so much for all this valuable knowledge, I'm learning a lot with you :)
[Samsung Galaxy SL i9003] Darktitor:
I'm using Facebook Home as Lockscreen and it don't reload every time.

I didn't change anything on the build.prop

Envoyé depuis mon GT-I9003 avec Tapatalk
[Samsung Galaxy SL i9003] rodero95:
Never? Mine did when I had too many apps opened and the phone lacked of memory. I was too annoying to have it reloading every time I came back to the home screen as it took too much time. Even more if the phone was overloaded.
[Samsung Galaxy SL i9003] behnameb7:
slide lock screen disabled for me how can i fix this problem?

​
[Samsung Galaxy SL i9003] abderrezak:
how to enable navbar on kernel v3.

if you can plz with smal size .

and the front camera now work with me after wiped the data of camera .
[Samsung Galaxy SL i9003] loSconosciuto:
Camera HAL - part 7

I tried to get rid of the random preview rotations while using the front facing camera. They seem to happen when there's an high resource usage.

Try it and tell me if it's better. The problem is still there, but it's less noticeable. There will be lags instead of random preview rotations which are maybe less annoying. I have to run "yes" in order to replicate this issue, it seems almost gone with my latest CM builds.

Flashable zip and patches attached.

____________

What I meant is that you can add this prop wherever you want, but that's useless because it doesn't work.

I'm a 100% sure this prop is ineffective, I couldn't find it in the source code. I think it was implemented somewhere, then someone included it in a tweaks collection. Half of the stuff in those collections are vendor or ROM specific.

EDIT: Told'ya: allow custom defined apps to be kept in memory.

I don't know what you did, but the three possible causes are written there. From my personal experience, if you installed a certificate, you have to remove it. Sadly since ICS you can't have certificates without a secure lockscreen.

It's not a kernel feature... That's (see the last part of the post) the best I can do without altering too much the ROM, which is something I won't do.
[Samsung Galaxy SL i9003] rodero95:
Damn! I would have swear that was just working. It's amazing how our minds can trick us when we believe on something! haha

I'll add that patch to my CM-10.1 so, again, a new lesson learned from you.

Thank you so much! :)
[Samsung Galaxy SL i9003] LoLaTiOn:
nice find apparently this is an old feature of CM7

I'll keep this link aside because it is useful for members

Can add this mod in the next building

Thanks
[Samsung Galaxy SL i9003] rodero95:
That's a patch to apply on the android framework, so it's not so useul for common users haha
[Samsung Galaxy SL i9003] Gondya bhau:
anybody on qwerty v4...is bluetooth working ????

mine worked fine till v3...now suddenly it shows turning on...and then the phone reboots
[Samsung Galaxy SL i9003] cukierkas:
Thanks dear developer, you finnaly gave us a real solution. Now please guide for common user how to DIY (do it yourself) who is not friendly with programing, patches or stuff like that :)

I'd like to lock com.android.phone and com.fevdev.nakedbrowser :)

Thank you all

Sent from my GT-I9003
[Samsung Galaxy SL i9003] giovox:
It works like charm at XgamerZ 2.6 with qwerty #4, try flashing the latest cm10 build and kernel again.
[Samsung Galaxy SL i9003] Gondya bhau:
i am on slim bean.....if bluetooth simply didnt work, i would flash cm10....but fact is it worked till 3.1 test4....

slim bean is just very lite.....

cm10 + gapps = 240 mb

slim bean + slim gapps = 120mb
[Samsung Galaxy SL i9003] LoLaTiOn:
recording and playing camera before work fine now !!!

great work

hey this is my head guys

not very serious you say my MouHaHa ?§!
[Samsung Galaxy SL i9003] imjustafq:
you can use slim gapps on cm10 though.. dont you know? didnt need to use the heavy official gapps.. i use slim gapps after flashing all cm10 roms ive used.. worked like a charm.. cause if you checked, the files directory for apps in slim gapps is the same as cm10's.. so goes where it should.. :thumbup::)

so 160+20 = 180 :rolleyes:

via Android
[Samsung Galaxy SL i9003] cukierkas:
Bluetooth works perfectly on v4. Using bt headset each day, transferred some files today.

Great job developer!

Sent from my GT-I9003
[Samsung Galaxy SL i9003] loSconosciuto:
EDIT:

http://xdaforums.com/showpost.php?p=38589074&postcount=81

http://xdaforums.com/showpost.php?p=38851147&postcount=1453

This is a very rare issue and with no informations I can't say what's causing it. It seems to be unrelated to my kernel and probably is solvable with a reflash of the ROM with no data wipes.

I'm sorry, but I won't implement it.

First of all that patch is not for Jellybean, I posted it just to prove my point. But the main problem is that I think such a prop can cause only problems in my opinion. Users usually want to keep in memory those apps that are frequently closed. Those apps are usually huge and unnecessary for the correct functionality of the device. Holding a huge part of the memory won't allow you to open new apps, at least not without killing other apps. That means also important services will be killed and this can cause misbehaviours. It's better to wait a bit more for the app to be reloaded.

Android handles the memory pretty well, it tries to keep in memory as many apps as possible and kills them when necessary, following precise rules. I don't want to mess with it and I currently don't have the time to do it (I don't know if you looked at the file I should patch, it's ~15000 lines long).

Hey there.

I know , but I forgot to add an "if" statement (I've already fixed it) and the recorded video is not cropped as the preview. I'm also getting FCs when I play the recorded video (issues with media_profile.xml probably), I'll look into that. But video recording with the front facing camera is really a secondary thing. It can't even do more than 15fps, it's an hardware limit.

Do you know that you are saving space of a read only partition which has a fixed size? That means the space you save by flashing a smaller ROM is lost anyway.

If you want to use Slim Bean because it's really lighter (I've never used anything but CyanogenMod and never bothered to look at anything else, so I really have no clue about that), then ok, but the size of the ROM is not the right thing to look at. I'm not saying this because I want you to change ROM, I really don't care about that, I'm just giving you some informations.

Anyway, gapps for CyanogenMod includes everything, even unnecessary stuff. There are some alternatives gapps available, but I use "CM" gapps, I just get rid of the face unlock stuff.
[Samsung Galaxy SL i9003] Gondya bhau:
well..i assumed if the rom size is less,it would have less unnecessary apps and also less libraries to load each time....so that would provide some sort of speed gains....just an assumption

even on slim, i spent some time removing 30mb worth of apps i never use (picasa , gmail, etc)

besides, i always change the launcher etc on flashing any rom...so it doesnt matter which rom i flash...as long as the kernel is the best...

i will take a nandroid backup and flash v4 again later today just to check whether the bluetooth issue is still there...
[Samsung Galaxy SL i9003] danierakes:
Never had bluetooth problem from qwerty 3 till 4...all perfectos!

~radio friendly unit shifter~
[Samsung Galaxy SL i9003] Ottonet:
Keep up the good work, Losconosciuto

I am on this rom since the last week.

I updated Kernel to V4.0, still on 20130407 ROM.

Wi-Fi is awesome! the signal is always very strong, no drops whatsoever.

Wi-Fi thethering seems perfect to me. Tested rom built-in Hotspot and it worked, since it seemed too good to be true, I switched off the hotspot, switched Wi-Fi on and got connected to my adsl router in no time. Went back to Wi-Fi thethering and it still worked. Did that twice or three times, I never had a failure, even if I did not reboot.

The third party app android-wifi-tether works as well, it did not in qwerty kernel v.3.1

Tested Bluetooth this morning on my Fiat 500 Bue&me handsfree device.

Got connected at once, I went to a mall for some quick shopping forgetting to switch off bluetooth, when I got back to my car an hour later or so, bluetooth hooked instantly to the car, which is something my phone never did, not even with the stock Samsung GB Rom.

To all those who, being on Querty Kernel V4.0 And 201304+ Rom, complain about this and that not working, I suggest to be careful when flashing.

I always wipe everything: wipe data/factory reset, cache partition, dalvik cache and battery stats before flashing. Do a fix permissions before rebooting in the newly flashed rom.

So far, so good. Keep up the good work, Losconosciuto!
[Samsung Galaxy SL i9003] danierakes:
Yup u right...

~radio friendly unit shifter~
[Samsung Galaxy SL i9003] loSconosciuto:
I updated my public repos (I didn't included the experimental changes to camera HAL) and I decided to publish a new build. It's pretty much like the previous release, with the difference that the kernel is updated, same for camera HAL (video recorded with the FFC are now cropped. You'll get FCs if you try to play the recorded video when the camera app is opened).

I also removed the limit I added time ago to the number of background apps (now it's 15, it was 5), but you can limit it again from the developer settings (I modified it to allow you to choose any number from 0 to default=15).

Downloads:

cm-10-20130425-UNOFFICIAL-galaxysl.zip - 163.79 MB (the server seems overloaded, it may take a while)

You are right about that, a lower number of apps speed up the boot process, that's because there's less stuff to check (like dex files), but that's it. Probably there are more services you probably don't need, but those are usually small (like CM updater) and you can easily freeze them from system settings (system apps only, this is possible since JB I think).

Libraries however are all pretty much the same and the smaller size of ROMs is mostly due to a lower number of apps and resources (backgrounds, images etc).

Not entirely true. This (and before that this) made my builds faster and smoother.
[Samsung Galaxy SL i9003] Gondya bhau:
dunno what the links were but i have total faith in you..if its your rom, its gotta be the best :laugh::laugh:

i actually flashed your rom first...but i didnt have cm gapps :silly: ok i know thats a lame reason...but i didnt have time (to download cm gapps) and didnt know whether slim gapps would work with cm...so went with slim bean then..

BTW reflashed qwerty v4 now and yup bluetooth works...that reboot problem just a one time thing i guess
[Samsung Galaxy SL i9003] simratcs:
Hello everyone I need some help !!

Firstly this ROM is awesome and will be my daily driver but I am facing this WiFi disconnecting issue if some one could help that would be great :D
[Samsung Galaxy SL i9003] cukierkas:
Provide a logcat.

Sent from my GT-I9003
[Samsung Galaxy SL i9003] imjustafq:
best modded cm10 ever.. thanks losconosciuto.. of course to dhiru also.. damn smooth.. continue the good work.. :D

via Android
[Samsung Galaxy SL i9003] simratcs:
ok i am now all fine.what i just did was make the wifi ip address static so now it doesnt disconnects and even it connects in an instant !! :D

Now just tell me with governor and io should i use to get performance and battery. :confused:
[Samsung Galaxy SL i9003] Gondya bhau:
smartassv2 + sio is pretty decent...it gives me good battery without any lag on screen unlock,etc.
[Samsung Galaxy SL i9003] simratcs:
Same pinch bhai.Me too using this setting only ,i thought not to mention it and let others tell what they are using !!btw thank u ;)

---------- Post added at 03:51 AM ---------- Previous post was at 03:49 AM ----------

but one thing when it is on sleep battery doesnt drains but when i start using then battery drains more rapidly.Is this normal ??
[Samsung Galaxy SL i9003] Gondya bhau:
yup..even i have noticed that...i previously used conservative...battery drain when in use was comparatively less for that...but there was some lag...

but still i prefer smartassv2+sio....it gives much better response on unlock and on starting any apps.....and as long as there is no battery drain in sleep, i dont have a prob..its better to lose that 1-2% battery then experience slow loading...
[Samsung Galaxy SL i9003] simratcs:
ok so i am not alone ! thank u and i also dont face any lag at all.it is much better than Ginger****.;)
[Samsung Galaxy SL i9003] cukierkas:
Hello dear developer, how are you?

i have some problems with 2G mode. Download speed is too low and worst thing, sometimes phone loosing the signal and phone turns off, even with good battery level. Sorry, have no logs. With 3G everything is OK. Plus, when on 2G, wifi turns on really long. And at that wifi turning on situation sometimes phone shuts down. At turning on, usually battery level appears at critical level. Kernel v4.

thanks in advance.

Sent from my GT-I9003
[Samsung Galaxy SL i9003] joe21o:
Android usb tethering is not working for me. Windows says failed to install driver. When I connect to pc
[Samsung Galaxy SL i9003] cukierkas:
One more thing. I've noticed, that this shut down thing started with enabling smartassv2+sio. Never was like that on ondemand. Maybe that is the reason? Doing a research. Can someone teach me how to log properly?

Sent from my GT-I9003
[Samsung Galaxy SL i9003] alfrix:
KSM seems to be working, i have about 3500-4000 pages sharing. and it does seems to improve responsiveness.

Any ideas why the BT wideband speech is deactivated here? (i activated it, and tried a few things, but couldn´t make it work...)

that could be the cause of the poor quality of the handsfree audio. Clarifying the audio produced by the bt mic was better on samsungs firmware now when i use the handsfree the other person find the audio a bit garbled.

Just a note, high touchscreen sensitivity isn´t always better, i actually lowered it and there are less ghost touches and i didn´t noticed any added lag.
[Samsung Galaxy SL i9003] MR.Volkf:
tick android android debugging
[Samsung Galaxy SL i9003] mdaamir1989:
How to get a log ...

Here's how to get a log. Hope that helps ...

http://xdaforums.com/showpost.php?p=38327555