[MOD][XPOSED][v3.6.3] Keepchat - Save your Snapchats automatically!

Status
Not open for further replies.
Search This thread

craig@xatik

Senior Member
Mar 16, 2012
254
230
Twin Cities, MN
www.xatik.com
Thanks for the upload! I'll try and get to that tonight and at least add basic support for that.
I'm still on the hunt for the chat screenshot... This is my first time reverse engineering something so it's a slower process for me.

Also, with Mother's Day coming up this weekend I'll be pretty busy so if I can't figure anything out by tonight I'll pick it up again on monday.
 

saifownzu

Senior Member
May 9, 2014
59
1
Screenshot bug

Hey
Not sure if this is gonna be so helpful, but after checking in different tests, Screenshot notifications showup when I slide to the left to open the chat. & it rarely ever shows that I sent a screenshot unless I open the chat.
So i guess that might hint to what's wrong just incaseee you're still looking around for it :3
 

craig@xatik

Senior Member
Mar 16, 2012
254
230
Twin Cities, MN
www.xatik.com

dandroid13

Senior Member
Dec 19, 2010
3,652
1,910
Porto Alegre

theHOTNESS

Senior Member
Feb 9, 2012
68
110
Philadelphia
helpful hints

The problem, as already stated, lies in the new chat feature. More specifically however I noticed on a quick glance that there is a new class "ChatScreenshot" under the chat modelling directory. I'll try have a look at the source for Keepchat on the git repo in a while and see if I can modify it to handle the new code.

No need, just hook outgoing messages like Mailman to prevent ChatConversation from sending anything related to screenshots such as ChatMessage.MessageBody.Type.SCREENSHOT and it's related method that passes (it might not be "a" depending on version) a(paramChatConversation, paramChatScreenshot)

OR (overkill but effective) dive even lower and attack something like SnapUtils (see public void v() in model.ReceivedSnap for reference to how SnapUtils is handling this) ability to flag a snap then go remove screenshot_count from places such as model.server.chat.SnapStateMessage. there are so many places where the statuses are set and you have to be careful which ones you mess with...

hooking generic classes like SnapUtils or clientSnapStatus should b done with care as some are also used on messages received. models are also risky in this regard. stick to model.chat.server.* if you're going this route.

I think it's best and safest to hook at message passing layer like snapchat.android.SendingMailman and Receiving.Mailman (obviously you only need hook the outgoing). Monitor the methods in there (by hooking all the methods with the ChatConversation param) to see exactly what's being exchanged. Also take note of what happens when your offline because snapchat handles that differently.

Generally hook anything suspected of an outgoing call that reports a screenshot or a larger objects that pass along things like a snap's status. Then adjust them accordingly when hooked by keepchat. I started with snapchat.model.server.ChatMessage, watched its invokers, and went backwards. I also went down to the bus but that isnt necessary. I can give you the ones i changed for 5.0.5 stable but that's the only one i looked at.

Again if you try and remove or hook screenshot detection methods your gonna have a bad time. just change what your sending back to snapchat. However its worth noting my Mailman example is almost exclusively for chat as it seems that's what everyone is having trouble with. This will NOT prevent screenshot messages back to snapchat when not in chat.

Let me know if u need any more help. Its really not that bad.
If you removed the Android-DirectoryChooser (i don't do or deal with apache license), id submit a pull req.

I'll b looking into addlive (the streaming live service / lib they're using for video stream) and reversing ClandestineDolphinHelper (the class that implements addlive) to see if we can't get some live chat video recording in there :) sit back and grab a beer because its gonna be a while.
 

dyallo

Senior Member
Oct 2, 2010
331
29
Is 5.0.9.1 the latest stable or just a beta?

Once I fix this library needed to compile keepchat I can add support for that...

I still haven't found where the chat is recording screen shots, but I did find a strange issue of actually taking a screenshot would trigger the screenshot notification when using keepchat so I fixed that.

Hopefully I'll figure out this chat bug soon.


Sent from my One X using XDA Free mobile app

Please don't merge that change into the main fork then because people will want to send the screen shot notification manually by taking a screen shot sometimes. It's really good for getting people's attention, like if a girl snaps pictures of herself, and you screen shot every once in a while, they will feel appreciated and think "he loves pictures like my last one because he screenshot it, so I might send even more pictures like that"

Typical female psychology, they love the attention!
So I hope my point is clear and understandable :)
 

AMNB

New member
May 10, 2014
2
1
You're too quick :p I noticed a bug as soon as I posted it so I tried to remove it.


Anyways.... one more try....


dl.dropboxusercontent.com/u/15392985/KeepChat_v3.4.2%20Beta_Craig.apk
This supports both 5.0.5 Stable and 5.0.9.1 Beta

I haven't tested this so I can't guarantee screenshots are gone... but hopefully this helps.

Well done :good:

I confirm this works perfectly on Snapchat 5.0.5 from the Google Play.

No screenshot detected even if I do screenshot .. it doesn't report back.

so the screenshot detection stops always and this is fine for me :good:.

will report back if I face any problems.



i9505 | CM 11-M6
 

PandaToon

Member
Feb 16, 2011
21
5
Leuven
You're too quick :p I noticed a bug as soon as I posted it so I tried to remove it.


Anyways.... one more try....


https://dl.dropboxusercontent.com/u/15392985/KeepChat_v3.4.2%20Beta_Craig.apk
This supports both 5.0.5 Stable and 5.0.9.1 Beta

I haven't tested this so I can't guarantee screenshots are gone... but hopefully this helps.

I get a signature error when trying to install your 3.4.2. I have 3.4.1 installed at the moment.
'An existing package by the same name with a conflicting signature is already installed.'
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 68
    IMPORTANT ANNOUNCEMENT
    Click here



    Keepchat

    Save your Snapchats and Stories automatically

    Credits go to @sturmen who invented this mod and to @stammler for his previous updates and of course to @rovo89 for making the Xposed Framework.
    Lastly a special thanks to @jbergler for helping to keep this mod updated.

    Note: @stammler transferred the project to me, see the old and initial thread.


    This Xposed module saves all images and videos upon opening to the specified folder on your SD card. It uses the Xposed framework to hook into the Snapchat app and do the magic. Because it uses the Xposed framework, it is device and rom independent :).
    YOU MUST HAVE XPOSED FRAMEWORK INSTALLED FOR THIS TO WORK

    If you find any bugs, please report :)

    Confirmed to work with Snapchat 5.0.38.2 (version 5.0.38.1 was not tested.) and above(21/10/2014)
    Newer versions may or may not work. Try it.


    Features
    • Recieved Snaps are saved when viewed
    • Stories are saved when viewed
    • Sent Snaps are saved automatically
    • Does not report as Screenshotted

    Installation
    1. Install the awesome Xposed framework on your rooted device.
    2. Uninstall any 2.x version of KeepChat.
    3. Install and activate the mod, which you can download from the Xposed Framework App or from here.
    4. Reboot your device to start the mod.

    To Do
    • Give me Ideas :)

    Changelog
    • 3.6.3
      - fixed support for snapchat 5.0.38.2
    • 3.6.2
      - support for latest snapchat 5.0.38.2
    • 3.6
      - bug fix
    • 3.5.9
      - added support for the 5.0.34.4
    • 3.5.7
      - small bug fix
    • 3.5.5
      - updated to support 5.0.32.1 and above
    • 3.5.2
      - support for 5.0.27.1 added
    • 3.5
      - removed support for older versions
      - only works with the current stable ( 5.0.23.0 )
      - included google analytics
    • 3.2.3
      - added support for the latest beta 4.1.13
    • 3.2.2
      - added support for the latest beta 4.1.12 and 4.1.11
    • 3.2
      - added support for the latest beta 4.1.11
      - made a few changes with how settings work and it should fix the problems people have
    • 3.1.8
      - disabled support for saving sent snaps for these three beta (4.1.08, 4.1.09 and 4.1.09) due to major changes in snapchat code
      - added new setting to save snaps into sub-folders by user name
    • 3.1.7
      - fixed small bug introduced by last version
      - also trying a potential fix for the settings not being applied error
    • 3.1.6
      - added support for latest snapchat beta 4.1.07 and 4.1.07 Stable
    • 3.1.5
      - added support for latest snapchat beta 4.1.06
    • 3.1.4
      - added support for 4.1.05 including the beta
    • 3.1.2
      - added support for the latest Stable 4.1.03
      - fixed a major bug for older versions of snapchat
    • 3.1.1
      - added support for the latest beta 4.1.03
    • 3.1
      - added support for all snapchat version 4.1.01 Beta and below. (Includes the 4.1.01 stable)
      - fixed a bug with settings
      - fixed a bug with the dialog boxes
    • 3.0.4 Beta
      - hopefully fixed getting reported bug for stories
      - works with 4.0.22 Beta now
    • 3.0.2
      - fixed bug that caused Errors 1, 2, 3
      - added new setting for sorting images into folder
      - little changes to make logs better
    • 3.0.1
      - Small update to the debugging code (no need to update really unless you want to help debug errors)
    • 3.0 Settings added!
      - Initail Release

    Here are my sources GitRepo. This software is released under the GNU GPLv3.

    Cheers and enjoy!
    34
    Ok so here's the update you guys want.
    I'm finally free so I'm gonna update in a day or two.
    I'm planning on rewriting it again and removing support for previous versions to get rid of clutter. If someone does want any specific version to have support I may add it on again.

    Basically just wait for a beta/alpha in a day. If that works fine. I'll push it to everyone.
    28
    I think this should support the latest stable 5.0.14.0!
    KeepChat_3.4.3 Beta_Craig.apk

    Let me know if that doesn't work out!

    Maybe I'll get to chat saving stuff after Memorial Weekend. Have fun guys!
    22
    Hey guys,

    So I have an announcement to make. As you all know the next version of Android will be released soon.
    I will be moving to that and as Lollipop uses ART I will not be using Xposed Framework at all.
    Now this will obviously make it very hard to update this module.

    Now there are two different futures for this module.

    1. I hand the project onto someone else who is willing to keep this module updated.

    2. I continue blindly developing this module and I have a set of Beta testers, who provide me with the correct details.
    The beta testers would need to be chosen because the current system of reporting errors is not formalised and hence I do not get enough information.


    The ideal option would be to find someone else, because it will both be easier and quicker to get updates. So look for someone guys. :p



    Also lastly I have released is my final update 3.6.3 to the app because I won't have any time for a while due to exams. And after my exams one of the above scenarios will take place.
    The update should support everything below and including 5.0.38.2 (although it has not been tested with 5.0.38.1).
    I have also uploaded snapchat 5.0.38.2 in the first post of the topic for those who have not received the update.

    Ramis

    As the current maintainer of Snapshare, I already am into Snapchat and Xposed. I'll have to take a look into the source code fist, but I don't foresee any problems, I'll probably take it over if you want to :good:
    21
    Alright guys, Ramis handed me over this project, so from now on I'll take it over.
    First, a huge thanks to you @Ramis, for the effort you've put into this module!

    I created my own thread, this is my Keepchat thread.

    That is the place where I will provide support and release updates, not this thread.

    (I don't know if this one will be closed, yet)