diff --git a/embedding/android/GeckoApp.java b/embedding/android/GeckoApp.java index 524939167ddb..92d911fc0681 100644 --- a/embedding/android/GeckoApp.java +++ b/embedding/android/GeckoApp.java @@ -262,12 +262,21 @@ abstract public class GeckoApp if (GeckoAppShell.getFreeSpace() > GeckoAppShell.kFreeSpaceThreshold && (!libxulFile.exists() || new File(getApplication().getPackageResourcePath()).lastModified() - >= libxulFile.lastModified())) + >= libxulFile.lastModified())) { surfaceView.mSplashStatusMsg = getResources().getString(R.string.splash_screen_installing_libs); - else + File[] libs = cacheFile.listFiles(new FilenameFilter() { + public boolean accept(File dir, String name) { + return name.endsWith(".so"); + } + }); + for (int i = 0; i < libs.length; i++) { + libs[i].delete(); + } + } else { surfaceView.mSplashStatusMsg = getResources().getString(R.string.splash_screen_loading); + } mLibLoadThread.start(); }