M
M
Mark2017-08-22 12:29:10
Android
Mark, 2017-08-22 12:29:10

How to clear the cache of a specific application (programmatically)?

Hello.
I use wps office (office client to open doc, exl, pdf, etc.)
When I receive an email with an office file, I open it through wps office.
But I really do not want these files to be stored on my device.
Is it possible (programmatically) to make sure that the cache of this application and the files downloaded by it are deleted automatically? Let's say once a day?
Is there a ready-made product for this? Or do I need to write software from scratch

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
awdemme, 2017-08-22
@awdemme

Who will give you the rights to one application to climb into another.

A
aol-nnov, 2017-08-22
@aol-nnov

encrypt the device and the issue is closed.

P
pfg21, 2017-08-22
@pfg21

you root the device.
look in /data/data/ for the wps offic directory and see which directories contain extra information.
you write a script to delete these files (or a script in a special environment like AutomateIt, Tasker and MacroDroid...)
and run it when you need it.
option 2: periodically run CCleaner (with root of course) and the like, they clean the caches perfectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question