CN116048563A - System upgrading method, electronic equipment and storage medium - Google Patents

System upgrading method, electronic equipment and storage medium Download PDF

Info

Publication number
CN116048563A
CN116048563A CN202210938922.1A CN202210938922A CN116048563A CN 116048563 A CN116048563 A CN 116048563A CN 202210938922 A CN202210938922 A CN 202210938922A CN 116048563 A CN116048563 A CN 116048563A
Authority
CN
China
Prior art keywords
installation package
version
system upgrade
upgrade installation
electronic device
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.)
Granted
Application number
CN202210938922.1A
Other languages
Chinese (zh)
Other versions
CN116048563B (en
Inventor
姚红涛
潘帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210938922.1A priority Critical patent/CN116048563B/en
Publication of CN116048563A publication Critical patent/CN116048563A/en
Application granted granted Critical
Publication of CN116048563B publication Critical patent/CN116048563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

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 application provides a system upgrading method, electronic equipment and a storage medium, and is applied to the electronic equipment. The system upgrading method comprises the following steps: presenting a first boot interface and providing a boot guide interface, wherein the boot guide interface is at least used for providing service options of a first version upgrade installation package to be downloaded and automatically installed; searching and downloading the latest first system upgrade installation package; determining that the first system upgrade installation package is a first version upgrade installation package, wherein the first version upgrade installation package refers to a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time; and installing the first system upgrade installation package, and presenting an interface for prompting restarting. After the user is authorized in the startup guide interface, the electronic equipment can immediately perform system upgrade after the electronic equipment is started for the first time and the startup guide is finished, so that the performance of the electronic equipment is improved and the use experience of the user is improved.

Description

System upgrading method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a system upgrade method, an electronic device, and a storage medium.
Background
With the wide application and rapid development of electronic products such as smart televisions and smart phones, in order to keep the electronic products with optimal performance and good user experience, the system of the electronic products needs to be kept as the latest version as possible, so that defects (bugs) in the previous system version can be effectively avoided, and the addition of new functions of the electronic products is facilitated.
For new electronic products, due to the fact that the delivery rhythm is fast, some bugs often affect user experience in the first color package version of product archiving, and quick repair is needed. The maintenance (Maintenance Release, MR) versions for solving the bug are often already pushed to the user after the electronic product is put in stock, and the user is expected to upgrade the system as soon as possible.
For some electronic devices, it is common to search for new versions of the system and automatically download in the background when a wireless local area network (Wireless Local Area Networks, WLAN) is connected, and after the downloading is completed, remind the user to install or automatically install at night when the night installation switch is turned on, so as to implement the system upgrade. Under the upgrade mode, the user uses the electronic product formally, which easily leads to refusal of system update due to habit of the user to the operation mode of the current system version, or leads to the situation that the user cannot adapt after the system update, thereby influencing the performance of the electronic product and the use experience of the user.
Disclosure of Invention
Some embodiments of the present application provide a system upgrade method, an electronic device, and a storage medium, and the following description of the present application refers to the following aspects, which may be referred to with reference to the embodiments and the beneficial effects.
In a first aspect, an embodiment of the present application provides a system upgrade method, applied to an electronic device, where the method includes:
presenting a first boot interface and providing a boot guide interface, wherein the boot guide interface is at least used for providing service options of a first version upgrade installation package to be downloaded and automatically installed;
searching and downloading the latest first system upgrade installation package;
determining that the first system upgrade installation package is a first version upgrade installation package, wherein the first version upgrade installation package refers to a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time;
and installing the first system upgrade installation package, and presenting an interface for prompting restarting.
According to the embodiment of the application, the electronic equipment can present the first-time starting interface when being started for the first time, and the starting guide interface is provided for guiding a user to start the automatic updating of the first version. After the boot guide is finished, the electronic equipment can immediately download and install the first version upgrade installation package, and upgrade the system to the latest version in time before the user does not formally use the electronic equipment, so that the situation that the user refuses to upgrade the system due to the fact that the user is used to the operation mode of the current system version is avoided, the success rate of the first version upgrade is improved, and meanwhile, the performance of the electronic equipment and the use experience of the user can be improved.
In some embodiments, the boot guide interface includes a first version update configuration control and corresponding prompt information;
the first version updating configuration control is used for receiving the selection operation of a user for the first version updating configuration control, determining the first version updating switch state based on the selection operation and recording.
According to the embodiment of the application, the electronic equipment presents the first version updating configuration control and the corresponding prompt information in the startup guide interface, so that the user can be conveniently guided to authorize the automatic updating of the first version, and the automatic updating of the first version after the electronic equipment is started for the first time is facilitated.
In some embodiments, the searching and downloading the first system upgrade installation package comprises:
determining the current network connection state;
and searching and downloading the first system upgrade installation package by using the wireless local area network under the condition that the network connection state is determined to be the wireless local area network connection.
In some embodiments, the searching and downloading the first system upgrade installation package using a wireless local area network includes:
sending a packet searching request to a server, wherein the packet searching request is used for requesting to search the latest first system upgrade installation packet;
Receiving a packet searching result returned by the server in response to the packet searching request;
and under the condition that the searching result comprises the identification information of the first system upgrading installation package, downloading the first system upgrading installation package corresponding to the identification information from the server by utilizing a wireless local area network.
According to the embodiment of the application, the electronic equipment only downloads the latest system upgrade installation package under the condition of wireless local area network connection, so that the generation of extra user traffic use cost can be avoided.
In some implementations, the determining that the first system upgrade installation package is a first version upgrade installation package includes:
and under the condition that the first system upgrade installation package is determined to be the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, determining that the first system upgrade installation package is the first version upgrade installation package.
In some embodiments, the method further comprises:
and recording the identification information of the first system upgrade installation package as first version identification information.
According to the embodiment of the application, under the condition that the electronic device searches for the system upgrade installation package when searching for the first time after the electronic device is started for the first time, the identification information of the system upgrade installation package can be recorded as the first version identification information, so that whether the upgrade installation package obtained by searching is used when the first version upgrade installation package is determined when the electronic device is not searched for the first time.
In some implementations, the determining that the first system upgrade installation package is a first version upgrade installation package includes:
acquiring identification information of the first system upgrade installation package;
determining that the first system upgrade installation package is a first version upgrade installation package according to a matching result of the identification information of the first system upgrade installation package and the first version identification information;
the first version identification information is identification information of a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time.
In some embodiments, the determining that the first system upgrade installation package is the first version upgrade installation package according to the matching result of the identification information of the first system upgrade installation package and the first version identification information includes:
and under the condition that the version of the first system upgrade installation package is consistent with the version of the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, determining that the first system upgrade installation package is a first version upgrade installation package.
According to the embodiment of the application, if the system upgrade installation package is searched when the electronic device is searched for the first time after the electronic device is started for the first time, but an unknown event occurs in the subsequent downloading or installation process, under the condition that the system upgrade fails, the electronic device can also perform a multi-time searching (i.e. non-first searching) process so as to upgrade the system to the latest version in time before the user does not formally use the electronic device. Under the condition that the electronic equipment searches the system upgrade installation package when not first searching after first starting, according to the matching result of the identification information of the searched system upgrade installation package and the first version identification information recorded during first searching, whether the searched system upgrade installation package is the first version upgrade installation package can be accurately judged, and the first version upgrade installation package is automatically installed, so that the success rate of first version upgrade can be further improved.
In some embodiments, the installing the first system upgrade installation package includes:
determining a first version update switch state;
and under the condition that the first version updating switch is determined to be in an on state, automatically installing the first system upgrade installation package.
In some embodiments, the installing the first system upgrade installation package further comprises:
presenting an interface prompting installation under the condition that the first version updating switch is determined to be in a closed state;
and the installation prompting interface comprises an installation control, and is used for receiving triggering operation of a user on the installation control and triggering and installing the first system upgrade installation package based on the triggering operation.
According to the embodiment of the application, the electronic device does not prompt a user only when the first version updating switch is in an on state, namely, the user authorizes the automatic upgrade of the first version, and directly carries out background automatic installation, and prompts the user to install only when the first version updating switch is in an off state, namely, the user does not authorize the automatic upgrade of the first version, so that the use experience of the user is further improved.
In some embodiments, the method further comprises:
Acquiring a restarting instruction input by a user based on the restarting prompting interface;
determining a night installation switch state if the restart instruction is determined to be a later restart;
restarting the system in a preset time period to finish system upgrading when the night installation switch is determined to be in an on state;
and when the night installation switch is determined to be in a closed state, presenting an interface of a system desktop.
In a second aspect, embodiments of the present application provide an electronic device, including: a memory for storing instructions for execution by one or more processors of the electronic device; the processor, when executing the instructions in the memory, may cause the electronic device to perform the system upgrade method provided by any embodiment of the first aspect of the present application. The advantages achieved by the second aspect may refer to the advantages of any embodiment of the first aspect of the present application, and will not be described herein.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, where instructions are stored, which when executed on a computer, cause the computer to perform the system upgrade method provided in any of the embodiments of the first aspect of the present application. The advantages achieved by the third aspect may refer to the advantages of any one of the embodiments of the first aspect of the present application, which are not described herein.
Drawings
FIG. 1 is a flow chart of a system upgrade method according to some embodiments;
FIG. 2 is a schematic diagram of an boot guide interface according to some embodiments;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a block diagram of a software architecture of an electronic device according to one embodiment of the present application;
FIG. 5 is a flowchart of a system upgrade method according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a boot wizard interface according to one embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a downloading and installing process of a first system upgrade installation package according to one embodiment of the present application;
FIG. 8 is a schematic diagram of an interface for hint installation provided by one embodiment of the present application;
FIG. 9 is a flowchart of a system upgrade method according to another embodiment of the present disclosure;
FIG. 10 is a schematic diagram of an interface for prompting restart according to one embodiment of the present application;
fig. 11 is a schematic structural diagram of a system upgrade apparatus 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.
For a clearer understanding of the aspects of embodiments of the present application, the following is a brief description of the terms involved in the present application:
Out-of-Box Experience (OOBE): refers to some setup that is done by networking before entering the operating system. In the OOBE process, product activation, registration, user creation, etc. are typically performed, and items such as a user name, a password, a network connection, a time zone, an interface display language, etc. of the operating system are configured accordingly.
And (3) upgrading a system: the method is that the current system is replaced by the new system, so that the system of the electronic equipment is updated from the current system to the new system with higher version, namely, the current system stored in the memory is updated to become the new system. The system upgrade can repair the bug of the current system or improve the performance of the system, for example, add new functions to the application program in the system, so that the application program is more perfect and better used.
The system upgrading method provided by the embodiment of the application can be applied to the first starting process of the electronic equipment. For example, the method is applied to upgrading of a first system version when the electronic equipment is started for the first time.
When the electronic equipment is started for the first time, the OOBE process of the operating system is carried out, in the OOBE process, the electronic equipment presents a startup guide interface, and a user can configure items such as a user name, a password, network connection, a time zone, an interface display language and the like of the operating system according to guidance in the startup guide interface. After the OOBE process is finished, the electronic device can be normally used.
FIG. 1 illustrates a flow chart of a system upgrade method according to some embodiments, as shown in FIG. 1, in which an electronic device may direct a user to turn on a night install function during an OOBE process. FIG. 2 illustrates a schematic diagram of a boot wizard interface according to some embodiments, as shown in FIG. 2, an electronic device may present an enhanced services and user experience improvement interface 210, the enhanced services and user experience improvement interface 210 including configuration controls 211 that enable automatic updating of system software, and corresponding hints information 212, during the OOBE process. Configuration control 211, which enables automatic updating of system software, is used to receive a user selection operation for itself and to determine and record the night installation switch status based on the selection operation. The prompt 212 is at least used to prompt the user that the software will be automatically updated at night to obtain the latest function.
Illustratively, as shown in fig. 2, the electronic device defaults to the configuration control 211 that enables the automatic update of the system software, and the user clicks the configuration control 211 that enables the automatic update of the system software, so that the configuration control can be de-selected; the user again clicks on the configuration control 211 that enables automatic updating of the system software, which can be checked again. When the user clicks on the next step, if the electronic device determines that the configuration control 211 for enabling automatic update of the system software is not checked, the electronic device presents a first detail interface 220, and the first detail interface 220 is used for displaying detailed functions of the configuration control 211 for enabling automatic update of the system software. The first detail interface 220 further comprises a first control 221 for confirming that the night installation function is started and a second control 222 for confirming that the night installation function is not started, and the electronic equipment responds to the fact that a user clicks the first control 221 to trigger to check the configuration control 211 for enabling automatic updating of system software, so that the night installation function is started; the electronic device triggers a confirmation selection prompt 223 in response to the user clicking on the second control 222. The confirmation selection prompt box 223 includes a third control for confirming that the night installation function is started and a fourth control for confirming that the night installation function is not started, and the electronic device determines to select the configuration control 211 for enabling the automatic update of the system software in response to the fact that the user clicks the third control, and starts the night installation function; the electronic device determines not to hook the configuration control 211 that enables automatic updating of system software in response to the user clicking on the fourth control. Specifically, when the configuration control 211 for enabling the automatic update of the system software is checked, the electronic device records that the night installation switch state is an on state; when the configuration control 211 that enables automatic updating of system software is not checked, the electronic device records that the night installation switch state is an off state.
As shown in fig. 1, after the OOBE process is finished, the electronic device determines whether the current network connection state is WLAN connection, and searches and downloads the latest first system upgrade installation package in the background if the current network connection state is determined to be WLAN connection, otherwise waits for connection to WLAN. After the downloading is completed, the electronic equipment can present an installation prompting interface and receive an installation instruction input by a user based on the installation prompting interface. Then, the electronic device determines whether the installation instruction is an immediate installation, and when the installation instruction input by the user is an immediate installation, the electronic device performs installation of the first system upgrade installation package in the background. After the installation is completed, the electronic equipment presents an interface for prompting restarting, and receives a restarting instruction input by a user based on the interface for prompting restarting. Then, the electronic device determines whether the restart instruction is an immediate restart, and when the restart instruction input by the user is an immediate restart, the electronic device restarts the system to complete the system upgrade. When the restart instruction input by the user is a later restart, the electronic device may determine whether the recorded night installation switch state is an on state. When the night time installation switch is determined to be in an on state, the electronic device restarts the system at night (for example, between 0 point and 5 points) to complete the system upgrade. And when the night installation switch is determined to be in a closed state, the electronic equipment pops up a dialog box for prompting restarting after the preset time.
When the installation instruction input by the user is a later installation, the electronic apparatus may determine whether the recorded night installation switch state is an on state. When the night installation switch is determined to be in an on state, the electronic device installs the first system upgrade installation package at night (for example, between 0 point and 5 points), and restarts the system to complete the system upgrade. And when the night installation switch is determined to be in the off state, the electronic equipment pops up a dialog box for prompting installation after the preset time.
The upgrade mode can not upgrade the system in time before the user formally uses the electronic equipment, and the system update is easily refused due to the fact that the user is used to the operation mode of the current system version, or the situation that the user cannot adapt after the system update occurs is caused, so that the performance of the electronic equipment and the use experience of the user are affected.
After the electronic equipment is started for the first time and the OOBE process is finished, the user does not formally use the electronic equipment at the moment, so that the electronic equipment is updated to the latest version at the best upgrading time, and the user enjoys better experience. Therefore, the embodiment of the application provides a system upgrading method, electronic equipment and a storage medium, and the system of the electronic equipment is timely upgraded to the latest version, so that the performance of the electronic equipment is improved, and the use experience of a user is improved.
According to the embodiment of the application, the electronic equipment can present the first-time starting interface when being started for the first time, and the starting guide interface is provided for guiding a user to start the automatic updating of the first version. After the boot guide is finished, the electronic equipment can immediately download and install the first version upgrade installation package, and upgrade the system to the latest version in time before the user does not formally use the electronic equipment, so that the situation that the user refuses to upgrade the system due to the fact that the user is used to the operation mode of the current system version is avoided, the success rate of the first version upgrade is improved, and meanwhile, the performance of the electronic equipment and the use experience of the user can be improved.
It can be appreciated that the system upgrade method provided in the embodiments of the present application may be implemented on various electronic devices, including but not limited to, mobile phones, tablet computers, smart screens, vehicle-mounted devices (e.g., car computers, car navigator) and other electronic devices having a display screen and an operating system, and the specific form of the electronic device is not particularly limited in the embodiments of the present application.
Before describing the system upgrading method provided in the embodiments of the present application in detail, a description is first given of a hardware structure of an electronic device.
Fig. 3 shows a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (Subscriber Identification Module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-Network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor 110 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (Inter-Integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-Integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface, a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), a General-Purpose Input/Output (GPIO) interface, a subscriber identity module (Subscriber Identity Module, SIM) interface.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (Wireless Local Area Networks, WLAN) (e.g., wireless fidelity (Wireless Fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 2 and the wireless communication module 160 are coupled such that the electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (Global System For Mobile Communications, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), time division code division multiple access (Time-Division Code Division Multiple Access, TD-SCDMA), long term evolution (Long Term Evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (Global Positioning System, GPS), a global navigation satellite system (Global Navigation Satellite System, GLONASS), a Beidou satellite navigation system (Beidou Navigation Satellite System, BDS), a Quasi zenith satellite system (Quasi-Zenith Satellite System, QZSS) and/or a satellite based augmentation system (Satellite Based Augmentation Systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), an Active-Matrix Organic Light Emitting Diode (AMOLED), a flexible Light-Emitting Diode (Flex Light-Emitting Diode), a mini, a Micro-OLED, a quantum dot Light-Emitting Diode (Quantum Dot Light Emitting Diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
In some embodiments, the processor 110 receives a user instruction, for example, after the user performs a first boot operation, the display screen may present a first boot interface and may present a boot guide interface that may be used to guide the user to at least turn on the first version update switch and the night install switch and to at least notify that the latest first system upgrade installation package is to be downloaded. The processor 110 further executes the system upgrade method instruction, so that the electronic device 100 may search and download a first system upgrade installation package, and install the first system upgrade installation package if it is determined that the first system upgrade installation package is a first version upgrade installation package, and the display screen may present an interface for prompting restart after the installation is completed. Therefore, after the electronic device 100 is started for the first time and the guiding of the startup guide is finished, the system can be updated in time, so that the performance of the electronic device 100 and the use experience of a user are improved.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (Universal Flash Storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
In some embodiments, the internal memory 121 may store instructions of a system upgrade method, and the processor 110 may enable the display screen of the electronic device 100 to present a first boot interface and may present a boot guide interface by executing the instructions of the system upgrade method. And, the processor 110 may search and download the first system upgrade installation package by running a system upgrade method instruction, and install the first system upgrade installation package if it is determined that the first system upgrade installation package is a first version upgrade installation package, and after the installation is completed, enable the display screen of the electronic device 100 to present an interface for prompting restart, etc.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
In some embodiments, microphone 170C may receive a user's voice, e.g., the user's voice speaks an immediate restart utterance, microphone 170C converts the immediate restart voice signal into an electrical signal to enable processor 110 to effect a restart of electronic device 100, etc., in accordance with the immediate restart instruction.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
In some embodiments, after the user presses and clicks the first version update configuration control/night install configuration control displayed in the display screen 194, the pressure sensor 180A is configured to sense a pressure signal of the area where the user is located for the first version update configuration control/night install configuration control, and may convert the pressure signal into an electrical signal. Such that the processor 110 may enable determination and recording of the first version update switch status/night install switch status in accordance with user operations for the first version update configuration control/night install configuration control.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
In some embodiments, when the user touches the area where the first version update configuration control/night install configuration control of the display screen 194 is located, and performs operations such as clicking, dragging, etc., the processor 110 receives an operation of the user for the area where the first version update configuration control/night install configuration control is located, and in response to the operation, determines and records a first version update switch state/night install switch state.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. The type of the operating system of the electronic device is not limited in this application. For example, an Android system, a Linux system, a Windows system, an IOS system, a hong operating system (Harmony Operating System, hong OS), and the like.
Fig. 4 shows a software architecture block diagram of the electronic device 100 according to one embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, map, navigation, WLAN, bluetooth, music, video, short messages, boot guides, update installs, etc.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface Manager (Surface Manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., opengl ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The system upgrading method provided by the embodiment of the application can be applied to the electronic equipment with the hardware structure shown in the figure 3 and the software structure shown in the figure 4. Or more or less components than illustrated, or some components may be combined, or some components may be separated, or different components may be arranged, or the like in hardware and software configurations.
The system upgrading method provided in the embodiment of the present application is described in detail below with reference to the above-mentioned electronic device.
Fig. 5 is a flow chart illustrating a system upgrade method provided in one embodiment of the present application, which may be performed by the processor 110 in the electronic device 100. As shown in fig. 5, the system upgrade method may include steps S501-S504.
S501: the electronic device presents a first boot interface and provides a boot guide interface that is at least used to provide service options for the first version upgrade installation package to be downloaded and automatically installed.
In the embodiment of the application, when the electronic equipment is started for the first time, a first starting interface is presented, and an OOBE process of an operating system is entered. In the OOBE process, the electronic device may present a boot guide interface that may be used to guide a user to at least turn on the first version update switch and the night install switch.
In the embodiment of the application, the boot guide interface presented by the electronic device includes content for notifying the user that the first version upgrade installation package is to be downloaded and automatically installed, where the first version upgrade installation package refers to a system upgrade installation package that is searched for first time after the electronic device is booted for first time. In addition, the boot guide interface may include other notification information, such as automatically updating software to obtain the latest functions at night, or providing convenient presence services and schedule services at appropriate times.
Specifically, the boot guide interface may include a first version update configuration control and corresponding prompt information. The first version updating configuration control is used for receiving the selection operation of a user for the first version updating configuration control, determining the first version updating switch state based on the selection operation and recording. The prompt information corresponding to the first version updating configuration control is at least used for prompting the user that the first version updating installation package is to be downloaded and automatically installed. For example, the prompt message corresponding to the first version update configuration control may include "after you first networking, the system will automatically search for the latest version, and automatically download and update to the latest version under WLAN to ensure the best user experience".
Specifically, the boot guide interface may further include a night installation configuration control and corresponding prompt information. The night installation configuration control is used for receiving the selection operation of a user for the night installation configuration control, determining the state of a night installation switch based on the selection operation and recording. The prompt information corresponding to the night installation configuration control is at least used for prompting the user to automatically update the system software in a preset time period (such as at night). For example, the prompt information corresponding to the night installation configuration control may include "start night installation function, automatically update software to obtain the latest function, security update and improvement".
Specifically, the electronic device may preset a first version update switch state parameter, first version automatic instrument/night installation switch state parameter, and when the user selects the first version update configuration control/night installation configuration control, the electronic device determines that the first version update switch state/night installation switch state is an on state, and records that the value of the parameter, first version automatic instrument/parameter, first version automatic instrument is 1 (as an example of the on state). The value of parameter firstversion automatic instrument/parameter version automatic instrument is 1, indicating that the user agrees to the first version automatic update/system automatic update. When the user does not select the first version update configuration control/night install configuration control, the electronic device determines that the first version update switch state/night install switch state is the off state, and records the value of the parameter firstversion automatic instrument/parameter version automatic instrument as 0 (as an example of the off state). The value of the parameter firstversion automatic instrument/parameter version automatic instrument is 0, which indicates that the user does not agree with the first version automatic update/system automatic update.
It will be appreciated that the first version update switch state parameter first version automatic instrument/night install switch state parameter version automatic instrument is not visible to the user, is not cleared when the electronic device clears the user use data, but is cleared after the electronic device is restored to factory settings.
In some embodiments, the first version update configuration control and the night installation configuration control may be integrated into the same update configuration control, for receiving a selection operation of a user for the update configuration control, and determining and recording a first version update switch state and a night installation switch state based on the selection operation. Specifically, when the user selects the update configuration control, the electronic device determines that the first version update switch state and the night installation switch state are both on states.
Illustratively, fig. 6 shows a schematic diagram of a boot guide interface provided in an embodiment of the present application, as shown in fig. 6, an electronic device may present an enhanced services and experience improvement interface 610, where the enhanced services and experience improvement interface 610 includes a configuration control 611 for enabling a system software update service, and corresponding prompt information 612. Configuration control 611, which enables the system software update service, is used to receive a user's selection operation for itself and to determine and record the first version update switch status and the night install switch status based on the selection operation. The prompt 612 is at least used to prompt the user that the system software will be automatically updated within a preset time period (e.g., at night), and to prompt the user that the first version upgrade installation package will be downloaded and automatically installed.
As shown in fig. 6, in the default initial state of the electronic device, the user selects the configuration control 611 for enabling the system software update service, and the electronic device determines that the first version update switch state and the night installation switch state are both on states. When the user clicks the configuration control 611 for enabling the system software update service, the electronic device determines that the user deselects the configuration control 611 for enabling the system software update service, and determines that the first version update switch state and the night installation switch state are both off states. When the user clicks the configuration control 611 for enabling the system software update service again, the electronic device determines that the user selects the configuration control 611 for enabling the system software update service, and determines that the first version update switch state and the night installation switch state are both on states.
It will be appreciated that in some embodiments, the electronic device may also default to the initial state in which the user does not select the configuration control 611 that enables the system software update service, which embodiments of the present application do not limit.
S502: the electronic device searches for and downloads the latest first system upgrade installation package.
In the embodiment of the application, when all configuration items in the boot guide interface are configured and all prompt information is displayed, the electronic equipment enters the desktop system, and the OOBE process is finished. At the end of the OOBE process, the electronic device may determine the current network connection state; and searching and downloading the first system upgrade installation package by using the wireless local area network under the condition that the network connection state is determined to be the wireless local area network connection. In the case where it is determined that the network connection state is not the wireless lan connection, step S502 is performed after waiting to connect to the WLAN. The specific process of the electronic device searching for and downloading the first system upgrade installation package will be described in detail below.
S503: the electronic equipment determines that the first system upgrade installation package is a first version upgrade installation package, wherein the first version upgrade installation package refers to a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time.
In the embodiment of the application, under the condition that the searching result is determined to include the identification information of the first system upgrade installation package, the electronic device can also determine whether the first system upgrade installation package is a first version upgrade installation package, if so, the user is not prompted, and the background automatic installation is directly performed, and if not, the user is prompted to perform the installation.
In one embodiment, the electronic device may determine that the first system upgrade installation package is a first version upgrade installation package when determining that the first system upgrade installation package is a system upgrade installation package obtained by searching for the first time after the electronic device is first powered on. At this time, the electronic device may further record the identification information of the first system upgrade installation package as first version identification information, so as to determine whether the upgrade installation package obtained by searching is used when the first version upgrade installation package is not searched for the first time.
In one embodiment, the electronic device may obtain the identification information of the first system upgrade installation package when it is determined that the first system upgrade installation package is not a system upgrade installation package obtained by first searching (i.e., not first searching) after the electronic device is first powered on. The electronic device may determine that the first system upgrade installation package is a first version upgrade installation package according to a matching result of the identification information of the first system upgrade installation package and the first version identification information. The first version identification information is recorded identification information of a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time.
Specifically, the electronic device may match the identification information of the first system upgrade installation package with the first version identification information, so as to determine a relationship between the version of the first system upgrade installation package and the version of the system upgrade installation package obtained by first searching after the electronic device is first started. Under the condition that the version of the first system upgrade installation package is consistent with the version of the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, the electronic equipment can determine that the first system upgrade installation package is the first version upgrade installation package.
It may be understood that in the embodiment of the present application, if it is determined that the first system upgrade installation package is a first version upgrade installation package, the electronic device continues to upgrade; otherwise, the electronic device may end the current upgrade procedure, or may prompt the user to install after the electronic device downloads the first system upgrade installation package. The electronic device ending the current upgrade procedure may mean that the electronic device gives up the upgrade, or the electronic device returns to execute step S502. The specific process by which the electronic device determines that the first system upgrade installation package is a first version upgrade installation package will be described in detail below.
S504: and the electronic equipment installs the first system upgrade installation package and presents an interface for prompting restarting.
In this embodiment of the present application, when the electronic device determines that the first system upgrade installation package is a first version upgrade installation package, the first system upgrade installation package may be automatically installed in the background, and if the first system upgrade installation package is not the first version upgrade installation package, the user needs to be prompted to install the first system upgrade installation package. After the installation is completed, the electronic device may present an interface for prompting the restart to prompt the user to restart the system to complete the system upgrade. The specific process of the electronic device installing the first system upgrade installation package will be described in detail below.
In one embodiment, when the electronic device determines that the first system upgrade installation package is a first version upgrade installation package, authorization information for automatically updating the first version of the user needs to be obtained, and if the user is authorized, the background is automatically installed, otherwise, the user still needs to be prompted to install.
The following describes in detail the downloading and installing process of the first system upgrade installation package in the embodiment of the present application with reference to fig. 7. As shown in fig. 7, the downloading and installing process of the first system upgrade installation package may include steps S701-S716.
S701: the electronic device sends a packet search request to the server.
Specifically, the electronic device may send a packet search request to the server, where the packet search request is used to request searching for the latest first system upgrade installation packet, if it is determined that the current network connection state is a wireless local area network connection. The server may be a server providing a system service, and may search, based on a search packet request sent by the electronic device, a system upgrade installation packet that is matched with the electronic device, higher than a current system version of the electronic device and is the latest version, as a first system upgrade installation packet, and feed back a search packet result to the electronic device.
The server may search for a system upgrade installation package of the hota/patch/cota/ecota version as the first system upgrade installation package after receiving a package search request sent by the electronic device for the first time after the OOBE process ends.
Specifically, if the server searches the first system upgrade installation package, a package searching request is generated based on the information of successful package searching and the identification information of the first system upgrade installation package, and the package searching request is sent to the electronic equipment. If the server does not search the first system upgrade installation package, a package searching request is generated based on the information of the package searching failure and sent to the electronic equipment, or a package searching result can not be sent to the electronic equipment.
If the server searches the first system upgrade installation package, the server returns a package searching result through an http request, wherein the package searching result comprises identification information of successful package searching action and identification information of the first system upgrade installation package. The identification information of successful searching operation and the identification information of the first system upgrade installation package may be set according to actual conditions, for example, the identification information of successful searching operation may be set to 200, and the identification information of the first system upgrade installation package may be a version identification of the first system upgrade installation package.
S702: the electronic equipment receives a packet searching result returned by the server in response to the packet searching request.
S703: and the electronic equipment judges whether the packet searching is successful.
Specifically, if the packet searching result includes identification information that the packet searching action is successful, the electronic device determines that the packet searching is successful, and executes step S704. If the packet searching result comprises identification information of failed packet searching action or the packet searching result returned by the server is not received within preset time, the electronic equipment determines that the packet searching is failed and finishes the system upgrading flow.
S704: the electronic device determines whether the searching result comprises the identification information of the first system upgrade installation package.
Specifically, the electronic device may use the identification information of the system upgrade installation package responded by the server in the package searching result as the identification information of the first system upgrade installation package.
S705: and under the condition that the searching result comprises the identification information of the first system upgrading installation package, the electronic equipment downloads the first system upgrading installation package corresponding to the identification information from the server by utilizing the wireless local area network.
Specifically, because the electronic device is currently in a wireless local area network connection state, the electronic device can automatically download the first system upgrade installation package by using the wireless local area network background under the condition that the identification information of the first system upgrade installation package is included in the package searching result.
It will be appreciated that the process carried out by steps S701-S705 in fig. 7 corresponds to step S502 in fig. 5.
In one embodiment, after step S705, steps S706-S707 may further be included.
S706: under the condition that the identification information of the first system upgrade installation package is not included in the package searching result, the electronic equipment determines whether the package searching is performed for the first time after the electronic equipment is started for the first time.
Specifically, if the searching of the package is successful but the searching result does not include the identification information of the first system upgrade installation package, which means that the system upgrade installation package newer than the current system is not searched, the electronic device can determine whether the current is the first searching of the electronic device after the first starting, if so, the searching result is recorded.
Specifically, the electronic device may preset a parameter isFirstCheck corresponding to the first packet search, where the default value of the parameter is true (denoted as the first packet search). When the electronic device determines that the searching result does not include the identification information of the first system upgrade installation package, a value of a parameter isFirstCheck may be acquired. If the value of the parameter isFirstCheck is true, the current packet searching is the first time, and the electronic device executes step S707; if the value of the parameter isFirstcheck is false, the electronic equipment finishes the system upgrading process, wherein the value is indicative that the current searching is not the first searching.
S707: under the condition that the current packet searching is carried out for the first time after the electronic equipment is started for the first time, the electronic equipment records a corresponding packet searching result.
Specifically, the electronic device may preset a parameter firstversion idlist corresponding to the first version identification information, set the parameter firstversion idlist to null (null), and modify the parameter isFirstCheck to false (indicating that the packet is not first searched). After the recording is completed, the electronic equipment ends the system upgrading flow.
In some embodiments, under the condition that the current package searching is performed for the first time after the electronic device is started for the first time, the electronic device may further set a value of a parameter firstversion automatic instrument to 2, which indicates that the first package searching is completed and a new version of the system upgrade installation package is not searched, and a first version automatic update function fails.
S708: under the condition that the packet searching result comprises the identification information of the first system upgrade installation packet, the electronic equipment determines whether the current packet searching is performed for the first time after the electronic equipment is started for the first time.
In particular, the electronic device may obtain the value of the parameter isFirstCheck. If the value of the parameter isFirstCheck is true, indicating that the current search is the first search, the electronic device executes step S709; if the value of the parameter isFirstCheck is false, which indicates that the packet is not currently searched for the first time, the electronic device executes step S710.
S709: under the condition that the current electronic equipment is determined to be the first searching package after being started for the first time, the electronic equipment determines that the first system upgrading installation package is the first version upgrading installation package, and records a corresponding searching package result.
Specifically, the electronic device may set the parameter firstversion idlist as the identification information of the first system upgrade installation package, and modify the parameter isFirstCheck to false. For example, the electronic device may set the parameter firstversion idlist as a version identifier of the first system upgrade installation package, such as firstversion idlist: [ hota (base+cure+prload) ] [ (+latch ].
S710: under the condition that the current condition is not that the first searching package is performed after the electronic equipment is started for the first time, the electronic equipment determines whether the version of the first system upgrading installation package is consistent with the version of the system upgrading installation package obtained by the first searching after the electronic equipment is started for the first time according to the matching result of the identification information of the first system upgrading installation package and the first version identification information.
S711: and under the condition that the version of the first system upgrade installation package is consistent with the version of the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, the electronic equipment determines that the first system upgrade installation package is the first version upgrade installation package.
The first version identification information is identification information of a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, wherein the first version identification information is recorded by the electronic equipment. In the embodiment of the application, the electronic device may determine the first version identification information according to a value of the parameter firstversion idlist.
In practical application, if the system upgrade installation package is searched when the electronic device is first searched after being first started, but an unknown event occurs in the subsequent downloading or installation process, under the condition that the system upgrade fails, the electronic device can also perform a plurality of searching processes so as to upgrade the system to the latest version in time before the user does not formally use the electronic device.
And when the electronic equipment determines that the electronic equipment is not the first package searching after the electronic equipment is started for the first time, the electronic equipment indicates that the electronic equipment is the second or more package searching after the electronic equipment is started for the first time. At this time, the electronic device may determine whether the first system upgrade installation package obtained by searching is still the upgrade installation package obtained by searching when the electronic device is first searched after being first started. Under the condition that the electronic equipment determines that the first system upgrade installation package is still the upgrade installation package obtained by searching when the electronic equipment is started for the first time, the electronic equipment can directly perform background automatic installation without prompting a user.
Specifically, in the case that it is determined that the current packet searching after the electronic device is first started, the electronic device may acquire the identification information of the first system upgrade installation packet and a value of the parameter firstversion idlist (i.e., first version identification information). The electronic device may determine whether the identification information of the first system upgrade installation package is consistent with the value of the parameter firstversion idlist, if so, it indicates that the version of the first system upgrade installation package is consistent with the version of the system upgrade installation package obtained by first searching after the electronic device is started for the first time (i.e., the first system upgrade installation package obtained by the current searching of the electronic device is still the system upgrade installation package obtained by searching when the first system upgrade installation package is still the first searching of the electronic device), and then the electronic device may determine that the first system upgrade installation package is the first version upgrade installation package.
In one embodiment, under the condition that the current search package is not the first search package after the electronic device is started for the first time, the version of the first system upgrade installation package can be directly determined according to the identification information of the first system upgrade installation package, and the version of the system upgrade installation package obtained by the first search after the electronic device is started for the first time is determined according to the first version identification information. Then, the electronic device may compare the version of the first system upgrade installation package with the version of the system upgrade installation package obtained by first searching after the electronic device is first started. The electronic device may determine that the first system upgrade installation package is a first version upgrade installation package if it is determined that the version of the first system upgrade installation package is equal to the version of the system upgrade installation package obtained by a first search after the electronic device is first powered on.
It may be understood that in the embodiment of the present application, if it is determined that the first system upgrade installation package is the first version upgrade installation package, the electronic device continues to upgrade, and step S712 is performed; otherwise, the electronic device may end the current upgrade procedure, or may prompt the user to install after the electronic device downloads the first system upgrade installation package. The electronic device ending the current upgrade procedure may mean that the electronic device gives up the upgrade, or the electronic device returns to execute step S701.
It will be appreciated that the process carried out by steps S708-S711 in fig. 7 corresponds to step S503 in fig. 5.
S712: the electronic device determines a first version update switch state.
Specifically, the electronic device may obtain the first version update switch state recorded in the OOBE procedure. The value of the first version update switch state parameter first version automatic instrument can be obtained, and the first version update switch state is determined according to the value of the parameter first version automatic instrument.
S713: the electronic device determines whether the first version update switch is in an on state.
Specifically, when the value of the parameter firstversion automatic instrument is 1, the electronic device determines that the first version update switch is in an on state, i.e., the user has authorized the first version to be automatically updated, and the electronic device performs step S714. When the value of the parameter firstversion automatic instrument is 0, the electronic device determines that the first version update switch is in the off state, that is, the first version is automatically updated without authorization by the user, and the electronic device performs step S715.
S714: and under the condition that the first version updating switch is determined to be in an on state, the electronic equipment automatically installs the first system upgrade installation package.
Specifically, when the first version updating switch is determined to be in an on state, the electronic device does not prompt a user after the first system updating installation package is downloaded, but directly performs background automatic installation.
S715: and under the condition that the first version updating switch is determined to be in a closed state, presenting an interface for prompting installation.
Specifically, when the first version update switch is determined to be in the off state, after the electronic device finishes downloading the first system upgrade installation package, an interface for prompting installation needs to be presented to the user so as to prompt the user to install. The prompt installation interface may include an immediate installation control, configured to receive a trigger operation of a user on the immediate installation control, determine, based on the trigger operation, that an installation instruction input by the user is immediate installation, and trigger to install the first system upgrade installation package based on the immediate installation instruction.
Specifically, the interface for prompting installation may further include a later installation control, which is configured to receive a trigger operation of the user on the later installation control, and determine, based on the trigger operation, that an installation instruction input by the user is a later installation. In the case where the installation instruction input by the user is the later installation, the electronic apparatus needs to determine the night installation switch state. Installing the first system upgrade installation package at night (as an example of a preset period of time) when it is determined that the night installation switch is in an on state; upon determining that the night time installation switch is in the off state, an interface to the system desktop may be presented and a dialog box prompting installation may pop up after 5 minutes have passed (as an example of a preset time).
It may be understood that, the preset time period for installing the first system upgrade installation package and the preset time elapsed by the dialog box for popup prompt installation may be set according to actual needs, for example, the preset time period may be set to night (for example, between 0 point and 5 points), may also be set to idle time when the electronic device is not used, and the preset time may be set to 5 minutes, may also be set to 10 minutes, and the embodiment of the present application does not limit this.
Illustratively, fig. 8 shows a schematic diagram of an interface for prompting installation provided in an embodiment of the present application, and as shown in fig. 8, a dialog box for prompting installation is included in an interface 810 for prompting installation, and a first installation control 811 for indicating later installation and a second installation control 812 for indicating immediate installation are included in the dialog box for prompting installation. When the user clicks the second installation control 812, the electronic device immediately installs the first system upgrade installation package in the background, and after the installation is completed, the electronic device presents an interface prompting restart. When the user clicks on the first installation control 811, the electronic device may determine a night installation switch state. And when the night installation switch is determined to be in an on state, installing the first system upgrade installation package at night, restarting the system to finish system upgrade, and ending the system upgrade flow. When it is determined that the night time installation switch is in the off state, an interface of the system desktop is presented, and a dialog box prompting installation may be popped up after 5 minutes have elapsed.
S716: and after the electronic equipment is provided with the first system upgrading installation package, presenting an interface for prompting restarting.
Specifically, after the electronic device installs the first system upgrade installation package, an interface for prompting restarting needs to be presented to the user so as to prompt the user to restart the system and complete the system upgrade.
It will be appreciated that the process carried out by steps S712-S716 in fig. 7 corresponds to step S504 in fig. 5.
In one embodiment, fig. 9 illustrates a system upgrade method provided by another embodiment of the present application. The embodiment shown in fig. 9 further adds steps S505-S508 to the embodiment shown in fig. 5. The descriptions of steps S501 to S504 which are the same as those in fig. 5 are not repeated here.
S505: and acquiring a restarting instruction input by a user based on the restarting prompting interface.
Specifically, the interface for prompting to restart may include an immediate restart control, configured to receive a trigger operation of the immediate restart control by a user, determine, based on the trigger operation, that a restart instruction input by the user is immediate restart, and trigger a restart system based on the immediate restart instruction to complete a system upgrade.
Specifically, the interface for prompting to restart may further include a later restart control, which is configured to receive a trigger operation of the user on the later restart control, and determine, based on the trigger operation, that the restart instruction input by the user is a later restart. In the case where the restart instruction input by the user is a later restart, the electronic apparatus needs to determine the night installation switch state and execute a corresponding operation based on the night installation switch state.
S506: in the case where the restart instruction is determined to be a later restart, the night installation switch state is determined.
Specifically, the electronic device may acquire the night mounted switch status recorded during the OOBE process. The value of the night installation switch state parameter VersionAutoInstalls can be obtained, and the night installation switch state is determined according to the value of the parameter VersionAutoInstalls. When the value of the parameter version automatic instrument is 1, the electronic device determines that the night installation switch is in an on state, that is, the user has authorized the system to automatically update, and the electronic device may perform step S507. When the value of the parameter version automatic instrument is 0, the electronic device determines that the night-time installation switch is in the off state, i.e., the user unauthorized system is automatically updated, and the electronic device may perform step S508.
S507: when it is determined that the night time installation switch is in an on state, the system is restarted at night (as an example of a preset period of time) to complete the system upgrade.
It may be appreciated that the preset time period of restarting the system may be set according to actual needs, for example, the preset time period may be set to night (for example, between 0 point and 5 points), or may be set to an idle time when the electronic device is not used, which is not limited in this embodiment of the present application.
S508: and when the night installation switch is determined to be in the off state, presenting an interface of a system desktop.
It may be understood that, after the interface of the system desktop is presented, the electronic device may pop up a dialog box for prompting restarting after a preset time passes, where the preset time passing through by the dialog box for prompting restarting may be set according to actual needs, for example, may be set to 5 minutes or may be set to 10 minutes, which is not limited in this embodiment of the present application.
It should be noted that, in this embodiment of the present application, the preset time period for installing the first system upgrade installation package may be the same as or different from the preset time period for restarting the system, and the preset time elapsed by the dialog box for popup prompt installation may be the same as or different from the preset time elapsed by the dialog box for popup prompt restarting, which is not limited in this embodiment of the present application.
Illustratively, fig. 10 shows a schematic view of an interface for prompting to restart provided in an embodiment of the present application, where, as shown in fig. 10, a dialog box for prompting to restart is included in an interface 1010 for prompting to restart, and a first restart control 1011 for indicating a later restart and a second restart control 1012 for indicating an immediate restart are included in the dialog box for prompting to restart. When the user clicks the second restart control 1012, the electronic device immediately restarts the system to complete the system upgrade, and the system upgrade process is ended. When the user clicks the first restart control 1011, the electronic device may determine a night install switch state. When the night installation switch is determined to be in an on state, restarting the system at night to finish system upgrading, and ending the system upgrading flow. When the night installation switch is determined to be in a closed state, an interface of a system desktop is presented, and a dialog box prompting restarting can be popped up after 5 minutes pass.
In some embodiments, after the installation of the first version upgrade installation package is completed and the system is restarted, the electronic device may also set the value of the parameter firstversion automatic instrument to 3, indicating that the first version automatic update function is disabled.
An embodiment of the present application further provides a system upgrade apparatus, configured in an electronic device having a hardware structure as shown in fig. 3 and a software structure as shown in fig. 4, for executing the system upgrade method described above. Specifically, as shown in fig. 11, the system upgrade apparatus 1100 may include:
a display module 1110, configured to present a first boot interface and provide a boot wizard interface, where the boot wizard interface is at least configured to provide service options for a first version upgrade installation package to be downloaded and automatically installed;
a downloading module 1120, configured to search for and download the latest first system upgrade installation package;
a first determining module 1130, configured to determine that the first system upgrade installation package is a first version upgrade installation package, where the first version upgrade installation package is a system upgrade installation package obtained by first searching after the electronic device is first started;
upgrade module 1140 is configured to install the first system upgrade installation package and present an interface prompting for restart.
In some embodiments, the system upgrade apparatus 1100 may further include:
the acquisition module is used for acquiring a restarting instruction input by a user based on the restarting prompting interface;
a second determining module, configured to determine a night installation switch state if the restart instruction is determined to be a later restart;
the restarting module is used for restarting the system in a preset time period to finish system upgrading when the night installation switch is determined to be in an on state;
and the desktop return module is used for presenting an interface of the system desktop when the night installation switch is determined to be in a closed state.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus provided in the foregoing embodiments and the corresponding method embodiments belong to the same concept, and specific implementation processes of the apparatus and the corresponding method embodiments are detailed in the corresponding method embodiments, which are not repeated herein.
The embodiment of the application also provides electronic equipment, which comprises:
A memory for storing instructions for execution by one or more processors of the electronic device;
the processor, when executing the instructions in the memory, may cause the electronic device to perform the system upgrade method shown in fig. 5 to 10 in the above embodiment.
Embodiments of the present application also provide a computer readable storage medium having instructions stored thereon, which when executed by a processor, cause the processor to perform the system upgrade method shown in fig. 5 to 10 in the above embodiments.
The present application also provides a computer program product comprising instructions which, when run on an electronic device, cause a processor to perform the system upgrade method shown in fig. 5 to 10 in the above-described embodiments.
Embodiments disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the present application may be implemented as a computer program or program code that is executed on a programmable system including at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (Digital Signal Processor, DSP), microcontroller, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Including but not limited to OpenCL, C language, c++, java, etc. Whereas for languages such as c++, java, the storage will be transformed based on some differences in application of the data processing method in the embodiments of the present application, those skilled in the art can transform based on a specific high-level language, without departing from the scope of the embodiments of the present application.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, magneto-optical disks, read-Only memories (ROMs), compact disk-Read-Only memories (CD-ROMs), random access memories (Random Access Memory, RAMs), erasable programmable Read-Only memories (EPROMs), electrically erasable programmable Read-Only memories (Electrically Erasable Programmable Read-Only memories, EEPROMs), magnetic or optical cards, flash Memory, or tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal using the internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module is a logic unit/module, and in physical aspect, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is the key to solve the technical problem posed by the present application. Furthermore, to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems presented by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (13)

1. A system upgrade method applied to an electronic device, the method comprising:
presenting a first boot interface and providing a boot guide interface, wherein the boot guide interface is at least used for providing service options of a first version upgrade installation package to be downloaded and automatically installed;
searching and downloading the latest first system upgrade installation package;
determining that the first system upgrade installation package is a first version upgrade installation package, wherein the first version upgrade installation package refers to a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time;
and installing the first system upgrade installation package, and presenting an interface for prompting restarting.
2. The method of claim 1, wherein the searching and downloading the first system upgrade installation package comprises:
determining the current network connection state;
and searching and downloading the first system upgrade installation package by using the wireless local area network under the condition that the network connection state is determined to be the wireless local area network connection.
3. The method of claim 2, wherein searching for and downloading the first system upgrade installation package using a wireless local area network comprises:
Sending a packet searching request to a server, wherein the packet searching request is used for requesting to search the latest first system upgrade installation packet;
receiving a packet searching result returned by the server in response to the packet searching request;
and under the condition that the searching result comprises the identification information of the first system upgrading installation package, downloading the first system upgrading installation package corresponding to the identification information from the server by utilizing a wireless local area network.
4. The method of claim 1, wherein the determining that the first system upgrade installation package is a first version upgrade installation package comprises:
and under the condition that the first system upgrade installation package is determined to be the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, determining that the first system upgrade installation package is the first version upgrade installation package.
5. The method according to claim 4, wherein the method further comprises:
and recording the identification information of the first system upgrade installation package as first version identification information.
6. The method of claim 1, wherein the determining that the first system upgrade installation package is a first version upgrade installation package comprises:
Acquiring identification information of the first system upgrade installation package;
determining that the first system upgrade installation package is a first version upgrade installation package according to a matching result of the identification information of the first system upgrade installation package and the first version identification information;
the first version identification information is identification information of a system upgrade installation package obtained by first searching after the electronic equipment is started for the first time.
7. The method of claim 6, wherein the determining that the first system upgrade installation package is a first version upgrade installation package according to a result of matching the identification information of the first system upgrade installation package with the first version identification information comprises:
and under the condition that the version of the first system upgrade installation package is consistent with the version of the system upgrade installation package obtained by first searching after the electronic equipment is started for the first time, determining that the first system upgrade installation package is a first version upgrade installation package.
8. The method of claim 1, wherein said installing the first system upgrade installation package comprises:
determining a first version update switch state;
and under the condition that the first version updating switch is determined to be in an on state, automatically installing the first system upgrade installation package.
9. The method of claim 8, wherein the installing the first system upgrade installation package further comprises:
presenting an interface prompting installation under the condition that the first version updating switch is determined to be in a closed state;
and the installation prompting interface comprises an installation control, and is used for receiving triggering operation of a user on the installation control and triggering and installing the first system upgrade installation package based on the triggering operation.
10. The method of claim 8, wherein the boot guide interface includes a first version update configuration control and corresponding hint information;
the first version updating configuration control is used for receiving the selection operation of a user for the first version updating configuration control, determining the first version updating switch state based on the selection operation and recording.
11. The method according to claim 1, wherein the method further comprises:
acquiring a restarting instruction input by a user based on the restarting prompting interface;
determining a night installation switch state if the restart instruction is determined to be a later restart;
restarting the system in a preset time period to finish system upgrading when the night installation switch is determined to be in an on state;
And when the night installation switch is determined to be in a closed state, presenting an interface of a system desktop.
12. An electronic device, comprising:
a memory for storing instructions for execution by one or more processors of the electronic device;
a processor, which when executing the instructions in the memory, causes the electronic device to perform the system upgrade method of any one of claims 1-11.
13. A computer readable storage medium having stored thereon instructions which, when executed on a computer, cause the computer to perform the system upgrade method of any one of claims 1 to 11.
CN202210938922.1A 2022-08-05 2022-08-05 System upgrading method, electronic equipment and storage medium Active CN116048563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210938922.1A CN116048563B (en) 2022-08-05 2022-08-05 System upgrading method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210938922.1A CN116048563B (en) 2022-08-05 2022-08-05 System upgrading method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116048563A true CN116048563A (en) 2023-05-02
CN116048563B CN116048563B (en) 2023-10-13

Family

ID=86127859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210938922.1A Active CN116048563B (en) 2022-08-05 2022-08-05 System upgrading method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116048563B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200356354A1 (en) * 2019-05-07 2020-11-12 Microsoft Technology Licensing, Llc Automated application updates during operating system upgrades
CN114185579A (en) * 2020-09-15 2022-03-15 华为终端有限公司 Software upgrading method and device, electronic equipment and readable storage medium
CN114461240A (en) * 2021-06-30 2022-05-10 荣耀终端有限公司 Software upgrading method, software upgrading system and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200356354A1 (en) * 2019-05-07 2020-11-12 Microsoft Technology Licensing, Llc Automated application updates during operating system upgrades
CN114185579A (en) * 2020-09-15 2022-03-15 华为终端有限公司 Software upgrading method and device, electronic equipment and readable storage medium
CN114461240A (en) * 2021-06-30 2022-05-10 荣耀终端有限公司 Software upgrading method, software upgrading system and electronic equipment

Also Published As

Publication number Publication date
CN116048563B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
US10007530B2 (en) Electronic device having an external memory and method for operating the same
CN110569130B (en) Cross-process communication method, device and equipment
CN113727333B (en) Downloading system for custom applications
WO2020037560A1 (en) Application installation method and terminal
CN116610339A (en) Operating system upgrading method and electronic equipment
WO2022052766A1 (en) Theme packet adaptation method and apparatus
US20170126872A1 (en) Method and apparatus for providing contact information
CN116048830B (en) Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN116048563B (en) System upgrading method, electronic equipment and storage medium
CN114661501A (en) Method and device for repairing abnormal starting-up
CN116719670B (en) Data processing method, electronic device and readable storage medium
CN115309431B (en) Parameter updating method, readable medium and electronic equipment
CN114489689B (en) Application program installation method and system, electronic equipment and server
CN114443117B (en) Custom package processing method and electronic equipment
CN116048546B (en) System upgrading method, electronic equipment and computer readable storage medium
CN114816463A (en) Upgrade prompting method, terminal device and computer readable storage medium
CN115357273B (en) Reminding method for system upgrading and electronic equipment
CN116719556B (en) System upgrading method and electronic equipment
CN116302295B (en) Interface display method
CN117093315B (en) Upgrade content display method, electronic equipment and storage medium
CN117009023B (en) Method for displaying notification information and related device
US11991040B2 (en) Network configuration method and device
CN117130627B (en) Fitting upgrading method and electronic equipment
CN117331591B (en) System upgrading method, electronic equipment and readable storage medium
WO2024032022A1 (en) Application icon visualization method and device

Legal Events

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