A system upgrade method, electronic device and computer readable storage medium
By searching and downloading super automatic installation packages in electronic devices, and using the screen dominant state to remind users during the download and installation process, the problems of low upgrade rate and high labor costs in the existing technology of electronic device system are solved, and rapid and efficient system upgrades are achieved.
Patent Information
- Application Number
- CN202311382806.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-08-25
AI Technical Summary
The prior art is difficult to quickly and efficiently upgrade the system in electronic devices, especially in special user groups such as retail stores, resulting in low upgrade rates and high labor costs.
By searching and downloading super automatic installation packages in electronic devices, the screen dominance state reminds users to download and install, ensuring strong reminders and automated operations during the system upgrade process.
It realizes rapid upgrade of the system without manual urging, significantly improving the upgrade rate, reducing labor costs and urging investment.
Smart Images

Figure CN117453245B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a system upgrade method, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of modern communication technology, the application of terminal devices (such as mobile phones, tablets, smart watches, car-mounted devices, etc.) in daily life is becoming more and more widespread. In order to keep the best performance of electronic products and maintain a good user experience, it is necessary to keep the system of electronic products as latest as possible, which can not only effectively avoid defects (bugs) in the previous system version, but also facilitate the addition of new functions of electronic products.
[0003] For new electronic products, due to the fast delivery pace, the first color package version of the product archive often has some bugs that affect the user experience. Similarly, the research and development of system maintenance for electronic products is also quite fast. After the electronic products are distributed, the maintenance release (MR) version that solves the bugs is often pushed to users, and users are expected to upgrade the system as soon as possible. In particular, for some special users, such as retail stores and media evaluations, more radical measures are taken to remind them to upgrade, so as to achieve the purpose of quickly upgrading to the new version, thereby bringing a better product experience.
[0004] For example, when a new product is launched in China, if there are urgent and major problems, R&D and marketing need to cooperate and report the upgrade rate of various parts of the country every day. The marketing interface will then urge for upgrades. Although the upgrade rate can reach more than 90% in 3 to 5 days, it is more labor-intensive and energy-consuming. Therefore, it is urgent to develop a display machine for retail stores, which can replace manual urging with a super reminder or forced update when there is a system upgrade version, so as to solve or reduce the investment in such urging. Summary of the invention
[0005] Some embodiments of the present application provide a system upgrade method, an electronic device, and a storage medium. The present application is introduced from multiple aspects below, and the implementation methods and beneficial effects of the following aspects can be referenced to each other.
[0006] In a first aspect, an embodiment of the present application provides a system upgrade method, which is applied to an electronic device, and the method includes:
[0007] Search for the installation package for system upgrade;
[0008] Determining that the installation package in the package search result is a first type of installation package, where the first type of installation package is used to provide download reminders and installation reminders in a state where the screen is forcibly occupied during the download and installation process of the electronic device;
[0009] Download and install the first type of installation package.
[0010] According to the implementation mode of the present application, when the electronic device searches for the first type of installation package (that is, for the electronic device, the download reminder and installation reminder are provided in the form of screen dominance), the electronic device can remind the user to download and install the installation package in a strong reminder manner (that is, other programs and functions cannot be used) during the download and installation process of the first type of installation package. In this way, the system can be quickly upgraded without relying on manual follow-up, which can greatly improve the upgrade rate and reduce labor costs and investment in follow-up.
[0011] In some implementations, searching for an installation package for system upgrade includes:
[0012] Determining a current WLAN connection status of the electronic device;
[0013] When it is determined that the network connection state is a wireless local area network connection, a packet search request is sent to a server using the wireless local area network to search for the installation package, and a packet search result in response to the packet search request is received from the server.
[0014] Electronic devices, such as mobile phones, are usually set to automatically start packet search periodically when leaving the factory, such as once an hour. The specific packet search process, for example, the electronic device sends a packet search request to the server through a wireless network connection, and when the server receives the packet search request, it makes a packet search result in response to the packet search request and sends the packet search result to the electronic device. That is to say, in order to successfully search for packets, the electronic device should be in an environment of wireless network connection, and use the wireless network to send a packet search request and receive a packet search result. When it is determined that the network connection state is not connected to the network, a first temporary use of the electronic device for a first predetermined time is provided. According to the implementation method of the present application, in order to promote users to upgrade the system in a timely manner, the timing is started when it is determined that the network connection state is not connected to the network, and the electronic device is only allowed to be temporarily used for a predetermined time when it is not connected to the network. That is to say, the current conventional practice is that when there is no network connection (i.e., the packet search fails), the electronic device just waits for the next packet search, and in contrast, the present application starts timing when the packet search is unsuccessful, and limits the use of the electronic device, such as limiting its use time, and in addition, the use function can also be limited. In this way, the user can be urged to successfully search the electronic device for a package as soon as possible, thereby avoiding upgrade delays caused by long-term failure to search for a package.
[0015] In some implementations, when determining that the network connection state is not connected to the network, providing the electronic device with a first temporary use of a first predetermined duration includes:
[0016] Determining whether the time elapsed from the start of timing exceeds the first predetermined time period;
[0017] When the first predetermined time period is exceeded, a first interface is provided on the electronic device, and the first interface is provided in a manner in which only the controls of the first interface on the screen can be operated. A check update control is provided on the first interface for triggering a package search (i.e., triggering a search for an installation package for a system upgrade).
[0018] According to this implementation of the present application, after the temporary use of the pre-booked time ends, the screen of the electronic device is in a forced control state, that is, a screen dominating state, reminding the user to check for updates (that is, checking for updates of the new version).
[0019] In some implementations, the first interface also provides controls for setting up a network, and the first interface also displays a prompt for performing network settings when checking for updates fails.
[0020] According to the implementation mode of the present application, it is convenient to perform network settings when the update check fails, and at this time the electronic device can always be in the screen-dominant state, thereby further strongly reminding the user to update the search package in time.
[0021] In some implementations, determining that the installation package in the package search result is a first-category installation package includes:
[0022] Determine whether there is an installation package in the package search result;
[0023] If there is an installation package, further determining whether the installation package is the first type of installation package;
[0024] If there is no installation package, continue to use it normally.
[0025] According to this implementation of the present application, after receiving the package search result from the server, it is determined based on the package search result whether it is necessary to perform a screen-based download reminder or screen-based installation reminder. In other words, the installation packages are classified, and for some installation packages of certain attributes, no strong reminder is required, and the system can be upgraded in the system default mode; for other installation packages of certain attributes, the system can be upgraded by using the strong reminder instead of manual reminder when necessary.
[0026] In some implementations, the package search request includes a device identifier of the electronic device; the package search result includes version identification information of the installation package, and determining whether the installation package is the first type of installation package includes:
[0027] Obtain the version identification information in the package search result;
[0028] Determine whether the installation package is the first type of installation package according to the version identification information.
[0029] According to this implementation mode of the present application, the server determines the installation package corresponding to the electronic device by obtaining the device identification of the electronic device, and sends its version identification information to the electronic device. The electronic device determines how to perform the system upgrade based on the version identification information, that is, whether to use a strong reminder method or a conventional upgrade method, etc.
[0030] In some implementations, downloading and installing the first type of installation package includes:
[0031] Determining whether the electronic device is connected to a router;
[0032] When the electronic device is connected to a router, the electronic device downloads and installs the first type of installation package through the background;
[0033] When the electronic device is in a non-router connection, a second interface is provided on the electronic device, the second interface is provided in a manner that only controls on the second interface on the screen can be operated, and a download and install control is provided in the second interface, the download and install control at least being presented as a download and install button for initiating downloading and installing the first type of installation package.
[0034] According to this embodiment of the present application, when it is determined that the electronic device is currently connected to a router, automatic downloading, automatic installation, and automatic restart are performed directly in the background to avoid unnecessary follow-up. When the electronic device is not connected to a router, such as a hotspot connection, the download interface is displayed in a dominant screen state, thereby reminding the user that a certain amount of traffic will be consumed. Avoid unnecessary traffic consumption.
[0035] In some implementations, a second temporary use control is also provided in the second interface, and the second temporary use control is used to unlock the second interface and provide the user of the electronic device with a second temporary use of a second predetermined duration.
[0036] According to this implementation mode of the present application, when it is known that there is a first-type installation package but the first-type installation package has not been successfully downloaded (including the download has not yet been started or the download is interrupted), the user is provided with one and only one delayed upgrade opportunity to meet the user's temporary use when it is inconvenient to upgrade online, which can improve the user experience.
[0037] In some implementations, when the second temporary usage control is triggered, a usage duration prompt box is displayed on the electronic device to prompt the second predetermined duration value.
[0038] According to this implementation mode of the present application, the user can make preparations for network connection in advance according to the usage of the electronic device and the network environment.
[0039] In some implementations, downloading and installing the first type of installation package further includes:
[0040] Determining that the second preset time has passed since the second temporary use control was triggered;
[0041] A third interface is provided on the screen of the electronic device, the third interface is provided in a manner that only controls on the third interface on the screen can be operated, and the download and installation controls are provided in the third interface.
[0042] According to the implementation of the present application, when the second preset time period expires, the user is reminded to download and install the first type of installation package in a dominant screen state. In other words, the user can be urged to complete the download of the installation package to the electronic device within the specified time.
[0043] In some implementations, when the download and install button is triggered, downloading and installing the first type of installation package further includes:
[0044] Determining a WLAN connection status of the electronic device;
[0045] When the electronic device is not connected to a network, a setting network control is displayed on the electronic device for setting a network to achieve a WLAN connection;
[0046] When the electronic device is in a hotspot connection state, the electronic device downloads and installs through the hotspot.
[0047] According to this implementation mode of the present application, that is to say, as long as it is a non-router connection, the domineering screen download interface will be displayed, and the download and installation in the domineering screen download interface will be triggered, or the download and installation in the domineering screen state will be triggered after the second period of temporary use. In the case of a hotspot connection, the download will be carried out through the hotspot and the domineering screen state will be released. If there is no Internet connection, a reminder will be given to connect to WLAN. After the connection, the download will continue to be carried out through the set network and the domineering screen state will be released.
[0048] In some implementations, downloading and installing the first type of installation package further includes:
[0049] After the download is completed, determining whether the remaining power of the electronic device meets a threshold;
[0050] When the remaining power is less than the threshold, the electronic device displays a fourth interface, the fourth interface is provided in a manner that only the controls on the fifth interface on the screen can be operated, an installation control is provided in the fourth interface, and when the installation control is triggered, a charging reminder and the threshold reminder prompt box are displayed;
[0051] When the remaining power meets the threshold, the electronic device automatically installs and automatically restarts to implement system update.
[0052] According to this implementation mode of the present application, when the remaining power is less than the threshold, the installation interface is displayed to remind the user to charge to the threshold to meet the power requirement for installation, thereby avoiding unnecessary waste of time caused by installation interruption.
[0053] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; a processor, when the processor executes the instructions in the memory, the electronic device can execute the system upgrade method provided by any embodiment of the first aspect of the present application. The beneficial effects that can be achieved in the second aspect can refer to the beneficial effects of any embodiment of the first aspect of the present application, and will not be repeated here.
[0054] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the system upgrade method provided by any embodiment of the first aspect of the present application. The beneficial effects that can be achieved in the third aspect can refer to the beneficial effects of any embodiment of the first aspect of the present application, and will not be repeated here.
[0055] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program / instructions, characterized in that when the computer program / instructions are executed by a processor, the steps of the system upgrade method provided in any embodiment of the first aspect of the present application are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flowchart of a system upgrade method according to some embodiments;
[0057] Figure 2 is a schematic diagram of a system upgrade reminder interface according to some embodiments;
[0058] Figure 3 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0059] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0060] Figure 5 A flowchart of a system upgrade method provided in an embodiment of the present application;
[0061] Figure 6 A flowchart of the step of searching for an installation package in a system upgrade method provided in an embodiment of the present application;
[0062] Figure 7 A schematic diagram of a screen-dominant check update interface in a system upgrade according to an embodiment of the present application;
[0063] Figure 8 A flowchart of downloading and installing steps in a system upgrade method provided in an embodiment of the present application;
[0064] Fig. 9 A schematic diagram of a screen-dominant download interface in a system upgrade according to an embodiment of the present application;
[0065] Fig.10 A schematic diagram of a screen-dominant download interface in a system upgrade method according to another embodiment of the present application;
[0066] Fig.11 A schematic diagram of a screen-dominant installation interface in a system upgrade according to another embodiment of the present application;
[0067] Fig.12 A flowchart of a system upgrade method according to an embodiment of the present application;
[0068] Fig.13 A flowchart of a system upgrade method according to another embodiment of the present application;
[0069] Fig.14 It is a structural schematic diagram of a system upgrading device according to an embodiment of the present application. DETAILED DESCRIPTION
[0070] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0071] In order to more clearly understand the solutions in the embodiments of the present application, the following briefly describes the terms involved in the present application:
[0072] Demonstration machine: An electronic device used for functional demonstration in retail stores, media evaluation, etc. Usually, the identifier (i.e., VendorCountry) in the system configuration properties of such electronic devices is displayed as "demo", i.e., a prototype.
[0073] Package search: refers to the electronic device searching for the installation package for system upgrade through the background. Usually, when electronic devices leave the factory, they are set to start automatic search regularly through system parameter settings, for example, they can be set to search once an hour. The start of the package search is performed regularly regardless of the network connection status. After the package search is started, if there is a network connection, a package search request is sent to the server through the background and a package search result in response to the package search request is received from the server; if there is no network connection, the package search fails. A successful package search means that the electronic device maintains a wireless network connection with the server, and a failed package search means that the electronic device is not connected to the network.
[0074] System upgrade: refers to replacing the current system with a new system to update the system of the electronic device from the current system to a new system with a higher version, that is, updating the current system stored in the memory to a new system. System upgrade can fix bugs in the current system or improve the performance of the system, for example, fix the display anomaly of the application in the system to make the application more perfect and easy to use.
[0075] Super automatic installation package (as an example of the first type of installation package): refers to a system upgrade installation package dedicated to display machines. During the download and installation process, download reminders and installation reminders are given in a state where the screen is forced to be occupied. Here, download reminders and installation reminders in a state where the screen is forced to be occupied means that only the controls on the specified interface can be operated, and other interfaces are either hidden or in an inoperable state in the background, that is, the screen dominating state. As an example, for example, the screen is covered by the check update, download, and installation interface, and the screen dominating state can only be removed when the controls on the interface are operated and the corresponding operation requirements are met.
[0076] Dominate the screen to check for updates: Remind the user to search for new versions by forcibly occupying the screen. The success of the update check is determined by whether the package search is completed. If the package search is successful (regardless of whether a new version is found, as long as the server responds normally to the package search result, the package search is considered successful), it means that the update check is successful, and the electronic device exits the dominate screen check for updates state; if the package search fails, it means that the update check has failed, and the electronic device continues to display the dominate screen check for updates page to remind the user to search for a new version.
[0077] Occupy screen download reminder: Remind users to download the installation package for system upgrade by forcibly occupying the screen.
[0078] Screen-occupying installation reminder: Remind users to install the installation package for system upgrade by forcibly occupying the screen.
[0079] The system upgrade method provided in the embodiment of the present application can be applied to electronic devices, especially system upgrades of display machines used in agency stores, etc. As an electronic device, taking a display machine as an example, in normal use, a package search will be started regularly. If the user fails to perform the system upgrade in time within the specified time, the electronic device will remind the user to connect to the Internet, download, and install in a strong reminder manner.
[0080] According to some embodiments, Figure 1 FIG. 1 is a flow chart showing a system upgrade method according to some embodiments. Figure 1As shown, during normal use, the electronic device will periodically start searching for packages. After starting the search action, first, the electronic device determines whether the current network connection status is a WLAN connection. If it is determined that there is a WLAN connection, the electronic device searches for the installation package for the upgrade through the background. If there is no WLAN connection, it waits for the WLAN connection. After that, as a result of the search, if a new installation package is found, an interface prompting installation is presented. If there is no new installation package, it is used normally.
[0081] Figure 2 A schematic diagram of a system upgrade reminder interface 210 according to some embodiments is shown. Figure 2 As shown, during the normal use of the electronic device, when the package search results find an installation package for system upgrade, the user is reminded to upgrade. Figure 2 As shown, the system upgrade reminder interface 210 includes prompt information to remind the user whether to update immediately. As a choice provided to the user, the system upgrade reminder interface 210 usually provides an "immediate" button 211 for immediate update and a "later" button 212 for later update.
[0082] When the "Now" button is triggered, such as Figure 1 As shown, the electronic device downloads / installs the installation package in the background.
[0083] When the "Later" button is triggered, such as Figure 1 As shown, the electronic device confirms / starts the night update. If the night update is not authorized, the electronic device will pop up the system upgrade reminder interface again after a preset time.
[0084] However, this upgrade method cannot upgrade the system the fastest, especially for the display machine, which cannot be upgraded in time to provide customers with a better user experience. With this upgrade method, the marketing interface usually needs to follow up and urge the upgrade, which consumes a lot of manpower and occupies system resources.
[0085] For this reason, for example, for a display machine, a more radical upgrade reminder method needs to be adopted to reduce the cost of urging and achieve a faster upgrade. To this end, the embodiment of the present application provides a system upgrade method, an electronic device, and a storage medium to timely upgrade the system of the electronic device to the latest version, thereby improving the performance of the electronic device and enhancing the user experience while reducing the cost of urging.
[0086] According to the implementation mode of the present application, when an electronic device finds an installation package during a package search operation and the installation package is a super-automatic installation package (as an example of a first type of installation package) for performing a system upgrade by forcibly occupying the screen, the electronic device downloads and installs the package directly in the background, or displays a screen-dominant state, and strongly reminds the user to download and install the super-automatic installation package. Since the user is reminded to download / install in a timely manner by occupying the screen, the upgrade rate can be greatly improved, the cost of following up can be reduced, and the performance of the electronic device and the user experience can be improved.
[0087] It should be understood that the system upgrade method provided in the embodiments of the present application can be implemented on various electronic devices, including but not limited to mobile phones, tablets, computers, smart screens, vehicle-mounted devices (for example, car computers, vehicle-mounted navigation systems), and other electronic devices with display screens and operating systems. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
[0088] Before introducing the system upgrade method provided in the embodiment of the present application in detail, the hardware structure of the electronic device is first introduced.
[0089] Figure 3 The structure diagram of the electronic device 100 provided by an embodiment of the present application is shown. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging 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, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0090] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0091] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0092] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0093] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0094] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an Inter-Integrated Circuit (I2C) interface, an Inter-Integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, and a Subscriber Identity Module (SIM) interface.
[0095] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0096] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0097] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0098] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0099] In some embodiments, the antenna 2 is coupled to the wireless communication module 160 so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), Beidou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS) and / or Satellite Based Augmentation Systems (SBAS).
[0100] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0101] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, Microled, Micro-Oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0102] In some embodiments, the processor 110 receives instructions from the user. For example, when the electronic device 100 searches for packages during use and determines that there is an installation package and the installation package belongs to the first category of installation packages, the display screen can be forced to occupy the screen and present the system upgrade reminder interface in a screen-dominant manner. The system upgrade reminder interface can at least be used to guide the user to download / install the installation package immediately / later. The processor 110 further enables the electronic device 100 to download / install the first category of installation packages by running system upgrade method instructions. In this way, when other applications and functions are suspended, the user can be strongly reminded to immediately start the download / installation of the first category of installation packages to increase the upgrade rate, reduce the cost of urging, and at the same time improve the performance of the electronic device 100 and the user's experience.
[0103] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0104] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0105] In some embodiments, the internal memory 121 may store instructions for a system upgrade method, and the processor 110 runs the system upgrade method instructions so that the display screen of the electronic device 100 can present a first boot interface and a boot wizard interface. In addition, the processor 110 runs the system upgrade method instructions so that the electronic device 100 can search for an installation package for system upgrade, and when it is determined that the installation package is a first-class installation package, the user is reminded to download / install the first-class installation package in the screen-dominant state, and after the installation is completed, the display screen of the electronic device 100 can present an interface prompting a restart, etc.
[0106] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0107] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0108] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0109] In some embodiments, the microphone 170C can receive the user's voice, for example, the user speaks the words "restart immediately", and the microphone 170C converts the sound signal of restart immediately into an electrical signal so that the processor 110 can restart the electronic device 100 according to the instruction of restart immediately.
[0110] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0111] In some embodiments, after the user presses or clicks the first type installation package update configuration control / automatic update configuration control displayed on the display screen 194, the pressure sensor 180A is used to sense the pressure signal of the user on the area where the first type installation package update configuration control / automatic update configuration control is located, and the pressure signal can be converted into an electrical signal, so that the processor 110 can determine and record the first type installation package update switch state / automatic update switch state according to the user's operation on the first type installation package update configuration control / automatic update configuration control.
[0112] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0113] In some embodiments, when a user touches the area where the first type of installation package update configuration control / automatic update configuration control is located on the display screen 194 and performs operations such as clicking and dragging, the processor 110 receives the user's operation on the area where the first type of installation package update configuration control / automatic update configuration control is located, and in response to the operation, determines and records the first type of installation package update switch status / automatic update switch status.
[0114] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100. Among them, the present application does not limit the type of operating system of the electronic device. For example, Android system, Linux system, Windows system, Ios system, Harmony Operating System (Harmony OS), etc.
[0115] Figure 4 A software structure block diagram of an electronic device 100 provided in one embodiment of the present application is shown.
[0116] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android Runtime) and the system library, and the kernel layer.
[0117] The application layer can include a series of application packages.
[0118] like Figure 4 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0119] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0120] like Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0121] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0122] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0123] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0124] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0125] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0126] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0127] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
[0128] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0129] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0130] The system library may include multiple functional modules, such as: Surface Manager, Media Libraries, 3D graphics processing library (such as Opengl ES), 2D graphics engine (such as SGL), etc.
[0131] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0132] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0133] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0134] A 2D graphics engine is a drawing engine for 2D drawings.
[0135] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0136] The system upgrade method provided in the embodiment of the present application can be applied to Figure 3 The hardware structure shown in Figure 4 In an electronic device with the software structure shown in the figure, or with more or fewer components than shown in the figure, or with some components combined, or some components separated, or with different component arrangements, etc., and with similar hardware structures and software structures.
[0137] The system upgrade method provided in the embodiment of the present application is described in detail below in conjunction with the above-mentioned electronic device.
[0138] Figure 5 FIG. 1 is a flow chart of a system upgrade method provided by an embodiment of the present application, which can be executed by the processor 110 in the electronic device 100. Figure 5 As shown, the system upgrade method may include steps S510-S530.
[0139] S510: Searching for an installation package for system upgrade.
[0140] When the electronic device leaves the factory, it can be set to start up regularly through configuration parameters to search for installation packages for system upgrades in the background, for example, once an hour.
[0141] That is to say, when the electronic device is turned on, it will periodically start searching for packages. Specifically, a search request is sent to the server through the background. After receiving the search request, the server will send the search result to the electronic device in response. After the electronic device receives the search result from the server, if there is a new installation package, it can download, install, and restart to complete the system upgrade.
[0142] Of course, whether the search can be successfully executed depends on the network connection. Without the network connection, the search action cannot be completed in time through the background.
[0143] In some implementations, when the electronic device is not connected to the network, the electronic device continues to wait for a network connection.
[0144] In other implementations, when the electronic device is not connected to the Internet, that is, the packet search is unsuccessful, the electronic device is reminded to perform network settings in order to perform the packet search in a timely manner.
[0145] The packet searching steps in different states will be described in detail below in conjunction with specific embodiments.
[0146] S520: Determine that the installation package in the package search result is a super-automatic installation package, which is used to provide download reminders and installation reminders in a state where the screen is forcibly occupied during the download and installation process of the electronic device.
[0147] That is to say, when the electronic device determines that there is an installation package in the package search results, it determines whether the installation package is a super-automatic installation package. If it is not a super-automatic installation package, but a general installation package, it can be upgraded based on the user's choice or in a default manner. For example, many electronic devices are set to default nighttime upgrades. If it is a super-automatic installation package, that is, an installation package that needs to be updated in time for the display machine, a strong reminder to download / install is performed during the download / installation process, that is, when the system upgrade is not completed within the expected time, the screen is forcibly occupied and the download reminder and installation reminder are performed. In other words, this implementation of the present application classifies the searched installation packages, and for some installation packages, a strong reminder method is used to remind the user to download / install in time; for other installation packages, a conventional method is adopted, for example, nighttime download / installation can be automatically started.
[0148] As to how to judge the property of the installation package, the version information of the installation package may be used, or a label may be attached to the installation package. The electronic device may judge how to download / install by identifying the version information, label, etc.
[0149] In some implementations, the specific means of determining whether there is a super-automatic installation package may be as follows:
[0150] The electronic device sends a packet search request to the server, wherein the packet search request may include, for example, a device identification of the electronic device.
[0151] Thereafter, the electronic device receives the packet search result returned by the server in response to the packet search request.
[0152] That is to say, after receiving the package search request, the server determines whether there is an installation package matching the electronic device based on the information in the package search request, such as the current version information and the device identification, and sends the package search result to the electronic device in response. The package search result may include whether there is a new installation package and the specific version information of the installation package.
[0153] Thus, the electronic device can determine whether there is a package based on the package search result, and if there is a package, further determine whether the installation package is an installation package that needs to start the screen-dominant state for downloading / installing based on the version information.
[0154] As an example, when an electronic device sends a package search request, the package search request carries a device identifier, that is, "demo" is carried in the VendorCountry. When the server receives the package search request, it identifies "demo" through the identifier, searches the library for an installation package that matches the "demo" model, and finds the "super-automatic installation package." By reading the version attributes, for example, when "Demo_mandatory_update" is displayed in the version attributes, it can be known that the new installation package is a super-automatic installation package. It should be noted here that the version attribute can be displayed on the screen or not, as long as the electronic device can read and identify it.
[0155] S530: Download and install the super automatic installation package.
[0156] In some implementations, when it is determined that the installation package is a super-automatic installation package (i.e., a strong reminder is required and downloading / installation is performed in the dominant screen state), the dominant screen state can be entered directly, and the downloading, installation, and restarting processes can dominate the screen throughout.
[0157] In other implementations, it can be configured that when it is found that the download and installation cannot be completed within the specified time, the user is reminded to download and install in a domineering manner, and the domineering state is released when the user's operation meets the requirements for downloading and installing. This configuration method is more user-friendly than the full-time domineering screen, which is conducive to improving the user experience.
[0158] In some implementations, the electronic device can be set to start the installation program immediately by default after downloading the super-automatic installation package, and can also be set to restart the electronic device by default after the installation is completed to complete the system upgrade. In other words, as long as the download is started, the series of operations of downloading, installing, and restarting are automatically completed to complete the upgrade. Under this implementation, the system upgrade can be realized immediately and efficiently, and the cost of follow-up management can be effectively reduced.
[0159] In other embodiments, the electronic device can be set to determine the remaining power of the electronic device after downloading the super automatic installation package, and immediately start the installation program when the remaining power meets the threshold, and when the remaining power is insufficient, the installation interface is displayed on the screen to remind you to charge immediately. In this way, installation interruption can be avoided and the system upgrade can be effectively ensured to be completed.
[0160] According to the above implementation of the present application, during the download and installation process of the super-automatic installation package, the download interface and the installation interface can be displayed in a domineering manner, and a download control is presented on the download interface. When the download control is triggered, the download operation is performed. In the domineering state, all other applications and functions cannot be used, so that users of the electronic device (sales staff in stores, etc.) must interrupt or temporarily stop other processes and enter the system upgrade process. This can greatly improve the upgrade rate in the short term.
[0161] Next, first combine Figure 6-Figure 7 The package search step in the system upgrade method according to the present application, namely the above-mentioned step S510, is described in detail.
[0162] like Figure 5 As shown, searching for an installation package for system upgrade may specifically include the following steps:
[0163] S511, determine whether the packet search is successful.
[0164] That is, the current WLAN connection status of the electronic device is determined.
[0165] When the packet search is successful, that is, when it is determined that the network connection state is a wireless local area network connection, a packet search request is sent to the server using the wireless local area network, and a packet search result in response to the packet search request is received from the server.
[0166] In some embodiments, in order to avoid system upgrade delays caused by long-term disconnection from the Internet, restrictions are also imposed on the use of disconnected devices. That is:
[0167] S512, when the packet search fails, the timer starts and the electronic device enters a temporary use state.
[0168] That is, when the network connection state is determined to be offline, temporary use of the electronic device for a predetermined period of time is provided. As described above, temporary use can not only limit the use time, but also impose corresponding restrictions on the functions and applications of the electronic device.
[0169] In addition, as described above, the electronic device periodically starts searching for packets, and if the previous packet search failed but the current packet search succeeds, the timer can be cleared until the next packet search fails and the timer is reset. Thus, unnecessary reminders can be avoided.
[0170] In addition, the timing method can be determined by day or by a predetermined time interval, and can be appropriately adjusted according to the update frequency of the system upgrade package. Specifically, for example, it can be set as follows: as long as there is a successful package search on the same day, even if the subsequent package search fails, the timing will no longer be started, until the first package search fails on the next day, and then it is determined whether the timing needs to be started. For example, it can also be set as follows: a day is divided into 6 time periods at intervals of 4 hours. As long as there is a successful package search in each time period, the time period will no longer be counted, and from the next time period, when the first package search fails, it will be determined whether the timing needs to be started. Of course, the above is just an example, and it can be appropriately adjusted in combination with the update frequency of the system upgrade package, the package search frequency of the electronic device, and the upgrade rate required by the system upgrade installation package.
[0171] S513, determining whether the time elapsed from the start of timing exceeds a predetermined time period.
[0172] S514, when the preset time is exceeded, the electronic device enters the screen dominating state and prompts to check for updates.
[0173] That is to say, after a predetermined period of temporary use, the electronic device still has no connection to the Internet for searching packages. If it continues to wait for the connection to the Internet, it will cause a delay in the system upgrade. To this end, the system upgrade method of the embodiment of the present application provides a screen-based check update interface (i.e., an example of the first interface) on the electronic device, and the screen-based check update interface provides a check update control for triggering the search package, i.e., for searching for a new system upgrade installation package from the server.
[0174] In the screen dominating state, all controls on the original screen of the electronic device are in an inoperable state. Regarding the screen dominating state, there are two implementation methods, for example: 1) full screen display, that is, the entire screen of the electronic device is covered by the screen dominating download interface, and all controls on the original screen of the electronic device are invisible and inoperable; 2) although the screen is not covered as a whole, the controls allowed to be used are floated on the top layer of the screen, and can be operated through the controls, while all controls located below the controls are visible but cannot be operated through the touch interface.
[0175] S515, determining whether the electronic device has successfully updated.
[0176] That is, after the check update control is triggered, the check result shows whether the search package result is successfully obtained from the server.
[0177] When the update check succeeds, it means that the packet search request can be successfully sent to the server and the packet search result from the server can be successfully received.
[0178] S516, when the update check fails, network settings are performed and the screen dominance state is returned after the network is connected.
[0179] By checking for updates, you can stop the screen dominance and return to the normal state of searching for installation packages regularly.
[0180] In order to facilitate direct network settings when the update check fails, a network setting control can be provided on the main screen check update interface to facilitate network settings. In addition, a prompt for setting the network when the update check fails can be displayed on the main screen check update interface to facilitate users to understand the functions and specific operations of each control.
[0181] like Figure 7 As shown, (b) shows a dominant screen check update interface 601, on which a check update button 302 and a network setup button 301 are displayed, and "When the check fails, please set up the network and try again" is displayed to remind the user what to do when the check update fails. In addition, the dominant screen check update interface 601 can also provide the current system version information, etc.
[0182] like Figure 7As shown, when the check update button 302 in the screen-dominant check update interface 601 is triggered, the electronic device enters the check update state, that is, the new version of the check update state. If the electronic device is in a networked state, the electronic device screen displays the check interface 603 shown in (c). At this time, the electronic device is still in the screen-dominant state. If there is no network connection, that is, when the check update fails, the electronic device presents an interface 602 as shown in (a), and the interface 602 provides a network setting control 303 so that the user can directly set the network. The specific technology for setting the network can refer to the existing terminal equipment, for example, it can search for connectable WIFI around and push it to the user, etc., which will not be described in detail here.
[0183] The update dominance solution can be implemented by adding a CCM parameter "ota_demo_offline_disable_delay" to the electronic device. This parameter indicates how long the current version will pop up the update check prompt when it is used offline. The default value is -1, which means that offline dominance activation is not enabled; 0 means that the update check prompt will be displayed within 1 hour of offline use. x means that the update check prompt will be displayed after the offline use exceeds x days.
[0184] Below, combined with the attached Figure 8-11 How to remind the user to upgrade the system in time during the download and installation process (corresponding to the above step S530) is described in detail. In other words, when it is determined that the new version installation package displayed in the search package result is a super-automatic installation package, how to remind the user to complete the download and upgrade of the super-automatic installation package in time.
[0185] like Figure 8 As shown, in some embodiments of the present application, the download and installation process includes:
[0186] S5301: Determine whether the electronic device is connected to a router.
[0187] Regarding the specific means of determining whether the network connection is a router connection, it can be identified by conventional means, such as by reading the communication device code, etc., and its detailed description is omitted here.
[0188] When the electronic device is connected to a router, the electronic device directly downloads and installs the super-automatic installation package. (That is, proceed to step S5308)
[0189] That is to say, when the router is connected, the electronic device directly enters the automatic download and installation program through the background because it does not consume traffic, etc. Downloading and installing through the background is imperceptible to the user and does not affect the user experience.
[0190] When the electronic device is not connected to a router, since downloading involves traffic consumption, etc., further authorization from the user is required. To this end, proceed to the following steps.
[0191] S5302: Providing a screen-dominant download interface (ie, an instance of the second interface) on the electronic device.
[0192] Specifically, a download and installation control is provided in the screen-dominant download interface, and the download and installation control can be triggered by a download and installation button.
[0193] In addition, a temporary use control may be provided in the screen-dominant download interface, and the temporary use control is used to release the screen-dominant download interface and provide the user of the electronic device with temporary use of the predetermined time. Specifically, the temporary use control may be triggered by, for example, a download later button.
[0194] Fig. 9 (a) shows an exemplary screen-dominant download interface 610. Downloading and installing the control can be triggered by the download button 304, and temporarily using the control can be triggered by the upgrade button 305.
[0195] As mentioned above, since downloading involves traffic consumption, considering the following situation: it is inconvenient for the user to immediately connect the electronic device to the router and does not want to consume traffic, the user is provided with an opportunity to download later, that is, for temporary use.
[0196] S5303: When the upgrade later control is clicked, the temporary use control is triggered, the electronic device enters temporary use of a predetermined duration, and starts timing.
[0197] According to some embodiments, when the temporary use control is triggered, a usage duration prompt box is also displayed on the electronic device to prompt the predetermined duration value.
[0198] Fig. 9 (b) exemplarily shows a usage time prompt box 306, and by clicking to confirm, the electronic device starts timing and enters temporary use.
[0199] That is, when the temporary use control is triggered, the electronic device stops dominating the screen, and displays a reminder on the electronic device to keep the electronic device in the current state for a predetermined time. The user can make preparations for network connection in advance according to the usage of the electronic device and the network environment.
[0200] S5304: Determine whether a preset time has passed since the temporary use control was triggered. If the preset time has not passed, the user is allowed to continue using the electronic device in the current use state.
[0201] S5305: When the predetermined time is reached, a dominant screen download interface (ie, an instance of the third interface) is provided on the screen of the electronic device, and only download and installation controls are provided in the dominant screen download interface.
[0202] Fig. 9 (c) shows an exemplary embodiment of a domineering screen interface 630 , in which only a download button 304 is provided to trigger the download and installation of the control.
[0203] That is to say, after a predetermined period of temporary use, the user is strongly reminded to download and install the app by dominating the screen.
[0204] As a specific solution to realize the domineering screen download reminder, for example, an upgrade control item ota_demo_always_show_delay can be set for the electronic device: indicating whether the current version needs to be prompted to download and whether the upgrade time is allowed to be postponed. For example, the default value can be set to 72, indicating that the download can be postponed for 3 days; -1 means that the domineering screen prompt download is not enabled; 0 means that the domineering screen prompt download is not allowed to be postponed.
[0205] Regardless of whether it is the dominant screen download interface or the strong dominant screen download interface, when the download and installation control is triggered, the following steps are performed:
[0206] S5306: Determine the WLAN connection status of the electronic device.
[0207] In fact, the network connection status of the electronic device may be not connected to the network or connected to a hotspot, in addition to the router connection mentioned above. Therefore, the current WLAN connection status is first determined.
[0208] S5307: When the electronic device is not connected to a network, a network setting control is displayed on the electronic device for setting up a network to achieve a WLAN connection.
[0209] That is, when the judgment result shows that the electronic device is disconnected from the network, the network control is set to allow the user to set the network. The specific setting method can refer to the description of the previous step of checking for updates, and its detailed description is omitted here.
[0210] S5308: When the electronic device is in a hotspot connection state, the electronic device downloads and installs through the hotspot.
[0211] Specifically, if Fig.10As shown, when the download and installation control in the screen-dominating download interface 610 shown in (b) is triggered, when the hotspot is connected, the electronic device is released from the screen-dominating state as shown in (a), enters the download program, and displays on the screen that the download can be transferred to the background, and the electronic device can be used normally; when there is no Internet connection, as shown in (c), the network setting interface 650 is presented, that is, the network setting control 303 is displayed on the electronic device.
[0212] It should be noted that there may be a download interruption. Download interruption means that the super automatic installation package has not been completely downloaded. In this case, the electronic device can present the download interface again to continue downloading. In addition, in the case of download interruption, after reconnecting, you can continue downloading from the breakpoint without downloading from the beginning. The specific implementation means of breakpoint downloading can be applied to common means, which are not limited here.
[0213] S5309: Determine whether the download is finished. If not, continue downloading until it is finished.
[0214] S5310: After the download is completed, further determine whether the remaining power of the electronic device meets the threshold.
[0215] As the size of the system upgrade installation package becomes larger and larger, the installation process usually takes time and power, and if the power is lost during the installation process, the device may be damaged and unable to start. Therefore, after the download is completed and before the installation is performed, it is necessary to determine whether the remaining power of the electronic device is sufficient for installation and restart to avoid unnecessary waiting or time waste.
[0216] When the remaining power reaches the threshold, the electronic device automatically installs and restarts to implement the system update. Downloading, judging the remaining power, and installing can all be done through automatic connection in the background, and the user will not be aware of it, providing a good user experience.
[0217] S5311: When it is determined that the remaining power is insufficient, the electronic device displays a dominant screen installation interface (i.e., an instance of the fourth interface), and provides installation controls in the dominant screen installation interface to install the super-automatic installation package.
[0218] Fig.11 (a) exemplarily shows a screen-dominating installation interface 660 , in which an install now button 307 is provided for triggering the installation control.
[0219] S5312: After the installation control is triggered, a charging prompt box may be further displayed on the electronic device to remind the user to charge. In addition, the power requirement required for installation may also be prompted.
[0220] like Fig.11As shown in (b), a charging reminder interface 670 is displayed on the electronic device, and a charging reminder box 308 is displayed in the charging reminder interface 670.
[0221] When the electronic device is connected to the charging device and the power level meets the installation requirements, by clicking the Install Now button 307, the dominance status of the dominance installation interface can be released, making it easier for users to use.
[0222] like Fig.11 As shown in (c), the electronic device cancels the screen dominance state and presents an installation display interface 680, which can remind the user to switch the program to background operation. Of course, the current installation progress can also be displayed. For example, the installation display interface 680 shows that the current installation progress has been completed by 70%.
[0223] S5313: When the electronic device is charged to a predetermined threshold, the electronic device automatically installs and restarts the super-automatic installation package.
[0224] From the above description, it can be seen that by reminding users to download and install in a dominant screen manner after the scheduled time instead of manual follow-up, the system upgrade installation package can be downloaded and installed in a timely manner, the upgrade rate can be improved, and the cost of manual follow-up can be reduced.
[0225] Fig.12 and Fig.13 Two specific embodiments of the system upgrade method according to the present application are given.
[0226] Fig.12 In the figure, the three dotted boxes from top to bottom correspond to steps S510, S520, and S530 respectively.
[0227] Fig.12 and Fig.13 The difference between these two embodiments is whether there is a step of checking for updates on the screen. Fig.12 In the embodiment of the present invention, a screen-based check update step is adopted, and Fig.13 In the embodiment, the check and update of the new version is not processed by dominating the screen, but the conventional waiting for connection and normal use during the waiting period are adopted.
[0228] about Fig.12 and Fig.13 For details, refer to the above Figure 6 and Figure 8 The detailed description is omitted here.
[0229] The system upgrade method according to the present application is described in detail above in conjunction with specific embodiments.
[0230] In addition, an embodiment of the present application further provides a system upgrade device 800, which is disposed in the electronic device and is used to execute the above system upgrade method. Fig.14 As shown, the system upgrade device 800 may include: a search module 810 , a determination module 820 , and a download module 830 .
[0231] The search module 810 is used to search for installation packages for system upgrades.
[0232] The determination module 820 is used to determine whether the installation package in the package search result is a super-automatic installation package. The super-automatic installation package is used to provide download reminders and installation reminders in the screen dominance state during the download and installation process of the electronic device.
[0233] The download module 830 is used to download and install the super-automatic installation package.
[0234] It should be noted that the device provided in the above embodiment, when implementing its functions, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the corresponding method embodiment belong to the same concept, and the specific implementation process is detailed in the corresponding method embodiment, which will not be repeated here.
[0235] The present application also provides an electronic device, including:
[0236] a memory for storing instructions executed by one or more processors of the electronic device;
[0237] The processor, when the processor executes the instructions in the memory, can cause the electronic device to execute the above embodiment Figures 5 to 13 The system upgrade method shown.
[0238] The present application also provides a computer-readable storage medium on which instructions are stored. When the instructions are executed by a processor, the processor executes the above-mentioned embodiment. Figures 5 to 13 The system upgrade method shown.
[0239] The present application also provides a computer program product comprising instructions, which, when executed on an electronic device, enables a processor to execute the above-mentioned embodiments. Figures 5 to 13 The system upgrade method shown.
[0240] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the 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.
[0241] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0242] The program code can be implemented in a high-level programming language or an object-oriented programming language to communicate with the processing system, including but not limited to OpenCL, C language, C++, Java, etc. As for languages such as C++ and Java, since they convert the storage, there will be some differences in the application of the data processing method in the embodiment of the present application. Those skilled in the art can make changes based on the specific high-level language without departing from the scope of the embodiment of the present application.
[0243] 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 temporary or non-temporary 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. Therefore, the 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 disks, optical disks, optical discs, magneto-optical disks, read-only memories (ROM), CD-ROMs, random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic or other forms of propagation signals. Therefore, the 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).
[0244] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0245] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0246] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0247] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to 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
1. A system upgrade method, applied to electronic equipment, characterized in that: The method comprises: At a first moment, the electronic device is not connected to the Internet; At a second moment, the electronic device displays a first interface, the first interface includes a check update control, the check update control is used to trigger a search for an installation package, the installation package is used for system upgrade, only the check update control in the first interface can be operated, and the second moment is later than the first moment by a first predetermined time length; In response to the user's operation on the check update control, the electronic device connects to the network and receives a package search result in response to the operation from the server if the network is successfully connected, the package search result includes version identification information of the installation package, and the version identification information corresponds to the electronic device; Before the check update control is not triggered, the electronic device does not respond. During the period from the first moment to the second moment, the usage function of the electronic device is limited.
2. The system upgrade method according to claim 1, characterized in that: The method further comprises: Determining that the installation package in the package search result is a first type of installation package, the first type of installation package triggering the electronic device to provide a download reminder and an installation reminder in a state where the screen is forcibly occupied during the download and installation process; Download and install the first type of installation package.
3. The method according to claim 2, characterized in that Determining that the installation package in the package search result is a first-category installation package includes: Determine whether there is an installation package in the package search result; If there is an installation package, further determining whether the installation package is the first type of installation package; If there is no installation package, continue to use it normally.
4. The method according to claim 3, characterized in that The determining whether the installation package is the first type of installation package comprises: Obtain the version identification information in the package search result; Determine whether the installation package is the first type of installation package according to the version identification information.
5. The method according to claim 2, characterized in that: The downloading and installing the first type of installation package includes: The networking of the electronic device is a router connection, and the electronic device downloads and installs the first type of installation package through the background.
6. The method according to claim 2, characterized in that The downloading and installing of the first type of installation package includes: the networking of the electronic device is a non-router connection, a second interface is provided on the electronic device, the second interface includes a download and installation control, only the download and installation control in the second interface can be operated, and the download and installation control is used to start downloading and installing the first type of installation package.
7. The method according to claim 6, characterized in that The second interface also includes a temporary use control, and the temporary use control is used to unlock the second interface and provide the user of the electronic device with temporary use for a second predetermined period of time.
8. The method according to claim 7, characterized in that When the temporary use control of the second predetermined time period is triggered, the electronic device displays a usage time prompt box.
9. The method according to claim 7, characterized in that: The downloading and installing the first type of installation package also includes: determining that the second predetermined time period has elapsed since the temporary use control for the second predetermined time period was triggered; A third interface is provided on the screen of the electronic device, wherein the third interface includes the download and install control, and only the download and install control in the third interface can be operated.
10. The method according to claim 7, characterized in that When the download and install button is triggered, downloading and installing the first type of installation package further includes: When the electronic device is not connected to a network, a setting network control is displayed on the electronic device for setting a network to achieve a WLAN connection; When the electronic device is in a hotspot connection state, the electronic device downloads and installs through the hotspot.
11. The method according to claim 7, characterized in that The method further comprises: When the residual power of the electronic device meets a threshold, the electronic device automatically installs and automatically restarts to implement system update.
12. The method according to claim 7, characterized in that The method further comprises: The remaining power of the electronic device is insufficient to reach a threshold value, a fourth interface is displayed on the electronic device, an installation control is provided in the fourth interface, only the installation control in the fourth interface can be operated, and the installation control is used to install the first type of installation package.
13. An electronic device, characterized in that: include: a memory for storing instructions executed by one or more processors of the electronic device; A processor, when the processor executes the instructions in the memory, can enable the electronic device to execute the system upgrade method according to any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the system upgrade method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Application upgrade method and terminal
CN106648671A
Application program upgrading method and device, electronic equipment and storage medium
CN109960521A
Software upgrading method and device, electronic equipment and storage medium
CN114050982A