How to clean leftover stuff in clean install of CM7? - Nook Color Q&A, Help & Troubleshooting

Hi,
I just did a clean install of CM7 (wiped system, data, cache). Everything works perfectly. However in File Manager I can still see epub ebooks I have from a previous install, a B&N Downloads folder, an adobe digital editions file, ...
How do I get rid of these as part of the clean install process? I mean, I can connect the Nook to my PC and manually delete them, but is there a way to wipe these before installing a new ROM?
Thanks a lot!
Paul

No help with this after three months?
The only additional information is that before my clean install I had swapped the sd card and emmc (per http://forum.xda-developers.com/showthread.php?t=1034939).

I would manually delete anything you don't want with root explorer. Do this once, and you don't have to worry about it. Possibly format the areas it's in. I don't like to do this unless it's really necessary.

texnote said:
Hi,
I just did a clean install of CM7 (wiped system, data, cache). Everything works perfectly. However in File Manager I can still see epub ebooks I have from a previous install, a B&N Downloads folder, an adobe digital editions file, ...
How do I get rid of these as part of the clean install process? I mean, I can connect the Nook to my PC and manually delete them, but is there a way to wipe these before installing a new ROM?
Thanks a lot!
Paul
Click to expand...
Click to collapse
You have to do it manually. Wiping the data with CWR only wipes the data folder.

Related

How would you restore the SD Cache after a wipe? (To fully be back before the wipe)

Hey all, been spending the past couple days searching and reading various topics on this. My G1 if you rem the post went into the looping thing which I had to wipe to have it come back up. Now I used lucids script which relinked everything yes... including the looping reboot. So started from scratch again. Was times when I DID get it to show up but root, terminal were missing afterwords, Wipe/upgrade again. Now all I have done so far is JUST moved the apps, I havent touched the cache yet. Which at least now it shows my apps installed. Now I just need the config data back (Data) to complete the setup I had again.
How would you have the G1 go back to using the SD for the cache mapping. Would you move the cache (which isnt a good idea) back to the G1 then redo? I just wanna get everything back to 100% the partitions is fine and so since it does boot fine. I just dont wanna attempt to move the cache again only for phone to reboot and wind up missing its apps again and no root support till I wipe and start over again.
I want this all back since I had my G1 since it came out, Market cache is big, which yes I can manually restore that, but I rather do it all clean in one good move.
Anyways if anyone here knows how to relink a cache without it causing issues would be great. (Also the de cache is still on internal too) I did install the img from lucid tho for booting.
No one has any ideas or insight to this one? =/
It depends on what version of app2sd u are using or I should say it depends on the ROM. If you are upgrading to a ROM that uses Marcus's apps2sd u should be fine to follow instructions below. If u are using old apps2sd, then use Lucid's script to re-link to sd card after upgrade.
Copy all files from the sd card back to the phone, upgrade, then put them back on the sd card using apps2sd
Well can I copy the cache over to the internal and so, then move them back? The apps are linked fine to the SD atm, Im using Lucids. JF 1.51 US.
The cache, what is that exactly? Is that just the user data it creates after you run the program or what.

[Solved] Market Error "Invalid Package File"

I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
My phone has been doing the same thing with the whole package file is invalid bs. I tried to follow your instructions on going to the /cache folder. When I went to the folder, it was empty, so I wasn't able to remove any .apk files. So now what? How do I fix this?
If you use a File Managemet app like ASTRO, it will show the folder as empty because you need root access to see the dir. However, if you use Terminal Emulator or adb shell (as root) you will see that there are indeed other directories, and probably these orphaned .apk files.
Hi,
I'm also having the same issue with invalid package. I cleared the /cahch direcotry and still have the issue -- Is there something else i can try before wiping and starting over?
thanks
Rudey
It could also be caused by the .android_secure folder on your SD card. Clearing this folder and letting the market restore them solves issues a lot ofthe time.
As always use TiBackup or something to backup all your apps first too to be safe.
As the OP, I can tell you that I have, in fact, been unable to fix this problem.
Initially the suggestion I posted above worked, however a couple of days later is was no longer working again.
I have tried every trick on the web, including:
1. Removing SD card.
2. Deleting the above mentioned folder
3. clearing market cache
4. Clearing all caches in recovery
5. logging out and back in to google talk.
The only thing that fixes it is a complete factory reset.
I currently have a combination of 3 errors:
1. No download at all.
2. Download unsuccessful
3. Invalid Package
some apps will still update, but what is really weird is that I am even getting invalid package on new apps (so its not a corrupt app already installed on the phone).
One last thought. Once I am unable to update an app, even if I remove it, I can no longer restore the backup using Titanium.
oughta try reformating your SD card and let the phone reformat it too.
sgt. slaughter said:
oughta try reformating your SD card and let the phone reformat it too.
Click to expand...
Click to collapse
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
sw99 said:
don't see why this is different than un-mounting the SD which should do the same thing and has been tried.
Click to expand...
Click to collapse
na actually reformating it will fully wipe everything on the SD and having the phone do it is best always as its always better to format with the device your using the disk on the most in general.
Found the problem, updated in OP.
sw99 said:
I've been having this problem on and off for a while, mostly I believed it was related to something getting corrupted when I restored my apps to a new Rom with Titanium Backup.
I am happy to say, that after scouring the web for days, and trying a lot of wrong information, I finally figured out how to fix this.
It's real easy. All you need to do is remove any *.apk files located in the /cache directory on your phone (did not even need to remount- though I did it as root just in case).
I never did figure out why only some apps will have this problem or how the problem first comes about, but I have successfully done this twice and have since been able to install/update files that had this error before.
Update (3/3/11): OK - After scouring the Internet for over a month I finally figured it out. My info above was only part right. The problem is specifically with ROMs/Kernels that move the dalvik-cache to the /cache directory (HTC puts it in the /data dir).
In any case, when it's in /data, it is using app space, and therefore you usually run out of app space and know about it. However, because this is in /cache, you don't really know what you are using. As you load up on apps, your dalvik-cache grows, and since these apps need the .dex files in the cache, even if you clear your cache, it will just get re-created.
the /cache dir is also where the apps are temporarily stored while downloading from the market. So....
1. If you are getting immediate download fails, that means that your cache is so full that you don't even have space for the temp file.
2. If you get "Invalid Package" that likely means that there was not enough cache left to install the .dex files (the download is also taking up some of this space).
Unfortunately, the only way to fix this is to either remove some of your apps, or move your cache to your SD card.
HOWEVER, I found this great app on the market called Link2SD, that allows you to only move select apps to the SD card, and you can also move the dalvik-cache files associated with these apps.
see this thread for specifics: http://forum.xda-developers.com/showpost.php?p=10711328&postcount=1
it lets you select which apps to move. You will need to create a new partition on your card, though.
So far results have been great and I can finally update the 30+ apps that have been stuck for me for the last 2 months.
almost forgot, if you adb shell or use terminal emulator, you can type "df" to see how much space is left on all your mounts.
Click to expand...
Click to collapse
Didnt solve my issue.. I had reformatted my phone and SD card and reinstalled my apps. It was working fine again but now its back to some apps update fine.. some get DOWNLOAD UNSUCCESSFUL and some get PACKAGE FILE INVALID.. any ideas.. Im on sprint lovers rom (latest)
It appears th LINK 2 SD needs a second partition that I dont have nor use with SPRINT LOVERS ROM and 2.2 .... am I missing something??
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Follow the instructions on that thread and create the second partition. You won't need more than 500mb. apps2sd or link2sd is the only way you can fix this problem unless you want to remove some of your apps.
Sent from my PC36100 using XDA App
gpz1100 said:
To the OP,
The program you linked to seems to be a variation of dark tremor's a2sd method (http://forum.xda-developers.com/showthread.php?t=715116). His lets you move data, cache, and/or dc to the ext partition, but doesn't (at least I don't believe it does) give you granular control over which apps remain in the standard location.
In my own use, I chose to move all user installed apps to sd, but dc remained on the internal memory (albeit, not in /data, but in the /cache partition). I figured this way, even if the sd card is missing, the phone will still boot. I won't have access to anything I installed, but whatever the rom came with will still be accessible.
Click to expand...
Click to collapse
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
sw99 said:
Yes that's true, and I eventually went the app2sd route. However, I was trying to avoid that because of the slow speed of my sd card.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I'm not sure which app2sd method you're referring to, but keep the following in mind. I discovered this after my backup images failed to restore properly.
In the past, i'd be backing up boot, system, and data partitions. Obviously with dt's a2sd, I need to include the ext partition now. No problem. BUT, when restoring, i'd run into issues where my apps were present, but all settings were lost. After much confusion and head scratching, I tried wiping cache and dc AFTER the restore, but before the initial boot. The restore was a success now!
Apparently, with a2sd on the ext3, some remnants of cache or dc remain when backing up, even if cache is not selected. As part of any good restore, first thing is to always wipe, so now we end up with a hodge podge of files in the cache which I think causes the OS to revert all the settings back to default.
Just something to keep in mind.
i wanted to go back how my dhd was.. lots of problem.. i havent fix my radio problem yet and now this invaled package thing *face palm*
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
supericexu said:
My phone is HTC G7, and I use data2sd to get 1.5G rom space, now there is still about 1.2G left, but I also met the "invalid package file" problem. I can't find any *.apk in /cache, (root, with "ls -a"). But if I uninstall some apps, I could install or update other apps successfully. I could not use Link2sd for I already have data2sd and I guess it's not a problem of insufficient space, because I still have enough rom space.
Do you have any new solutions?
Click to expand...
Click to collapse
The problem is not the apps, its the /cache running out of space. I suspect that the app you are using cannot move the dalvik-cache files (and is really just a shortcut to android's app2sd - which is not the same as darktremor or link2sd).
in terminal us df -k to see how much space you have on each mount to confirm that there is little space in cache.
If you really have that much space in your apps mount, then I would suggest moving the dalvik-cache back to its original location (search for instructions, as the only way I know how to do it is by installing darktremor's app2sd). If you are still having problems, you really are limited to either partitioning your SD card and using apps2sd or link2sd or removing apps.
hope this helps.
I have been having this issue for a couple of months now - with a bit of a twist. After wiping my dalvik-cache, my apps began to sucsessfully update - except for Google apps.
I have no idea why just those apps, but going into settings/Applications/Manage applications, and selecting each app, then clearing that apps cache, allowed those apps to sucessfully update also.
I am thankful I did not have to resort to the above fix.
Any solution if not rooted?
I've just started to get this error when trying to update the Google+ app. The error is only happening with Google+, every other app I update/install works fine.
I haven't rooted my device, and I'm hoping there's a way to fix the issue without rooting?
Device: Nexus One
Rom: Stock Android
Version: 2.3.4
Although I couldn't see anything in the cache directories, I checked in /system/app and couldn't find any package that looked like it would be Google+.

[Q] No room to put dalvik back.......

Im currently running s2e and i have no room to put dalvik back onto the internal memory. I wondering if i can just go into root explorer and go into /data/dalvik-cache/ and delete everything to clear dalvik? so like right before flashing a rom? I just want to see if this method works. I used to do a titanium back up, and then start deleting apps that were pretty large to make room for dalvik and that's a big pain in the booty. thanks guys.
tommyguns818 said:
Im currently running s2e and i have no room to put dalvik back onto the internal memory. I wondering if i can just go into root explorer and go into /data/dalvik-cache/ and delete everything to clear dalvik? so like right before flashing a rom? I just want to see if this method works. I used to do a titanium back up, and then start deleting apps that were pretty large to make room for dalvik and that's a big pain in the booty. thanks guys.
Click to expand...
Click to collapse
You can make an Ubuntu installation cd (I actually use an Ubuntu USB). You can actually run Ubuntu from a disc, no need to install. From there you can actually mount the ext as USB storage and add/delete things from it.
The Ubuntu website has Ubuntu for download for free and also provides instructions on making a bootable disc.
Sent from my cm7 Aria.
Ill have to check Ubuntu out. Especially if I can do it via USB. I was wondering If i weren't by a computer, is there a way like root explorer or a terminal command? Im usually never by a computer. Just seeing some more options.
sent from cm7 rc4 ladios, 6-7 kernel
tommyguns818 said:
Ill have to check Ubuntu out. Especially if I can do it via USB. I was wondering If i weren't by a computer, is there a way like root explorer or a terminal command? Im usually never by a computer. Just seeing some more options.
sent from cm7 rc4 ladios, 6-7 kernel
Click to expand...
Click to collapse
If you have a root access file manager such as Root Explorer you can delete the dalvik cache easy. In Root Explorer go to:
/sd-ext/dalvik-cache/
just select all and delete it power off the phone/boot into recovery. Im not sure if this will also clear the dalvik in /data/dalvik-cache, so you may want to check that as well. The sd-ext and /data/ are both able to be modified with the phone on. I personally use Root Explorer. Sure it costs, but its the best file manager around. I use to wipe the dalvik off the sd-ext, but never thought to wipe the /data/dalvik-cache. I usually just wipe sd-ext from RE, and then boot into recovery and wipe dalvik that way too just to be on the safe side. But I suppose its easier to just use R.E. to wipe it all
Just relized that my work is very strict on running programs off of CDs and usb. So ubuntu wont work for me. Thanks so much though. anybody else out there have a different way of clearing dalvik on ext3 without a computer or moving back onto internal memory?
sent from cm7 rc4 ladios, 6-7 kernel
tommyguns818 said:
Just relized that my work is very strict on running programs off of CDs and usb. So ubuntu wont work for me. Thanks so much though. anybody else out there have a different way of clearing dalvik on ext3 without a computer or moving back onto internal memory?
sent from cm7 rc4 ladios, 6-7 kernel
Click to expand...
Click to collapse
Read the post above yours
EDIT: You can use EStrongs File Explorer to do the same thing and its Free in the market. You have to go into settings and scroll all the way down to Root Options and select the two check boxes first. Then you will be able to access the sd-ext and /data/
Didn't see that post above. Oopps. I have RE. I will try this out. Thanks again.
sent from cm7 rc4 ladios, 6-7 kernel

Starting over

Using Titanium Backup, I have seen my internal and SD card get fuller and fuller. I'd like to start from the beginning. Here's what I have planned, let me know if this should work.
1. Download the same fresh ROM that I've been using, FR008.
2. Using ADB, remove bloatware and apps that I'm not going to use.
3. Flash the UOT Kitchen zip that I made recently, as well as a font zip.
4. Nandroid backup all of these changes.
5. Wipe Dalvik, wipe cache partition, wipe data/factory reset, wipe battery stats.
6. Copy the contents of the SD card to a safe place (PC or USB)
7. Reformat the SD to remove the EXT3 partition, make it all FAT
8. Copy the Clockworkmod folder back to the SD card (it will be the only file)
9. Restore the Nandroid backup I made in #4.
This should give me a fresh start and then I can reinstall the apps that I want. I assume this process will remove all of the remnants of junk left behind by all the previously uninstalled apps. I know there has got to be some serious junk in the 1 year of messing with this thing.
On a side note...is there a way to have the previous purchases made in the market no longer visible in the "My apps" view? Some of the previously purchased apps no longer have any purpose for me. It would be nice to clean that up.
In reality you should be able to easily "clean up" whatever is taking up the extra space. First, when you uninstall an application, the app data stored on internal memory is automatically erased. Uninstalled apps can leave behind data on the SD card (and many do), but you can just delete this yourself (even stuff inside the Android folder) without going to the extreme of formatting the entire card. As for the internal space getting larger, this is probably the result of your dalvik cache growing and growing. This is completely normal and doesn't make your device slower, but it can mean you'd run out of space. You can clear your dalvik cache from CWM, but ultimately the phone will just recreate it.
But, if you just WANT to start with a clean slate, that's up to you. If you are going to go that route, then I'd advise you to simply wipe everything (dalvik, cache, data, and in addition to what you said, the system partition) before installing the fresh ROM. Making a Nandroid backup is unnecessary for this process (although you might want to make one at the beginning just in case you want to revert). Like I said before, stuff on your SD card can be deleted whenever you want, so you can just delete/format it before or after you do the above.
You should NOT wipe your battery stats unless your phone is giving inaccurate battery readings. Wiping this will just make your phone give you less accurate battery readings for a while.
duckredbeard said:
On a side note...is there a way to have the previous purchases made in the market no longer visible in the "My apps" view? Some of the previously purchased apps no longer have any purpose for me. It would be nice to clean that up.
Click to expand...
Click to collapse
I think if you force close and clear the data for the Market app, it will clear that list (and repopulate it only with apps currently installed).
The purpose for writing the sd card is to get rid of the ext partition.
My last Intruder was a Grumman A-6E.
duckredbeard said:
The purpose for writing the sd card is to get rid of the ext partition.
Click to expand...
Click to collapse
It seems to me like your intention is to avoid running out of memory, which is why I'm confused why you want to delete your ext partition. The Aria has such little internal memory that I'd suggest using apps2sd with any custom ROM, but to each his own.
In any case, if you are going to delete it, the easiest thing is probably to delete it before you install anything. If you have a computer with a microSD card reader, then you can do:
1) Turn phone off, remove SD card, and format the card from your computer.
2) Copy all the ROM zip files you want to install to the SD card, and put it back in the phone.
3) Boot straight into Clockworkmod, take a Nandroid backup if you want, then wipe everything and do a clean install.
The reason I'm confused with the list of steps that you gave is that you're taking a nandroid backup, then wiping everything, then doing a restore. The restore just completely undoes the wipe, so what was the purpose of wiping? If your intention is to only restore the system partition, then I don't see why you don't just delete the ext partition before wiping.
Ok...that was a little scary. On the high anxiety side of uneasy. I used my old Aria (ATT didn't want the old one on an insurance claim) to clean out FR008 Liberated ROM. I used adb to remove any and everything I had not used in the last year since I got the phone. Stock widgets, HTC widgets of all sorts, app sharing, setup wizard. Lots of stuff. I then applied my font pack and UOT kitchen mods. Once I was happy with that, I did a nandroid of that and saved it away.
Then I took the sd card and made a copy of it. Using Ubuntu, I removed the EXT3 partition and made it all FAT32. Then I copied over pertinent files such as notifications, wallpapers, and the beloved Tasker folder, which contained a very recent backup. I also created a clockworkmod folder and placed the aforementioned nandroid in that folder (from the old device to the new).
Inserted the SD and rebooted into recovery, restored the backup. Rebooted fine.
The only apps I have installed so far are Titanium backup and Tasker. I'll be monitoring Titanium as I reinstall the apps from the market that I know I want.
The scariest part for me was juggling the SD cards and what nandroid was to be the newly reborn aria. Glad there were no issues with the Tasker restore also. That is alot of work rebuilding profiles and tasks.

[Q] Will a factory reset or flashing a ROM erase my EMMC-files?

I'm thinking about wiping my Nook since I can't get WiFisleep to work anymore. But what will happen to all my books and comics stored on the EMMC then? I'm running cyanogen 7 from the internal memory with no traces of BN(the first thing you get when you boot is a small cyanogen logo). Do I have to back all those files up?
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
skeeterpro said:
If you wipe data and Dalvik you most likely lose those files (depending on where you have stored this files to save). I would suggest backing them up to your uSD to be safe for now.
Click to expand...
Click to collapse
Wiping Davlik will not delete those files. I wipe it every time I upgrade to a higher nightly. In fact, it is all that I wipe. The real question is will an update or reflash solve the problem? If it were me, I would flash an update using ROM Manager, wiping Davlik and including gaaps in the update. If that does not solve the issue I would then start from scratch since a system wipe will be needed. However, backing up the apps first using Titanium Backup (but not system settings) will get you back after the new flash.
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
votinh said:
pat is right, wipe Dalvik doesn't touch files but skeeter also right as wipe /data, everything most likely gone with the wind
Click to expand...
Click to collapse
Wiping /data will indeed wipe all downloaded applications and their associated settings but I think the OP is referring to media files stored on the emmc partition and this will not be touched by a data, system or cache wipe, just like SD card contents won't be touched.
I store some basic media files on internal emmc making use of about 4GB spare capacity. This gets scanned as well as the stuff stored on SD.

Categories

Resources