Search code examples
androideclipseintellij-ideaadbfailed-installation

Cannot clean internal memory after failed installation


I was testing a game of 300MB. I tried to deploy it from the IDE (IntelliJ in this case), but forgot to leave 600MB of space (when a file is installed via Eclipse or IntelliJ, it gets transfered into internal memory). The installation failed with an error "Not enough space on the device" and now I only have 31MB of free space.

How can I clean this as I cannot do it from the phone? Is there a way to delete this transfered file from Eclipse or ADB?

I tried removing battery, cleaning applications' cache and data, etc. All in vain.

UPDATE
I used ADB shell to enter the file system. This is output of df command

/dev: 86488K total, 12K used, 86476K available (block size 4096)
/data: 1428484K total, 1100000K used, 32848K available (block size 4096)
/cache: 65536K total, 36320K used, 29216K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 250880K total, 231936K used, 18944K available (block size 4096)
/lgdrm: 2816K total, 1180K used, 1636K available (block size 4096)
/sdcard: 1920704K total, 252832K used, 1667872K available (block size 32768)

It seems that I would have to clean /cache directory but the system does not allow me

$ purge /cache
purge: permission denied

Solution

  • Unfortunately soft reset was the only solution. If someone comes up with a better one, please say so. ADB shell was useless in this case.