installed app issues. - G1 General

last night I updated google maps and mybackup pro.
Now they don't show up in tool bar.
If you look in market it shows them as installed, but "open" and "uninstall" are grayed out and you can't click on them.
In terminal emulater under /data/app I see
"ls: ./com.google.apps.maps.apk: stale nfs file handle"
and
"ls: ./com.rerware.android.mybackuppro.zip: : stale nfs file handle"
I've use fsck on all partitions and repair ext filesystem from recovery with no help.

reflash the rom and reinstall the apps

oshizzle1991 said:
reflash the rom and reinstall the apps
Click to expand...
Click to collapse
Did that twice.
Ended up doing a data wipe and formatted my SD card.

Related

Save app settings between builds?

With so many great builds here at XDA, I of course want to try them all. Is there a way so save the settings on all or some of my apps. I have my apps on the SD card so I don't have to reinstall all of them at least. For example, its kind of a pain to set up the app Locale with all my situations every time.
Is there some xml or something for these apps that I could back up?
As it is right now I have a Nandroid of Haykuros 1.5, The Dude's, and JF's and I can load an older ROM, the restore the Nandroid backup and update with a non-wipe update, but its not ideal.
bittermormon said:
With so many great builds here at XDA, I of course want to try them all. Is there a way so save the settings on all or some of my apps. I have my apps on the SD card so I don't have to reinstall all of them at least. For example, its kind of a pain to set up the app Locale with all my situations every time.
Is there some xml or something for these apps that I could back up?
As it is right now I have a Nandroid of Haykuros 1.5, The Dude's, and JF's and I can load an older ROM, the restore the Nandroid backup and update with a non-wipe update, but its not ideal.
Click to expand...
Click to collapse
You can copy all info of the particular app you want to save settings from by copying its folder from /data/data
you can use adb pull or the terminal to cp
then push the /data/data/? to your phone when you reinstall the app...
Did this when I wanted to keep my level in bonsai blast during a wipe...
smeyerhuky said:
You can copy all info of the particular app you want to save settings from by copying its folder from /data/data
you can use adb pull or the terminal to cp
then push the /data/data/? to your phone when you reinstall the app...
Did this when I wanted to keep my level in bonsai blast during a wipe...
Click to expand...
Click to collapse
Would this be necessary if I'm running my apps from the SD? Does wipe remove the ln commands done to link the apps to SD?
cigar3tte said:
Would this be necessary if I'm running my apps from the SD? Does wipe remove the ln commands done to link the apps to SD?
Click to expand...
Click to collapse
I don't know, never done apps2sd, haven't really had a problem on my phone with storage. (I keep backups of the apps/data that I don't use much on my sd and install/push-data when necessary.)
I personally like the innovation but don't like the idea of apps2sd as I use my sdcard to transfer and store work files all the time and don't like what happens when you take the sdcard out/mount it.
however...
I can guestimate the answer....
Did you push the /data/data/ path to your sd also. Because if you did then you still have all that on your sd.
After doing a wipe when you link the folders again for the sd remember to keep the files that have been there already..
smeyerhuky said:
You can copy all info of the particular app you want to save settings from by copying its folder from /data/data
you can use adb pull or the terminal to cp
then push the /data/data/? to your phone when you reinstall the app...
Did this when I wanted to keep my level in bonsai blast during a wipe...
Click to expand...
Click to collapse
Thanks for the tip. I'll give it a shot next time I flash. I assume if I had put all my data on the SD card I wouldn't have this problem, but that seemed to slow stuff down last time.
cigar3tte said:
Would this be necessary if I'm running my apps from the SD? Does wipe remove the ln commands done to link the apps to SD?
Click to expand...
Click to collapse
Yes, a wipe removes the link, but your apps are still on the SD card. Just use the AppstoSD app and it will rebuild the link (or do it manually)
smeyerhuky said:
I don't know, never done apps2sd, haven't really had a problem on my phone with storage. (I keep backups of the apps/data that I don't use much on my sd and install/push-data when necessary.)
I personally like the innovation but don't like the idea of apps2sd as I use my sdcard to transfer and store work files all the time and don't like what happens when you take the sdcard out/mount it.
Click to expand...
Click to collapse
If you partition your card and apps2sd is on the ext2 partition you can mount and unmount your sd card as much as you want to your pc and not affect the apps2sd at all
however...
I can guestimate the answer....
Did you push the /data/data/ path to your sd also. Because if you did then you still have all that on your sd.
After doing a wipe when you link the folders again for the sd remember to keep the files that have been there already..
Click to expand...
Click to collapse
Putting /data/data on the sd slows down your phone, and gives the possibilty of getting the STALENFS error if the phone is syncing and you reboot. if you do that you'd want a class 6 microSD for sure. Thanks for the idea of pushing and pulling the data though, I have never thought about doing that. That would have saved me so many friggin headaches
bat file
Don't know if this will help anyone, but here is a BAT file I wrote that copies files from data/data to a folder on the sd card. You could edit it with the files you want to keep.

[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+.

Low on Space

Under applications I there is a tab for Apps On SD..
Is there a tab for Apps on Phone?
I keep getting Low on Space error, and cannot remove it.
I've cleared browser cache and deleted SMS messages..
Moved almost every app I could to the SD card (except the system ones, which won't allow me too, and a few widgets which need to be on the phone apparently [winamp, clockr, battstatt]).
Not sure what else is eating the ROM..
Is there an uninstaller app that you recommend that tells me if an app is on external or internal?
I'm running Kangorama 1.1 if that matters.
Thanks
On Kangorama's first post, you should look into the apps2ext method. Nexus One doesn't have much built in space for apps, so it's going to happen pretty easily. I highly recommend apps2ext since i have several gameloft games that eat up my memory instantly.
If you aren't interested in apps2ext, in the cyanogen settings/apps there should be a auto move all to external. This is the default froyo apps to fat32.
Thanks for the tip..
I thought I had apps2ext setup..
It was set in my advanced installer file and I remember choosing an ext2 partition..
however when I run a2sd check in the terminal
it says it finds a partition but it isn't installed properly.. I might have an ext4 partition and this rom doesn't support it..
I tried re-installing and it says it's missing an install file..
Running fix_permissions now..
I'm going to try a2sd uninstall/install in a bit.
You must have an Ext3 partition, so in your recovery you have an option to ext2>ext3.
Then in terminal write this:
- su
- a2sd check
- a2sd cachesd
Then phone will reboot and voila

Just Flashed CM7, No Titanium Backup

Just got CM7 and none of my apps and accounts transferred. My Titanium backup is showing on my SD Card in the file manager, but how do I move it from my SD Card to my phone so i can use it?
lowandbehold said:
Just got CM7 and none of my apps and accounts transferred. My Titanium backup is showing on my SD Card in the file manager, but how do I move it from my SD Card to my phone so i can use it?
Click to expand...
Click to collapse
Make sure busybox is installed. Click have problems on the bottom of titanium and it will do it for you. Make sure install from outside sources is checked in the system settings under applications.
In titanium his the menu button to the right of home on the bottom of your phone. Hit batch. Scroll down and select restore apps. Select which ones you want to restore.
Profit.
Sent from my HTC Glacier using XDA App
My titanium only shows on my SD Card. I tried to restore my recovery to take it back to stock and now it won't go past the MYTouch screen..any help? Is it because I need another version of Clockwork?
And now i reflashed CM7 and I get stuck on that load screen. Someone please help!
Sorry guys, I really suck, and I am a complete noob. Obviously I can't run my recovery because of the version of clockwork I have. Fixed my cm7 using a previous thread...I just had to go into recovery and and advanced and wipe my danvlik cache..So now back to the root of the issue. On my cm7 I dont have the market or any of my apps. i have them all saved to my titanium backup, but the app for that is not on my phone, it just shows on my sd card through my file manager. So what do I do to use titanium?
lowandbehold said:
Sorry guys, I really suck, and I am a complete noob. Obviously I can't run my recovery because of the version of clockwork I have. Fixed my cm7 using a previous thread...I just had to go into recovery and and advanced and wipe my danvlik cache..So now back to the root of the issue. On my cm7 I dont have the market or any of my apps. i have them all saved to my titanium backup, but the app for that is not on my phone, it just shows on my sd card through my file manager. So what do I do to use titanium?
Click to expand...
Click to collapse
Download the gapps from the cyanogen website and install. You will get the market back. With titanium, when you start hit the problems button then "yes do it" option, it will download the busybox and all you backups will show.

[Q] Data to SD.. After upgrading via Kies

Dear Frnds
i have updated my g3 i5801 via kies
some bugs
Camera not working
Swipe not working
& how can i move apps to data card
can i root this now.....
help..
lovelyample said:
Dear Frnds
i have updated my g3 i5801 via kies
some bugs
Camera not working
Swipe not working
& how can i move apps to data card
can i root this now.....
help..
Click to expand...
Click to collapse
Yes...You can root this... I would suggest doing a factory reset before rooting
Then root the phone
Remove swype using titanium
install swype beta
Camera doesnt work if wireless networking is selected in location and security
You can use a data2sd script for that
jaskiratsingh said:
Yes...You can root this... I would suggest doing a factory reset before rooting
Then root the phone
Remove swype using titanium
install swype beta
Camera doesnt work if wireless networking is selected in location and security
You can use a data2sd script for that
Click to expand...
Click to collapse
Hi jaskirat
if i do factory reset then will it delete my all apps that i installed in phone
what is data2sd script
is that any type of apps
sorry i m new to this ...
Hi lovelyample
Data2sd script moves your /data partition from internal memory to a partiton on sd card. It allows you to install more apps on your phone.
If you will do factory reset you will lose all your apps and settings.
frnds i have reset my factor setting
now how to root this fone
i have tried z4root but its not working
superoneclick not opening on my pc (XP) give error "CLR error :80004005"
help me
lovelyample said:
frnds i have reset my factor setting
now how to root this fone
i have tried z4root but its not working
superoneclick not opening on my pc (XP) give error "CLR error :80004005"
help me
Click to expand...
Click to collapse
Use super one click 1.7
Sent from my GT-I5801 using XDA App
You should use SuperOne Click 1.7 or 1.8 to root your phone.
Factory reset should be done by using the code *2767*3855# and yes you will loose all applications after that. To save them you can root the phone now, then run the following commands from adb
go to adb folder
adb shell
su
cd /sdcard
mkdir apps <you can choose any folder name>
cp apps
pwd <this should give you /mnt/sdcard/apps>
cp /data/app/*.* /sdcard/app
All your applications will be backed up in apps folder in sdcard. Note that when you partition the sdcard for data2sd, it will wipe data on sdcard. so make sure that you backup your sdcard
I personally use lagfix and data2sd created by Apollo. Mostly data2sd doesnt show correct partition size in task manager but this one does.
http://forum.xda-developers.com/showpost.php?p=11308743&postcount=170
Make sure that you read the process throughly and backup your SD Card before running this
jaskiratsingh said:
You should use SuperOne Click 1.7 or 1.8 to root your phone.
Factory reset should be done by using the code *2767*3855# and yes you will loose all applications after that. To save them you can root the phone now, then run the following commands from adb
go to adb folder
adb shell
su
cd /sdcard
mkdir apps <you can choose any folder name>
cp apps
pwd <this should give you /mnt/sdcard/apps>
cp /data/app/*.* /sdcard/app
All your applications will be backed up in apps folder in sdcard. Note that when you partition the sdcard for data2sd, it will wipe data on sdcard. so make sure that you backup your sdcard
I personally use lagfix and data2sd created by Apollo. Mostly data2sd doesnt show correct partition size in task manager but this one does.
http://forum.xda-developers.com/showpost.php?p=11308743&postcount=170
Make sure that you read the process throughly and backup your SD Card before running this
Click to expand...
Click to collapse
Hi jaskirat
i have root the phone enable livewallpaper on it
download the lagfix folder (mentioned as above link)
now how can i do partition & lagfix
Thanks....

Categories

Resources