[BUG FIX] [ Jiayu S3 & Others ] StageFright [LP 5.1] [MT6752 & MT6732 & MT6735]

Status
Not open for further replies.
Search This thread

superdragonpt

Recognized Developer
Apr 27, 2013
4,940
19,301
Lisbon / Taiwan / USA
www.caixamagica.pt
[BUG FIX] [ Jiayu S3 & Others ] StageFright [LP 5.1] [MT6752 & MT6732 & MT6735]

h1oxrGc.jpg










Hi there

On this thread, you'll find the Fix for the Stagefright Bug(s) for the Jiayu S3 LP 5.1 based Roms


It should also work without any issues on others MT6752 /32 based devices, running Lollipop 5.1

Confirmed working on the following MT6752 SoC Devices
  • Jiayu S3 (dah ! )
  • iOcean Rock MT6752
  • ZOPO ZP920
  • Lenovo K3 Note


Confirmed working on the following MT6732 SoC Devices
  • UMI Hammer
  • Elephone P6000

Confirmed working on the following MT6735 SoC Devices
  • Kingzone N5


Please give feedback, if your using another MT6752 /6732 device



What is the Stagefright bug(s) ?

Read This:
http://www.xda-developers.com/stagefright-explained-the-exploit-that-changed-android/


Which stagefright bugs are patched by this ?
ALL the present StageFright known bugs are patched ;)

  • CVE-2015-1538
  • CVE-2015-1539
  • CVE-2015-3824
  • CVE-2015-3827
  • CVE-2015-3828
  • CVE-2015-3829
  • CVE-2015-3864



How can i check If im vulnerable ?
Download the Stagefright Detector by: Zimperium INC
--> Play Store

After Patching, should be like this:


6bvvdmJ.png




How to install?
  • Make a backup first (just in case) ...
  • You'll need a custom recovery for LP (TWRP / CWM , etc)
  • Just flash the JiayuS3_Stagefright_LP5.1_fix_v3.zip
  • Reboot

For other devices that don't use the mmcblk0p17 as /system partition:
The flash may fail, if that's your case, simply extract all the files, and push via adb to your device.

This was (of course ) compiled from source ...


Download:

Build: v3

https://www.androidfilehost.com/?fid=24052804347811921


Older Downloads





ChangeLogs:

Build v3
  • Fix Video dec / enc issues
  • Fix: Other small issues related to MTK's OMX

Build v2

  • Youtube Videos Decoding, now working
  • MxPlayer / VLC , etc will decode videos (SW only), HW is still Broken

Build v1
  • Initial build

Your most welcome, to included this on your Rom(s), this is an severe exploit(s), but, do give credits, and please leave a link to this thread ...


Thanks to:

  • Zimperium for finding the exploits
  • CyanogenMod, for providing the commits

Myself for compiling it ;)

  • DerTeufel1980 & Jiayu Deutschland, for all the help


Cheers
 
Last edited:

Dior DNA

Senior Member
Aug 17, 2015
1,555
660
Feeling much better now :)
I kind of wonder how the Stagefright Detector by Zimperium INC works though, sure must be clever, not?
 
Last edited:

mze1

Senior Member
Dec 26, 2013
358
82
Doesn't exactly work on mine. Running official AOSP 5.1 and it created distorted graphics on a game after patching.
Replaced it with original files and it was okay again.
 

genesisalgor

Senior Member
May 22, 2013
2,531
1,992
Rio de Janeiro
Doesn't exactly work on mine. Running official AOSP 5.1 and it created distorted graphics on a game after patching.
Replaced it with original files and it was okay again.

Yeah unfortunately this happened with me too, Stagefright was of course fixed but so I tried to see a video on youtube and the video was distorted, checked the ones inside gallery same problem. So reverted back to stock files and it worked again.

Rom: 5.1 Unofficial 01072015 with Xposed v72 5.1 (don't know if it matter)
Issue: Distorted graphics

Attached a picture of a video playing in my gallery to give a good idea of what is happening.
 

Attachments

  • Screenshot_2015-09-04-00-53-26.jpg
    Screenshot_2015-09-04-00-53-26.jpg
    134.1 KB · Views: 586
  • Like
Reactions: mze1

cryptonent

Member
Jul 15, 2015
36
8
Kruševac
Doesn't work on IOcean M6752 - distorted video issue.

---------- Post added at 09:58 AM ---------- Previous post was at 09:39 AM ----------

How to revert back to stock files? I dont have backup.
 
  • Like
Reactions: nonedifferent

mze1

Senior Member
Dec 26, 2013
358
82
So if i understand this correctly, it only creates an issue on videos as i have only tried a game after applying the patch.
The graphical issue was indeed on a video part within the game. I haven't tested it further and directly replaced those files.
I may be wrong though. :p
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,940
19,301
Lisbon / Taiwan / USA
www.caixamagica.pt
I suppose those glitches are caused by using "aosp" mediatek sources as base, instead of modified customer sources.... We (more superdragonpt than me) are trying to fix it. No promises though.

^^ This

Plus, The Mediatek OMX and the 64arm makes it harder to properly check.



New patch Build:

ChangeLogs:

v2

  • Youtube Videos Decoding, now working
  • MxPlayer / VLC , etc will decode videos (SW only), HW is still Broken



It was a long night, getting around this... it's already 12h here... need to sleep

cheers ;)
 

Metrino

Senior Member
Feb 4, 2015
480
143
Milan
and (#1) /system/lib64/stagefright.so
and (#2) all 57 other /system/lib*/stagefright*.so

I checked modified files, I found just stagefright.so was modified.
I think even stagefrighthw.so could be touched by superdragonpt's patch, others are probably called from the previous ones, so they does not affect the issue and are not patched.
 

Metrino

Senior Member
Feb 4, 2015
480
143
Milan
First version touched just libstagefright.so, under lib and under lib64 folder
Second version touched all files you mentioned.
cryptonent was asking how to revert from first version patch ;)
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    [BUG FIX] [ Jiayu S3 & Others ] StageFright [LP 5.1] [MT6752 & MT6732 & MT6735]

    h1oxrGc.jpg










    Hi there

    On this thread, you'll find the Fix for the Stagefright Bug(s) for the Jiayu S3 LP 5.1 based Roms


    It should also work without any issues on others MT6752 /32 based devices, running Lollipop 5.1

    Confirmed working on the following MT6752 SoC Devices
    • Jiayu S3 (dah ! )
    • iOcean Rock MT6752
    • ZOPO ZP920
    • Lenovo K3 Note


    Confirmed working on the following MT6732 SoC Devices
    • UMI Hammer
    • Elephone P6000

    Confirmed working on the following MT6735 SoC Devices
    • Kingzone N5


    Please give feedback, if your using another MT6752 /6732 device



    What is the Stagefright bug(s) ?

    Read This:
    http://www.xda-developers.com/stagefright-explained-the-exploit-that-changed-android/


    Which stagefright bugs are patched by this ?
    ALL the present StageFright known bugs are patched ;)

    • CVE-2015-1538
    • CVE-2015-1539
    • CVE-2015-3824
    • CVE-2015-3827
    • CVE-2015-3828
    • CVE-2015-3829
    • CVE-2015-3864



    How can i check If im vulnerable ?
    Download the Stagefright Detector by: Zimperium INC
    --> Play Store

    After Patching, should be like this:


    6bvvdmJ.png




    How to install?
    • Make a backup first (just in case) ...
    • You'll need a custom recovery for LP (TWRP / CWM , etc)
    • Just flash the JiayuS3_Stagefright_LP5.1_fix_v3.zip
    • Reboot

    For other devices that don't use the mmcblk0p17 as /system partition:
    The flash may fail, if that's your case, simply extract all the files, and push via adb to your device.

    This was (of course ) compiled from source ...


    Download:

    Build: v3

    https://www.androidfilehost.com/?fid=24052804347811921


    Older Downloads





    ChangeLogs:

    Build v3
    • Fix Video dec / enc issues
    • Fix: Other small issues related to MTK's OMX

    Build v2

    • Youtube Videos Decoding, now working
    • MxPlayer / VLC , etc will decode videos (SW only), HW is still Broken

    Build v1
    • Initial build

    Your most welcome, to included this on your Rom(s), this is an severe exploit(s), but, do give credits, and please leave a link to this thread ...


    Thanks to:

    • Zimperium for finding the exploits
    • CyanogenMod, for providing the commits

    Myself for compiling it ;)

    • DerTeufel1980 & Jiayu Deutschland, for all the help


    Cheers
    12
    Build v3

    Hi , new build is UP ;)


    ChangeLogs:

    Build v3
    • Fix Video dec / enc issues
    • Fix: Other small issues related to MTK's OMX


    cheers







    6
    @superdragonpt So we are going to have a V3 that completely fixes the issue? :p

    I didnt sleep at all, and im currently at work ...
    I lefted it compiling again with some fixs, will get back to it, when i get home ...

    The exploit(s) are fixed in both builds v1 & v2., and that's the most important thing, this is one (if not the most) badass exploit in Android, and i released it, as soon as it was possible ...

    --> Problem here, is that it broke same codecs decs. (side problem.)
    Since im running another diff build, it works without this decoder issues ...
    Now i need to diff, and adapt/check for this source ...

    Lets see, the weekend is just around the corner...

    Your safe now, and that's all it matters ;)
    cheers
    6
    I suppose those glitches are caused by using "aosp" mediatek sources as base, instead of modified customer sources.... We (more superdragonpt than me) are trying to fix it. No promises though.

    ^^ This

    Plus, The Mediatek OMX and the 64arm makes it harder to properly check.



    New patch Build:

    ChangeLogs:

    v2

    • Youtube Videos Decoding, now working
    • MxPlayer / VLC , etc will decode videos (SW only), HW is still Broken



    It was a long night, getting around this... it's already 12h here... need to sleep

    cheers ;)
    6
    Hi

    There's a build v3 coming soon, that will fix the video decoding issues, on some devices that suffer this bug




    Does this work on 5.0, or is it only for 5.1?
    This was compiled on LP 5.1 MTK source.

    You can try, but Make a backup ...


    cheers