Exemplo n.º 1
0
 private void enforcePluginFileExists() throws RemoteException {
   List<String> removedPkg = new ArrayList<>();
   for (String pkg : mPluginCache.keySet()) {
     PluginPackageParser parser = mPluginCache.get(pkg);
     File pluginFile = parser.getPluginFile();
     if (pluginFile != null && pluginFile.exists()) {
       // DO NOTHING
     } else {
       removedPkg.add(pkg);
     }
   }
   for (String pkg : removedPkg) {
     deletePackage(pkg, 0);
   }
 }