Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to self-destruct application?

I have pretty unusual task: customer would like to have application which can be self-destructed. Like with one BIG RED MAGIC button, pressing on which should completely destroy (possibly uninstall) application including any DBs, files, traces in logs and so on.

Does someone knows is it really possible, if yes - how?

like image 817
Barmaley Avatar asked Nov 14 '22 16:11

Barmaley


1 Answers

You can purge application files by enumerating app directory and deleting everything in there plus removing your application files on SD card. Uninstalling application itself is a different beast altogether. Non system apps cannot do that AFAIK (starting from android 2.0?).

like image 74
Audrius Avatar answered Dec 06 '22 22:12

Audrius