CN117407010A - Software upgrading method, device, medium and equipment - Google Patents

Software upgrading method, device, medium and equipment Download PDF

Info

Publication number
CN117407010A
CN117407010A CN202310172464.XA CN202310172464A CN117407010A CN 117407010 A CN117407010 A CN 117407010A CN 202310172464 A CN202310172464 A CN 202310172464A CN 117407010 A CN117407010 A CN 117407010A
Authority
CN
China
Prior art keywords
software
software upgrading
package
upgrading
equipment
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
CN202310172464.XA
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202310172464.XA priority Critical patent/CN117407010A/en
Publication of CN117407010A publication Critical patent/CN117407010A/en
Pending legal-status Critical Current

Links

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)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a software upgrading method, a device, a medium and equipment, wherein the method comprises the following steps: when the equipment is started for the first time, judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment, and obtaining a judging result; if the judgment result is that the processing priority of the software upgrading packet is highest in all the current processing matters, the processing priority of the software upgrading packet is positioned highest, and the software upgrading operation is carried out according to the software upgrading packet. According to the method and the device, whether the software upgrading package pushed by the server is received or not is detected when the device is started for the first time, the processing priority of the software upgrading package is judged under the condition that the software upgrading package is detected, whether the software upgrading package is the important processing item with the highest priority is further determined, and when the important processing item with the highest priority is determined, the software upgrading operation is preferentially carried out according to the software upgrading package, so that the vulnerability problem is eliminated before a user notices the software vulnerability, and the use experience of the user is not affected.

Description

Software upgrading method, device, medium and equipment
Technical Field
The present disclosure relates to the field of electronic communications technologies, and in particular, to a software upgrading method, device, medium, and apparatus.
Background
Some software is usually built in an electronic product such as a mobile phone before leaving a factory, and because a developer of the software cannot guarantee to find all vulnerabilities of the software and eliminate the vulnerabilities, existing problems can be found after the electronic product is sold, and therefore the user cannot avoid the problem that the use experience is affected by the hidden vulnerabilities when using the software. At this time, if the electronic product is recovered, the manufacturer will lose. In order to solve the above problems, a developer optimizes software based on problems generated in a software running process and issues a software upgrade package to a user, and eliminates a vulnerability existing in the prior art after the user uses the software upgrade package to perform a software update operation on the software having problems. Most software update operations occur after a user runs the software, at which point an existing software vulnerability may have been discovered by the user and affect the user's use experience.
Disclosure of Invention
The embodiment of the application provides a software upgrading method, a device, a medium and equipment, and the software upgrading method is utilized to detect whether a software upgrading packet pushed by a server is received when the equipment is started for the first time, judge the processing priority of the software upgrading packet under the condition that the software upgrading packet is detected, further determine whether the software upgrading packet is an important processing item with the highest priority, and perform software upgrading operation according to the software upgrading packet preferentially when the important processing item with the highest priority is determined, so that vulnerability problems are eliminated before a user perceives software vulnerabilities, and the use experience of the user is not affected.
An aspect of the embodiments of the present application provides a software upgrade method, where the software upgrade method includes:
when equipment is started for the first time, judging the processing priority of a software upgrading packet aiming at the software upgrading packet existing in the equipment to obtain a judging result;
and if the judging result is that the processing priority of the software upgrading packet is highest in all current processing matters, positioning the processing priority of the software upgrading packet to be highest, and performing software updating operation according to the software upgrading packet.
In the software upgrading method according to the embodiment of the present application, before the determining, for the software upgrading package existing in the device, the processing priority of the software upgrading package, the method further includes:
detecting whether the equipment currently receives a software upgrading message pushed by a server or not;
if the software upgrading message is received, receiving a software upgrading packet downloading operation sent to a server by a user aiming at the software upgrading message, and then storing the software upgrading packet to the local of the equipment after the server responds to the software upgrading packet downloading operation.
In the software upgrading method according to the embodiment of the present application, after the receiving user sends a software upgrading package downloading operation to a server for the software upgrading message, the method further includes:
If the software upgrading package downloading operation is not responded by the server, detecting whether the current network state of the equipment is normal or not;
if the current network state is normal and the software upgrading packet downloading operation is not responded by the server, stopping the software upgrading packet downloading operation and sending a state message for indicating that the current software upgrading packet downloading fails.
In the software upgrading method of the embodiment of the present application, the determining, for a software upgrading packet existing in the device, a processing priority of the software upgrading packet, to obtain a determination result includes:
detecting whether a software upgrading packet existing in the equipment contains a target mark or not, wherein the target mark is used for indicating a target type of a processing item corresponding to the software upgrading packet, judging processing priority corresponding to the target type from all the current processing items of the equipment according to a preset rule, and obtaining a judging result.
In the software upgrading method according to the embodiment of the present application, before the locating the processing priority of the software upgrading package to be highest and performing the software upgrading operation according to the software upgrading package, the method further includes:
detecting whether the software upgrade package has delay setting;
If the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software package upgrading reminding information when the delay time length is reached.
In the software upgrading method according to the embodiment of the present application, before the locating the processing priority of the software upgrading package to be highest and performing the software upgrading operation according to the software upgrading package, the method further includes:
and detecting whether the current residual free space capacity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform software upgrading operation.
In the software upgrading method according to the embodiment of the present application, before the locating the processing priority of the software upgrading package to be highest and performing the software upgrading operation according to the software upgrading package, the method further includes:
and detecting whether the current residual electric quantity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform the software upgrading operation.
Correspondingly, another aspect of the embodiment of the present application further provides a software upgrading device, where the software upgrading device includes:
the judging module is used for judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment when the equipment is started for the first time, so as to obtain a judging result;
And the updating module is used for positioning the processing priority of the software upgrading package to be highest and carrying out software updating operation according to the software upgrading package if the judging result shows that the processing priority of the software upgrading package is highest in all current processing matters.
Accordingly, another aspect of the embodiments of the present application provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the software upgrade method as described above.
Accordingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to perform the software upgrading method as described above.
The embodiment of the application provides a software upgrading method, a device, a medium and equipment, wherein when the equipment is started for the first time, the method judges the processing priority of a software upgrading packet aiming at the software upgrading packet existing in the equipment to obtain a judging result; and if the judging result is that the processing priority of the software upgrading packet is highest in all current processing matters, positioning the processing priority of the software upgrading packet to be highest, and performing software updating operation according to the software upgrading packet. By means of the software upgrading method, whether the software upgrading package pushed by the server is received or not is detected when the equipment is started for the first time, the processing priority of the software upgrading package is judged under the condition that the software upgrading package is detected, whether the software upgrading package is the important processing item with the highest priority is further determined, and when the important processing item with the highest priority is determined, software upgrading operation is preferably carried out according to the software upgrading package, so that the vulnerability problem is eliminated before a user perceives the software vulnerability, and the use experience of the user is not affected.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a software upgrading method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a software upgrading apparatus according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of a software upgrading apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
It should be noted that the following is a simple description of the background of the present solution:
the technical problem that the application window is lost and can be solved only by restarting the application is solved is mainly surrounded by the technical problem that when the application window is dragged in the horizontal direction or the vertical direction in the current display screen, the application window is easy to drag excessively to exceed the display area of the current display screen. It can be appreciated that some software is usually built in an electronic product, such as a mobile phone, before leaving the factory, and since a developer of the software cannot guarantee to find all vulnerabilities of the software and eliminate the vulnerabilities, problems are usually found after the electronic product is sold, so that the user cannot avoid the influence of the hidden vulnerabilities on the use experience when using the software. At this time, if the electronic product is recovered, the manufacturer will lose. In order to solve the above problems, a developer optimizes software based on problems generated in a software running process and issues a software upgrade package to a user, and eliminates a vulnerability existing in the prior art after the user uses the software upgrade package to perform a software update operation on the software having problems. Most software update operations occur after a user runs the software, at which point an existing software vulnerability may have been discovered by the user and affect the user's use experience.
In order to solve the above technical problems, an embodiment of the present application provides a software upgrade method. By means of the software upgrading method, whether the software upgrading package pushed by the server is received or not is detected when the equipment is started for the first time, the processing priority of the software upgrading package is judged under the condition that the software upgrading package is detected, whether the software upgrading package is the important processing item with the highest priority is further determined, and when the important processing item with the highest priority is determined, software upgrading operation is preferably carried out according to the software upgrading package, so that the vulnerability problem is eliminated before a user perceives the software vulnerability, and the use experience of the user is not affected.
Referring to fig. 1, fig. 1 is a flowchart of a software upgrading method according to an embodiment of the present application. The software upgrading method is applied to the terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the method may comprise the steps of:
and step 101, when the equipment is started for the first time, judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment, and obtaining a judging result.
In this embodiment, when it is detected that a device, for example, a mobile phone, is started for the first time, the solution is mainly to avoid that the user runs the software under the condition that the software has a bug, so that the use experience of the user is affected due to the bug. Therefore, before a user runs software, whether a software upgrading package aiming at a software bug is released currently is detected, and meanwhile, the software upgrading package aiming at important upgrading is preset to be highest in processing priority, so that the processing sequence of software updating operation aiming at the software upgrading package can be realized before the software is run, the bug problem is eliminated before the user notices the software bug, and the use experience of the user is not influenced.
In the scheme, since the software upgrade package is issued by a developer and pushed by the server, the software upgrade package can be acquired only by receiving a push message of the server in a device networking state. Therefore, whether the device currently receives the software upgrading message pushed by the server needs to be detected; if the software upgrading message is received, and a user sends a software upgrading package downloading operation to the server aiming at the software upgrading message, the software upgrading package is stored in the equipment after the server responds to the software upgrading package downloading operation.
If the software upgrading package downloading operation is not responded by the server, detecting whether the current network state of the equipment is normal or not; if the current network state is normal and the software upgrading package downloading operation is not responded by the server, stopping the software upgrading package downloading operation, and sending a state message for indicating that the current software upgrading package downloading fails to prompt a user to check the abnormal problem existing in the current equipment or restart the equipment.
In order to determine the processing priority of the software upgrading package, a judging result is obtained by detecting whether a software upgrading package existing in the device contains a target mark or not, wherein the target mark is used for indicating the target type of the processing item corresponding to the software upgrading package, and judging the processing priority corresponding to the target type from all the current processing items of the device according to a preset rule.
It should be explained that the preset rule is considered to be set, for example, when the target type of the processing item corresponding to the software upgrade package is set as a high-risk vulnerability, the processing priority of the software upgrade package needs to be set as the highest of all the current processing items. When the target type of the processing items corresponding to the software upgrading package is a common vulnerability, since the operation of the device or the use of the user cannot be seriously affected, if other processing items with higher emergency degree exist in the current device, the software upgrading operation is required to be executed after the completion of the other processing items.
Step 102, if the result of the determination is that the processing priority of the software upgrade package is highest among all the current processing matters, locating the processing priority of the software upgrade package to be highest, and performing software update operation according to the software upgrade package.
In this embodiment, if the processing priority of the software upgrade package is the highest of all the current processing matters, it is indicated that the processing matters corresponding to the software upgrade package are the most preferred processing matters among the processing matters executable by the current device, and the priority is higher than the processing matters corresponding to the software operation, so that it can be ensured that the software update operation occurs before the user runs the software, the processing priority of the software upgrade package is positioned the highest, and the software update operation is performed according to the software upgrade package. And the user's request to run the software will be denied before the software update is completed.
In some embodiments, since software upgrades typically disable software temporarily, when a user needs urgent use, if a software update operation is forced, the user will be affected, and therefore before locating the processing priority of the software upgrade package highest and performing the software update operation according to the software upgrade package, the method further includes the steps of:
Detecting whether the software upgrade package has delay setting; if the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software upgrading reminding information when the delay time length is reached. I.e. the user can actively set the running time of the software upgrade package after the device is started.
In some embodiments, since the software upgrade may occupy the space capacity of the device, the upgrade may fail when the space capacity does not meet the upgrade requirement of the software upgrade package. The method therefore further comprises the steps of, prior to locating the processing priority of the software upgrade package highest and performing a software update operation according to the software upgrade package:
detecting whether the current residual free space capacity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform the software upgrading operation.
In some embodiments, since the software upgrade accelerates the power consumption of the device, the upgrade may fail when the power does not meet the upgrade requirement of the software upgrade package. The method therefore further comprises the steps of, prior to locating the processing priority of the software upgrade package highest and performing a software update operation according to the software upgrade package:
detecting whether the current residual electric quantity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform the software upgrading operation.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, in the software upgrading method provided by the embodiment of the present application, when a device is started for the first time, the processing priority of the software upgrading packet is determined for the software upgrading packet existing in the device, so as to obtain a determination result; and if the judging result is that the processing priority of the software upgrading packet is highest in all current processing matters, positioning the processing priority of the software upgrading packet to be highest, and performing software updating operation according to the software upgrading packet. By means of the software upgrading method, whether the software upgrading package pushed by the server is received or not is detected when the equipment is started for the first time, the processing priority of the software upgrading package is judged under the condition that the software upgrading package is detected, whether the software upgrading package is the important processing item with the highest priority is further determined, and when the important processing item with the highest priority is determined, software upgrading operation is preferably carried out according to the software upgrading package, so that the vulnerability problem is eliminated before a user perceives the software vulnerability, and the use experience of the user is not affected.
The embodiment of the application also provides a software upgrading device which can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a software upgrading apparatus according to an embodiment of the present application. The software upgrade apparatus 30 may include:
a judging module 31, configured to judge, when the device is started for the first time, a processing priority of a software upgrade package for a software upgrade package already existing in the device, so as to obtain a judging result;
and the updating module 32 is configured to locate the processing priority of the software upgrade package to be highest and perform a software updating operation according to the software upgrade package if the determination result indicates that the processing priority of the software upgrade package is highest among all the current processing matters.
In some embodiments, the apparatus further includes a first detection module configured to detect whether the device currently receives a server pushed software upgrade message; if the software upgrading message is received, receiving a software upgrading packet downloading operation sent to a server by a user aiming at the software upgrading message, and then storing the software upgrading packet to the local of the equipment after the server responds to the software upgrading packet downloading operation.
In some embodiments, the apparatus further includes a second detection module configured to detect whether a current network state of the device is normal if the software upgrade package download operation is not responded to by the server; if the current network state is normal and the software upgrading packet downloading operation is not responded by the server, stopping the software upgrading packet downloading operation and sending a state message for indicating that the current software upgrading packet downloading fails.
In some embodiments, the determining module 31 is configured to detect whether a software upgrade package existing in the device includes a target flag, where the target flag is used to indicate a target type of a processing item corresponding to the software upgrade package, and determine, according to a preset rule, a processing priority corresponding to the target type from all processing items currently in the device, so as to obtain a determination result.
In some embodiments, the apparatus further comprises a third detection module for detecting whether the software upgrade package has a delay setting; if the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software package upgrading reminding information when the delay time length is reached.
In some embodiments, the apparatus further includes a fourth detection module, configured to detect whether the current remaining free space capacity of the device meets an upgrade requirement of the software upgrade package, and if so, continue to perform a software update operation.
In some embodiments, the apparatus further includes a fifth detection module, configured to detect whether the current remaining power of the device meets an upgrade requirement of the software upgrade package, and if so, continue the software upgrade operation.
In specific implementation, each module may be implemented as a separate entity, or may be combined arbitrarily and implemented as the same entity or several entities.
As can be seen from the above, the software upgrading apparatus 30 provided in the embodiments of the present application, wherein the judging module 31 is configured to judge, when the device is started for the first time, the processing priority of the software upgrading packet for the software upgrading packet existing in the device, so as to obtain a judging result; and the updating module 32 is configured to locate the processing priority of the software upgrade package to be highest and perform a software updating operation according to the software upgrade package if the determination result indicates that the processing priority of the software upgrade package is highest among all the current processing matters.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a software upgrade apparatus according to an embodiment of the present application, where the software upgrade apparatus 30 includes a memory 120, one or more processors 180, and one or more application programs, and the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processor 180 may include a determination module 31 and an update module 32. For example, the structures and connection relationships of the above respective components may be as follows:
memory 120 may be used to store applications and data. The memory 120 stores application programs including executable code. Applications may constitute various functional modules. The processor 180 executes various functional applications and data processing by running application programs stored in the memory 120. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide access to the memory 120 by the processor 180.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the device and processes data by running or executing application programs stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the device. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, user interfaces, application programs, and the like.
In particular, in this embodiment, the processor 180 loads executable codes corresponding to the processes of one or more application programs into the memory 120 according to the following instructions, and the processor 180 executes the application programs stored in the memory 120, so as to implement various functions:
the judging instruction is used for judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment when the equipment is started for the first time, so as to obtain a judging result;
and the updating instruction is used for positioning the processing priority of the software upgrading package to be highest and carrying out software updating operation according to the software upgrading package if the judging result shows that the processing priority of the software upgrading package is highest in all current processing matters.
In some embodiments, the program further includes first detection instructions for detecting whether the device currently receives a server pushed software upgrade message; if the software upgrading message is received, receiving a software upgrading packet downloading operation sent to a server by a user aiming at the software upgrading message, and then storing the software upgrading packet to the local of the equipment after the server responds to the software upgrading packet downloading operation.
In some embodiments, the program further includes second detection instructions for detecting whether the current network state of the device is normal if the software upgrade package download operation is not responded to by the server; if the current network state is normal and the software upgrading packet downloading operation is not responded by the server, stopping the software upgrading packet downloading operation and sending a state message for indicating that the current software upgrading packet downloading fails.
In some embodiments, the judging instruction is configured to detect whether a software upgrade package existing in the device includes a target flag, where the target flag is used to indicate a target type of a processing item corresponding to the software upgrade package, and judge, according to a preset rule, a processing priority corresponding to the target type from all processing items currently in the device, so as to obtain a judging result.
In some embodiments, the program further comprises third detection instructions for detecting whether the software upgrade package has a delay setting; if the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software package upgrading reminding information when the delay time length is reached.
In some embodiments, the program further includes fourth detection instructions for detecting whether the current remaining free space capacity of the device meets the upgrade requirement of the software upgrade package, and if so, continuing the software upgrade operation.
In some embodiments, the program further includes a fifth detection instruction, configured to detect whether the current remaining power of the device meets an upgrade requirement of the software upgrade package, and if so, continue to perform a software update operation.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a server, a smart phone, a computer, a tablet personal computer and the like.
Referring to fig. 4, fig. 4 shows a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the software upgrading method provided in the foregoing embodiment. The terminal device 1200 may be a television or a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. It will be appreciated by those skilled in the art that the configuration of the terminal device 1200 shown in fig. 4 does not constitute a limitation of the terminal device 1200, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. Wherein:
The RF circuit 110 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and the like. The RF circuitry 110 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the software upgrading method in the above embodiment, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so that the vibration reminding mode can be automatically selected to perform software upgrading according to the current scene where the terminal device is located, thereby not only ensuring that the scenes such as a conference are not disturbed, but also ensuring that the user can perceive an incoming call, and improving the intelligence of the terminal device. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory remotely located relative to processor 180, which may be connected to terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may comprise a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also referred to as a touch display screen or touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch sensitive surface 131 or thereabout by any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a pre-set program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch control detection device detects the touch control direction of a user, detects signals brought by touch control operation and transmits the signals to the touch control controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch coordinates, sends the touch coordinates to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types of resistive, capacitive, infrared, surface acoustic wave, and the like. In addition to the touch-sensitive surface 131, the input unit 130 may also comprise other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and after the touch-sensitive surface 131 detects a touch operation thereon or thereabout, the touch-sensitive surface is transferred to the processor 180 to determine a type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in fig. 4 the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components for input and output functions, in some embodiments the touch-sensitive surface 131 may be integrated with the display panel 141 to implement the input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the terminal device 1200 are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and terminal device 1200. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal via the RF circuit 110, or outputs the audio data to the memory 120 for further processing. Audio circuitry 160 may also include an ear bud jack to provide communication of the peripheral headphones with terminal device 1200.
Terminal device 1200 may facilitate user email, web browsing, streaming media access, etc. via a transmission module 170 (e.g., wi-Fi module) that provides wireless broadband internet access to the user. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 1200 also includes a power supply 190 that provides power to the various components, and in some embodiments, may be logically coupled to the processor 180 via a power management system to perform functions such as managing discharge, and managing power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (such as a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. In particular, in the present embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120 and configured to be executed by the one or more processors 180, the one or more programs include instructions for:
the judging instruction is used for judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment when the equipment is started for the first time, so as to obtain a judging result;
And the updating instruction is used for positioning the processing priority of the software upgrading package to be highest and carrying out software updating operation according to the software upgrading package if the judging result shows that the processing priority of the software upgrading package is highest in all current processing matters.
In some embodiments, the program further includes first detection instructions for detecting whether the device currently receives a server pushed software upgrade message; if the software upgrading message is received, receiving a software upgrading packet downloading operation sent to a server by a user aiming at the software upgrading message, and then storing the software upgrading packet to the local of the equipment after the server responds to the software upgrading packet downloading operation.
In some embodiments, the program further includes second detection instructions for detecting whether the current network state of the device is normal if the software upgrade package download operation is not responded to by the server; if the current network state is normal and the software upgrading packet downloading operation is not responded by the server, stopping the software upgrading packet downloading operation and sending a state message for indicating that the current software upgrading packet downloading fails.
In some embodiments, the judging instruction is configured to detect whether a software upgrade package existing in the device includes a target flag, where the target flag is used to indicate a target type of a processing item corresponding to the software upgrade package, and judge, according to a preset rule, a processing priority corresponding to the target type from all processing items currently in the device, so as to obtain a judging result.
In some embodiments, the program further comprises third detection instructions for detecting whether the software upgrade package has a delay setting; if the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software package upgrading reminding information when the delay time length is reached.
In some embodiments, the program further includes fourth detection instructions for detecting whether the current remaining free space capacity of the device meets the upgrade requirement of the software upgrade package, and if so, continuing the software upgrade operation.
In some embodiments, the program further includes a fifth detection instruction, configured to detect whether the current remaining power of the device meets an upgrade requirement of the software upgrade package, and if so, continue to perform a software update operation.
The embodiment of the application also provides terminal equipment. The terminal equipment can be a smart phone, a computer and other equipment.
As can be seen from the above, the embodiments of the present application provide a terminal device 1200, where the terminal device 1200 performs the following steps:
when equipment is started for the first time, judging the processing priority of a software upgrading packet aiming at the software upgrading packet existing in the equipment to obtain a judging result;
and if the judging result is that the processing priority of the software upgrading packet is highest in all current processing matters, positioning the processing priority of the software upgrading packet to be highest, and performing software updating operation according to the software upgrading packet.
The embodiment of the application also provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the software upgrading method described in any embodiment.
It should be noted that, for the software upgrading method described in the present application, it will be understood by those skilled in the art that all or part of the flow of implementing the software upgrading method described in the embodiments of the present application may be implemented by controlling related hardware by using a computer program, where the computer program may be stored in a computer readable storage medium, for example, stored in a memory of a terminal device, and executed by at least one processor in the terminal device, and the execution may include the flow of the embodiment of the software upgrading method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a random access Memory (RAM, random Access Memory), or the like.
For the software upgrading apparatus of the embodiments of the present application, each functional module may be integrated in one processing chip, or each module may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as read-only memory, magnetic or optical disk, etc.
The software upgrading method, device, medium and equipment provided by the embodiment of the application are described in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method of software upgrade, comprising:
when equipment is started for the first time, judging the processing priority of a software upgrading packet aiming at the software upgrading packet existing in the equipment to obtain a judging result;
if the judging result is that the processing priority of the software upgrading package is highest in all current processing matters, the processing priority of the software upgrading package is determined to be highest, and software updating operation is carried out according to the software upgrading package.
2. The software upgrade method of claim 1, wherein prior to said determining a processing priority level of a software upgrade package for a software upgrade package already present on the device, the method further comprises:
detecting whether the equipment currently receives a software upgrading message pushed by a server or not;
if the software upgrading message is received, receiving a software upgrading packet downloading operation sent to a server by a user aiming at the software upgrading message, and then storing the software upgrading packet to the local of the equipment after the server responds to the software upgrading packet downloading operation.
3. The software upgrade method of claim 2, wherein after the receiving user issues a software upgrade package download operation to a server for the software upgrade message, the method further comprises:
If the software upgrading package downloading operation is not responded by the server, detecting whether the current network state of the equipment is normal or not;
if the current network state is normal and the software upgrading packet downloading operation is not responded by the server, stopping the software upgrading packet downloading operation and sending a state message for indicating that the current software upgrading packet downloading fails.
4. The software upgrading method according to claim 1, wherein the determining the processing priority of the software upgrading package for the software upgrading package already existing in the device, to obtain the determination result, includes:
detecting whether a software upgrading packet existing in the equipment contains a target mark or not, wherein the target mark is used for indicating a target type of a processing item corresponding to the software upgrading packet, judging processing priority corresponding to the target type from all the current processing items of the equipment according to a preset rule, and obtaining a judging result.
5. The software upgrade method of claim 1, wherein before said locating the processing priority of the software upgrade package highest and performing a software upgrade operation according to the software upgrade package, the method further comprises:
Detecting whether the software upgrade package has delay setting;
if the software upgrading package has delay setting, acquiring delay time length corresponding to the delay setting, and sending out software package upgrading reminding information when the delay time length is reached.
6. The software upgrade method of claim 1, wherein before said locating the processing priority of the software upgrade package highest and performing a software upgrade operation according to the software upgrade package, the method further comprises:
and detecting whether the current residual free space capacity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform software upgrading operation.
7. The software upgrade method of claim 1, wherein before said locating the processing priority of the software upgrade package highest and performing a software upgrade operation according to the software upgrade package, the method further comprises:
and detecting whether the current residual electric quantity of the equipment meets the upgrading requirement of the software upgrading package, and if so, continuing to perform the software upgrading operation.
8. A software upgrade apparatus, comprising:
the judging module is used for judging the processing priority of the software upgrading package aiming at the software upgrading package existing in the equipment when the equipment is started for the first time, so as to obtain a judging result;
And the updating module is used for positioning the processing priority of the software upgrading package to be highest and carrying out software updating operation according to the software upgrading package if the judging result shows that the processing priority of the software upgrading package is highest in all current processing matters.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the software upgrade method of any one of claims 1-7.
10. A terminal device comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading the instructions to perform the software upgrade method of any one of claims 1-7.
CN202310172464.XA 2023-02-24 2023-02-24 Software upgrading method, device, medium and equipment Pending CN117407010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310172464.XA CN117407010A (en) 2023-02-24 2023-02-24 Software upgrading method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310172464.XA CN117407010A (en) 2023-02-24 2023-02-24 Software upgrading method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN117407010A true CN117407010A (en) 2024-01-16

Family

ID=89493252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310172464.XA Pending CN117407010A (en) 2023-02-24 2023-02-24 Software upgrading method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN117407010A (en)

Similar Documents

Publication Publication Date Title
US10853437B2 (en) Method and apparatus for invoking application programming interface
CN108039963B (en) Container configuration method and device and storage medium
CN106775828B (en) Application program installation method and device and computer equipment
CN107967153B (en) Application program management method and mobile terminal
CN108804915B (en) Virus program cleaning method, storage device and electronic terminal
CN110780940A (en) Application program loading method, electronic device and storage medium
CN114428546B (en) Background application cleaning method and device, storage medium and terminal equipment
CN106095423B (en) Method, terminal and server for providing browsing service
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN105278942B (en) Component management method and device
CN107463395B (en) Component calling method and device
CN106528231B (en) A kind of method and apparatus starting application program
WO2015070718A1 (en) Communication number notification method and communication device
CN115225966B (en) Application starting method, device, terminal equipment and storage medium
CN110955436A (en) Application program installation method and electronic equipment
CN107015874B (en) Data transmission control method, device and terminal
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN106445594B (en) System application installation method and device and terminal equipment
CN108549552B (en) Kernel loading method and device and storage medium
CN106817370A (en) The method and device of transmitting network data
CN117407010A (en) Software upgrading method, device, medium and equipment
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN116582585B (en) Message pushing method, device, medium and equipment
CN108259187B (en) Method and device for monitoring charging network
CN109086054B (en) Application program installation method and mobile terminal

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