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

doodalydoo

Senior Member
Apr 20, 2015
67
10
0
The backups I make with Tipatch won't restore properly. It gets to restoring System Image, then reboots into recovery and I have to manually install the ROM again.
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
The backups I make with Tipatch won't restore properly. It gets to restoring System Image, then reboots into recovery and I have to manually install the ROM again.

Which device? Can you provide a link to download your TWRP? How big is the backup? Is it in external (SD) or internal storage?


I don't think this issue is associated with Tipatch because you aren't really supposed to be restoring System Image. Try it with System instead, I've had problems with System Image as well on the Mi A1.
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
Tipatch v1.5 has just been released to fix several crashes and bugs, as well as fix a misleading caption in the patched TWRP. Get it on GitHub, XDA Labs, or Play Store.

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

Changelog:
​ ​ ​ ​ • Fix rotation issues
​ ​ ​ ​ • Fix crashes
​ ​ ​ ​ • Improve About screen
​ ​ ​ ​ • Update libraries
​ ​ ​ ​ • Fix misleading caption on TWRP Wipe screen
For everyone with the "Patch #1 failed: could not find '/media' in image" error, I'll keep investigating. So far, it seems to be restricted to the Samsung Galaxy S7 and Note 5. Translations are also coming soon, so please e-mail or PM me on Telegram/XDA if you want to translate. Spots have been claimed for Portuguese and Chinese as of now.

Enjoy!
 

doodalydoo

Senior Member
Apr 20, 2015
67
10
0
Which device? Can you provide a link to download your TWRP? How big is the backup? Is it in external (SD) or internal storage?


I don't think this issue is associated with Tipatch because you aren't really supposed to be restoring System Image. Try it with System instead, I've had problems with System Image as well on the Mi A1.
I reinstalled everything from scratch and it started working. Maybe my backup just had a corrupted System Image. You can leave System Image out of the backup and it won't cause any problems?
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
I reinstalled everything from scratch and it started working. Maybe my backup just had a corrupted System Image. You can leave System Image out of the backup and it won't cause any problems?
TWRP backups don't have to include every partitions, that's why you can choose which ones to back up and which ones to restore.
System should be preferred over System Image unless you need incremental block OTAs (e.g. stock ROM OTAs) or dm-verity to pass.
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
The app has been taken down from Google Play because of the error reporting component. I'll release an updated version with a different one (that also happens to be more privacy friendly) ASAP. Stay tuned!

You can always download the app from GitHub or XDA Labs as well.
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
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!
 
Last edited:

MpS005

Senior Member
Aug 22, 2018
370
88
38
New Delhi
Can I do this:
1. Patch the Twrp and flash it.
2. Make a Data backup (incl Internal St)
3. Flash the original recovery(unpatched) from the install image option.
4. wipe data only (not internal storage) for installation of other custom roms
????
 
  • Like
Reactions: AbboodSY

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
Can I do this:
1. Patch the Twrp and flash it.
2. Make a Data backup (incl Internal St)
3. Flash the original recovery(unpatched) from the install image option.
4. wipe data only (not internal storage) for installation of other custom roms
????
Yes, you can. Tipatch also has a button to restore the unpatching backup or undo the patch.
 

Aluminium X

Member
Jul 14, 2017
24
10
0
Hello @kdrag0n .When I try to patch I get the message "Patch #1 failed: could not find '/media' in image. This is probably not a TWRP image."
Yet I'm using official TWRP 3.2.3-0 on my clark.

Sent from my Moto X Pure using XDA Labs
 
Last edited:

ccchan234

Member
Jul 8, 2017
36
7
0
hi~
thanks for your effort to help other users.

however I found someone got a simpler way.

it is to
1. rename /data/media into /data/intmem
2. refresh size in backup
3. make nandroid
4. rename back /data/intmem into /data/media

it worked perfectly for me, for many times.

https://forum.xda-developers.com/general/general/twrp-backup-including-internal-storage-t3660479


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
 
  • Like
Reactions: hyborian

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
hi~
thanks for your effort to help other users.

however I found someone got a simpler way.

it is to
1. rename /data/media into /data/intmem
2. refresh size in backup
3. make nandroid
4. rename back /data/intmem into /data/media

it worked perfectly for me, for many times.

https://forum.xda-developers.com/general/general/twrp-backup-including-internal-storage-t3660479
I don't see how that's simpler. It requires several manual renaming steps and another rename when you restore it. With Tipatch it's a 1-tap patch with no further manual actions. They both work though.

Please don't quote the whole OP.
 

ccchan234

Member
Jul 8, 2017
36
7
0
I don't see how that's simpler. It requires several manual renaming steps and another rename when you restore it. With Tipatch it's a 1-tap patch with no further manual actions. They both work though.

Please don't quote the whole OP.
for my myself, i will stick to the "change name method".

1. the "change name method" dont need to stick to any twrp version,
when new version of twp is out, i can simply upgrade the official twrp.

2. i think the patch is unsigned? then need to trust the author

3. as you say, a wipe will wipe also the internal storage.


just personal choice,
thanks for reply anyway
 

kdrag0n

Senior Member
Feb 19, 2016
545
1,353
113
kdrag0n.dev
for my myself, i will stick to the "change name method".

1. the "change name method" dont need to stick to any twrp version,
when new version of twp is out, i can simply upgrade the official twrp.

2. i think the patch is unsigned? then need to trust the author

3. as you say, a wipe will wipe also the internal storage.


just personal choice,
thanks for reply anyway
As for #2, I'm not sure how TWRP would be signed. The patcher is open source, you can view the code on GitHub: https://github.com/kdrag0n/tipatch