[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103324551A - Application data migration method and system - Google Patents

Application data migration method and system Download PDF

Info

Publication number
CN103324551A
CN103324551A CN2013101949847A CN201310194984A CN103324551A CN 103324551 A CN103324551 A CN 103324551A CN 2013101949847 A CN2013101949847 A CN 2013101949847A CN 201310194984 A CN201310194984 A CN 201310194984A CN 103324551 A CN103324551 A CN 103324551A
Authority
CN
China
Prior art keywords
application
module
application program
original document
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013101949847A
Other languages
Chinese (zh)
Inventor
张寅祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2013101949847A priority Critical patent/CN103324551A/en
Publication of CN103324551A publication Critical patent/CN103324551A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an application data migration method. The method comprises the steps of obtaining the initial file structure of an application; obtaining the access rights to all application files and generating relevant information files; generating backup data according to the initial file structure and the relevant information files and exporting the backup data; importing and analyzing the backup data; judging whether the application is in a system; obtaining a user identity of the application according to a judging result and replacing a current file structure of the application with the initial file structure; and modifying the access rights and the user properties of the application files in the replaced current file structure. Compared with the prior art, the application data migration method achieves the migration of application data among different mobile terminals, guarantees the continuity of the application data and improves user experience. Meanwhile, the invention discloses a system with an application data migration function.

Description

The method and system that application data is transplanted
Technical field
The present invention relates to technical field of mobile terminals, relate more specifically to the method and system that a kind of application data is transplanted.
Background technology
Intelligent mobile terminal has become very universal at present.Intelligent mobile terminal is owing to supporting the upgrading of operating system, and makes it have the potentiality of function infinite expanding.Intelligent mobile terminal user be obtain more powerful function, better experience and/or more the Extraordinary interface usually can select upgrading operation system.Yet upgrading operation system tends to cause the problems such as losing of application data.
The problem that causes application data to be lost for solving operating system update, prior art mainly takes before upgrading the application programs data to carry out monolithic backup, and the application programs data are carried out the whole means of recovering and come the problem that application data is lost in the up operation system upgrade process after upgrading.Yet, this simple application data backup is only applicable to the constant situation of user property with the mode of recovering, can't realize the transplanting of application data between different mobile terminal, therefore when changing portable terminal, user selection will have to give up the application data on the former portable terminal, thereby cause various types of games data, types of applications programming etc. on new portable terminal, can't continue, reduced user's experience.
Therefore, be necessary that the method and system that provides a kind of improved application data to transplant overcomes defects.
Summary of the invention
The purpose of this invention is to provide the method that a kind of application data is transplanted, to realize the transplanting of application data between different mobile terminal, guarantee the continuity of application data, improve the user and experience.
Another object of the present invention provides a kind of system that application data is transplanted that has, and to realize the transplanting of application data between different mobile terminal, guarantees the continuity of application data, improves the user and experiences.
To achieve these goals, the invention provides the method that a kind of application data is transplanted, comprise the steps:
(11) obtain the original document structure of the application program of need transplanting and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels;
(12) obtain the access rights of all described program files to generate the relevant information file;
(13) according to described original document structure and described relevant information file generated Backup Data and derive described Backup Data;
(14) import and resolve described Backup Data and obtain systematic name, original document structure and relevant information file;
(15) judge the application program that whether has corresponding described systematic name in the system;
(16) if then obtain user ID and the execution in step (17) of described application program, otherwise then the described application program of prompting user is not installed;
(17) search the current file structure of described application program and described current file structure replaced with described original document structure;
(18) access rights of all program files in the described current file structure after replacing according to described relevant information file modification;
(19) revise the user property of all described program files in the described current file structure after replacing according to described user ID.
Compared with prior art, the method that application data of the present invention is derived is obtained first the original document structure of application program and with the systematic name of original document structure called after application program, obtain again the access rights of all program files to generate the relevant information file, again according to original document structure and relevant information file generated Backup Data and derive Backup Data, import again and resolve Backup Data and obtain systematic name, original document structure and relevant information file, judge afterwards the application program that whether exists in the system should systematic name, again according to judged result obtain application program user ID and search the current file structure of application program and the current file structure replaced with the original document structure, the access rights of all program files in the current file structure after replacing according to the relevant information file modification again, the user property of all program files in the current file structure after modification is replaced according to user ID at last, thereby realized the transplanting of application data between different mobile terminal, guarantee the continuity of application data, improved user's experience.
Preferably, described step (1) also comprises before:
Obtain the application list, described the application list comprises all mounted application programs;
Select arbitrary described application program.
Preferably, described step (13) also comprises before:
Define the title of described Backup Data.
Corresponding the present invention also provides a kind of system with application data portability function, comprises the first portable terminal, the second portable terminal and memory storage.
Particularly, described the first portable terminal comprises:
The first acquisition module, be used for obtaining the original document structure that needs the application program of transplanting and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels;
The first generation module is used for obtaining the access rights of all described program files to generate the relevant information file;
The second generation module is used for according to described original document structure and described relevant information file generated Backup Data; And
Derive module, be used for described Backup Data is derived.
Particularly, described the second portable terminal comprises:
Import module, be used for importing the described Backup Data that described derivation module derives;
Parsing module is used for resolving described Backup Data and obtains systematic name, original document structure and relevant information file;
Judge module is used for judging whether system exists the application program of corresponding described systematic name;
The second acquisition module is for the user ID of obtaining described application program according to the judged result of described judge module;
Reminding module is used for not installing according to the described application program of judged result prompting user of described judge module;
Replacement module is used for searching the current file structure of described application program and described current file structure being replaced with described original document structure according to the judged result of described judge module;
The first modified module is used for the access rights according to all program files in the described current file structure after the described relevant information file modification replacement; And
The second modified module is used for the user property according to all described program files in the described current file structure after the described user ID modification replacement.
Preferably, described the first portable terminal also comprises:
The 3rd acquisition module is used for obtaining the application list, and described the application list comprises all mounted application programs;
Select module, be used for selecting arbitrary described application program.
Preferably, described the first portable terminal also comprises:
Definition module is for the title that defines described Backup Data.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Description of drawings
Fig. 1 is an embodiment process flow diagram of the method for application data transplanting of the present invention.
Fig. 2 is the schematic diagram of Backup Data among Fig. 1.
Fig. 3 is the embodiment schematic diagram with system of application data portability function of the present invention.
Fig. 4 is the structured flowchart of the first portable terminal among Fig. 3.
Fig. 5 is the structured flowchart of the second portable terminal among Fig. 3.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, similar element numbers represents similar element in the accompanying drawing.
With reference to Fig. 1, the invention provides the method that a kind of application data is transplanted, comprise the steps:
Step S101 obtains the application list, and described the application list comprises all mounted application programs; As: get access to the application list that comprises application A and application program B, the systematic name of wherein said application A be " Com.A.android.example ", the systematic name of described application program B is " Com.B.android.example ";
Step S102 selects arbitrary described application program; As: select application A;
Step S103, obtain the original document structure of described application program and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels according to the described application program of user selection; Particularly, described original document structure is the whole file under the described application program installation site; As: obtain whole file and called after " Com.A.android.example " under the application A installation site;
Step S104 obtains the access rights of all described program files to generate the relevant information file; As: generate relevant information file Com.A.android.example.info after obtaining the access rights of all program files of application A;
Step S105 is according to described original document structure and described relevant information file generated Backup Data; As: generate Backup Data by file Com.A.android.example and relevant information file Com.A.android.example.info packing, as shown in Figure 2;
Step S106 defines the title of described Backup Data; As: the name of definition Backup Data is called " A ";
Step S107 derives described Backup Data; Particularly, described Backup Data is exported to micro SD card, T-Flash card, memory stick, CF card or hard disk; As: the Backup Data that name is called " A " exports to Micro SD card;
Step S108 imports and resolves described Backup Data and obtains systematic name, original document structure and relevant information file; Particularly, import described Backup Data from micro SD card, T-Flash card, memory stick, CF card or hard disk; As: import the Backup Data that name is called " A " from Micro SD card, resolve this Backup Data and obtain systematic name " Com.A.android.example ", file Com.A.android.example and relevant information file Com.A.android.example.info;
Step S109 judges the application program that whether has corresponding described systematic name in the system, if, execution in step S110 then, otherwise, execution in step S111 then; As: the system of learning take " Com.A.android.example " as keyword match has installed application A, so execution in step S110; And for example: application program B has not installed in the system of learning take " Com.B.android.example " as keyword match, so execution in step S111;
Step S110 obtains user ID and the execution in step S112 of described application program; Particularly, described user ID is the userid of described application program; As: the userid that obtains application A is " 10001 ";
Step S111, the described application program of prompting user is not installed; As: eject prompting frame and show " program is not installed, wish the program of installing good health then import again data ";
Step S112 searches the current file structure of described application program and described current file structure is replaced with described original document structure; As: search the installation site of application A, all sub-folders under the application A installation site and program file are replaced with all sub-folders and program file under the file Com.A.android.example;
Step S113 is according to the access rights of all program files in the described current file structure after the described relevant information file modification replacement; As: revise the access rights of replacing all program files under the rear application A installation site according to the access rights that record among the relevant information file Com.A.android.example.info;
Step S114 is according to the user property of all described program files in the described current file structure after the described user ID modification replacement.Particularly, described user property comprises uid and gid; As: uid and the gid of all program files under the application A installation site after modification is replaced according to userid " 10001 " are userid " 10001 ".
As can be seen from the above description, the method that application data of the present invention is transplanted has realized the transplanting of application data between different mobile terminal, has guaranteed the continuity of application data, has improved user's experience.
With reference to Fig. 3, the invention provides a kind of system 100 with application data portability function, comprise the first portable terminal 10, memory storage 20 and the second portable terminal 30.
Particularly, with reference to Fig. 3 and Fig. 4, described the first portable terminal 10 comprises:
The 3rd acquisition module 101 is used for obtaining the application list, and described the application list comprises all mounted application programs;
Select module 102, be used for for the arbitrary described application program of user selection;
The second acquisition module 103, be used for obtaining the original document structure that needs the application program of transplanting and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels; Particularly, described original document structure is the whole file under the described application program installation site;
The first generation module 104 is used for obtaining the access rights of all described program files to generate the relevant information file;
The second generation module 105 is used for according to described original document structure and described relevant information file generated Backup Data;
Definition module 106 is for the title that defines described Backup Data; And
Derive module 107, be used for described Backup Data is exported to described memory storage 20.Particularly, described memory storage comprises micro SD card, T-Flash card, memory stick, CF card or hard disk.
Particularly, with reference to Fig. 3 and Fig. 5, described the second portable terminal 30 comprises:
Import module 301, be used for importing Backup Data from memory storage 20;
Parsing module 302 is used for resolving described Backup Data and obtains systematic name, original document structure and relevant information file;
Judge module 303 is used for judging whether system exists the application program of corresponding described systematic name;
The second acquisition module 304 is for the user ID of obtaining described application program according to the judged result of described judge module 303;
Reminding module 305 is used for not installing according to the described application program of judged result prompting user of described judge module 303;
Replacement module 306 is used for searching the current file structure of described application program and described current file structure being replaced with described original document structure according to the judged result of described judge module 303;
The first modified module 307 is used for the access rights according to all program files in the described current file structure after the described relevant information file modification replacement; And
The second modified module 308 is used for the user property according to all described program files in the described current file structure after the described user ID modification replacement.
In conjunction with foregoing description as can be known, system 100 with application data portability function of the present invention first the first acquisition module 103 by the first portable terminal 10 obtains the original document structure of application program and with the systematic name of original document structure called after application program, the first generation module 104 by the first portable terminal 10 obtains the access rights of all program files to generate the relevant information file again, the second generation module 105 by the first portable terminal 10 is according to original document structure and relevant information file generated Backup Data and derive Backup Data to memory storage 20 again, importing module 301 by the second portable terminal 30 imports Backup Data from memory storage 20 again, resolve described Backup Data by the parsing module 302 of the second portable terminal 30 again and obtain systematic name, original document structure and relevant information file, judge the application program that whether has corresponding described systematic name in the system by the judge module 303 of the second portable terminal 30 again, the second acquisition module 304 by the second portable terminal 30 obtains the user ID of application program according to judged result and searches the current file structure of application program and the current file structure is replaced with the original document structure according to judged result by the replacement module 306 of the second portable terminal 30 again, the access rights of all program files in the current file structure after replacing according to the relevant information file modification by the first modified module 307 of the second portable terminal 30 again, the second modified module 308 by the second portable terminal 30 is revised the user property of all described program files in the current file structure after replacing according to user ID at last, thereby realized the transplanting of application data between different mobile terminal, guarantee the continuity of application data, improved user's experience.
Above invention has been described in conjunction with most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain various modification, equivalent combinations of carrying out according to essence of the present invention.

Claims (6)

1. the method that application data is transplanted is characterized in that, comprises the steps:
(11) obtain the original document structure of the application program of need transplanting and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels;
(12) obtain the access rights of all described program files to generate the relevant information file;
(13) according to described original document structure and described relevant information file generated Backup Data and derive described Backup Data;
(14) import and resolve described Backup Data and obtain systematic name, original document structure and relevant information file;
(15) judge the application program that whether has corresponding described systematic name in the system;
(16) if then obtain user ID and the execution in step (17) of described application program, otherwise then the described application program of prompting user is not installed;
(17) search the current file structure of described application program and described current file structure replaced with described original document structure;
(18) access rights of all program files in the described current file structure after replacing according to described relevant information file modification;
(19) revise the user property of all described program files in the described current file structure after replacing according to described user ID.
2. the method for application data derivation as claimed in claim 1 is characterized in that, described step (1) also comprises before:
Obtain the application list, described the application list comprises all mounted application programs;
Select arbitrary described application program.
3. the method for application data derivation as claimed in claim 1 is characterized in that, described step (13) also comprises before:
Define the title of described Backup Data.
4. the system with application data portability function comprises the first portable terminal, the second portable terminal and memory storage, it is characterized in that, described the first portable terminal comprises:
The first acquisition module, be used for obtaining the original document structure that needs the application program of transplanting and with the systematic name of the described application program of described original document structure called after, described original document structure comprises the file directory of described application program and the program file under the catalogue at different levels;
The first generation module is used for obtaining the access rights of all described program files to generate the relevant information file;
The second generation module is used for according to described original document structure and described relevant information file generated Backup Data; And
Derive module, be used for described Backup Data is derived;
Described the second portable terminal comprises:
Import module, be used for importing the described Backup Data that described derivation module derives;
Parsing module is used for resolving described Backup Data and obtains systematic name, original document structure and relevant information file;
Judge module is used for judging whether system exists the application program of corresponding described systematic name;
The second acquisition module is for the user ID of obtaining described application program according to the judged result of described judge module;
Reminding module is used for not installing according to the described application program of judged result prompting user of described judge module;
Replacement module is used for searching the current file structure of described application program and described current file structure being replaced with described original document structure according to the judged result of described judge module;
The first modified module is used for the access rights according to all program files in the described current file structure after the described relevant information file modification replacement; And
The second modified module is used for the user property according to all described program files in the described current file structure after the described user ID modification replacement.
5. the portable terminal with application data export function as claimed in claim 4 is characterized in that, described the first portable terminal also comprises:
The 3rd acquisition module is used for obtaining the application list, and described the application list comprises all mounted application programs;
Select module, be used for selecting arbitrary described application program.
6. the portable terminal with application data export function as claimed in claim 4 is characterized in that, described the first portable terminal also comprises:
Definition module is for the title that defines described Backup Data.
CN2013101949847A 2013-05-23 2013-05-23 Application data migration method and system Pending CN103324551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101949847A CN103324551A (en) 2013-05-23 2013-05-23 Application data migration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101949847A CN103324551A (en) 2013-05-23 2013-05-23 Application data migration method and system

Publications (1)

Publication Number Publication Date
CN103324551A true CN103324551A (en) 2013-09-25

Family

ID=49193311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101949847A Pending CN103324551A (en) 2013-05-23 2013-05-23 Application data migration method and system

Country Status (1)

Country Link
CN (1) CN103324551A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942121A (en) * 2014-04-04 2014-07-23 上海斐讯数据通信技术有限公司 Data recovery system and mobile terminal
CN106528300A (en) * 2016-10-20 2017-03-22 厦门美图移动科技有限公司 Console game synchronizing method, device and terminal
CN106598776A (en) * 2016-11-11 2017-04-26 北京珠穆朗玛移动通信有限公司 Mobile terminal backup method and mobile terminal
CN106657278A (en) * 2016-11-21 2017-05-10 广东欧珀移动通信有限公司 Data transmission method and apparatus, and computer device
CN107944297A (en) * 2017-12-11 2018-04-20 北京奇虎科技有限公司 A kind of control method and device for accessing file
CN108427678A (en) * 2017-02-13 2018-08-21 海马云(天津)信息技术有限公司 The method that Android system searches application resource file
CN112148524A (en) * 2019-06-28 2020-12-29 青岛海信移动通信技术股份有限公司 Method and terminal for processing application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148728A1 (en) * 2010-01-08 2010-12-29 中兴通讯股份有限公司 Method and apparatus for run-time snapshot backup and recovery for mobile terminal
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN102186160A (en) * 2011-04-19 2011-09-14 中兴通讯股份有限公司 Method and terminal for downloading application program
CN102236750A (en) * 2010-04-29 2011-11-09 国际商业机器公司 Right control method and device for cloud computing system
CN102591727A (en) * 2012-01-04 2012-07-18 华为终端有限公司 Method for processing application data and computing node
CN102662798A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Data recovery method and terminal for Android system
CN102932407A (en) * 2012-09-20 2013-02-13 无锡华御信息技术有限公司 Cloud computing-based safety backup system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010148728A1 (en) * 2010-01-08 2010-12-29 中兴通讯股份有限公司 Method and apparatus for run-time snapshot backup and recovery for mobile terminal
CN102236750A (en) * 2010-04-29 2011-11-09 国际商业机器公司 Right control method and device for cloud computing system
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN102186160A (en) * 2011-04-19 2011-09-14 中兴通讯股份有限公司 Method and terminal for downloading application program
CN102591727A (en) * 2012-01-04 2012-07-18 华为终端有限公司 Method for processing application data and computing node
CN102662798A (en) * 2012-04-12 2012-09-12 青岛海信移动通信技术股份有限公司 Data recovery method and terminal for Android system
CN102932407A (en) * 2012-09-20 2013-02-13 无锡华御信息技术有限公司 Cloud computing-based safety backup system and method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942121A (en) * 2014-04-04 2014-07-23 上海斐讯数据通信技术有限公司 Data recovery system and mobile terminal
CN106528300A (en) * 2016-10-20 2017-03-22 厦门美图移动科技有限公司 Console game synchronizing method, device and terminal
CN106598776A (en) * 2016-11-11 2017-04-26 北京珠穆朗玛移动通信有限公司 Mobile terminal backup method and mobile terminal
CN106657278A (en) * 2016-11-21 2017-05-10 广东欧珀移动通信有限公司 Data transmission method and apparatus, and computer device
CN106657278B (en) * 2016-11-21 2020-01-14 Oppo广东移动通信有限公司 Data transmission method and device and computer equipment
CN108427678A (en) * 2017-02-13 2018-08-21 海马云(天津)信息技术有限公司 The method that Android system searches application resource file
CN108427678B (en) * 2017-02-13 2021-04-20 海马云(天津)信息技术有限公司 Method for searching application resource file by android system
CN107944297A (en) * 2017-12-11 2018-04-20 北京奇虎科技有限公司 A kind of control method and device for accessing file
CN107944297B (en) * 2017-12-11 2020-11-24 北京奇虎科技有限公司 Control method and device for accessing file
CN112148524A (en) * 2019-06-28 2020-12-29 青岛海信移动通信技术股份有限公司 Method and terminal for processing application

Similar Documents

Publication Publication Date Title
CN103324551A (en) Application data migration method and system
CN102779151B (en) The searching method of application program, Apparatus and system
CN103049515A (en) Method, device and equipment for classifying application programs
CN104077132A (en) Management method and device for application programs in mobile terminal
CN102932777A (en) Method for updating terminal application and user terminal
JP2013526818A (en) Method and system for managing non-volatile items and provisioning files for communication devices with multiple service accounts
CN105893075A (en) Update method and device of application
CN106126397A (en) The processing method of program crashing message and system
CN103268239B (en) The management method of application program, device and mobile terminal in mobile terminal
CN103813295A (en) Method and device for automatically configuring and updating access point name parameters
JP2018527611A (en) Method and device for recognizing time information from audio information
CN103164247B (en) The method and device that system application is repaired automatically
CN104731602A (en) Method for separating Android mirror image burning process
CN105677222A (en) Application information display method, application information display device and terminal
CN111400681A (en) Data permission processing method, device and equipment
WO2013182157A1 (en) Application program processing method and device
CN103607644A (en) Screensaver program self-defining method for Android TVs
CN104537301A (en) Method and device for logging in to application and mobile terminal
CN105354195A (en) Information search method and apparatus
CN105678141A (en) Information exhibiting method and device and terminal
CN104361040A (en) Method and device for customized query
WO2016041499A1 (en) Application downloading method and mobile terminal
CN110780894B (en) Thermal upgrade processing method and device and electronic equipment
CN101583204A (en) Method and system for realizing managing universal combined circuit card multiple application files
CN107154971A (en) One kind application method for down loading and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130925