Unlock instant, AI-driven research and patent intelligence for your innovation.

A user data protection method for database degradation when an app version is updated

A user data and version update technology, applied in database update, database management system, special data processing applications, etc., can solve the problems of not knowing the data table, incompatibility of the rollback data structure, affecting the experience of user data security, etc., to achieve application Simple, avoid user data loss, and protect user data

Active Publication Date: 2020-08-25
BEIJING KUWO TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, when the user rolls back from version 3 to version 2, since version 2 cannot predict the table structure of version 3 at the time of development, it is not known whether the data table of version 3 is compatible with version 2 (if version 3 is upgraded, a Table fields that have been used in version 2, and the fallback data structure may not be compatible at this time)
[0014] Therefore, the downgrade operation is likely to lead to the loss of user data, which may bring irreparable losses to the user. This problem obviously needs to be resolved to avoid affecting the user experience and the security of user data.
[0015] Another possible situation is: Sometimes an APP is automatically upgraded, but the user may think that the old version is still easy to use, so he still wants to switch back to the old version, but wants to keep the data, and does not want to switch back to the old version. result in loss of data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The user data protection method of database downgrade when APP version update described in the present invention, comprises the following steps:

[0053] Step 1. Obtain the name and version number of the currently installed database;

[0054] For example: for an APP that has been installed in the mobile phone, its currently installed database name and database version number are:

[0055] DATABASE_NAME = "Xx_crm.db";

[0056] DATABASE_VERSION = 3;

[0057] Step 2, obtain the database name and database version number to be installed;

[0058] For example: if the certain APP mentioned in the example in step 1 needs to be reinstalled, the installation package of the certain APP may have the following situations. Of course, there may be other situations, which do not belong to the scope of the present invention;

[0059] Case 1:

[0060] DATABASE_NAME = "Xx_crm.db";

[0061] DATABASE_VERSION = 4;

[0062] Obviously this is a case of database upgrades;

[0063] Case 2: ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a user data protection method for database degradation during APP version updating. The method includes the following steps of 1, acquiring the name and version number of a currently-installed database; 2, acquiring the name and version number of a to-be-installed database; 3, judging whether or not the name of the currently-installed database is the same with the name of the to-be-installed database, and if yes, turning to the step 4; 4, judging whether or not the version number of the currently-installed database is the same with the version number of the to-be-installed database, or performing no update operation on the database, or upgrading the database, or degrading the database, wherein the naming rule of tables of the database is as follows: prefix_table name_suffix, and the suffix is equal to the version number of the database. The user data protection method for the database degradation duing APP version updating has the advantages of being simple in application, and capable of effectively protecting user data, and avoiding user data loss caused by the database degradation.

Description

technical field [0001] The invention relates to the technical field of user data protection, in particular to a method for protecting user data in which a database is downgraded when an APP version is updated. Background technique [0002] In the Android system, there is a built-in lightweight database SQLite. SQLite does not even need to install and start the service process. It is just a database file with the suffix .db, but it supports SQL statements. [0003] The use of SQLite requires a SQLiteDataBase class. The bottom layer of this class is a database file. One class represents a database, and the operation on the database must also pass through the SQLiteDataBase class. The SQLiteDatabase class encapsulates some APIs for operating the database. Using this class, you can complete the operations of adding (Create), querying (Retrieve), updating (Update) and deleting (Delete) data. [0004] The SQLiteOpenHelper class is an abstract class used to assist in managing data...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/23G06F16/25G06F8/65
CPCG06F8/65G06F16/2329G06F16/2365G06F16/252
Inventor 王旭东
Owner BEIJING KUWO TECH