yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] chui101:
Samsung Vibrant Front Facing Camera Modification

for CyanogenMod 10

​

For people with the FFC mod on the Vibrant, this is a CWM flashable ZIP that will work with the latest CM10 nightlies to enable FFC support.

Requirements

Samsung Vibrant, Model SGH-T959

Front Facing Camera hardware modification: Replace the internal phone camera with a i9000 camera

An AOSP JB ROM post-data/system partition swap (details about how to tell below)

Instructions

Copy file to SD card

Reboot into recovery

(Optional) Flash the ROM zip if you are upgrading to a newer ROM

Flash this ZIP

Reboot

Open up camera app. If it worked you will have a button just above the zoom slider to switch between front and rear cameras.

Compatible ROMs

- CyanogenMod 10 Nightly Builds 20120927 and later

- Helly Bean ??? and after

Non-Compatible ROMs

These ROMs do not work with this zip. If you are using any of these you may try using the CM9 files available here.

- CyanogenMod 10 20120926 or earlier

- Helly Bean ??? or earlier

If you have tested a ROM and would like to add it to the list please reply below!

How do I know if my ROM has the system/data partitions swapped?

Open up a shell, through ADB, Terminal Emulator, Connectbot, etc. Type the command

mount

and hit enter. Look for the line that mentions /system (it's a lot of jumble, I know! It's in there.) If you have the swap (and therefore are able to use this zip, you should see a line that look like this:

/dev/block/mmcblk0p2 /system ext4 rw,nodev,noatime, . . . . .

If you do not see mmcblk0p2 next to /system this mod is not for you! The non-compatible ROMs will say mtdblock2 next to system.
[Vibrant Android Development] mryounghc:
is this different from the cm9 ffc fix files or the same?
[Vibrant Android Development] chui101:
Different. If you try the CM9 FFC files you're gonna have a bad time.
[Vibrant Android Development] mryounghc:
OK reason I asked is because I have always used the cm9 without a problem on jb. Well, I never actually USED it in months but I am able to switch back and forth. I'll try this one out though
[Vibrant Android Development] chui101:
The old one would likely have worked on CM10 up until recently, since any changes to camera were pretty minor between ICS and JB. However, with the recent system/data partition switcheroo the old zip could potentially screw things up.
[Vibrant Android Development] hkfan:
Will this work with SlimBean 2.1 ?

UPDATE : It works!
[Vibrant Android Development] muleyman:
I can confirm that the CM9 fix no longer works with CM10. I don't know that it caused issues after flashing but it didn't work. Hadn't put the time in to figure it out but thanks to chui101 I don't have to!
[Vibrant Android Development] tenantrep:
FFC

Unfortunately it did not work with the Helly Bean 817 version of CM10. Can someone send a couple of screenshots of the what the camera screen is supposed to look like? I have a compass-like icon in the upper left corner, but when I tap it - I just get a focus setting at that point. Never have fired up the FFC and don't know if it was DOA or not. Thanks.

JIM in FLA
[Vibrant Android Development] chui101:
It will ONLY work with CM10. Helly bean does not have the new partition layout - You can probably use the CM9 zip with that.
[Vibrant Android Development] mryounghc:
the old one works with hellybean
[Vibrant Android Development] chui101:
Thanks for letting me know. I've updated the OP to be more informative!
[Vibrant Android Development] tenantrep:
OK great, can you provide a link? Thanks.
[Vibrant Android Development] chui101:
I took the time to type out a detailed OP, if you can't read it, then no I won't provide you a link.
[Vibrant Android Development] tenantrep:
Great, can you provide a link? Thanks.

JIM
[Vibrant Android Development] chui101:
Strike two.
[Vibrant Android Development] tenantrep:
Great, will you please provide a link to FFC CM9 zip? Searched and came up dry. Thanks.
[Vibrant Android Development] mryounghc:
Oh sorry about that, I will post it when I get home. Now the cm doesn't work with the newest Shelly 0828. Only the cm10. So you might want to DL that if your going to the newest helly. I figure all the proceeding helly's also.

I'll still post it though

Oh. I forgot I had it lol

http://www.4shared.com/zip/FU6AqCOR/cm9_ffc_fix_camera_files_v10.html
[Vibrant Android Development] ferhanmm:
It's been linked in the op. How could you not find it lol?
[Vibrant Android Development] tenantrep:
Hey thanks again - my senior moment! As for the double post, I guess there was a lag here at the office and I sincerely apologize for ruffling any feathers. You see I go back to the time of 8086, 80286 etc and sometimes things like OP just do not register. Regardless, really appreciate the assist and the chance to proved that the FFC really DOES work! BTW, I still attend local SIG computer group where the oldest member is 104! He just bought an ASUS tablet and get this demanded a 2-yr warranty! Now that is positive thinking. . . . Take care.

JIM
[Vibrant Android Development] Exel:
Thanks bud, works great.

Off topic (Still related):

Unfortunately, my front camera shows as it's sideways, its an old bug, but I was wondering if anyone made any progress with it?
[Vibrant Android Development] RoxAbout:
Anybody with codeing abilitites willing to look at fixing the sideways image on some of the vibrant FFC's?

The app "mirror for vibrant" has a magic button that rotates the image...surely this could be borrowed to add the same magic button to the camera FFC and fix the sideways images...

Thanks in advance
[Vibrant Android Development] chui101:
The problem is most likely in the kernel driver for the camera, and not in the userspace. It's also probably not a problem that could be fixed without messing up the camera for most other people.
[Vibrant Android Development] Exel:
Off-topic: What if someone tried using the camera libs from the Galaxy S 4G, would that make a difference? (To any dev out there?)
[Vibrant Android Development] RoxAbout:
Well for what its worth the mirror app has worked with every kernel/rom since I installed the FFC. The only files that affect it working is compatible camera.apks.

In other words if the apk dont take into account there is a FFC then the mirror app wont run even with a FFC.

==================================================

But on a side note ....

The new slim bean v2.3 is out.... wil this cm10 camera mod still work? since it says ver stopped at v2.1 ?

thanks
[Vibrant Android Development] Kwaii49:
Works on slim bean just fine as OP stated.

Question: Is there any chance that video calling(Oovoo/Skype) will be possible? I've noticed ICS Roms didn't have that feature so I was hoping somehow it would work on JB.

Thanks for your hard work.
[Vibrant Android Development] RoxAbout:
I used Qik and google talk with my vibrant FFC mod on ICS [slim] Havent tried it on Slimbean yet but Im sure it works.
[Vibrant Android Development] chui101:
Tango and Skype video works for me on both ICS and JB with this installed.
[Vibrant Android Development] RoxAbout:
FFC mod for SlimBean v2.4

I got pilloried for asking about camera issues... and Someone called DougFresh told me to pull files from the current slimbean v2.4 i9000 rom and use them to fix the ffc problem......

So I did I modified a flash file and used the slimbean v2.4 files for vibrant...

you can find the pitch forks in the other thread..im not gonna post the links wtmi!

I will how ever post the ffc flashable file for slimbean v2.4

++++ NOTE THIS HAS NOT BEEN TESTED ON OTHER THAN SLIMBEAN V2.4 ++++

++++ USE AT YOUR OWN RISK ++++

++++ WORKS FINE ON VIBRANT AND SLIMBEAN V2.4 ++++

Update Works on v2.5 slimbean too :)

there are gallery issues but im not sure how to fix..and since the other thread wants to go postal over simple requests... ill ask it here... how to fix gallery issues?

no offense posted nor intended....

just trying to be helpful

:good:
[Vibrant Android Development] hkfan:
Can you please update patch according to new cm10 layout

UPDATE : Got it http://xdaforums.com/showthread.php?p=32188151
[Vibrant Android Development] chui101:
Updated to latest partition layout. Sorry for the delay!
[Vibrant Android Development] tonyzoc:
I just updated to CM10 10/10/2012 from 10/02 and I reflashed the FFC mod twice....and no ffc. I'm also running semaphore kernel 2.03v. I've updated a number of times with no problem....always in the order rom, kernel, ffc...wipe cache, wipe dalvick...reboot.

---------- Post added at 04:51 PM ---------- Previous post was at 04:41 PM ----------

never mind...I was flashing the 0820 ffc.
[Vibrant Android Development] RoxAbout:
mohitmoudgil

Old 29th September 2012, 08:50 PM

Can you please update patch according to new cm10 layout

UPDATE : Got it http://xdaforums.com/show...php?p=32188151

It is easy to do...just grab the main rom files that your upgrading to and copy the same files over the top of the ones in my zip...

Always do a backup in case you break something...

Good Luck

:)

Ok I didnt see your edit/update...
[Vibrant Android Development] tonyzoc:
I had the wrong ffc zip... the 10032012 worked fine...

Some additional info for those looking to do this:

I first bought an i9000 camera (as described), The FFC worked fine, but the rear camera had lines. It came from china and was apparently defective and wasn't worth it to return it,

I then bought another camera,...but it said it was for the T959v 4g Vibrant.... which apparently is not the same as my Vibrant. I guess they used that name for another Galaxy S...I don't know. The rear camera worked fine now, but the ffc was 90 degrees rotated.

So, I'm trying another i9000 camera, hopefully I get a good one this time. (I'm about $45 unto this mod...oy!)
[Vibrant Android Development] XDAcat62:
Hey, so I started convincing myself that the used Vibrant I had (which came with Chimera on it) may have had an FFC mod. I swear I can see a little lens in there! :) I installed the mod and there's a button in the camera app now, but when I press it, the camera app crashes and continues to FC until I clear the data and reset the camera/gallery app.

I'm assuming this means, yup, I don't actually have the FFC (surprise!) but is there a script that can check? Also, while this doesn't seem to affect other functioning, I'd like to uninstall the mod if so, in case it causes issues or I accidentally press the button to swap. I didn't seem to see a flashable uninstall mod.
[Vibrant Android Development] samsgun357:
Its a proximity sensor not a camera lol.

Just format system in recovery and reflash your ROM, that will clear out those files.

Eat Play Google
[Vibrant Android Development] Dougfresh:
Gunny, I always thought I had 2 FFC for 3D-like effects!! :laugh::p:eek::(:D
[Vibrant Android Development] XDAcat62:
Haha, I know, I just wished so hard that maybe it would happen! And the previous owner installed a rom so it's not too far off that he'd bust it open to install the camera. right? RIGHT? :D

Ugh, well rather not do something as drastic as resetting everything when it's not really affecting the use of the phone at the moment. Was just hoping there was an uninstall zip as there often is for patches like this. I'll wait around for the zip or remember NOT to flash this next time I upgrade :)
[Vibrant Android Development] tonyzoc:
Or maybe buy a i9000 dual camera on ebay for $15 and you wont need to reflash. All you need to install is a small phillips head and a guitar pick.
[Atrix 4G Q&A, Help & Troubleshooting] Cloudus91:
Hi guys,the question is clear.

Do you think could be any connection between Digitizer and Root or Rom?

Because I read about so many people,that just do something like Root or put CM9,the Digitizer stop to work fine.

It happened to me with my Ideos U8150 when I change Rom and now I'm afraid to make Root or change Rom to my Atrix.

What do you think?
[Atrix 4G Q&A, Help & Troubleshooting] ravilov:
You have incomplete information. What you read is probably related to /pds accidentally being nuked while rooting and/or flashing a ROM. So long as you do everything "by the book", you should be fine. Plus, you can always make a copy of /pds for safekeeping yourself, if later something goes wrong, you can always restore it.

I can't think of any other relation between software changes (rooting, flashing a ROM) and subsequent hardware issues.
[Atrix 4G Q&A, Help & Troubleshooting] Vazay:
Almost no connection, the only thing that may harm your digitizer is overclocking.

P.S. Replacing mine every six months :crying:
[Atrix 4G Q&A, Help & Troubleshooting] Cloudus91:
Why is so easy to break?

Do you overclocked your phone?
[Atrix 4G Q&A, Help & Troubleshooting] ravilov:
Because overclocking means much more heat, which can be hazardous for the digitizer.

IMO, the Atrix doesn't need overclocking at all, it's quick enough as it is.
[Atrix 4G Q&A, Help & Troubleshooting] Vazay:
Motorola used cheap digitizers in our phone.

Most of the time it's on stock 1Ghz
[Atrix 4G Q&A, Help & Troubleshooting] Sir_Brizz:
I will be the first to say, though, that you don't have to overclock. I've never loaded a custom kernel other than the ones in the unofficial cm9/10 builds and part of my digitizer died.
[HTC One S] popolon59:
Hi everybody,

I recently switched my One S to MIUI 2.8.10 after backup of my stock rom. Unfortunately, I erased it by mistake...

Any one of you got this ?

For information I'm using TWRP as recovery.

Thanks for your help.

Popolon
[HTC One S] Jasonhhx:
You can probably find it in the 'ville/villec shipped Rom collection' post in the development section, look for the Rom of your region and operator

Relock bootloader and install it :)
[HTC One S] popolon59:
Thanks for your help.

However, I already tried somtehing like that once my mobile was relocked. The flash did not work and after reboot, nothing else than a black screen...
[HTC Desire S] scan6:
man you are the best!!
[HTC Desire S] mizerok:
Installed on Nik Project, any issues with buttons backlight? It seems like they are always on
[HTC Desire S] scan6:
Nope,it works well to me

Nik project v4.1:

1.oc ---ok

2.s2w---ok
[HTC Desire S] mizerok:
Nik 4.1, have 3600 in anututu =)

Will try to reinstall with really full wipe, because my buttons are always on
[HTC Desire S] amidabuddha:
On Fallout the backlight works as it should.

In a room without direct sunlight - off

On screen off - off

Outdoor or in a dark place - on

Try in different conditions, maybe there is too much light where you are
[HTC Desire S] docertabum:
I wish it was usable for non Sense ROMs :)
[HTC Desire S] masterross:
Nik 4.1, Atuntu - 3527

No prob with S2W. Auto brightenss is off.

Thx Stefan.
[HTC Desire S] banny7000:
I get 3883 on antu with fallout rom

sent from my desire s from one of lowvelds roms
[HTC Desire S] Tectas:
Working on it more or less ^^

Great done amidabuddha :)

Gesendet von meinem GT-I9300 mit Tapatalk 2
[HTC Desire S] amidabuddha:
I am not a big fan of benchmarking. But tried just out of curiosity.

Antutu: 4035 on Fallout :)

Sent from my HTC Desire S
[HTC Desire S] mizerok:
It's perfect! I haven't seen so cool and fast rom as fallout with this kernel yet!
[HTC Desire S] riaan0010:
Is it not harmful for Desire S to overclock to 1.5 GHz ?
[HTC Desire S] superkid:
Shouldnt make any harm going to 1.5.

Now the kernel source, is https://github.com/showp1984/bricked-shooteru-ics-sense what you releasing? if no you need to release the exact kernel source you using, laws :P

I dont want any saga dev to have issues

Edit:

More then that, some devices comes with stock 1.5 with same processor :P but remember, the more you put, the less battery :P
[HTC Desire S] Dreamtheater2003:
Hi, is there a way to revert it to stock? Thanks.
[HTC Desire S] amidabuddha:
:) Good point

Yes the changes for sweep2wake are the same, made by showp1984, unmodified by me

And yes, this is the stock OC, I have just enabled it for the time being.

I am pretty sure that soon there will be much more tweaked and polished kernels made by the experienced devs, but since most of them are taking summer holidays I compiled this one for playing with Sense 4 until they come back to development :)
[HTC Desire S] amidabuddha:
Yes you can always flash the original boot.img of the ROM that you are using via fastboot. Then copy the bcm4329.ko and kineto_gan.ko of your original ROM to /system/lib/modules with any root file explorer. To restore the stock screenshot feature change the value ro.htc.framework.screencapture from false to true in your build.prop
[HTC Desire S] toxic-hero:
flash the rom once again...
[HTC Desire S] Csacsifiu:
Nik Project X v4.1 with AnTuTu - 3907

sdcard: class6
[HTC Desire S] eternalfrozen:
wifi not working after flashed this oc file.....why?
[HTC Desire S] Marcoevich:
I have Fallout V4.4.0 and revolutionary bootloader
[HTC Desire S] amidabuddha:
I have just flashed it, using the instructions for S-OFF users, on my Fallout backup and it boots fine.

Please check the md5sum of the file. I really hope that you are not flashing the md5sum.txt file...
[HTC Desire S] Marcoevich:
Hmm, weird that this doesn't work for me...

Md5 checksum is correct.

I will try again, and let you know what the results are.

If I can't get it to work, will it be possible to flash the 3.3 version from recovery?

Edit: damn, this sucks. In what mode do I need to put the phone on to get shell access?

I am in recovery now, but I get no directory errors. See: http://piclair.com/data/lrbvd.jpg

Thx for your help m8 ;)

Edit 2: it's gonna be 2 late today. I've flashed V3.3 again from recovery and that worked.

I did noticed a change though. during first reboot after flashing V3.3 i got a notification: "Android is being updated. Optimizing application ... from 280." I wonder why that is?

Kernel version is 3.0.30-Amidabuddha. So I'm back in business again ;)

Very weird that the newer version doesn't work. Do you have any idea about that?

Thank you in advance ;) good night!

Marcoevich
[HTC Desire S] king_josh60:
I flashed this Kendall when it came it, but I was wondering how do I use the latest version? Just flash in recovery like normal? thanks
[HTC Desire S] rzr09:
Nope you'll have to follow the instructions on the first Page.

---------- Post added at 03:07 AM ---------- Previous post was at 03:07 AM ----------
[HTC Desire S] dmatik:
Hi,

I was unable to disable the sweep2wake functionality in this version.

I did the steps from OP with "0" inside the "50-sweep2wake" file, but the sweep2wake is still working after reboot.

It was working fine for me on previous version.

I'm on ICE DS 4.4 rom, S-OFF.
[HTC Desire S] brainzasif:
I have managed to install this kernal successfully and am running setcpu SmartassV2 governer with VR I/O scheduler. But strangely after i flashed this kernal my Wifi refuses to connected, it keeps telling me turning WLAN on but it doesnt connect.

I'm using the official MIUIV4 ICS 2.8.24 release from MIUI.com

Kindly guide me.
[HTC Desire S] amidabuddha:
The score in Antutu depends on the governor/io scheduler configuration.

Example on my Fallout:

Smartassv2 & SIO - 2900

Ondemand & deadline 4100

Also the 1497 MHz frequency was on the old version. The new one comes with 1516 MHz

You have error at the very first command (adb recount)

Make sure that USB Debugging is enabled in the Developers settings

The "Android is updating" message means that the OS is rebuilding the dalvik-cache, because you have wiped it, this is normal

Go to /sys/android_touch/sweep2wake with any root file explorer and change the value inside from 1 to 0. It should work without a reboot. If working then check the permissions of the 50-sweep2wake file

It seems like you forgot the modules. Copy them manually to /system/lib/modules with a root file explorer and set the permissions of both to -rw-r--r--. Then check the WiFi again.

Sent from my HTC Desire S
[HTC Desire S] MarlX:
I updated w/ the new kernel w/o executing "enable and disable sweep2wake" option and it still works fine, sweep2wake is still disabled on my device (disabled it on previous version).

Try to enable then disable again, I guess.
[HTC Desire S] dmatik:
You are right, there was "1" inside the /sys/android_touch/sweep2wake file, changing it to "0" disabled the sweep2wake.

I checked the permissions of 50-sweep2wake and here what I see:

root@android:/system/etc/init.d # ls -l
ls -l
-rwxrwxrwx root shell 3695 2008-08-01 15:00 02ramtweaks
-rwxr-x--- root root 157 2012-08-09 17:04 50-sweep2wake
-rwxrwxrwx root shell 185 2008-08-01 15:00 81GPU_rendering
-rwxrwxrwx root shell 456 2008-08-01 15:00 90dropcaches
-rwxrwxrwx root shell 1184 2008-08-01 15:00 90zram
-rwxrwxrwx root shell 518 2008-08-01 15:00 98permissions
-rwxrwxrwx root shell 81 2008-08-01 15:00 99complete

"-rwxr-x---" is 750, right? So the permissions are exactly as the instructions on OP. What do I miss?
[HTC Desire S] amidabuddha:
Well it seems that on this ROM the permissions are different. Make the ones for 50-sweep2wake like on the other files and it should work.

Sent from my HTC Desire S
[HTC Desire S] brainzasif:
Bro i have put them both in the right place and yes there permissions are as -rw-r--r-- as i followed your tutorial in the OP step by step no issues in that. Still the WLAN doesnt turn back on after flashing the Boot.img
[HTC Desire S] amidabuddha:
Please check the kernel version in the settings

Sent from my HTC Desire S
[HTC Desire S] Marcoevich:
Yeah, I see now. But the first time the remount worked correctly. I am sure about that.

Maybe I try a next version, but now I stick with 3.3 ;)
[HTC Desire S] dmatik:
Even after setting the full permissions, after reboot, there is "1" again inside the file.

Looks like the init.d script is still not running.

Maybe something wrong with the script?

It was working fine for me in previous version.
[HTC Desire S] brainzasif:
KERNAL VERSION:

3.0.41 - amidabuddha-4.7-g9e4c324

stefan@stefan-inspiron-1525#0
[HTC Desire S] amidabuddha:
I hope you have not deleted some char by accident.

It should look like this:

#!/system/bin/sh
echo '0' > /sys/android_touch/sweep2wake

# sweep2wake enabler/disabler
# 0 for disabled.
# 1 for enabled.
# 2 for enabled with backlight.

And there will be "OK" at the bottom if it is executed

Ok the boot.img is the correct one. Try to copy the modules to your SDcard and then move them to /system/lib/modules with a File Exlorer (ES FIle Explorer will do fine). Delete the old ones before that. Then long press on the file - Properties - set the permissions

I guess the adb remount command didn't worked for you too
[HTC Desire S] dmatik:
What do you mean "OK" at the bottom?

The script should run on the phone start up, right?

I rechecked everything several time already, all looks fine... Is there a way to see logs of the phone start up and see why this script is failing (if it is failing)?
[HTC Desire S] alfredino85:
flashable zip

I have created a flashable zip for me for s-off user. I have tested it with my desire s s-off and hboot 7.xx.

The w2w is anabled with backlight.

md5sum: a99af461d1344f3d483ce36cc9aa03f1
[HTC Desire S] amidabuddha:
Try with a boot.img for sense ICS from the instructions for htcdev users it the first post. Just flash it in fastboot, no other steps

Sent from my HTC Desire S
[HTC Desire S] gsimeonov:
On JB?

amidabuddha, can this kernel be used on JB? I'm on Andromadus and also using 3.0.41.

Thanks!
[HTC Desire S] amidabuddha:
Sorry, it is for Sense only. It will boot on AOSP but a lot of stuff will be broken

Sent from my HTC Desire S
[HTC Desire S] ch.armin:
Hey, does this kernel work with the new release of infinity?

i installed infinity, then tried to install your kernel with the flashable zip from alfredino85 and now i stuck at the virtuous logo.

what did i wrong? i'm not soff with htc dev

thanx for your help!!
[HTC Desire S] amidabuddha:
Yes actually the reason for making this kernel was exactly Virtuous Infinity.

I am on it right now with this kernel.

About your issue - do you see something about flashable zips in the first post? Just follow the instructions and enjoy flawless Sense 4 :)

Sent from my HTC Desire S