Back to project page HistoryCleanerPro.
The source code is released under:
Copyright (c) 2014, John Phillips All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
If you think the Android project HistoryCleanerPro listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ayros.historycleaner.cleaning.items; // www .j a v a 2s . c om import com.ayros.historycleaner.cleaning.Category; import com.ayros.historycleaner.cleaning.CleanItem; import com.ayros.historycleaner.helpers.Logger; import com.ayros.historycleaner.helpers.RootHelper; import com.stericson.RootTools.RootTools; public class _FirefoxBeta_LocalStorage extends CleanItem { public _FirefoxBeta_LocalStorage(Category parent) { super(parent); } @Override public String getDisplayName() { return "Local Storage"; } @Override public String getPackageName() { return "org.mozilla.firefox_beta"; } @Override public boolean clean() { String path = _FirefoxBeta_History.getFirefoxBetaDataPath(); if (path == null) { Logger.error("Could not get FireFox Beta data path to clear local storage"); return false; } else if (path.length() == 0) { return true; } if (!RootTools.exists(path + "/webappsstore.sqlite")) { return true; } return RootHelper.deleteFileOrFolder(path + "/webappsstore.sqlite*", false); } }