Official Moto X Stagefright Patched Libs!

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Hi fellow Moto X users!

I went and grabbed the latest brazil OTA with the stagefright fixes and patched the original T-Mobile 5.1 stagefright libraries with the patch files of the OTA and it worked! So I went ahead and did most of the heavy lifting for you and created new library files with the patch :)

These library files will not work with KitKat, thanks kicker22004 for confirming!

Here are the steps you need to perform...

0) Make sure that you are rooted
1) Move the Stagefright libraries (30 total) in the system/lib folder to somewhere on your phone's SD card
2) Download the zip to your phone/pc and extract the library files
3) Move the patched libraries to the system/lib folder
4) Set the permissions of each library file to rw-r-r (644)
5) Reboot your phone into Recovery/Bootloader and clear your cache (or Soft Reboot if you have Xposed/Gravity Box)
6) Boot up your phone and verify the patch by opening any Stagefright detector app and seeing if it has been fixed :)

If you are have issues with booting up after moving the patched libraries to the system/lib folder, make sure that the permissions are set correctly, run fix permissions in Recovery, clear your cache, then boot up.

If you still have issues after all of this, then delete the patched library files and restore the original library files, making sure you set the permissions and clear your cache!

IMPORTANT!!
If you want to take an OTA, you have to revert your system back to complete stock, otherwise the update zip will fail to work because the security checks will not pass, please use RSD-Lite or manually fastboot restore your phone to stock, do not try and hack your way past the security checks, YOU WILL HARD BRICK YOUR PHONE IF HACKED INCORRECTLY

Enjoy!
 

Attachments

Last edited:

Bhargav4591

Senior Member
Feb 25, 2013
183
70
58
29
Milwaukee
Hi fellow Moto X users!

I went and grabbed the latest brazil OTA with the stagefright fixes and patched the original T-Mobile 5.1 stagefright libraries with the patch files of the OTA and it worked! So I went ahead and did most of the heavy lifting for you and created new library files with the patch :)

Here are the steps you need to perform...

1) Make a backup of the 6 files shown here somewhere on your phone's SD card
2) Download these libraries to your phone
3) Copy or overwrite the libraries in the system/lib folder with the downloaded versions
4) Make sure that the permissions are set to rw-r-r (644)
5) Reboot your phone (or soft reboot if you have Gravity Box)
6) Verify by opening any stagefright detector app and seeing if it has been fixed :)

Enjoy!
Thanks for this ! Any idea if the same method can be used in KK 4.4.4 ?
 
  • Like
Reactions: St.Noigel

Kiristiba

Senior Member
Mar 14, 2011
295
86
0
Hmm, strange, i replaced the libraries, but my phone is still vulnerable :'(
The permissions are set correctly and I rebooted my phone before the test.
Are you sure the rest out the stagefright libraries are not needed for the patch?
 
Last edited:

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Hmm, strange, i replaced the libraries, but my phone is still vulnerable :'(
The permissions are set correctly and I rebooted my phone before the test.
Are you sure the rest out the stagefright libraries are not needed for the patch?
Ahh my bad, I forgot that I also used some of the AT&T libraries that may have had some fixes as well

So I went ahead and uploaded all of the stagefright libraries that were in my system/lib folder :)
 

Kiristiba

Senior Member
Mar 14, 2011
295
86
0
Ok, that did it, stagefright is fixed but there is something wrong now.
I cannot watch videos on YouTube or TED. I have a xt1053 running the Brazilian soak release flashed via twrp.
 

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Ok, that did it, stagefright is fixed but there is something wrong now.
I cannot watch videos on YouTube or TED. I have a xt1053 running the Brazilian soak release flashed via twrp.
Ahh interesting, it seems I am running into the same issue...

I'm downloading the 5.1 Brazilian stock 5.1 image and am going to try using those libs and the 6 patched libs to see if it fixes stagefright and allows you to watch youtube

EDIT: Success! I replaced the commonly used encoder/decoder libraries with their stock versions and I can watch Youtube, TED, and am not vulnerable to Stagefright :)

EDIT2: The OP zip has been updated!
 
Last edited:

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Worth noting ... the new VZW 5.1 release already includes patched libs ... so you don't need to do this if you have a XT-1060 and the VZW upgrade.
Correct

This is mainly for the Developer Edition & US Retail (XT1053) and GSM XT1058 Users, who are still waiting for a full patch for Stagefright, this will fix them until that OTA arrives :)
 

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
Yes, I did. Only change was TWRP recovery, but I restored to stock before taking the OTA.
Ahh then I am not sure why you phone would refuse to boot, you could attempt to re-flash the stock image and delete your user data then try the OTA and see if it sticks, otherwise we may have to wait for another release :/
 

mastarifla

Senior Member
Oct 3, 2010
485
293
0
Dallas, TX
So this won't work on 4.4.4, will cause phone to not boot past bootloader. Even after returning using a system backup I had weird issues with Google services. But got it back to normal. This is on a Republic Wireless version. Thanks for the patch tho.
Ok, thanks for the clarification, I'll add it to the OP that this wont work for KitKat
 

Emiliano55

Senior Member
Aug 13, 2012
87
18
0
Weird, I have an unlocked XT1053 dev edition with (i think) the AT&T rom (222.21.15.ghost_row.Retail.en.US) and I still didn't get the update.
 

Zaphodbblx

New member
Sep 13, 2015
4
0
0
Same here!

Be careful! Took this patch on XT1053 and got stuck at boot. Ended up having to flash stock 5.1 ROM to get the phone working again.
I'm running the 5.1 stock "debloated" XT1053 flashable rom available here on XDA(222.21.15 ghost_row.retail.en.us). On a unlocked gsm developer edition. So I won't be taking any ota updates.
Anyhow....
When I switched out the stage fright files and checked it came back as immune but the first time the phone rebooted It hung at the boot loader.I Had to dirty flash the rom to get it working again.
 
Last edited: