[SOLVED] fix_permissions causing force closes - G1 Q&A, Help & Troubleshooting

I had a few forcecloses every now and then on my install, so I ran the fix_permissions script in recovery
Now, nearly all the apps I have installed forceclose when I try to open them. I believe the script is not properly changing the permissions (or even messing them up)
This is the second time it happened (first time happened when I first used it on 3.6.8 [clean install after a wipe] and persisted through a wipe and reinstall since I have apps2sd)
Only reinstalling happens to fix the problem. Is there a solution to this? (because searching fix_permissions forceclose brings up lots of threads that say "if you have forcecloses, use the fix_permissions script" )
I don't want to reinstall all my 160 apps lol
I've attached a logcat of what happens when I open an app after running the script and the subsequent forceclose [there is a mention of permission denied]
If there is a thread or solution, please direct me to it and close this thread.
My up-to-date info is in my sig

check out this thread it has an improved fix_permissions script that hopefully can help you. if it doesn't just make a backup of your ext2/3/4 then reformat it. then put the backup back on it.

david1171 said:
check out this thread it has an improved fix_permissions script that hopefully can help you. if it doesn't just make a backup of your ext2/3/4 then reformat it. then put the backup back on it.
Click to expand...
Click to collapse
Yes I saw that. Tried it and it worked haha.
Backing up the ext3 didnt work, because when i restored, the permissions were still messed up.
(also forgot to mention in OP that i tried fixing the filesystem from cyan's 1.4 recovery for future reference)

Thanks a bunch!!!

Related

Wiping Question[look at post #12,19]

Hey all.
After installing CM-v4.0.2 and the Dark Dream Theme I was golden.
Then I wanted to try Jac xrom. So I ran recovery, wiped, and installed and loaded the rom.
Everything was ok. But I noticed my apps were still showing up even after wiping. I think this is because of the A2SD feature....some would FC but I just uninstalled those ones and reinstalled and they worked.
So I ran recovery, wiped, and then installed CM 4.0.4. My apps are still there.
So now you know my history, how can I "WIPE" my SD card from my phone, if that is even possible?
I know how with my partition manager, but that is such a hassle....
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
try that
Is that from Virtual terminal, or from recovery terminal?
Since u have cyan's 1.4 recovery u can fix it without deleteing them and installing agian. Go into the recovery console and run fix_permissions reboot and you sould be good. Should look like this:
Fix_permissions (press enter)
Reboot(press enter)
After it reboots u shouldnt have anymore fc!
rakjer said:
Is that from Virtual terminal, or from recovery terminal?
Click to expand...
Click to collapse
its better to do it in the recovery terminal, but you can do it in terminal but you will receive massive force closes till your wipe your phone and flash a new rom. but try to do what pistol4413 said first, if you want to keep you apps
So if I wanted to start from scratch(no apps on SD) I would:
-Run the code david1171 provided from terminal
-flash a fresh rom
-flash a fresh theme
and if I want to change roms after that I would:
-wipe
-flash new rom
-run fix_permissions
[EDIT]
Would it be smart to do a nandroid backup so if I dont like a rom I can just reflash the backup?
rakjer said:
So if I wanted to start from scratch(no apps on SD) I would:
-Run the code david1171 provided from terminal
-flash a fresh rom
-flash a fresh theme
and if I want to change roms after that I would:
-wipe
-flash new rom
-run fix_permissions
Click to expand...
Click to collapse
yep you got it or for changing roms you shouldn't have to wipe if going between cupcake builds but a wipe is needed if changing from a hero to cupcake or vice versa.
Wow you posted fast. Thanks. I couldnt even edit that fast.
Would it be smart to do a nandroid backup so if I dont like a rom I can just reflash the backup?
rakjer said:
Wow you posted fast. Thanks. I couldnt even edit that fast.
Would it be smart to do a nandroid backup so if I dont like a rom I can just reflash the backup?
Click to expand...
Click to collapse
yeah i nandroid before flashing any new rom that i think could mess up. and i just go between forums a lot. i have the dev, theme, and Q&A in my toolbar on firefox so i just click between them frequentlly lol
So that code you provided only deletes the contents of the partitions, and not the partitions themselves?
rakjer said:
So that code you provided only deletes the contents of the partitions, and not the partitions themselves?
Click to expand...
Click to collapse
that is correct. to delete the actual partition you would have to go into parted via the recovery console and type rm x(substitute with whichever partition needs to be removed)
Ok. So I formatted my SD. Re-flashed 4.0.4.(no theme this time)
Now all is ok EXCEPT, when I go to my downloads, everything I have purchased/downloaded says it is still installed ,and I try to uninstall and it gives an "uninstall unsucessful". After that it highlights the app and makes it "purchased" so I can DL it again.
I tried to run fix_permissions but this had no effect.
Anyway around this?
Has this already been addressed? If not should I post this in Cyanogens thread?
It is possible that it is your market database connected to your gmail account, I wouldn't worry about it if the programs are no longer there
gridlock32404 said:
It is possible that it is your market database connected to your gmail account, I wouldn't worry about it if the programs are no longer there
Click to expand...
Click to collapse
that's correct don't worry about it. if they say free beside them that should mean that they are no longer on your phone but it is still linked to the market database
He is saying that he is trying to uninstall them though so it would have to be saying installed so it is sounding more like some type of remains possibley on there
gridlock32404 said:
He is saying that he is trying to uninstall them though so it would have to be saying installed so it is sounding more like some type of remains possibley on there
Click to expand...
Click to collapse
now i am confused bc he says it says free... wouldn't it say installed if the phone still thought the app was installed
oh wait i went back and reread what he said a few times, and from what i understand it could be that the phone registers the apps being on it but when he tries to uninstall it the phone can't find the app, then it says uninstall unsuccessful and gives the option to reinstall it. maybe thats what it is
That is exactly what is going on, it's nothing to worry about though
gridlock32404 said:
That is exactly what is going on, it's nothing to worry about though
Click to expand...
Click to collapse
at least now he has a reason behind it yay for logical deduction
That is what is happening guys. Thanks for the insight.
All my purchased apps say installed, even though they are not installed.
When I select one from the "my downloads" it gives the option to run or uninstall.
-If I choose run, it says app not found
-If I choose uninstall, it says uninstall unsuccessful.
After all that, the app goes back to "purchased" status do I can DL again.
Same goes for the free apps.
This is quite bothersome.
Now I am just in need of a fix
Does any one have a fix or any suggestions to fix?
rakjer said:
That is what is happening guys. Thanks for the insight.
All my purchased apps say installed, even though they are not installed.
When I select one from the "my downloads" it gives the option to run or uninstall.
-If I choose run, it says app not found
-If I choose uninstall, it says uninstall unsuccessful.
After all that, the app goes back to "purchased" status do I can DL again.
Same goes for the free apps.
This is quite bothersome.
Now I am just in need of a fix
Does any one have a fix or any suggestions to fix?
Click to expand...
Click to collapse
try going to settings- applications- manage applications- market- clear cache.

Nandroid Restore - applications missing/half there

Hi guys,
I wanted to check out android 2.1 flan, so I installed the rom after making a nandroid backup.
It was fun to check out, but in order to load it I had to wipe my phone and my cache.
After restoring my nandroid, all the applications I had installed but wiped with the cache are acting funny. Basically they still show up in manage applications, but they really arent there, and if I try to reinstall them through market it doesnt let me click install OR uninstall as both are greyed out.
Basically, I will have to wait for all my applications to get "updates" before I can use them again.
Is there a way to clean up these ghost programs... without doing a complete wipe (and loosing text messages and other things)?
I didnt think Nandroid did application backups (what you are seeing are in the ext3 partition)
You need Switchrom or BART to do full backups including apps
I may be (and no dount will be) wrong though.
sjbayer3 said:
Hi guys,
I wanted to check out android 2.1 flan, so I installed the rom after making a nandroid backup.
It was fun to check out, but in order to load it I had to wipe my phone and my cache.
After restoring my nandroid, all the applications I had installed but wiped with the cache are acting funny. Basically they still show up in manage applications, but they really arent there, and if I try to reinstall them through market it doesnt let me click install OR uninstall as both are greyed out.
Basically, I will have to wait for all my applications to get "updates" before I can use them again.
Is there a way to clean up these ghost programs... without doing a complete wipe (and loosing text messages and other things)?
Click to expand...
Click to collapse
As mentioned above, nandroid *does not* back up your external apps. It will ONLY backup your *INTERNAL* storage.
If you make a clean restore of your nandroid backup and then run the fix_permissions script from recovery, it *might* be able to fix (some/most of) your external apps. Might try that.
If it doesn't work, then it is a tedious business of reinstalling each application individually and then restoring *ITS* home directory. Either that or a total wipe (internal and external).
The problem is that the database file that keeps track of which apps you have installed/removed is out of sync with the apps that you have installed.
I am uncertain how to fix this (I have the same problem myself).
If you perform a factory wipe, you'll lose that database entirely. All your apps will be installed, but your phone will think that none of them are.
UPDATE:
OK...apparently this is a more widespread issue impacting people running the stock/OEM ROMs as well as those of us with rooted phones.
Read up on this thread:
http://www.google.com/support/forum/p/Android+Market/thread?tid=096ef069db2788e9&hl=en
I followed the suggestion near the bottom of the page and copied over the /data/data/com.andriod.vending/databases/assets.db to a new filename (basically I renamed it).
I then launched the market app and then it would let me install (reinstall) the missing apps.
Then I ran into a problem. I deleted the new assets.db that was created and copied the old one (the one I renamed) back to assets.db.
Then the market app would force close. I noticed the UID of the assets.db file was wrong.
I ran the fix_permissions script from RA's recovery image. This fixed the UID problem, including the assets.db file. But now the market app only shows the apps that I've paid for......none of the others that I have installed.
Not sure what's going on there. It may sort itself out within 24 hours.

Android Market even close when i open

Hi,
i have a rooted G1 with CyanogenMod.
My problem is when i open the market it instantly close himself....
Update and wipe dalvik-cache haven't helped, yet...
How do i get the market app working???
ScorqYoN
Edit:
Fixed. The reason for that problem seems:
borodin1 said:
FYI... your problem was because you deleted Gtalk as it contains something used to authenicate you with Google. Don't touch Google apps to be safe, amazon is fine to remove.
Click to expand...
Click to collapse
Please help! I want to go through the market.
Noone????
Did you run from terminal:
$su
#fix_permissions
Could help. Not sure.
did you try fix_permissions in console of recovery screen (or via adb in recovery screen)?
billquinn1 said:
Did you run from terminal:
$su
#fix_permissions
Could help. Not sure.
Click to expand...
Click to collapse
Good idea. I tried, but didn't help...
I also tried to delete all permissions in superuser but didn't help, too...
shmigao said:
did you try fix_permissions in console of recovery screen (or via adb in recovery screen)?
Click to expand...
Click to collapse
I have Recovery-RA-dream-v1.5.2 and i can't write the " _ " in the console with "alt" and "r".
Update and clearing dalvik-cache also didn't help...
Slowly i become desperate with this problem.
It came when I deleted Ndrive, because i wanted to update to newest version...
Oh, i also can't open the setting option "Data synchronization"...
Last time i have deleted some apps in system/apps with root explorer because i wanted to delete amazon mp3 etc.
Have i delete a important app???
How do i fix it without a complete wipe???
Noone idea what i can do???
Update/Reflash of CyanogenMod didn't help and i don't want to wipe all...
ScorqYoN said:
Good idea. I tried, but didn't help...
I also tried to delete all permissions in superuser but didn't help, too...
I have Recovery-RA-dream-v1.5.2 and i can't write the " _ " in the console with "alt" and "r".
Click to expand...
Click to collapse
RA-Recovery has an option under "Other" called "fix uid mismatch", this is the command you want, same as fix_permissions in cm-recovery. if you cannot type an underscore in RA-recovery console, you should check that thread to see if this bug has been reported, if not you should please report it so it can be fixed. thank you. good luck, just run "fix uid mismatch" under "other" in recovery and let us know if that fixes it...
-BMFC
Can you Log in to Gtalk and Gmail or do you get the same Issues?
I had this In all google apps when I had a google.partner.setup FC. Kept me logged out of my Google account with no way of getting back in (That I could see)
I had to Wipe, Install a previous (older) version, Sign in, and then Reinstall ROM WITHOUT a data wipe. Worked a treat as a work around
KYI
bmfc187 said:
RA-Recovery has an option under "Other" called "fix uid mismatch", this is the command you want, same as fix_permissions in cm-recovery. if you cannot type an underscore in RA-recovery console, you should check that thread to see if this bug has been reported, if not you should please report it so it can be fixed. thank you. good luck, just run "fix uid mismatch" under "other" in recovery and let us know if that fixes it...
-BMFC
Click to expand...
Click to collapse
Didn't help....
killyouridols said:
Can you Log in to Gtalk and Gmail or do you get the same Issues?
I had this In all google apps when I had a google.partner.setup FC. Kept me logged out of my Google account with no way of getting back in (That I could see)
I had to Wipe, Install a previous (older) version, Sign in, and then Reinstall ROM WITHOUT a data wipe. Worked a treat as a work around
KYI
Click to expand...
Click to collapse
Oh yes, i also can't use GMail. When i open it, it come the failure that the process com.google.gapps was aborted...
GTalk have i deleted, such as amazon mp3 etc., with root explorer...
It's possible that i also have deleted an app named gapps... because i haven't gapps in /system/app...
Where do i get it back without wipe and flash???
Where do i get this app???
Ahhh, i reflashed the "devphone_userdebug-ota-14721" image and then the cyanogenmod...
Now market work fine! GMAil etc. also!
Thanks for helping
ScorqYoN
please edit your first post to you have fixed the problem, thanks
FYI... your problem was because you deleted Gtalk as it contains something used to authenicate you with Google. Don't touch Google apps to be safe, amazon is fine to remove.
OK, thanks for tip borodin1.
Just want to add this in case anyone runs into same thing. I switched from CM to Super D, I used backup for root users and let it restore everything and had this problem. It may confuse your apps so I had to wipe and reload apps a different way. Market works fine now. Just wanted to throw that in.

Apps won't install anymore - Froyo

Just recently I can no longer install apps. From the market or anywhere else, I always get "INSTALLATION unsuccessful". My phone storage has 50mb and plenty of space on my sd card. Also I set the install location to where it installs to sd automatically. What's the deal?
Anyone have this problem?
im also wondering this. often i get this. the app wont install at all or i have to wait a while to try and install it again n it works. wonder whats causing this
x3
I've been having this issue too, and not only in Froyo.
U moved the dalvik cache to cache partition and cache partition is now full
I find a solution! If you were having problems similar to me, this should work. Anyways, goto terminal, su and type:
rm /mnt/secure/asec/smdl2tmp1.asec
Click to expand...
Click to collapse
I rebooted and everything is back to normal and I can install apps again.
Thanks to this thread http://forum.cyanogenmod.com/topic/...all-around-failures/page__p__24608#entry24608
I was going to say do a logcat when trying to install the app to see what its moaning about!
donutman said:
I find a solution! If you were having problems similar to me, this should work. Anyways, goto terminal, su and type:
I rebooted and everything is back to normal and I can install apps again.
Thanks to this thread http://forum.cyanogenmod.com/topic/...all-around-failures/page__p__24608#entry24608
Click to expand...
Click to collapse
I'm having this same issue. I formatted my system, data, and cache. Now nothing will install. The suggestions above haven't worked yet.
Has someone found a solution yet?
This is happening for me too...my market/play store keeps force closing and I can't install 90% of the things I try to install (even things that have been on my phone in the past). I feel like chucking my phone out the window I'm getting so frustrated.

Lost SU access

Using nfx stock 2.1 rom with chainsdd superuser app. I had a problem with an app that was looping the launcher and had to restore a nandroid. All seemed to be ok until I tried to use terminal. Su was denied. I then tried anything that required SU access and nothing would work. I have tried the update from the market for the SU apk. I uninstalled it. re-downloaded the eclair version 2.3.6.1 and flashed the Zip and got this error.
"E:wrong digest: META-INF/com/google/android/updater-script E:Verification failed"
Not sure what I am doing wrong or what might be the cause for the SU apk to have stopped working, but any help would be appreciated.
I also have unchecked the debugging and rechecked it to make sure a setting was not screwed up.
Try going into settings / applications //manage applications / and find the super user app. Then force close it and clear data. The try a app that requires su. Aslo you might wanna change the notifications in the super user app to regular notification / normal instead of the toast notification. Good luck
Root-Hack-Mod-Always™
Your OP is a little confusing, but it sounds like the zip was bad (not signed), not the apk. You could try to update the SU binary inside the superuser app, otherwise..... Go into your titanium backup and hit the "problems" button, see what happens. I am wondering if you lost busybox. Report back
Thanks for all the feed back. I did go into the application and clear data and Force Closed it. That did not fix the problem. I also changed the notifications and nada. I tend to think I lost busybox. I am not sure what it is for, but I think that was it. I did try to use titanium backup, and it gave me an error about busybox. I was going to download it again but was not sure if it was compatible with the rom I was using.
I needed to get SU access so I ended up starting over. Wiped everything, repartitioned, and then flashed a newer version of the Rom. Thanks for all the help guys.
Glad you got it fixed.
Root-Hack-Mod-Always™
Macanage said:
Thanks for all the feed back. I did go into the application and clear data and Force Closed it. That did not fix the problem. I also changed the notifications and nada. I tend to think I lost busybox. I am not sure what it is for, but I think that was it. I did try to use titanium backup, and it gave me an error about busybox. I was going to download it again but was not sure if it was compatible with the rom I was using.
I needed to get SU access so I ended up starting over. Wiped everything, repartitioned, and then flashed a newer version of the Rom. Thanks for all the help guys.
Click to expand...
Click to collapse
For future reference, busybox from TI backup is always the most up to date and safe/needed for any custom rom, so yes you could've updated it and it would've been fine. I don't know how you lost it but now you know how to fix it if it happens again, WITHOUT having to start over. On a side note I love being right, happy trails.

Categories

Resources