How to self-destruct an application?

I have a rather unusual task: the client would like to have an application that can be self-destructing. Like one BIG RED MAGIC button , pressing it should completely destroy (possibly delete) the application, including any DB, files, traces in the logs, etc.

Does anyone know if this is really possible, if so - how?

+5
source share
1 answer

You can clear the application files by listing the application directory and deleting everything that is, and delete the application files on the SD card. Removing the application itself is a completely different beast. Non-system applications cannot do this AFAIK (since android 2.0?).

+1

All Articles