CN104915234B - A kind of Android mobile terminal upgrading report method and system - Google Patents

A kind of Android mobile terminal upgrading report method and system Download PDF

Info

Publication number
CN104915234B
CN104915234B CN201510315397.8A CN201510315397A CN104915234B CN 104915234 B CN104915234 B CN 104915234B CN 201510315397 A CN201510315397 A CN 201510315397A CN 104915234 B CN104915234 B CN 104915234B
Authority
CN
China
Prior art keywords
upgrade
mobile terminal
server
value
end message
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
Application number
CN201510315397.8A
Other languages
Chinese (zh)
Other versions
CN104915234A (en
Inventor
彭芃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201510315397.8A priority Critical patent/CN104915234B/en
Publication of CN104915234A publication Critical patent/CN104915234A/en
Application granted granted Critical
Publication of CN104915234B publication Critical patent/CN104915234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of Android mobile terminal upgrading report method and system, wherein method is comprising steps of A, mobile terminal download upgrade package from server;B, it after mobile terminal is restarted, enters reparation mode and is upgraded, after the completion of upgrading, save end message into upgrade file;C, after mobile terminal is restarted again, android system is entered, and judges that upgrade file whether there is, if yes, go to step D;D, upgrade file is parsed, end message is reported into server, if receiving the confirmation message of server return, deletes upgrade file.The present invention saves end message into upgrade file, after restarting again, searches and parse the upgrade file, and end message is reported to server, this avoid the reasons such as data dump to cause the problem of reporting unsuccessfully after the completion of upgrading.

Description

A kind of Android mobile terminal upgrading report method and system
Technical field
The present invention relates to Android mobile terminal fields more particularly to a kind of Android mobile terminal to upgrade report method And system.
Background technique
The FOTA upgrading of Android mobile terminal is the upgrade package that latest result is got from server, is then downloaded, together When by some results return to server end, information and fault diagnosis etc. for recording terminal.
In the prior art, after the completion of certain mobile-terminal platform upgradings, data/data catalogue data can be formatted Operation, so, the upgrade application relevant information for obtaining and reporting from data/data catalogue data originally will be destroyed Fall, causes to report failure.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide in a kind of upgrading of Android mobile terminal Reporting method and system, it is intended to solve existing upgrading higher level and report mechanism there may be because reporting lost property to the authorities on caused by the reasons such as data dump The problem of losing.
Technical scheme is as follows:
A kind of Android mobile terminal upgrading report method, wherein comprising steps of
A, mobile terminal downloads upgrade package from server;
B, it after mobile terminal is restarted, enters reparation mode and is upgraded, after the completion of upgrading, save end message to upgrading In file;
C, after mobile terminal is restarted again, android system is entered, and judges that upgrade file whether there is, if it exists Then enter step D;
D, upgrade file is parsed, end message is reported into server, if receiving the confirmation message of server return, Delete upgrade file.
The Android mobile terminal upgrades report method, wherein the end message includes upgraded version number and rises Grade state value.
The Android mobile terminal upgrades report method, wherein the upgrade status value includes for indicating upgrading Successful first value, the third value and use for executing the second value of error for indicating escalation process, malfunctioning for indicating upgrade package In the 4th value for indicating entry into reparation mode and not operated.
The Android mobile terminal upgrades report method, wherein the step D is specifically included:
D1, parsing upgrade file obtain upgraded version number therein and upgrade status value;
D2, judge whether upgrade status value is the first value, if so, entering step D3;
D3, end message is reported into server, if receiving the confirmation message of server return, deletes upgrading text Part.
The Android mobile terminal upgrades report method, wherein in the step A, mobile terminal is under server After carrying upgrade package, current version number information is reported into server.
The Android mobile terminal upgrades report method, wherein the end message further include: report No. id, set The sequence number of the device id of standby programming, the device id of equipment programming authentication code, type, app number, reporting types, report knot Fruit and api version number.
The Android mobile terminal upgrades report method, wherein the reporting types include upgrade and Download, upgrade indicate to report after the completion of upgrading, and download indicates to report after the completion of downloading.
A kind of Android mobile terminal upgrading reporting system, wherein include:
Download module, for downloading upgrade package from server;
Preserving module enters reparation mode and is upgraded after restarting, and after the completion of upgrading, saves end message extremely In upgrade file;
Judgment module enters android system after restarting again, and judges that upgrade file whether there is, if depositing Then entering reporting module;
End message is reported to server for parsing upgrade file by reporting module, if receiving server return Confirmation message then deletes upgrade file.
The Android mobile terminal upgrades reporting system, wherein the end message includes upgraded version number and rises Grade state value.
The Android mobile terminal upgrades reporting system, wherein the upgrade status value includes for indicating upgrading Successful first value, the third value and use for executing the second value of error for indicating escalation process, malfunctioning for indicating upgrade package In the 4th value for indicating entry into reparation mode and not operated.
The utility model has the advantages that the present invention after the completion of upgrading, saves end message into upgrade file, after restarting again, search And the upgrade file is parsed, and end message is reported into server, it causes to report lost property to the authorities this avoid reasons such as data dumps The problem of losing.
Detailed description of the invention
Fig. 1 is the flow chart that a kind of Android mobile terminal of the present invention upgrades report method preferred embodiment.
Fig. 2 is the specific flow chart of step S104 in method shown in Fig. 1.
Fig. 3 is the structural block diagram that a kind of Android mobile terminal of the present invention upgrades reporting system preferred embodiment.
Fig. 4 is the specific block diagram of reporting module in system shown in Figure 3.
Specific embodiment
The present invention provides a kind of Android mobile terminal upgrading report method and system, to make the purpose of the present invention, technology Scheme and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that described herein specific Embodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the process that a kind of Android mobile terminal of the present invention upgrades report method preferred embodiment Figure, as shown, itself comprising steps of
S101, mobile terminal download upgrade package from server;
It after S102, mobile terminal are restarted, enters reparation mode and is upgraded, after the completion of upgrading, save end message extremely In upgrade file;
After S103, mobile terminal are restarted again, android system is entered, and judges that upgrade file whether there is, if depositing Step S104 is then being entered, is then entering step S105 if it does not exist;
S104, parsing upgrade file, report to server for end message, if receiving the confirmation letter of server return Breath, then delete upgrade file;
S105, end.
In the present embodiment, after the completion of system upgrade, last_ can be generated under cache/recovery file Update_file file (i.e. upgrade file, upgrade file of the present invention refer to the file of the record information generated after upgrading), The end message that the last success of record upgrades in file, such as upgraded version number.When wanting starting up next time, upgrade application Reading the upgrade file whether there is, and carried out upgrading if it does, representing and starting preceding system, then obtains and parse content, It is reported to server, after obtaining server returns information, deletes this document if reporting successfully;It is opened if it does not, representing Upgrading was not carried out before dynamic, then without reporting operation.
The end message includes upgraded version number and upgrade status value.It is recorded in last_update_file file Content include upgraded version number and upgrade status value.
Such as:
Sver(upgraded version number): V8-MS628TD-LF1R019 (indicates upgraded version number)
Status(upgrade status value): 0.
The upgrade status value includes the first value for indicating to upgrade successfully, for indicating that escalation process executes error Second value, the third value for indicating upgrade package error and the 4th value not operated for indicating entry into reparation mode.
Such as:
State value is with reference to as follows:
0: upgrading successfully;
1: escalation process executes error;
2: the problematic error of upgrade package itself: if carry is failed, signing incorrect, open unsuccessfully etc.;
3: not carrying out practical operation into recovery;
)
……
It is, of course, also possible to extend other values.
In step S104, upgrade application parses the upgrade file, upgraded version number, the upgrade status value that will acquire etc. Information is uploaded onto the server by http agreement, and realization reports.
Specifically, as shown in Fig. 2, the step S104 is specifically included:
S201, parsing upgrade file obtain upgraded version number therein and upgrade status value;
S202, judge whether upgrade status value is the first value, if so, S203 is entered step, if it is not, then entering step S204;
S203, end message is reported into server, if receiving the confirmation message of server return, deletes upgrading text Part;
S204, end.
In above-mentioned steps, be such as judge whether upgrade status value is 0 to judge whether escalation process succeeds, if It is upgraded successfully for 0 expression, the link that reports of next step can be entered, otherwise directly terminated.
The agreement reported is as follows:
<operateRequest>
<callid>1234567</callid>
<client>
<dnum>000</dnum>
<didtoken>000</didtoken>
<devmodel>ROWA-CN-MS628-C831Z</devmodel>
</client>
<operate>
<appid>ROWA-CN-MS628-C831Z</appid>
<operatetype>upgrade</operatetype>
<ver>V8-MS628TD-LF1R019</ver>
<result>SUCCESS</result>
</operate>
<apiversion>"1.0"</apiversion>
</operateRequest>
In addition after reporting to server, the information of server return is also waited for, the information that server returns is as follows:
<xml version="1.0" encoding="UTF-8" standalone="yes">
<operateResponse>
<callid>d41d8cd98f00b204e9800998ecf8427e</callid>
<state>0000</state>
<apiversion>1.0</apiversion>
</operateResponse>
The information for therefrom extracting state field, if 0000, then it represents that report success, delete cache/ on this basis Last_update_file file (upgrade file) under recovery catalogue.
Further, in the step S101, mobile terminal is after server downloading upgrade package, by current version number information Report to server.I.e. in the present invention, reporting types include two kinds: one is report after the completion of higher level;One is downloadings to complete After report.Operatetype field be can use to distinguish: being reported after having upgraded if upgrade expression, if download It indicates to report after the completion of downloading.
Further, the end message further include: report No. id, the sequence number of the device id of equipment programming, equipment programming Device id authentication code, type, app number, reporting types, reported result and api version number.
Based on the above method, the present invention also provides a kind of Android mobile terminals to upgrade reporting system preferred embodiment, such as Shown in Fig. 3 comprising:
Download module 100, for downloading upgrade package from server;
Preserving module 200 enters reparation mode and is upgraded after restarting, and after the completion of upgrading, saves end message Into upgrade file;
Judgment module 300 enters android system after restarting again, and judges that upgrade file whether there is, Reporting module is then entered if it exists;
End message is reported to server for parsing upgrade file by reporting module 400, is returned if receiving server The confirmation message returned, then delete upgrade file.
Further, the end message of the update includes upgraded version number and upgrade status value.
Further, the upgrade status value includes the first value for indicating to upgrade successfully, for indicating that escalation process is held The second value of row error, the third value for indicating upgrade package error and for indicating entry into that reparation mode do not operated Four values.
Further, as shown in figure 4, the reporting module 400 specifically includes:
Resolution unit 410 obtains upgraded version number therein and upgrade status value for parsing upgrade file;
Judging unit 420, for judging whether upgrade status value is the first value, if so, into reporting unit;
Reporting unit 430, for end message to be reported to server, if receiving the confirmation message of server return, Then delete upgrade file.
It has been described in detail in the method for technical detail in front about above-mentioned modular unit, so it will not be repeated.
In conclusion the present invention after the completion of upgrading, saves end message into upgrade file, after restarting again, search And the upgrade file is parsed, and end message is reported into server, it causes to report lost property to the authorities this avoid reasons such as data dumps The problem of losing.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. a kind of Android mobile terminal upgrades report method, which is characterized in that comprising steps of
A, mobile terminal downloads upgrade package from server;
B, it after mobile terminal is restarted, enters reparation mode and is upgraded, after the completion of upgrading, save end message to upgrade file In;
C, after mobile terminal is restarted again, enter android system, and judge that upgrade file whether there is, if it exists then into Enter to step D;
D, upgrade file is parsed, end message is reported into server, if receiving the confirmation message of server return, is deleted Upgrade file.
2. Android mobile terminal according to claim 1 upgrades report method, which is characterized in that the end message Including upgraded version number and upgrade status value.
3. Android mobile terminal according to claim 2 upgrades report method, which is characterized in that the upgrade status Value includes the first value for indicating to upgrade successfully, the second value for indicating escalation process execution error, for indicating upgrading The 4th value wrapping the third value of error and not operated for indicating entry into reparation mode.
4. Android mobile terminal according to claim 3 upgrades report method, which is characterized in that the step D is specific Include:
D1, parsing upgrade file obtain upgraded version number therein and upgrade status value;
D2, judge whether upgrade status value is the first value, if so, entering step D3;
D3, end message is reported into server, if receiving the confirmation message of server return, deletes upgrade file.
5. Android mobile terminal according to claim 2 upgrades report method, which is characterized in that in the step A, Current version number information is reported to server after server downloading upgrade package by mobile terminal.
6. Android mobile terminal according to claim 5 upgrades report method, which is characterized in that the end message Further include: report No. id, the sequence number of the device id of equipment programming, the authentication code of the device id of equipment programming, type, app compile Number, reporting types, reported result and api version number.
7. Android mobile terminal according to claim 6 upgrades report method, which is characterized in that the reporting types Including upgrade and download, upgrade indicates to report after the completion of upgrading, and download indicates to report after the completion of downloading.
8. a kind of Android mobile terminal upgrades reporting system characterized by comprising
Download module, for downloading upgrade package from server;
Preserving module enters reparation mode and is upgraded after restarting, and after the completion of upgrading, saves end message to upgrading In file;
Judgment module enters android system after restarting again, and judges that upgrade file whether there is, if it exists then Enter reporting module;
End message is reported to server for parsing upgrade file by reporting module, if receiving the confirmation of server return Information then deletes upgrade file.
9. Android mobile terminal according to claim 8 upgrades reporting system, which is characterized in that the end message Including upgraded version number and upgrade status value.
10. Android mobile terminal according to claim 9 upgrades reporting system, which is characterized in that the upgrade status Value includes the first value for indicating to upgrade successfully, the second value for indicating escalation process execution error, for indicating upgrading The 4th value wrapping the third value of error and not operated for indicating entry into reparation mode.
CN201510315397.8A 2015-06-10 2015-06-10 A kind of Android mobile terminal upgrading report method and system Active CN104915234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510315397.8A CN104915234B (en) 2015-06-10 2015-06-10 A kind of Android mobile terminal upgrading report method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510315397.8A CN104915234B (en) 2015-06-10 2015-06-10 A kind of Android mobile terminal upgrading report method and system

Publications (2)

Publication Number Publication Date
CN104915234A CN104915234A (en) 2015-09-16
CN104915234B true CN104915234B (en) 2019-09-10

Family

ID=54084316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510315397.8A Active CN104915234B (en) 2015-06-10 2015-06-10 A kind of Android mobile terminal upgrading report method and system

Country Status (1)

Country Link
CN (1) CN104915234B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982445A (en) * 2016-01-19 2017-07-25 西安中兴新软件有限责任公司 A kind of transmission method, equipment and the system of abnormal information of upgrading
CN108600516B (en) * 2018-03-29 2020-12-29 努比亚技术有限公司 Data acquisition method, mobile terminal and computer readable storage medium
CN108845819B (en) * 2018-08-10 2019-10-18 百度在线网络技术(北京)有限公司 Programme upgrade method and device for equipment
CN109683929A (en) * 2018-12-07 2019-04-26 深圳市海派通讯科技有限公司 Test method, system and storage medium based on FOTA system update
CN110659041A (en) * 2019-08-22 2020-01-07 深圳市星汉智能科技有限公司 Application upgrading method and system based on Android platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296135A (en) * 2008-06-27 2008-10-29 中兴通讯股份有限公司 Fault information processing method and device
CN101656949A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method and terminals for aerial upgrade of firmware
CN103514030A (en) * 2012-07-24 2014-01-15 Tcl集团股份有限公司 Event collecting and reporting system and method of Android system
CN104506381A (en) * 2014-12-16 2015-04-08 新余兴邦信息产业有限公司 Method and device for monitoring file uploading through instrument

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686139B (en) * 2008-09-22 2012-05-23 华为终端有限公司 Method, device and system of multicast upgrading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296135A (en) * 2008-06-27 2008-10-29 中兴通讯股份有限公司 Fault information processing method and device
CN101656949A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method and terminals for aerial upgrade of firmware
CN103514030A (en) * 2012-07-24 2014-01-15 Tcl集团股份有限公司 Event collecting and reporting system and method of Android system
CN104506381A (en) * 2014-12-16 2015-04-08 新余兴邦信息产业有限公司 Method and device for monitoring file uploading through instrument

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
用电信息采集终端远程升级平台设计与实现;田建伟 等;《计算机应用与软件》;20140115;第31卷(第1期);第330-333页

Also Published As

Publication number Publication date
CN104915234A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN104915234B (en) A kind of Android mobile terminal upgrading report method and system
CN105262627B (en) Firmware upgrading method, device and system
CN106815370B (en) Method, device and system for updating resource file
CN106843957A (en) System firmware upgrade method and device
CN102377821B (en) Intelligent version updating method and device for network terminal equipment
CN106293811A (en) A kind of packing and issuing method and device automatically
CN110134418A (en) Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN106484453B (en) Method and device for realizing system upgrading
CN107682436A (en) A kind of method, apparatus and equipment of more new file
CN103036706A (en) Local processing method of application upgrading abnormity
WO2015070777A1 (en) Software upgrade method, client, server, system and storage medium
CN102622253A (en) Singlechip and method for upgrading singlechip on line
US20160170735A1 (en) Operating system updating method by using a checklist
CN102065118A (en) Method for updating network equipment and device for implementing method
CN101656949A (en) Method and terminals for aerial upgrade of firmware
CN103309761B (en) A kind of method and system of automatic error-correcting based on online service
CN105897461A (en) Multi-system OTA upgrading method and multi-system device
CN107396188B (en) A kind of upgrade method and system of set-top box
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN108874437B (en) Online cloud updating method for android application program
CN112953983A (en) SFTP transmission method and device
CN103902309A (en) Method for remotely upgrading wireless module firmware
WO2017016282A1 (en) Software upgrading method and apparatus, and computer storage medium
CN108874439A (en) Obtain method and device, upgrade method and the device of customization difference packet
CN105786636B (en) A kind of system repair and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant