how 2 restore apps their *original* locations @ link2sd ext4, sdcard & internal? - General Questions and Answers

i run Link2SD, using a 2nd partition on my sdcard that's been formatted with the ext4 fs.
i have some apps that i keep installed on my 'internal' sstorage, in addition to the many I've Link2sd "linked" to the /sdcard's ext4 partition.
i backup with TitaniumBackup.
if i set AutoLink in Link2SD app, then restore from a TitatniumBackup all restored user apps/(&/or libs/dalivk, depending on settings) are linked to /data/sdext2. that's expected, and fine if i want all my apps to end up 'moved' to sdcard.
if i do NOT set AutoLink, the TiBkup tries to restore all apps to internal sotrage.
how do I 'tell' the TitaniumBackup + Link2SD combination to move ONLY the apps previously mv'd to the sdcard back to it ... and to restore the rest to internal storage.
i.e., how do i preserve a backup-up app's storage location across a restore?
i can of course do it manually ... mv'ing each app back to internal storage, after the resotre process + AutoLink has mv'd it to sdcard. not ideal tho ...

Related

Format internal storage

How can we format internal memory (storage)? I can't find that option on settings.
Sent from my GT-P3110 using Tapatalk 2
That would wipe android out. You can format /data by doing a factory reset. Just don't delete /system.
So how do you reclaim lost space? I flashed Derp3D last night and now I only have 426mb of internal storage instead of 512mb. That means 86mb is now lost to the voids.
If your objective is to restore lost space then formatting the entire data partition is a rather extreme way of doing it.
Perhaps you would be better off with one of the many cleaning tools available. SD Maid, for example, can search out and remove cache and temp files as well as identifying app data that may be safely removed. ZDbox also has a cleaning tool. If you are rooted and want to go deeper then System Cleanup is a worthy option which enables you to move updates to system apps into the system partition, thus clearing space in the data partition.
Another option is to uninstall some of the bloatware which comes with stock ROMs that you don't need.

[Q] Problem loading widget

Problem: Widgets wont load after every reboot. Message: Problem loading widget appears in places where widgets should be.
I can recreate widgets, though. But appwidgets.xml file size is changing every time after reboot, from 1,25 kb to 250 bytes. I have tried everything which I could find online: manual backup and restore of original xml file, titanium backup, even nandroid restore, nothing helps.
I am using launcher pro plus (as system app), sd-ext and swap partitions. All apps with widgets are on internal memory.
Obviously, problem is in appwidgets.xml file size change. Why is this happening, how to solve this?
This is driving me crazy...
Do all apps with widgets have to be on internal memory, even though their widgets are not active in the moment?
I have apps with widgets which are linked to sd ext via link2sd.
When I pull out SD card, all widgets are loading properly.
if u use app move app installed to SD card move widgets,widgets will error.
I have finally found out what was the problem. It is moving dalvik cache to sd ext partition via a2sdgui. I think that the same is with linking dalvik cache files to sd-ext via link2sd, but am not sure.
User dalvik cache has to be on internal memory, whilst system dalvik may be integrated into ROM (and therefore moved to rom partition) via titanium backup (no problem with that). Now i have plenty of free space in /data (I have also moved majority of user app files and app data via TB to sd card).
Widgets are now loading as they should.
Hope someone will find this useful.
@condandatcang
Thank you for answering, but I figured it out long time ago.

[Q] Nandroid backup, app and sdext

Good morning, I'm here to do some questions about the nandroid backup.
Fist of all I'm using rashed's cm10.1.5 with halo and I have s2e installed and all running smoothly. I also have Clockwork 5.Now the questions.
1- Can I do a nandroid backup from my clockwork? Do I have to install something? Or something like that? What is the easy way to make a backup of my data?
2- In case I decide to change the rom, can I get my app back with my nandroid backup? How?
3- Will my ext partition in the sd work like before? I mean if the nandroid backup will restore my s2e, my app in the ext partition and the script or it will show an error because the appdata will take more space than the free space in the phone. For example I have my ext part with 400mb occupied. So I do a nandroid backup. When I'm going to restore it, it will restore to te ext, or to the phone?
3- I think this is not number free but number 6534532, and it's a noob (very nooooob) question. I always have trouble when a zip says "flash it from recovery" or "Install it from recovery" and all that options. How I know when I have to choose "Install ZIP from sd card" or "Install UPDATE from sd card"? what is the difference? -because I think that I have half bricked (bootloops, stuck in logo) a lot of times because from this. Thanks from now.
And please forgive my english, my noobing and the big number of questions.
1. Yes you can do a nandroid backup from CWM
2. As CWM backups all the data i.e settings,Google accounts but AFAIK you may lose the apps which were on SDcard
If all apps are on internal memory then you will not lose them (If you want, you can backup all your apps with MyBackup Root)
3. SDext partition has been a hit-and-miss for me on CWM
It did not restore my sdext backup sometimes and when it did, the ROM boot looped
TWRP is the best for wiping/backup/restoring SDext backup
6534532. Choose Install ZIP from SD card.
Install update from SD card means it flashes /sdcard/update.zip from SD card if it exists
Always use 'Install zip'
akiratoriyama said:
1. Yes you can do a nandroid backup from CWM
2. As CWM backups all the data i.e settings,Google accounts but AFAIK you may lose the apps which were on SDcard
If all apps are on internal memory then you will not lose them (If you want, you can backup all your apps with MyBackup Root)
3. SDext partition has been a hit-and-miss for me on CWM
It did not restore my sdext backup sometimes and when it did, the ROM boot looped
TWRP is the best for wiping/backup/restoring SDext backup
6534532. Choose Install ZIP from SD card.
Install update from SD card means it flashes /sdcard/update.zip from SD card if it exists
Always use 'Install zip'
Click to expand...
Click to collapse
mmm The bakcup save the app in the phone. But how about the symlinks that are created in the phone that directs to the ext? It will backup the app anyway in the ext or only will backup the "Link"?
Another question. The Dalvik cache is important? Because I can move all the app to the phone, but if I move the app, the app data and the dalvik cache all that get bigger than my internal memory, but if I move only the app and the app data it fits perfectly. So can i backup the app and the data only and wipe the dalvikcache?
Dalvik cache is not important while backing up
AFAIK SDext backup saves the links only
But I have limited knowledge on SDext backups
Asking @ibub @Junior Einstein and @shinobisoft
Sent from my GT-I9082 using xda premium
I think I'll move all the app and the appdata to internal memory and then do the backup. So all the app and the data will be saved. And after flashing rom y will put it. But the dalvik cache i'll leave in the sdext. So it will be erased, but i was thinking it doens't matter, but I wanted an expert opinion, to aovid getting bootloops or have to reflash the rom 2 or 3 times or whatever problem can be found. Thanks a lot.
akiratoriyama said:
Dalvik cache is not important while backing up
AFAIK SDext backup saves the links only
But I have limited knowledge on SDext backups
Asking @ibub @Junior Einstein and @shinobisoft
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
The backups, for any partition, besides cache and dalvik cache, are exact duplicate images of the partition(s). Comparable to that of an ISO image for the PC.
akiratoriyama said:
Dalvik cache is not important while backing up
AFAIK SDext backup saves the links only
But I have limited knowledge on SDext backups
Asking @ibub @Junior Einstein and @shinobisoft
Sent from my GT-I9082 using xda premium
Click to expand...
Click to collapse
If you choose to backup both sd-ext and the data then the apps symlinked to the sd-ext will be restored on restoring from the clockwork recovery...
Hit thanks if i helped you.. !

Was my adopted storage decrypt key lost despite full nandroid backup in TWRP?

I have my phone encrypted and my sd card is used as adopted storage. I was about to change my /cache and /data partitions from ext4 to f2fs. Now I'm unable to decrypt my sd card. I use twrp 3.0.2-0.
What I did was:
Create a full backup of all available partitions on adopted storage. (using TWRP)
Copy the backup files to my PC over MTP.
Change /cache and /data partitions' file system from ext4 to f2fs.
Restore the backup of /cache and /data (first forgetting about the rm -rf option and thus having to repeat the previous step for /cache).
Boot up and notice I can't access my adopted storage any more.
It seems that my backup of /data partition does not include the /data/misc/vold/expand_$PARTGUID.key file. The /vold folder seems to not be included in the backup, while the other folders in /data/misc are. Should I have known this?
My backup also contains partition named external_sd. It has a /misc/vold folder but it only has an empty "bench" folder in it.
It appears that I am in the same boat as well, despite having a different phone and a slightly older version of TWRP. Despite restoring from the backup, it appears that the key file isn't included. I have tried restoring the external_sd backup, but that ultimately wipes my SD card and errors out due to the file being on said SD card.
My best guess from that is, it is trying to go ahead and restore the partition layout on the card itself. As I have a Moto E 2014, I am unable to test whether or not the backup will restore the key due to extremely limited storage.
So this time I was wiser and I saved the keyfile separately. When restoring the backup I placed it back in the same folder and the sd seemed to mount happily. Later I noticed that I couldn't see my data even though my sd seemed like it was filled with my data. Then I thought that it could be related to the fact that internal storage was chosen as the primary storage. I went to move data to sd in settings and now my sd card seems to be almost empty.
E: I even restored from the sd card after placing the keyfile into the correct folder with twrp!

Full backup of dying phone using TWRP, backup should be accessible without the phone

Hello,
I have a Redmi Note 5 with TWRP and AOSP Extended, the charging circuits of which have died, so the phone cannot be charged or even take power from a charger, otherwise entirely functional. I now have my "last charge", the phone is charged to 100% and turned off, but as soon as the battery reaches 0% it is dead, probably forever, as it is not possible to charge it.
Now, I would like to somehow make a backup of the entire phone, in case there is some data that I might find out I need in the future. Is it possible to create a backup that I will be able to fully access after the phone dies? Is it possible to make such an image of the phone, that I could import it into a virtual machine and run on my computer?
Thank you very much.
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internal storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones. TWRP only backs up /data NOT internal storage
Android emulators run on x86/x86-64 CPU based machines whereas Android OS - all it installed apps included - runs on 32-bit/64-bit ARM-CPU based devices. Hence it doesn't make any sense trying to clone an existing Android device in order to run this clone in an Android emulator. It simply doesn't work.
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internal storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones. TWRP only backs up /data NOT internal storage
Click to expand...
Click to collapse
You are wrong. The /data partition - also called /userdata - is located on device's internal storage memory. To keep you updated: The /data partition has subfolder /data/media where user's data like pictures, musics, videos, etc.pp are stored.
The /data partition what also holds all apps and their data ( obb excluded ) installed by user in subfolder /data/apps always - using the right tool - can completely get backed up.
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internet storage are different. Data doesn't include pictures or videos. It just includes your apps and apps
Tab E said:
Using TWRP file manager you can backup your pictures, video, documents etc. To your SD card,, otg or pc. But you can't backup you /data. Data and internet storage are different. Data doesn't include pictures or videos. It just includes your apps and apps data. To backup this /data you have to use migrate or titanium backup. A /data backup of a perticular device from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones
Click to expand...
Click to collapse
data. To backup this /data you have to use migrate or titanium backup. A /data backupof a perticular from TWRP, might not boot on another device. So use migrate. You can select the apps you want to backup and you can put that in your SD card or drive. That apps can easily be flashed on other phones
Click to expand...
Click to collapse
jwoegerbauer said:
You are wrong. The /data partition - also called /userdata - is located on device's internal storage menory. The /data partition has subfolder /data/media where user's data like pictures, musics, videos, etc.pp are stored. The /data partition what also holds all apps and their data ( obb excluded ) installed by user always - using the right tool - can completely get backed up.
Click to expand...
Click to collapse
Thanks for informing
Thank you everyone for clarifying, I ended up just making a backup of the internal storage manually and then all the other partitions using TWRP backup.

Categories

Resources