CN110377458A - Data reconstruction method, mobile terminal and computer readable storage medium - Google Patents
Data reconstruction method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN110377458A CN110377458A CN201910683512.5A CN201910683512A CN110377458A CN 110377458 A CN110377458 A CN 110377458A CN 201910683512 A CN201910683512 A CN 201910683512A CN 110377458 A CN110377458 A CN 110377458A
- Authority
- CN
- China
- Prior art keywords
- data service
- application program
- data
- service process
- desktop host
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 262
- 230000008569 process Effects 0.000 claims abstract description 214
- 230000006854 communication Effects 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 claims abstract description 24
- 238000011084 recovery Methods 0.000 claims abstract description 22
- 239000011230 binding agent Substances 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 claims description 4
- 210000001367 artery Anatomy 0.000 claims 2
- 210000003462 vein Anatomy 0.000 claims 2
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 238000010295 mobile communication Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Abstract
The invention discloses a kind of data reconstruction methods, this method comprises: one data service processes of creation;When the starting of desktop host process, while starting the data service process;Establish the communication between the data service process and the desktop host process and each application program;The data service process receives the pulse information that each application program reports, and saves and is uploaded to the desktop host process;When the desktop host process is restarted, the pulse information that each application program reports is obtained from the data service process.The embodiment of the invention also discloses a kind of mobile terminal and computer readable storage mediums.Thereby, it is possible to directly obtain the pulse information reported before each application program from the data service process when desktop host process is restarted, it to carry out data recovery, ensure that the serious forgiveness and stability of multipad, promote user experience.
Description
Technical field
The present invention relates to technical field of data processing more particularly to a kind of data reconstruction methods, mobile terminal and computer
Readable storage medium storing program for executing.
Background technique
Under normal circumstances, in the terminal, there are two types of the modes that desktop and other application interact: one is pass through some
It actively goes to inquire its state using the ContentProvider component of offer, another kind is some application to broadcast isopulse side
Formula is reported to desktop.For example, the open and close of alarm clock open and close, control centre's music, sport health in Intelligent bracelet, all
It is to report to desk interface process in a manner of isopulse to broadcast.But this application data to broadcast are reported to desktop
Mode, after restarting when encounter desktop crash situations such as, the application data reported before will lose, and can not restore data,
It may cause display mistake.For example, the Intelligent bracelet occurs after crash restarts in desktop process, due to the application reported before
Data have been lost, and the switch state of alarm clock, music, sport health cannot be restored.Such case is needed by user in desktop
Each application is configured again after restarting, the usage experience of user can be seriously affected.
Summary of the invention
It is a primary object of the present invention to propose a kind of data reconstruction method, mobile terminal and computer-readable storage medium
Matter, it is intended to solve the technical issues of how restoring after desktop is restarted using data.
To achieve the above object, a kind of data reconstruction method provided by the invention, the method comprising the steps of:
Create a data service processes;
When the starting of desktop host process, while starting the data service process;
Establish the communication between the data service process and the desktop host process and each application program;
The data service process receives the pulse information that each application program reports, and saves and is uploaded to the desktop master
Process;And
When the desktop host process is restarted, obtain what each application program reported from the data service process
The pulse information.
Optionally, the step of one data service processes of the creation include:
For each application program on desktop, corresponding radio receiver is created, is reported with receiving each application program
Pulse information;
The controller for creating the radio receiver of each application program is led to as a channel with data service process
Letter;
Create the data service process.
Optionally, described when the starting of desktop host process, while the step of starting the data service process includes:
When desktop host process starting, start the data service process, and by described in controller starting
Radio receiver;
The Android Interface Definition Language AIDL file for creating the data service process, creates the desktop host process
AIDL file.
Optionally, described to establish leading between the data service process and the desktop host process and each application program
The step of letter includes:
Each application program is communicated by the radio receiver with the data service process, the data service
The AIDL file of process is communicated with the AIDL file of the desktop host process, and the desktop host process registers the data clothes
Business process, bottom carry out data channel connection by Binder mechanism.
Optionally, the step that the pulse information that each application program reports is obtained from the data service process
Suddenly include:
The desktop host process passes through getAlarmInfo () method that AIDL file is provided to the data service process
The pulse information reported before each application program is obtained, to carry out data recovery.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, the mobile terminal include: memory,
Processor and the data recovery procedures that can be run on the memory and on the processor are stored in, the data restore journey
Sequence realizes following steps when being executed by the processor:
Create a data service processes;
When the starting of desktop host process, while starting the data service process;
Establish the communication between the data service process and the desktop host process and each application program;
The data service process receives the pulse information that each application program reports, and saves and is uploaded to the desktop master
Process;And
When the desktop host process is restarted, obtain what each application program reported from the data service process
The pulse information.
Optionally, the step of one data service processes of the creation include:
For each application program on desktop, corresponding radio receiver is created, is reported with receiving each application program
Pulse information;
The controller for creating the radio receiver of each application program is led to as a channel with data service process
Letter;
Create the data service process.
Optionally, described when the starting of desktop host process, while the step of starting the data service process includes:
When desktop host process starting, start the data service process, and by described in controller starting
Radio receiver;
The Android Interface Definition Language AIDL file for creating the data service process, creates the desktop host process
AIDL file.
Optionally, the step that the pulse information that each application program reports is obtained from the data service process
Suddenly include:
The desktop host process passes through getAlarmInfo () method that AIDL file is provided to the data service process
The pulse information reported before each application program is obtained, to carry out data recovery.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
It is stored with data recovery procedures on readable storage medium storing program for executing, such as above-mentioned number is realized when the data recovery procedures are executed by processor
The step of according to restoration methods.
Data reconstruction method, mobile terminal and computer readable storage medium proposed by the present invention can create one more
Data service process and desktop host process distinguish, then the pulse information reported for receiving each application program saves institute
It states pulse information and desktop host process is uploaded to by the communication of AIDL file striding course.Restart when crash occurs for desktop host process
When, the pulse information reported before each application program directly can be obtained from the data service process, to carry out data
Restore, ensure that the serious forgiveness and stability of multipad, and infinite expanding can be carried out for multipad,
It has been obviously improved the usage experience of user.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of flow chart for data reconstruction method that first embodiment of the invention proposes;
Fig. 4 is a kind of module diagram for mobile terminal that second embodiment of the invention proposes;
Fig. 5 is a kind of module diagram for data recovery system that third embodiment of the invention proposes.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, smartwatch,
The fixed terminals such as the mobile terminals such as pedometer, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Embodiment one
As shown in figure 3, first embodiment of the invention proposes a kind of data reconstruction method, it is applied to the mobile terminal, it should
Method the following steps are included:
S300 creates a data service processes (DataService).
Specifically, when desktop is arranged, a data service processes can be created more and desktop host process distinguishes.
Data service process is system-level process, resides backstage, and its operation flow is less, only carries out the storage and upload of data,
It is the firm process of a comparison, the exception such as crash will not occurs substantially and surprisingly collapse.
In the present embodiment, which specifically includes:
(1) for each application program (such as alarm clock, music etc.) on desktop, corresponding radio receiver is created
(BroadcastRecevier).The radio receiver is for receiving the pulse information that each application program reports.
(2) controller (controller) for creating the radio receiver of each application program, as a channel and number
It is communicated according to service processes.
(3) the data service process is created.
S302 when the starting of desktop host process, while starting the data service process.
Specifically, when the starting of the desktop host process of the mobile terminal, start the data service process, and pass through institute
It states controller and starts the radio receiver.
Create AIDL (Android Interface Definition Language, the Android of the data service process
Interface Definition Language) file, the methods of the getAlarmInfo () that return value is Bundle is provided, creation desktop host process
AIDL file provides the method for change state.
S304 establishes the communication between the data service process and the desktop host process and each application program.
Specifically, each application program is communicated by the radio receiver with the data service process, is reported
Pulse information is to the data service process.The AIDL file of the data service process and the AIDL file of desktop host process into
Row communication.Desktop host process registers the data service process, and bottom carries out data channel connection by Binder mechanism, at this time
The pulse information of each application program can upload to desktop host process by AIDL file.
S306, the data service process receive the pulse information that each application program reports, and save and are uploaded to described
Desktop host process.
Specifically, logical between the data service process, the desktop host process and each application program when establishing
After letter, the data service process can receive the pulse information that each application program reports by the radio receiver, so
The pulse information received is further uploaded by the desktop host process by AIDL file afterwards.The desktop host process can be with
Data update is carried out to the setting of the application program according to the pulse information of each application program, and carries out corresponding interface exhibition
Show.
For example, the data service process receives the pulse information that alarm clock application program is sent, it is arranged in every morning 7:
00 starting alarm clock calling, is then uploaded to desktop host process for the pulse information, the desktop host process is according to the pulse information
The setting data to alarm clock application program are updated, and show the mark for opening alarm clock in the interface of the mobile terminal.
In addition, the data service process will also save the pulse information of each application program received, in case in institute
When stating desktop host process and restarting, all pulse informations for being received before being provided again to it.
S308 obtains each application program from the data service process and reports when desktop host process is restarted
The pulse information.
Specifically, it causes to collapse when desktop host process generation crash etc. is unexpected, so that when loss of data, operating system
It detects that desktop collapse then will do it to restart.Data service process is not collapsed at this time, and desktop host process reinitializes
When, each application program can be obtained to getAlarmInfo () method of the data service process by AIDL file
The pulse information reported before, to achieve the effect that data are restored.
For example, after the desktop host process is restarted alarm clock application journey can be reacquired to the data service process
The pulse information (7:00 every morning starts alarm clock calling) of sequence, then carries out data update and showing interface, without losing
The data being arranged before do not need user and are configured again to alarm clock application program.
The data reconstruction method that the present embodiment proposes, can create a data service processes and desktop host process area more
Separate, the pulse information reported for receiving each application program, then save the pulse information and by AIDL file across
Process communication is uploaded to desktop host process.When desktop host process occur crash restart when, can directly from the data service into
Journey, which obtains the pulse information reported before each application program, ensure that the appearance of multipad to carry out data recovery
Error rate and stability, and infinite expanding can be carried out for multipad, it has been obviously improved the usage experience of user.
Embodiment two
As shown in figure 4, second embodiment of the invention proposes a kind of mobile terminal 2.The mobile terminal 2 includes memory
20, processor 22 and data recovery system 28.
Wherein, the memory 20 includes at least a type of readable storage medium storing program for executing, is installed on the shifting for storing
The operating system of dynamic terminal 2 and types of applications software, such as the program code of data recovery system 28 etc..In addition, the storage
Device 20 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 22 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in the control shifting
The overall operation of dynamic terminal 2.In the present embodiment, the processor 22 is for running the program code stored in the memory 20
Or processing data, such as run the data recovery system 28 etc..
Embodiment three
As shown in figure 5, third embodiment of the invention proposes a kind of data recovery system 28.In the present embodiment, the number
Include: according to recovery system 28
Creation module 800, for creating a data service processes (DataService).
Specifically, when desktop is arranged, a data service processes can be created more and desktop host process distinguishes.
Data service process is system-level process, resides backstage, and its operation flow is less, only carries out the storage and upload of data,
It is the firm process of a comparison, the exception such as crash will not occurs substantially and surprisingly collapse.
In the present embodiment, the creation module 800 completes the wound of the data service process especially by following procedure
It builds:
(1) for each application program (such as alarm clock, music etc.) on desktop, corresponding radio receiver is created
(BroadcastRecevier).The radio receiver is for receiving the pulse information that each application program reports.
(2) controller (controller) for creating the radio receiver of each application program, as a channel and number
It is communicated according to service processes.
(3) the data service process is created.
Starting module 802 is used for when the starting of desktop host process, while starting the data service process.
Specifically, when the starting of the desktop host process of the mobile terminal 2, the starting module 802 starts the data
Service processes, and the radio receiver is started by the controller.
The AIDL file for creating the data service process provides the sides such as the getAlarmInfo () that return value is Bundle
Method creates the AIDL file of desktop host process, provides the method for change state.
Establish module 804, for establish the data service process and the desktop host process and each application program it
Between communication.
Specifically, each application program is communicated by the radio receiver with the data service process, is reported
Pulse information is to the data service process.The AIDL file of the data service process and the AIDL file of desktop host process into
Row communication.Desktop host process registers the data service process, and bottom carries out data channel connection by Binder mechanism, at this time
The pulse information of each application program can upload to desktop host process by AIDL file.
Transceiver module 806 receives the pulse information that each application program reports for controlling the data service process, protects
It deposits and is uploaded to the desktop host process.
Specifically, logical between the data service process, the desktop host process and each application program when establishing
After letter, the data service process can receive the pulse information that each application program reports by the radio receiver, so
The pulse information received is further uploaded by the desktop host process by AIDL file afterwards.The desktop host process can be with
Data update is carried out to the setting of the application program according to the pulse information of each application program, and carries out corresponding interface exhibition
Show.
For example, the data service process receives the pulse information that alarm clock application program is sent, it is arranged in every morning 7:
00 starting alarm clock calling, is then uploaded to desktop host process for the pulse information, the desktop host process is according to the pulse information
The setting data to alarm clock application program are updated, and show the mark for opening alarm clock in the interface of the mobile terminal.
In addition, the data service process will also save the pulse information of each application program received, in case in institute
When stating desktop host process and restarting, all pulse informations for being received before being provided again to it.
Module 808 is obtained, is taken for when desktop host process is restarted, controlling the desktop host process from the data
The pulse information that each application program reports is obtained in business process.
Specifically, it causes to collapse when desktop host process generation crash etc. is unexpected, so that when loss of data, operating system
It detects that desktop collapse then will do it to restart.Data service process is not collapsed at this time, and desktop host process reinitializes
When, each application program can be obtained to getAlarmInfo () method of the data service process by AIDL file
The pulse information reported before, to achieve the effect that data are restored.
For example, after the desktop host process is restarted alarm clock application journey can be reacquired to the data service process
The pulse information (7:00 every morning starts alarm clock calling) of sequence, then carries out data update and showing interface, without losing
The data being arranged before do not need user and are configured again to alarm clock application program.
The data recovery system that the present embodiment proposes, can create a data service processes and desktop host process area more
Separate, the pulse information reported for receiving each application program, then save the pulse information and by AIDL file across
Process communication is uploaded to desktop host process.When desktop host process occur crash restart when, can directly from the data service into
Journey, which obtains the pulse information reported before each application program, ensure that the appearance of multipad to carry out data recovery
Error rate and stability, and infinite expanding can be carried out for multipad, it has been obviously improved the usage experience of user.
Example IV
The present invention also provides another embodiments, that is, provide a kind of computer readable storage medium, the computer
Readable storage medium storing program for executing is stored with data recovery procedures, and the data recovery procedures can be executed by least one processor, so that institute
At least one processor is stated to execute such as the step of above-mentioned data reconstruction method.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of data reconstruction method is applied to mobile terminal, which is characterized in that the method includes the steps:
Create a data service processes;
When the starting of desktop host process, while starting the data service process;
Establish the communication between the data service process and the desktop host process and each application program;
The data service process receives the pulse information that each application program reports, save and be uploaded to the desktop master into
Journey;And
When the desktop host process is restarted, obtained from the data service process described in each application program reports
Pulse information.
2. data reconstruction method according to claim 1, which is characterized in that the step of one data service processes of the creation
Suddenly include:
For each application program on desktop, corresponding radio receiver is created, to receive the arteries and veins that each application program reports
Rush information;
The controller for creating the radio receiver of each application program is communicated as a channel with data service process;
Create the data service process.
3. data reconstruction method according to claim 2, which is characterized in that it is described when the starting of desktop host process, simultaneously
The step of starting the data service process include:
When desktop host process starting, start the data service process, and the broadcast is started by the controller
Receiver;
The Android Interface Definition Language AIDL file for creating the data service process creates the AIDL text of the desktop host process
Part.
4. data reconstruction method according to claim 3, which is characterized in that described to establish the data service process and institute
The step of stating the communication between desktop host process and each application program include:
Each application program is communicated by the radio receiver with the data service process, the data service process
AIDL file communicated with the AIDL file of the desktop host process, the desktop host process register the data service into
Journey, bottom carry out data channel connection by Binder mechanism.
5. data reconstruction method according to claim 4, which is characterized in that described to be obtained from the data service process
The step of pulse information that each application program reports includes:
The desktop host process is obtained by the getAlarmInfo () method that AIDL file is provided to the data service process
The pulse information reported before each application program, to carry out data recovery.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage
It is real when the data recovery procedures are executed by the processor on device and the data recovery procedures that can run on the processor
Existing following steps:
Create a data service processes;
When the starting of desktop host process, while starting the data service process;
Establish the communication between the data service process and the desktop host process and each application program;
The data service process receives the pulse information that each application program reports, save and be uploaded to the desktop master into
Journey;And
When the desktop host process is restarted, obtained from the data service process described in each application program reports
Pulse information.
7. mobile terminal according to claim 6, which is characterized in that the step of one data service processes of the creation wraps
It includes:
For each application program on desktop, corresponding radio receiver is created, to receive the arteries and veins that each application program reports
Rush information;
The controller for creating the radio receiver of each application program is communicated as a channel with data service process;
Create the data service process.
8. mobile terminal according to claim 7, which is characterized in that it is described when the starting of desktop host process, start simultaneously
The step of data service process includes:
When desktop host process starting, start the data service process, and the broadcast is started by the controller
Receiver;
The Android Interface Definition Language AIDL file for creating the data service process creates the AIDL text of the desktop host process
Part.
9. mobile terminal according to claim 8, which is characterized in that it is described obtained from the data service process it is each
The step of pulse information that application program reports includes:
The desktop host process is obtained by the getAlarmInfo () method that AIDL file is provided to the data service process
The pulse information reported before each application program, to carry out data recovery.
10. a kind of computer readable storage medium, which is characterized in that it is extensive to be stored with data on the computer readable storage medium
Multiple program realizes that the data as described in any one of claims 1 to 5 are restored when the data recovery procedures are executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910683512.5A CN110377458B (en) | 2019-07-26 | 2019-07-26 | Data recovery method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910683512.5A CN110377458B (en) | 2019-07-26 | 2019-07-26 | Data recovery method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110377458A true CN110377458A (en) | 2019-10-25 |
CN110377458B CN110377458B (en) | 2023-11-10 |
Family
ID=68256512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910683512.5A Active CN110377458B (en) | 2019-07-26 | 2019-07-26 | Data recovery method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110377458B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114942812A (en) * | 2022-05-31 | 2022-08-26 | 上海嘉车信息科技有限公司 | Multimedia information sharing method and device and electronic equipment |
CN114942812B (en) * | 2022-05-31 | 2024-04-30 | 上海嘉车信息科技有限公司 | Multimedia information sharing method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010170389A (en) * | 2009-01-23 | 2010-08-05 | Alpine Electronics Inc | Data processing system |
CN105303103A (en) * | 2015-10-14 | 2016-02-03 | 北京奇虎科技有限公司 | Method for protecting service process in mobile terminal and mobile terminal |
CN105487980A (en) * | 2015-12-04 | 2016-04-13 | Tcl集团股份有限公司 | Method and device for repairing running abnormity of application program |
CN105607972A (en) * | 2015-12-28 | 2016-05-25 | Tcl集团股份有限公司 | Abnormity remedying method and device |
CN107357704A (en) * | 2017-06-27 | 2017-11-17 | 努比亚技术有限公司 | A kind of application program detection method, terminal and computer-readable recording medium |
CN109491836A (en) * | 2018-10-30 | 2019-03-19 | 京信通信系统(中国)有限公司 | Data reconstruction method, device and base station |
-
2019
- 2019-07-26 CN CN201910683512.5A patent/CN110377458B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010170389A (en) * | 2009-01-23 | 2010-08-05 | Alpine Electronics Inc | Data processing system |
CN105303103A (en) * | 2015-10-14 | 2016-02-03 | 北京奇虎科技有限公司 | Method for protecting service process in mobile terminal and mobile terminal |
CN105487980A (en) * | 2015-12-04 | 2016-04-13 | Tcl集团股份有限公司 | Method and device for repairing running abnormity of application program |
CN105607972A (en) * | 2015-12-28 | 2016-05-25 | Tcl集团股份有限公司 | Abnormity remedying method and device |
CN107357704A (en) * | 2017-06-27 | 2017-11-17 | 努比亚技术有限公司 | A kind of application program detection method, terminal and computer-readable recording medium |
CN109491836A (en) * | 2018-10-30 | 2019-03-19 | 京信通信系统(中国)有限公司 | Data reconstruction method, device and base station |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114942812A (en) * | 2022-05-31 | 2022-08-26 | 上海嘉车信息科技有限公司 | Multimedia information sharing method and device and electronic equipment |
CN114942812B (en) * | 2022-05-31 | 2024-04-30 | 上海嘉车信息科技有限公司 | Multimedia information sharing method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110377458B (en) | 2023-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536481A (en) | A kind of application program launching method, mobile terminal and computer storage media | |
CN109538538A (en) | A kind of processing method of fan noise, mobile terminal and storage medium | |
CN110180181A (en) | Screenshot method, device and the computer readable storage medium of Wonderful time video | |
CN110069167A (en) | Touch point sweep-out method, mobile terminal and computer readable storage medium | |
CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
CN108762631A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN109766119A (en) | Restore subregion upgrade method, terminal and computer readable storage medium | |
CN109462700A (en) | A kind of call method, mobile terminal and computer readable storage medium | |
CN109584897A (en) | Vedio noise reduction method, mobile terminal and computer readable storage medium | |
CN107659726A (en) | A kind of method, equipment and computer-readable recording medium for recovering end message | |
CN109710159A (en) | A kind of flexible screen response method, equipment and computer readable storage medium | |
CN109165042A (en) | Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application | |
CN109240881A (en) | Processing method, equipment and computer readable storage medium are moved back in a kind of sudden strain of a muscle of application program | |
CN109068084A (en) | Video calling picture display process, mobile terminal and computer readable storage medium | |
CN108650281A (en) | A kind of data managing method, device and computer readable storage medium | |
CN110187934A (en) | Application control method, terminal and computer readable storage medium | |
CN110175052A (en) | A kind of method, apparatus and computer readable storage medium of file opening | |
CN109684020A (en) | A kind of method for switching theme, equipment and computer readable storage medium | |
CN110096173A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN109151201A (en) | A kind of Anti-addiction method, mobile terminal and computer storage medium | |
CN109683741A (en) | Function triggering method, device and computer readable storage medium | |
CN108879117A (en) | Mobile terminal and its antenna structure | |
CN108650404A (en) | Port start-up circuit, device and mobile terminal | |
CN110174987A (en) | A kind of keypress function defines method, double screen terminal and computer-readable medium | |
CN110069291A (en) | A kind of display control method, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20231008 Address after: No. 4, Building 17, Phase 1, Hailiang Pozhang Community, west of Chagu Avenue and east of Beijing Avenue, Liuwu New District, Lhasa City, Tibet Autonomous Region, 850000 Applicant after: Lhasa New Starting Point Cultural Communication Co.,Ltd. Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |