WO2012028080A1 - 一种移动终端数据信息的备份方法及装置 - Google Patents

一种移动终端数据信息的备份方法及装置 Download PDF

Info

Publication number
WO2012028080A1
WO2012028080A1 PCT/CN2011/079067 CN2011079067W WO2012028080A1 WO 2012028080 A1 WO2012028080 A1 WO 2012028080A1 CN 2011079067 W CN2011079067 W CN 2011079067W WO 2012028080 A1 WO2012028080 A1 WO 2012028080A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
backup
xml file
mms
short message
Prior art date
Application number
PCT/CN2011/079067
Other languages
English (en)
French (fr)
Inventor
周宝忠
郑瑜
丁杨
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to EP11821106.9A priority Critical patent/EP2613506A4/en
Priority to US13/637,349 priority patent/US9323822B2/en
Publication of WO2012028080A1 publication Critical patent/WO2012028080A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/273Asynchronous replication or reconciliation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML

Definitions

  • the present invention relates to the field of mobile terminals, and in particular, to a method and an apparatus for backing up data information of a mobile terminal.
  • the technical problem to be solved by the present invention is to provide a method and a device for backing up data information of a mobile terminal according to the above-mentioned defects of the prior art, which conveniently realizes exporting and backing up data information of the mobile terminal, and is convenient for user management. And the operation is simple and easy to implement.
  • a method for backing up data information of a mobile terminal comprising the steps of:
  • step A Check whether the xml file path and file name used to store the backup information data are legal. If it is not legal, skip to step F. When it is legal, create an xml file and proceed to step B;
  • step B judging whether to export the phone book data, when yes, entering the phone book data backup process, backing up the phone book data to the created xml file, and if not, entering the message export decision, and proceeding to step C;
  • step C judging whether to export the short message data, when yes, enter the short message data backup process, back up the short message data to the created xml file, and if not, enter the multimedia message export judgment, and proceed to step D;
  • step D judging whether to export the MMS data, if not, skipping to step F, and when yes, entering the MMS data backup process, and backing up the MMS data to the created xml file;
  • step E judging whether all data backup is completed, when not, returning to step B, proceeding to the next category judgment, and when yes, proceeding to step F;
  • the method for backing up data information of the mobile terminal wherein the phone book data backup process in the step B specifically includes the following steps:
  • step B3. Determine whether the backup of the phone book data is completed. If not, return to step B1, and if yes, skip to step E.
  • the method for backing up the data information of the mobile terminal specifically includes the following steps:
  • step C3. Determine whether the backup of the short message data is completed. If not, return to step C1, and if yes, skip to step E.
  • the method for backing up data information of the mobile terminal wherein the MMS data backup process in the step D specifically includes the following steps:
  • step D3. Determine whether the MMS data backup process is completed. If not, return to step D1. If yes, skip to step E.
  • the method for backing up mobile terminal data information wherein the phone book data includes last name data, name data, mobile phone number data, home phone data, work phone data, and/or email address data.
  • the method for backing up data information of a mobile terminal wherein the short message data includes sender number data, short message time data, and/or information content data;
  • the MMS data includes sender number data, MMS time data, text message content data, picture path data, video path data, and/or sound file path data.
  • a backup device for data information of a mobile terminal comprising:
  • the xml file detection module is configured to check whether the xml file path and file name of the backup backup information data are legal;
  • An xml file creation module configured to create an xml file when the xml file path and the file name of the backup backup information data are legal;
  • a phone book data backup module configured to determine whether to export phone book data, and when yes, enter a phone book data backup process, and back up the phone book data to the created xml file;
  • the short message data backup module is configured to determine whether to export the short message data, and when yes, enter the short message data backup process, and back up the short message data to the created xml file;
  • the MMS data backup module is configured to determine whether to export the MMS data, and when yes, enter the MMS data backup process, and back up the MMS data to the created xml file;
  • the backup detection module is used to judge whether all data backups are completed, and when yes, the entire backup process is ended.
  • the backup device of the mobile terminal data information wherein the phone book data backup module comprises:
  • a phone book data reading unit for reading a phone book record one by one
  • a phone book data writing unit configured to encode the read phone book record into UTF-8, and write to the created xml file
  • the phone book data judging unit is configured to judge whether the phone book data backup is completed.
  • the short message data backup module includes: a short message data reading unit for reading the short message record one by one; and a short message data writing unit for encoding the read short message record into UTF-8, and writing to the creation The xml file; the short message data judging unit is configured to judge whether the backup of the short message data is completed;
  • the MMS data backup module includes: a multimedia message data reading unit, configured to read the MMS record one by one; the MMS data writing unit is configured to encode the read MMS record into UTF-8, and write to the creation The xml file; the MMS data judging unit is used to judge whether the MMS data backup is completed.
  • the method and device for backing up data information of a mobile terminal can conveniently back up the data information of the mobile terminal to the data information of the mobile terminal by encoding the data information of the mobile terminal into UTF-8 and storing it in the xml file.
  • the XML file is beneficial to the user to manage the data information of the mobile terminal, and provides convenience for the user, and the operation is simple and easy to implement.
  • FIG. 1 is a flowchart of a method for backing up data information of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic block diagram of a backup device for data information of a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing the internal structure of a phone book data backup module according to an embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of an internal short message data backup module according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a multimedia message data backup module according to an embodiment of the present invention.
  • the method and device for backing up data information of a mobile terminal mainly utilizes encoding data in the mobile phone into UTF-8 and storing it in an xml file for backup, and when restoring and importing, the xml will be directly backed up.
  • the data in the file is encoded as a code suitable for the mobile terminal and stored in the mobile terminal.
  • a method for backing up data information of a mobile terminal mainly includes the following steps: abbreviations (in Chinese and English) appear in the following steps as follows:
  • SMS Short Message Service
  • MMS Multimedia Message Service
  • Step S110 Start exporting a backup.
  • Step S120 Check whether the xml file path and the file name for storing the backup information data of the mobile terminal are legal. If not, the process goes to step S180 to end the process, and if it is legal, the process proceeds to step S130.
  • Step S130 Create the xml file for storing mobile terminal backup information data to back up the mobile terminal data, and the following will enter the mobile terminal data backup process.
  • Step S140 determining whether to export PHB (Phone Book: Phone book) data, if not, proceed to step S150 for SMS (Short Message) Service: SMS) data export judgment; when yes, enter the PHB data backup process, the PHB data is backed up to the created xml file, the PHB data backup process includes steps S141, S142 and S143;
  • Step S141 reading the PHB record one by one, for example, reading a PHB record first;
  • Step S142 encoding the read PHB record into UTF-8, and writing into the xml file created in step S130;
  • Step S143 determining whether the PHB data backup process is completed, if not, returning to step S141, starting to repeat steps S141, S142, S143; if the PHB data backup process is completed, then skipping to step S170;
  • Step S150 Determine whether to export the SMS data, and if yes, enter an SMS data backup process, and back up the SMS data to the created xml file, where the SMS data backup process includes steps S151, S152, and S153.
  • MMS The Multimedia Message Service: MMS
  • Step S151 reading the SMS record one by one, for example, reading an SMS record first;
  • Step S152 encoding the read SMS record into UTF-8, and writing into the xml file created in step S130;
  • step S153 it is determined whether the SMS data backup process is completed. If not, the process returns to step S151, and steps S151, S152, and S153 are repeatedly performed. If the SMS data backup process is completed, the process proceeds to step S170.
  • Step S160 Determine whether to back up the MMS data, and if yes, enter the MMS data backup process, and back up the MMS data to the created xml file, where the MMS data backup process includes steps S161, S162, and S163. When no, the process jumps to step S180 to end the entire backup process.
  • Step S161 reading MMS records one by one, for example, reading an MMS record first;
  • Step S162 encoding the read MMS record into UTF-8, and writing into the xml file created in step S130;
  • step S163 it is determined whether the MMS data backup process is completed. If not, the process returns to step S161, and steps S161, S162, and S163 are repeatedly performed. If the MMS data backup process is completed, the process proceeds to step S170.
  • step S170 it is determined whether all data backup is completed. If yes, the process proceeds to step S180 to end the entire process. If not, the process returns to step S140 to perform the next category determination.
  • Step S180 if yes, the entire process is ended.
  • the embodiment of the present invention further provides a backup device for data information of a mobile terminal, as shown in FIG. 2, including:
  • the xml file detecting module 310 is configured to check whether the xml file path and the file name for storing the backup information data are legal.
  • the xml file creating module 320 is configured to create an xml file when the xml file path and the file name of the backup backup information data are legal.
  • the phone book data backup module 330 is configured to determine whether to export the PHB (phone book) data, and when yes, enter the PHB data backup process, and back up the PHB data to the created xml file.
  • the SMS data backup module 340 is configured to determine whether to export the SMS data, and when yes, enter the SMS data backup process, and back up the SMS data to the created xml file.
  • the MMS data backup module 350 is configured to determine whether to export the MMS data, and when yes, enter the MMS data backup process, and back up the MMS data to the created xml file.
  • the backup detection module 360 is configured to determine whether all data backups are completed, and when yes, end the entire backup process.
  • the PHB data backup module 330 includes:
  • the phone book data reading unit 331 is configured to read the PHB record one by one.
  • the phone book data writing unit 332 is configured to encode the read PHB record into UTF-8 and write it into the created xml file.
  • the phone book data judging unit 333 is configured to judge whether the PHB data backup is completed.
  • the short message data backup module 340 includes:
  • the short message data reading unit 341 is configured to read the SMS record one by one.
  • the short message data writing unit 342 is configured to encode the read SMS record into UTF-8 and write it into the created xml file.
  • the short message data judging unit 343 is configured to judge whether the SMS data backup is completed.
  • the MMS data backup module 350 includes:
  • the MMS data reading unit 351 is configured to read the MMS records one by one.
  • the MMS data writing unit 352 is configured to encode the read MMS record into UTF-8 and write it into the created xml file.
  • the MMS data judging unit 353 is configured to determine whether the MMS data backup is completed.
  • the format of the xml file is defined as: the xml file is encoded in UTF-8, version 1.0.
  • the elements are as follows:
  • the root element contains several sub-elements such as PHB, SMS, and MMS;
  • the PHB element represents a record in the PHB.
  • the elements include a surname, a name, a mobile phone number, a home phone, a work phone, an email address, etc.; that is, the PHB data includes last name data, name data, mobile phone number data, home phone data, work phone data, and/or email address data. .
  • the SMS element represents a record in the SMS.
  • the element includes a sender number, time, information content, and the like; that is, the SMS data includes sender number data, SMS time data, and/or information content data.
  • the MMS element represents a record in the MMS.
  • the elements include the sender's number, time, text information content, image path, video path, and sound file path. That is, the MMS data includes sender number data, MMS time data, text information content data, picture path data, video path data, and/or sound file path data.
  • the MMS when MMS is backed up and imported, the MMS may include centralized multimedia files such as pictures, videos, and sounds. These files cannot be stored in the xml file, and can only be saved in other manners.
  • the xml file only stores these files. The relative path to the file.
  • the backup file needs to be encrypted for the sake of personal information security, but the import and export process does not involve this field, so it is not discussed. If encryption is required, the import and export process only adds the corresponding encryption and decryption process.
  • the method and device for backing up data information of a mobile terminal can conveniently transfer the mobile terminal information by encoding the mobile terminal information data into UTF-8 and storing it in an xml file.
  • Backing up the data information into the XML file is beneficial to the user to manage the data information of the mobile terminal, and provides convenience for the user, and the operation is simple and easy to implement.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及移动终端领域,公开了一种移动终端数据信息的备份方法及装置。本发明所提供的一种移动终端数据信息的备份方法及装置,由于采用了将移动终端信息数据编码为UTF-8并存储到xml文件中,其可以很方便地将移动终端的数据信息备份到xml文件中,有利于用户对移动终端数据信息的管理,为用户提供了方便,且其操作简单,实现容易。

Description

一种移动终端数据信息的备份方法及装置
技术领域
本发明涉及移动终端领域,尤其涉及的是一种移动终端数据信息的备份方法及装置。
背景技术
当前移动通讯设备普及度越来越高,随着通讯方式的多样化发展和个人业务的需求增涨,移动通讯终端中存储的个人信息量也越来越大。由于移动终端的存储量、屏幕大小、操作方面的限制,越来越多的通讯录、短信息等数据,让用户觉得很难管理。且现有技术中,对移动终端的数据信息也还没有很好的导出管理方案。
因此,现有技术还有待于改进和发展。
发明内容
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种移动终端数据信息的备份方法及装置,其很方便地实现了对移动终端的数据信息的导出备份,便于用户的管理,且操作简单,实现容易。
本发明解决技术问题所采用的技术方案如下:
一种移动终端数据信息的备份方法,其中,包括步骤:
A、检查用于存储备份信息数据的xml文件路径及文件名是否合法,当不合法则跳到步骤F,当合法则创建xml文件,进入步骤B;
B、判断是否导出电话簿数据,当是时则进入电话簿数据备份流程,将所述电话簿数据备份到所述创建的xml文件中,当否时则进入短信导出判断,转入步骤C;
C、判断是否导出短信数据,当是时则进入短信数据备份流程,将所述短信数据备份到所述创建的xml文件,当否时则进入彩信导出判断,转入步骤D;
D、判断是否导出彩信数据,当否时则跳到步骤F,当是时则进入彩信数据备份流程,将所述彩信数据备份到所述创建的xml文件;
E、判断全部数据备份是否完成,当否时则返回到步骤B,进行下一个类别判断,当是时则进入步骤F;
F、结束整个备份流程。
所述移动终端数据信息的备份方法,其中,所述步骤B中的电话簿数据备份流程具体包括步骤:
B1、读取一条电话簿记录;
B2、将读取到的电话簿记录编码成UTF-8,并写入到所述创建的xml文件中;
B3、判断电话簿数据备份是否完成,当否时,则返回到步骤B1,当是时则跳到步骤E。
所述移动终端数据信息的备份方法,其中,所述步骤C中的短信数据备份流程具体包括步骤:
C1、读取一条短信记录;
C2、将读到的短信记录编码为UTF-8,并写入到所述创建的xml文件中;
C3、判断短信数据备份是否完成,当否时则返回到步骤C1,当是时则跳到步骤E。
所述移动终端数据信息的备份方法,其中,所述步骤D中的彩信数据备份流程具体包括步骤:
D1、读取一条彩信记录;
D2、将彩信记录编码为UTF-8并写入到所述创建的xml文件;
D3、判断彩信数据备份流程是否完成,当否时则返回到步骤D1,当是时就跳到步骤E。
所述移动终端数据信息的备份方法,其中,所述创建的xml文件采用UTF-8编码。
所述移动终端数据信息的备份方法,其中,所述电话簿数据包括姓氏数据、名字数据、手机号码数据、家庭电话数据、工作电话数据和/或电邮地址数据。
所述移动终端数据信息的备份方法,其中,所述短信数据包括发件人号码数据、短信时间数据和/或信息内容数据;
所述彩信数据包括发件人号码数据、彩信时间数据、文字信息内容数据、图片路径数据、视频路径数据和/或声音文件路径数据。
一种移动终端数据信息的备份装置,其中,包括:
xml文件检测模块,用于检查存储备份信息数据的xml文件路径及文件名是否合法;
xml文件创建模块,用于当所述存储备份信息数据的xml文件路径及文件名合法时,创建xml文件;
电话簿数据备份模块,用于判断是否导出电话簿数据,当是时则进入电话簿数据备份流程,将所述电话簿数据备份到所述创建的xml文件;
短信数据备份模块,用于判断是否导出短信数据,当是时则进入短信数据备份流程,将所述短信数据备份到所述创建的xml文件;
彩信数据备份模块,用于判断是否导出彩信数据,当是时则进入彩信数据备份流程,将所述彩信数据备份到所述创建的xml文件;
备份检测模块,用于判断全部数据备份是否完成,当是时则结束整个备份流程。
所述移动终端数据信息的备份装置,其中,所述电话簿数据备份模块包括:
电话簿数据读取单元,用于逐条读取电话簿记录;
电话簿数据写入单元,用于将读取到的电话簿记录编码成UTF-8,并写入到所述创建的xml文件中;
电话簿数据判断单元,用于判断电话簿数据备份是否完成。
所述移动终端数据信息的备份装置,其中,
所述短信数据备份模块包括:短信数据读取单元,用于逐条读取短信记录;短信数据写入单元,用于将读取到的短信记录编码成UTF-8,并写入到所述创建的xml文件中;短信数据判断单元,用于判断短信数据备份是否完成;
所述彩信数据备份模块包括:彩信数据读取单元,用于逐条读取彩信记录;彩信数据写入单元,用于将读取到的彩信记录编码成UTF-8,并写入到所述创建的xml文件中;彩信数据判断单元,用于判断彩信数据备份是否完成。
本发明所提供的一种移动终端数据信息的备份方法及装置,由于采用了将移动终端信息数据编码为UTF-8并存储到xml文件中,其可以很方便地将移动终端的数据信息备份到XML文件中,有利于用户对移动终端数据信息的管理,为用户提供了方便,且其操作简单,实现容易。
附图说明
图1是本发明实施例的移动终端数据信息的备份方法流程图;
图2是本发明实施例的移动终端数据信息的备份装置原理框图;
图3是本发明实施例的电话簿数据备份模块内部原理框图;
图4是本发明实施例的短信数据备份模块内部原理框图;
图5是本发明实施例的彩信数据备份模块内部原理框图。
具体实施方式
本发明所提供的一种移动终端数据信息的备份方法及装置,主要是利用将手机中数据编码为UTF-8并存储到xml文件中进行备份,而在还原导入时,将直接将备份的xml文件中的数据编码为适合移动终端的编码并存入移动终端。
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例的一种移动终端数据信息的备份方法,如图1所示,主要包括以下步骤:以下步骤中出现缩略词(中英文对照)如下:
PHB: Phone Book(电话簿),
SMS: Short Message Service(短信),
MMS: Multimedia Message Service(彩信),
XML: Extensible Markup Language(可扩展标记语言)。
如图1所示:所述方法包括:步骤S110、开始进行导出备份。
步骤S120、检查用于存储移动终端备份信息数据的xml文件路径及文件名是否合法,如不合法则跳到步骤S180结束流程,如果合法则进入步骤S130。
步骤S130、创建所述xml文件,用于存储移动终端备份信息数据,以将移动终端数据进行备份,以下将进入移动终端数据备份流程。
步骤S140、判断是否导出PHB(Phone Book:电话簿)数据,如否就进入步骤S150,以进行SMS( Short Message Service:短信)数据导出判断;当是时则进入PHB数据备份流程,将所述PHB数据备份到所述创建的xml文件中,所述PHB数据备份流程包括步骤S141、S142以及S143;
步骤S141、逐条读取PHB记录,例如先读取一条PHB记录;
步骤S142、将读取到的PHB记录编码成UTF-8,并写入步骤S130中所创建的xml文件中;
步骤S143、判断PHB数据备份流程是否完成,如否就返回到步骤S141,开始重复执行步骤S141、S142、S143;如果PHB数据备份流程是完成,则跳到步骤S170;
步骤S150、判断是否导出SMS数据,当是时则进入SMS数据备份流程,将所述SMS数据备份到所述创建的xml文件,所述SMS数据备份流程包括步骤S151、S152和S153。当否时则进入MMS( Multimedia Message Service:彩信)数据导出判断,转入步骤S160。
步骤S151、逐条读取SMS记录,例如先读取一条SMS记录;
步骤S152、将读取到的SMS记录编码成UTF-8,并写入步骤S130中所创建的xml文件中;
步骤S153、判断SMS数据备份流程是否完成,如否就返回到步骤S151,开始重复执行步骤S151、S152、S153;如果SMS数据备份流程是完成,则跳到步骤S170。
步骤S160、判断是否备份MMS数据,当是时则进入MMS数据备份流程,将所述MMS数据备份到所述创建的xml文件,所述MMS数据备份流程包括步骤S161、S162和S163。当否时则跳到步骤S180结束整个备份流程。
步骤S161、逐条读取MMS记录,例如先读取一条MMS记录;
步骤S162、将读取到的MMS记录编码成UTF-8,并写入步骤S130中所创建的xml文件中;
步骤S163、判断MMS数据备份流程是否完成,如否就返回到步骤S161,开始重复执行步骤S161、S162、S163;如果MMS数据备份流程是完成,则进入步骤S170。
步骤S170、判断全部数据备份是否完成,如是就进入步骤S180结束整个流程,如否就返回到步骤S140,进行下一个类别判断。
步骤S180、如是就结束整个流程。
基于上述实施例的移动终端数据信息的备份方法,本发明实施例还提供了一种移动终端数据信息的备份装置,如图2所示,包括:
xml文件检测模块310,用于检查存储备份信息数据的xml文件路径及文件名是否合法。
xml文件创建模块320,用于当所述存储备份信息数据的xml文件路径及文件名合法时,创建xml文件。
电话簿数据备份模块330,用于判断是否导出PHB(电话簿)数据,当是时则进入PHB数据备份流程,将所述PHB数据备份到所述创建的xml文件。
短信数据备份模块340,用于判断是否导出SMS数据,当是时则进入SMS数据备份流程,将所述SMS数据备份到所述创建的xml文件。
彩信数据备份模块350,用于判断是否导出MMS数据,当是时则进入MMS数据备份流程,将所述MMS数据备份到所述创建的xml文件。
备份检测模块360,用于判断全部数据备份是否完成,当是时则结束整个备份流程。
进一步地,所述移动终端数据信息的备份装置,如图3所示,所述PHB数据备份模块330包括:
电话簿数据读取单元331,用于逐条读取PHB记录。
电话簿数据写入单元332,用于将读取到的PHB记录编码成UTF-8,并写入到所述创建的xml文件中。
电话簿数据判断单元333,用于判断PHB数据备份是否完成。
进一步地,如图4所示,所述短信数据备份模块340包括:
短信数据读取单元341,用于逐条读取SMS记录。
短信数据写入单元342,用于将读取到的SMS记录编码成UTF-8,并写入到所述创建的xml文件中。
短信数据判断单元343,用于判断SMS数据备份是否完成。
进一步地,如图5所示,所述彩信数据备份模块350包括:
彩信数据读取单元351,用于逐条读取MMS记录。
彩信数据写入单元352,用于将读取到的MMS记录编码成UTF-8,并写入到所述创建的xml文件中。
彩信数据判断单元353,用于判断MMS数据备份是否完成。
其中,上述实施例的一种移动终端数据信息的备份方法及装置中,xml文件的格式定义为:xml文件采用UTF-8编码,版本1.0。其中元素如下:
1) 根元素,其内容包含了PHB、SMS、MMS等几个子元素;
2) PHB元素,代表PHB中的一条记录。元素中包括姓氏、名字、手机号码、家庭电话、工作电话、电邮地址等值;即所述PHB数据包括姓氏数据、名字数据、手机号码数据、家庭电话数据、工作电话数据和/或电邮地址数据。
3) SMS元素,代表SMS中的一条记录。元素中包括发件人号码、时间、信息内容等值;即所述SMS数据包括发件人号码数据、SMS时间数据和/或信息内容数据。
4) MMS元素,代表MMS中一条记录。元素中包括发件人号码、时间、文字信息内容、图片路径、视频路径、声音文件路径等值。即所述MMS数据包括发件人号码数据、MMS时间数据、文字信息内容数据、图片路径数据、视频路径数据和/或声音文件路径数据。
而本发明实施例中关于MMS备份及导入时,MMS中可能包含图片、视频、声音等集中多媒体文件,这几种文件不能存储到xml文件中,只能以其他方式保存,xml文件只存这些文件的相对路径。
另外,关于备份文件的加密,出于个人信息安全方面的考虑,备份的文件需要加密,但本导入导出流程不涉及此领域,所以不讨论。如需加密,则本导入导出流程只增加相应的加密解密过程。
综上所述,本发明所提供的一种移动终端数据信息的备份方法及装置,由于采用了将移动终端信息数据编码为UTF-8并存储到xml文件中,其可以很方便地将移动终端的数据信息备份到XML文件中,有利于用户对移动终端数据信息的管理,为用户提供了方便,且其操作简单,实现容易。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (10)

  1. 一种移动终端数据信息的备份方法,其特征在于,包括步骤:
    A、检查用于存储备份信息数据的xml文件路径及文件名是否合法,当不合法则跳到步骤F,当合法则创建xml文件,进入步骤B;
    B、判断是否导出电话簿数据,当是时则进入电话簿数据备份流程,将所述电话簿数据备份到所述创建的xml文件中,当否时则进入短信导出判断,转入步骤C;
    C、判断是否导出短信数据,当是时则进入短信数据备份流程,将所述短信数据备份到所述创建的xml文件,当否时则进入彩信导出判断,转入步骤D;
    D、判断是否导出彩信数据,当否时,则跳到步骤F,当是时则进入彩信数据备份流程,将所述彩信数据备份到所述创建的xml文件;
    E、判断全部数据备份是否完成,当否时,则返回到步骤B,进行下一个类别判断,当是时则进入步骤F;
    F、结束整个备份流程。
  2. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述步骤B中的电话簿数据备份流程具体包括步骤:
    B1、读取一条电话簿记录;
    B2、将读取到的电话簿记录编码成UTF-8,并写入到所述创建的xml文件中;
    B3、判断电话簿数据备份是否完成,当否时,则返回到步骤B1,当是时则跳到步骤E。
  3. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述步骤C中的短信数据备份流程具体包括步骤:
    C1、读取一条短信记录;
    C2、将读到的短信记录编码为UTF-8,并写入到所述创建的xml文件中;
    C3、判断短信数据备份是否完成,当否时则返回到步骤C1,当是时则跳到步骤E。
  4. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述步骤D中的彩信数据备份流程具体包括步骤:
    D1、读取一条彩信记录;
    D2、将彩信记录编码为UTF-8并写入到所述创建的xml文件;
    D3、判断彩信数据备份流程是否完成,当否时则返回到步骤D1,当是时就跳到步骤E。
  5. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述创建的xml文件采用UTF-8编码。
  6. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述电话簿数据是姓氏数据、名字数据、手机号码数据、家庭电话数据、工作电话数据、电邮地址数据中的一种或多种。
  7. 根据权利要求1所述移动终端数据信息的备份方法,其特征在于,所述短信数据包括发件人号码数据、短信时间数据和/或信息内容数据;
    所述彩信数据包括发件人号码数据、彩信时间数据、文字信息内容数据、图片路径数据、视频路径数据和/或声音文件路径数据。
  8. 一种移动终端数据信息的备份装置,其特征在于,包括:
    xml文件检测模块,用于检查存储备份信息数据的xml文件路径及文件名是否合法;
    xml文件创建模块,用于当所述存储备份信息数据的xml文件路径及文件名合法时,创建xml文件;
    电话簿数据备份模块,用于判断是否导出电话簿数据,当是时则进入电话簿数据备份流程,将所述电话簿数据备份到所述创建的xml文件;
    短信数据备份模块,用于判断是否导出短信数据,当是时则进入短信数据备份流程,将所述短信数据备份到所述创建的xml文件;
    彩信数据备份模块,用于判断是否导出彩信数据,当是时则进入彩信数据备份流程,将所述彩信数据备份到所述创建的xml文件;
    备份检测模块,用于判断全部数据备份是否完成,当是时则结束整个备份流程。
  9. 根据权利要求8所述移动终端数据信息的备份装置,其特征在于,所述电话簿数据备份模块包括:
    电话簿数据读取单元,用于逐条读取电话簿记录;
    电话簿数据写入单元,用于将读取到的电话簿记录编码成UTF-8,并写入到所述创建的xml文件中;
    电话簿数据判断单元,用于判断电话簿数据备份是否完成。
  10. 根据权利要求8所述移动终端数据信息的备份装置,其特征在于,
    所述短信数据备份模块包括:短信数据读取单元,用于逐条读取短信记录;短信数据写入单元,用于将读取到的短信记录编码成UTF-8,并写入到所述创建的xml文件中;短信数据判断单元,用于判断短信数据备份是否完成;
    所述彩信数据备份模块包括:彩信数据读取单元,用于逐条读取彩信记录;彩信数据写入单元,用于将读取到的彩信记录编码成UTF-8,并写入到所述创建的xml文件中;彩信数据判断单元,用于判断彩信数据备份是否完成。
PCT/CN2011/079067 2010-09-01 2011-08-29 一种移动终端数据信息的备份方法及装置 WO2012028080A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP11821106.9A EP2613506A4 (en) 2010-09-01 2011-08-29 METHOD AND DEVICE FOR SECURING DATA INFORMATION OF A MOBILE TERMINAL
US13/637,349 US9323822B2 (en) 2010-09-01 2011-08-29 Data backup method and device for mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010278668.4 2010-09-01
CN201010278668.4A CN101945156B (zh) 2010-09-01 2010-09-01 一种移动终端数据信息的备份方法及装置

Publications (1)

Publication Number Publication Date
WO2012028080A1 true WO2012028080A1 (zh) 2012-03-08

Family

ID=43436920

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079067 WO2012028080A1 (zh) 2010-09-01 2011-08-29 一种移动终端数据信息的备份方法及装置

Country Status (4)

Country Link
US (1) US9323822B2 (zh)
EP (1) EP2613506A4 (zh)
CN (1) CN101945156B (zh)
WO (1) WO2012028080A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768632B (zh) * 2011-05-03 2015-01-28 厦门市美亚柏科信息股份有限公司 恢复移动终端数据的方法和装置
CN102665179A (zh) * 2012-05-03 2012-09-12 广东欧珀移动通信有限公司 一种手机彩信备份及还原方法
CN103853697A (zh) * 2012-12-07 2014-06-11 比亚迪股份有限公司 一种移动终端及其应用数据的备份方法
US10725996B1 (en) * 2012-12-18 2020-07-28 EMC IP Holding Company LLC Method and system for determining differing file path hierarchies for backup file paths
CN104182294A (zh) * 2013-05-23 2014-12-03 华为技术有限公司 一种文件备份、文件恢复方法及装置
KR102180474B1 (ko) * 2013-11-20 2020-11-18 삼성전자주식회사 백업 정보를 디스플레이 하여 이미지 파일을 관리하는 장치 및 방법

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004312317A (ja) * 2003-04-07 2004-11-04 Murata Mach Ltd 通信端末装置
CN101022612A (zh) * 2006-02-16 2007-08-22 杭州波导软件有限公司 一种移动终端的用户信息数据备份方法
CN101720140A (zh) * 2009-12-21 2010-06-02 宇龙计算机通信科技(深圳)有限公司 一种移动终端数据的备份与恢复方法、系统及移动终端

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941510B1 (en) * 2000-06-06 2005-09-06 Groove Networks, Inc. Method and apparatus for efficient management of XML documents
US20030018657A1 (en) * 2001-07-18 2003-01-23 Imation Corp. Backup of data on a network
CN1294514C (zh) * 2001-08-20 2007-01-10 信息中心科技有限公司 高效的计算机文件备份系统和方法
US20040015408A1 (en) * 2002-07-18 2004-01-22 Rauen Philip Joseph Corporate content management and delivery system
US7827495B2 (en) * 2003-09-02 2010-11-02 Research In Motion Limited Method and data structure for user interface customization
US8510331B1 (en) * 2004-10-28 2013-08-13 Storediq, Inc. System and method for a desktop agent for use in managing file systems
US7844445B2 (en) * 2005-10-12 2010-11-30 Storage Appliance Corporation Automatic connection to an online service provider from a backup system
US20070179926A1 (en) * 2006-01-27 2007-08-02 Giga-Byte Communications Inc. Data backup and restoration methods
US8806476B2 (en) * 2006-03-14 2014-08-12 International Business Machines Corporation Implementing a software installation process
US20070250645A1 (en) * 2006-04-20 2007-10-25 Robert Meadows Mobile phone data backup system
US20080125877A1 (en) * 2006-09-12 2008-05-29 Fisher-Rosemount Systems, Inc. Process data collection system configuration for process plant diagnostics development
CN101478730B (zh) * 2007-11-12 2011-05-18 华为技术有限公司 数据交换方法、系统及设备
CN101394635A (zh) * 2008-10-21 2009-03-25 宇龙计算机通信科技(深圳)有限公司 一种移动终端及其信息删除方法和信息删除系统
CN101707751A (zh) * 2009-05-22 2010-05-12 北京优势智汇信息技术有限责任公司 Ota标准卡行业应用菜单字节码自动转换方法
US8810684B2 (en) * 2010-04-09 2014-08-19 Apple Inc. Tagging images in a mobile communications device using a contacts list

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004312317A (ja) * 2003-04-07 2004-11-04 Murata Mach Ltd 通信端末装置
CN101022612A (zh) * 2006-02-16 2007-08-22 杭州波导软件有限公司 一种移动终端的用户信息数据备份方法
CN101720140A (zh) * 2009-12-21 2010-06-02 宇龙计算机通信科技(深圳)有限公司 一种移动终端数据的备份与恢复方法、系统及移动终端

Also Published As

Publication number Publication date
CN101945156A (zh) 2011-01-12
CN101945156B (zh) 2014-04-16
US9323822B2 (en) 2016-04-26
EP2613506A4 (en) 2016-07-20
EP2613506A1 (en) 2013-07-10
US20130018846A1 (en) 2013-01-17

Similar Documents

Publication Publication Date Title
WO2012028080A1 (zh) 一种移动终端数据信息的备份方法及装置
WO2012028079A1 (zh) 一种移动终端备份数据的导入方法及装置
WO2013189231A1 (zh) 一种基于图片脸部识别进行解锁的方法、系统及电子设备
WO2015037851A1 (ko) 스크린 샷 처리 디바이스 및 그 방법
WO2013131444A1 (zh) 分享内容的方法、终端、服务器及系统、计算机存储介质
WO2013143331A1 (zh) 一种基于移动终端浏览器的用户信息分享方法及装置
WO2016192270A1 (zh) 媒体文件的快速启播方法及装置
WO2020050656A1 (en) Method and device for processing file
WO2013117125A1 (zh) 添加好友的方法及装置、存储介质
WO2020224247A1 (zh) 基于区块链的数据溯源方法、装置、设备及可读存储介质
WO2019024530A1 (zh) 一种投保方法、设备及存储介质
EP3241129A1 (en) User terminal, service providing apparatus, driving method of user terminal, driving method of service providing apparatus, and encryption indexing-based search system
WO2015085765A1 (zh) 推送资讯信息的方法和智能终端
WO2015144089A1 (en) Application recommending method and apparatus
WO2017071352A1 (zh) 密码的推送方法、推送系统及终端设备
WO2017152603A1 (zh) 显示方法及装置
WO2018040421A1 (zh) 资源共享方法、装置及系统
WO2019085301A1 (zh) 座机未接来电的反馈方法、装置、设备及可读存储介质
WO2017016310A1 (zh) 遥控功能数据动态配置的方法和装置
EP3472749A1 (en) A primary device, an accessory device, and methods for processing operations on the primary device and the accessory device
WO2017190451A1 (zh) 图片推送方法和装置
WO2016206223A1 (zh) 截图的方法及系统
WO2019080401A1 (zh) 脚本语句转换方法、装置及计算机可读存储介质
WO2017111218A1 (en) Method for file management and an electronic device thereof
WO2017049948A1 (zh) 图片共享方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11821106

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2011821106

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13637349

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE