APP ❯ TWRP ❯❯ Tipatch • Backup internal storage • v1.6

Search This thread

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Tipatch for TWRP • Backup internal storage at last
by kdrag0n

Use at your own risk. Note that wiping Data WILL also wipe internal storage, contrary to normal behavior.

Introduction
TWRP Data backups do not include Internal Storage, which is the emulated SD card that stores your photos, videos, downloads, and more. This means that in the event you transfer phones or completely wipe data, all of that is gone! Eventual data loss is inevitable here.

Tipatch patches TWRP to backup contents of internal storage (emulated SD card) as part of Data, thus preventing data loss. Internal storage typically includes items such as photos, videos, downloads, game data, and other assorted files.

The app supports patching an image and saving the result anywhere, as well as patching the currently installed recovery in-place on rooted devices. It has been confirmed to work on Exynos, Snapdragon, Kirin, and MediaTek devices.

Note: internal storage is the same thing as emulated SD card. They are both referring to the /data/media path.

Compatibility
As far as I know, this works on every device. It has been confirmed to work on Exynos (Galaxy S8, Galaxy A8), Snapdragon (Mi A1, Galaxy S9+ unlocked), Kirin (Mate 10 Lite), and MediaTek devices. Let me know if there's any device it does not fully work on.

Downloads
Download the app on Google Play or XDA Labs.

Alternatively, downloads can be found here on GitHub.
The first release listed is the latest version, currently 1.6.

If you don't want to use the app, programs for Windows, macOS, and Linux are also available at the link above.

Instructions
If your device is rooted, you can patch your current recovery (both slots on A/B) with one tap.
If your device is not rooted, download your device's recovery image and patch that. Then flash or boot the patched image as usual.

How do I know if it worked?
  • "Data (incl. storage)" on Backup screen
  • "Backups of Data include…" while backing up
  • Bigger Data size on Backup screen

A side effect is that wiping "Data" will also wipe internal storage. This cannot be fixed.

If you use a theme or a language other than English, the text will not change. Revert to the default theme and/or change to English to confirm.

Restoring backups with internal storage does not require a patched recovery.

Tipatch does not affect your external SD (if present) in any way.

Problems?
Reflash your recovery image. If you used in-place patching, simply tap "Restore backup" in the option menu.

Special thanks to @tytydraco (Draco) for suggestions and extensive testing.

Donate to support future development
Join the Telegram group

Translation positions are open! E-mail or PM me on Telegram/XDA to register for a language. Currently taken are Portuguese and Chinese.

Enjoy!

XDA:DevDB Information
Tipatch, App for the Apps & Games

Contributors
kdrag0n
Source Code: https://github.com/kdrag0n/tipatch


Version Information
Status: Stable
Current Stable Version: 1.6
Stable Release Date: 2018-09-18

Created 2018-08-19
Last Updated 2018-09-24
 

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Changelogs
v1.6 • September 18, 2018
​ ​ ​ ​ • Switch to Sentry for crash reporting (reduces size & battery impact)
​ ​ ​ ​ • Add splash screen
​ ​ ​ ​ • Improve performance
​ ​ ​ ​ • Improve app theme
Older releases:

v1.5 • September 8, 2018
​ ​ ​ ​ • Fix rotation issues
​ ​ ​ ​ • Fix crashes
​ ​ ​ ​ • Improve About screen
​ ​ ​ ​ • Update libraries
​ ​ ​ ​ • Fix misleading caption on TWRP Wipe screen
v1.4 • August 23, 2018
​ ​ ​ ​ • Added LZMA compression support (slow but works)
​ ​ ​ ​ • Fixed rotation issues
​ ​ ​ ​ • Improved error handling
​ ​ ​ ​ • Added XDA thread link
v1.3 • August 22, 2018
​ ​ ​ ​ • Bug fixes
​ ​ ​ ​ • Several crash fixes
​ ​ ​ ​ • Enabled rotation for phones
v1.2 • August 19, 2018
​​ ​ ​ ​ • Fix crash when tapping Contact without an email app
​ ​ ​ ​ • Fix inconsistent error message wording
v1.1 • August 18, 2018
​ ​ ​ ​ • Initial release
 
Last edited:

Shaunlia22

Senior Member
Mar 6, 2018
311
57
Tipatch v1.2 has just been released to fix a possible crash and revise some wording. Get it on GitHub, XDA Labs, or Play Store.

It may take some time to roll out to everyone in the Play Store.

Changelog:
Is it possible to separate the formatting of data and internal, in the future fixes?
 

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Is it possible to separate the formatting of data and internal, in the future fixes?

No, because of the nature of binary patching. That would require adding functionality, which is not possible without introducing massive consequences, not to mention the work required.

However, it's possible that I'll be able to modify the theme to add an UI to quickly patch/unpatch the running recovery in-place without reboot, from inside TWRP.
 
  • Like
Reactions: AbboodSY

sanguinesaintly

Senior Member
Apr 16, 2011
2,697
1,322
Certainly useful with two provisos:

You only backup to an external SD - that probably goes without saying, as it would make no sense to backup internal storage to internal storage ! I assume the patched TWRP would prevent such an attempt.

The side effect - wiping "Data" will also wipe internal storage - is more than a "side effect", but since it can't be fixed, maybe that point should be made in very big letters at the top of the OP.

Good work though.
 

smartymcfly

Senior Member
Sep 15, 2012
721
218
Great App, is there any way a blacklist or whitelist can be added with a useroption, blacklist, or whitelist file placed on sdcard or in gui, just thinking an option to add list qouldbe easier to add to app. Would be willing to pay for this option as an in app purchase or as a seperate pro version.
 

Culego

New member
Feb 16, 2016
1
0
Merced
When I tried to patch it I get an error saying...

"Oops...
Patch #1 failed: could not find /media' in
image. This is probably not a TWRP image."

I'm on a Samsung Galaxy S6 rooted with magisk and twrp 3.2.1.0.
 

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Certainly useful with two provisos:

You only backup to an external SD - that probably goes without saying, as it would make no sense to backup internal storage to internal storage ! I assume the patched TWRP would prevent such an attempt.

The side effect - wiping "Data" will also wipe internal storage - is more than a "side effect", but since it can't be fixed, maybe that point should be made in very big letters at the top of the OP.

Good work though.

It's not possible to prevent that with patching - the best that would be possible would be a manual toggle in recovery.

Will do, thanks for the suggestion.
 
  • Like
Reactions: sanguinesaintly

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Great App, is there any way a blacklist or whitelist can be added with a useroption, blacklist, or whitelist file placed on sdcard or in gui, just thinking an option to add list qouldbe easier to add to app. Would be willing to pay for this option as an in app purchase or as a seperate pro version.

That's not possible with patching.
 

Lurien

Senior Member
Aug 21, 2011
857
147
Certainly useful with two provisos:

You only backup to an external SD - that probably goes without saying, as it would make no sense to backup internal storage to internal storage ! I assume the patched TWRP would prevent such an attempt.

The side effect - wiping "Data" will also wipe internal storage - is more than a "side effect", but since it can't be fixed, maybe that point should be made in very big letters at the top of the OP.

Good work though.
Kinda confused.. it wipes the internal backed up to external SD also??
 

Shaunlia22

Senior Member
Mar 6, 2018
311
57
Wiping Data will truly wipe /data, which means all the internal user data storage on the device. That includes apps, app data, and emulated SD. Normally it excludes emulated SD just like backups.
Im really confused to wiping data will include all like apps, apps data and emulatex SD? but your telling now that normally IT """EXCLUDES""" EMULATED SD???
 

kdrag0n

Senior Member
Feb 19, 2016
622
1,676
kdrag0n.dev
Im really confused to wiping data will include all like apps, apps data and emulatex SD? but your telling now that normally IT """EXCLUDES""" EMULATED SD???

Wiping "Data" will simply delete everything in /data. Apps, app data, and emulated SD (internal storage, which is what Tipatch is all about) will be deleted.

The normal behavior is that wiping Data will wipe apps and app data, but NOT emulated SD/internal storage. Backups also EXCLUDE that.

Your external SD will not be affected in any way by Tipatch.
 

Shaunlia22

Senior Member
Mar 6, 2018
311
57
Wiping "Data" will simply delete everything in /data. Apps, app data, and emulated SD (internal storage, which is what Tipatch is all about) will be deleted.

The normal behavior is that wiping Data will wipe apps and app data, but NOT emulated SD/internal storage. Backups also EXCLUDE that.

Your external SD will not be affected in any way by Tipatch.
Thats it! I think you should breifly explain your app to avoid mis understand what your app talking about. Because not all of us undrstand all the terms used by android developers. Explaining breifly and direct to point explanation will us understand the point and purpose. Thanks.
 

vmurali69

Member
May 30, 2018
8
3
Hi,

The patched twrp didnt work for backing up emui in honor 7x.
it gave the usual "createtarfork" error which it used to give whenever it tried backup
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    Tipatch for TWRP • Backup internal storage at last
    by kdrag0n

    Use at your own risk. Note that wiping Data WILL also wipe internal storage, contrary to normal behavior.

    Introduction
    TWRP Data backups do not include Internal Storage, which is the emulated SD card that stores your photos, videos, downloads, and more. This means that in the event you transfer phones or completely wipe data, all of that is gone! Eventual data loss is inevitable here.

    Tipatch patches TWRP to backup contents of internal storage (emulated SD card) as part of Data, thus preventing data loss. Internal storage typically includes items such as photos, videos, downloads, game data, and other assorted files.

    The app supports patching an image and saving the result anywhere, as well as patching the currently installed recovery in-place on rooted devices. It has been confirmed to work on Exynos, Snapdragon, Kirin, and MediaTek devices.

    Note: internal storage is the same thing as emulated SD card. They are both referring to the /data/media path.

    Compatibility
    As far as I know, this works on every device. It has been confirmed to work on Exynos (Galaxy S8, Galaxy A8), Snapdragon (Mi A1, Galaxy S9+ unlocked), Kirin (Mate 10 Lite), and MediaTek devices. Let me know if there's any device it does not fully work on.

    Downloads
    Download the app on Google Play or XDA Labs.

    Alternatively, downloads can be found here on GitHub.
    The first release listed is the latest version, currently 1.6.

    If you don't want to use the app, programs for Windows, macOS, and Linux are also available at the link above.

    Instructions
    If your device is rooted, you can patch your current recovery (both slots on A/B) with one tap.
    If your device is not rooted, download your device's recovery image and patch that. Then flash or boot the patched image as usual.

    How do I know if it worked?
    • "Data (incl. storage)" on Backup screen
    • "Backups of Data include…" while backing up
    • Bigger Data size on Backup screen

    A side effect is that wiping "Data" will also wipe internal storage. This cannot be fixed.

    If you use a theme or a language other than English, the text will not change. Revert to the default theme and/or change to English to confirm.

    Restoring backups with internal storage does not require a patched recovery.

    Tipatch does not affect your external SD (if present) in any way.

    Problems?
    Reflash your recovery image. If you used in-place patching, simply tap "Restore backup" in the option menu.

    Special thanks to @tytydraco (Draco) for suggestions and extensive testing.

    Donate to support future development
    Join the Telegram group

    Translation positions are open! E-mail or PM me on Telegram/XDA to register for a language. Currently taken are Portuguese and Chinese.

    Enjoy!

    XDA:DevDB Information
    Tipatch, App for the Apps & Games

    Contributors
    kdrag0n
    Source Code: https://github.com/kdrag0n/tipatch


    Version Information
    Status: Stable
    Current Stable Version: 1.6
    Stable Release Date: 2018-09-18

    Created 2018-08-19
    Last Updated 2018-09-24
    11
    Changelogs
    v1.6 • September 18, 2018
    ​ ​ ​ ​ • Switch to Sentry for crash reporting (reduces size & battery impact)
    ​ ​ ​ ​ • Add splash screen
    ​ ​ ​ ​ • Improve performance
    ​ ​ ​ ​ • Improve app theme
    Older releases:

    v1.5 • September 8, 2018
    ​ ​ ​ ​ • Fix rotation issues
    ​ ​ ​ ​ • Fix crashes
    ​ ​ ​ ​ • Improve About screen
    ​ ​ ​ ​ • Update libraries
    ​ ​ ​ ​ • Fix misleading caption on TWRP Wipe screen
    v1.4 • August 23, 2018
    ​ ​ ​ ​ • Added LZMA compression support (slow but works)
    ​ ​ ​ ​ • Fixed rotation issues
    ​ ​ ​ ​ • Improved error handling
    ​ ​ ​ ​ • Added XDA thread link
    v1.3 • August 22, 2018
    ​ ​ ​ ​ • Bug fixes
    ​ ​ ​ ​ • Several crash fixes
    ​ ​ ​ ​ • Enabled rotation for phones
    v1.2 • August 19, 2018
    ​​ ​ ​ ​ • Fix crash when tapping Contact without an email app
    ​ ​ ​ ​ • Fix inconsistent error message wording
    v1.1 • August 18, 2018
    ​ ​ ​ ​ • Initial release
    7
    Tipatch v1.4 has just been released to fix several crashes and bugs, as well as add LZMA compression support. This should now work for almost all devices. Get it on GitHub, XDA Labs, or Play Store.

    It may take some time to roll out to everyone in the Play Store.

    Changelog:
    ​ ​ ​ ​ • Added LZMA compression support (slow but works)
    ​ ​ ​ ​ • Fixed rotation issues
    ​ ​ ​ ​ • Improved error handling
    ​ ​ ​ ​ • Added XDA thread link
    6
    Tipatch v1.6 has just been released to improve performance, theming, and experience. Get it on GitHub, XDA Labs, or Play Store.

    As of edit, it is back on the Play Store.

    Changelog:
    ​ ​ ​ ​ • Switch to Sentry for crash reporting (reduces size & battery impact)
    ​ ​ ​ ​ • Add splash screen
    ​ ​ ​ ​ • Improve performance
    ​ ​ ​ ​ • Improve app theme

    The next version will have translations and more fixes. This release was necessary because the previous one was taken down from the Play Store due to the crash reporting module.

    Enjoy!
    4
    Tipatch v1.3 has just been released to fix several crashes and bugs. Get it on GitHub, XDA Labs, or Play Store.

    It may take some time to roll out to everyone in the Play Store.

    Changelog:
    ​ ​ ​ ​ • Bug fixes
    ​ ​ ​ ​ • Several crash fixes
    ​ ​ ​ ​ • Enabled rotation for phones
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone