[MODULE] PNG patch for OP5T OPLongshot

Search This thread

angelsel

Senior Member
Jan 16, 2011
50
168
Singapore
This module patches OPLongshot's code so that it produces PNG screenshots, as it should, instead of JPEG screenshots (ew!). It patches only the VDEX/ODEX files, which have no signature on them — only the APK is signed, which we do not modify, so OPLongshot still retains system signature privileges. The original APK is included to avoid version mismatches (although I don't think there will be much issue even if it isn't includd).

Note that the OPLongshot was taken from the OnePlus 5T's system image. YMMV for other devices on OxygenOS (or even HydrogenOS?).

The current version uses the version of OPLongshot from OnePlus 5T OxygenOS 5.1.0/5.1.1 (same), with version 1.1.0.180328153957.6a699c8.

Remember to clear Dalvik/ART cache after installing this.

GitHub repository (also details of how the patch is done).
Download zip (temporary until the Magisk repo bot refreshes)
 
Last edited:

shadowstep

Senior Moderator / Moderator Committee
Staff member
Jun 6, 2014
6,343
15,157
32
Ambala Cantt
OnePlus 9R
Could you upload the APK and odex/vdex files?

I've attached the latest the OPLongshot folder (taken from the latest OB14 for the OP5 and zipped). Looking forward to the modifications for this version as well for the OP5, whenever you get the time. Thank you! :)
 

Attachments

  • OPLongshot-OP5-OB14.zip
    670.6 KB · Views: 252
  • Like
Reactions: PoloRiva

angelsel

Senior Member
Jan 16, 2011
50
168
Singapore
This was meant for the OnePlus 5T stable builds only (as the title states); I don't use the beta builds, nor do I own a OnePlus 6. That the modified vdex even worked on the beta builds and non-5T builds was not intentional.

Someone else can follow the method I have detailed to create modules for the OnePlus 6 and the 5T open betas.

The current version works on OxygenOS 5.1.5 for OnePlus 5T (the APK did not change from 5.1.4 to 5.1.5).
 
  • Like
Reactions: amihir

tanish2k09

Senior Member
Jun 21, 2014
1,811
2,199
This was meant for the OnePlus 5T stable builds only (as the title states); I don't use the beta builds, nor do I own a OnePlus 6. That the modified vdex even worked on the beta builds and non-5T builds was not intentional.

Someone else can follow the method I have detailed to create modules for the OnePlus 6 and the 5T open betas.

The current version works on OxygenOS 5.1.5 for OnePlus 5T (the APK did not change from 5.1.4 to 5.1.5).
About vdex2dex, did you use it with the entire AOSP tree or do you have a standalone version with dependencies?
If you do have a standalone version (which I couldn't find) can you provide it?
 

zland

New member
Sep 27, 2013
3
2
Florida
Is there any timeframe on when Pie support for this module will be implemented? It worked fine for me in the previous beta version, and now I can only take screenshots with the module disabled since I updated my OP5T today. :(
 

moeq123

Member
Jan 18, 2018
27
10
Is there any timeframe on when Pie support for this module will be implemented? It worked fine for me in the previous beta version, and now I can only take screenshots with the module disabled since I updated my OP5T today. :(

Yes, we need this mod. Sadly I can't do it myself.. but maybe I can help you out with the needed files, OP?

OP Longshot seem to still be at ver. 1.1.0...
but there is a new folder inside the path of OP Longshot called "lib". Inside that folder is a folder called arm64, and inside arm64 are two files calling "libencryptjni.so" and "op_encrypt.so" maybe these are the reasons the old magisk module won't work? i don't know for sure, but i know that these folders and files aren't present in the magisk module.

I would buy you a beer OP, for updating this mod. :good:
 

tanish2k09

Senior Member
Jun 21, 2014
1,811
2,199
Yes, we need this mod. Sadly I can't do it myself.. but maybe I can help you out with the needed files, OP?

OP Longshot seem to still be at ver. 1.1.0...
but there is a new folder inside the path of OP Longshot called "lib". Inside that folder is a folder called arm64, and inside arm64 are two files calling "libencryptjni.so" and "op_encrypt.so" maybe these are the reasons the old magisk module won't work? i don't know for sure, but i know that these folders and files aren't present in the magisk module.

I would buy you a beer OP, for updating this mod. :good:
I followed the instructions as mentioned in the GitHub readme, and I ended up successfully getting a modified version.

Sadly though, it doesn't seem to work on android P
 
  • Like
Reactions: moeq123

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    This module patches OPLongshot's code so that it produces PNG screenshots, as it should, instead of JPEG screenshots (ew!). It patches only the VDEX/ODEX files, which have no signature on them — only the APK is signed, which we do not modify, so OPLongshot still retains system signature privileges. The original APK is included to avoid version mismatches (although I don't think there will be much issue even if it isn't includd).

    Note that the OPLongshot was taken from the OnePlus 5T's system image. YMMV for other devices on OxygenOS (or even HydrogenOS?).

    The current version uses the version of OPLongshot from OnePlus 5T OxygenOS 5.1.0/5.1.1 (same), with version 1.1.0.180328153957.6a699c8.

    Remember to clear Dalvik/ART cache after installing this.

    GitHub repository (also details of how the patch is done).
    Download zip (temporary until the Magisk repo bot refreshes)
    4
    I have updated the module, based on OOS OB20 (OP5T) but should also work for OB22 (OP5). Cheers. :cowboy:
    2
    The latest update works only on Pie. Also, pie for 5T is currently on Beta, so most users don't have it.
    Whilst developer's enthusiasm is to be understood, a good practice would be to upload a second module in magisk repo, for Pie and leave the Oreo one largely available.
    I had to uninstall due to this issue.

    v8 of this module doesn't work on my OxygenOS 5.1.2 Oreo, Magisk 18.1. Breaks the screenshot feature. [emoji20]
    Pie only?

    Sent with much love & Android. OnePlus 5T

    Here's a version for Oreo, if anyone is still on it.

    (It is the same as this commit, but I changed the module ID so Magisk Manager will not show it as out-of-date.)

    The module is still working with 9.0.3 but the texts in the share menu are wrong Is there anyone else experiencing this?

    The latest version fixes this... at least on OOS 9.0.4.
    2
    Are you going to port it to OnePlus 3/3T devices?
    2
    Is there any timeframe on when Pie support for this module will be implemented? It worked fine for me in the previous beta version, and now I can only take screenshots with the module disabled since I updated my OP5T today. :(