CN107133062A - A kind of data processing method and terminal - Google Patents
A kind of data processing method and terminal Download PDFInfo
- Publication number
- CN107133062A CN107133062A CN201710129759.3A CN201710129759A CN107133062A CN 107133062 A CN107133062 A CN 107133062A CN 201710129759 A CN201710129759 A CN 201710129759A CN 107133062 A CN107133062 A CN 107133062A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- partition
- partition table
- needing
- terminals
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Abstract
The embodiment of the invention discloses a kind of data processing method and terminal, wherein this method includes:Receive sign on;The partition table for the upgrading software kit for needing the partition table of upgrading terminals and being configured is obtained according to sign on;Contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit configured;If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, the nonproductive data partition for needing upgrading terminals is formatted according to the partition table of upgrading terminals is needed.In escalation process, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast, if needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, only the nonproductive data partition for needing upgrading terminals is formatted, rather than the total data subregion for needing upgrading terminals is handled, so as to improve upgrading efficiency.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of data processing method and terminal.
Background technology
At present, be required for greatly just can user oriented by a software upgrading for mobile intelligent terminal.The software upgrade process
It is by production software upgrading to user software, i.e. brush machine process.Further, in brush machine, it is necessary to retain creation data data
Content, such as RF calibration data, can just ensure that terminal is normally used in user.
But, it is necessary to the processing, consumption such as data partition all in terminal is formatted during current brush machine
When it is longer, upgrade it is less efficient.
The content of the invention
The embodiment of the present invention provides a kind of data processing method and terminal, to improve upgrading efficiency.
The embodiments of the invention provide a kind of data processing method, including:
Receive sign on;
The partition table for the upgrading software kit for needing the partition table of upgrading terminals and being configured is obtained according to sign on;
Contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit configured;
If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, according to needing upgrading terminals
Partition table the nonproductive data partition for needing upgrading terminals is formatted.
The embodiments of the invention provide a kind of terminal, including:
Receiving unit, for receiving sign on;
Acquiring unit, the upgrading software kit for needing the partition table of upgrading terminals for being obtained according to sign on and being configured
Partition table;
Comparison unit, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed for contrasting;
Processing unit, if for needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured,
The nonproductive data partition for needing upgrading terminals is formatted according to the partition table of upgrading terminals is needed.
The embodiment of the present invention, by receiving sign on, being obtained according to sign on needs partition table and the institute of upgrading terminals
The partition table of the upgrading software kit of configuration, contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit configured,
If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, according to needing the partition table of upgrading terminals
The nonproductive data partition for needing upgrading terminals is formatted;In escalation process, the subregion of upgrading terminals is needed by contrast
The partition table of table and the upgrading software kit configured, if needing the subregion of the partition table of upgrading terminals and the upgrading software kit configured
Table is consistent, and only the nonproductive data partition for needing upgrading terminals is formatted, rather than to needing the total data of upgrading terminals
Subregion is handled, so as to improve upgrading efficiency.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet for data processing method that first embodiment of the invention is provided;
Fig. 2 is a kind of schematic flow sheet for data processing method that second embodiment of the invention is provided;
Fig. 3 is a kind of schematic flow sheet for data processing method that third embodiment of the invention is provided;
Fig. 4 is a kind of structural representation for terminal that first embodiment of the invention is provided;
Fig. 5 is a kind of structural representation for terminal that second embodiment of the invention is provided;
Fig. 6 is a kind of structural representation for terminal that third embodiment of the invention is provided;
Fig. 7 is a kind of structural representation for terminal that fourth embodiment of the invention is provided;
Fig. 8 is the structural representation for the system that first embodiment of the invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated
Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combination, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch
Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Fig. 1 is refer to, is the schematic flow sheet for the data processing method that first embodiment of the invention is provided, as illustrated,
This method may comprise steps of:
S101, receives sign on.
During brush machine, first setting up needs the upgrading terminals (can be mobile terminal, such as mobile phone) (can be with upgrading terminals
Computer) communication connection, and the download port for needing upgrading terminals is reported into computer.Afterwards, user's operating computer is to send out
Begin to instruct, instrument receives the sign on.It should be noted that the instrument is, for terminal staging, to be installed on upgrading terminals.
S102, the subregion for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with is obtained according to sign on
Table.
Instrument is received after sign on, and acquisition needs the partition table of upgrading terminals, is designated as table 1, instrument can also be obtained in advance
The partition table of the upgrading software kit of configuration, is designated as table 2.Wherein, Tables 1 and 2 includes creation data partition information, nonproductive number
According to partition information and user data partition information.The partition information can be the title of data partition, but not limited to this.Production
Data partition be for preserving creation data content, include creation data example partitions modemst1, modemst2,
Fsg etc., but it is not limited only to this;Nonproductive data partition is the nonproductive data partition example for the content that maintains system data
Property including boot, system, userdata etc., but be not limited only to this;User data subregion is needed for preserving user's use
Produced user data during upgrading terminals.Further, the difference of table 1 and table 2 is included but are not limited to:Produce number
According to partition content and the difference of system data content.By taking system data content as an example, what nonproductive data partition was preserved in table 1 is
System data content is that the system data content of nonproductive data partition preservation in first version, table 2 is the second edition.
S103, contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit being pre-configured with.
S104, if needing the partition table of upgrading terminals consistent with the partition table for the upgrading software kit being pre-configured with, according to need
The partition table of upgrading terminals is formatted to the nonproductive data area for needing upgrading terminals.
Whether the initial address for contrasting creation data subregion in Tables 1 and 2 is consistent with length, if initial address or length are not
Unanimously, then show that Tables 1 and 2 is consistent, nonproductive data partition boot, system, userdata in table 1 extracted,
And only nonproductive data partition boot, system, userdata are formatted, without to creation data subregion
Modemst1, modemst2, fsg are formatted.
The embodiment of the present invention, by receiving sign on, being obtained according to sign on needs partition table and the institute of upgrading terminals
The partition table of the upgrading software kit of configuration, contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit configured,
If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, then according to needing the subregion of upgrading terminals
Table is formatted to the nonproductive data partition for needing upgrading terminals.In escalation process, point of upgrading terminals is needed by contrast
The partition table of area's table and the upgrading software kit configured, if needing point of the partition table of upgrading terminals and the upgrading software kit configured
Area's table is consistent, and only the nonproductive data partition for needing upgrading terminals is formatted, rather than to needing whole numbers of upgrading terminals
Handled according to subregion, so as to improve upgrading efficiency.
Fig. 2 is refer to, is the schematic flow sheet for the data processing method that second embodiment of the invention is provided, as illustrated,
This method may comprise steps of:
S201, receives sign on.
Brush machine process includes preparatory stage and update phase.In the preparatory stage, manual reserved partition the mode option is set simultaneously
Selection upgrading software kit.Exemplarily include in manual reserved partition the mode option three creation data subregion modemst1,
Modemst2 and fsg, but it is not limited only to this.Complete after the preparatory stage, into update phase:First setting up needs upgrading terminals (can be with
Mobile terminal) with the communication connections of upgrading terminals (can be computer), and the download port for needing upgrading terminals is reported into liter
Level terminal.Afterwards, user's operating computer is to send sign on, and instrument receives the sign on.It should be noted that the instrument
It is, for terminal staging, to be installed on upgrading terminals.
S202, the subregion for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with is obtained according to sign on
Table.
Instrument is received after sign on, and acquisition needs the partition table of upgrading terminals, is designated as table 1, instrument can also be obtained in advance
The partition table of the upgrading software kit of configuration, is designated as table 2.Wherein, Tables 1 and 2 includes creation data partition information, mitogenetic production number
According to partition information and user data partition information.The partition information can be the title of data partition, but not limited to this.Production
Data partition be for preserving creation data content, include creation data example partitions modemst1, modemst2,
Fsg etc., but it is not limited only to this;Nonproductive data partition is the nonproductive data partition example for the content that maintains system data
Property including boot, system, userdata etc., but be not limited only to this;User data subregion is needed for preserving user's use
Produced user data during upgrading terminals.Further, the difference of table 1 and table 2 is included but are not limited to:Produce number
According to partition content and the difference of system data content.By taking system data content as an example, what nonproductive data partition was preserved in table 1 is
System data content is that the system data content of nonproductive data partition preservation in first version, table 2 is the second edition.
Whether S203, judge to need the partition table of upgrading terminals consistent with the partition table for the upgrading software kit being pre-configured with, if
Unanimously, step S204 is performed, conversely, performing step S205.
Whether the initial address for contrasting creation data subregion in Tables 1 and 2 is consistent with length, if initial address or length one
Cause, then show that Tables 1 and 2 is consistent, perform step S204, conversely, then showing that Tables 1 and 2 is inconsistent, perform step S205.
S204, is formatted according to the partition table of upgrading terminals is needed to the nonproductive data partition for needing upgrading terminals.
The memory of upgrading terminals is needed to include but are not limited to creation data subregion, nonproductive data partition and number of users
According to partitioned areas such as subregions.When table 1 is consistent with table 2, by nonproductive data partition boot, system, userdata in table 1
Extract, and only nonproductive data partition boot, system, userdata are formatted.
S205, is backed up and is reduced to the creation data subregion for needing upgrading terminals according to the partition table of upgrading terminals is needed.
When table 1 and table 2 are inconsistent, creation data subregion modemst1, modemst2, fsg in table 1 are backed up
And reduction.
Wherein, the creation data subregion in table 1 is backed up and to reduce idiographic flow as follows:
Instrument is obtained according to sign on after the partition table (i.e. table 1) for needing upgrading terminals, and table 1 can be shown in the aobvious of computer
In display screen, user from the table 1 manually selection need back up and reduce creation data subregion (modemst1, modemst2,
fsg).Further, instrument is according to the selection of user, obtains three creation data subregions modemst1, modemst2, fsg
Partition value, the partition value combination table 1 is to generate backup production data content table.Then, according to backup production data content table, read
The creation data content in three creation data subregions modemst1, modemst2, fsg is taken, and the content is saved in needs to rise
The terminal of level, i.e. backup production data content.Afterwards, instrument is formatted to the partitioned area for needing upgrading terminals.Finally, root
According to three creation data subregions modemst1, modemst2, fsg partition value and need the partition table of upgrading terminals, can generate also
Original production data content table.Further, according to restoring data table of contents, creation data content is preserved to needing upgrading terminals
Target creation data partitioned area, so as to realize the reduction of creation data content.It should be noted that target creation data subregion
Region is according to determined by the partition table of the upgrading software kit pre-set, to refer to entering the creation data content after backup
The address of row reduction.It should be noted that creation data content is the content being had to back up during brush machine, it is to ensure
User normally uses the content of mobile terminal, and it includes:RF calibration data, International Mobile Equipment Identity code
(International Mobile Equipment Identity, IMEI), mobile device identification code (Mobile
Equipment Identifier, MEID) etc..
S206, downloads the image files of all subregions to needing upgrading terminals.
Instrument downloads all subregions by download port (can include but are not limited to creation data subregion, nonproductive number
According to subregion and user data subregion) image file to needing upgrading terminals.
S207, regeneration block table, which is sent to, needs upgrading terminals.
Wherein, regeneration block table is determined according to the partition table of the upgrading software kit pre-set.Specifically, in brush machine
Preparatory stage, in addition to needing to set automatic reserved partition pattern, in addition it is also necessary to selection upgrading software kit.Select the upgrading software
After bag, regeneration block table has just been obtained.After the reduction of creation data is completed, the regeneration block table can be sent to by instrument
The terminal that need to upgrade, the terminal that need to upgrade according to regeneration block table loading system data content and user data content etc., from
And complete the upgrading of terminal and ensure normally using after upgrading.It should be noted that regeneration block table exemplarily includes
But it is not limited only to creation data partition directory, nonproductive data partition catalogue and user data partition directory.In the standard of brush machine
Standby stage, regeneration block table is obtained with the form that can be upgraded terminal recognition by instrument, after the reduction of creation data is completed,
Regeneration block table is can need the form of terminal recognition of upgrading to be sent to the terminal that need to upgrade by instrument.
The embodiment of the present invention, first receives sign on to obtain the upgrading software for needing the partition table of upgrading terminals and being configured
The partition table of bag, then two partition tables are compared, if two partition tables are compared out unanimously, only to needing the nonproductive data of upgrading terminals
Subregion is formatted, if inconsistent, and creation data subregion is backed up, whole partitioned areas and also original production is formatted
Data.In escalation process, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast, if needing
The partition table of upgrading terminals is consistent with the partition table of the upgrading software kit configured, only to needing the nonproductive data point of upgrading terminals
Area is formatted rather than the total data subregion for needing upgrading terminals is handled, so as to improve upgrading efficiency.
In addition, also downloading the image file for needing upgrading terminals to before needing upgrading terminals in the present embodiment, complete to life
The reduction of data content is produced, so as to reduce the loss probability of creation data content, it is ensured that need the creation data of upgrading terminals
The safety of content.
Fig. 3 is refer to, is the schematic flow sheet for the data processing method that third embodiment of the invention is provided, as illustrated,
This method may comprise steps of:
S301, pre-sets the configuration parameter of creation data subregion, and the configuration parameter is according to automatic reserved partition pattern
The option value and interface function of option go what is set.
Brush machine process includes preparatory stage and update phase.In the preparatory stage, an automatic reserved partition the mode option is set.
=it should be noted that==illustratively includes three creation data subregions in=automatic reserved partition the mode option
Modemst1, modemst2 and fsg, but it is not limited only to this.The configuration parameter refers to creation data subregion in the present embodiment
Modemst1, modemst2, fsg partition value, but it is not limited only to this.
After automatic reserved partition the mode option is set, upgrade start when, the option of automatic reserved partition the mode option
Value will be passed into the dispensing unit to instrument as the download option parameter.When escalation process proceeds to creation data backup
During the stage, the backup partition data unit of instrument will detect dispensing unit, there is above-mentioned parameter (i.e. if detecting in dispensing unit
The option value of automatic reserved partition the mode option), then automatically produce number by three by backing up the interface function of partition data
According to the incoming backup partition data unit of subregion modemst1, modemst2, fsg partition value.So far, creation data point is completed
The setting of the configuration parameter in area.In escalation process next time, the configuration parameter that instrument need to only be pre-set according to this just can be complete
Into escalation process.
S302, receives sign on.
In escalation process, first setting up needs upgrading terminals (can be mobile terminal=) and upgrading terminals (can be computer)
Between communication connection, and the download port for needing upgrading terminals is reported into upgrading terminals.Afterwards, user's operating computer is to send
Sign on, instrument receives the sign on.
S303, the subregion for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with is obtained according to sign on
Table.
Instrument is received after sign on, and acquisition needs the partition table of upgrading terminals, is designated as table 1, instrument can also be obtained in advance
The partition table of the upgrading software kit of configuration, is designated as table 2.Wherein, Tables 1 and 2 includes creation data subregion, point creation data point
Area and user data subregion.Creation data subregion is the creation data example partitions for preserving creation data content
Including modemst1, modemst2, fsg etc., but it is not limited only to this;Nonproductive data partition is to be used for the content that maintains system data
, nonproductive data partition is exemplarily including boot, system, userdata etc., but be not limited only to this;User data subregion
It is to use the user data produced by needing during upgrading terminals for preserving user.Further, the difference of table 1 and table 2
Include but are not limited to:The difference of creation data partition content and system data content.By taking system data content as an example, in table 1
The system data content that nonproductive data partition is preserved is the system data of nonproductive data partition preservation in first version, table 2
Content is the second edition.
Whether S304, judge to need the partition table of upgrading terminals consistent with the partition table for the upgrading software kit being pre-configured with, if
Unanimously, step S305 is performed, conversely, performing step S306.
Whether the initial address for contrasting creation data subregion in Tables 1 and 2 is consistent with length, if initial address or length one
Cause, then show that Tables 1 and 2 is consistent, perform step S305, conversely, then showing that Tables 1 and 2 is inconsistent, perform step S306.
S305, is formatted according to the partition table of upgrading terminals is needed to the nonproductive data partition for needing upgrading terminals.
The memory of upgrading terminals is needed to include but are not limited to creation data subregion, nonproductive data partition and number of users
According to partitioned areas such as subregions.When table 1 is consistent with table 2, by nonproductive data partition boot, system, userdata in table 1
Extract, and only nonproductive data partition boot, system, userdata are formatted, without to creation data point
Modemst1, modemst2, fsg are formatted in area.
S306, according to the configuration parameter of the creation data subregion pre-set and needs the partition table of upgrading terminals, generates standby
Part creation data table of contents and reduction creation data table of contents.
The configuration parameter refers to creation data subregion modemst1, modemst2, fsg subregion in the present embodiment
Value, but it is not limited only to this.According to three partition values and need the partition table of upgrading terminals, can generate backup production data content table and
Reduce creation data table of contents.The creation data subregion for needing to back up is recorded in the backup production data content table, referred to
Be creation data subregion modemst1, modemst2, fsg.
S307, is backed up according to backup production data content table to creation data content.
Specifically, according to backup production data content table, read three creation data subregion modemst1, modemst2,
Creation data content in fsg, and the content is saved in the terminal that need to upgrade, i.e. backup production data content.Need explanation
, creation data content is the content being had to back up during brush machine, is that can ensure that user normally uses mobile terminal
Content, it includes:RF calibration data, International Mobile Equipment Identity code (International Mobile Equipment
Identity, IMEI), mobile device identification code (Mobile Equipment Identifier, MEID) etc..
S308, is reduced according to reduction creation data table of contents to the creation data content of backup.
The creation data subregion for needing to reduce is recorded in the reduction creation data table of contents, what is be referred to is production number
According to subregion modemst1, modemst2, fsg.Further, according to the partition table of the upgrading software kit pre-set, it may be determined that
Target creation data partitioned area.Determine after restoring data table of contents and target creation data partitioned area, instrument is to needing to rise
The partitioned area of level terminal is formatted, then creation data content is preserved to needing the target creation data subregion of upgrading terminals
Region, so as to realize the reduction of creation data content.It should be noted that target creation data partitioned area refers to backing up
The address that creation data content afterwards is reduced.
S309, downloads the image files of all subregions to needing upgrading terminals.
Instrument downloads all subregions by download port (can include but are not limited to creation data subregion, nonproductive number
According to subregion and user data subregion) image file to needing upgrading terminals.
S310, regeneration block table, which is sent to, needs upgrading terminals.
After the reduction for completing creation data, instrument is first determined more according to the partition table of the upgrading software kit pre-set
New partition table, then regeneration block table is sent to the terminal that need to upgrade, so as to complete whole escalation process.It should be noted that
The detailed process of the step refer to step S207.
The embodiment of the present invention, receives sign on, and being obtained according to sign on needs the partition table of upgrading terminals and configured
Upgrading software kit partition table, contrast need upgrading terminals partition table and configured upgrading software kit partition table, if need
The partition table of upgrading terminals is consistent with the partition table of the upgrading software kit configured, then according to needing the partition table of upgrading terminals to need
The nonproductive data partition of upgrading terminals is formatted;If needing the partition table of upgrading terminals and the upgrading software kit configured
Partition table is inconsistent, then creation data subregion is backed up and reduced.In escalation process, upgrading terminals are needed by contrast
The partition table of partition table and the upgrading software kit configured, if needing the partition table of upgrading terminals and the upgrading software kit configured
Partition table is consistent, and only the nonproductive data partition for needing upgrading terminals is formatted, rather than to needing the whole of upgrading terminals
Data partition is handled, so as to improve upgrading efficiency.
In addition, also downloading the image file for needing upgrading terminals to before needing upgrading terminals in the present embodiment, complete to life
The reduction of data content is produced, so as to reduce the loss probability of creation data content, it is ensured that need the creation data of upgrading terminals
The safety of content.
In addition, in this implementation, in backup procedure, the configuration parameter of creation data subregion is pre-set, only need straight
Connect and call, without manual configuration, so as to reduce error probability, improve the accuracy of data backup and reduction, it is ensured that
Success rate for upgrading, and then ensure that the normal using terminal of user.Further, the backup procedure is reduced in escalation process manually
The step of configuration so that without pausing in escalation process, so as to improve the efficiency of data backup and upgrading.
Fig. 4 is refer to, is the structural representation for the terminal that first embodiment of the invention is provided, as illustrated, the terminal can
With including:
Receiving unit 10, for receiving sign on;
Acquiring unit 11, for obtaining the partition table for needing upgrading terminals and the upgrading software being pre-configured with according to sign on
The partition table of bag;
Comparison unit 12, the partition table of the partition table of upgrading terminals and the upgrading software kit being pre-configured with is needed for contrasting;
First processing units 13, if for the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Unanimously, then according to needing the partition table of upgrading terminals to be formatted the nonproductive data partition for needing upgrading terminals.
The embodiment of the present invention, first passes through receiving unit 10 and receives sign on, then need upgrading by the acquisition of acquiring unit 11
The partition table of the partition table of terminal and the upgrading software kit configured, contrasted by comparison unit 12 needs point of upgrading terminals afterwards
The partition table of area's table and the upgrading software kit configured, if needing point of the partition table of upgrading terminals and the upgrading software kit configured
Area's table is consistent, then by first processing units 13 pairs need the nonproductive data partition of upgrading terminals to be formatted.Upgrading
Cheng Zhong, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast, if needing point of upgrading terminals
Area's table is consistent with the partition table of the upgrading software kit configured, only enters row format to the nonproductive data partition for needing upgrading terminals
Change, rather than the total data subregion for needing upgrading terminals is handled, so as to improve upgrading efficiency.
Fig. 5 is refer to, is the structural representation for the terminal that second embodiment of the invention is provided, as illustrated, the terminal can
With including:
Receiving unit 20, for receiving sign on;
Acquiring unit 21, for obtaining the partition table for needing upgrading terminals and the upgrading software being pre-configured with according to sign on
The partition table of bag;
Comparison unit 22, the partition table of the partition table of upgrading terminals and the upgrading software kit being pre-configured with is needed for contrasting;
First processing units 23, if for the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Unanimously, then according to needing the partition table of upgrading terminals to be formatted the nonproductive data partition for needing upgrading terminals;
Second processing unit 24, if for the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Unanimously, then according to needing the partition table of upgrading terminals to back up and reduce the creation data subregion for needing upgrading terminals;
Download unit 25, for downloading the image files of all subregions to needing upgrading terminals;
Transmitting element 26, upgrading terminals are needed for regeneration block table to be sent to.
The embodiment of the present invention, first passes through receiving unit 20 and receives sign on, then need upgrading by the acquisition of acquiring unit 21
The partition table of the partition table of terminal and the upgrading software kit configured, needs upgrading terminals by the contrast of comparison unit 12 afterwards
The partition table of partition table and the upgrading software kit configured, if contrasting two partition tables unanimously, passes through first processing units
23 pairs need the nonproductive data partition of upgrading terminals to be formatted, if it is inconsistent to contrast two partition tables, pass through second
Processing unit 24 is backed up and reduced to the creation data subregion for needing upgrading terminals according to needing the partition table of upgrading terminals.Rising
During level, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast, if needing upgrading terminals
Partition table with configured upgrading software kit partition table it is consistent, only to need upgrading terminals nonproductive data partition progress lattice
Formula, rather than the total data subregion for needing upgrading terminals is handled, so as to improve upgrading efficiency.
Further, the image file for needing upgrading terminals is being downloaded by download unit 25 to before needing upgrading terminals, led to
Cross second processing unit 24 and complete the reduction to creation data content, so that the loss probability of creation data content is reduced,
It ensure that the safety for the creation data content for needing upgrading terminals.
Fig. 6 is refer to, is the structural representation for the terminal that third embodiment of the invention is provided, as illustrated, the terminal can
With including:
Setting unit 30, the configuration parameter for pre-setting creation data subregion, the configuration parameter is according to automatic
The option value and interface function of reserved partition the mode option go what is set;
Receiving unit 31, for receiving sign on;
Acquiring unit 32, for obtaining the partition table for needing upgrading terminals and the upgrading software being pre-configured with according to sign on
The partition table of bag;
Comparison unit 33, the partition table of the partition table of upgrading terminals and the upgrading software kit being pre-configured with is needed for contrasting;
First processing units 34, if for the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Unanimously, then according to needing the partition table of upgrading terminals to be formatted the nonproductive data partition for needing upgrading terminals;
Second processing unit 35, if for the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Unanimously, then according to needing the partition table of upgrading terminals to back up and reduce the creation data subregion for needing upgrading terminals;
Download unit 36, for downloading the image files of all subregions to needing upgrading terminals;
Transmitting element 37, upgrading terminals are needed for regeneration block table to be sent to.
Specifically, second processing unit 35 is used for:
According to the configuration parameter of the creation data subregion pre-set and the partition table of upgrading terminals is needed, generate backup production
Data content table and reduction creation data table of contents;
Creation data content is backed up according to backup production data content table;
The creation data content of backup is reduced according to reduction creation data table of contents.
The embodiment of the present invention, first passes through receiving unit 31 and receives sign on, then need upgrading by the acquisition of acquiring unit 32
The partition table of the partition table of terminal and the upgrading software kit configured, contrasted by comparison unit 33 needs point of upgrading terminals afterwards
The partition table of area's table and the upgrading software kit configured, if contrasting two partition tables unanimously, passes through first processing units 34
The nonproductive data partition for needing upgrading terminals is formatted, if it is inconsistent to contrast two partition tables, at second
Reason unit 35 is according to needing the partition table of upgrading terminals to back up and reduce the creation data subregion for needing upgrading terminals.In upgrading
During, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast, if needing upgrading terminals
Partition table is consistent with the partition table of the upgrading software kit configured, only enters row format to the nonproductive data partition for needing upgrading terminals
Change, rather than the total data subregion for needing upgrading terminals is handled, so as to improve upgrading efficiency.
Further, the image file for needing upgrading terminals is being downloaded by download unit 36 to before needing upgrading terminals, led to
Cross second processing unit 35 and complete the reduction to creation data content, so that the loss probability of creation data content is reduced,
It ensure that the safety for the creation data content for needing upgrading terminals.
In addition, in this implementation, in backup procedure, the configuration parameter of creation data subregion is advance by setting unit 30
Set, need to only directly invoke, without manual configuration, so as to reduce error probability, improve data backup and reduction
Accuracy, it is ensured that success rate for upgrading, and then ensure that the normal using terminal of user.Further, the backup procedure is reduced
In escalation process the step of manual configuration so that without pausing in escalation process, so as to improve data backup and upgrading
Efficiency.
It should be noted that the specific workflow of data processing terminal is in preceding method part in the embodiment of the present invention
It is described in detail, will not be repeated here.
With reference to Fig. 7, Fig. 7 is institute in a kind of structural representation for terminal that fourth embodiment of the invention is provided, the present embodiment
The terminal of description can include:At least one processor 401, such as CPU, at least one user interface 403, memory 404, extremely
A few communication bus 402.Wherein, communication bus 402 is used to realize the connection communication between these components.Wherein, Yong Hujie
Mouth 403 can include display screen (Display), keyboard (Keyboard), and optional user interface 403 can also include having for standard
Line interface, wave point.Memory 404 can be high-speed RAM memory or non-labile memory (non-
Volatile memory), for example, at least one magnetic disk storage.It is remote that memory 404 optionally can also be that at least one is located at
From the storage device of aforementioned processor 401.In the terminal that wherein processor 401 can be with reference to described by Fig. 4 to 6, memory 404
Batch processing code is stored, and processor 401 calls the program code stored in memory 404, for performing following operation:
Receive sign on;
The partition table for the upgrading software kit for needing the partition table of upgrading terminals and being configured is obtained according to sign on;
Contrast needs the partition table of the partition table of upgrading terminals and the upgrading software kit configured;
If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, according to needing upgrading terminals
Partition table the nonproductive data partition for needing upgrading terminals is formatted.
Further, processor 401 can also carry out following operation:
If need the partition table of upgrading terminals and be pre-configured with upgrading software kit partition table it is inconsistent, according to need upgrading
The partition table of terminal is backed up and reduced to the creation data subregion for needing upgrading terminals.
Specifically, processor 401 can also carry out following operation:
According to the configuration parameter of the creation data subregion pre-set and the partition table of upgrading terminals is needed, generate backup production
Data content table and reduction creation data table of contents;
Creation data content is backed up according to backup production data content table;
The creation data content of backup is reduced according to reduction creation data table of contents.
Further, processor 401 can also carry out following operation:
The configuration parameter of creation data subregion is pre-set, the configuration parameter is according to automatic reserved partition the mode option
Option value and interface function go set.
Further, processor 401 can also carry out following operation:
By regeneration block table be sent to it is described need upgrading terminals, the regeneration block table is the liter pre-set according to
What the partition table of level software kit was determined.
In escalation process, the partition table of the partition table of upgrading terminals and the upgrading software kit configured is needed by contrast,
If needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, only to needing the nonproductive number of upgrading terminals
It is formatted according to subregion, rather than the total data subregion for needing upgrading terminals is handled, so as to improves upgrading efficiency.
Fig. 8 is refer to, is the structural representation for the system that first embodiment of the invention is provided, as illustrated, the system bag
Including needs upgrading terminals 100, upgrading terminals 200 and the foregoing terminal 300 of the embodiment of the present invention.Need upgrading terminals 100 can be with
It is mobile terminal, upgrading terminals 200 can be computer, and terminal 300 is installed on upgrading terminals.Specifically, at the data of the system
Manage flow as follows:(1) user's selection upgrading software kit, setting up needs the communication connection of upgrading terminals 100 and upgrading terminals 200;(2)
User operates upgrading terminals 200 to send sign on, and terminal 300, which receives the instruction and obtained, needs the subregion of upgrading terminals 100
The partition table of table and software kit of upgrading;(3) contrast need upgrading terminals 100 partition table and upgrade software kit partition table whether one
Cause, if unanimously, performing step (4-1), conversely, performing step (4-2);(4-1) terminal 300 according to need upgrading terminals 100 point
Area's sheet format needs the nonproductive data partition of upgrading terminals 100;(4-2) terminal 300 is according to needing the subregion of upgrading terminals 100
Table, generation backup production data content table and reduction creation data table of contents;Needs are read according to backup production data content table
Content in the creation data subregion of backup, and the content is stored in upgrading terminals 200, to complete the standby of creation data content
Part;Full format is carried out to the memory for needing upgrading terminals 100;According to restoring data table of contents by the data convert backed up
To upgrading terminals 100 are needed, to complete the reduction of creation data content;(5) terminal 300 downloads the image files of all subregions to lattice
In memory after formula;(6) partition table in software kit of upgrading is sent to by terminal 300 needs upgrading terminals 100, need to upgrade end
The partition table loading system data content and user data content of end 100 in upgrading software kit etc., to complete whole data
Interaction.
Terminal 300 in the system can be realized using any mode described in Fig. 4 to Fig. 6.Entered using the system
During row upgrading, if as it was previously stated, needing the partition table of upgrading terminals consistent with the partition table of the upgrading software kit configured, only to needing
The nonproductive data partition of upgrading terminals is formatted, rather than the total data subregion for needing upgrading terminals is handled,
So as to improve upgrading efficiency.Further, reduction step is also advanced to before download step by the system, eliminates backup step
Suddenly stand-by period longer between reduction step, so as to reduce the loss probability of creation data.
In addition, in several embodiments provided herein, it should be understood that disclosed method, terminal and system,
It can realize by another way.For example, device embodiment described above is only schematical, for example, the list
The division of member, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple units or
Component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, shown
Or the coupling each other discussed or direct-coupling or communication connection can be by the indirect of some interfaces, device or unit
Coupling or communication connection or electricity, mechanical or other forms are connected.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
1. a kind of data processing method, it is characterised in that including:
Receive sign on;
The partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with is obtained according to the sign on;
The partition table of the contrast upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with;
If described need the partition table of upgrading terminals consistent with the partition table for the upgrading software kit being pre-configured with, need to rise according to described
The partition table of level terminal is formatted to the nonproductive data partition for needing upgrading terminals.
2. the method as described in claim 1, it is characterised in that methods described also includes:If described need the subregion of upgrading terminals
The partition table of table and the upgrading software kit being pre-configured with is inconsistent, then needs to rise to described according to the partition table for needing upgrading terminals
The creation data subregion of level terminal is backed up and reduced.
3. method as claimed in claim 2, it is characterised in that upgrading is needed to described according to the partition table for needing upgrading terminals
The creation data subregion of terminal, which is backed up and reduced, to be specifically included:
According to the configuration parameter of the creation data subregion pre-set and it is described need the partition table of upgrading terminals, generate backup production
Data content table and reduction creation data table of contents;
Creation data content is backed up according to the backup production data content table;
The creation data content of backup is reduced according to the reduction creation data table of contents.
4. method as claimed in claim 3, it is characterised in that methods described also includes:Pre-set creation data subregion
Configuration parameter, the configuration parameter is to go what is set according to the option value and interface function of automatic reserved partition the mode option.
5. the method as described in claim 2 or 4, it is characterised in that according to described need the partition table pair of upgrading terminals described
After the nonproductive data partition for needing upgrading terminals is formatted, including:
By regeneration block table be sent to it is described need upgrading terminals, the regeneration block table is that the upgrading pre-set according to is soft
What the partition table of part bag was determined.
6. a kind of terminal, it is characterised in that including:
Receiving unit, for receiving sign on;
Acquiring unit, for obtaining the partition table for needing upgrading terminals and the upgrading software kit being pre-configured with according to the sign on
Partition table;
Comparison unit, the partition table for contrasting the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with;
First processing units, if the partition table one for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with
Cause, then the nonproductive data partition for needing upgrading terminals is formatted according to the partition table for needing upgrading terminals.
7. terminal as claimed in claim 6, it is characterised in that the terminal also includes:
Second processing unit, if the partition table for the upgrading software kit for needing the partition table of upgrading terminals and being pre-configured with is not
Unanimously, then the creation data subregion for needing upgrading terminals is backed up and gone back according to the partition table for needing upgrading terminals
It is former.
8. terminal as claimed in claim 7, it is characterised in that the second processing unit specifically for:
According to the configuration parameter of the creation data subregion pre-set and it is described need the partition table of upgrading terminals, generate backup production
Data content table and reduction creation data table of contents;
Creation data content is backed up according to the backup production data content table;
The creation data content of backup is reduced according to the reduction creation data table of contents.
9. terminal as claimed in claim 8, it is characterised in that the terminal also includes:
Setting unit, the configuration parameter for pre-setting creation data subregion, the configuration parameter is according to automatic reservation point
The option value and interface function of area's the mode option go what is set.
10. the terminal as described in claim 7 or 9, it is characterised in that the terminal also includes:
Transmitting element, for by regeneration block table be sent to it is described need upgrading terminals, the regeneration block table is according to described pre-
What the partition table of the upgrading software kit first set was determined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710129759.3A CN107133062A (en) | 2017-03-06 | 2017-03-06 | A kind of data processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710129759.3A CN107133062A (en) | 2017-03-06 | 2017-03-06 | A kind of data processing method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107133062A true CN107133062A (en) | 2017-09-05 |
Family
ID=59721879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710129759.3A Withdrawn CN107133062A (en) | 2017-03-06 | 2017-03-06 | A kind of data processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133062A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913417A (en) * | 2019-11-22 | 2020-03-24 | 东莞市小精灵教育软件有限公司 | Method, system, equipment and storage medium for protecting radio frequency parameters |
-
2017
- 2017-03-06 CN CN201710129759.3A patent/CN107133062A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110913417A (en) * | 2019-11-22 | 2020-03-24 | 东莞市小精灵教育软件有限公司 | Method, system, equipment and storage medium for protecting radio frequency parameters |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11762550B2 (en) | Electronic device including touch sensitive display and method for managing the display | |
US9495071B2 (en) | Wireless communication apparatus and method of adding a widget therefor | |
US9367403B2 (en) | Terminal and application restoring method | |
US10599336B2 (en) | Method of displaying content and electronic device adapted to the same | |
EP2570917B1 (en) | Method and device for adding menu items in android menu | |
US20170286092A1 (en) | Terminal device and version upgrading method | |
EP3329355B1 (en) | Screen operating method and electronic device supporting the same | |
EP3121700B1 (en) | Electronic device and method for managing objects in recommended folders | |
CN107066188B (en) | A kind of method and terminal sending screenshot picture | |
WO2018227736A1 (en) | Test construction method and device | |
US10691335B2 (en) | Electronic device and method for processing input on view layers | |
US10489135B2 (en) | Electronic device and method for improving installation speed of theme package | |
CN106533719A (en) | Method and system for realizing cluster deployment | |
CN105824542A (en) | Method and apparatus for starting application functions | |
WO2022062743A1 (en) | Application icon display method and related device | |
CN105867962A (en) | System upgrading method and device | |
US10613724B2 (en) | Control method for selecting and pasting content | |
CN109885332A (en) | Image quality chip software upgrade method, device, display equipment and storage medium | |
CN107133060A (en) | A kind of data processing method and terminal | |
CN106502648A (en) | Application shows the method and terminal of language-specific | |
CN103440147A (en) | Control method and device of software using version | |
CN109408282A (en) | Application Backup restoration methods, equipment and computer readable storage medium | |
CN107133062A (en) | A kind of data processing method and terminal | |
CN101373464B (en) | Method, apparatus and system for automatically adopting form setting | |
CN104951325B (en) | A kind of information display method and electronic equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170905 |