0

I am developing an application for android devices,later this will be shipped with the android device as a system app. This app has SQLite database implemented in it and later it may have some data in it.So my question is that, if user wipe his/her device the SQLite database will be wiped or not.

Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
Vikas Panwar
  • 399
  • 1
  • 3
  • 14
  • if the app data is wiped then data stored in sqlite will be wiped :) – Preethi Rao Mar 20 '15 at 07:08
  • @PreethiRao: he is talking about resetting the device. And by the way, system apps cannot be uninstalled, so the data of a system app cannot be lost by trying to uninstall it. – Yash Sampat Mar 20 '15 at 07:10
  • @PreethiRao: But as we can see for contacts app , all contacts deleted on device reset. So my concern is that, will my SQLite data be persistent or not because later on I will add some data to the database. please give your valuable suggestion... – Vikas Panwar Mar 20 '15 at 07:19
  • @ZygoteInit i understood what he wanted to do, But even in system app you can clear the cache datas and other datas without uninstalling the app . – Preethi Rao Mar 20 '15 at 09:16
  • 1
    @PreethiRao: of course you can. What Vikas was asking was would the data be preserved if the phone was reset, i.e. is there a special rule for system data that doesn't apply to third-party apps, and the answer is that the same rule applies to ALL SQLite db files. – Yash Sampat Mar 20 '15 at 09:26

1 Answers1

1

If by "wipe" you mean a factory reset or a manual OS install, then yes, all data including system data such as contacts, settings, everything is most certainly erased.

EDIT:

Google provides a cloud backup service for system or third party apps to restore user data on reset. See also the Using the Backup API tutorial for the implementation.

Yash Sampat
  • 30,051
  • 12
  • 94
  • 120