[Troubleshooting] {CM 10.2} Running out of space while restoring apps - Galaxy Note GT-N7000 Q&A, Help & Troubleshooting

On many occasions while flashing a new CM 10.2 iteration, I have faced issues like running out of space while restoring my apps. Yes, when the TB gets stuck on one external app while restoring, more often than not its due to running out of space!
I have tried a little workaround successfully when I face such problem:
1. Use a root explorer to browse to: data/lost+found directory
2. Check the size of the directory- is it in GBs?
3. If yes, this is the folder which contains most of the junk that is clogging the rom
4. Delete all content from inside this folder i.e. empty the "Lost+Found" folder
5. Try restoring your apps now!!
P.S: I have not run into any problems after deleting ALL files and folders from inside the "Lost+Found" directory till date. Senior Devs may like to point out if there can be a problem in some cases. Anyways, you do it at your own risk!

Related

how to export installed list of applications to some file

Is there any way or any command which can save my installed set of applications to a Text file or PDF. My applications are growing and I cannot remember every one of them and I require all of them at one point or other. Can anyone give me some guidance?
You could use titanium backup, it does have an option to create an update.zip file for your backups which I haven't used but I assume it backs up your apps to the zip so you can reinstall apps from recovery, would need someone to clarify this though
Sent from my GT-I9000 using XDA App
I was using back up pro but it is no use. Suppose you flash a new rom, and if you restore most of them end up with Force Close errors. Since most of my applications are free, I don't mind spending some time installing them. But since many roms are changing so fast, I have to flash to keep up with the times, you know.
I don't know if there is such an option to save a list of installed apps, but it would be kinda useful.
I soon realized such a list would help and I am just manually creating my own in a text file, and all of the non-stock apps I have (thus far) added are in appbrain.com and I have ensured I have added each to "Apps on the phone" which then appears under "My Apps".
A list no but as all my apps are via AppBrain that's my list .
I use Root Explorer to copy all the APKS to a folder on the external card + a copy on PC . New firmware just open APK folder and install .
jje
For the time being, I am using Titanium free version and it backed up my applications and after I flashed the new rom I was able to restore all the applications via it's batch run commands. I do hope that I don't get force close errors. Upto now everything is working fine.
Thanks to all for your kind replies

[Q] Integrating updates of system apps (and/or downloaded apps) into ROM

Okay. I don't have a lot of knowledge on developing/tinkering on Android, but I think I've figured out how to integrate apps into the ROM (updates of system apps and/or downloaded apps). I used:
A stock cricKet 2.2.1 ROM, rooted (of course) w/Universal Androot
Root Explorer, and
ROM Manager (more on this later)
First thing is first, I did a TI backup; don't want to lose anything
I then opened Root Explorer
Mounted R/W, and
did a search for .apk.
Notice that the only directories the actual .apk files for INSTALLED apps should appear in (outside the SD card) are:
/cache
/data/app
/data/app-private (possibly)
/data/FLEX/app
/system/app
Ignore the following:
/cache
/data/FLEX/app
Now, you may already know this, but the system apps you're looking for are located in the /system/app directory, and downloaded apps (for the updated system apps) are located the /data/app directories that aren't being currently ignored (if you're following my instructions). Based on icon, filename, and common sense, I found which .apk files were the updates of already existing system apps (IE Market, Google Maps, Voice Search, etc.) in the /data/app directory, and the corresponding system app they updated in the /system/app directory. I then:
Copied the filename of the system app I was going to replace (rename copy all)
Moved over to the /data/app directory
Located the corresponding updated app
Renamed it what its corresponding system app was renamed (rename, delete existing name, paste)
Hit the 'move' option
Navigated to the /system/app directory
Deleted original system app (you may want to backup this file beforehand)
Pasted the updated system app
Within 30 seconds or so, you should get a (blah.blah.blah has unexpectedly shut down force close/report) popup. Just hit force close and you should be fine (Google Maps seemed to be a recurring FC). If you try to open the app before rebooting, it will force close on you. When you're finished, open ROM Manager. I know you're thinking 'This app is no good on the ZIO'; so stop. Hit 'Fix Permissions'. The reason for this is that it fixes a few rare force close issues. I don't know the mechanics of it, but it works, so I don't question it. Listen to the notification you'll see and reboot your phone after it finishes fixing the permissions. Now go into settings and manage applications, and you'll see that you can no longer uninstall whatever apps you moved to the /system/app directory.
FYI Renaming .apk files doesn't seem to make a bit of difference either way.
(Forgive my horrible perspective descriptions: I/you)
I haven't tested it yet, but I believe unrooting the device should make any apps moved to the /system/app directory that require root access would become non-functional (right?). The reason this thread is a question is that I'm wondering if i did this correctly, and if so, I want to find out if unrooting and factory resetting my phone would somehow delete the apps in the /system/app directory that weren't included in the stock ROM. (I'm not really willing to do that yet; I still have to download the SDK to my new computer so I can do a NANDROID backup.) Any help answering these from a more experienced developer would be great.
If you want to incorporate apps into a rom, the apps have to be free or you must get consent from the developer to include in your rom
Sent from my Zio using XDA Premium App
Only if it is a Public rom. Even free app developers should be credited in a public rom
Mattix724 said:
If you want to incorporate apps into a rom, the apps have to be free or you must get consent from the developer to include in your rom
Sent from my Zio using XDA Premium App
Click to expand...
Click to collapse
I'm operating under the assumption that you're using Google developed updates of system apps. I suppose I should have said something to that extent up top.
[UPDATE]
Okay, so I did a NAND and then factory reset my phone. Killed everything not in the /system/app directory. I'm sure you knew that would happen, but I guess I'm posting for the noobs. Easier to find, I guess.
Hi,
I've tried to integrate some apps using Titanium Backup but it stuch at 0% for more than 5mins so I cancelled the process. Is it normal that it was that slow? Does Titanium generate odex files too?
I've tried integrating updates for GoogleMaps, StreetView and Youtube using a recovery mode and ADB on my linux machine.
After the backup system data I've deleted original apk and odex files from /system/app/ and moved newer versions from /data/app/ to /system/app/.
I renamed the files from com.google.android.blah.blah.apk to old names (ie. Maps.apk, etc). I haven't generated the odex files.
Rebooted the phone (HTC Desire, 2.2, Orange UK) and these apps were not available. I couldn't run either GoogleMaps or Youtube. They weren't on the "All apps" list, but still were in the system app manager/uninstaller, but couldn't uninstall them as they were in system obviously.
Tried to clear Dalvik cache but no difference.
Then I've copied them with my user backed apk files (it went to /data/app and installed the newest versions) and all is fine - could launch them as usual.
Now using "adb push" method I copied my old system versions of these apps in the /system/app/ and all if fine. I could updated them to newer versions, but this obviously went to /data/app/, so didn't free the phone memory.
Any idea why integrated apps were not visible in the system?
Perhaps I shall just delete the old system apps and copy the ones from /data/app/ without renaming...
Much appreciate it.
Greg
edit:
All went fine now. Just deleted old files in the /system/app and moved newer version without renaming to from /data/app
use titanium backup and choose integrate updates into rom for the app
I don't want to pay for TB premium. I'm poor.
Sent from my Zio using XDA App
TB integrating not working on some phone (including mine) anyway.

[Q] install/uninstall apps leave traces like windows?

I install and uninstall many applications. Does it leave traces, file leftovers,
like windows. Is there something similar to windows registry if we install many app
files, running android will be slower.
I would like to know this as well. Its obvious that all uninstalled apps leave their folders with some files in it in SD card. There is a huge mess in SD card folder if I wanna find somethings amongst them.
Its hard to identify which folders are leftovers which aren't. This makes it hard to manually delete them.
Is there any app to clean those unused folders?
From what I've gathered the install / uninstall process is in a single file type format similar to the OSX system. Apps install by putting the apk file in a folder and uninstall the same way.
The things that are left behind is more like the crap a lot of software puts in the my documents folder.
"SD Maid" app seems to fit the bill and should do it...

Need to make some space...

I run Viper Rom 2.5.0. Been using it for a bunch of versions now. I have about 9GB left. I notice TWRP 2.7.0.2 is taking up close to 8GB. It's there any way I can get back some of that space?
Sounds like you have a few backups taking up space since TWRP in & of itself isn't anywhere that large. Use a file explorer app to go into TWRP and delete any unnecessary backups you may have.
I don't know what was in the TWRP -> Backup folder. There was a folder in there with a weird name, and within that two folders I had no idea what they were.
I went in NO BALLS style and just deleted them. Thanks!!
Magnum_Enforcer said:
Sounds like you have a few backups taking up space since TWRP in & of itself isn't anywhere that large. Use a file explorer app to go into TWRP and delete any unnecessary backups you may have.
Click to expand...
Click to collapse
The folder with the weird name was most likely the folder with your device serial number. Within that folder is your backups. If you deleted those you don't have any backups so you might want to go into recovery and make a backup soon.

Titanium Backup doesn't see backups

I just got a Nexus 6 and i'm trying to restore some apps I have backed up from my LG G3. I copied the backups into the Nexus 6\Internal storage\Titanium folder. When I opened Titanium Backup and went to preferences and chose the backup folder, I pointed it to the /sdcard/Titanium folder and it showed 339 backups. I started restoring a bunch of them (over 100) and it restored some, but then stopped and said restore complete with like 60 errors. Now if I open Titanium Backup it doesn't show any backups available to restore and if I go to the preferences and choose the backup folder, it says "This folder is empty" on the same folder. Opening it on my PC shows that the files are still there.
I've tried:
Restarting the app
Force closing the app
Clearing cache and data
Uninstalling and reinstalling the app
Any ideas?
While this has nothing to do with the nexus 6 (also, it should be in Q&A), i will answer it.
You have to go to the menu, then prefrences. Click on backup folder location, then press detect. It should find the location of your TitaniumBackup folder automatically, then click use current folder and it should restart after that.
Tell me if it works
Had this problem many times, especially when changing devices. Sometimes changing app processing mode from direct to indirect resolved hanging issues for me. You can find it in preferences.
XabdullahX:
That was the first thing I tried (should have put that in the list of things I tried). Titanium Backup can't find it.
killall:
That didn't work either.
The strange thing is even if I use a file explorer to go to the folder, I don't see my backup files. It's like they're not anywhere on the device. But if I connect it to my computer, I can see them all right there, all 1000+ files.
Whoa this is actually a bigger issue than just TIBu failling.
A ton of things are on one view but not another. I see files/folders through the android file explorer that i don't see on my pc, and I see files/folders on my pc that i don't see on my android.
What's going on?

Categories

Resources