CN105955851B - System file method for burn-recording and device applied to mobile terminal - Google Patents
System file method for burn-recording and device applied to mobile terminal Download PDFInfo
- Publication number
- CN105955851B CN105955851B CN201610357615.9A CN201610357615A CN105955851B CN 105955851 B CN105955851 B CN 105955851B CN 201610357615 A CN201610357615 A CN 201610357615A CN 105955851 B CN105955851 B CN 105955851B
- Authority
- CN
- China
- Prior art keywords
- burning
- subregion
- system file
- partition table
- mentioned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
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/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
-
- 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/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Abstract
The invention discloses a kind of system file method for burn-recording and device applied to mobile terminal, wherein the system file method for burn-recording includes:Compare the first partition table and whether the second partition table is consistent, wherein first partition table is the currently used partition table of mobile terminal, and second partition table is partition table used in this burning;If consistent,:It determines to burning subregion, and to the burning for carrying out system file to burning subregion;If inconsistent,:It determines to burning subregion;Content in the mobile terminal original subregion is backed up;To the burning for carrying out system file to burning subregion;The content of the backup is restored according to second partition table.Technical solution provided by the invention can not format mobile terminal and guarantee subregion can normal use under the premise of, realize burning to system file.
Description
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of system file burning side applied to mobile terminal
Method and device.
Background technique
Currently, mobile terminal (such as mobile phone, tablet computer etc.) requires whole to movement by download tool before factory
Writing system file in end, so that mobile terminal being capable of normal boot-strap use.
In the terminal when writing system file, the memory space of mobile terminal can be divided into multiple subregions, often
One sub-regions are known as a subregion, and position and the appearance of the practical disk of the corresponding lower layer of each subregion are recorded using partition table
Size is measured, in reading and writing data, needs to find the corresponding position of the practical disk of lower layer according to the guide of partition table, carries out data reading
Write operation.Download tool system file can be written according to pre-set partition table configuration file in programming system file
Into corresponding subregion.
In the prior art, when needing to increase subregion for mobile terminal, or need to increase, reduce the size of some subregion
When, after the memory space for needing to format entire mobile terminal, according to new partition table configuration file again programming system text
Part, otherwise can because of partition table update and cause new subregion content be some original subregion content, cause new subregion without
Method normal use.However, meeting is formatted to the memory space of mobile terminal so that some calibration parameters (such as modulation /demodulation
Device (i.e. modem) radio frequency parameter, Wireless Fidelity (WiFi, Wireless Fidelity) radio frequency parameter and Bluetooth RF parameter
Deng), it just needs producing line to re-start calibration at this time, greatly increases workload.
Summary of the invention
The present invention provides a kind of system file method for burn-recording and device applied to mobile terminal, for not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.
First aspect present invention is related to a kind of system file method for burn-recording applied to mobile terminal, including:
Compare the first partition table and whether the second partition table is consistent, wherein above-mentioned first partition table is that mobile terminal is current
The partition table used, above-mentioned second partition table are partition table used in this burning;
If consistent,:
It determines to burning subregion, and to the above-mentioned burning for carrying out system file to burning subregion;
If inconsistent,:
It determines to burning subregion;
Content in above-mentioned mobile terminal original subregion is backed up;
To the above-mentioned burning for carrying out system file to burning subregion;
The content of above-mentioned backup is restored according to above-mentioned second partition table.
Based on first aspect present invention, in the second possible implementation, when above-mentioned first partition table and above-mentioned
When two partition tables are inconsistent, above-mentioned determination includes to burning subregion:
Judge whether above-mentioned second partition table meets preset influence item relative to the subregion variation of above-mentioned first partition table
Part;
If it is determined that meeting above-mentioned influence condition, then the whole subregions for needing programming system file are determined as to burning point
Area;
If it is determined that being unsatisfactory for above-mentioned influence condition, then exports instruction user and select to need to be programmed the subregion of system file
Prompt information, it is determining to burning subregion and non-to burning subregion according to the selection of user's input.
The first possible implementation based on first aspect present invention, in the second possible implementation, on
It states and the content in above-mentioned mobile terminal original subregion is backed up, including:When determining to be unsatisfactory for above-mentioned influence condition, original is deposited
Storage space, which is set, to be needed to be programmed the non-content in burning subregion of system file and is backed up;When judgement meets above-mentioned influence condition
When, determination need to retain the content of state before burning and back up to the above-mentioned content that need to retain state before burning.
Second of possible implementation based on first aspect present invention, in the third possible implementation, on
It is determining to burning subregion and non-to burning subregion to state the selection inputted according to user, including:
Judge the subregion number of unselected programming system file and the system file of corresponding unselected burning
Whether total size meets local burning condition, wherein above-mentioned part burning condition is the subregion of unselected programming system file
Number is less than preset number of partitions threshold value and the total size of the system file of unselected burning is less than preset file size
Threshold value;
If it is determined that meeting above-mentioned local burning condition, then will be determined as by the subregion of selection programming system file to burning point
Area;
If it is determined that being unsatisfactory for above-mentioned local burning condition, then whole subregions of programming system file will be needed to be determined as wait burn
Record subregion;
It is above-mentioned when determine be unsatisfactory for above-mentioned influence condition when, need to be programmed the non-wait burn of system file to former storage location
Content in record subregion is backed up, specially:
When determining to be unsatisfactory for above-mentioned influence condition and determine to meet above-mentioned local burning condition, former storage location is needed
The non-content in burning subregion for being programmed system file is backed up.
The third possible implementation based on first aspect present invention, in the fourth possible implementation, on
It states and the content in above-mentioned mobile terminal original subregion is backed up, including:
When determining to be unsatisfactory for above-mentioned influence condition and determine to be unsatisfactory for above-mentioned local burning condition, determination need to retain burning
The content of preceding state simultaneously backs up the above-mentioned content that need to retain state before burning.
Second aspect of the present invention is related to a kind of system file burning device applied to mobile terminal, including:
Comparing unit, it is whether consistent for comparing the first partition table and the second partition table, wherein above-mentioned first partition table is
The currently used partition table of mobile terminal, above-mentioned second partition table are partition table used in this burning;
First determination unit, for determining to burning subregion when the comparison result of above-mentioned comparing unit is consistent;
First burning unit, the burning that system file is carried out to burning subregion for being determined to above-mentioned first determination unit
Record;
Second determination unit, for determining to burning subregion when the comparison result of above-mentioned comparing unit is inconsistent;
Backup units, for being backed up to the content in above-mentioned mobile terminal original subregion;
Second burning unit, the burning that system file is carried out to burning subregion for being determined to above-mentioned second determination unit
Record;
Reduction unit, for restoring the content of above-mentioned backup units backup according to above-mentioned second partition table.
Based on second aspect of the present invention, in the first possible implementation, above-mentioned second determination unit is specifically included:
Judging unit, for judging whether above-mentioned second partition table meets relative to the subregion variation of above-mentioned first partition table
Preset influence condition;
First sub- determination unit, for burning system will to be needed when the judgement of above-mentioned judging unit meets above-mentioned influence condition
Whole subregions of system file are determined as to burning subregion;
Output unit, for when the judgement of above-mentioned judging unit is unsatisfactory for above-mentioned influence condition, output instruction user to be selected
Need to be programmed the prompt information of the subregion of system file;
Second sub- determination unit, the selection for being inputted according to user are determining to burning subregion and non-to burning subregion.
The first possible implementation based on second aspect of the present invention, in the second possible implementation, on
Backup units are stated to be specifically used for:When above-mentioned judging unit judgement be unsatisfactory for above-mentioned influence condition when, to former storage location need by
The non-content in burning subregion of programming system file is backed up;When the judgement of above-mentioned judging unit meets above-mentioned influence condition
When, determination need to retain the content of state before burning and back up to the above-mentioned content that need to retain state before burning.
Second of possible implementation based on second aspect of the present invention, in the third possible implementation, on
The second sub- determination unit is stated to be specifically used for:Judge the subregion number of unselected programming system file and corresponding unselected
Whether the total size of the system file of burning meets local burning condition, wherein above-mentioned part burning condition is unselected burning
The subregion number of recording system file is less than preset number of partitions threshold value and the total size of the system file of unselected burning is small
In preset file size threshold value;If it is determined that meet above-mentioned local burning condition, then it will be by the subregion of selection programming system file
It is determined as to burning subregion;If it is determined that being unsatisfactory for above-mentioned local burning condition, then whole subregions of programming system file will be needed
It is determined as to burning subregion;
Above-mentioned backup units are specifically used for:When the judgement of above-mentioned judging unit is unsatisfactory for above-mentioned influence condition and above-mentioned second son
When determination unit judgement meets above-mentioned local burning condition, need to be programmed the non-to burning point of system file to former storage location
Content in area is backed up.
The third possible implementation based on second aspect of the present invention, in the fourth possible implementation, on
Backup units are stated specifically to be also used to:When the judgement of above-mentioned judging unit is unsatisfactory for above-mentioned influence condition and above-mentioned second sub- determination unit
When judgement is unsatisfactory for above-mentioned local burning condition, determination need to retain before burning the content of state and to above-mentioned shape before need to retaining burning
The content of state is backed up.
Therefore in the embodiment of the present invention in programming system file newer partition table (the second partition table) and original
Whether partition table (i.e. the first partition table) is consistent, right after backing up to the content in mobile terminal original subregion when inconsistent
The burning of system file is carried out to burning subregion, later further according to the content of the second partition table reduction backup, by former subregion
In content backed up and restored, can avoid in the case where not formatting mobile terminal because of new partition table and former subregion
After the system file burning that table is inconsistent and may cause certain subregions can not normal use the problem of, that is, do not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is system file method for burn-recording one embodiment flow diagram provided by the invention;
Fig. 2 is another example structure schematic diagram of system file method for burn-recording provided by the invention;
Fig. 3 is system file method for burn-recording further embodiment structural schematic diagram provided by the invention;
Fig. 4 is system file burning device one embodiment structural schematic diagram provided by the invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
The embodiment of the present invention provides a kind of system file method for burn-recording applied to mobile terminal, referring to Fig. 1, of the invention
System file method for burn-recording in embodiment includes:
Step 101 compares the first partition table and whether the second partition table is consistent;
In a step 101, compare the first partition table and whether the second partition table be consistent, when consistent, enter step 102,
When there is inconsistency, 103 are entered step.
In the embodiment of the present invention, partition table is used to record position and the capacity of the practical disk of the corresponding lower layer of each subregion
Size.Wherein, above-mentioned first partition table is the currently used partition table of mobile terminal, that is, above-mentioned first partition table is for remembering
Record position and the amount of capacity of the practical disk of the corresponding lower layer of original subregion;Above-mentioned second partition table is used by this burning
Partition table, that is, above-mentioned second partition table is used to record the corresponding practical disk of lower layer of each subregion after this burning
Position and amount of capacity.
In general, be compressed in a system installation kit to the system file of burning and corresponding partition table configuration file, it should
Partition table configuration file is used to indicate the size and initial address and the system file for needing burning of each subregion.For example, for dividing
In area's table configuration file as next record:<Filename=" boot.img " label=" boot " size_in_KB="
65536.0 " start_byte_hex=" 0x18200000 "/>, what filename was indicated is the name of the system file to burning
Claim, label indicates the title of subregion, and size_in_KB indicates the size of subregion, and start_byte_hex indicates the starting of subregion
Address, thus the record indicate be the entitled boot.img of burning in boot subregion system file, the size of boot subregion is
65536kB, initial address 0x18200000;In another example in partition table configuration file as next records:<
Filename=" " label=" reserve " size_in_KB=" 1024.0 " start_byte_hex=" 0x1c200000 "/
>What is indicated is that initially programming system file, the size of the reserve subregion are not 1024kB, initial address in reserve subregion
For 0x1c200000.In the embodiment of the present invention, it can be got according to the partition table configuration file in above system installation kit
The second partition table is stated, alternatively, above-mentioned second partition table can also be pre-generated, and above-mentioned second partition table is compressed to together and is
It unites in installation kit, is not construed as limiting herein.
Step 102, determine to burning subregion, and to it is above-mentioned to burning subregion carry out system file burning;
In the embodiment of the present invention, subregion can be provided for user (such as research and development tester) and select control, so as to user
It can determine that according to the selection of user's input in a step 102 by the subregion that the subregion selects control selection to need burning
To burning subregion, further may further determine that out non-to burning subregion;Alternatively, system file selection control can be provided for user,
So that user selects control selection that the system file of burning is needed to be inputted in a step 102 according to user by the system file
Selection and step 101 in the partition table configuration file that refers to can determine that burning subregion, further may further determine that out
It is non-to burning subregion;Alternatively, in a step 102, can also default by the whole subregions for needing programming system file be determined as to
Burning subregion, is not construed as limiting herein.
It is determining after burning subregion, the burning that burning subregion carries out system file can be treated.Specifically, to subregion
The process for carrying out system file burning is referred to prior art realization, and details are not described herein again.
Step 103 is determined to burning subregion;
In the embodiment of the present invention, subregion can be provided for user (such as research and development tester) and select control, so as to user
It can determine that according to the selection of user's input in step 103 by the subregion that the subregion selects control selection to need burning
To burning subregion, further may further determine that out non-to burning subregion;Alternatively, system file selection control can be provided for user,
So that user selects control selection that the system file of burning is needed to be inputted in step 103 according to user by the system file
Selection and step 101 in the partition table configuration file that refers to can determine that burning subregion, further may further determine that out
It is non-to burning subregion;Alternatively, in step 103, can also default by the whole subregions for needing programming system file be determined as to
Burning subregion;Alternatively, can also compare above-mentioned first partition table it is consistent with above-mentioned second partition table when, further judgement on
Whether the subregion variation for stating the second partition table relative to above-mentioned first partition table meets preset influence condition, if it is determined that on meeting
Influence condition is stated, then whole subregions of programming system file will be needed to be determined as to burning subregion, if it is determined that being unsatisfactory for above-mentioned shadow
The condition of sound then exports the prompt information that instruction user's selection needs to be programmed the subregion of system file, the choosing inputted according to user
It selects determining to burning subregion and non-to burning subregion.Specifically, above-mentioned influence condition can be preset as:Above-mentioned second partition table phase
Calibration parameter (such as modem (i.e. modem) radio frequency parameter, WiFi are related to for the subregion variation of above-mentioned first partition table
Radio frequency parameter and Bluetooth RF parameter etc.), then when judge above-mentioned second partition table relative to above-mentioned first partition table subregion become
Dynamic judgement meets the influence condition when being related to above-mentioned calibration parameter, when judging above-mentioned second partition table relative to above-mentioned first point
When the subregion variation of area's table is not related to above-mentioned calibration parameter, judgement is unsatisfactory for the influence condition.Certainly, above-mentioned influence condition can also
To be set according to actual needs, such as above-mentioned influence condition is preset as:Above-mentioned second partition table is relative to above-mentioned first
Partition table subregion variation be related to other important parameters in addition to above-mentioned calibration parameter or comprising above-mentioned calibration parameter including
Some important parameters.
Step 104 backs up the content in above-mentioned mobile terminal original subregion;
At step 104, it only can need to retain content (such as the such alignment of state before burning to above-mentioned mobile terminal
Parameter and/or other more important parameters) it is backed up, alternatively, non-to burning subregion (i.e. non-selected programming system if it exists
The subregion of file) when, then can only to former storage location need to be programmed the non-content in burning subregion of system file into
Row backup.Specifically, compare above-mentioned first partition table it is consistent with above-mentioned second partition table when, further judge above-mentioned second
Whether partition table meets preset influence condition relative to the subregion variation of above-mentioned first partition table, when judgement is unsatisfactory for above-mentioned shadow
When the condition of sound, the non-content in burning subregion for needing to be programmed system file to former storage location is backed up;Work as judgement
When meeting above-mentioned influence condition, determination need to retain the content of state before burning and to the above-mentioned content that need to retain state before burning into
Row backup.Specifically, above-mentioned influence condition is referred to the description in step 104, and details are not described herein again.
Certainly, at step 104, the content in the former all subregions of above-mentioned mobile terminal can also be backed up, herein
It is not construed as limiting.
Step 105, to it is above-mentioned to burning subregion carry out system file burning;
It is determining after burning subregion, the burning that burning subregion carries out system file can be treated.Specifically, to subregion
The process for carrying out system file burning is referred to prior art realization, and details are not described herein again.
Step 106, the content that above-mentioned backup is restored according to above-mentioned second partition table.
Since above-mentioned second partition table has recorded the position of the corresponding practical disk of lower layer of each subregion after this burning
And amount of capacity reverts to corresponding subregion according to the content that above-mentioned second partition table can back up step 104 with this.
The file (subsequent that this document is known as a file) of an entitled a is backed up for example, setting in step 104, this document institute
In the entitled b (subsequent that the subregion is known as b subregion) of subregion, before this burning, the initial position of b subregion is
0x12340000, after this burning, the initial position of b subregion is 0x12340056, then in step 106, according to above-mentioned the
Two partition tables are you can learn that the initial position after this burning where b subregion is 0x12340056, and then a file is reverted to
In position where b subregion is practical after this burning.
It should be noted that the system file method for burn-recording in the embodiment of the present invention can specifically be filled by system file burning
Realization is set, which can integrate in above-mentioned mobile terminal.Above-mentioned mobile terminal be specially smart phone,
Tablet computer or other terminals for needing programming system file, are not construed as limiting herein.
Therefore in the embodiment of the present invention in programming system file newer partition table (the second partition table) and original
Whether partition table (i.e. the first partition table) is consistent, right after backing up to the content in mobile terminal original subregion when inconsistent
The burning of system file is carried out to burning subregion, later further according to the content of the second partition table reduction backup, by former subregion
In content backed up and restored, can avoid in the case where not formatting mobile terminal because of new partition table and former subregion
After the system file burning that table is inconsistent and may cause certain subregions can not normal use the problem of, that is, do not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.
Embodiment two
The difference of the embodiment of the present invention and embodiment one is that the embodiment of the present invention is in the first partition table and the second partition table
When inconsistent, further judge whether the second partition table meets preset influence item relative to the subregion variation of the first partition table
Part.Specifically, as shown in Fig. 2, the system file method for burn-recording in the embodiment of the present invention includes:
Step 201~step 202;
Wherein, step 201 and step 202 specifically can refer to step 101~step 102 description in embodiment illustrated in fig. 1,
Details are not described herein again.
Step 203, judge above-mentioned second partition table relative to above-mentioned first partition table subregion variation whether meet it is default
Influence condition;
In the embodiment of the present invention, an influence condition is preset, when above-mentioned first subregion and above-mentioned second subregion are inconsistent, is sentenced
Break above-mentioned second partition table relative to above-mentioned first partition table subregion variation whether meet the influence condition, if it is satisfied, then
204 are entered step, if conditions are not met, then entering step 205.
Specifically, above-mentioned influence condition can be preset as:Point of above-mentioned second partition table relative to above-mentioned first partition table
Area, which changes, is related to calibration parameter (such as modem (i.e. modem) radio frequency parameter, WiFi radio frequency parameter and Bluetooth RF parameter
Deng), then when judging that subregion variation of above-mentioned second partition table relative to above-mentioned first partition table is related to above-mentioned calibration parameter, sentence
Surely meet the influence condition, when judge above-mentioned second partition table relative to above-mentioned first partition table subregion variation be not related to it is above-mentioned
When calibration parameter, judgement is unsatisfactory for the influence condition.Certainly, above-mentioned influence condition can also be set according to actual needs,
Such as above-mentioned influence condition is preset as:Above-mentioned second partition table is related to relative to the subregion variation of above-mentioned first partition table except upper
State other important parameters except calibration parameter or comprising some important parameters including above-mentioned calibration parameter.
Step 204 will need whole subregions of programming system file to be determined as to burning subregion;
In step 204, when step 203 judges that above-mentioned second partition table becomes relative to the subregion of above-mentioned first partition table
It is dynamic when meeting above-mentioned influence condition, the whole subregions for needing programming system file are determined as to enter step later to burning subregion
Rapid 206.For example, waiting burning when this shares 10 system files, 8 subregions are respectively corresponded, then all by this 8 subregions
It is determined as to burning subregion, and determines not based on the selection of user (such as tester) input to burning subregion.
Step 205, output instruction user's selection need to be programmed the prompt information of the subregion of system file, defeated according to user
The selection entered is determining to burning subregion and non-to burning subregion;
In step 205, when step 203 judges that above-mentioned second partition table becomes relative to the subregion of above-mentioned first partition table
Dynamic when being unsatisfactory for above-mentioned influence condition, output instruction user's selection needs to be programmed the prompt information of the subregion of system file, root
It is determining to burning subregion and non-to burning subregion according to the selection of user's input, 206 are entered step later.For example, working as this
Share 10 system files and wait burnings, respectively correspond 8 subregions, then in step 205, output instruction user's selection need by
The prompt information of the subregion of programming system file, select to indicate user from this 8 subregions the subregion for needing burning or
Selection needs the system file of burning from this 10 system files, when user therefrom selects 3 subregions, then by user's selection
3 subregions are determined as to burning subregion, and non-selected 5 subregions of residue of user can be determined as it is non-to burning subregion, alternatively,
When user therefrom selects 8 system files to carry out burnings, then it can determine that this 8 system files are corresponding according to partition table configuration file
Subregion, and then this corresponding subregion of 8 system files is determined as to burning subregion, and will can not be determined in 8 subregions
It is determined as other subregions to burning subregion non-to burning subregion.
Step 206 backs up the content in above-mentioned mobile terminal original subregion;
In step 206, it only can need to retain content (such as the such alignment of state before burning to above-mentioned mobile terminal
Parameter and/or other more important parameters) it is backed up;Alternatively, non-to burning subregion (i.e. non-selected programming system if it exists
The subregion of file) when, then can only to former storage location need to be programmed the non-content in burning subregion of system file into
Row backup;Alternatively, needing to be programmed system file to former storage location when step 203 judgement is unsatisfactory for above-mentioned influence condition
The non-content in burning subregion backed up, when step 203 judgement meet above-mentioned influence condition when, determination need to retain burning
The content of preceding state simultaneously backs up the above-mentioned content that need to retain state before burning.
Certainly, in step 206, the content in the former all subregions of above-mentioned mobile terminal can also be backed up, herein
It is not construed as limiting.
Step 207, to it is above-mentioned to burning subregion carry out system file burning;
It is determining after burning subregion, the burning that burning subregion carries out system file can be treated.Specifically, to subregion
The process for carrying out system file burning is referred to prior art realization, and details are not described herein again.
Step 208, the content that above-mentioned backup is restored according to above-mentioned second partition table.
Since above-mentioned second partition table has recorded the position of the corresponding practical disk of lower layer of each subregion after this burning
And amount of capacity reverts to corresponding subregion according to the content that above-mentioned second partition table can back up step 206 with this.
It should be noted that the system file method for burn-recording in the embodiment of the present invention can specifically be filled by system file burning
Realization is set, which can integrate in above-mentioned mobile terminal.Above-mentioned mobile terminal be specially smart phone,
Tablet computer or other terminals for needing programming system file, are not construed as limiting herein.
Therefore in the embodiment of the present invention in programming system file newer partition table (the second partition table) and original
Whether partition table (i.e. the first partition table) is consistent, right after backing up to the content in mobile terminal original subregion when inconsistent
The burning of system file is carried out to burning subregion, later further according to the content of the second partition table reduction backup, by former subregion
In content backed up and restored, can avoid in the case where not formatting mobile terminal because of new partition table and former subregion
After the system file burning that table is inconsistent and may cause certain subregions can not normal use the problem of, that is, do not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.
Embodiment three
The difference of the embodiment of the present invention and embodiment two is that the embodiment of the present invention is judging the second partition table relative to
When the subregion variation of one partition table is unsatisfactory for preset influence condition, the subregion of unselected programming system file is further judged
Whether number and the total size of the system file of corresponding unselected burning meet local burning condition, are avoided with this not
Caused when the subregion number of selection system file is excessive and the total size of the system file of corresponding unselected burning is excessive
Longer drawback the time required to backup.Specifically, as shown in figure 3, the system file method for burn-recording in the embodiment of the present invention includes:
Step 301~step 302;
Wherein, step 301 and step 302 specifically can refer to step 101~step 102 description in embodiment illustrated in fig. 1,
Details are not described herein again.
Step 303, judge above-mentioned second partition table relative to above-mentioned first partition table subregion variation whether meet it is default
Influence condition;
In the embodiment of the present invention, an influence condition is preset, when above-mentioned first subregion and above-mentioned second subregion are inconsistent, is sentenced
Break above-mentioned second partition table relative to above-mentioned first partition table subregion variation whether meet the influence condition, if it is satisfied, then
304 are entered step, if conditions are not met, then entering step 306.
Specifically, above-mentioned influence condition can be preset as:Point of above-mentioned second partition table relative to above-mentioned first partition table
Area, which changes, is related to calibration parameter (such as modem (i.e. modem) radio frequency parameter, WiFi radio frequency parameter and Bluetooth RF parameter
Deng), then when judging that subregion variation of above-mentioned second partition table relative to above-mentioned first partition table is related to above-mentioned calibration parameter, sentence
Surely meet the influence condition, when judge above-mentioned second partition table relative to above-mentioned first partition table subregion variation be not related to it is above-mentioned
When calibration parameter, judgement is unsatisfactory for the influence condition.Certainly, above-mentioned influence condition can also be set according to actual needs,
Such as above-mentioned influence condition is preset as:Above-mentioned second partition table is related to relative to the subregion variation of above-mentioned first partition table except upper
State other important parameters except calibration parameter or comprising some important parameters including above-mentioned calibration parameter.
Step 304 will need whole subregions of programming system file to be determined as to burning subregion;
In step 304, when step 303 judges that above-mentioned second partition table becomes relative to the subregion of above-mentioned first partition table
It is dynamic when meeting above-mentioned influence condition, the whole subregions for needing programming system file are determined as to enter step later to burning subregion
Rapid 305.
Step 305, determination need to retain the content of state before burning and carry out to the above-mentioned content that need to retain state before burning
Backup.
Step 306, output instruction user's selection need to be programmed the prompt information of the subregion of system file;
Within step 306, when step 303 judges that above-mentioned second partition table becomes relative to the subregion of above-mentioned first partition table
It is dynamic that output instruction user's selection needs to be programmed the prompt information of the subregion of system file when being unsatisfactory for above-mentioned influence condition, with
Just user's selection needs the system file of burning or needs the subregion of programming system file.
Step 307, the subregion number for judging unselected programming system file and corresponding unselected burning are
Whether the total size of system file meets local burning condition;
When inputting selection under instruction of the user in the prompt information that step 306 exports, unselected programming system is judged
Whether the subregion number of file and the total size of the system file of corresponding unselected burning meet local burning condition, when
When judgement meets above-mentioned burning condition, 308 are entered step, when determining to be unsatisfactory for above-mentioned burning condition, enters step 304.
Wherein, above-mentioned local burning condition is that the subregion number of unselected programming system file is less than the preset number of partitions
The total size for measuring threshold value and the system file of unselected burning is less than preset file size threshold value.For example, setting above-mentioned
Number of partitions threshold value is 4, and above-mentioned file size threshold value is 100MB (MB is Mbytes), when unselected programming system file
Subregion number less than 4 and the system file of corresponding unselected burning always be less than 100MB when, that is, determine meet above-mentioned part
Otherwise burning condition determines to be unsatisfactory for above-mentioned local burning condition.
Step 308 will be determined as by the subregion of selection programming system file to burning subregion.
Step 309, the non-content in burning subregion for needing to be programmed system file to former storage location back up.
Step 310, to it is above-mentioned to burning subregion carry out system file burning;
It is determining after burning subregion, the burning that burning subregion carries out system file can be treated.Specifically, to subregion
The process for carrying out system file burning is referred to prior art realization, and details are not described herein again.
Step 311, the content that above-mentioned backup is restored according to above-mentioned second partition table.
Since above-mentioned second partition table has recorded the position of the corresponding practical disk of lower layer of each subregion after this burning
And amount of capacity can be reverted to the content that step 305 or 309 back up according to above-mentioned second partition table corresponding with this
Subregion.
It should be noted that determining to be unsatisfactory for above-mentioned influence condition and determining to be unsatisfactory for above-mentioned office in the embodiment of the present invention
It is that determination need to retain the content of state before burning and back up to the content when portion's burning condition.In other embodiments, when
It, can also be to above-mentioned mobile terminal original institute when judgement is unsatisfactory for above-mentioned influence condition and determines to be unsatisfactory for above-mentioned local burning condition
There are interior perhaps other contents in subregion to be backed up.
It should be noted that the system file method for burn-recording in the embodiment of the present invention can specifically be filled by system file burning
Realization is set, which can integrate in above-mentioned mobile terminal.Above-mentioned mobile terminal be specially smart phone,
Tablet computer or other terminals for needing programming system file, are not construed as limiting herein.
Therefore in the embodiment of the present invention in programming system file newer partition table (the second partition table) and original
Whether partition table (i.e. the first partition table) is consistent, right after backing up to the content in mobile terminal original subregion when inconsistent
The burning of system file is carried out to burning subregion, later further according to the content of the second partition table reduction backup, by former subregion
In content backed up and restored, can avoid in the case where not formatting mobile terminal because of new partition table and former subregion
After the system file burning that table is inconsistent and may cause certain subregions can not normal use the problem of, that is, do not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.The embodiment of the present invention is being sentenced
When disconnected second partition table is unsatisfactory for preset influence condition relative to the subregion variation of the first partition table, further judgement is not chosen
Whether the total size for selecting the subregion number of programming system file and the system file of corresponding unselected burning meets part
Whole subregions are determined as carrying out complete burning to burning subregion by burning condition when determining to be unsatisfactory for local burning condition, with
This is avoided because the subregion number of unselected system file is excessive and the total size of the system file of corresponding unselected burning
Lead to longer drawback the time required to backup when excessive, improves burning efficiency.
Example IV
The embodiment of the present invention also provides a kind of system file burning device applied to mobile terminal, referring to Fig. 4, this hair
System file burning device 400 in bright embodiment includes:
Comparing unit 401, it is whether consistent for comparing the first partition table and the second partition table, wherein above-mentioned first subregion
Table is the currently used partition table of mobile terminal, and above-mentioned second partition table is partition table used in this burning;
First determination unit 402, for determining to burning subregion when the comparison result of comparing unit 401 is consistent;
First burning unit 403, the burning that system file is carried out to burning subregion for being determined to the first determination unit 402
Record;
Second determination unit 404, for determining to burning subregion when the comparison result of comparing unit 401 is inconsistent;
Backup units 405, for being backed up to the content in above-mentioned mobile terminal original subregion;
Second burning unit 406, for determining the determining burning for carrying out system file to burning subregion of Unit 404 to second
Record;
Reduction unit 407, for restoring the content that backup units 405 back up according to above-mentioned second partition table.
Optionally, the second determination unit 404 specifically includes:Judging unit, for judge above-mentioned second partition table relative to
Whether the subregion variation of above-mentioned first partition table meets preset influence condition;First sub- determination unit, for working as above-mentioned judgement
When unit judgement meets above-mentioned influence condition, whole subregions of programming system file will be needed to be determined as to burning subregion;Output
Unit, for when the judgement of above-mentioned judging unit is unsatisfactory for above-mentioned influence condition, output to indicate that user selects to need to be programmed to be
The prompt information of the subregion of system file;Second sub- determination unit, selection for being inputted according to user determine to burning subregion and
It is non-to burning subregion.
Further, backup units 402 are specifically used for:It is right when the judgement of above-mentioned judging unit is unsatisfactory for above-mentioned influence condition
The non-content in burning subregion that former storage location needs to be programmed system file is backed up;When above-mentioned judging unit determines
When meeting above-mentioned influence condition, determination need to retain the content of state before burning and to the above-mentioned content that need to retain state before burning into
Row backup.
Further, the second sub- determination unit 404 is specifically used for:Judge the subregion number of unselected programming system file with
And whether the total size of the system file of corresponding unselected burning meets local burning condition, wherein above-mentioned part burning
Condition be the subregion number of unselected programming system file be less than preset number of partitions threshold value and unselected burning be
The total size of system file is less than preset file size threshold value;If it is determined that meeting above-mentioned local burning condition, then will be burnt by selection
The subregion of recording system file is determined as to burning subregion;If it is determined that being unsatisfactory for above-mentioned local burning condition, then burning system will be needed
Whole subregions of system file are determined as to burning subregion;Backup units 402 are specifically used for:When the judgement of above-mentioned judging unit is unsatisfactory for
Above-mentioned influence condition and when above-mentioned second sub- determination unit judgement meets above-mentioned local burning condition, to former storage location need by
The non-content in burning subregion of programming system file is backed up.
Further, backup units 402 are specifically also used to:When above-mentioned judging unit judgement be unsatisfactory for above-mentioned influence condition and on
When stating the second sub- determination unit judgement and being unsatisfactory for above-mentioned local burning condition, determination need to retain before burning the content of state and to upper
The content for stating state before need to retaining burning is backed up.
It should be noted that the system file burning device in the embodiment of the present invention can integrate in above-mentioned mobile terminal
In.Above-mentioned mobile terminal is specially smart phone, tablet computer or other terminals for needing programming system file, is not limited herein
It is fixed.
It should be understood that the function of each functional module of the system file burning device in the embodiment of the present invention can be according to upper
The method specific implementation in embodiment of the method is stated, specific implementation process can refer to the associated description in above method embodiment,
Details are not described herein again.
Therefore in the embodiment of the present invention in programming system file newer partition table (the second partition table) and original
Whether partition table (i.e. the first partition table) is consistent, right after backing up to the content in mobile terminal original subregion when inconsistent
The burning of system file is carried out to burning subregion, later further according to the content of the second partition table reduction backup, by former subregion
In content backed up and restored, can avoid in the case where not formatting mobile terminal because of new partition table and former subregion
After the system file burning that table is inconsistent and may cause certain subregions can not normal use the problem of, that is, do not formatting shifting
Dynamic terminal and guarantee that subregion can realize the burning to system file under the premise of normal use.
In several embodiments provided herein, it should be understood that disclosed system and method can pass through it
Its mode is realized.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair
Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The above are to provided by the present invention a kind of applied to the system file method for burn-recording of mobile terminal and retouching for device
It states, for those of ordinary skill in the art, thought according to an embodiment of the present invention, in specific embodiments and applications
There will be changes, and to sum up, the contents of this specification are not to be construed as limiting the invention.
Claims (8)
1. a kind of system file method for burn-recording applied to mobile terminal, which is characterized in that including:
Compare the first partition table and whether the second partition table is consistent, wherein first partition table is that mobile terminal is currently used
Partition table, second partition table be this burning used in partition table;
If consistent,:
It determines to burning subregion, and to the burning for carrying out system file to burning subregion;
If inconsistent,:
It determines to burning subregion;
Content in the mobile terminal original subregion is backed up;
To the burning for carrying out system file to burning subregion;
The content of the backup is restored according to second partition table;
When first partition table and inconsistent second partition table, the determination includes to burning subregion:
Judge whether second partition table meets preset influence condition, institute relative to the subregion variation of first partition table
Stating influence condition is:Second partition table is related to calibration parameter relative to the subregion variation of first partition table;
If it is determined that meeting the influence condition, then whole subregions of programming system file will be needed to be determined as to burning subregion;
If it is determined that being unsatisfactory for the influence condition, then the prompt that instruction user's selection needs to be programmed the subregion of system file is exported
Information, it is determining to burning subregion and non-to burning subregion according to the selection of user's input.
2. system according to claim 1 burning file method, which is characterized in that described to the mobile terminal original subregion
In content backed up, including:When determining to be unsatisfactory for the influence condition, need to be programmed system text to former storage location
The non-content in burning subregion of part is backed up;When determining to meet the influence condition, determination need to retain shape before burning
The content of state simultaneously backs up the content that need to retain state before burning.
3. system file method for burn-recording according to claim 2, which is characterized in that the selection according to user's input is true
It is fixed to burning subregion and non-to burning subregion, including:
Judge the total big of the subregion number of unselected programming system file and the system file of corresponding unselected burning
It is small whether to meet local burning condition, wherein the part burning condition is the subregion number of unselected programming system file
Less than preset number of partitions threshold value and the total size of the system file of unselected burning is less than preset file size threshold value;
If it is determined that meeting the local burning condition, then will be determined as by the subregion of selection programming system file to burning subregion;
If it is determined that being unsatisfactory for the local burning condition, then the whole subregions for needing programming system file are determined as to burning point
Area;
It is described when determining to be unsatisfactory for the influence condition, need to be programmed the non-to burning point of system file to former storage location
Content in area is backed up, specially:
When determining to be unsatisfactory for the influence condition and determine to meet the local burning condition, former storage location needs are burnt
The non-content in burning subregion of recording system file is backed up.
4. system file method for burn-recording according to claim 3, which is characterized in that described to the mobile terminal original subregion
In content backed up, including:
When determining to be unsatisfactory for the influence condition and determine to be unsatisfactory for the local burning condition, determination need to retain shape before burning
The content of state simultaneously backs up the content that need to retain state before burning.
5. a kind of system file burning device applied to mobile terminal, which is characterized in that including:
Comparing unit, it is whether consistent for comparing the first partition table and the second partition table, wherein first partition table is movement
The currently used partition table of terminal, second partition table are partition table used in this burning;
First determination unit, for determining to burning subregion when the comparison result of the comparing unit is consistent;
First burning unit, the burning that system file is carried out to burning subregion for being determined to first determination unit;
Second determination unit, for when the comparison result of the comparing unit is inconsistent, determining to burning subregion,
Second determination unit specifically includes:
Judging unit, for judge second partition table relative to first partition table subregion variation whether meet it is default
Influence condition, the influence condition is:Second partition table is related to school relative to the subregion variation of first partition table
Quasi- parameter;
First sub- determination unit, for programming system will be needed literary when judging unit judgement meets the influence condition
Whole subregions of part are determined as to burning subregion;
Output unit, for when judging unit judgement is unsatisfactory for the influence condition, output instruction user to select to need
It is programmed the prompt information of the subregion of system file;
Second sub- determination unit, the selection for being inputted according to user are determining to burning subregion and non-to burning subregion;
Backup units, for being backed up to the content in the mobile terminal original subregion;
Second burning unit, the burning that system file is carried out to burning subregion for being determined to second determination unit;
Reduction unit, for restoring the content of the backup units backup according to second partition table.
6. system file burning device according to claim 5, which is characterized in that the backup units are specifically used for:When
When the judging unit judgement is unsatisfactory for the influence condition, need to be programmed the non-to burning of system file to former storage location
Content in subregion is backed up;When judging unit judgement meets the influence condition, determination need to retain shape before burning
The content of state simultaneously backs up the content that need to retain state before burning.
7. system file burning device according to claim 6, which is characterized in that the second sub- determination unit is specifically used
In:Judge the total size of the subregion number of unselected programming system file and the system file of corresponding unselected burning
Whether local burning condition is met, wherein the part burning condition is that the subregion number of unselected programming system file is small
In preset number of partitions threshold value and the total size of the system file of unselected burning is less than preset file size threshold value;If
Judgement meets the local burning condition, then will be determined as by the subregion of selection programming system file to burning subregion;If it is determined that
It is unsatisfactory for the local burning condition, then whole subregions of programming system file will be needed to be determined as to burning subregion;
The backup units are specifically used for:When judging unit judgement is unsatisfactory for the influence condition and the second son determination
When unit judgement meets the local burning condition, need to be programmed the non-to in burning subregion of system file to former storage location
Content backed up.
8. system file burning device according to claim 7, which is characterized in that
The backup units are specifically also used to:When judging unit judgement is unsatisfactory for the influence condition and second son really
When the judgement of order member is unsatisfactory for the local burning condition, determination need to retain the content of state before burning and need to retain burning to described
The content of state is backed up before recording.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610357615.9A CN105955851B (en) | 2016-05-25 | 2016-05-25 | System file method for burn-recording and device applied to mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610357615.9A CN105955851B (en) | 2016-05-25 | 2016-05-25 | System file method for burn-recording and device applied to mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105955851A CN105955851A (en) | 2016-09-21 |
CN105955851B true CN105955851B (en) | 2018-11-27 |
Family
ID=56910680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610357615.9A Expired - Fee Related CN105955851B (en) | 2016-05-25 | 2016-05-25 | System file method for burn-recording and device applied to mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105955851B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112114880A (en) * | 2020-08-07 | 2020-12-22 | 深圳市鼎盛光电有限公司 | Configuration method and device of smart television, smart television and storage medium |
CN112233727B (en) * | 2020-10-29 | 2024-01-26 | 北京诺禾致源科技股份有限公司 | Data partition storage method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176824A (en) * | 2013-03-15 | 2013-06-26 | 青岛海信移动通信技术股份有限公司 | System upgrade method and system upgrade device |
CN103473099A (en) * | 2013-09-13 | 2013-12-25 | 惠州Tcl移动通信有限公司 | Software upgrading method and system for mobile terminal |
CN104123158A (en) * | 2014-07-17 | 2014-10-29 | 杭州古北电子科技有限公司 | WIFI module burning method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140039756A (en) * | 2012-09-25 | 2014-04-02 | 에스케이하이닉스 주식회사 | Data storage device and operating method thereof |
-
2016
- 2016-05-25 CN CN201610357615.9A patent/CN105955851B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103176824A (en) * | 2013-03-15 | 2013-06-26 | 青岛海信移动通信技术股份有限公司 | System upgrade method and system upgrade device |
CN103473099A (en) * | 2013-09-13 | 2013-12-25 | 惠州Tcl移动通信有限公司 | Software upgrading method and system for mobile terminal |
CN104123158A (en) * | 2014-07-17 | 2014-10-29 | 杭州古北电子科技有限公司 | WIFI module burning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105955851A (en) | 2016-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103309797B (en) | User interface automated testing method and device | |
CN103309559B (en) | A kind of control inerface application drawing calibration method and terminal | |
CN104915268A (en) | Desktop layout storage and recovery method and device thereof, terminal equipment and system | |
CN103607494B (en) | The method in a kind of automated terminal test at times cruising time and terminal | |
CN109634607A (en) | A kind of method and device of Code automatic build | |
CN109542911B (en) | Metadata organization method, system, equipment and computer readable storage medium | |
US10877885B2 (en) | Electronic device data operation method and electronic device for improved electronic device storage | |
CN102223448A (en) | Information prompt method and device and terminal | |
CN109885476A (en) | Automated testing method and device, terminal and computer readable storage medium | |
CN105955851B (en) | System file method for burn-recording and device applied to mobile terminal | |
CN109189384A (en) | A kind of multiplexing method and device of code | |
CN101311896A (en) | Computer system possessing multipurpose desktop | |
CN103605617A (en) | Method and device for recording changes in stored data | |
CN104615459B (en) | A kind of MoCA device parameters collocation method and device | |
CN100367237C (en) | Method and program for writing process of file information | |
CN110488976A (en) | Function management method, apparatus, equipment and storage medium | |
CN108897584B (en) | Application starting method and device and intelligent terminal | |
CN116560985B (en) | Chip equipment test control method, upper computer, equipment and medium | |
CN103885664B (en) | Desktop file mapping method and desktop file mapping system | |
CN109376073B (en) | Test environment memory and recovery method | |
CN105138502B (en) | A method of identification duplication object simultaneously collects data | |
CN1968301B (en) | Method and device for synchronous address book data storage in mobile device | |
CN105653123A (en) | Icon grouping method and terminal equipment | |
CN110704051B (en) | Unity interface data binding method | |
CN102237115A (en) | Test method and corresponding test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181127 |