https://github.com/sdushantha/snaprecovery Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} sdushantha / snaprecovery * Notifications * Star 208 * Fork 8 Recover old Snaps that have "disappeared" from Snapchat MIT License 208 stars 8 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 1 branch 0 tags Code Clone HTTPS GitHub CLI [https://github.com/s] Use Git or checkout with SVN using the web URL. [gh repo clone sdusha] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @sdushantha sdushantha Merge pull request #8 from mirsella/autoserial ... df3a922 Aug 9, 2021 Merge pull request #8 from mirsella/autoserial SERIAL is auto set if only one device is connected df3a922 Git stats * 32 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time images added files Jan 2, 2021 .gitignore SERIAL is auto set if only one device is connected Aug 8, 2021 LICENSE Create LICENSE Jan 2, 2021 README.md add ffmpeg dependency to README Jan 6, 2021 snaprecovery.sh added back a unintentionally deleted char Aug 9, 2021 View code snaprecovery Dependencies How the recovery works README.md snaprecovery Recover old Snaps that have "disappeared" from Snapchat [preview] [?][?] This script only works for rooted Android devices! [?][?] Dependencies * adb * ffmpeg This script was tested on an Android device running Android 10 with LinageOS with Snapchat v11.9.0.48 Beta How the recovery works According to Snap Inc's blog post from 9 May 2013, Snaps are deleted once you have viewed them. After a snap has been opened, the temporary copy of it is deleted from the device's storage. We try to make this happen immediately, sometimes it might take a minute or two. The files are deleted by sending a "delete" instruction to the phone's file system. This is the normal way that things are usually deleted on computers and phones--we don't do anything special (like "wiping "). In reality the Snaps get stored in /data/user/0/com.snapchat.android/ files/file_manager/chat_snap/ until you logout from the app. Once you logout, Snapchat deletes all of those files. Towards the very end of the blog post, they have mentioned that jailbreaking/rooting a device can allow us to access the unopened Snap. This is understandable as they need to store the file somewhere on the device so that it can be viewed by the user. While an unopened snap is being stored on the device, it's not impossible to circumvent the Snapchat app and access the files directly. This isn't something we support or encourage and in most cases it would involve jailbreaking or "rooting" the phone and voiding its warranty. If you're trying to save a snap, it would be easier (and safer) to just take a screenshot or take a picture with another camera. It is also mentioned that deleted Snaps can be recovered using the right forensics tools. Also, if you've ever tried to recover lost data after accidentally deleting a drive or maybe watched an episode of CSI, you might know that with the right forensic tools, it's sometimes possible to retrieve data after it has been deleted We don't need any forensics tools. We can simply use adb pull to fetch the files because they are never deleted. But once you logout from the app and after Snapchat deletes the Snaps, you will need the right forensics tools to recover the files. Since they are stored on the device, we can easily "recover" them by simply copying them from the Android device to our computer. The only issue with doing this is that the files do not have the proper file extension which prevents us from opening the file in the correct program. snaprecovery automates this whole proccess by fetching the files and then appending the correct file extension depending on the file's mime type. About Recover old Snaps that have "disappeared" from Snapchat Resources Readme License MIT License Releases No releases published Packages 0 No packages published Contributors 3 * @kdkasad kdkasad Kian Kasad * @sdushantha sdushantha Siddharth Dushantha * @mirsella mirsella mirsella Languages * Shell 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.