CN106528347B - A kind of data back up method and mobile terminal - Google Patents

A kind of data back up method and mobile terminal Download PDF

Info

Publication number
CN106528347B
CN106528347B CN201611002863.8A CN201611002863A CN106528347B CN 106528347 B CN106528347 B CN 106528347B CN 201611002863 A CN201611002863 A CN 201611002863A CN 106528347 B CN106528347 B CN 106528347B
Authority
CN
China
Prior art keywords
mobile terminal
emmc
terminal device
transmission channel
data transmission
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.)
Expired - Fee Related
Application number
CN201611002863.8A
Other languages
Chinese (zh)
Other versions
CN106528347A (en
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 CN201611002863.8A priority Critical patent/CN106528347B/en
Publication of CN106528347A publication Critical patent/CN106528347A/en
Application granted granted Critical
Publication of CN106528347B publication Critical patent/CN106528347B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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/1456Hardware arrangements for backup

Abstract

The embodiment of the invention provides a kind of data back up method and mobile terminals, which comprises when mobile terminal breaks down, starts embedded multi-media card EMMC;Establish the preliminary data transmission channel between the EMMC and terminal device;By the preliminary data transmission channel by the data backup to be backed up in the mobile terminal to the terminal device.The data in mobile terminal can be backuped into terminal device by establishing preliminary data transmission channel between EMMC and terminal device when mobile terminal breaks down through the embodiment of the present invention.

Description

A kind of data back up method and mobile terminal
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of data back up method and mobile terminal.
Background technique
With the fast development of information technology, mobile terminal (such as mobile phone, tablet computer) uses more more and more universal, shifting A large amount of valuable datas are also saved in dynamic terminal.But user is during using mobile terminal, it may occur that following situation, For example, in the case where that cannot be switched on, it is more likely that cause to lose user's significant data (such as address list, photo, file etc.) It loses.
Summary of the invention
The embodiment of the invention provides a kind of data back up method and mobile terminal, can when mobile terminal breaks down, Realize data backup.
First aspect of the embodiment of the present invention provides a kind of data back up method, comprising:
When mobile terminal breaks down, start embedded multi-media card EMMC;
Establish the preliminary data transmission channel between the EMMC and terminal device;
The data backup to be backed up in the mobile terminal to the terminal is set according to the preliminary data transmission channel It is standby.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Start unit, for starting embedded multi-media card EMMC when mobile terminal breaks down;
Unit is established, the preliminary data transmission channel for establishing between the EMMC and terminal device;
Backup units, for by the preliminary data transmission channel by the data backup to be backed up in the mobile terminal To the terminal device.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute The some or all of step of method described in first aspect.
The implementation of the embodiments of the present invention has the following beneficial effects:
As can be seen that through the embodiment of the present invention, when mobile terminal breaks down, starting embedded multi-media card EMMC establishes the preliminary data transmission channel between EMMC and terminal device, by preliminary data transmission channel by mobile terminal In data backup to be backed up to terminal device.So, it is ensured that, will be in mobile terminal even if breaking down in mobile terminal Data backup is to other terminal devices.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of network architecture schematic diagram of data backup system provided in an embodiment of the present invention;
Fig. 2 is a kind of first embodiment flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 3 is a kind of second embodiment flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 4 a is a kind of schematic structural diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 4 b is the structural schematic diagram for establishing unit of mobile terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 4 c is the structural schematic diagram of the backup units of mobile terminal described in Fig. 4 a provided in an embodiment of the present invention;
Fig. 4 d is the another structural representation of the backup units of mobile terminal described in Fig. 4 a provided in an embodiment of the present invention Figure;
Fig. 5 is a kind of schematic structural diagram of the second embodiment of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.It is identical that each position in the description shows that the phrase might not be each meant Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal or terminal device described in the embodiment of the present invention may include smart phone (such as Android hand Machine, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or wearable device etc., above-mentioned is only citing, and non exhaustive, includes but unlimited In above-mentioned mobile terminal or terminal device.Certainly, the terminal device mentioned in the embodiment of the present invention can be with mobile terminal phase Together, for example, terminal device is mobile phone, mobile terminal is another mobile phone;Terminal device can also be not identical as mobile terminal, for example, Terminal device is mobile phone, and mobile terminal is tablet computer.
Data transmission channel described in the embodiment of the present invention may include, but are not limited to: hot spot, bluetooth, infrared, wireless Fidelity (Wireless Fidelity, Wi-Fi), wired etc. specifically start hot spot, terminal device connection in mobile terminal The mobile terminal can establish data transmission channel between the two;Start bluetooth in mobile terminal, terminal device connects movement end End, can establish data transmission channel between the two;Infrared in mobile terminal starting, terminal device connects the mobile terminal, the two Between can establish data transmission channel;It is all connected with a certain Wi-Fi in mobile terminal, terminal device is indirectly connected with the mobile terminal, Data transmission channel can be established between the two;By being connected through a wired connection between mobile terminal and terminal device, between the two Data transmission channel can be established.
It should be noted that embedded multi-media card (Embedded Multi Media Card, EMMC) is multimedia card Ordered by (Multi Media Card, MMC) association, primarily directed to the embedded storage of the products such as mobile phone or tablet computer Device standard specification.A clear superiority of EMMC is to be integrated with a controller in a package, it provides standard interface and manages Flash memory so that cell phone manufacturer can be absorbed in the other parts of product development, and shortens the time that product is released to market.These Feature is for wishing by reducing for NAND (NAND flash memory) supplier that is lithographic dimensioned and reducing cost, together Sample it is important.
It taking the mobile phone as an example and is illustrated, EMMC module for storing data is very small and exquisite and integration degree is very high, It and is in interior of mobile phone, in most cases, even if mobile phone itself is broken, but EMMC itself and the number wherein stored According to all still intact.Therefore, data backup can be realized based on EMMC in the embodiment of the present invention.
Referring to Figure 1, Fig. 1 is that the embodiment of the invention provides a kind of network architecture of data backup system, the network structures Frame can include: mobile terminal and terminal device.Wherein, wireless fidelity network, shifting can be passed through between mobile terminal and terminal device Dynamic communication network (such as 2G, 3G, 4G, 5G), cable network establish communication connection.For example, when mobile terminal breaks down, Start embedded multi-media card EMMC, establishes the preliminary data transmission channel between EMMC and terminal device, pass through preliminary data Transmission channel is by the data backup to be backed up in mobile terminal to terminal device.
Based on the network architecture described in Fig. 1, referring to Fig. 2, being a kind of data backup side provided in an embodiment of the present invention The first embodiment flow diagram of method.Data back up method as described in this embodiment, comprising the following steps:
201, when mobile terminal breaks down, start embedded multi-media card EMMC.
Wherein, mobile terminal can be breaks down in start process, is also possible to break down in use (for example, mobile terminal water inlet, mobile terminal have been fallen, have been crashed), for example, the screen of mobile terminal can not normally be shown.Cause And mobile terminal can start EMMC when breaking down.
Optionally, when mobile terminal breaks down, whether detectable EMMC is damaged, can if EMMC is not damaged Start EMMC, if EMMC loses, can attempt to carry out self- recoverage to EMMC, if self- recoverage success, can start EMMC.
Optionally, mobile terminal can also carry out fault detection, if detect the mobile terminal break down and EMMC simultaneously When non-failure, EMMC can be started.
Optionally, the process of above-mentioned starting EMMC can be implemented as follows: fine in the operating system of mobile terminal In the case where operation, mobile terminal can drive spare driver to start EMMC.Certainly, the operating system of mobile terminal without In the case that method is run, EMMC can start the EMMC by self-starting module, so, it is ensured that break down in mobile terminal When, EMMC can be started in time.
202, the preliminary data transmission channel between the EMMC and terminal device is established.
Wherein it is possible to be attached by EMMC and other terminal devices, the number of the attachable terminal device of EMMC can It is for 1 or multiple, in this way, can be by establishing preliminary data transmission channel between EMMC and terminal device.
Optionally, mobile terminal can be established by universal serial bus (Universal Serial Bus, USB) interface Preliminary data transmission channel between EMMC and terminal device.Certainly, the number of USB interface can be one or more, in USB When interface number is 1, the preliminary data transmission between the EMMC of the mobile terminal and terminal device can be established by USB line Channel.When USB interface number is multiple, can be established between the EMMC of the mobile terminal and terminal device by a plurality of USB line At least one preliminary data transmission channel.It is of course also possible to by multiple USB interfaces establish the EMMC of a mobile terminal with Preliminary data transmission channel between multiple terminal devices, for example, can be corresponding between a mobile terminal and a terminal device One preliminary data transmission channel.
Still optionally further, in the case where the Wi-Fi module of mobile terminal not yet breaks down, mobile terminal can also be with The preliminary data transmission channel between EMMC and terminal device is established by Wi-Fi module.
Still optionally further, in the case where the bluetooth module of mobile terminal not yet breaks down, mobile terminal can also be with The preliminary data transmission channel between EMMC and terminal device is established by bluetooth module.
It optionally, can also include other steps between step 202 and step 203, specific as follows:
Whether the Wi-Fi module of detectable mobile terminal can be used, if the Wi-Fi module of the mobile terminal is available, start Wi-Fi, by establishing another preliminary data transmission channel between the Wi-Fi module and terminal device.
Wherein, after preliminary data transmission channel is established between EMMC and terminal device, terminal device starting can be led to The Wi-Fi module of mobile terminal, certainly, in the case where the operating system of mobile terminal is still run, mobile terminal can be driven Spare driver is with Wi-Fi module.Certainly, in the case where the operating system of mobile terminal is unable to run, Wi-Fi module can Start the Wi-Fi module by self-triggered program, so, it is ensured that when mobile terminal breaks down, can star Wi-Fi mould Block.
It optionally, can also include other steps between step 202 and step 203, specific as follows:
Whether the bluetooth module of detectable mobile terminal can be used, if the bluetooth module of the mobile terminal is available, start indigo plant Tooth, by establishing another preliminary data transmission channel between the bluetooth module and terminal device.
Wherein, after preliminary data transmission channel is established between EMMC and terminal device, terminal device starting can be led to The bluetooth module of mobile terminal, certainly, in the case where the operating system of mobile terminal is still run, mobile terminal can drive standby With driver with Wi-Fi module.Certainly, in the case where the operating system of mobile terminal is unable to run, Wi-Fi module can lead to It crosses self-triggered program and starts the Wi-Fi module, so, it is ensured that when mobile terminal breaks down, can star Wi-Fi mould Block.
In this way, in step 203, a plurality of preliminary data transmission channel can be used to terminal device Backup Data.For example, can It is passed by the preliminary data transmission channel between EMMC and terminal device and the preliminary data between Wi-Fi module and terminal device Defeated channel is to terminal device Backup Data.Alternatively, the preliminary data transmission channel and indigo plant between EMMC and terminal device can be passed through Preliminary data transmission channel between tooth module and terminal device is to terminal device Backup Data.Alternatively, EMMC and end can be passed through The preliminary data transmission channel and bluetooth between preliminary data transmission channel, Wi-Fi module and terminal device between end equipment Preliminary data transmission channel between module and terminal device is to terminal device Backup Data.
203, by the preliminary data transmission channel by the data backup to be backed up in the mobile terminal to the end End equipment.
Wherein, mobile terminal can be on the basis of using preliminary data transmission channel, using multithreading or multi-process Mode is by the data backup to be backed up in mobile terminal to terminal device.
Optionally, step 203 may include following steps:
31) data to be backed up in the mobile terminal, are divided into multiple data blocks;
32), by the preliminary data transmission channel, and the multiple data block is backed up to using the multiple thread The terminal device, wherein the corresponding thread of each data block.
Wherein, in step 31, data to be backed up can be divided into multiple data blocks according to memory size by mobile terminal, certainly, Data to be backed up can also be divided into multiple data blocks according to the number of data by mobile terminal, alternatively, mobile terminal can according to Backup Data is divided into multiple data blocks according to data importance.
Optionally, step 203 may include following steps:
Data to be backed up in the mobile terminal are divided into multiple data blocks, using multiple processes by the multiple number Terminal device is backed up to according to block, wherein the corresponding process of each data block.Wherein, mobile terminal can press data to be backed up It is divided into multiple data blocks according to memory size, certainly, data to be backed up can also be divided into more by mobile terminal according to the number of data A data block, alternatively, mobile terminal can be divided into multiple data blocks according to data importance according to data to be backed up.In this way, can lead to Preliminary data transmission channel is crossed, and uses multiple processes, data to be backed up are backed up into terminal device by mobile terminal.
Optionally, before implementation steps 31, mobile terminal can detect the memory size of data to be backed up, if this is to be backed up The memory size of data is less than preset threshold, then step 31 is not executed, if the memory size of the data to be backed up is greater than or equal to The preset threshold, thens follow the steps 31, in this way, Backup Data can not be treated when the memory size of data to be backed up is smaller Data backup is carried out using multithreading, but when the memory size of data to be backed up is larger, it is spare by least one Data transmission channel, and treat Backup Data and data backup is carried out using multithreading, in this way, can neatly guarantee to treat standby Part data carry out quick backup.
Optionally, above-mentioned steps 203 may include following steps:
33) current electric quantity of the mobile terminal, is determined;
34), judge whether the mobile terminal is in charged state;
35), when the mobile terminal is not in charged state, the maximum data that the current electric quantity can back up is assessed Amount;
36) target data corresponding to maximum amount of data described in the data to be backed up, is determined;
37) target data, is backed up to by the terminal device by the preliminary data transmission channel.
It wherein, is that mobile terminal is in charged state in the judging result of step 34, then directly by data backup to be backed up To terminal device.It is that mobile terminal is not in charged state in the judging result of step 34, step 35 can be performed, i.e., can then assess The maximum amount of data that current electric quantity can back up specifically can obtain history duplicated record, during determining Backup Data, electricity Amount consumption 1%, the average amount backed up, in this way, the maximum amount of data that current electric quantity can back up can be evaluated, in step In 36, the maximum target data of the maximum amount of data can be selected from data to be backed up, if maximum amount of data be greater than or equal to The memory size of Backup Data, then directly by data backup to be backed up to terminal device, if maximum amount of data is less than number to be backed up According to memory size, then selected from data to be backed up with the matched a part of data of maximum amount of data as target data, so Afterwards, target data can be backed up into terminal device by preliminary data transmission channel.
It optionally, can also include as follows when assessing the maximum amount of data that current electric quantity can back up in above-mentioned steps 35 Situation determines the difference between current electric quantity and the minimum power threshold, wherein this is most for example, minimum power threshold can be obtained Low battery threshold value is less than current electric quantity, the maximum amount of data that can be backed up according to the difference evaluation current electric quantity.Wherein, this is minimum Power threshold can be used to ensure that mobile terminal is standby in data by system default or user's self-setting, the minimum power threshold After part is complete, mobile terminal is unlikely to shut down, and user can also carry out other operations.
It should be noted that the embodiment of the present invention, only outlines when mobile terminal breaks down, using EMMC reality Existing data backup is not yet broken down in mobile terminal certainly, also be can use EMMC and is realized data backup.
As can be seen that through the embodiment of the present invention, when mobile terminal breaks down, starting embedded multi-media card EMMC establishes the preliminary data transmission channel between EMMC and terminal device, by preliminary data transmission channel by mobile terminal In data backup to be backed up to terminal device.So, it is ensured that even if breaking down in mobile terminal, also can use EMMC, by the data backup in mobile terminal to other terminal devices.
Consistent with the abovely, referring to Fig. 3, for a kind of second implementation of data back up method provided in an embodiment of the present invention Example flow diagram.Data back up method as described in this embodiment, comprising the following steps:
301, when mobile terminal breaks down, start embedded multi-media card EMMC.
302, connection request is sent to terminal device by USB interface.
Wherein, after mobile terminal passes through and connects between USB interface and terminal device, it can send and connect to terminal device Request, the connection request is for requesting access terminal equipment.
303, the first authentication information that the terminal device is sent is received.
Wherein, the first authentication information can are as follows: finger print information, iris information, numerical ciphers, pattern-information, voice letter Breath, touch information (dynamics of pressing touch screen, the time for pressing touch screen, the number for pressing touch screen etc.).
304, first authentication information is matched with preset second authentication information.
In the case that wherein, the system of mobile terminal can also operate normally (for example, the display screen of mobile terminal is broken, nothing Method is normally shown, but system operates normally), which can be by the first authentication information and preset second authentication Information is matched.If the systemic breakdown of mobile terminal, mobile terminal can be using EMMC by the first authentication information and pre- If the second authentication information matched.If the first authentication information is matched into preset second authentication information When function, 305 are thened follow the steps, if the first authentication information and preset second authentication information when it fails to match, mention Show that user re-enters the first authentication information.
305, in first authentication information and the second authentication information successful match, described in foundation Preliminary data transmission channel between EMMC and the terminal device.
306, by the preliminary data transmission channel by the data backup to be backed up in the mobile terminal to the end End equipment.
Wherein, above-mentioned steps 301, the specific embodiment of step 305-306 can refer to data backup side described in Fig. 2 The step 201-203 of method, details are not described herein.
As can be seen that through the embodiment of the present invention, when mobile terminal breaks down, starting embedded multi-media card EMMC, and by USB interface to terminal device transmission connection request, the first authentication information that receiving terminal apparatus is sent, When first authentication information is verified, the preliminary data transmission channel between EMMC and terminal device is established, is passed through Preliminary data transmission channel is by the data backup to be backed up in mobile terminal to terminal device.So, it is ensured that even if in movement Terminal breaks down, and not only can use EMMC, by the data backup in mobile terminal to other terminal devices, moreover, can protect The safety for demonstrate,proving other terminal devices access, in this way, the safety of data backup can be improved.
Consistent with the abovely, specific as follows the following are the device for implementing above-mentioned data back up method:
Fig. 4 a is please referred to, is a kind of schematic structural diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention.This Mobile terminal described in embodiment, comprising: start unit 401 establishes unit 402 and backup units 403, specific as follows:
Start unit 401, for starting embedded multi-media card EMMC when mobile terminal breaks down;
Unit 402 is established, the preliminary data transmission channel for establishing between the EMMC and terminal device;
Backup units 403, for by the preliminary data transmission channel by the data to be backed up in the mobile terminal Back up to the terminal device.
Optionally, above-mentioned unit 402 of establishing is specifically used for:
The preliminary data transmission channel between the EMMC and terminal device is established by general-purpose serial bus USB interface.
Optionally, as shown in Figure 4 b, mobile terminal described in Fig. 4 a establishes unit 402 can include: interactive module 4021, matching module 4022 and module 4023 is established, specific as follows:
Interactive module 4021, for sending connection request to the terminal device by the USB interface;
The interactive module 4021, is also used to:
Receive the first authentication information that the terminal device is sent;
Matching module 4022 is used for first authentication information and the progress of preset second authentication information Match;
Establish module 4023, for the matching result in the matching module 4022 be first authentication information with When the second authentication information successful match, the preliminary data transmission established between the EMMC and the terminal device is logical Road.
Optionally, such as Fig. 4 c, the backup units 403 of mobile terminal described in Fig. 4 a can include: 4031 He of division module First backup module 4032, specific as follows:
Division module 4031, for the data to be backed up in the mobile terminal to be divided into multiple data blocks;
First backup module 4032 is used for through the preliminary data transmission channel, and uses the multiple thread by institute It states multiple data blocks and backs up to the terminal device, wherein the corresponding thread of each data block.
Optionally, such as Fig. 4 d, the backup units 403 of mobile terminal described in Fig. 4 a can include: determining module 4033 is sentenced Disconnected module 4034, evaluation module 4035 and the second backup module 4036, specific as follows:
Determining module 4033, for determining the current electric quantity of the mobile terminal;
Judgment module 4034, for judging whether the mobile terminal is in charged state;
Evaluation module 4035 is that the mobile terminal is not in charging for the judging result in the judgment module 4034 When state, the maximum amount of data that the current electric quantity can back up is assessed;
The determining module 4033, is also used to:
Determine target data corresponding to maximum amount of data described in the data to be backed up;
Second backup module 4036, it is described for being backed up to the target data by the preliminary data transmission channel Terminal device.
As can be seen that mobile terminal described in through the embodiment of the present invention, can open when the mobile terminal breaks down Dynamic embedded multi-media card EMMC, establishes the preliminary data transmission channel between EMMC and terminal device, is passed by preliminary data Defeated channel is by the data backup to be backed up in mobile terminal to terminal device.So, it is ensured that even if there is event in mobile terminal Barrier, also can use EMMC, by the data backup in mobile terminal to other terminal devices.
Consistent with the abovely, referring to Fig. 5, being a kind of second embodiment knot of mobile terminal provided in an embodiment of the present invention Structure schematic diagram.Mobile terminal as described in this embodiment, comprising: at least one input equipment 1000;At least one output is set Standby 2000;At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, Processor 3000 and memory 4000 are connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely touch panel, physical button or mouse.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high speed RAM memory, can also be nonvolatile storage (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store a set of program code, above-mentioned input equipment 1000, defeated Equipment 2000 and processor 3000 are used to call the program code stored in memory 4000 out, perform the following operations:
Above-mentioned processor 3000, is used for:
When mobile terminal breaks down, start embedded multi-media card EMMC;
Establish the preliminary data transmission channel between the EMMC and terminal device;
The data backup to be backed up in the mobile terminal to the terminal is set by the preliminary data transmission channel It is standby.
Optionally, above-mentioned processor 3000 establishes the preliminary data transmission channel between the EMMC and terminal device, packet It includes:
The preliminary data transmission channel between the EMMC and terminal device is established by general-purpose serial bus USB interface.
Optionally, above-mentioned processor 3000 by general-purpose serial bus USB interface establish the EMMC and terminal device it Between preliminary data transmission channel, comprising:
Connection request is sent to the terminal device by the USB interface;
Receive the first authentication information that the terminal device is sent;
First authentication information is matched with preset second authentication information;
In first authentication information and when the second authentication information successful match, establish the EMMC with Preliminary data transmission channel between the terminal device.
Optionally, above-mentioned processor 3000 will be to be backed up in the mobile terminal by the preliminary data transmission channel Data backup is to the terminal device, comprising:
Data to be backed up in the mobile terminal are divided into multiple data blocks;
By the preliminary data transmission channel, and it is described to use the multiple thread to back up to the multiple data block Terminal device, wherein the corresponding thread of each data block.
Optionally, above-mentioned processor 3000 will be to be backed up in the mobile terminal by the preliminary data transmission channel Data backup is to the terminal device, comprising:
Determine the current electric quantity of the mobile terminal;
Judge whether the mobile terminal is in charged state;
When the mobile terminal is not in charged state, the maximum amount of data that the current electric quantity can back up is assessed;
Determine target data corresponding to maximum amount of data described in the data to be backed up;
The target data is backed up into the terminal device by the preliminary data transmission channel.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include some or all of any data back up method recorded in above method embodiment step when executing Suddenly.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware Part can also use other distribution forms, such as pass through the wired or wireless telecommunication system of Internet or other.
The present invention be referring to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions To general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case where bright spirit and scope, it can be carry out various modifications and is combined.Correspondingly, the specification and drawings are only institute The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair Change, change, combining or equivalent.Obviously, those skilled in the art various changes and modifications can be made to the invention without It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of data back up method characterized by comprising
When mobile terminal breaks down, whether detection embedded multi-media card EMMC has been damaged, if it is not, described in starting EMMC, conversely, if the EMMC is damaged, it tries self- recoverage is carried out to the EMMC, if self- recoverage success, described in starting EMMC;
Establish the preliminary data transmission channel between the EMMC and terminal device;
By a plurality of preliminary data transmission channel by the data backup to be backed up in the mobile terminal to the terminal device;
Wherein, it is described by a plurality of preliminary data transmission channel by the data backup to be backed up in the mobile terminal to the end End equipment, comprising:
Determine the current electric quantity of the mobile terminal;
Judge whether the mobile terminal is in charged state;
When the mobile terminal is not in charged state, the maximum amount of data that the current electric quantity can back up is assessed, specifically Are as follows: obtain minimum power threshold, determine the difference between the current electric quantity and the minimum power threshold, wherein it is described most Low battery threshold value is less than the current electric quantity, the maximum data that can be backed up according to current electric quantity described in the difference evaluation Amount;
Determine target data corresponding to maximum amount of data described in the data to be backed up;
The target data is backed up into the terminal device by a plurality of preliminary data transmission channel;
Wherein, the preliminary data transmission channel established between the EMMC and terminal device, comprising:
The preliminary data transmission channel between the EMMC and terminal device is established by general-purpose serial bus USB interface, in USB When interface number is multiple, by a plurality of USB line, establish a plurality of between the EMMC of the mobile terminal and the terminal device Preliminary data transmission channel;
The method also includes: in the case where the Wi-Fi module of the mobile terminal not yet breaks down, pass through the Wi- Fi module establishes the preliminary data transmission channel between the EMMC and the terminal device;
In the case where the bluetooth module of the mobile terminal not yet breaks down, the EMMC is established by the bluetooth module Preliminary data transmission channel between the terminal device.
2. the method according to claim 1, wherein described by described in the foundation of general-purpose serial bus USB interface Preliminary data transmission channel between EMMC and terminal device, comprising:
Connection request is sent to the terminal device by the USB interface;
Receive the first authentication information that the terminal device is sent;
First authentication information is matched with preset second authentication information;
In first authentication information and when the second authentication information successful match, establish the EMMC with it is described Preliminary data transmission channel between terminal device.
3. method according to claim 1 or 2, which is characterized in that it is described by a plurality of preliminary data transmission channel by institute Data backup to be backed up in mobile terminal is stated to the terminal device, comprising:
Data to be backed up in the mobile terminal are divided into multiple data blocks;
The multiple data block is backed up into the terminal by a plurality of preliminary data transmission channel, and using multiple threads Equipment, wherein each corresponding thread of the data block.
4. a kind of mobile terminal characterized by comprising
Start unit, for detecting whether embedded multi-media card EMMC has damaged when mobile terminal breaks down, if It is no, start the EMMC, conversely, if the EMMC is damaged, it tries self- recoverage is carried out to the EMMC, if self- recoverage success, Then start the EMMC;
Unit is established, the preliminary data transmission channel for establishing between the EMMC and terminal device;
Backup units, for by a plurality of preliminary data transmission channel by the data backup to be backed up in the mobile terminal to institute State terminal device;
Wherein, described by a plurality of preliminary data transmission channel by the data backup to be backed up in the mobile terminal to described In terms of terminal device, the mobile terminal is specifically used for:
Determine the current electric quantity of the mobile terminal;
Judge whether the mobile terminal is in charged state;
When the mobile terminal is not in charged state, the maximum amount of data that the current electric quantity can back up is assessed, specifically Are as follows: obtain minimum power threshold, determine the difference between the current electric quantity and the minimum power threshold, wherein it is described most Low battery threshold value is less than the current electric quantity, the maximum data that can be backed up according to current electric quantity described in the difference evaluation Amount;
Determine target data corresponding to maximum amount of data described in the data to be backed up;
The target data is backed up into the terminal device by a plurality of preliminary data transmission channel;
Wherein, the unit of establishing is specifically used for:
The preliminary data transmission channel between the EMMC and terminal device is established by general-purpose serial bus USB interface, in USB When interface number is multiple, by a plurality of USB line, establish a plurality of between the EMMC of the mobile terminal and the terminal device Preliminary data transmission channel;
The mobile terminal also particularly useful for: in the case where the Wi-Fi module of the mobile terminal not yet breaks down, pass through The Wi-Fi module establishes the preliminary data transmission channel between the EMMC and the terminal device;
In the case where the bluetooth module of the mobile terminal not yet breaks down, the EMMC is established by the bluetooth module Preliminary data transmission channel between the terminal device.
5. mobile terminal according to claim 4, which is characterized in that the unit of establishing includes:
Interactive module, for sending connection request to the terminal device by the USB interface;
The interactive module, is also used to:
Receive the first authentication information that the terminal device is sent;
Matching module, for matching first authentication information with preset second authentication information;
Module is established, is first authentication information and second identity for the matching result in the matching module When verification information successful match, the preliminary data transmission channel between the EMMC and the terminal device is established.
6. mobile terminal according to claim 4 or 5, which is characterized in that the backup units include:
Division module, for the data to be backed up in the mobile terminal to be divided into multiple data blocks;
First backup module is used for through a plurality of preliminary data transmission channel, and uses multiple threads by the multiple data block Back up to the terminal device, wherein each corresponding thread of the data block.
7. a kind of mobile terminal characterized by comprising
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute such as power Benefit requires method described in 1 to 3 any one.
8. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1.
CN201611002863.8A 2016-11-14 2016-11-14 A kind of data back up method and mobile terminal Expired - Fee Related CN106528347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611002863.8A CN106528347B (en) 2016-11-14 2016-11-14 A kind of data back up method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611002863.8A CN106528347B (en) 2016-11-14 2016-11-14 A kind of data back up method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106528347A CN106528347A (en) 2017-03-22
CN106528347B true CN106528347B (en) 2019-08-20

Family

ID=58353232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611002863.8A Expired - Fee Related CN106528347B (en) 2016-11-14 2016-11-14 A kind of data back up method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106528347B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11345467B2 (en) * 2017-04-07 2022-05-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Data transmission method, and sending end device
CN107203438A (en) * 2017-05-04 2017-09-26 惠州Tcl移动通信有限公司 The method of automated back-up, storage device and mobile terminal after screen damage
WO2019101013A1 (en) * 2017-11-21 2019-05-31 深圳市元创时代科技有限公司 Data back up method, device and system
CN108966209A (en) * 2018-07-16 2018-12-07 佛山长意云信息技术有限公司 A kind of date storage method, device and movable storage device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302673A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Information backup method and device and terminal
CN105786654A (en) * 2016-03-01 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302673A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Information backup method and device and terminal
CN105786654A (en) * 2016-03-01 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment

Also Published As

Publication number Publication date
CN106528347A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106528347B (en) A kind of data back up method and mobile terminal
CN105117663B (en) The encrypted object display methods and device of a kind of application
US8099636B2 (en) System and method for protecting memory stacks using a debug unit
CN104679387B (en) A kind of method for protecting privacy and terminal
US20150212918A1 (en) Reminding apparatus in data processing device, reminding method and storage medium
CN104809402B (en) A kind of information fuzzy display methods and terminal
CN103699298A (en) Information processing method and electronic equipment
CN106201288A (en) Storage method, device and the mobile terminal of a kind of finger print information
CN105117137A (en) Photographing method and device used in terminal standby state and mobile terminal
CN105224875A (en) A kind of secure startup system of terminal and method
CN103559435A (en) Method and device for controlling debugging ports of terminal equipment
CN105159726A (en) Method and apparatus for quickly starting camera function
CN105426742B (en) Mobile terminal connects computer method and device
CN104769601A (en) Method for recognition of user identity and electronic equipment
CN107370874A (en) Startup method, mobile terminal and the storage medium of application
CN101047701B (en) System and method for ensuring safety operation of applied program
CN103902011A (en) Electronic device controlling method and electronic device
CN105224403A (en) A kind of interruption processing method and device
WO2016000323A1 (en) Method for operating soft keyboard, terminal and computer readable storage medium
CN104881307A (en) Download implementation method and device
CN107295192B (en) Unlocking control method and related product
CN106300252B (en) A kind of electrical leakage detecting method, device and terminal device
CN109885356A (en) ADB debugs port open method, apparatus, Android device and readable storage medium storing program for executing
CN104462953B (en) A kind of information processing method and electronic equipment
CN113467981A (en) Exception handling method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190820

CF01 Termination of patent right due to non-payment of annual fee