[Kernel] FPBug: First really stable 4.x kernel for the Galaxy S2 AT&T i777

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
FPBug: Meet the very first stable kernel for the Galaxy S2 i9100, S2 AT&T i777, S2 Epic 4G Touch d710 and Note n7000 since Gingerbread days

Every single Android 4.x kernel for these devices has had a serious bug (FPBug) that randomly corrupts the state of processes, starting with Samsungs's stock ICS and JB and spanning every custom kernel out there newer than Gingerbread.

Please refer to the main thread for details.

Downloads

You will find kernels for various CyanogenMod releases, M-snapshots and nightlies here.

XDA:DevDB Information
FPBug-i777, Kernel for the AT&T Samsung Galaxy S II SGH-I777

Contributors
Lanchon
Source Code: https://www.androidfilehost.com/?w=files&flid=22853

Kernel Special Features:

Version Information
Status: Testing

Created 2014-12-19
Last Updated 2014-12-19
 

badger109

Member
Aug 17, 2010
24
0
0
looks promising! Can't wait for this to get worked into other i777 kernels
I haven't flashed anything since march but CM10.3 still seems like a step backwards. i guess i can wait a little longer

In the mean time, can I flash your music bug fix? Does it do the same thing? I'm on a 4.4.2 slimrom

fwiw I think we can flash an i1900 rom then flash a compatible i777 kernel after. this might be an easy way to get i777 users up to speed. just an idea
 
Last edited:

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
looks promising! Can't wait for this to get worked into other i777 kernels
I haven't flashed anything since march but CM10.3 still seems like a step backwards. i guess i can wait a little longer

In the mean time, can I flash your music bug fix? Does it do the same thing? I'm on a 4.4.2 slimrom

fwiw I think we can flash an i1900 rom then flash a compatible i777 kernel after. this might be an easy way to get i777 users up to speed. just an idea
cm nightlies stopped on 10.2 (4.3). i can try and build a cm 11 kernel for i777 but have no idea if it would work. you could flash it atop a recent i9100 build. would u like to try that? note that if the device doesnt boot youll need to use heimdall/odin, since unfortunately recovery shares the main kernel.

would u like me to use nightly or snapshot branch?
 

badger109

Member
Aug 17, 2010
24
0
0
cm nightlies stopped on 10.2 (4.3). i can try and build a cm 11 kernel for i777 but have no idea if it would work. you could flash it atop a recent i9100 build. would u like to try that? note that if the device doesnt boot youll need to use heimdall/odin, since unfortunately recovery shares the main kernel.

would u like me to use nightly or snapshot branch?
Thanks for the offer, but it wouldn't be worth your time. For one thing, I have no idea what I'm doing. 2nd, I thought that might be common practice but apparently not. All I know is that I did it before using a i9000 slim rom with render broken i777 kernel.

I'm not even familiar with the music/sd card bug, but it seems cool that it was fixed. Thanks
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
Thanks for the offer, but it wouldn't be worth your time. For one thing, I have no idea what I'm doing. 2nd, I thought that might be common practice but apparently not. All I know is that I did it before using a i9000 slim rom with render broken i777 kernel.

I'm not even familiar with the music/sd card bug, but it seems cool that it was fixed. Thanks
it wouldnt be a problem for me to try. but this fix is spreading like wildfire to other kernels so i think your best bet would be to download a proper one with the fix incorporated?

meh... i'll try to build one anyway see what happens
 

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
Thanks for the offer, but it wouldn't be worth your time. For one thing, I have no idea what I'm doing. 2nd, I thought that might be common practice but apparently not. All I know is that I did it before using a i9000 slim rom with render broken i777 kernel.

I'm not even familiar with the music/sd card bug, but it seems cool that it was fixed. Thanks
here it is, it'd be called a nightly if cm did them. care to try?
if it works i'll output trim kernels to speed up these devices


1) download i9100 latest nightly, make a copy of it, name it i9100-mod.zip.

2) edit file "/META-INF/com/google/android/updater-script" inside i9100-mod (it's a text file), remove these lines that check the device type:
Code:
assert(getprop("ro.product.device") == "galaxys2" ||
       getprop("ro.build.product") == "galaxys2" || 
       getprop("ro.product.device") == "i9100" ||
       getprop("ro.build.product") == "i9100" || 
       getprop("ro.product.device") == "GT-I9100" ||
       getprop("ro.build.product") == "GT-I9100" || 
       getprop("ro.product.device") == "GT-I9100M" ||
       getprop("ro.build.product") == "GT-I9100M" || 
       getprop("ro.product.device") == "GT-I9100P" ||
       getprop("ro.build.product") == "GT-I9100P" || 
       getprop("ro.product.device") == "GT-I9100T" ||
       getprop("ro.build.product") == "GT-I9100T" || 
       getprop("ro.product.device") == "SC-02C" ||
       getprop("ro.build.product") == "SC-02C" ||
       abort("This package is for device: galaxys2,i9100,GT-I9100,GT-I9100M,GT-I9100P,GT-I9100T,SC-02C; this device is " + getprop("ro.product.device") + "."););
3) remove the 3 files in "/META-INF/com/google/android/updater-script" inside i9100-mod (but not the directory!), these are the zip signature.

4) get these files on your phone:
-my kernel
-unmodified latest i9100 nightly (call it i9100-std)
-the modded version (i9100-mod)
-another working rom you use (recommended)
-and a separate kernel/recovery if you use one (recommended)

5) flash my kernel then reboot recovery (usually an option in "advanced").
-if it boots, my kernel worked
-IF NOT, YOU'LL NEED ODIN OR HEIMDALL TO FLASH ANOTHER KERNEL

6) flash i9100-std. it should fail, but test try it! if it fails, flash i9100-mod.

7) flash my kernel again

8) wipe, reboot!
 

Attachments

Lanchon

Senior Member
Jun 19, 2011
2,703
4,455
0
I sincerely appreciate the effort that you, @zeitferne, @cgx, & @Entropy512 have put into figuring this out. If that wasn't enough, there are now published patchsets, which makes the fix joyously simple to implement (I should probably wait until I have success to throw such accolades).

Cheers & happy flashing
-Cyril
@cgx kickstarted this whole thing, his initial debugging and discovery brought the issue to light and was instrumental for everything that happened next
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone