CN111078245A - Application silence updating method and device - Google Patents

Application silence updating method and device Download PDF

Info

Publication number
CN111078245A
CN111078245A CN201910966453.2A CN201910966453A CN111078245A CN 111078245 A CN111078245 A CN 111078245A CN 201910966453 A CN201910966453 A CN 201910966453A CN 111078245 A CN111078245 A CN 111078245A
Authority
CN
China
Prior art keywords
application
update
terminal
silent
cloud
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.)
Pending
Application number
CN201910966453.2A
Other languages
Chinese (zh)
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.)
Shanghai Sunmi Technology Group Co Ltd
Shanghai Sunmi Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group 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 Shanghai Sunmi Technology Group Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN201910966453.2A priority Critical patent/CN111078245A/en
Publication of CN111078245A publication Critical patent/CN111078245A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an application silence updating method and device, wherein the method comprises the following steps: the method comprises the steps that a terminal receives an update application push notification from a server, and the server is configured with an update application at a cloud end; after the terminal passes the cloud verification, downloading the updated application from the cloud and installing the updated application locally, and after the downloading and the installing are completed, verifying the updated application; and after the verification is passed, the terminal updates the application in a silent mode. The terminal can automatically update the application, does not influence the use of the user, and does not need any user intervention.

Description

Application silence updating method and device
Technical Field
The embodiment of the invention relates to the technical field of terminal application, in particular to an application silence updating method and device.
Background
Two common application market updating application modes are provided, namely, reminding installation updating and forcing updating. Reminding installation of an update requires user confirmation before installation of the update, which the user may not care about and use, and may choose not to update. For forced updating, sometimes a user is using an application, and forced updating is performed suddenly without any prompt, which may affect the ongoing service of the user, and the user experience is not good, and customer complaints are easily caused. However, if not updated, important updates by the software vendor may not reach the device at a later time.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
In view of the foregoing problems, an object of embodiments of the present invention is to provide a method and an apparatus for updating application silence, where a terminal can update silence automatically without affecting the use of a user and without user intervention.
In order to achieve the above object, an embodiment of the present invention provides an application silent update method, including: the method comprises the steps that a terminal receives an update application push notification from a server, and the server is configured with an update application at a cloud end; after the terminal passes the cloud verification, downloading the updated application from the cloud and installing the updated application locally, and after the downloading and the installing are completed, verifying the updated application; and after the verification is passed, the terminal updates the application in a silent mode.
Further, the update application push notification includes a download address, a size, and MD5 information of the update application; the terminal downloads the update application from a cloud, and specifically includes: and after the cloud end verification passes, the terminal downloads the corresponding update application from the cloud end according to the download address.
Further, the terminal downloads the corresponding update application from the cloud according to the download address, and specifically includes: checking a network state of the terminal; if the WIFI is connected, downloading the updating application from the cloud; if no WIFI is connected, detecting whether a timing task exists; if the timing task exists, deleting the local detection task when the timing is reached; if the timing task does not exist, the terminal sends out a pop-up box to remind of downloading the updating application, and the updating application is downloaded from the cloud; if the download is confirmed in the bullet frame prompt; and if the non-downloading is confirmed in the popup box reminding, updating is not carried out temporarily, the local popup task is recorded, and when the popup task reaches the timing, the network state is returned to check and the network state is downloaded again.
Further, after the update application is downloaded, the method further includes: detecting whether a reminding installation record of preset time exists locally; if the installation reminding record exists, whether the update application at the cloud is matched with the local area or not is continuously judged, if not, the update application is cancelled, and if so, a bullet box is triggered to remind installation; if the installation record is not reminded, whether the application is in a foreground use state or not is continuously judged, if the application is in use, a popup box is triggered to remind installation, and if the application is not in use, the updated application is installed.
Further, after the downloading and the installing are completed, the verifying the updated application specifically includes: after the downloading and the installation are finished, the terminal checks whether the MD5 issued by the server is consistent with the MD5 generated by the downloaded application; if the two are consistent, the verification is successful, and the terminal is silent and installs the updated application; if the network state is inconsistent with the network state, the verification is unsuccessful, and the network state is returned to check again to wait for downloading again.
Further, the silent installation and update of the application by the terminal specifically includes: the ROM bottom layer of the terminal system is provided with a self-defined activitManagernative program and a packageManager program; and judging whether the application is in a foreground use state or not through the ActivityManagernative program, and if the application is not in the use state, skipping a judgment logic selected by a user through the PackageManager program, and updating the application in a silent mode. The ROM bottom layer of the terminal system is also provided with a self-defined PackageInstallObserver program, and after the application is installed on the terminal, the installation result is quickly called back through the PackageInstallObserver, and the installation result is reported.
An embodiment of the present invention further provides an application silent update apparatus, including: the system comprises a first module, a second module and a third module, wherein the first module is used for receiving an update application push notification from a server, and the server is configured with an update application at a cloud end; the second module is used for downloading the updated application from the cloud end and installing the updated application locally after passing the cloud end verification, and verifying the updated application after the downloading and the installing are finished; and the third module is used for silent updating application of the terminal after the verification is passed.
In an embodiment of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of the above-described embodiment.
In an embodiment of the present invention, there is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method of the above-mentioned embodiment.
From the above, the application silent update method and apparatus provided by the embodiments of the present invention,
when an operator has updated an application on shelf, the application is pushed to a terminal to be upgraded, whether the application is in a foreground use state is judged by an ActivityManagerNative method on the bottom layer of a ROM (read only memory) of a terminal system, if the application is not in use, a judgment logic selected by a user is skipped through a packageManager program on the bottom layer of the ROM of the terminal system after downloading is finished, and the application is updated silently; if the application is in use, the popup box inquires whether the application is installed or not, the equipment starts countdown after the installation inquiry is refused, the popup box inquires again after the operation is not performed, when the equipment is not operated, the popup box inquires, when the equipment is not operated, the terminal automatically and silently installs the application and opens the updated application after the terminal confirms that the terminal is in time, the terminal automatically judges the use state of the application and silently updates the application, and a user is completely insensitive.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating an application silent update method according to an embodiment of the present invention.
Fig. 2 is a detailed flowchart of an application silent update method according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an application silent update apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Furthermore, as used in the examples of the invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
An embodiment of the present invention provides an application silent update method, as shown in fig. 1, the method includes the following steps:
step S101, a terminal receives an update application push notification from a server, and the server is configured with an update application at a cloud.
In this step, according to the application updating requirement of the manager or the channel provider, the updating application is configured at the cloud. The method comprises the steps that terminals needing to push the update application are determined, a server sends update application push notifications to the terminals, wherein the update application push notifications comprise information such as a download address, size and MD5 of each update application, and the server sends the update application push notifications to the terminals in an interface mode.
And S102, after the terminal passes the cloud verification, downloading the updated application from the cloud and installing the updated application locally, and after the downloading and the installing are completed, verifying the updated application.
In this step, each terminal has its own device serial number as a unique device identifier, encrypts the device identifier and uploads the encrypted device identifier and a signature to the cloud together, where the signature is an encryption key formed according to a parameter of an encryption algorithm (e.g., DES/CBC/PKCS5 Padding), a timestamp, a 6-bit random number, and MD5, and then performs MD5 encryption on the encryption key to generate a final encryption signature. And after receiving the encrypted equipment identification and the signature, the cloud end carries out signature decryption and verifies the equipment identification.
After the terminal passes through the cloud verification, the terminal can download each update application from the cloud according to the download address of the update application. Downloading an application from a cloud, as shown in fig. 2, may specifically include:
s201, a terminal receives an update application push notification;
s202, checking the network state of the terminal;
s203, if WIFI is connected, downloading the update application from the cloud;
s204, if no WIFI is connected (for example, under 3G), detecting whether a timing task exists, for example, detecting a local 1-hour popup task;
s205, if timing tasks exist, deleting the local detection task when the timing is reached;
s206, if the timing task does not exist, the terminal sends a pop-up frame prompt to download the updating application, if the downloading is confirmed in the pop-up frame prompt, the step S203 is entered, and the updating application is downloaded from the cloud;
s207, if the downloading is not confirmed in the popup box reminding, updating is not carried out temporarily, and a local popup task is recorded, for example, timing is started for 1 hour;
and S208, when the popup task timing is up, returning to the step S201 to send the notice of updating the application to the terminal, and circularly performing the flow.
As shown in fig. 2, after the update application is downloaded from the cloud in S203, the installation process of the update application is further included, which is as follows:
s209, detecting whether a reminding installation record of preset time exists locally;
s210, if the installation reminding record exists, continuously judging whether the update application at the cloud is matched with the local area, if not, canceling the update application, ending the process, and if so, entering the step S212;
s211, if the installation record is not reminded, continuing to judge whether the application is in use, if the application is in use, entering step S212, and if the application is not in use, entering step S213;
s212, if the judgment in the S210 is matching or the judgment in the S211 is applied in use, triggering a popup box to remind installation;
s213, if the installation is confirmed in the pop-up box reminding in the S212 or the application is judged not to be used in the S211, installing the updated application;
s214, if the fact that the installation is not carried out in the bullet box reminding is confirmed, the step continues to enter S212 to trigger the bullet box reminding after the timing time is reached, and the local task is recorded;
as shown in fig. 2, after the update application is downloaded and installed from the cloud in S213, the installation execution process of the update application is further included, which specifically includes the following steps:
after the update application is downloaded and locally installed, the terminal checks whether the MD5 issued by the server is consistent with the MD5 generated by downloading the update application, so as to ensure that the application download transmission is not tampered. If the verification is successful, the following step S103 is performed, and if the verification is unsuccessful, the network status is checked again, and the download is performed again.
And step S103, after the verification is passed, the terminal updates the application in a silent mode.
In this step, the silent update of the terminal is applied in two different ways.
One is to quiesce the update application through a custom program. Specifically, the ROM bottom layer of the terminal system has a self-defined activitymanagenative program and a PackageManager program, and the activitymanagenative program can judge whether the application is in a foreground use state, and if the application is not in the use state, the PackageManager skips a user to realize silent updating of the application, so that the user does not need to operate the application in the period.
And the other is that the terminal actively sends out startup broadcast when restarting the startup, actively pulls up the update application, and actively executes downloading silent installation. Abandoning the step that the native system application needs to wait for the system to send out the installation completion broadcast when the installation is completed.
The ROM bottom layer of the terminal system is also provided with a custom PackageInstallObserver program. And after the updated application is installed on the terminal, quickly calling back an installation result through the packageInstallObserver, and reporting the installation result to the cloud end.
With further reference to fig. 3, an embodiment of the present invention further provides an application silence updating apparatus, including:
a first module 301, configured to receive an update application push notification from a server, where the server is configured with an update application in a cloud;
a second module 302, configured to download the update application from the cloud and install the update application locally after passing cloud verification, and verify the update application after the download and installation are completed;
a third module 303, configured to update the application in a silent manner after the verification passes.
The above-mentioned specific technical details of applying the silent updating apparatus and the silent updating method are similar, and the technical effect achieved in the embodiment of applying the silent updating apparatus can also be achieved in the embodiment of applying the silent updating method, and is not described herein again in order to reduce repetition. Accordingly, the related technical details mentioned in the embodiment applying the silent update apparatus can also be applied in the embodiment applying the silent update method.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described in the above embodiments.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method described in the above embodiments are implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for applying silent updates, comprising:
the method comprises the steps that a terminal receives an update application push notification from a server, and the server is configured with an update application at a cloud end;
after the terminal passes the cloud verification, downloading the updated application from the cloud and installing the updated application locally, and after the downloading and the installing are completed, verifying the updated application;
and after the verification is passed, the terminal updates the application in a silent mode.
2. The application silent update method according to claim 1, wherein the update application push notification includes download address, size, MD5 information of the update application;
the terminal downloads the update application from a cloud, and specifically includes:
and after the cloud end verification passes, the terminal downloads the corresponding update application from the cloud end according to the download address.
3. The application silent updating method according to claim 2, wherein the terminal downloads the corresponding update application from the cloud according to the download address, and specifically comprises:
checking a network state of the terminal; if the WIFI is connected, downloading the updating application from the cloud; if no WIFI is connected, detecting whether a timing task exists; if the timing task exists, deleting the local detection task when the timing is reached; if the timing task does not exist, the terminal sends out a pop-up box to remind of downloading the updating application, and the updating application is downloaded from the cloud; if the download is confirmed in the bullet frame prompt; and if the non-downloading is confirmed in the popup box reminding, updating is not carried out temporarily, the local popup task is recorded, and when the popup task reaches the timing, the network state is returned to check and the network state is downloaded again.
4. The application silent update method according to claim 1, wherein after the update application is downloaded, further comprising:
detecting whether a reminding installation record of preset time exists locally; if the installation reminding record exists, whether the update application at the cloud is matched with the local area or not is continuously judged, if not, the update application is cancelled, and if so, a bullet box is triggered to remind installation; if the installation record is not reminded, whether the application is in a foreground use state or not is continuously judged, if the application is in use, a popup box is triggered to remind installation, and if the application is not in use, the updated application is installed.
5. The application silent update method according to claim 1, wherein the verifying the updated application after the downloading and the installing are completed specifically comprises:
after the downloading and the installation are finished, the terminal checks whether the MD5 issued by the server is consistent with the MD5 generated by the downloaded application; if the two are consistent, the verification is successful, and the terminal is silent and installs the updated application; if the network state is inconsistent with the network state, the verification is unsuccessful, and the network state is returned to check again to wait for downloading again.
6. The application silent update method according to claim 5, wherein the silent installation of the updated application by the terminal specifically comprises:
the ROM bottom layer of the terminal system is provided with a self-defined activitManagernative program and a packageManager program;
and judging whether the application is in a foreground use state or not through the ActivityManagernative program, and if the application is not in the use state, skipping a judgment logic selected by a user through the PackageManager program, and updating the application in a silent mode.
7. The application silent update method according to claim 6, characterized in that the method further comprises: and the bottom layer of the ROM of the terminal system is also provided with a self-defined PackageInstallObserver program, and after the application is installed on the terminal, the installation result is quickly called back through the PackageInstallObserver, and the installation result is reported.
8. An apparatus for applying silent update, comprising:
the system comprises a first module, a second module and a third module, wherein the first module is used for receiving an update application push notification from a server, and the server is configured with an update application at a cloud end;
the second module is used for downloading the updated application from the cloud end and installing the updated application locally after passing the cloud end verification, and verifying the updated application after the downloading and the installing are finished;
and the third module is used for silent updating application of the terminal after the verification is passed.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of claims 1 to 8.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of claims 1 to 8 are implemented when the processor executes the program.
CN201910966453.2A 2019-10-12 2019-10-12 Application silence updating method and device Pending CN111078245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910966453.2A CN111078245A (en) 2019-10-12 2019-10-12 Application silence updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910966453.2A CN111078245A (en) 2019-10-12 2019-10-12 Application silence updating method and device

Publications (1)

Publication Number Publication Date
CN111078245A true CN111078245A (en) 2020-04-28

Family

ID=70310329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910966453.2A Pending CN111078245A (en) 2019-10-12 2019-10-12 Application silence updating method and device

Country Status (1)

Country Link
CN (1) CN111078245A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114485691A (en) * 2021-12-31 2022-05-13 武汉中海庭数据技术有限公司 High-precision map real-time updating method and system based on vehicle position
CN116048830A (en) * 2022-07-22 2023-05-02 荣耀终端有限公司 Method for reminding of software version upgrade, electronic equipment and readable storage medium
US11805068B2 (en) 2021-02-23 2023-10-31 Google Llc Selective delaying of provisioning, to assistant device(s), assistant data that is locally utilizable by a corresponding local assistant client

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11805068B2 (en) 2021-02-23 2023-10-31 Google Llc Selective delaying of provisioning, to assistant device(s), assistant data that is locally utilizable by a corresponding local assistant client
CN114485691A (en) * 2021-12-31 2022-05-13 武汉中海庭数据技术有限公司 High-precision map real-time updating method and system based on vehicle position
CN116048830A (en) * 2022-07-22 2023-05-02 荣耀终端有限公司 Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN116048830B (en) * 2022-07-22 2023-10-24 荣耀终端有限公司 Method for reminding of software version upgrade, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111078245A (en) Application silence updating method and device
CN108509211A (en) Application program updating method, apparatus, mobile terminal and storage medium
CN107038085B (en) Method, device and system for repairing client application
CN107748668B (en) Method and device for upgrading application program
CN106131612B (en) The method and system of Android app dynamically load resource function module
CN105138347A (en) Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN109063423B (en) Application software authorization method and system
WO2015058574A1 (en) Method and apparatus for implementing push notification of extensive application program
CN111199039B (en) Application security verification method and device and terminal equipment
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
CN108197469B (en) Method and device for verifying application program, storage medium and electronic equipment
CN113703813A (en) Kernel upgrading method, device, equipment and computer readable storage medium
WO2016041499A1 (en) Application downloading method and mobile terminal
CN107479923A (en) Application program updating method, apparatus and display terminal
CN106293814B (en) Upgrading method and device
CN111095206B (en) Method for verifying medical application program, end user device and medical system
CN106598645B (en) Application upgrading method and device and mobile terminal
CN113515269B (en) Application package processing method and device, computer equipment and storage medium
CN113064611B (en) Method for realizing data analysis software upgrading aiming at wireless equipment and updating method thereof
CN110912963A (en) Cloud configuration silent preassembly method and device
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN114706706A (en) Application software repairing method and device and electronic equipment
CN113553271A (en) Method for generating and testing internal test program of application program
US20220376992A1 (en) Network Function Management
CN110806935B (en) Application program construction method, device and system

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