frozen-developers / android-cache-cleaner Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Open-source cache cleaner for Android
License: MIT License
[DEPRECATED] Open-source cache cleaner for Android
License: MIT License
I find that this cleaner does not support Android Marshmallow and above.
Any advice on how this can be made to support Android Marshmallow and above, as other cleaners in the market do support Android Marshmallow and above.
Error:(19, 0) One of setGitDir or setWorkTree must be called.
Please add a simple option/button to the app if the android version is >= API 25. I looked a little a little into it, and all that needs to be done is starting an intent with the following action to show up the delete-cache-UI: android.os.storage.action.MANAGE_STORAGE
. This was added at API level 25.
Try it:
adb shell am start -a "android.os.storage.action.MANAGE_STORAGE"
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N_MR1) {
startActivity(new Intent(StorageManager.ACTION_MANAGE_STORAGE));
}
Hi.
I think that it would be better if the repo is more ethicaly hosted. https://www.gnu.org/software/repo-criteria.html
Regards.
Enabling both 'Clean on app startup' and 'Exit after clean up' will result in the latter setting being ignored.
Versions prior to v2.2.0 have always worked flawlessly. :-)
Version 2.2.0 is not working.
It displays a Cache cleaned
toast, but the cache is not cleaned. Unlike previous versions, the cumulative size of the caches that has been deleted is not reported.
Experimenting with all the settings checkboxes did not yield a different result.
Version 2.2.0 tested on Android KitKat.
It says cache cleaned in android 6.0 devices, that sounds fake when user check again. at-least you should say it won't work.
Best and easy solution is there - take user to Settings-> Storage -> Cached data
where all cache can be cleaned in one click by user.
French, Portuguese and Serbian translations need to be update. @rydroid, @smarquespt and @pejakm, please, could you take care of it, guys ?
It would be nice to have an option to sort by full size.
Sometimes a whole app can be irrelevant like a cache :)
Hi, this is a feature request, no a bug.
Can you include a list of exclusion? So the apps listed cache is not deleted.
It would be useful for applications such as MPDroid, who tend to maintain in cache the album covers
Thanks.
Hello
can you provide us with eclipse version for this great app
Shame on you for calling the hidden API getPackageSizeInfoAsUser(). Shame!
W/System.err: java.lang.reflect.InvocationTargetException
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.frozendevs.cache.cleaner.model.CleanerService$TaskScan.doInBackground(CleanerService.java:92)
W/System.err: at com.frozendevs.cache.cleaner.model.CleanerService$TaskScan.doInBackground(CleanerService.java:66)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:333)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
W/System.err: at java.lang.Thread.run(Thread.java:764)
I/ActivityManager: Displayed com.frozendevs.cache.cleaner/.activity.CleanerActivity: +162ms
W/System.err: Caused by: java.lang.NullPointerException: Attempt to read from field 'long android.content.pm.PackageStats.externalCacheSize' on a null object reference
W/System.err: at com.frozendevs.cache.cleaner.model.CleanerService$TaskScan.addPackage(CleanerService.java:145)
W/System.err: at com.frozendevs.cache.cleaner.model.CleanerService$TaskScan.access$400(CleanerService.java:66)
W/System.err: at com.frozendevs.cache.cleaner.model.CleanerService$TaskScan$1.onGetStatsCompleted(CleanerService.java:102)
W/System.err: at android.app.ApplicationPackageManager.getPackageSizeInfoAsUser(ApplicationPackageManager.java:2166)
W/System.err: at android.content.pm.PackageManager.getPackageSizeInfo(PackageManager.java:5065)
W/System.err: ... 9 more
The app no longer reports the total amount of cache cleaned because of multiple reasons.
I don't know if I understand the reasons correctly. But:
Because I'm really missing that amount feature since the latest v2.2.0 version, I kindly wanted to ask, if you probably would provide that feature as an option again, (e. g. on Android versions <= 5.0, or tagged with 'buggy', or forced linked with the 'scanning before cleaning' option). But it would be so great if you would bring some (for my sake slightly inaccurate) numbers back to the cleaning toast, please.
Hi,
Everything is in the title. If more details are required, tell me which ones.
just installed the new Version via fdroid. for fdroid itself cachecleaner shows me 9,7MB. after clicking the froid entry "App-Info" shows me after calculating 36,79MB. Is this a bug or is there a understanding problem on my side?
Once again, translations need to be updated. @rydroid, @smarquespt and @pejakm, please, update the translations or leave a comment if you can not do so.
Status:
Is it possible to add more features, so that this app could be something like free alternative to CCleaner?
The caches are not clearing in marshmallow, whereas Clean Master is clearing the caches. Kindly please help me regarding this and do provide support for marshmallow
I am using Cache Cleaner on my phone running Gingerbread 2.3.7 - when I click the bin icon it tells me that the cache has been cleaned but pressing refresh shows the items are still there, over and over again.
I have translated your application into de
(German). Here is the xml:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Globals -->
<string name="app_name">Cache Bereiniger</string>
<!-- Menu items -->
<string name="action_clean">Bereinigen</string>
<string name="action_rescan">Neudurchsuchen</string>
<string name="action_search">Durchsuchen</string>
<string name="action_sort_by_name">Sortiere nach Name</string>
<string name="action_sort_by_size">Sortiere nach Größe</string>
<string name="action_settings">Einstellungen</string>
<!-- Apps list header -->
<string name="apps_list_header_title">Gerätespeicher</string>
<string name="apps_list_header_used_prefix">Benutzt</string>
<string name="apps_list_header_cache_prefix">Cache</string>
<string name="apps_list_header_free_prefix">Frei</string>
<string name="apps_list_header_footer">Anwendungs Cache Nutzungsgrad</string>
<string name="apps_list_header_memory"><xliff:g id=\"memory\" >%1$s</xliff:g></string>
<!-- Empty list view -->
<string name="empty_cache">Cache ist leer.</string>
<string name="no_such_app">Keine solche Anwendung</string>
<!-- Progress bar -->
<string name="scanning">Untersuche...</string>
<string name="scanning_m_of_n">Untersuche %1$d/%2$d</string>
<!-- Progress dialog -->
<string name="cleaning_cache">Bereinige cache</string>
<string name="cleaning_in_progress">Bereinigung läuft...</string>
<!-- Toasts -->
<string name="cleaned">Cache bereinigt</string>
<string name="toast_could_not_clean">Konnte cache nicht bereinigen</string>
<string name="toast_could_not_clean_reason">Konnte cache nicht bereinigen: %1$s</string>
<!-- Settings -->
<string name="settings">Einstellungen</string>
<string name="main_preferences">Haupteinstellungen</string>
<string name="about">Über</string>
<!-- Clean on app startup preference -->
<string name="clean_on_app_startup">Bereinigen beim Anwendungsstart</string>
<string name="clean_on_app_startup_summary">Automatisch beim Anwendungsstart den cache bereinigen</string>
<!-- Exit after clean up -->
<string name="exit_after_clean">Beenden nach Bereinigung</string>
<string name="exit_after_clean_summary">Beenden nachdem der Bereinigungsknopf gedrückt wurde und die Bereinigung abgeschlossen wurde</string>
<!-- Clean on system startup preference -->
<string name="clean_on_system_startup">Bereinigen beim Systemstart</string>
<string name="clean_on_system_startup_summary">Automatisch cache beim Systemstart bereinigen</string>
<!-- About -->
<string name="about_app">Über Cache-Bereiniger</string>
<string name="author">Urheber</string>
<string name="version_number">Versionsnummer</string>
<string name="version_number_unknown">Unbekannt</string>
<string name="open_source_licences">Open Souce lizenzen</string>
<string name="special_thanks">Speziellen Dank</string>
<string name="samuels_graphics_desc">Icon und Play Store banner design</string>
<!-- 'Sort by' preference -->
<!-- Rationales -->
<string name="rationale_title">Unzureichende Rechte</string>
<string name="rationale_storage">Speicherzugruffsrechte werden benötigt um externen cache zu bereinigen</string>
</resources>
Instead of cleaning the cache on boot, it would be preferred to set an interval instead (once a week for example). I usually prevent apps from running when the system boots.
There should be a setting that allows user to choose when to clear cache.
Can you please consider adding the project to the F-Droid repos?
After a double rotation of the CleanerActivity there are in heap memory 2 instances more of:
class com.frozendevs.cache.cleaner.activity.CleanerActivity @ 0x12caf000
class com.frozendevs.cache.cleaner.fragment.CleanerFragment$3 @ 0x12d45100
class com.frozendevs.cache.cleaner.fragment.CleanerFragment$4 @ 0x12d451c0
It should not be like this because the rotations return to the same GUI state and the memory should stay in the same state as well. It could be a symptom of a bad management of the onCreate-onDestroy lifecycle.
I have encountered this problem on an Android emulator running 7.1.1 os version.
Currently, Cache Cleaner is not cleaning contents from "Downloads".
Hello
I'd like to translate Cache Cleaner into Spanish. So I hope you let me know if that is possible
Thank you so much
William Beltrán
Concerned link is :
Site: http://www.frozendevs.com
Hi,
currently the app in version 2.1.2 failes to build on f-droid with that message:
CacheCleaner:compileReleaseJava/home/vagrant/build/com.frozendevs.cache.cleaner/CacheCleaner/src/main/java/com/frozendevs/cache/cleaner/model/adapter/AppsListAdapter.java:44: error: diamond operator is not supported in -source 1.6
mItems = new ArrayList<>();
^
(use -source 7 or higher to enable diamond operator)
The following patch (which is currently applied to f-droid) of the shipped gradle.build fixes this:
diff --git a/CacheCleaner/build.gradle b/CacheCleaner/build.gradle
index e629920..a8ac4e4 100644
--- a/CacheCleaner/build.gradle
+++ b/CacheCleaner/build.gradle
@@ -15,6 +15,11 @@ repositories {
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }
}
dependencies {
Great KISS app. Thank you.
Sometimes when scanning for all the caches, Cache Cleaner is very fast. Other times, it is relatively slower. Any idea why the difference?
Does it really need to scan for all the caches before deleting them, or could those operations be combined?
Either way, it seems to work perfectly. 👍
It would be nice if there was an option to have it do a clean of the caches on a user definable timeframe.
I found this app on the Google Play Store. This guy just took the source code and put it on the Store, without warning this is free software...
As you are the owner of the source code, feel free to open a request to google here to remove the false app from the Store, if it's your wish ;)
Don't forget to tell Google that:
How to resolve this error as i have downloaded the zip and added as module
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.