Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

[FIX][STOCK][4.0.4][14/07]Working Camera + Video on 4.0.4 with non-stock kernels

OP Tungstwenty

18th July 2012, 08:26 PM   |  #21  
Tungstwenty's Avatar
OP Recognized Contributor
Thanks Meter: 4,408
 
1,824 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by The Undertakerr

Thanks for the above info!

Best to repeat this message in the Siya thread, and/or send Gokhanmoral this info by PM. He might be able to use Hardcore's sources to fix bluetooth in Siya kernel...


Edit: I see you allready did that. Thanks again! Maybe soon we can have working bluetooth with a custom kernel, that would be great!

I just replied in the Siyah thread. I looked at the sources (patch / diff, really) and there's nothing there related with bluetooth changes, unfortunately.
The Following 2 Users Say Thank You to Tungstwenty For This Useful Post: [ View ]
20th July 2012, 10:54 AM   |  #22  
Member
Flag São Domingos de Rana
Thanks Meter: 1
 
99 posts
Join Date:Joined: Dec 2006
More
Hi,

i installed the patch, but the GPS don't work now. Can anyone confirm this?
21st July 2012, 12:12 PM   |  #23  
Senior Member
Thanks Meter: 175
 
319 posts
Join Date:Joined: Apr 2011
Tungstwenty fixed the bluetooth on Samsung 4.0.4 Roms in Siyakernel!!!

@Tungstwenty, you truly are The Man.

You are rapidly becoming a legend here on XDA.

Can't thank you enough!!

@People, if you want working bluetooth on 4.0.4 Sammy Roms, go read the Siya read and don't forget to thank Tungstwenty&Gokhanmoral!
21st July 2012, 12:20 PM   |  #24  
Tungstwenty's Avatar
OP Recognized Contributor
Thanks Meter: 4,408
 
1,824 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Thanks!

Yesterday I decided to have a new look at what Krendelrus shared.
Even though hardcore's patch doesn't contain a direct fix for BT, I did dig into the N7000 sources from Samsung that he's using.
Since the BT chip is the same I decided to try replacing our driver with N7000's and it turns out they were more recent I guess and include the stuff that I9100 4.0.4 ROMs were expecting from the kernel.
The Following 4 Users Say Thank You to Tungstwenty For This Useful Post: [ View ]
21st July 2012, 12:43 PM   |  #25  
Senior Member
Thanks Meter: 175
 
319 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by Tungstwenty

Thanks!

Yesterday I decided to have a new look at what Krendelrus shared.
Even though hardcore's patch doesn't contain a direct fix for BT, I did dig into the N7000 sources from Samsung that he's using.
Since the BT chip is the same I decided to try replacing our driver with N7000's and it turns out they were more recent I guess and include the stuff that I9100 4.0.4 ROMs were expecting from the kernel.

Yesterday, I also tried to find a fix.

I found bluetooth traces in several frameworks:

-services.jar
-secframework.jar
-framework2.jar
-And many many bluetooth changes in framework.jar.

I compared LPG frameworks with LPM frameworks.

I compiled the above framework bluetooth related smali's with LPM frameworks.

All went ok, till I started working on framework.jar. Even the smallest bluetoothchange I made there, resulted in a not booting device

I spent hours on it; so, glad you fixed it the way it was supposed to, in the kernel!
21st July 2012, 12:58 PM   |  #26  
Tungstwenty's Avatar
OP Recognized Contributor
Thanks Meter: 4,408
 
1,824 posts
Join Date:Joined: Nov 2011
Donate to Me
More
What I tried before was changing not the framework but rather the libs, that interface the apps with the kernel (like was done for the camera+video).
But I didn't find a solution that way, and that's why I was convinced a fix would not be achievable unless a new kernel source release was made by Samsung. Well, they didn't do it for I9100 yet but what they did for N7000 was usable at least on the bluetooth part.
21st July 2012, 01:14 PM   |  #27  
Senior Member
Thanks Meter: 175
 
319 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by Tungstwenty

What I tried before was changing not the framework but rather the libs, that interface the apps with the kernel (like was done for the camera+video).
But I didn't find a solution that way, and that's why I was convinced a fix would not be achievable unless a new kernel source release was made by Samsung. Well, they didn't do it for I9100 yet but what they did for N7000 was usable at least on the bluetooth part.

Yes.

My thinking was to replace the LPM bluetooth libs+apks, with LPG bluetooth libs+apk's, and then make the changes to the framework-files which are connected with the bluetooth libs+apk's.

0% chance of success, but I thought to be maybe lucky once, lolllzzz

Glad it is properly fixed!
22nd July 2012, 02:05 PM   |  #28  
Junior Member
Thanks Meter: 30
 
15 posts
Join Date:Joined: Oct 2011
Thumbs up
Quote:
Originally Posted by Tungstwenty

There are plenty of people complaining about camera and video playback problems when using custom kernels on the newest 4.0.4 builds such as XXLQ5 or XWLPM .
I tried a few things and managed to find a fix for it.


Installation
Just take the CWM zip file and apply it on your ROM. It will leave a backup of the 2 files that will be replaced.

Removal
The Restore zip can be "installed" to remove the patched files and put back the original ones that were kept on your device.


Tested and working both for Camera preview and Video playback, on XWLPM.


Note: This is a temporary fix until the kernel devs have enough information to properly update their code, and when that happens this fix can be uninstalled.


Thanks mate!
This is really greate work! the fix also works in ZCLPL (The 4.0.4 builds for China).
23rd July 2012, 08:39 PM   |  #29  
do3in's Avatar
Senior Member
Flag Timisoara
Thanks Meter: 25
 
163 posts
Join Date:Joined: Aug 2009
More
Quote:
Originally Posted by skyn3t

Hi,

i installed the patch, but the GPS don't work now. Can anyone confirm this?

my gps is working. 2-3 mins. to fix satellites.
25th July 2012, 11:37 PM   |  #30  
Senior Member
Flag Goa\Kuwait
Thanks Meter: 19
 
337 posts
Join Date:Joined: Jan 2011
More
Are all kernels based on update 6 fully compatible (no camera/bt problems etc) with 4.04 stock roms? I know NEAK is but which others?

Thread Closed Subscribe to Thread

Tags
4.0.4, camera, fix, stock, video
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes