[Recovery Scripts] I777/S959G make-over scripts for I9100 ROMs

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
Hello fellow XDA users and developers, today I bring you four flashable scripts for I9100 ROMs on the I777/S959G Phones to completely make any I9100 ROM work on the two mentioned. UPDATE: KitKat flashable zips ready for download and might work for 4.3, 4.2, 4.1 and 4.0 ROMs on the I777/S959G. Feedback is welcome and I know it's a small hack but it's my first flashable mod for android :D:D:D

The Zips do the following:

For Lollipop ROMs only, you have been warned!:

I777_&_180.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and 180 LCD density

I777_&_240.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 240 LCD density

S959G_&_180.zip = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 180 LCD density

S959G_&_240.zip = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 240 LCD density

For Kit Kat ROMs:

I777_&_180_KK.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, and 180 LCD density

I777_&_240_KK.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, and and 240 LCD density

S959G_&_180_KK.zip = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, and and 180 LCD density

S959G_&_240_KK.zip = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, and and 240 LCD density

Patcher.zip = Includes a batch file with ADB, sec_touchkeys.kl and Telecom.apk for Lollipop users only, all fixes above are included, model to either SGH-I777/S959G, 240 or 180 DPI and Telecom.apk for patching in a single batch file.

Thank @dimoochka for the Telecom.apk and I hope you don't get mad at me dimoochka for including your hack, it's only in my zip for people who don't want to mess with /system files or if they feel like they might mess something up in the ROM with the call bug issue
If any issues occur in CWM or TWRP, let me know in a PM and I'll try to rework my zips for you guys and I hope I didn't post this in the wrong forum. ^^;
 

Attachments

Last edited:

coolerboyj

Member
Jan 6, 2015
41
13
0
Hello fellow XDA users and developers, today I bring you four flashable scripts for I9100 ROMs on the I777/S959G Phones to completely make any I9100 ROM work on the two mentioned.

The Zips do the following and currently work for lollipop only (also fixes the call out bug where you have to toggle speakerphone on and then off to hear the the other person), Kit Kat versions coming soon

I777_&_180.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and 180 LCD density

I777_&_240.zip = Sets the model to SGH-I777, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 240 LCD density

S959G_&_180.zip = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 180 LCD density

S959G_&_240 = Sets the model to SGH-S959G, replaces the sec_touchkey.kl in /system/usr/keylayout, replaces the Telecom.apk in /system/priv-app and and 240 LCD density

Thank @dimoochka for the Telecom.apk and I hope you don't get mad at me dimoochka for including your hack, it's only in my zip for people who don't want to mess with /system files or if they feel like they might mess something up in the ROM with the call bug issue
If any issues occur in CWM or TWRP, let me know in a PM and I'll try to rework my zips for you guys and I hope I didn't post this in the wrong forum. ^^;
Do I flash this before a rom or after the rom (and before gapps?)
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
Do I flash this before a rom or after the rom (and before gapps?)
I9100 ROM first then one of my zips, if it don't have the KK at the end then it's for I9100 Lollipop ROMs for the callout bug to fix it but you can flash before or after Gapps is installed on the device. It don't matter as long as you have the ROM (any I9100 ROM since the kernel in any I9100 ROM works with the I777/S959G but the only hardware keys that would work before my zips are the Menu key and Back keys) installed first the order after the ROM is flashed don't matter.

Order:
ROM (I9100/I777/S959G)
I777_&_240 for Lollipop for the callbug fix or I777_&_240_KK for Kit Kat, No call bug issue
Gapps for that ROM
Maybe some extra zips?
 
Last edited:

radoo7701

Senior Member
Jun 27, 2014
272
158
73
Eureka Springs
I9100 ROM first then one of my zips, if it don't have the KK at the end then it's for I9100 Lollipop ROMs for the callout bug to fix it but you can flash before or after Gapps is installed on the device. It don't matter as long as you have the ROM (any I9100 ROM since the kernel in any I9100 ROM works with the I777/S959G but the only hardware keys that would work before my zips are the Menu key and Back keys) installed first the order after the ROM is flashed don't matter.

Order:
ROM (I9100/I777/S959G)
I777_&_240 for Lollipop for the callbug fix or I777_&_240_KK for Kit Kat, No call bug issue
Gapps for that ROM
Maybe some extra zips?
I think this is somewhere in the forum but I haven't found it yet. How do you flash an i9100 rom when you get the error saying you have the wrong model phone (i777)?

Sent from my SAMSUNG-SM-G890A using XDA Free mobile app
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
I think this is somewhere in the forum but I haven't found it yet. How do you flash an i9100 rom when you get the error saying you have the wrong model phone (i777)?

Sent from my SAMSUNG-SM-G890A using XDA Free mobile app

open the zip in WinRAR and find the updater-script in META-INF\com\google\android\updater-script and remove this line, it will vary from I9100 ROM to ROM.
Find this line and remove up to either ui_print or mount
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") + ".");
 
  • Like
Reactions: radoo7701

radoo7701

Senior Member
Jun 27, 2014
272
158
73
Eureka Springs
Thanks, I was able to flash the rom (Validus 8.1.) However the soft keys are not working properly with your fix. (I flashed i777 & 240 zip) The back button and search button don't work. The home button functions as the back button. The menu button works. This is not a big deal as I can use Nav buttons, but they do take up precious screen space.

Sent from my SAMSUNG-SM-G890A using XDA Free mobile app
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
Thanks, I was able to flash the rom (Validus 8.1.) However the soft keys are not working properly with your fix. (I flashed i777 & 240 zip) The back button and search button don't work. The home button functions as the back button. The menu button works. This is not a big deal as I can use Nav buttons, but they do take up precious screen space.

Sent from my SAMSUNG-SM-G890A using XDA Free mobile app
what recovery are you using to flash this script?
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
I might just take these down since I can't figure out why they don't work
!!!!!!!!! NEW !!!!!!!!!!!!!!!
Patcher.zip

A batch file version of the flashable zips, since my zips failed this might work for some of you people

WARNING, The Telecom.apk patch could brick your device, USE WITH CAUTION.
Please report feedback back to this forum if not working like the other patches i made.
 

radoo7701

Senior Member
Jun 27, 2014
272
158
73
Eureka Springs
!!!!!!!!! NEW !!!!!!!!!!!!!!!
Patcher.zip

A batch file version of the flashable zips, since my zips failed this might work for some of you people

WARNING, The Telecom.apk patch could brick your device, USE WITH CAUTION.
Please report feedback back to this forum if not working like the other patches i made.
I'll try it out.

Sent from my GT-I9100 using XDA Free mobile app

---------- Post added at 02:04 AM ---------- Previous post was at 01:56 AM ----------

!!!!!!!!! NEW !!!!!!!!!!!!!!!
Patcher.zip

A batch file version of the flashable zips, since my zips failed this might work for some of you people

WARNING, The Telecom.apk patch could brick your device, USE WITH CAUTION.
Please report feedback back to this forum if not working like the other patches i made.
So, since it's a batch file, do I need to flash it from my computer? I tried it with CWM and that didn't work. :confused:

Sent from my GT-I9100 using XDA Free mobile app
 

cidlover

Senior Member
Oct 30, 2013
442
113
73
29
Parkersburg
I'll try it out.

Sent from my GT-I9100 using XDA Free mobile app

---------- Post added at 02:04 AM ---------- Previous post was at 01:56 AM ----------



So, since it's a batch file, do I need to flash it from my computer? I tried it with CWM and that didn't work. :confused:

Sent from my GT-I9100 using XDA Free mobile app
You connect your phone and then open the RUNME.bat file and select the options you want
 
  • Like
Reactions: radoo7701
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