Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,143 Members 52,371 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Tungstwenty
Old
#21  
Tungstwenty's Avatar
Recognized Contributor - OP
Thanks Meter 4210
Posts: 1,775
Join Date: Nov 2011

 
DONATE TO ME
Quote:
Originally Posted by The Undertakerr View Post
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.

Device: Xperia Z (C6603)
ROM: Stock 4.4.2 10.5.A.0.230
Locked bootloader, rooted, XZDualRecovery
Retired device: Samsung Galaxy S2 (GT-I9100)

My threads that you might find useful:

SUPERCOMPUTER: what it sounded like before you bought it
The Following 2 Users Say Thank You to Tungstwenty For This Useful Post: [ Click to Expand ]
 
skyn3t
Old
#22  
Member
Thanks Meter 1
Posts: 92
Join Date: Dec 2006
Location: Linda a Velha
Hi,

i installed the patch, but the GPS don't work now. Can anyone confirm this?
 
The Undertakerr
Old
#23  
Senior Member
Thanks Meter 175
Posts: 319
Join Date: 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!
 
Tungstwenty
Old
#24  
Tungstwenty's Avatar
Recognized Contributor - OP
Thanks Meter 4210
Posts: 1,775
Join Date: Nov 2011

 
DONATE TO ME
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.

Device: Xperia Z (C6603)
ROM: Stock 4.4.2 10.5.A.0.230
Locked bootloader, rooted, XZDualRecovery
Retired device: Samsung Galaxy S2 (GT-I9100)

My threads that you might find useful:

SUPERCOMPUTER: what it sounded like before you bought it
The Following 4 Users Say Thank You to Tungstwenty For This Useful Post: [ Click to Expand ]
 
The Undertakerr
Old
#25  
Senior Member
Thanks Meter 175
Posts: 319
Join Date: Apr 2011
Quote:
Originally Posted by Tungstwenty View Post
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!
 
Tungstwenty
Old
#26  
Tungstwenty's Avatar
Recognized Contributor - OP
Thanks Meter 4210
Posts: 1,775
Join Date: Nov 2011

 
DONATE TO ME
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.

Device: Xperia Z (C6603)
ROM: Stock 4.4.2 10.5.A.0.230
Locked bootloader, rooted, XZDualRecovery
Retired device: Samsung Galaxy S2 (GT-I9100)

My threads that you might find useful:

SUPERCOMPUTER: what it sounded like before you bought it
 
The Undertakerr
Old
#27  
Senior Member
Thanks Meter 175
Posts: 319
Join Date: Apr 2011
Quote:
Originally Posted by Tungstwenty View Post
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!
 
43358005
Old
#28  
Junior Member
Thanks Meter 30
Posts: 15
Join Date: Oct 2011
Quote:
Originally Posted by Tungstwenty View Post
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).
 
do3in
Old
#29  
do3in's Avatar
Senior Member
Thanks Meter 25
Posts: 163
Join Date: Aug 2009
Location: Timisoara
Quote:
Originally Posted by skyn3t View Post
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.
Samsung S3 I9300 unlocked
_________________________________________________
1st Rom Imperium v13.6 (JB 4.1.2)
2nd Rom MIUI v5 (JB 4.2.2) EN SGS3
Kernel Googy-Max Kernel 1.7.7
Theme Elegant White Galaxy S4
Recovery PhilZ Touch
_________________________________________________
 
mzone1510
Old
#30  
Senior Member
Thanks Meter 19
Posts: 334
Join Date: Jan 2011
Location: Goa\Kuwait
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?
Landline >W710i > Xperia x10 >Galaxy SL I9003>Galaxy SII I9100>Galaxy S4 i9505/Nexus 7 2012


I9100 - JB 4.2.2, CM 10.1

Nexus 7 - Paranoid Android

I9505 - Stock 4.2.2

Tags
4.0.4, camera, fix, stock, video
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes