Ideas for SDcard/mount issues in Viewsonic source
Since we had such an excellent turn-out in the ideas for lag-on-wake thread, resulting in a team effort to get the kernel bug identified and fixed, I figured we could do the same for the SD Card issues in the Viewsonic source code that result in some apps disappearing or being unable to install unless you unmount the internal SD card area before installation.
Rothnic does have a request into Viewsonic, since they seem to have addressed this issue between their two kernel builds but they neglected to release the patch for it.
But... that could take several days or several weeks to trickle through the bureaucratic food chain. I suspect this is a small change if we can isolate the area.
What I tried so far:
Just the dumb-obvious. There are three mmc drivers directories in the VS patch, mmc, mmc_orig, and mmc-new. The only one getting built is the mmc directory. I diffed the mmc and mmc-new files, and tried building the mmc-new driver instead, but didn't observe any difference in behavior with respect to the mounting issues (i.e. error -18 when I try to install Angry Birds from market). The diff between these driver file sets is quite small, and limited to a few files.
What I suspect:
There is an "install to SD card" option built-in to some apps. I suspect that the apps affected by this may be the ones that enable this option. Perhaps something to do with the loopback device Android tries to create on the SD card for external app storage ( http://android-developers.blogspot.c...d-details.html)?
Why this relates to the kernel:
Well, the issue doesn't occur with the latest kernel build from Tap N Tap and does with our kernels.  There are user-space workarounds (unmounting SD card) and some of that may be workable into our ROMs, but I'd like to get a kernel that is a drop-in replacement for the stock kernels.
|