CN109901860B - Android mobile phone software version control method - Google Patents

Android mobile phone software version control method Download PDF

Info

Publication number
CN109901860B
CN109901860B CN201910128759.0A CN201910128759A CN109901860B CN 109901860 B CN109901860 B CN 109901860B CN 201910128759 A CN201910128759 A CN 201910128759A CN 109901860 B CN109901860 B CN 109901860B
Authority
CN
China
Prior art keywords
version
mobile phone
phone software
software
upgrade
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
CN201910128759.0A
Other languages
Chinese (zh)
Other versions
CN109901860A (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.)
Wasu Media & Network Co ltd
Original Assignee
Wasu Media & Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wasu Media & Network Co ltd filed Critical Wasu Media & Network Co ltd
Priority to CN201910128759.0A priority Critical patent/CN109901860B/en
Publication of CN109901860A publication Critical patent/CN109901860A/en
Application granted granted Critical
Publication of CN109901860B publication Critical patent/CN109901860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an Android mobile phone software version control method, which specifically comprises 101) an offline version processing step and 102) a detection version processing step; the invention provides a method for controlling the software version of an Android mobile phone.

Description

Android mobile phone software version control method
Technical Field
The invention relates to the field of mobile phone software updating, in particular to an Android mobile phone software version control method.
Background
As shown in fig. 2, it is a flowchart of a version control scheme of the existing software upgrade, which has the following disadvantages: the power-on offline mode (no network) may skip the version check of the software. The upgrade process (downloading the latest version) fails and software upgrades can be skipped. In the selective upgrading process, the upgrading can be selected not. The software user is caused to skip the software upgrading process by a method, so that the version number of the software is diffused, the difficulty is increased for the later iterative compatibility of the software, and the poor user experience of the software user is caused if the developer is not compatible with the software.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method for controlling the software version of an Android mobile phone.
A method for controlling Android mobile phone software version specifically comprises the following steps:
101) and (3) offline version processing: starting the mobile phone software, detecting the network condition, judging whether the off-line version of the mobile phone software is in the valid period when no network exists, continuing to enter the service page of the mobile phone software if the off-line version of the mobile phone software is in the valid period, prompting a user that the version is overdue if the off-line version of the mobile phone software is not in the valid period, and skipping to the corresponding page to download the latest version; when a network exists, updating the validity period of the off-line version of the mobile phone software, judging whether the on-line version is in the validity period, if so, entering a step of detecting the version, and if not, prompting a user that the version is overdue, and skipping to a corresponding page to download the latest version;
102) and a detection version processing step: detecting whether the mobile phone software has a new version, if the mobile phone software has no new version, entering a service page of the mobile phone software, if the mobile phone software has a new version, selecting whether to perform forced upgrade, if the software has a new version, performing the upgrade of the new version, if the software has a new version, judging whether the normal upgrade is performed, if the normal upgrade is selected, performing the upgrade of the new version of the mobile phone software, and if the normal upgrade is not selected, entering the service page of the mobile phone software.
Further, when the mobile phone software generates the installation package, according to the iteration time of the product, writing the default version validity period, namely the offline version validity period T0
Further, after the mobile phone software is started, the network is unavailable, and the current time T of the system is obtained by a method carried by the system1Later, the validity period T of the version and the offline version0For comparison, val result = Compare (T0, T1).
Further, after the mobile phone software is started, if the network is available, the current time T of the system is obtained by the method carried by the system1And obtaining the latest version validity period T of the server according to the software version number VerisonCode2And comparing T1And T2;val result = Compare(T2,T1)。
Compared with the prior art, the invention has the advantages that: in the case where the control of the software versions is realized by the present invention, the number of software versions can be controlled (by managing the validity period of the software versions). The invention can avoid the compatibility problem generated in the software iteration process, namely the phenomenon of software running caused by the fact that the old version software does not support the new version service.
Drawings
FIG. 1 is a flow chart of the present invention;
fig. 2 is a flowchart of conventional software.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
As shown in fig. 1, a method for controlling an Android mobile phone software version specifically includes the following steps:
101) and (3) offline version processing: starting the mobile phone software, detecting the network condition, judging whether the off-line version of the mobile phone software is in the valid period when no network exists, continuing to enter the service page of the mobile phone software if the off-line version of the mobile phone software is in the valid period, prompting a user that the version is overdue if the off-line version of the mobile phone software is not in the valid period, and skipping to the corresponding page to download the latest version; when a network exists, updating the validity period of the off-line version of the mobile phone software, judging whether the on-line version is in the validity period, if so, entering a step of detecting the version, and if not, prompting a user that the version is overdue, and skipping to a corresponding page to download the latest version;
102) and a detection version processing step: detecting whether the mobile phone software has a new version, if the mobile phone software has no new version, entering a service page of the mobile phone software, if the mobile phone software has a new version, selecting whether to perform forced upgrade, if the software has a new version, performing the upgrade of the new version, if the software has a new version, judging whether the normal upgrade is performed, if the normal upgrade is selected, performing the upgrade of the new version of the mobile phone software, and if the normal upgrade is not selected, entering the service page of the mobile phone software.
When the mobile phone software generates the installation package, writing the default version validity period, namely the offline version validity period T, into the product according to the iteration time of the product0
After the mobile phone software is started, the network is unavailable and the mobile phone software passes through the party of the systemMethod for obtaining current time T of system1Later, the validity period T of the version and the offline version0For comparison, val result = Compare (T0, T1).
After the mobile phone software is started, if the network is available, the current time T of the system is obtained by the method of the system1And obtaining the latest version validity period T of the server according to the software version number VerisonCode2And comparing T1And T2;val result = Compare(T2,T1)。
Where, Compare (Time1, Time2) is a method for comparing Time, if Time1> = Time2, the result is true, otherwise, false is returned. In software, the expiration time is a timestamp, i.e., a Long integer (Long) number, such as 1546997568 (representing 2019-01-0909: 32: 48). The time method is therefore as follows: compare (Time1, Time2) = (Time1-Time2< = 0).
According to the comparison result, if reuse = true, the version is not invalid, and T is updated0Has a value of T2While keeping T0Entering a local database, and then entering a related service page according to a preset flow; and if result = false, the version is invalid, the version is started to be an expired prompt page, and the page for downloading the latest software is started. The version control is carried out on the terminal, the number of software versions is reduced, and the compatibility problem generated in the software iteration process is effectively avoided.
The above-described embodiments are only preferred embodiments of the present invention, and are not intended to limit the present invention in any way, and other variations and modifications may be made without departing from the spirit of the invention as set forth in the claims.

Claims (4)

1. The Android mobile phone software version control method is characterized by comprising the following steps:
101) and (3) offline version processing: starting the mobile phone software, detecting the network condition, judging whether the off-line version of the mobile phone software is in the valid period when no network exists, continuing to enter the service page of the mobile phone software if the off-line version of the mobile phone software is in the valid period, prompting a user that the version is overdue if the off-line version of the mobile phone software is not in the valid period, and skipping to the corresponding page to download the latest version; when a network exists, updating the validity period of the off-line version of the mobile phone software, judging whether the on-line version is in the validity period, if so, entering a step of detecting the version, and if not, prompting a user that the version is overdue, and skipping to a corresponding page to download the latest version;
102) and a detection version processing step: detecting whether the mobile phone software has a new version, if the mobile phone software has no new version, entering a service page of the mobile phone software, if the mobile phone software has a new version, selecting whether to perform forced upgrade, if the software has a new version, performing the upgrade of the new version, if the software has a new version, judging whether the normal upgrade is performed, if the normal upgrade is selected, performing the upgrade of the new version of the mobile phone software, and if the normal upgrade is not selected, entering the service page of the mobile phone software.
2. The Android mobile phone software version control method according to claim 1, characterized in that: when the mobile phone software generates the installation package, writing the default version validity period, namely the offline version validity period T, into the product according to the iteration time of the product0
3. The Android mobile phone software version control method according to claim 2, characterized in that: after the mobile phone software is started, the network is unavailable, and the current time T of the system is obtained by a method carried by the system1Then, the validity period T of the offline version0For comparison, val result is Compare (T)0,T1)。
4. The Android mobile phone software version control method according to claim 1, characterized in that: after the mobile phone software is started, if the network is available, the current time T of the system is obtained by the method of the system1And obtaining the latest version validity period T of the server according to the software version number VerisonCode2And comparing T1And T2;val result=Compare(T2,T1)。
CN201910128759.0A 2019-02-21 2019-02-21 Android mobile phone software version control method Active CN109901860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910128759.0A CN109901860B (en) 2019-02-21 2019-02-21 Android mobile phone software version control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910128759.0A CN109901860B (en) 2019-02-21 2019-02-21 Android mobile phone software version control method

Publications (2)

Publication Number Publication Date
CN109901860A CN109901860A (en) 2019-06-18
CN109901860B true CN109901860B (en) 2022-07-01

Family

ID=66945117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910128759.0A Active CN109901860B (en) 2019-02-21 2019-02-21 Android mobile phone software version control method

Country Status (1)

Country Link
CN (1) CN109901860B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110363005A (en) * 2019-06-21 2019-10-22 绿漫科技有限公司 A kind of expired detection method of iOS enterprise version APP
CN114765771A (en) * 2021-01-08 2022-07-19 展讯通信(上海)有限公司 Model updating method and device, storage medium, terminal and network side equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043650A (en) * 2009-10-23 2011-05-04 镇江精英软件科技有限公司 Method for automatically upgrading client program by FTP (file transfer protocol) technology
CN102779258A (en) * 2012-07-06 2012-11-14 苏州阔地网络科技有限公司 Control method and system for period of validity of software
CN103731815A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for achieving mobile phone client software upgrading
CN104598262A (en) * 2014-11-25 2015-05-06 深圳市腾讯计算机系统有限公司 Method and device for updating mobile application
CN105094875A (en) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 Software upgrading method and device
CN106933547A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Method, device and more new system that global information is obtained and processed
CN107704280A (en) * 2016-11-15 2018-02-16 平安科技(深圳)有限公司 application program updating method and system
CN109032646A (en) * 2018-08-28 2018-12-18 杭州迪普科技股份有限公司 A kind of methods, devices and systems updating application

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100403836C (en) * 2005-06-10 2008-07-16 华为技术有限公司 Terminal device software/firmware downloading updating method
CN101262684B (en) * 2008-04-18 2011-07-13 中兴通讯股份有限公司 A version upgrade detection method for mobile communication system
CN101984405A (en) * 2010-10-11 2011-03-09 中兴通讯股份有限公司 Method of software version upgrade and terminal and system
CN102868731B (en) * 2012-08-27 2014-12-17 济南大学 Method and device for software online updating and downloading acceleration
CN103841155B (en) * 2012-11-26 2015-12-23 腾讯科技(深圳)有限公司 A kind of method for downloading software and software download device
CN103970550A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Software updating prompting method and device for mobile terminal
CN105975296A (en) * 2016-04-26 2016-09-28 百度在线网络技术(北京)有限公司 Mobile application upgrading method and device
CN108536460A (en) * 2018-04-17 2018-09-14 南京高盛信息科技有限公司 A kind of software automatic updating system of lightweight

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043650A (en) * 2009-10-23 2011-05-04 镇江精英软件科技有限公司 Method for automatically upgrading client program by FTP (file transfer protocol) technology
CN102779258A (en) * 2012-07-06 2012-11-14 苏州阔地网络科技有限公司 Control method and system for period of validity of software
CN103731815A (en) * 2012-10-11 2014-04-16 北京新媒传信科技有限公司 Method and device for achieving mobile phone client software upgrading
CN105094875A (en) * 2014-05-19 2015-11-25 中兴通讯股份有限公司 Software upgrading method and device
CN104598262A (en) * 2014-11-25 2015-05-06 深圳市腾讯计算机系统有限公司 Method and device for updating mobile application
CN106933547A (en) * 2015-12-29 2017-07-07 阿里巴巴集团控股有限公司 Method, device and more new system that global information is obtained and processed
CN107704280A (en) * 2016-11-15 2018-02-16 平安科技(深圳)有限公司 application program updating method and system
CN109032646A (en) * 2018-08-28 2018-12-18 杭州迪普科技股份有限公司 A kind of methods, devices and systems updating application

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
A framework for live software upgrade;Lizhou Yu等;《Proceedings of the 13 th International Symposium on Software Reliability Engineering (ISSRE’02)》;20030129;第1-10页 *
Android 申请签名证书详解;这是一个秘密;《http://blog.sina.com.cn/s/blog_821e2bb101018n6l.html》;20120809;第1-5页 *
Android产品研发(十四)-->App升级与更新;一片枫叶_刘超;《https://blog.csdn.net/qq_23547831/article/details/51764773》;20160628;第1-10页 *
Android手机软件升级技术综述;黄超等;《科技展望》;20160720;第10页 *
关于设置软件的有效期;不过一书生;《https://www.jianshu.com/p/2c74f7270019》;20180707;第1-4页 *
查看android 签名文件的有效期限;michaelpan;《https://my.oschina.net/panyingyun/blog/164035》;20130925;第1-2页 *
软件的强制自动升级;罗航馨;《电脑编程技巧与维护》;20070103;第12-15页 *

Also Published As

Publication number Publication date
CN109901860A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
CN100501675C (en) Method and apparatus used for upgrading software
CN106897086B (en) Method, device and system for upgrading robot operating system
US10602348B2 (en) System and method for updating dataset versions resident on a wireless device
KR100915564B1 (en) Method, software and apparatus for application upgrade during execution
CN101593121B (en) Method, device and system for software on-line upgrade
US8775620B2 (en) Multimedia middleware apparatus using metadata, method for controlling multimedia middleware, and storage medium thereof
US20040188511A1 (en) System to automatically process components on a device
CN109901860B (en) Android mobile phone software version control method
WO2006115290A1 (en) Program version management taking into account system stability
CN101335641A (en) Method, apparatus and system for updating apparatus
CN105389183A (en) Method and apparatus for making application version and intelligent sound box software version correspond
KR101201276B1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN108874437B (en) Online cloud updating method for android application program
WO2006057861A1 (en) System and method for over-the-air update of wireless communication devices
CN106686073A (en) Information processing method and system
WO2016041499A1 (en) Application downloading method and mobile terminal
CN111078245A (en) Application silence updating method and device
US20040188510A1 (en) System for registry-based automatic installation and component handling on a device
US20090037493A1 (en) Method and device for updating an object with copyright attribute
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
WO2012048632A1 (en) Java application method and system
CN112596773A (en) Application program updating method, device, equipment and storage medium
CN112448965B (en) Data updating method, device, storage medium and intelligent terminal
CN113852802B (en) Method for detecting adaptive capacity of IPTV soft terminal and intelligent display device
CN117055919A (en) Function upgrading method and processing terminal under condition that CS client does not change file

Legal Events

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