CN103002436B - Upgrade method and device of terminal device with android platform - Google Patents
Upgrade method and device of terminal device with android platform Download PDFInfo
- Publication number
- CN103002436B CN103002436B CN201210528322.4A CN201210528322A CN103002436B CN 103002436 B CN103002436 B CN 103002436B CN 201210528322 A CN201210528322 A CN 201210528322A CN 103002436 B CN103002436 B CN 103002436B
- Authority
- CN
- China
- Prior art keywords
- upgrading
- button
- pressed
- instruction
- legal
- 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.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
An embodiment of the invention discloses an upgrade method and device of a terminal device with an android platform, relates to the field of wireless communication and is used for solving the problem how to determine the upgrade of the terminal device is legal. When the terminal device is in a download mode, detection is performed on an upgrade legality instruction. If the upgrade legality instruction is detected, an upgrade legal mark is set to be legal. If the upgrade legality instruction is not detected, the upgrade legal mark is set to be illegal, and the upgrade legal mark is stored into a set area of a storage unit in the download process. Accordingly, whether the current program in the terminal device is obtained through legal upgrade download can be judged by reading the upgrade legal mark in the set area.
Description
Technical field
The present invention relates to wireless communication field, relate in particular to a kind of updating terminal device method and apparatus that uses Android platform.
Background technology
Along with the continuous increase of Android (android) mobile phone market possession share, the demand of the own refresh routine of user is increasing, because the otherness of each producer mobile phone software and hardware is larger, user does not also understand this, causes the own brush machine of user to cause situation about cannot start shooting to occur in enormous quantities.Therefore, to cause in order determining the concrete reason that cannot start shooting, need to first to determine that whether the upgrading of terminal equipment is legal, but also there is no a concrete implementation at present.
Summary of the invention
The embodiment of the present invention provides a kind of updating terminal device method and apparatus that uses Android platform, for solving the whether legal problem of upgrading of how to confirm terminal equipment.
A updating terminal device method that uses Android platform, the method comprises:
Terminal equipment is entering after downloading mode, detects the instruction of upgrading legitimacy, and this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body; If upgrading legitimacy instruction detected, the legal mark of upgrading is set to legally, if the legitimacy instruction of upgrading do not detected, the legal mark of upgrading is set to illegally;
Terminal equipment, downloading in flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
Use a terminal equipment for Android platform, this terminal equipment comprises:
Detecting unit, for entering after downloading mode, detects the instruction of upgrading legitimacy, and this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body;
Setting unit, if for upgrading legitimacy instruction being detected, the legal mark of upgrading is set to legally, if the legitimacy instruction of upgrading do not detected, the legal mark of upgrading is set to illegally;
Download unit, for downloading flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
In the scheme that the embodiment of the present invention provides, terminal equipment is entering after downloading mode, detect the instruction of upgrading legitimacy, if the instruction of upgrading legitimacy detected, the legal mark of upgrading be set to legal, if the instruction of upgrading legitimacy do not detected, the legal mark of upgrading is set to illegally, and the legal mark of upgrading is stored in the setting regions of memory cell downloading in flow process, thereby can judge that whether present procedure in terminal equipment downloaded and obtained by legal upgrading by reading the legal mark of upgrading in setting regions.
Brief description of the drawings
The method flow schematic diagram that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of preferred embodiment of the present invention;
The terminal equipment structural representation that Fig. 3 provides for the embodiment of the present invention.
Embodiment
In order to solve the whether legal problem of upgrading of how to confirm terminal equipment, the embodiment of the present invention provides a kind of upgrade method of terminal equipment.In this method, terminal equipment is entering after downloading mode, detect the instruction of upgrading legitimacy, if the instruction of upgrading legitimacy detected, the legal mark of upgrading be set to legal, if the instruction of upgrading legitimacy do not detected, the legal mark of upgrading is set to illegally, and the legal mark of upgrading is stored in the setting regions of memory cell downloading in flow process, thereby can judge that whether present procedure in terminal equipment downloaded and obtained by legal upgrading by reading the legal mark of upgrading in setting regions.
Referring to Fig. 1, the updating terminal device method that the embodiment of the present invention provides, comprises the following steps:
Step 10: terminal equipment is entering after downloading mode, detects the instruction of upgrading legitimacy, and this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body;
Step 11: if terminal equipment detects upgrading legitimacy instruction, the legal mark of upgrading is set to legally, if the legitimacy instruction of upgrading do not detected, the legal mark of upgrading is set to illegally;
Step 12: terminal equipment, downloading in flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
The specific implementation of step 10 and step 11 can be as follows:
Whether terminal equipment starts timer, periodically detected upgrading legitimacy instruction and the first button and the second button and be pressed before this timer expiry; Wherein the first button is pressed and represents to continue upgrading flow process, and the second button is pressed and represents to exit upgrading flow process;
If upgrading legitimacy instruction detected, the legal mark of upgrading is set to legally, and enters download stream journey;
If upgrading legitimacy instruction do not detected and the first button do not detected and the second button is pressed, the legal mark of upgrading is set to illegally, and send this upgrading illegal by being marked as, press the information that the first button continues upgrading, presses the second button and exit upgrading;
If upgrading legitimacy instruction do not detected and detect that the first button is pressed, the legal mark of upgrading is set to illegally, and enters download stream journey;
If upgrading legitimacy instruction do not detected and detect that the second button is pressed, and exits downloading mode.
In such scheme, to send this upgrading will be marked as illegal, press the first button and continue upgrading, press the set of time of information that the second button exits upgrading certain sense cycle after timer is opened and (upgrading legitimacy instruction do not detected in certain sense cycle, and do not detect when the first button and the second button are pressed, send this information), can guarantee can be responded at once in the actuation of keys of sending user after this information, because if send immediately this information after downloading mode entering, in the time sending this information, terminal equipment is not also carried out the preparation that button detects, terminal equipment in the time longer in existence (approximately 3s) can not be responded to user's actuation of keys, cause user to experience decline.Therefore, certain sense cycle by the set of time that sends this information after timer is opened, can guarantee that user terminal responds user's actuation of keys in time.
In such scheme, user terminal just directly enters download flow process detecting after upgrading legitimacy instruction, thereby this programme can be applied in the equipment that there is no keyboard.
Preferably, terminal equipment is in the time detecting that the first button or the second button are pressed, can first determine entering after downloading mode and the first button detected or before the second button is pressed, the action that corresponding button lifts whether detected, if, the testing result that definite corresponding button is pressed is effective, otherwise the testing result that definite corresponding button is pressed is invalid, and then can not carry out corresponding subsequent operation, for example, if the first button detecting is considered to invalid, the legal mark of upgrading is not set to illegally, does not also enter download flow process; If the second button detecting is considered to invalid, can not exit downloading mode.Concrete:
Terminal equipment detect the first button be pressed after and the legal mark of upgrading be set to illegal before, determine and the action that the first button lifts before entering after downloading mode and the first button being detected, whether detected, if, the testing result that definite the first button is pressed is effective, otherwise the testing result that definite the first button is pressed is invalid; In the time determining that the testing result that is pressed of the first button is effective, the legal mark of upgrading is set to illegally;
Terminal equipment detect the second button be pressed after and exit downloading mode before, determine and the action that the second button lifts before entering after downloading mode and the second button being detected, whether detected, if, the testing result that definite the second button is pressed is effective, otherwise the testing result that definite the second button is pressed is invalid; In the time determining that the testing result that is pressed of the second button is effective, exit downloading mode.
In such scheme, because user is that first lower certain button enters downloading mode, follow-up button again selects to enter or exit downloading mode, in order to prevent from not unclamping after button for the first time mobile phone directly judgement enter to press the pattern that key exits or enter and press upper key and enter the flow process of downloading flow process and cause erroneous judgement, if have pressing action and just can going to judge this key value of button after the action that button lifts must first being detected once when button detecting, avoid user to enter slightly slowly faulty operation because of the action of lifting.
Preferably, after in the setting regions that the legal mark of upgrading is stored in to memory cell, if terminal equipment receives the instruction of reading data in this setting regions, legal the upgrading of storing in this setting regions mark is exported, such as legal upgrading mark is outputed on screen and shown, thereby make user judge that whether present procedure in terminal equipment downloaded and obtained by legal upgrading according to the legal mark of upgrading.
Terminal equipment in the present invention can be for using the equipment of Android (Android) platform.
As shown in Figure 2, a preferred embodiment of the present invention is as follows:
Step 1: mobile phone terminal enters fastboot downloading mode after being connected with updating apparatus (as PC);
Step 2: mobile phone terminal starts timer periodically detected the instruction of upgrading legitimacy before timer expiry, and for example this instruction is " flag ", if the instruction of upgrading legitimacy detected, arrived step 3, otherwise, to step 4;
Step 3: it is legal that the legal mark of upgrading is set to, to show that current updating apparatus is authorized updating apparatus (such as the equipment of terminal equipment manufacturer), to step 7;
Step 4: the legal mark of upgrading is set to illegally, to show that current updating apparatus is uncommitted updating apparatus (such as the equipment of mobilephone terminal user oneself);
Step 5: show comprise this upgrading illegal by being marked as, press the interface that upper key continues upgrading, presses lower key and exit the information of upgrading;
Step 6: mobile phone terminal detects the button pressed of user, judge in setting-up time on key whether be pressed, if so, arrive step 7, otherwise, arrive step 8;
Step 7: initialization fastboot drives, and downloads flow process is stored in the legal mark of upgrading in the setting regions of memory cell in download flow process, and this flow process finishes;
Step 8: mobile phone terminal detects that in setting-up time lower key is pressed or does not detect in setting-up time when any button is pressed, and exit downloading mode, this flow process finishes.
Referring to Fig. 3, the embodiment of the present invention provides a kind of terminal equipment, and this terminal equipment comprises:
Detecting unit 30, for entering after downloading mode, detects the instruction of upgrading legitimacy, and this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body;
Setting unit 31, if for upgrading legitimacy instruction being detected, the legal mark of upgrading is set to legally, if the legitimacy instruction of upgrading do not detected, the legal mark of upgrading is set to illegally;
Download unit 32, for downloading flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
Further, described detecting unit 30 for:
Start timer, before this timer expiry, periodically detect upgrading legitimacy instruction and the first button and the second button and whether be pressed; Wherein the first button is pressed and represents to continue upgrading flow process, and the second button is pressed and represents to exit upgrading flow process;
Described setting unit 31 for:
If described detecting unit detects upgrading legitimacy instruction, the legal mark of upgrading is set to legally, and enters download stream journey;
If described detecting unit does not detect upgrading legitimacy instruction and the first button do not detected and the second button is pressed, the legal mark of upgrading is set to illegally, and send this upgrading illegal by being marked as, press the information that the first button continues upgrading, presses the second button and exit upgrading;
Upgrade legitimacy instruction and detect that the first button is pressed if described detecting unit does not detect, the legal mark of upgrading is set to illegally, and enters download stream journey.
Further, described setting unit 31 also for:
If described detecting unit does not detect upgrading legitimacy instruction and detects that the second button is pressed, and exits downloading mode.
Further, described detecting unit 30 also for:
After detecting that the first button is pressed, determine entering after downloading mode and detecting before the first button, the action that the first button lifts whether detected, if, the testing result that definite the first button is pressed is effective, and the legal mark of upgrading is set to illegally; Otherwise, determine that the testing result that the first button is pressed is invalid;
After detecting that the second button is pressed, determine entering after downloading mode and detecting before the second button the action that the second button lifts whether detected, the testing result that if so, definite the second button is pressed is effective, and exits downloading mode; Otherwise, determine that the testing result that the second button is pressed is invalid.
Further, described download unit 32 is further used for:
Receive after the instruction of reading data in described setting regions, legal the upgrading of storing in described setting regions mark is exported.
Further, described terminal equipment is the equipment that uses Android platform.
To sum up, beneficial effect of the present invention comprises:
In the scheme that the embodiment of the present invention provides, terminal equipment is entering after downloading mode, detect the instruction of upgrading legitimacy, if the instruction of upgrading legitimacy detected, the legal mark of upgrading be set to legal, if the instruction of upgrading legitimacy do not detected, the legal mark of upgrading is set to illegally, and in download flow process, the legal mark of upgrading is stored in the setting regions of memory cell, thereby can judge that whether present procedure in terminal equipment downloaded and obtained by legal upgrading by reading the legal mark of upgrading in setting regions, and then clear and definite device upgrade causes the responsibility that cannot start shooting.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and amendment to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (8)
1. a updating terminal device method that uses Android platform, is characterized in that, the method comprises:
Whether terminal equipment is entering after downloading mode, starts timer, periodically detected upgrading legitimacy instruction and the first button and the second button and be pressed before this timer expiry; Wherein this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body, and the first button is pressed and represents to continue upgrading flow process, and the second button is pressed and represents to exit upgrading flow process;
If upgrading legitimacy instruction detected, the legal mark of upgrading is set to legally, and enters download stream journey;
If upgrading legitimacy instruction do not detected and the first button do not detected and the second button is pressed, the legal mark of upgrading is set to illegally, and send this upgrading illegal by being marked as, press the information that the first button continues upgrading, presses the second button and exit upgrading;
If upgrading legitimacy instruction do not detected and detect that the first button is pressed, the legal mark of upgrading is set to illegally, and enters download stream journey;
Terminal equipment, downloading in flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
2. the method for claim 1, is characterized in that, further comprises:
If upgrading legitimacy instruction do not detected and detect that the second button is pressed, and exits downloading mode.
3. method as claimed in claim 2, it is characterized in that, terminal equipment detect the first button be pressed after and the legal mark of upgrading be set to illegal before, further comprise: terminal equipment is determined entering after downloading mode and detect before the first button, the action that the first button lifts whether detected, if so, the testing result that definite the first button is pressed is effective, otherwise the testing result that definite the first button is pressed is invalid; The legal mark of described upgrading is set to illegally comprise: in the time determining that testing result that the first button is pressed is effective, the legal mark of upgrading is set to illegally;
Terminal equipment detect the second button be pressed after and exit downloading mode before, further comprise: terminal equipment is determined entering after downloading mode and detect before the second button, the action that the second button lifts whether detected, if, the testing result that definite the second button is pressed is effective, otherwise the testing result that definite the second button is pressed is invalid; The described downloading mode that exits comprises: in the time determining that the testing result that is pressed of the second button is effective, exit downloading mode.
4. as the method as described in arbitrary in claim 1-3, it is characterized in that, in the setting regions that the legal mark of upgrading is stored in to memory cell after, further comprise:
Receive after the instruction of reading data in described setting regions, legal the upgrading of storing in described setting regions mark is exported.
5. a terminal equipment that uses Android platform, is characterized in that, this terminal equipment comprises:
Whether detecting unit, for entering after downloading mode, starts timer, periodically detected upgrading legitimacy instruction and the first button and the second button and be pressed before this timer expiry; Wherein, this upgrading legitimacy instruction is the legal data of predefined mark upgrading main body, and the first button is pressed and represents to continue upgrading flow process, and the second button is pressed and represents to exit upgrading flow process;
Setting unit, if upgrading legitimacy instruction detected for described detecting unit, the legal mark of upgrading is set to legally, and enters download stream journey; If described detecting unit does not detect upgrading legitimacy instruction and the first button do not detected and the second button is pressed, the legal mark of upgrading is set to illegally, and send this upgrading illegal by being marked as, press the information that the first button continues upgrading, presses the second button and exit upgrading; Upgrade legitimacy instruction and detect that the first button is pressed if described detecting unit does not detect, the legal mark of upgrading is set to illegally, and enters download stream journey;
Download unit, for downloading flow process, is stored in the legal mark of upgrading in the setting regions of memory cell.
6. equipment as claimed in claim 5, is characterized in that, described setting unit also for:
If described detecting unit does not detect upgrading legitimacy instruction and detects that the second button is pressed, and exits downloading mode.
7. equipment as claimed in claim 6, is characterized in that, described detecting unit also for:
After detecting that the first button is pressed, determine entering after downloading mode and detecting before the first button, the action that the first button lifts whether detected, if, the testing result that definite the first button is pressed is effective, and the legal mark of upgrading is set to illegally; Otherwise, determine that the testing result that the first button is pressed is invalid;
After detecting that the second button is pressed, determine entering after downloading mode and detecting before the second button the action that the second button lifts whether detected, the testing result that if so, definite the second button is pressed is effective, and exits downloading mode; Otherwise, determine that the testing result that the second button is pressed is invalid.
8. as the equipment as described in arbitrary in claim 5-7, it is characterized in that, described download unit is further used for:
Receive after the instruction of reading data in described setting regions, legal the upgrading of storing in described setting regions mark is exported.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210528322.4A CN103002436B (en) | 2012-12-07 | 2012-12-07 | Upgrade method and device of terminal device with android platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210528322.4A CN103002436B (en) | 2012-12-07 | 2012-12-07 | Upgrade method and device of terminal device with android platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103002436A CN103002436A (en) | 2013-03-27 |
CN103002436B true CN103002436B (en) | 2014-12-10 |
Family
ID=47930475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210528322.4A Active CN103002436B (en) | 2012-12-07 | 2012-12-07 | Upgrade method and device of terminal device with android platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103002436B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104932908B (en) * | 2014-03-18 | 2018-08-28 | 珠海全志科技股份有限公司 | Brush machine method and system |
CN110806887A (en) * | 2019-10-29 | 2020-02-18 | 华工正源智能终端(孝感)有限公司 | Software security upgrading method and device |
US11334655B2 (en) | 2019-11-19 | 2022-05-17 | Micron Technology, Inc. | Authenticating a device using a remote host |
CN111895940B (en) * | 2020-04-26 | 2021-12-07 | 鸿富锦精密电子(成都)有限公司 | Calibration file generation method, system, computer device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866870A (en) * | 2006-02-23 | 2006-11-22 | 华为技术有限公司 | Software validity checking system and method based on device management protocol |
CN101043680A (en) * | 2007-03-13 | 2007-09-26 | 中兴通讯股份有限公司 | Method of application program for prevention illegal update mobile terminal |
CN202009452U (en) * | 2010-11-17 | 2011-10-12 | 苏州冠捷科技有限公司 | Verification system for TV set application program upgrading |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000207193A (en) * | 1999-01-13 | 2000-07-28 | Nec Ibaraki Ltd | Magnetic tape unit and firmware updating method for the same |
-
2012
- 2012-12-07 CN CN201210528322.4A patent/CN103002436B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866870A (en) * | 2006-02-23 | 2006-11-22 | 华为技术有限公司 | Software validity checking system and method based on device management protocol |
CN101043680A (en) * | 2007-03-13 | 2007-09-26 | 中兴通讯股份有限公司 | Method of application program for prevention illegal update mobile terminal |
CN202009452U (en) * | 2010-11-17 | 2011-10-12 | 苏州冠捷科技有限公司 | Verification system for TV set application program upgrading |
Non-Patent Citations (1)
Title |
---|
JP特开2000-207193A 2000.07.28 * |
Also Published As
Publication number | Publication date |
---|---|
CN103002436A (en) | 2013-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106775827B (en) | Application program updating method and device and computer equipment | |
CN103002436B (en) | Upgrade method and device of terminal device with android platform | |
CN106713608B (en) | Application function state modification method and device and terminal | |
CN103870356A (en) | Information processing method and electronic equipment | |
CN104572046B (en) | A kind of storehouse restoring method and computer system | |
CN109240902B (en) | Method and device for acquiring firmware code of electronic equipment | |
CN104881304B (en) | Resource downloading method and device | |
CN104951329A (en) | Configuration and startup method of application templates and mobile terminal | |
CN111723002A (en) | Code debugging method and device, electronic equipment and storage medium | |
CN105577879A (en) | Address book management method and mobile terminal | |
CN105988841A (en) | Update method of application program, and mobile terminal | |
CN107066374B (en) | Data processing method and mobile terminal | |
CN109413256B (en) | Contact person information processing method and device, storage medium and electronic equipment | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN105005489A (en) | Terminal equipment and starting method thereof | |
CN108737655B (en) | Picture processing method and related device | |
CN110830127A (en) | Radio frequency parameter processing method and device, mobile terminal and storage medium | |
CN106413032A (en) | Hotspot establishing method and terminal equipment | |
CN107465646A (en) | One kind applies method for down loading, system and relevant device | |
CN104391742B (en) | Optimizing application method and apparatus | |
CN106022059A (en) | Fingerprint unlocking method and terminal | |
CN112463199A (en) | System upgrading method and terminal | |
CN105229607A (en) | Display control unit and display control method and program | |
CN109189420B (en) | System upgrading method, device, circuit board, equipment and storage medium | |
CN104866350B (en) | Optimization method, device and the terminal in terminal partitions space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |