GithubHelp home page GithubHelp logo

android-cache-cleaner's People

Contributors

adam-dej avatar lubo avatar naofum avatar smarquespt avatar williambeltranc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-cache-cleaner's Issues

Supporting Android Marshmallow and above.

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 git

Error:(19, 0) One of setGitDir or setWorkTree must be called.

Easy accessible button to start Android's new cache manager

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));
}

Source: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/os/storage/StorageManager.java#112

Version 2.2.0 not cleaning caches

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.

Android 6.0 issue and quick solution

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.

[FR] sort by full size

It would be nice to have an option to sort by full size.
Sometimes a whole app can be irrelevant like a cache :)

FR: List of exclusion

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.

Eclipse Version

Hello

can you provide us with eclipse version for this great app

getPackageSizeInfoAsUser() is not working in Android O

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

[feature-request] option for total amount of cache cleaned

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:

  • the app seems to work (on my i9100 @ AOSP 4.2.2);
  • the single apps under 'App cache used' showing sizes, which going down after a cache cleaning, for example from 4MB to 12KB.

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.

different cache sizes for fdroid

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?

More features

Is it possible to add more features, so that this app could be something like free alternative to CCleaner?

Not cleaning

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.

Updated de (German) translation

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">&lt;xliff:g id=\"memory\" &gt;%1$s&lt;/xliff:g&gt;</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>

Schedule interval for cleaning

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.

Memory Leak

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.

Translating

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

App 2.1.2 failes to build on f-droid

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 {

Differences in scanning speeds

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. 👍

Copyright violation

Hi @Frozen-Developers

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:

  • The app is licensed under MIT license and this guy is violating it;
  • He is falsely claiming he made the app;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.