Cleanup pma files

This commit is contained in:
M66B 2020-10-24 19:21:43 +02:00
parent 8865f13540
commit f7dba8df6f
1 changed files with 12 additions and 0 deletions

View File

@ -167,6 +167,18 @@ public class WorkerCleanup extends Worker {
}
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Log.i("Checking for pma files");
File pma = new File(context.getDataDir(), "app_webview/BrowserMetrics");
File[] files = pma.listFiles();
if (files != null)
for (File file : files)
if (file.getName().endsWith(".pma")) {
Log.i("Deleting " + file);
file.delete();
}
}
}
long now = new Date().getTime();