Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which data will be deleted, if a user uninstalls an android application

If a user uninstalls an app from his phone, which data is explicitly deleted?

I know that preferences are deleted. What about files on the sd card and about databases created by this app?

If the data on the sd card is not deleted how can I avoid cluttering the users phone if I write larger amounts of data, like images on the sd card?

like image 788
Janusz Avatar asked Mar 18 '10 11:03

Janusz


People also ask

Does uninstalling Android app delete data?

Yes, deleting an app removes the program and all its data. That means if you paid to purchase the app, you won't have to pay again should you choose to reinstall it.

What happens to data when app is uninstalled?

In Android, when an app is installed, except in some special situations, a new user is created. The app will be executed using this new user's privileges. When an app is uninstalled, the user will be deleted. Any data left behind by this app now become “orphans”, because their owner no longer exists.

What happens when you revoke an apps access to the data stored on your phone?

Revoke will provide a copy of your data before you request that it is deleted. Only you can access this data, using a private key stored on your phone. Companies are required to respond to your request and confirm that your data has been deleted.


2 Answers

This was previously addressed here, too:

Android: Delete app associated files from external storage on Uninstall?

Based on that, it looks like files written to the sdcard are not able to be deleted upon application removal.

If this is the case, it seems like a pretty major oversight in the architecture.

like image 199
mbafford Avatar answered Sep 29 '22 20:09

mbafford


In my experience...and I will gladly be corrected.

Databases and files residing in com.example.youapp get deleted. As for the SD-CARD I doubt they will get deleted. What if your app created pictures, then all their pictures would be deleted when the user uninstalled.

As for handling deleting this stuff on uninstall...that is a good question. There may be some sort of handler you can invoke when your app gets uninstalled to help do some extra stuff. Somewhere in the Manifest sounds like it might be a candidate.

like image 37
jax Avatar answered Sep 29 '22 21:09

jax