CN109918340A - A kind of document handling method and terminal device - Google Patents

A kind of document handling method and terminal device Download PDF

Info

Publication number
CN109918340A
CN109918340A CN201910203626.5A CN201910203626A CN109918340A CN 109918340 A CN109918340 A CN 109918340A CN 201910203626 A CN201910203626 A CN 201910203626A CN 109918340 A CN109918340 A CN 109918340A
Authority
CN
China
Prior art keywords
file destination
file
terminal device
case
destination
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
Application number
CN201910203626.5A
Other languages
Chinese (zh)
Other versions
CN109918340B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910203626.5A priority Critical patent/CN109918340B/en
Publication of CN109918340A publication Critical patent/CN109918340A/en
Application granted granted Critical
Publication of CN109918340B publication Critical patent/CN109918340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to field of communication technology, a kind of document handling method and terminal device are provided, to solve the problems, such as that the data exception of memory causes terminal device to be abnormal.This method comprises: obtaining the attribute of the file destination in the case where detecting the corrupted data of file destination;According to processing mode corresponding with the attribute of the file destination, the file destination is handled.In this way, terminal device can carry out different processing for the file of different attribute, so that terminal device be prevented to be abnormal.

Description

A kind of document handling method and terminal device
Technical field
The present invention relates to field of communication technology more particularly to a kind of document handling methods and terminal device.
Background technique
Nonvolatile storage (hereinafter referred to as memory) is the critical component of terminal device, and it can be used to store terminal to set Standby system data and user data.It is abnormal in the external environment of terminal device, as powered-off fault or internal environment are different In the case where often such as generating bad block, the data in memory may all lose, and file data is caused to damage.
It mainly include in the prior art two kinds for the processing mode of the corrupted data of memory: any one is not returning Error value, such terminal device is when reading wrong data, it may occur that unpredictable mistake;Another kind is to return to mark Situations such as quasi- error code, such terminal device may crash after detecting error code.That is, in memory When data are damaged, terminal device will lead to by any of the above-described kind of processing mode and be abnormal.
As it can be seen that in the prior art, the data exception of memory will lead to terminal device and be abnormal.
Summary of the invention
The embodiment of the present invention provides a kind of document handling method and terminal device, is caused with solving the data exception of memory The problem of terminal device is abnormal.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of document handling methods, comprising:
In the case where detecting the corrupted data of file destination, the attribute of the file destination is obtained;
According to processing mode corresponding with the attribute of the file destination, the file destination is handled.
Second aspect, the embodiment of the present invention also provide a kind of terminal device, comprising:
Module is obtained, for obtaining the category of the file destination in the case where detecting the corrupted data of file destination Property;
Processing module, for according to processing mode corresponding with the attribute of the file destination, to the file destination into Row processing.
The third aspect, the embodiment of the present invention also provide a kind of terminal device, comprising: memory, processor and are stored in On reservoir and the computer program that can run on a processor, the processor realize institute as above when executing the computer program The step in document handling method stated.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, the computer program is realized when being executed by processor in document handling method as described above The step of.
In the embodiment of the present invention, in the case where detecting the corrupted data of file destination, the file destination is obtained Attribute;According to processing mode corresponding with the attribute of the file destination, the file destination is handled.In this way, terminal Equipment can carry out different processing for the file of different attribute, so that terminal device be prevented to be abnormal.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is one of the flow chart of document handling method provided in an embodiment of the present invention;
Fig. 2 is the two of the flow chart of document handling method provided in an embodiment of the present invention;
Fig. 2 a is the storage schematic diagram of file provided in an embodiment of the present invention;
Fig. 2 b is the update flow chart of living document provided in an embodiment of the present invention;
Fig. 2 c is the corresponding relationship of file provided in an embodiment of the present invention and processing mode;
Fig. 2 d is the processing schematic provided in an embodiment of the present invention to damage file;
Fig. 2 e is the three of the flow chart of document handling method provided in an embodiment of the present invention;
Fig. 3 is one of the structure chart of terminal device provided in an embodiment of the present invention;
Fig. 4 is the structure chart of the processing module in terminal device provided in an embodiment of the present invention;
Fig. 5 is the two of the structure chart of terminal device 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.
Referring to Fig. 1, Fig. 1 be the flow chart of document handling method provided in an embodiment of the present invention, as shown in Figure 1, include with Lower step:
Step 101, in the case where detecting the corrupted data of file destination, obtain the attribute of the file destination.
Wherein, file destination can be any file in terminal device, including system file, third party application File or other files.
The attribute of file destination can be the attribute for reflecting the feature of file destination, e.g., the type of file destination, mesh Position that mark file is stored, the importance of file destination etc..
The corrupted data of file destination can be partial data or total data damage, the corrupted data of file destination In the case of, file destination cannot normally be read.
Step 102, basis processing mode corresponding with the attribute of the file destination, at the file destination Reason.
Terminal device can preset the attribute of file destination and the corresponding relationship of processing mode, in this step, can To handle file destination according to the corresponding relationship.
When the attribute of file destination includes a variety of attributes, terminal device can be according to any attribute, Huo Zhetong When according to a variety of attributes determine processing mode.
Processing mode when in the prior art for corrupted data is fixed, and terminal device can occur different when data is corrupted Often.Using the document handling modus of the embodiment of the present invention, corresponding processing mode is determined according to the attribute of file destination, thus right File destination is handled, and can be improved the flexibility of processing, and can determine processing mode in conjunction with different scenes.For example, When the file that file destination is the application program being currently running, if file destination damage will affect the normal operation of application program, Application program can be reset;When file destination is unessential file, file destination can directly be deleted, to reduce to end The interference of end equipment.
In the embodiment of the present invention, above-mentioned document handling method can be applied to terminal device, such as: mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal Digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable Equipment (Wearable Device) etc..
The document handling method of the embodiment of the present invention obtains institute in the case where detecting the corrupted data of file destination State the attribute of file destination;According to processing mode corresponding with the attribute of the file destination, at the file destination Reason.In this way, terminal device can carry out different processing for the file of different attribute, so that it is different to prevent terminal device from occurring Often.
Referring to fig. 2, the main distinction of the present embodiment and above-described embodiment is, according to the type of file destination and/or again The property wanted grade, handles file destination.
Fig. 2 is the flow chart of document handling method provided in an embodiment of the present invention, as shown in Figure 2, comprising the following steps:
Step 201, in the case where detecting the corrupted data of file destination, obtain the file destination type and/ Or importance rate.
The relevant explanation of this step may refer to the description in step 101.
Wherein, the type of file destination may include static file and living document, wherein static file can be with end The operation of end equipment and the fixed file of content, living document can be the file of the operation with terminal device and content update; The type of file destination is further divided into system file, subscriber data file, garbage files, application file etc., the present invention Embodiment is not limited to the above-mentioned type enumerated.
It is pre-set that the importance rate of file destination can be terminal device.
In this step, any one of the type of available file destination and importance rate or two kinds.
In specific implementation, it can establish document data bank, for storing the file information, type, storage including file Path, the creation information such as process and importance.The Store form of document data bank may refer to shown in Fig. 2 a.
For example, compiler server composing software can scan file all in this version software, the file information is saved It is " 0 " by the file importance in all static file databases in static file database.For raw during system operation At file be then stored in dynamic file data library, file importance can according to creation file type determine, dynamic text Part more new technological process may refer to Fig. 2 b.File process is first created, and creates application programming interface, then file is stored to dynamic State document data bank.Document data bank can be used as the foundation of determining file type and importance.
Step 202, basis processing mode corresponding with the type of the file destination and/or importance rate, to described File destination is handled.
In this step, the processing mode of file destination can be determined according to the type or importance rate of file destination, Can also processing mode be determined according to type and importance rate simultaneously.
For example, the importance rate of living document is further determined that after the type for determining file destination is living document, So that it is determined that the processing mode of file destination.The importance rate that can also first determine file destination, in the important of file destination Property grade instruction file destination it is more important when, may further determine that the type of file destination.It is above-mentioned to be merely illustrative.
Above-mentioned processing mode may include: that text is deleted in the direct operation for deleting file, refitting application program, response user Part re-downloads file etc..One of processing mode can be specifically selected according to the type or importance of file destination, or Export multiple processing modes for selection by the user.
Terminal device can preset the corresponding relationship between type, importance rate and the processing mode of file, For example, the mapping table that setting is as shown in Figure 2 c.
The detailed process handled file destination may refer to Fig. 2 d.Memory is in " state in data exception 1 ", at this point, unknown exception can be caused due to error in data if processor reads " the data exception block " of memory.Work as processing When device has deletion or rewrite operation to " the data exception block " of memory, " data exception block " can be labeled as " bad by memory Block ", while being replaced " bad block " with " reserved block ", the state of memory becomes " state 2 ".Under " state 2 ", have in memory Bad block, but do not influenced for processor, that is to say, that bad block will not have an impact system.
When file is more important, the Bad Block Management mechanism of memory inside can be triggered by way of above-mentioned rewriting, Data will not lose;When file is inessential, the Bad Block Management mechanism of memory inside can be triggered by way of deletion, It is smaller to the influence on system operation of terminal device although data may lose, it is smaller to the interference of user's using terminal equipment. Different processing modes is taken file according to the importance of file or classification, the influence to terminal device can be reduced, The interference to user can be reduced.
Optionally, the type of the file destination is the first kind;
Basis processing mode corresponding with the type of the file destination and/or importance rate, to the target File is handled, comprising:
In the case where the importance rate of the file destination is the first estate, downloading and the mesh in Backup Data Mark the identical file of file;
In the case where the importance rate of the file destination is the second grade, in response to the operation of user, institute is deleted State file destination;
In the case where the importance rate of the file destination is the tertiary gradient, application program is reinstalled, it is described to answer It is the corresponding application program of the file destination with program;
In the case where the importance rate of the file destination is the fourth estate, the file destination is directly deleted.
In this embodiment, the above-mentioned first kind can be any type after file destination classified types, example Living document type as described in step 201.
In the case where the importance rate of file destination is the first estate, can be downloaded in Backup Data and target text The identical file of part, so that the file using downloading replaces file destination;It is the second grade in the importance rate of file destination In the case where, data may impact the use of terminal device, can prompt user carry out delete operation, and according to File destination is deleted in family operation.In the case where the importance rate of file destination is the tertiary gradient, it can reinstall and answer With program, to reduce the influence that uses of the file destination to application program.It is the fourth estate in the importance rate of file destination In the case where, indicate that file destination is inessential, it can direct delete target file.
In this way, taking different processing modes for the file of different type and importance, the flexible of processing can be improved Property, it reduces file corruption and is interfered caused by the use of terminal device.And data are deleted according to user's operation, user can be prompted File has been deleted.
Optionally, the type of the file destination is Second Type;
Basis processing mode corresponding with the type of the file destination and/or importance rate, to the target File is handled, comprising:
Alternate file identical with the content of the file destination is downloaded in server;
The file destination is replaced using the alternate file.
In this embodiment, Second Type can be static file described in step 201.Terminal device can take Business device downloading alternate file replacement file destination prevents important loss of data so that the file of damage be repaired, to protect The normal operation of terminal device is demonstrate,proved, the interference to user is reduced.
It is optionally, described to download alternate file identical with the content of the file destination in server, comprising:
In the state that the terminal device is switched on successfully, downloaded in server identical with the content of the file destination Alternate file, and in the case where the terminal device is in system reparation state, the file destination is replaced using the alternate file;
In the case where the terminal device boot failure, in the case where the terminal device is in system reparation state, taking Business device downloads alternate file identical with the content of the file destination, and replaces the target text using the alternate file Part.
In this embodiment, it is switched in successful situation in terminal device, terminal device is servicing under open state Device downloads alternate file, and file is repaired under system reparation state, the anti-regular exception of locking system, avoid data further by Damage;In the case where terminal device boot failure, terminal device downloads replacement text under system reparation state, in server Part, and file is repaired, accelerate file downloading speed and updating speed.Above-mentioned file destination can be read-only system partition data File, the partial document are more important for maintaining system operation.When file destination is non-read-only user area data, terminal is set Standby to guide and prompt user's suppressing exception data, reduction is influenced caused by terminal device.
In addition, terminal device can periodically during idle time be scanned memory, abnormal data is checked, and take in advance Reclamation activities repairs abnormal data, reduces data exception to user and brings interference.
Above-described embodiment in order to facilitate understanding is illustrated below in conjunction with specific embodiment.
As shown in Figure 2 e, when the bad block of reading memory, memory firmware returns to error code to storage drive.Bottom drives When dynamic error-detecting routine detects the error code that memory returns, error message is returned into upper layer error detection and is taken with processing Business device.
When upper layer error, which is detected, listens to wrong data with processing service unit, the file path of mistake is found first, The importance of this document is inquired in document data bank according to the path of wrong file, and according to the importance rate of file to text Part performs corresponding processing.The importance rate and processing mode of file may refer to shown in Fig. 2 c.It is stored on server each The All Files of system version are the file of " 0 " for file importance, and server downloading source file is needed to be restored. Other specific processing modes may refer to the specific descriptions in embodiment, and details are not described herein again.
The document handling method of the embodiment of the present invention, according to the type and/or importance rate of file destination, to target text Part is handled.Important loss of data can be prevented, and interference of the abnormal data to user can be reduced.
It is the structure chart of terminal device provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, as shown in figure 3, terminal device 300 It include: to obtain module 301 and processing module 302.Wherein:
Module 301 is obtained, for obtaining the file destination in the case where detecting the corrupted data of file destination Attribute;
Processing module 302, for basis processing mode corresponding with the attribute of the file destination, to the file destination It is handled.
Optionally, the attribute of the file destination includes the type and/or importance rate of file destination;
The processing module 302 is specifically used for, according to corresponding with the type of the file destination and/or importance rate Processing mode handles the file destination.
Optionally, the type of the file destination is the first kind;
The processing module 302 is specifically used for:
In the case where the importance rate of the file destination is the first estate, downloading and the mesh in Backup Data Mark the identical file of file;
In the case where the importance rate of the file destination is the second grade, in response to the operation of user, institute is deleted State file destination;
In the case where the importance rate of the file destination is the tertiary gradient, application program is reinstalled, it is described to answer It is the corresponding application program of the file destination with program;
In the case where the importance rate of the file destination is the fourth estate, the file destination is directly deleted.
Optionally, the type of the file destination is Second Type;
The processing module 302 includes:
Submodule 3021 is downloaded, for downloading alternate file identical with the content of the file destination in server;
Submodule 3022 is replaced, for replacing the file destination using the alternate file.
Optionally, the downloading submodule 3021 is specifically used for:
In the state that the terminal device is switched on successfully, downloaded in server identical with the content of the file destination Alternate file, and in the case where the terminal device is in system reparation state, the file destination is replaced using the alternate file;
In the case where the terminal device boot failure, in the case where the terminal device is in system reparation state, taking Business device downloads alternate file identical with the content of the file destination, and replaces the target text using the alternate file Part.
Terminal device 300 can be realized each process that terminal device is realized in above method embodiment, to avoid repeating, Which is not described herein again.
The terminal device 300 of the embodiment of the present invention, terminal device can carry out different places for the file of different attribute Reason, so that terminal device be prevented to be abnormal.
A kind of hardware structural diagram of Fig. 5 terminal device of each embodiment to realize the present invention, the terminal device 500 Including but not limited to: radio frequency unit 501, audio output unit 503, input unit 504, sensor 505, is shown network module 502 Show the components such as unit 506, user input unit 507, interface unit 508, memory 509, processor 510 and power supply 511. It will be understood by those skilled in the art that terminal device structure shown in Fig. 5 does not constitute the restriction to terminal device, terminal is set Standby may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention In embodiment, terminal device include but is not limited to mobile phone, tablet computer, laptop, palm PC, vehicle mobile terminals, Wearable device and pedometer etc..
Wherein, processor 510, in the case where detecting the corrupted data of file destination, obtaining the target text The attribute of part;According to processing mode corresponding with the attribute of the file destination, the file destination is handled.In this way, Terminal device can carry out different processing for the file of different attribute, so that terminal device be prevented to be abnormal.
Optionally, the attribute of the file destination includes the type and/or importance rate of file destination;Processor 510 Basis processing mode corresponding with the attribute of the file destination is executed, the file destination is handled, comprising:
According to processing mode corresponding with the type of the file destination and/or importance rate, to the file destination It is handled.
Optionally, the type of the file destination is the first kind;Processor 510 executes the basis and the target text The corresponding processing mode of type and/or importance rate of part, handles the file destination, comprising:
In the case where the importance rate of the file destination is the first estate, downloading and the mesh in Backup Data Mark the identical file of file;
In the case where the importance rate of the file destination is the second grade, in response to the operation of user, institute is deleted State file destination;
In the case where the importance rate of the file destination is the tertiary gradient, application program is reinstalled, it is described to answer It is the corresponding application program of the file destination with program;
In the case where the importance rate of the file destination is the fourth estate, the file destination is directly deleted.
Optionally, the type of the file destination is Second Type;Processor 510 executes the basis and the target text The corresponding processing mode of type and/or importance rate of part, handles the file destination, comprising:
Alternate file identical with the content of the file destination is downloaded in server;
The file destination is replaced using the alternate file.
Optionally, processor 510 executes described in server downloading replacement text identical with the content of the file destination Part, comprising:
In the state that the terminal device is switched on successfully, downloaded in server identical with the content of the file destination Alternate file, and in the case where the terminal device is in system reparation state, the file destination is replaced using the alternate file;
In the case where the terminal device boot failure, in the case where the terminal device is in system reparation state, taking Business device downloads alternate file identical with the content of the file destination, and replaces the target text using the alternate file Part.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also provide and end The relevant audio output of specific function that end equipment 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 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 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Terminal device 500 further includes at least one sensor 505, 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 5061, and proximity sensor can close when terminal device 500 is moved in one's ear Display panel 5061 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 terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 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 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, 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 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with terminal device 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 500 or can be used in 500 He of terminal device Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 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 509 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 510 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 510 may include one or more processing units;Preferably, processor 510 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 510.
Terminal device 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510 Each process in the above-mentioned document handling method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, this In repeat no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned document handling method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
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.
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 device (can be mobile phone, computer, clothes Business device, air conditioner or the 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 belongs within protection of the invention.

Claims (12)

1. a kind of document handling method is applied to terminal device characterized by comprising
In the case where detecting the corrupted data of file destination, the attribute of the file destination is obtained;
According to processing mode corresponding with the attribute of the file destination, the file destination is handled.
2. the method according to claim 1, wherein the attribute of the file destination includes the type of file destination And/or importance rate;
Basis processing mode corresponding with the attribute of the file destination, handles the file destination, comprising:
According to processing mode corresponding with the type of the file destination and/or importance rate, the file destination is carried out Processing.
3. according to the method described in claim 2, it is characterized in that, the type of the file destination is the first kind;
Basis processing mode corresponding with the type of the file destination and/or importance rate, to the file destination It is handled, comprising:
In the case where the importance rate of the file destination is the first estate, downloading and the target text in Backup Data The identical file of part;
In the case where the importance rate of the file destination is the second grade, in response to the operation of user, the mesh is deleted Mark file;
In the case where the importance rate of the file destination is the tertiary gradient, application program is reinstalled, it is described to apply journey Sequence is the corresponding application program of the file destination;
In the case where the importance rate of the file destination is the fourth estate, the file destination is directly deleted.
4. according to the method described in claim 2, it is characterized in that, the type of the file destination is Second Type;
Basis processing mode corresponding with the type of the file destination and/or importance rate, to the file destination It is handled, comprising:
Alternate file identical with the content of the file destination is downloaded in server;
The file destination is replaced using the alternate file.
5. according to the method described in claim 4, it is characterized in that, the content in server downloading and the file destination Identical alternate file, comprising:
In the state that the terminal device is switched on successfully, replacement identical with the content of the file destination is downloaded in server File, and in the case where the terminal device is in system reparation state, the file destination is replaced using the alternate file;
In the case where the terminal device boot failure, in the case where the terminal device is in system reparation state, in server Alternate file identical with the content of the file destination is downloaded, and replaces the file destination using the alternate file.
6. a kind of terminal device characterized by comprising
Module is obtained, for obtaining the attribute of the file destination in the case where detecting the corrupted data of file destination;
Processing module, for basis processing mode corresponding with the attribute of the file destination, at the file destination Reason.
7. terminal device according to claim 6, which is characterized in that the attribute of the file destination includes file destination Type and/or importance rate;
The processing module is specifically used for, according to processing side corresponding with the type of the file destination and/or importance rate Formula handles the file destination.
8. terminal device according to claim 7, which is characterized in that the type of the file destination is the first kind;
The processing module is specifically used for:
In the case where the importance rate of the file destination is the first estate, downloading and the target text in Backup Data The identical file of part;
In the case where the importance rate of the file destination is the second grade, in response to the operation of user, the mesh is deleted Mark file;
In the case where the importance rate of the file destination is the tertiary gradient, application program is reinstalled, it is described to apply journey Sequence is the corresponding application program of the file destination;
In the case where the importance rate of the file destination is the fourth estate, the file destination is directly deleted.
9. terminal device according to claim 7, which is characterized in that the type of the file destination is Second Type;
The processing module includes:
Submodule is downloaded, for downloading alternate file identical with the content of the file destination in server;
Submodule is replaced, for replacing the file destination using the alternate file.
10. terminal device according to claim 9, which is characterized in that the downloading submodule is specifically used for:
In the state that the terminal device is switched on successfully, replacement identical with the content of the file destination is downloaded in server File, and in the case where the terminal device is in system reparation state, the file destination is replaced using the alternate file;
In the case where the terminal device boot failure, in the case where the terminal device is in system reparation state, in server Alternate file identical with the content of the file destination is downloaded, and replaces the file destination using the alternate file.
11. a kind of terminal device characterized by comprising memory, processor and storage are on a memory and can be in processor The computer program of upper operation, the processor are realized as described in any one of claim 1 to 5 when executing the computer program Document handling method in step.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence is realized when the computer program is executed by processor as in document handling method described in any one of claim 1 to 5 Step.
CN201910203626.5A 2019-03-18 2019-03-18 File processing method and terminal equipment Active CN109918340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203626.5A CN109918340B (en) 2019-03-18 2019-03-18 File processing method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203626.5A CN109918340B (en) 2019-03-18 2019-03-18 File processing method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109918340A true CN109918340A (en) 2019-06-21
CN109918340B CN109918340B (en) 2021-07-02

Family

ID=66965332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203626.5A Active CN109918340B (en) 2019-03-18 2019-03-18 File processing method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109918340B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377363A (en) * 2019-07-17 2019-10-25 Oppo(重庆)智能科技有限公司 Method, apparatus, terminal and the storage medium of application are installed

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876914A (en) * 2010-04-23 2010-11-03 中兴通讯股份有限公司 Method for deleting files and mobile terminal
CN103970579A (en) * 2014-05-29 2014-08-06 中国银行股份有限公司 Application version deploying method and application version deploying device
CN104424246A (en) * 2013-08-27 2015-03-18 鸿富锦精密工业(深圳)有限公司 Data storage system and method
CN106096447A (en) * 2016-06-15 2016-11-09 杭州华三通信技术有限公司 A kind of document protection method and device
CN107766005A (en) * 2017-11-02 2018-03-06 深圳天珑无线科技有限公司 E-file processing method, device and electric terminal
CN107766177A (en) * 2017-10-12 2018-03-06 广东欧珀移动通信有限公司 Start optimization method, device, storage medium and terminal device
US20190005038A1 (en) * 2017-06-30 2019-01-03 Xerox Corporation Method and apparatus for grouping documents based on high-level features clustering

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876914A (en) * 2010-04-23 2010-11-03 中兴通讯股份有限公司 Method for deleting files and mobile terminal
CN104424246A (en) * 2013-08-27 2015-03-18 鸿富锦精密工业(深圳)有限公司 Data storage system and method
CN103970579A (en) * 2014-05-29 2014-08-06 中国银行股份有限公司 Application version deploying method and application version deploying device
CN106096447A (en) * 2016-06-15 2016-11-09 杭州华三通信技术有限公司 A kind of document protection method and device
US20190005038A1 (en) * 2017-06-30 2019-01-03 Xerox Corporation Method and apparatus for grouping documents based on high-level features clustering
CN107766177A (en) * 2017-10-12 2018-03-06 广东欧珀移动通信有限公司 Start optimization method, device, storage medium and terminal device
CN107766005A (en) * 2017-11-02 2018-03-06 深圳天珑无线科技有限公司 E-file processing method, device and electric terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377363A (en) * 2019-07-17 2019-10-25 Oppo(重庆)智能科技有限公司 Method, apparatus, terminal and the storage medium of application are installed

Also Published As

Publication number Publication date
CN109918340B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN107979851B (en) Abnormal data reporting method and device
CN108471470A (en) A kind of message prompt method and mobile terminal
CN108228230A (en) Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN108089977A (en) A kind of abnormality eliminating method of application program, device and mobile terminal
CN109271297A (en) A kind of abnormal prompt method and mobile terminal
CN109871246A (en) A kind of message display method and terminal device
CN109101363A (en) Abnormal restoring method, device, smart machine and storage medium based on android system
CN110046013A (en) A kind of interface display method and terminal device
CN110309004A (en) The processing method and terminal of data
CN108920054A (en) A kind of application recommended method and terminal
CN107943387A (en) A kind of document handling method and mobile terminal
CN107908492A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN109745699A (en) A kind of method and terminal device responding touch control operation
CN110012152A (en) A kind of interface display method and terminal device
CN110162234A (en) A kind of application control method and terminal device
CN109284146A (en) A kind of light application open method and mobile terminal
CN109032699A (en) A kind of method and terminal for modifying application environment variable
CN108810284A (en) A kind of mode switching method and electronic equipment of camera
CN106371896B (en) Virutal machine memory configuration method and device, mobile terminal
CN108762799A (en) A kind of method and terminal of update application
CN107766222A (en) Blank screen detection method, mobile terminal and computer-readable recording medium
CN108228357A (en) A kind of memory method for cleaning and mobile terminal
CN107844318A (en) The upgrade method and mobile terminal and server of a kind of operating system
CN107704334A (en) A kind of SDK processing method and mobile terminal
CN107872367A (en) Blank screen detection method, mobile terminal and computer-readable recording 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
GR01 Patent grant
GR01 Patent grant