Tuesday, January 13, 2009

Unexplained running out of space on phone

A bug has been seen on android phones where the device runs out of space. The space occupied on the phone can not be explained by the applications installed and other usage of space.

Here is the email thread where this discussion has taken place.

In nut shell, here is what seems to be happening.
When some applications is uninstalled (or some other activity that deletes files), the system unlinks the files. If the phone goes to sleep before these files are cleaned up, these unlinked files are not removed.

The work around for this bug can be done by creating a scenario where the system unmounts/mounts the un-checkpointed filesystem since at only unmount/mount time the unlinked files are cleaned up.

So here are the steps that one can follow.

  • Shutdown the phone

  • Power up the phone

  • Wait for the phone to get to Home screen i.e. enter unlock code etc. if required.

  • Shut down the phone (before it goes to sleep mode)

  • Turn on the phone again, this should result in the files being deleted.

No comments:

Post a Comment