[GUIDE] Create update.zip for TWRP flash with user apps - Xiaomi Redmi Note 4 Guides, News, & Discussion

Many of you flashed many ROMs. For that you have to wipe data and all of your apps. And everytime you have to install apps from playstore or sd card.
So easy way to avoid time to make a TWRP flashable zip file.
1ST METHOD Root your phone and backup all of your data and create update*.zip file from titanium backup pro app.
link https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup
2ND METHOD Use aroma package creater from *@Nikhil
go to this thread https://forum.xda-developers.com/showthread.php?t=2633379
Hit thanks if it helped to save your lot of time.

Which one of these methods can backup and restore data for apks too, not only apks?

jazzh said:
Which one of these methods can backup and restore data for apks too, not only apks?
Click to expand...
Click to collapse
Both method. In titanium backup u must have root. But flashable method no need to root. For restore data of any apps u must put data file from root directory of the app in the flashable zip creator.
Storing data of an app my conflict many issues, better to avoid. I prefer storing only user apps while flashing apps.
HAPPY FLASHING

Related

[App idea] Restore Titanium backups by update.zip

i have a great idea for an app to scan your titanium backup folder, and create an update.zip to restore all apps and data after a rom flash.
i have all the details worked out!
i know how to convert the tibu backups to useable restoreable data!
though its not hard.
this could easily be done through a script on pc or possibly through an app.
but i am just not a programmer, in either regard.
need experience with:
creating cwm 2 and 3 flashable zips (edify and scriptify)
possibly other scripting for editing install directory
unpacking tar zip and gz files
creating UI would be nice as well for whichever platform it ends up on pc or app
PM me for more details.
this would be a great tool!
As far as I know, each Titanium backup has 3 files - one bzip2 for the APK, one for the data, and a "properties" file, which containt the market link, app install location, backup date etc...
I think it is possible to write an extention to ClockworkMod/Amon-Ra for restoring Titanium backups. Don't count on me to do it, I don't have any experience with the Linux kernel/Android custom recoveries.
As for a desktop/dalvik application, it should be very simple to pack the backup into a flashable .zip, I'll try to do such an app soon.
Nvm ignore me...
From something awesome
May this help? I'd really like such an app!
http://www.apps-builder.com/en/home
The paid version of the app will do this for you. Also let's you decide whether the. Zip is signed or not. Hope this helps.
Sent from my SPH-D700 using XDA App
i have the paid version and that zip file that it creates only reinstalls titanium backup not all your apps.
so no it doesnt help. i already have the paid version, and understand the features in full.
Thats what my nvm ignore me was about... i thought that update.zip did the apps as well.
Anyway this would be awesome for people who flash a lot of roms
TRusselo said:
i have the paid version and that zip file that it creates only reinstalls titanium backup not all your apps.
so no it doesnt help. i already have the paid version, and understand the features in full.
Click to expand...
Click to collapse
From something awesome
Kick me while I'm down, I thought the Pro Version did that as well. The file it makes certainly looks big enough. I haven't taken a look at it. But my question is how is the update.zip, which I can't get to install, different from just reinstalling the .apks, which is how I get it working in the first place?
TRusselo said:
i have a great idea for an app to scan your titanium backup folder, and create an update.zip to restore all apps and data after a rom flash.
i have all the details worked out!
i know how to convert the tibu backups to useable restoreable data!
though its not hard.
this could easily be done through a script on pc or possibly through an app.
but i am just not a programmer, in either regard.
need experience with:
creating cwm 2 and 3 flashable zips (edify and scriptify)
possibly other scripting for editing install directory
unpacking tar zip and gz files
creating UI would be nice as well for whichever platform it ends up on pc or app
PM me for more details.
this would be a great tool!
Click to expand...
Click to collapse
Good idea but I think you will run into problems if you restore from recovery... I don't think app ID's (and therefore permissions) will be correct and I don't think the apps will re-link to the market (if the id's aren't correct).
Running the fix permissions script after the restore might solve this.
But, other than selective restore, what benefit would this method have over say simply restoring the /data partition part of your nandroid backup?
Nevertheless, if you need help with updater-scripts send me a PM. If my concerns are unfounded then this is a worthwhile idea.

[Q] Clean install from Custom ROM to Stock Firmware

Guys I need a little help.
I am planning on using stock Firmware. I am currently on Wanamlite v.18. I want a clean install just like when I am doing a Wipe prior to installing a custom ROM via CWM Recovery. But I don't want to lose all the files esp. those OBB's inside the Internal Memory:
This is my currenty setup
Wanamlite v1.8
Adam Kernel 1.8
PhilzTouch CWM-Based Recovery
GT-I9500
This is what I've thought of doing to properly execute my task:
Enter CWM Recovery and Wipe System, Data & Cache
Power-Off the unit and Enter Download Mode
Flash Stock Firmware (XXUBMG9, KSA) via Odin
Root, Flash Custom Recovery and Custom Kernel (Perseus or Adam)
Will my plan work or would each steps be in conflict of the other?
Many thanks for the answers!
I think you are on the right path...except that you have a chance of loosing your OBB files....so move them to a secure location and proceed...or better yet ...back up the app using the OBB file using titanium backup...that will ensure you have all the app data...there are many tutorials regarding this....then I think you can flash the stock Firmware. ..root the phone...then restore the app using titanium backup...good luck...hope this helps
sadeshmagic said:
I think you are on the right path...except that you have a chance of loosing your OBB files....so move them to a secure location and proceed...or better yet ...back up the app using the OBB file using titanium backup...that will ensure you have all the app data...there are many tutorials regarding this....then I think you can flash the stock Firmware. ..root the phone...then restore the app using titanium backup...good luck...hope this helps
Click to expand...
Click to collapse
How do you back-up those OBB files using Titanium Backup? I haven't tried that option.
Paolonicus said:
How do you back-up those OBB files using Titanium Backup? I haven't tried that option.
Click to expand...
Click to collapse
As I mentioned. ..either you move the OBB files to a secure location or you have to back up all your apps via titanium backup.... the thing is OBB files are used in your apps...so when you backup your apps from TB....the obb files get backed up

[Q] How to restore Titanium backup backup without root ? urgent help

Hello,
i have titanium backup files i made from my old Note2 and now i want to restore on my new S4
i don't want to root my new s4 anyway to keep it clean
is there any way to make titanium backup restore the apps without root ?
i need only the apps not the data .. just the apps
so , is there any other way to restore just the apps from the titanium backup folder ?
Extract the apk files from the titanium backup archives and put it on your sdcard so you can install them
Sent from my Xperia Arc S using XDA Premium 4 mobile app
om22 said:
Extract the apk files from the titanium backup archives and put it on your sdcard so you can install them
Sent from my Xperia Arc S using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I need to restore my backups to my non-rooted phone but I need the app data.. is this possible?
Not without root. I wouldn't recommend extracting the apks as your market links will be broken. No updates. You need root or start again
MamomaN said:
Hello,
i have titanium backup files i made from my old Note2 and now i want to restore on my new S4
i don't want to root my new s4 anyway to keep it clean
is there any way to make titanium backup restore the apps without root ?
i need only the apps not the data .. just the apps
so , is there any other way to restore just the apps from the titanium backup folder ?
Click to expand...
Click to collapse
If you still have Note II, there is an easy way to accomplish what you need.
Astro File Manager can back up all installed apps to a folder named "backups." Apps can be reinstalled in the normal way from this folder. Market link is not lost, no root required.
After some of my past experiences, I tend to back up things six ways from Sunday and this has been handy for me.
I hope this helps.
Use Helium if you can..
On the same line, if you still have your note 2, use Helium (Koush's app, previously Carbon) instead..
It allows for backup/restore of data without root.
Now can you use data files backed up with Titanium to restore using Helium is unknown to me...
---
Edit: Apologies, wrong reply, dint read that you want just the apps and not the data! Talked only about data..
My experiences.
I just got a G3 and the computer side for Helium wouldn't recognize my phone. Not sure if I wanna root.
OK. I just lied to you. I do wanna root it.
I'm gonna try the Astro method.
I am stuck in the same situation....tried everything but there is no way around to to restore unless the phone is rooted
bsam55 said:
If you still have Note II, there is an easy way to accomplish what you need.
Astro File Manager can back up all installed apps to a folder named "backups." Apps can be reinstalled in the normal way from this folder. Market link is not lost, no root required.
After some of my past experiences, I tend to back up things six ways from Sunday and this has been handy for me.
I hope this helps.
Click to expand...
Click to collapse
I tried the Astro method suggested here. Just a warning: only the apk is backed up; no app data. I was hoping it would do the app data since that is what I really care about.
On a rooted device, ES File Explorer (any version) can back up both apps and data. I back up my apps and data with it all the time, or else I wouldn't have gone through the trouble of modifying pre-malware versions of that app to work with systemless root.
Without root however, backing up the data is impossible.
Strephon Alkhalikoi said:
On a rooted device, ES File Explorer (any version) can back up both apps and data. I back up my apps and data with it all the time, or else I wouldn't have gone through the trouble of modifying pre-malware versions of that app to work with systemless root.
Without root however, backing up the data is impossible.
Click to expand...
Click to collapse
What about restoring from an ES File Explorer backup? Can an ES File Explorer backup (apps and/or data) be restored on a non-rooted device?
pvman said:
What about restoring from an ES File Explorer backup? Can an ES File Explorer backup (apps and/or data) be restored on a non-rooted device?
Click to expand...
Click to collapse
Just install apk that backed up inside backups/apps. I use ES nowadays just to backup Titanium Backup apk so I don't have to re-download it everytime I clean flash my device.
For data of apps, you might need root.
Sent from my Redmi 3 using XDA Labs
pvman said:
What about restoring from an ES File Explorer backup? Can an ES File Explorer backup (apps and/or data) be restored on a non-rooted device?
Click to expand...
Click to collapse
Apps can be restored, but not data. Even if you did have app data backed up it cannot be restored without root.
EDIT: Clarified message.
Without root, you will not be able to restore data because the file/directory owner and SELinux security context need to be changed. This is the way Android works; with only a few exceptions, each app gets its own user ID (owner) as which the app runs. Generally speaking, one user ID (UID) cannot write the files/directories of another UID. Doing that would require that UID to set the mode bits (permissions) of a file or directory so that group (GID) or "other" is allowed, but Android apps generally don't do that to maintain the "one UID per app" sandbox. Similarly, if SELinux is used, additional access checks are made based on SELinux contexts (but I don't know that well, so I can't explain it, other than to say, if your file context is not right compared to the context of the process accessing it, it will be denied/won't work).
root on the other hand can override permission checks, and can assign the UID, GID, mode bits, and (usually) the SELinux security context of a file or directory. That is what TB does. If you have SuperSU Pro, you can see the chown/chmod/etc. that it does in its logs.

Flashable Zip

If you flash a new rom you would have to redownload the required apps or use an app like Titanium Backup to reinstall them (or manually install each app) which is time consuming.
Its just far easier to make a flashable .zip and keep in on SD card so after each wipe and ROM flash you could just flash this zip and all would be there.
I have made this thread so that members can name the apps to be installed and I will provide you with a flashable zip. The zip file can be flashed through the stock recovery.
BE SPECIFIC
1. List the names of the apps.
2. Whether the app should be paid or free version.
3. List the file hosting site on which i should upload.
4. The zip file will be uploaded within 2 days.
the advantage of titanium would be, that I don't have to reconfigure apps, since I can restore app data too
junkyde said:
the advantage of titanium would be, that I don't have to reconfigure apps, since I can restore app data too
Click to expand...
Click to collapse
the advantage of flashable zip is that it installs apps in just seconds.
and btw we can restore app data through a zip as well
If I have a request, do I PM you or post it here?

Apps Backup

Recommendation apps backup&restore like Titanium ?
capscorn said:
Recommendation apps backup&restore like Titanium ?
Click to expand...
Click to collapse
Try Migrate,it's similiar tool but kinda different,
backup as a normal ways,to restore your file you only need to flash your backup.zip on Migrate folder via TWRP, you'll need flash Magisk first, after phone reboot you'll get notification to restore all your file, simply follow the instructions

Categories

Resources