Broken Install Location when defaulting to SD - help needed - Android Software/Hacking General [Developers Only]

I hope this is the right area to post this, but basically i'm after help from some Android experts and this seemed the place to go.
Basically I appear to have in some way knackered the settings default Install Location for Apps.
I used the well known and pretty straight forward trick of using the adb program in the SDK to override the default install location so it's the SD, and then enabling me to move all my apps to the SD card. It worked perfectly and gained me loads of space, which I promptly filled up with other apps.
However a couple of days ago I had a load of updates to install so I went with the normal "Update All" option and let it go. However it downloaded all the apps but when it got to the install stage for all of them it seemed to fail, it just sat there with all 5 apps and said they were installing, but was like that for a good 5 mins. At this point I made my mistake and thought (stupidly) i'd just turn off the phone and start again.
The result of that however was that now no apps which are stored on the SD card will install. They'll download but the installation will fail instantly. If I move them to the Phone Memory they'll install, but I can't really do this consistently as if I move something over it takes the phone over the ~15mb limit and they won't download at all. Once I get apps on though they will move across to the SD card fine and work
I must have broken some setting somewhere, I'm thinking something has gotten stuck, a flag is raised which I need to lower or something.
I'd greatly appreciate help with this, as my only other alternative seems to be a hard reset.
My handset is an unrooted (obviously) HTC Desire running 2.2
thanks.

Anyone able to help in any way?

Related

[Q] task rpcrouter:15 blocked

I have a HTC Fuze (AT&T GSM). I followed the instruction on (http://forum.xda-developers.com/showthread.php?t=951981) for FRX06 but it keeps getting stuck at "task rpcrouter:15 blocked for more than 120 sec". It never gets to the calibration screen... I even tried downloading and using a pre-made ts-calib file but the results were the same.
I also tried numerous other posts ROMS (FRX03, FRX04, XDAndroid 2.2 (rel 1.6).cab, even tried XDAndroid 2.1 (rel 2.5a).cab) but I still get stuck at the "task rpcrouter:15 blocked for more than 120 sec" error.
I read in another post back in Feb 11 that it was an issue and someone acknowledging it is an issue but no solution stated in the 19 pages of forums. Another user states this is a "bootloop" but did not offer any solution.
In any case, I never got to any graphical screens - never got past the text screens (white text on black background).
Help!
Actually the fix was to delete the data.img but that would be the "quick fix". This WAS mentioned under the troubleshooting section of THIS post. If you really want to see the calibration screen, download an older kernel package as stated HERE.
BE SURE TO SAVE THE FILE CALLED ts-calibration THAT YOU JUST CREATED!​Additionally, I want you to format your microSD and start over from scratch. Just to flush out any other issues that you and may not encounter; such as the "waiting on SD card" issue some complain about. When I say format, I mean use something other than windows to format your microSD. I use the free version of partition wizard and it seems to do the trick. IF you want something a little less program intensive, I would suggest using SD Formatter. Again, not required but it might help solve other issues you may encounter on down the line.
All of that being said, I have a RAPH110 aka at&t Fuze, so I know this process works. If it doesn't work for you, YOU are doing something wrong!
Also, if you insist that you would rather skip the calibration screen, you may use my ts-calibration file. Make sure you place it where the file called haret.exe is.
CLICK HERE for your viewing pleasure!
Same problem with FRX06 even after FORMAT with OVERWRITE of the microSD. I included the ts-calib file. Got past "Creating a new Data Store" then got stuck at "mdp irq is already 4 4 and above mdp_dma: busy" where it would retry after getting stuck for 120 sec.
I then reformatted again and this time tried "XDAndroid 2.2 (rel 1.6).cab". Got to "Creating a new Data Store" and it is stuck there for over an hour - so I gave up.
I then tried deleting the files for "XDAndroid 2.2 (rel 1.6).cab" and this time tried "XDAndroid 2.1 (rel 2.5a).cab". Same issue.
Next, I tried loading Android on the Device instead of Storage Card. Stuck at the same point... I waited 5 min then quit.
I read elsewhere possibility of problems using micro SDHC cards... do you have a microSD card in your Fuze? My card is a Patriot microSDHC 8GB.
As always, there may be a bad batch but have had no such luck with buying PNY nor SanDisk. You did download 1231 as mentioned earlier, correct? So, if you want to try that first, you'll need to delete the existing modules-xxx and zImage file and extract the contents of the downloaded file till you see the modules-xxx and zImage_xxx. Rename the one called zImage_xxx to just zImage and be sure to place them with the file called haret.exe and launch haret once more. Keep in mind, downloading the kernel packages may not be required but in order to test things out and to see what works best, it is. Good luck my friend!
So I tried again and let the install run overnight (>4 hr). In the morning, it was still looping so I stopped it. Today, when I looked at the microSD, I see 171 FSCH0xxx files... most are 32K. 170 was 192K and 171 was 1.81M total of these files were about 158MB. Does this indicate anything?
Anyway, I reformatted my microSD card twice using the SDFormatter (Overwrite, Size Adjustment on), loaded FRX06, replaced the set with the 2 files you sent and renamed the zImage file. Booting up, goes into text screen, still get the timeout error. This time I noticed that there was a line that says "INFO: task dd:91 blocked for more than 120 seconds." My guess is that it's creating those FSCK files again... meaning SD card errors?
Have you another microSD to confirm whether it is a bad card? I just started from scratch (for the 50th time today) and I am NOT seeing what you are seeing(I don't see any FSCHxxx files)... I don't suggest trying anything older than FRX06. If anything, I'd suggest you see if you can find another microSD and probably only use that card for temporary storage.
OK, I'll have to go get another card this weekend then. I do think it seems like the card has some kind of compatibility problem... what brand are you using?
For tonight, I've formatted the card twice and then am trying the "XDAndroid 2.2 (rel 1.6).cab" now... It is stuck in the "Creating a New Data store" line for >20 minutes now... (FXR06 passes that but gets hung up trying to fix the file system). I'll wait a while longer and see if it will miraculously finish creating the new data store.
Thanks for your suggestions.
I have a PNY and SanDisk both 4GB class 4. I think bestbuy has the PNY one for like 30 bucks (maybe cheaper?)
I don't know what the problem is but I'm willing to help out how ever I can
I downloaded MiniTool Partition Wizard and deleted the microSD card's partition then recreated it. Then, I recopied the files into the root of the microSD, installed into my FUZE, and clicked on herat... this time it got into the Android graphical portion (no calibration needed since I included the ts-calibration file), stayed at the ANDROID screen for a while then went blank. I waited about 6 minutes then turned it off. When I went to see what's inside the microSD, I found the data.img file 256MB and also messed up file system again - since I shut it off prematurely.
With a lot more confidence this time, I repartitioned the microSD again, placed my Android files under its own folder. Crossing my fingers...
Ah, so you've been using the file path method then? If that is the case all one would need to do is put rel_path=FRX06 in the startup.txt file, between the quotation marks. Additionally, if you prefer more ogranization and plan to run more than one build at a time, it is best to have that command in your startup.txt file for each build. Keeping in mind, once you do this, it pretty much sets the default path for that build to that particular folder. I wasn't aware that you were starting one folder deep, my apologies . It's best to use the root folder for troublshooting and what not. I prefer to only use one build at a time because I find it easier to keep problems isolated and it helps me troubleshoot at the same time.
Additionally, if you want a more easier way to troubleshoot Android issues and you don't mind waiting for the data store (aka data.img) to be recreated at boot time, then one would only need to delete the data.img file (keep in mind if you have any settings or contacts, these may be deleted as well). What I usually do is once I get a good data.img, I make a backup and zip them up (or use your method of archiving). I also make a backup before I make any changes, like if I am testing out a new rootfs or kernel package. Most of this has been discussed and mentioned in the Android forums.
That did not work so I reformatted again and went back to using the root of the microSD for Android... FRX06 was stuck on GUI but blank screen all night - I turned it off in the morning. Back to the drawing board. At least I got the microSD issue figured out... on to the next mystery.
Update:
OK, partitioned my 8GB to 7GB FAT32, 512MB ext3, 512MB linux swap. Loaded FXR06 into the root folder, booted and it works this time. However, once into Android, it would lock up.
Case 1: Boot up android, clicked on Gmail, screen is android but nothing in the screen except background. Took out battery to turn off.
Case 2: Boot up android, left it alone, screen turned off - will not wake up. Took out battery to turn off.
Case 3: Boot up android, went to settings to set up wifi, froze. Took out battery to turn off.
Case 4: Boot up android, went to settings to set up wifi, entered WEP key, Fuze froze (I know because the screen is non-responsive, back button remains lighted after I move my finger away, and the clock on screen is not advancing). Took out battery to turn off.
Case 5: Replaced the modules and zImage files to the new ones you sent me (12/31/2010)... booted up android, went to settings to set up wifi, entered WEP key, shows connected, Fuze froze (I know because the screen is non-responsive, back button remains lighted after I move my finger away, and the clock on screen is not advancing).
Seems my Fuze is locking up soon after Android boot. Tried numerous times... left alone, freeze. Tried calling, freeze. It seems to be time based. So close...
Strange, though, as the phone remains warm to the touch despite being frozen for some time.
Yeah, you lost me at partitioning your device as I don't even touch that stuff. I think you are using something different. Sorry but I can not help you, my friend!
Thanks anyway... the partitioning is just to make the partition "different". Probably no relevance unless it allowed me to exclude some bad sectors from use. As far as Froyo, I guess there is some kind of HW or SW problem with my phone. I may reflash my Fuze to another WM ROM - just to clean it up and isolate SW as the problem.
Let me clarify, I don't partition my microSD because XDAndroid builds simply do not require this. There are Neopeek variants that require partitioning of the microSD but I still think your method is slightly over exaggerated. I'm not sure why but I guess for some reason there may be an issue with your microSD and partitioning may be a way around this issue but I don't know enough about partitioning microSD/non-volatile flash. So, I couldn't say for sure...
Ok, so I installed Tael ROM (WM 6.5) then tried installing, it still freezes after 1-2 min of booting up (or during boot up). So it looks like it's a hardware (phone or microSD) issue for some reason. I guess hardware vs thinking kernel because the 2.1 installs also do not work.
On another note, it seems that the Android boot process corrupts my other files... I have folders for GPS and photo (DCIM) and it "corrects" those errors and kills my files.
Hmmm... I can't say for certain as I've never experienced that issue. All of my files remain intact before and after booting into Android and rebooting into winmo. Are you talking about the files on your phone or microSD. If you are talking about your microSD, you might be experiencing the hardware issue and the while you boot into Android, it is only attempting to "fix" these issues and in the process, kills the files contained with-in. Does this makes any sense?
Yes, the files are those I mentioned are in my microSD. So, yes, looks like some kind of interface issue causing Android to think the files are corrupt and then try to "fix" them. Strange though that WM does not try to fix the "errors".
I think it's kind of like the linux way to make sure there won't be any issues when you run the OS, since Android would run off the microSD and not from the phones storage. Currently, there is some development for this called NAND. Still really nothing solid as to whether it will work or not but always good to know, I guess?
Well, the thing is those files are pictures/videos/GPS maps... so I think WM is able to read them (so not an error) yet Android does during its pre-boot scan. Anyway, since upon successful scan and android actually loads, it would freeze in 1-2 min, so the problem may not be limited to the microSD. Yeah, perhaps the NAND will work better. I did get Warm Donut to run on my old Tilt, so I am still hopeful.
The issue that is stumping me is that I'm not experiencing the same issues you are with XDAndroid and I'm not sure how else to help aside from using another microSD to confirm an issue with your current microSD.. sorry

What happens when you send apps to the SD Card

Ok. I need help and I've looked everywhere and tried everything I know. This is the 3rd Atrix that this has happened to me and I can't imagine it is something I did to 3 separate Atrixes.
My question is what happens to programs that are moved to the SD Card - which for the Atrix is an internal storage area known as the Media Area?
What happens is that I install lots of apps that I find useful and fun. I move the larger ones over to the SD Card(Media Area). Which was all good for a couple of days. Then today I tried to update a couple of apps and one of them hung. Meaning it downloaded and said it was installing but just kept trying to install. From that point on, anything I had moved to the SD Card(Media Area) will not load. When I start a program that tells me the number of apps installed and where, it does not list any on the SD Card. When I go to the app manager in settings menu, ALL the apps that are installed on the main memory keep saying "Computing..." where it should say what size the file is. And of course any that I moved to the SD Card are not listed.
On top of this, I can't install anything from the market. I can press the button to install, but it doesn't do anything. Just sits there. When I try to push an app from the market on the web it downloads, but doesn't install.
I can navigate on the SD Card(Media Area) and move, copy, delete files all I want there so it isn't a problem with the SD Card(Media Area)
Now on my other Atrix phones, I reflashed the original sbf and that didn't help. I also tried the wipe data to restore factory settings. I have it rooted now, so if there is something I can do to it while rooted, that would be nice. I have Root Explorer and can navigate around. Where on the SD Card would the apps have been moved? I can't seem to find them.
Now someone smarter than me must know what is going on to install apps and move them. Is there a database that lists the apps in Android that has gotten corrupt? Can I rebuild it? Is it something else?
Is this an Android problem or an Atrix problem?
I'd appreciate any help before I take the Atrix back. I like the phone and would like to keep it, but this is ridiculous.
EDIT : I should also mention that I installed the Amazon App Store and tried to install something from there. It downloads and asks to install. Then it says that it is installing, but the install progress bar just stays there and nothing happens after that.
EDIT 2 : I also have tried to unmount the Internal SD Card (Media Area) and it hangs the phone. Even though I can access anything in that Media Area. Makes me think a file has gotten corrupted in the Android system, but I wouldn't know which one.

[Q] Apps on SDcard go missing? usually??

Is anyone running into a problem with apps that have been moved to sdcard just disappearing? Most of the time I see little green droid icons all over my launcher (ADW), and lots of missing apps in the app drawer. I can reboot several times and eventually all show up.
I'm running ee4_debloated-v421 / 0730_charge_voodoo kernel / sdcard_patch. Am on my second handset (first one had a clicky button go dead). The earlier handset occasionally did the same thing.
I presume the sdcard is the culprit, as it is the common element. But I have popped it out, run fdisk and defrag all with no errors.
Any theories??
I had this happen when I first got my charge. How I fixed it was I took the SDCard out of my phone and put it into my flash media reader, and then did a full format using HP's Format tool with default device settings. It took a long time to do the full format, but after doing so, I didn't have any more issues with apps disappearing that were installed to the SDCard.
Full format, huh... (gulp) well it's certainly worth a try! I'll report back.
Thanks,
Larry
ljcorsa said:
Full format, huh... (gulp) well it's certainly worth a try! I'll report back.
Thanks,
Larry
Click to expand...
Click to collapse
I know when the phone first came out, there were several users with SDCard problems. I'm not sure how others fixed them, but a full format and a half hour or so fixed mine
Well, I'm disappointed to report that the problem did not disappear :-( Could it be the contents? I copied *everything* from the card before full formatting with the HP tool (which tooks hours as you said), then copied it all back. Same result... if I reboot enough times it will come up with all apps showing.
I've ordered a Class 10 card. Plan to use the HP tool on it straight away. What else would you recommend? Maybe move all the apps back to the phone? Would you start from a fresh load of the ROM?
Many thanks,
Larry
ljcorsa said:
Well, I'm disappointed to report that the problem did not disappear :-( Could it be the contents? I copied *everything* from the card before full formatting with the HP tool (which tooks hours as you said), then copied it all back. Same result... if I reboot enough times it will come up with all apps showing.
I've ordered a Class 10 card. Plan to use the HP tool on it straight away. What else would you recommend? Maybe move all the apps back to the phone? Would you start from a fresh load of the ROM?
Many thanks,
Larry
Click to expand...
Click to collapse
I know that DroidXcon over in the Android Central forums advises NOT to move apps over to the SDcard because of problems like you have experienced...the higher (class) speed card may help. I've noticed that on my stock class 2 card when I view a subdirectory that contains large wallpaper files using QuickPic or Gallery, the thumbnails will often "time out" and not display towards the end of the list unless I refresh the listing several times. I would assume it is for the same reason that recording video to the class 2 card will time out after a few minutes.
Good luck with the Class 10 card...keep us posted!!!
Well, the Class 10 arrived in time to try again, so formatted with HP Utility and copied all the saved files over. Same behavior.
If it's the sheer quantity of apps on the SD card and there is a timeout involved, that might explain it! Reformatting the card would effectively defrag it which would speed it up, perhaps explaining imnuts' observation. And if reading in all those apps at startup is not I/O bound but maybe CPU bound, that would explain my experience.
I'm going to try moving apps back to the phone just to see.
Wow, this is persistent. Moved all the apps from SD back to phone using TiB, which seemed to hang sometimes. Tried different access methods with no clear winner. Anyway, after a reboot, the situation was unchanged. Unreal.
So I am starting from scratch with a freshly-formatted Class10 card, a full data/cache wipe, and a new ROM: GummyChargedFE1.9.1. Haven't had a problem yet, but haven't restored anything to SD either. Proceeding cautiously.
Ok, I'm converted. GummyChargedFE1.9.1 solved this problem. Everything seems to run better. Added the V6 SuperCharger thing which tweaks minfree levels and much more, and the combination runs extremely well.
Biggest problem for me is that I'm satisfied... spent the last two years trying to get my "original" Droid to run well, then got the Charge, started over. What do I do for an encore?
Fast Boot option may be the culprit
In case anyone is following this old thread ...
I did not need to install a new ROM
CUT TO THE SOLUTION BELOW -- SEARCH FOR ////
Some (not all) of my apps moved to SD (all by Titanium Backup Pro) have begun to disappear and (sometimes) reappear without warning after I began to add and delete large Virtual Machines created in QEMU from my 16GB SanDisc class 10 microSD card on my HTC Droid Incredible running rooted stock Verizon Android Froyo 2.2.3. I know this thread is far from my phone's "home base", but from what I can tell this problem with disappearing apps located on an sdcard is NOT determined by hardware or even Android version.
I also happen to use LauncherPro by Federico Carnales instead of the built-in HTC Sense launcher. I noted elsewhere on XDA that a user had suggested that because at least some (maybe all) launchers start before the SD Card that this may be a problem, especially if changes are made to the sdcard that the launcher did not perform, or was not active during their performance by other apps such as Titanium Backup. That fits my situation, because I unmounted the SD, physically removed it to a PC, and added/deleted large VM files to save (lots) of time. No problems of this sort before I did this, so there must be some connection.
I noted that other users have tried reformatting SD, substituting different brands of SD, using newer/older SD etc. None of these reliably helped. So I skipped these options.
//// The (simple!) solution I tried that SEEMS to work (only time will tell!) is buried in the main Android Settings (accessed from the Menu button while in Home screen). Under "Applications" there is a setting "Fast Boot" that I checked long ago and forgot about (it seemed like a good thing to do at the time). The text warns "Turn off to use some Market apps" (that shows the age of my 2-yr old used phone and Android OS -- ohmygosh!-- because it refers to Market rather than Google Play Store!) Anyway, I unchecked the option and rebooted the phone.
Yes, it took a bit longer to boot (maybe a whole minute!), but after waiting about another minute ALL my home screen apps had normal icons and loaded properly. Titanium Backup Pro batch scenarios confirmed there were no apps in a forced uninstalled state (i.e. I had not done the deed, the system somehow had done it or at least rendered the apps "invisible" to Titanium, which decided they needed reinstallation).
The only odd behaviour was that auto brightness was turned off after I unchecked Fast Boot and rebooted. Going into Android Settings > Display and rechecking "auto brightness" took care of that. No other oddities or strange behaviours thus far (but it has only been about an hour).
I will report back here on this thread only (Samsung Fascinate > Fascinate Q&A > What just happend? apps on sdcard) if anything else requires reporting. Silence implies success!
link: http://forum.xda-developers.com/showthread.php?t=1873670
(I am copying this post to other relevant threads, but will not post anything further elsewhere -- only there. This is a bit arbitrary (although this thread appears to be the most recent active one on this topic), but I hope this approach pleases the XDA sysops/admins) :angel:

[Q] Apps gone

Hi after having to switch my phone off, when I turned it on again it appears that all the apps I moved to the SD card are no longer there. I have just spent some time downloading them from the market again.
Question is why has this happened and how do I stop it from happening again
Thanks in advance
Solution
Hi Nexus.
I think you'll find that the apps still exist, they're just fragmented on the SD
card. This has happened to me plenty of times.
I've found it's only apps that are installed on the SD card and it's never
happened with apps on the phone's internal ROM.
A good way to check is to go into: Settings- Applications- Manage applications-
then tap the SD card tab. That list shows all of your apps installed on the SD
card. I found that when apps here got fragmented/corrupt they didn't show their
original app icon. Instead they showed the stock android app icon. This is a good
way to tell if the missing apps in question are still there but are just fragmented.
The way to solve this, the way that's worked for me, is to plug the phone into a
pc and mount the SD card as a disk. Then on the PC access the SD card via
explorer and right click- properties- tools- then click de-fragment.
This may take up to 30 mins as it's not as fast as a HDD.
From using this technique my apps have always returned and I can use them
with no problems again.
I've also noticed that this issue only happens if I restart or turn the phone off. I
don't understand what is corrupting the apps as the SD card is mounted
correctly and is the one supplied as standard.
I hope I've helped, and I guess this will save you from re-downloading all of your
apps again.
I'm happy to hear anyone's thoughts/suggestions onto why this is actually
happening in the first place too.
Cheers, Dms
Hi thanks so much for the answer. This has been bugging me for ages and even though I have been searching I have not had any joy solving it until your reply.
As you said it only seems to happen to apps on the sd card, and I would like to know why they are not "persistent" There must be a developer who understands the Android system who can explain why this happens and what you can do to make apps you have on your sd card permanent.
As you said it only happens to me when I re start my phone.
Thanks again for the answer
Hi. It's no problem. Yes I havn't seen anything about this issue being mentioned either.
I'd like to know what's causing it. Whether it's a hardware fault or something in the software.
It's a real pain having to hook it up to my pc to sort it out. Especially when I'm away from a pc, I can't use half of my apps.
Sent from my HTC Desire S using XDA App

[Q] 'The Android Moron' asking for idea why this happened.

Could someone give me a theory as to what happened?
I had screwed up my Huawei again.
I had sorted out a problem I had with an app after changing primary storage from internal to sd when I was installing any new apps.
After it got done, I noticed a little box kept coming up saying I only had 1.88g left.
Like 1.88gigs is a miniscule amount.
Well the system reports the internal 16g had 5+g open, the sd 32g had 27g or so open and my 128g usb thumb drive had the 1.88g.
I don't understand why it seems to be thinking it's putting installs on the usb because it's set for the 32g sdcard to be the primary storage.
So I went through my apps and started using the ICS settings to move apps to the sd.
I must have moved some that don't like the sd. One that doesn't (I know now) is google play services.
I went round and round trying to fix that and finally did by restoring a backup from 3-4 weeks ago but it didn't fix everything.
The services worked again along with the play store....... well the play store works when I DON'T have the usb drive mounted.
When it's mounted the play store app opens but won't connect.
Oh. And it also restarts over and over.
When the usb's mounted it restart after about 30 seconds. When it's not it restarts after about 2-2.5 minutes.
After almost a day trying to fix this, I got irritated with it so I decided I was going to try to use the automatic recovery.
I grabbed the firmware from Huawei's website on my PC and took out my SD card.
I did not see a 'dload' folder so I put it in the 'Download' folder. Put the card back in the tablet and tried to start the recovery.
I had the unlmt.cfg in there too but it did not automatically start so I tried again while keeping the volume pressed and it started.
But after about 3-5 seconds it came up with the FAIL message.
So I figure that maybe it DOES need to be 'dload'. So when it finishes rebooting I make a 'dload' folder and copy those files in there before it rebooted again.
Which while I'm doing I also notice that under 'mnt' the files are in the 'sdcard' folder and not the 'sdcard2' folder which is where I thought it was mounted before.
I guess when I switched primary storage to the sdcard it made the card mount under sd instead of sd2?
So I had pulled the card out and was going to investigate that, but before I did, I decided to put it back in.
When it rebooted this time while I was starting the file manager when I noticed it was connecting and download app updates which it was doing before but when it tried to install them
before it kept failing but this time it was successful.
So I kept watching it and everything seems to be corrected now.
It's not rebooting by itself. It connects everytime. Installs are all successful.
What the hell happened?
Did the few seconds that recovery mode was active maybe fix some kind of file system problem?
Does Android have some sort of 'healing' code built in that makes it eventually repair itself if it finds problems?
Is the Android system alive and had seen that I was going to redo the system and got scared so it started behaving? (Joke of course)
I don't get it.
Can anyone give me some kind of theory as to what might have happened? Please?
Because I'm afraid to reboot it again for fear of it being some sort of fluke.
ANY ideas will be greatly appreciated.
Stephen

Categories

Resources