Fix for Titanium Backup restoring with data

danieljamie

Senior Member
Mar 27, 2011
661
181
43
This fix solves force close issues with restoring apps with data in Titanium Backup.

This operation recursively fixes all SElinux file markers in /data/data, which are spoiled by titanium during data restore. (Quote from vodkinagdan)

User vodkinagdan found this solution:

Simply execute this from the terminal emulator:

su
restorecon -R -v /data/data

This has to be done after every restore (or batch of restores).

I take no credit for this but it works!

vodkinagdan has sent fix to Titanium Track.

Sent from my SM-N9005 using xda app-developers app
 
Last edited:

vodkinagdan

Senior Member
Aug 29, 2010
250
149
0
Moscow
Confirmed, it saved me from days of frustration !
I can also suggest everyone to create sh file with these commands and store somewhere in sdcard. Just in case if we will have to wait for the fix from titanium team for a while.
P.S. Terminal emulator is an app, which you can get from Play Market. It serves to execute shell and busybox commands on android device.
 
Last edited:

vodkinagdan

Senior Member
Aug 29, 2010
250
149
0
Moscow
Hi, could someone please help me, i'm not really sure what i'm doing wrong here? :)

- Thank you!
It's strange, but seems that you have no restorecon binary in your rom.
Here's mine. Try to put it in /system/bin and then execute restorecon -R -v /data/data
It should be rwxr-xr-x (755)
 

Attachments

namfat

Senior Member
Feb 10, 2007
1,876
1,603
143
VietNam
tpb.vn
What version of Titanium that you mension in this topic. Because I'm using Titanium ver 6.1.0
and I don't have same issue like you.

Send from my SM-N900 using Tapatalk 4 Pre
 

namfat

Senior Member
Feb 10, 2007
1,876
1,603
143
VietNam
tpb.vn
you must restore first,

then fix!!

i test,all apps are OK

Sent from my SM-N9005 using xda app-developers app
OK thanks, I will try this way.

Thank you, it worked! Much appreciated :)

Yes, that's the one :) Quite weird that it's missing the binary for the titanium backup fix though.
I have same issue with you when I type the command in the simulator.
I will try to copy the new binary like you, and it work. Thanks!
 
Last edited:
  • Like
Reactions: robbiekhan