CN116048546B - System upgrading method, electronic equipment and computer readable storage medium - Google Patents

System upgrading method, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116048546B
CN116048546B CN202211025361.2A CN202211025361A CN116048546B CN 116048546 B CN116048546 B CN 116048546B CN 202211025361 A CN202211025361 A CN 202211025361A CN 116048546 B CN116048546 B CN 116048546B
Authority
CN
China
Prior art keywords
installation package
interface
electronic device
installation
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211025361.2A
Other languages
Chinese (zh)
Other versions
CN116048546A (en
Inventor
姚红涛
潘帅
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311382806.7A priority Critical patent/CN117453245A/en
Priority to CN202211025361.2A priority patent/CN116048546B/en
Publication of CN116048546A publication Critical patent/CN116048546A/en
Application granted granted Critical
Publication of CN116048546B publication Critical patent/CN116048546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a system upgrading method, electronic equipment and a storage medium, which are applied to the electronic equipment. The system upgrading method comprises the following steps: searching an installation package for system upgrade; determining that an installation package in a package searching result is a first type of installation package, wherein the first type of installation package is used for carrying out downloading reminding and installation reminding in a state of forcedly occupying a screen in the process of downloading and installing the electronic equipment; downloading and installing the first type installation package. According to the system upgrading method, when the electronic equipment searches the first type of installation package in the package searching process, the electronic equipment is strongly reminded (namely, other programs and functions cannot be used) to download and install the installation package, the system is not dependent on the rapid upgrading of a manual follow-up promotion realization system, the upgrading rate can be greatly improved, and the labor cost and follow-up promotion investment are reduced.

Description

System upgrading method, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system upgrade method, an electronic device, and a storage medium.
Background
With the continuous development of modern communication technology, terminal devices (such as mobile phones, tablets, smart watches, vehicles, etc.) are also increasingly used in daily life. In order to keep the electronic product with the best performance and good user experience, the system of the electronic product needs to be kept as the latest version as possible, so that defects (bugs) in the previous system version can be effectively avoided, and the new functions of the electronic product can be increased.
For new electronic products, due to the faster delivery rhythm, some bugs often affect the user experience in the first color package version of the product archive. Likewise, the development of system maintenance for electronic products is also quite rapid. After the electronic product is shipped, a maintenance (Maintenance Release, MR) version that often addresses the bug is already pushed to the user, at which time the user is expected to be able to perform the system upgrade as soon as possible. In particular, for some special users, such as retail stores, media evaluation and the like, a more aggressive means is adopted to remind the upgrade so as to achieve the purpose of quickly upgrading to a new version, thereby bringing better product use experience.
For example: the new products in China are marketed for the first time, and the urgent major problems are met, the development and marketing are matched, the upgrading rate of the whole country is reported every day, the marketing interface is updated layer by layer, and the upgrading rate can reach more than 90% in 3-5 days, but the manpower and energy are consumed. Therefore, there is a need to develop a display for retail stores that overcomes or reduces the need for such follow-up incentives by replacing the human with a super alert or forced update when an updated version of the system exists.
Disclosure of Invention
Some embodiments of the present application provide a system upgrade method, an electronic device, and a storage medium, and the present application is described in the following aspects, which may be referred to with reference to the following embodiments and advantageous effects.
In a first aspect, an embodiment of the present application provides a system upgrade method, applied to an electronic device, where the method includes:
searching an installation package for system upgrade;
determining that an installation package in a package searching result is a first type of installation package, wherein the first type of installation package is used for carrying out downloading reminding and installation reminding in a state of forcedly occupying a screen in the process of downloading and installing the electronic equipment;
downloading and installing the first type installation package.
According to the embodiment of the application, when the electronic equipment searches the first type of installation package (namely, the electronic equipment is subjected to downloading reminding and installation reminding in a form of a screen heater), the electronic equipment can remind a user to download and install the installation package in a strong reminding mode (namely, other programs and functions cannot be used) in the downloading and installation process of the first type of installation package. Therefore, the system can be quickly updated without depending on manual follow-up promotion, the updating rate can be greatly improved, and the labor cost and follow-up promotion investment can be reduced.
In some embodiments, the searching for an installation package for a system upgrade includes:
determining a current WLAN connection state of the electronic device;
and under the condition that the network connection state is determined to be the wireless local area network connection, sending a packet searching request to a server by utilizing the wireless local area network to search the installation packet, and receiving a packet searching result from the server in response to the packet searching request.
Electronic devices, such as cell phones, are typically shipped configured to automatically initiate a search for packages on a regular basis, such as 1 hour, 1 time, etc. The specific packet searching process is that, for example, the electronic device sends a packet searching request to the server through a wireless network connection, and when the server receives the packet searching request, the server makes a packet searching result in response to the packet searching request and sends the packet searching result to the electronic device. That is, to succeed in searching for a packet, the electronic device should be in an environment where a wireless network is connected, and send a packet searching request and receive a packet searching result using the wireless network.
In some embodiments, the searching for an installation package for a system upgrade further comprises:
and providing a first temporary use of the electronic device for a first predetermined period of time if the network connection state is determined to be non-networked.
According to the embodiment of the application, in order to promote a user to timely perform system upgrade, timing is started when the network connection state is determined to be the non-networking state, and the electronic equipment is only allowed to be temporarily used for a preset time period when the non-networking state is determined to be the non-networking state. That is, it is currently conventional that the electronic device simply waits for the next packet search in a state where there is no network connection (i.e., packet search failure), but in contrast, the present application starts timing in a case where the packet search is unsuccessful and restricts the use of the electronic device, for example, the use period thereof, and may also restrict the use function or the like. Therefore, the user can be urged to successfully search the package of the electronic equipment as soon as possible, and upgrading delay caused by long-term non-searching of the package is avoided.
In some embodiments, the providing a first temporary use of the electronic device for a first predetermined period of time if the network connection status is determined to be not networked comprises:
determining whether an elapsed time from the timing is greater than the first predetermined length of time;
and when the first preset time period is exceeded, providing a first interface on the electronic equipment, wherein the first interface is provided in a mode that only a control of the first interface on the screen can be operated, and a check update control is provided on the first interface for triggering package searching (namely, triggering and searching an installation package for system upgrading).
According to the embodiment of the application, after the temporary use of the reserved time length is finished, the screen of the electronic equipment is in a forced control state, namely, a screen-up state, so that a user is reminded of checking and updating (namely, new version checking and updating).
In some embodiments, a setting web control is further provided on the first interface, and a prompt for performing a web setting when the update is checked to fail is also displayed on the first interface.
According to the embodiment of the application, network setting is convenient when the updating is checked to fail, and the electronic equipment can be always in the screen-up state, so that a user can be further strongly reminded of updating the search package in time.
In some embodiments, the determining that the installation package in the search package result is a first type of installation package includes:
determining whether an installation package exists in the package searching result;
if the installation package exists, further judging whether the installation package is the first type installation package or not;
and under the condition of no installation package, normal use is continued.
According to the embodiment of the application, after the packet searching result from the server is received, whether the screen downloading prompt and the screen installation prompt are needed or not is determined based on the packet searching result. That is, the installation packages are classified, and for some attribute installation packages, strong reminding is not needed, so that system upgrading can be performed in a default mode of the system; for installation packages with other attributes, the strong prompt is used for replacing manual follow-up prompt to realize system upgrading when needed.
In some embodiments, the packet search request includes a device identifier of the electronic device; the searching result includes version identification information of the installation package, and the judging whether the installation package is the first type installation package includes:
acquiring the version identification information in the packet searching result;
and judging whether the installation package is the first type installation package or not according to the version identification information.
According to the embodiment of the application, the server determines the installation package corresponding to the electronic equipment by acquiring the equipment identification of the electronic equipment, and sends the version identification information of the installation package to the electronic equipment, and the electronic equipment judges the mode of system upgrading based on the version identification information, namely a strong reminding mode, a conventional upgrading mode and the like.
In some embodiments, said downloading and installing said first type of installation package comprises:
determining whether the electronic device is a router connection;
under the condition that the electronic equipment is connected by a router, the electronic equipment downloads and installs the first type of installation package through a background;
providing a second interface on the electronic device when the electronic device is in non-router connection, wherein the second interface is provided in a mode that only the control of the second interface on the screen can be operated, and a download and installation control is provided in the second interface and at least appears as a download and installation button for starting downloading and installing the first type of installation package.
According to the embodiment of the application, under the condition that the electronic equipment is determined to be connected by the router at present, automatic downloading, automatic installation and automatic restarting are directly carried out through the background, so that unnecessary follow-up promotion is avoided. In the case that the electronic device is in a non-router connection, for example, in a hot spot connection state, the download interface is displayed in a screen-in-touch state, so that a user can be reminded that a certain flow is consumed. Avoiding unnecessary flow consumption.
In some embodiments, a second temporary use control is also provided in the second interface, the second temporary use control being configured to unlock the second interface and provide a second temporary use for a second predetermined period of time by a user of the electronic device.
According to the embodiment of the application, under the condition that the first type of installation package is known, but the first type of installation package is not successfully downloaded (including not started for downloading and downloading interruption), a delay upgrading opportunity is provided for a user once and only once, so that temporary use of the user under the condition that the network upgrading is inconvenient is met, and the user experience can be improved.
In some embodiments, when the second temporary use control is triggered, a use time length prompt box is displayed on the electronic device, and is used for prompting the second predetermined time length value.
According to the embodiment of the application, a user can prepare network connection and the like in advance according to the use condition of the electronic equipment, the network environment condition and the like.
In some embodiments, the downloading and installing the first type of installation package further comprises:
determining that the second preset time period passes from the time when the second temporary use control is triggered;
providing a third interface on a screen of the electronic device, wherein the third interface is provided in a mode that only a control of the third interface on the screen can be operated, and the downloading and installing control is provided in the third interface.
According to the embodiment of the application, when the second preset time period expires, the user is reminded of downloading and installing the first type of installation package in a screen-in-screen state. That is, the user can be urged to complete the download of the installation package to the electronic device within a specified time.
In some embodiments, when the download and install button is triggered, the downloading and installing the first type of installation package further comprises:
determining a WLAN connection state of the electronic device;
displaying a network setting control on the electronic equipment in an unconnected network state, wherein the network setting control is used for setting a network to realize WLAN connection;
And downloading and installing the electronic equipment through the hot spot when the electronic equipment is in the hot spot connection state.
According to this embodiment of the present application, that is, as long as it is a non-router connection, the device displays the device screen download interface, the download and installation in the device screen download interface is triggered, or the download and installation in the device screen state is triggered after the temporary use for the second period of time, in the case of a hot spot connection, the device screen download is performed through the hot spot and the device screen state is released, in the case of no network connection, the device screen download is performed through the network provided after connection, and the device screen state is released.
In some embodiments, the downloading and installing the first type of installation package further comprises:
after the downloading is completed, determining whether the residual quantity of the electronic equipment meets a threshold value;
when the residual quantity is less than the threshold value, displaying a fourth interface on the electronic equipment, providing the fourth interface in a mode that only a control of a fifth interface on the screen can be operated, providing an installation control in the fourth interface, and triggering to display a charging prompt and the threshold value prompt box when the installation control is triggered;
And when the residual quantity meets the threshold value, the electronic equipment is automatically installed and automatically restarted to realize system updating.
According to the embodiment of the application, when the residual quantity is less than the threshold value, the installation interface of the display screen is displayed, and the user is reminded of charging to the threshold value to meet the installation electricity demand, so that unnecessary time waste caused by installation interruption can be avoided.
In a second aspect, an embodiment of the present application provides an electronic device, including: a memory for storing instructions for execution by one or more processors of the electronic device; the processor, when executing the instructions in the memory, may cause the electronic device to execute the system upgrade method provided by any embodiment of the first aspect of the present application. The advantages achieved by the second aspect may refer to those of any embodiment of the first aspect of the present application, and will not be described herein.
In a third aspect, embodiments of the present application provide a computer readable storage medium having stored thereon instructions that, when executed on a computer, cause the computer to perform the system upgrade method provided by any of the embodiments of the first aspect of the present application. The advantages achieved by the third aspect may refer to those of any embodiment of the first aspect of the present application, and will not be described herein.
In a fourth aspect, embodiments of the present application provide a computer program product comprising a computer program/instruction, characterized in that the computer program/instruction, when executed by a processor, implements the steps of the system upgrade method provided by any of the embodiments of the first aspect of the present application.
Drawings
FIG. 1 is a flow chart of a system upgrade method according to some embodiments;
FIG. 2 is a schematic diagram of a system upgrade reminder interface, according to some embodiments;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a system upgrade method according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a step of searching for an installation package in a system upgrade method according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an update interface for a screen check in a system upgrade according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating the downloading and installing steps in a system upgrade method according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a screen download interface in a system upgrade according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a screen-in-screen downloading interface in a system upgrade method according to another embodiment of the present application;
FIG. 11 is a schematic diagram of a screen mounting interface in a system upgrade according to yet another embodiment of the present application;
FIG. 12 is a flowchart of a system upgrade method according to an embodiment of the present application;
FIG. 13 is a flowchart of a system upgrade method according to another embodiment of the present application;
fig. 14 is a schematic structural diagram of a system upgrade apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
For a clearer understanding of the aspects of embodiments of the present application, the following is a brief description of terms that the present application relates to:
display machine: the electronic equipment is used for retail stores, media evaluation and the like and performs function demonstration. Typically, the identification (i.e., vendorCountry) in the system configuration attributes of such electronic devices is displayed as "demo", i.e., prototype.
Searching for a packet: the electronic equipment is provided with an installation package for upgrading the background searching system. Typically, the electronic device is set to periodically initiate an automatic search at the time of shipment, in the form of a system parameter setting, for example, may be set to 1 hour for 1 time. The initiation of the search for packets is performed periodically, independent of the network connection state. After the packet searching is started, under the condition of network connection, a packet searching request is sent to a server through a background, and a packet searching result responding to the packet searching request is received from the server; the search for packets fails without a networked connection. The successful searching of the package means that the wireless network connection is kept between the electronic equipment and the server, and the failure searching of the package means that the electronic equipment is in an unconnected state.
And (3) upgrading a system: the method is that the current system is replaced by the new system, so that the system of the electronic equipment is updated from the current system to the new system with higher version, namely, the current system stored in the memory is updated to become the new system. The system upgrade can repair the bug of the current system or improve the performance of the system, for example, repair the abnormal display of the application program in the system, so that the application program is more perfect and better used.
Super-automatic installation packages (as an example of a first type of installation package): the pointer is to the specialized installation package of a kind of system upgrade of the display machine, download and remind and install and remind in the state of forcing the screen to occupy in the download, installation. The step of carrying out downloading reminding and installation reminding under the condition of forcedly occupying the screen is that only the control on the designated interface can be operated, and other interfaces are either hidden or in a background inoperable state, namely, a screen-up state. As an example, a screen is checked for updates, downloaded, installed, and the interface is overlaid, and the user can be dismissed from the screen only if a control on the interface is operated and meets the corresponding operating requirements.
And (5) checking and updating the display screen to remind: reminding the user to search for the new version in a forced screen occupation mode. Whether the update is successful or not is checked, and whether the packet searching action is completed or not is taken as a judging criterion. The successful searching of the package (whether the new version is found or not, the server considers the successful searching of the package as long as the server normally responds to the searching result), the checking and updating are successful, and the electronic equipment exits the screen to check the updating state; and if the searching of the package fails, the checking and updating failure is indicated, and the electronic equipment continues to display the screen checking and updating page to remind the user of searching the new version.
And (5) downloading and reminding a screen: reminding a user to download the installation package for system upgrade in a mode of forcedly occupying a screen.
And (3) mounting and reminding a screen: reminding a user to install the installation package for system upgrade in a mode of forcedly occupying a screen.
The system upgrading method provided by the embodiment of the application can be applied to electronic equipment, in particular to the system upgrading of a display machine such as an agent store. As an example of the electronic device, a display machine is taken, and in normal use, a search package is started periodically. Under the condition that the user does not timely upgrade the system in the appointed time, the electronic equipment reminds the user to carry out networking, downloading and installation in a strong reminding mode.
FIG. 1 illustrates a flow chart of a system upgrade method according to some embodiments. As shown in fig. 1, during normal use, the electronic device may periodically start the search for packets. After the packet searching action is started, firstly, the electronic equipment determines whether the current network connection loading is WLAN connection, searches an installation packet for upgrading through the background under the condition that the current network connection loading is WLAN connection, and waits for the WLAN connection under the condition that the current network connection loading is WLAN connection. And then, as a package searching result, when a new installation package is found, presenting an interface for prompting installation, and when no new installation package exists, normally using the package.
FIG. 2 illustrates a schematic diagram of a system upgrade reminder interface 210, according to some embodiments, as shown in FIG. 2, that reminds a user of an upgrade when a package search result reveals an installation package for a system upgrade during normal use of the electronic device. As shown in fig. 2, the system upgrade reminding interface 210 includes a reminding message to remind the user whether to update immediately. As a selection provided to the user, an "immediate" button 211 for immediate update and a "later" button 212 for later update are generally provided in the system upgrade reminder interface 210.
When the "immediate" button is activated, the electronic device performs download/installation of the installation package in the background, as shown in fig. 1.
When the "later" button is triggered, as shown in fig. 1, the electronic device confirms/starts the night update, and if the night update is not authorized, the electronic device pops up the system upgrade reminding interface again after a preset time.
However, this upgrade does not allow for the fastest system upgrades, especially for displays, which cannot be timely upgraded to provide the customer with a better user experience. With such an upgrade method, the marketing interface is generally required to upgrade layer by layer, thereby consuming a great deal of manpower and occupying system resources.
For this reason, for example, for a display, a more aggressive upgrade alert mode is required, so as to reduce the following cost and realize faster upgrade. Therefore, the embodiment of the application provides a system upgrading method, electronic equipment and a storage medium, and the system of the electronic equipment is timely upgraded to the latest version, so that the performance of the electronic equipment is improved, the use experience of a user is improved, and the follow-up cost is reduced.
According to the embodiment of the application, in the package searching operation, when the electronic equipment finds the installation package which is the super-automatic installation package (as an example of the first type of installation package) for carrying out system upgrading in a mode of forcedly occupying a screen, the electronic equipment downloads and installs the installation package according to a networking state or directly in the background or presents a screen-over state, and strongly reminds a user of downloading and installing the super-automatic installation package. The user is reminded to download/install in time in a screen-warming mode, so that the upgrading rate can be greatly improved, the follow-up cost is reduced, and meanwhile, the performance of the electronic equipment and the use experience of the user can be improved.
It should be understood that the system upgrade method provided in the embodiment of the present application may be implemented on various electronic devices, including but not limited to, mobile phones, tablet computers, smart screens, vehicle-mounted devices (e.g., car computers, car navigator) and other electronic devices having a display screen and an operating system, and the embodiment of the present application does not limit the specific form of the electronic device.
Before describing the system upgrading method provided by the embodiment of the application in detail, the hardware structure of the electronic device is first described.
Fig. 3 shows a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (Subscriber Identification Module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-Network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor 110 may generate operation control signals according to the instruction operation code and the timing signals to complete instruction fetching and instruction execution control.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (Inter-Integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-Integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, UART) interface, a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), a General-Purpose Input/Output (GPIO) interface, a subscriber identity module (Subscriber Identity Module, SIM) interface.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (Wireless Local Area Networks, WLAN) (e.g., wireless fidelity (Wireless Fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 2 and the wireless communication module 160 are coupled such that the electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (Global System For Mobile Communications, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), time division code division multiple access (Time-Division Code Division Multiple Access, TD-SCDMA), long term evolution (Long Term Evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (Global Positioning System, GPS), a global navigation satellite system (Global Navigation Satellite System, GLONASS), a beidou satellite navigation system (Beidou Navigation Satellite System, BDS), a Quasi zenith satellite system (Quasi-Zenith Satellite System, QZSS) and/or a satellite based augmentation system (Satellite Based Augmentation Systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), an Active-Matrix Organic Light Emitting Diode (AMOLED), a flexible Light-Emitting Diode (Flex Light-Emitting Diode), a mini, a Micro-OLED, a quantum dot Light-Emitting Diode (Quantum Dot Light Emitting Diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
In some embodiments, the processor 110 receives an instruction from a user, for example, when the user searches for a package and determines that there is an installation package and the installation package belongs to the first type of installation package during use, the display screen may force to occupy the screen, and present a system upgrade alert interface in a screen-in-a-super manner, where the system upgrade alert interface may be used at least 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 type of installation package by executing system upgrade method instructions. Therefore, the user can be strongly reminded to immediately start the downloading/installing of the first type of installation package under the state that other applications and functions are suspended, so that the upgrading rate is improved, the follow-up cost is reduced, and the performance of the electronic equipment 100 and the use experience of the user are improved.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
In some embodiments, the internal memory 121 may store instructions of a system upgrade method, and the processor 110 may enable the display screen of the electronic device 100 to present a first boot interface and may present a boot guide interface by executing the instructions of the system upgrade method. And, the processor 110 executes the instruction of the system upgrade method, so that the electronic device 100 can search for an installation package for system upgrade, and under the condition that the installation package is determined to be the first type of installation package, the user is prompted to download/install the first type of installation package in a screen-up state, and after the installation is completed, the display screen of the electronic device 100 can present an interface for prompting restarting, etc.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
In some embodiments, microphone 170C may receive a user's voice, e.g., the user's voice speaks an immediate restart utterance, microphone 170C converts the immediate restart voice signal into an electrical signal to enable processor 110 to effect a restart of electronic device 100, etc., in accordance with the immediate restart instruction.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
In some embodiments, after the user presses and clicks the first type installation package update configuration control/automatic update configuration control displayed in the display screen 194, the pressure sensor 180A is configured to sense a pressure signal of an area where the user updates the configuration control/automatic update configuration control for the first type installation package, and may convert the pressure signal into an electrical signal. Such that the processor 110 may enable determination and recording of the first type of installation package update switch status/automatic update switch status in accordance with a user update configuration control/automatic update configuration control operation for the first type of installation package.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
In some embodiments, when the user touches the area where the first type installation package update configuration control/automatic update configuration control of the display screen 194 is located, and performs operations such as clicking, dragging, etc., the processor 110 receives an operation of the user for the area where the first type installation package update configuration control/automatic update configuration control is located, and in response to the operation, determines and records the first type installation package update switch state/automatic update switch state.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated. The application is not limited to the type of the operating system of the electronic device. For example, an Android system, a Linux system, a Windows system, an Ios system, a hong OS system (Harmony Operating System, hong OS), and the like.
Fig. 4 shows a software architecture block diagram of the electronic device 100 according to an embodiment of the application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface Manager (Surface Manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., opengl ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The system upgrading method provided by the embodiment of the application can be applied to the electronic equipment with the hardware structure shown in the figure 3 and the software structure shown in the figure 4. Or more or less components than illustrated, or some components may be combined, or some components may be separated, or different components may be arranged, or the like in hardware and software configurations.
The system upgrading method provided by the embodiment of the application is described in detail below with reference to the above-mentioned electronic device.
Fig. 5 is a flow chart illustrating a system upgrade method according to an embodiment of the present application, which may be performed by the processor 110 in the electronic device 100. As shown in fig. 5, the system upgrade method may include steps S510-S530.
S510: searching for an installation package for system upgrades.
The electronic device may be set to be started up periodically at the time of shipment through the configuration parameters, and to search for an installation package for system upgrade through the background, for example, 1 hour, 1 time, etc.
That is, the electronic device periodically starts the searching package in the power-on state. Specifically, a packet search request is sent to a server through the background. After receiving the packet searching request, the server responds by sending the packet searching result to the electronic device. After receiving the packet searching result from the server, the electronic device can download, install and restart when a new installation packet exists, so as to complete the system upgrade.
Of course, whether the search can be successfully performed or not, requires reliance on network connections. In a state of no networking, the packet searching action cannot be completed in time through the background.
In some implementations, when the electronic device is in an unclogged state, the electronic device continues to wait for a network connection.
In other embodiments, when the electronic device is in an unconnected state, i.e., the searching of the package is unsuccessful, the electronic device is reminded to perform network setting so as to search the package in time.
The step of searching packets in different states will be described in detail later with reference to specific embodiments.
S520: and determining that the installation package in the package searching result is a super-automatic installation package, wherein the super-automatic installation package is used for carrying out downloading reminding and installation reminding in a state of forcedly occupying a screen in the processing process of downloading and installing the electronic equipment.
That is, in the case where the electronic device determines that there is an installation package in the package search result, it is determined whether the installation package is a super-automatic installation package. If not a super-automatic installation package, but a generic installation package, upgrades may be made based on user selection or in a default manner, such as many electronic devices set to default night upgrades. If the system is a super-automatic installation package, namely an installation package which needs to be updated in time aiming at the display machine, the system is subjected to strong prompt of downloading/installation in the downloading/installation process, namely the downloading prompt and the installation prompt are carried out in a state of forcedly occupying a screen under the condition that the system is not upgraded within the expected time. In other words, this embodiment of the present application classifies the searched installation packages, and for some installation packages, alerts the user in a strong alert manner to download/install at a time; for other installation packages, this is done in a conventional manner, for example, a night download/installation may be initiated automatically, etc.
Regarding how to determine the attribute of the installation package, the electronic device may determine how to download/install by identifying version information, a tag, etc. of the installation package, or may attach a tag to the installation package.
In some embodiments, the means for specifically determining whether there is a super-automatic installation package may be as follows:
the electronic device sends a packet searching request to the server, wherein the packet searching request can contain, for example, a device identifier of the electronic device.
Thereafter, the electronic device receives a packet search result returned by the server in response to the packet search request.
That is, after receiving the packet searching request, the server determines whether the installation packet matched with the electronic device exists or not based on information in the packet searching request, such as current version information and device identification, and sends a packet searching result to the electronic device in response. The search result may include no new installation package, specific version information of the installation package, and the like.
Therefore, the electronic equipment can judge whether a package exists according to the package searching result, and further judge whether the installation package is an installation package which needs to be started up to download/install in the screen-warming state according to the version information under the condition that the package exists.
As an example, when the electronic device sends the packet search request, the packet search request carries the device identifier, that is, "demo" in VendorCountry. After the server receives the package searching request, the identifier identifies the "demo", and then searches the installation package matched with the model of the "demo" in the library, so that the "super-automatic installation package" is found. By reading the version attribute, for example, when the version attribute shows "remote_manager_update", the new installation package is known to be a super-automatic installation package. Here, the version attribute may or may not be displayed on the screen, as long as the electronic device can read and recognize the version attribute.
S530: downloading and installing the super automatic installation package.
In some embodiments, in the case that the installation package is determined to be a super-automatic installation package (i.e. a strong prompt is needed, and downloading/installation is performed in the screen-up state), the screen-up state can be directly entered, and the downloading, installation and restarting processes can be performed in the whole course.
In other embodiments, the method may be configured to prompt the user to download and install in a screen-in-screen manner when the user finds that the downloading and the installation are not completed within a prescribed time, and to release the screen-in-screen state when the user's operation meets the requirements for downloading and installing. Compared with the whole course screen, the configuration mode is more humanized and is beneficial to improving user experience.
In some embodiments, the electronic device may be configured to default to start the installation program immediately after the super automatic installation package is downloaded, and may be further configured to default to restart the electronic device after the installation is completed to complete the system upgrade. That is, as soon as downloading is started, the series of operations of downloading, installing and restarting are automatically completed, and upgrading is completed. In this embodiment, the system can be updated most efficiently and immediately, and the following management cost and the like can be reduced reliably.
In other embodiments, the electronic device may be configured to determine the residual electrical quantity of the electronic device after the super-automatic installation package is downloaded, and immediately initiate the installation procedure when the residual electrical quantity meets the threshold, and display the installation interface on the display screen when the residual electrical quantity is insufficient, thereby prompting immediate charging. Thus, the installation interruption can be avoided, and the completion of the system upgrade can be ensured reliably.
According to the embodiment of the application, in the downloading and installing process of the super-automatic installation package, a downloading interface and an installing interface can be displayed in a screen-in-a-screen mode, a downloading control is displayed on the downloading interface, and when the downloading control is triggered, the downloading operation is executed. In the screen-up state, all other applications and functions are not used, so that a user (salesperson in a store, etc.) using the electronic device must interrupt or temporarily enter other processes and enter a system upgrade process. Thus, the upgrading rate in a short period can be greatly improved.
Next, the step of searching for packets in the system upgrade method according to the present application, that is, the above step S510, will be described in detail with reference to fig. 6 to 7.
As shown in fig. 5, searching for an installation package for a system upgrade may specifically include the steps of:
s511, determining whether the packet searching is successful.
That is, the current WLAN connection state of the electronic device is determined.
And when the packet searching is successful, namely that the network connection state is determined to be the wireless local area network connection, sending a packet searching request to a server by utilizing the wireless local area network, and receiving a packet searching result from the server in response to the packet searching request.
In some embodiments, to avoid system upgrade delays caused by long-term non-networking, non-networking usage is also limited. Namely:
s512, when the packet searching fails, starting timing, and enabling the electronic equipment to enter a temporary use state.
That is, in the event that the network connection status is determined to be non-networked, temporary use of the electronic device is provided for a predetermined period of time. As described above, the temporary use may be limited not only by the time of use, but also by functions, applications, and the like of the electronic device.
In addition, as described above, the electronic device periodically starts the packet searching, and when the previous packet searching fails, but the current packet searching is successful, the timer may be cleared until the next packet searching fails and the timer is reset. Thus, unnecessary reminders can be avoided.
The timing pattern may be determined by day or at predetermined time intervals, and may be appropriately adjusted according to the update frequency of the system upgrade package. Specifically, for example, it is possible to set: if the packet searching is successful once in the day, the timing is not performed again even if the packet searching failure occurs later until the packet searching failure for the first time in the next day is judged whether the timing is needed to be started or not. For example, it may also be provided that: the method comprises the steps of dividing a day into 6 time periods at intervals of 4 hours, wherein each time period is not timed any more as long as the packet searching is successful, and determining whether to start timing or not when the packet searching fails for the first time from the next time period. Of course, the above is merely an example, and the update frequency of the system upgrade package, the search frequency of the electronic device, the upgrade rate required by the system upgrade installation package, and the like may be specifically appropriately adjusted.
S513, it is determined whether the elapsed time from the timing start exceeds a predetermined length of time.
And S514, when the preset time is exceeded, the electronic equipment enters a screen-over state and prompts to check and update.
That is, the electronic device is still not networked for searching packets after a predetermined period of temporary use, which may cause delays in system upgrades if it continues to wait for networking. For this reason, in the system upgrade method according to the embodiment of the present application, a screen inspection update interface (i.e., an instance of the first interface) is provided on the electronic device, and an inspection update control is provided on the screen inspection update interface, so as to trigger a search package, i.e., to search a new installation package for system upgrade from the server.
In the screen-up state, all the controls on the original screen of the electronic equipment are in an inoperable state. Regarding the status of the touch screen, there are two implementations, for example: 1) Full screen display, that is to say, the whole screen of the electronic equipment is covered by the screen-over download interface, and all the controls of the original screen of the electronic equipment are in invisible and inoperable states; 2) Although the screen is not covered in whole, the allowed control floats on the uppermost layer of the screen and can be operated by the control, and all the controls positioned on the lower layer of the control are visible but can not be operated by the touch interface.
S515, judging whether the electronic device checks that the updating is successful.
That is, after the update control is triggered, the check result shows whether the search result is successfully obtained from the server.
When the update is checked to be successful, it means that the search request can be successfully sent to the server and the search result from the server can be successfully received.
S516, when the update is checked to be failed, the network setting is carried out, and the screen is returned to the screen-up state after the network is connected.
The update may be checked to remove the screen and enter the regular periodic search for installation packages.
In order to facilitate the direct network setup in case of failure of the update check, a setup network control may also be provided at the screen-up check update interface to set up the network. In addition, a prompt for setting a network when the inspection and update fails can be displayed on the screen inspection and update interface, so that a user can conveniently know the functions and specific operations of each control.
As shown in fig. 7, wherein (b) shows a screen check update interface 601, on which a check update button 302 and a set network button 301 are displayed, and "check failed time, please set a retry after network" to remind the user how to operate when the check update fails. In addition, the screen check update interface 601 may also provide current system version information and the like.
As shown in fig. 7, when the inspection update button 302 in the screen-up inspection update interface 601 is triggered, the electronic device enters an inspection update state, that is, a new version of inspection update state, and if the electronic device is in a networking state, the electronic device screen displays an inspection interface 603 as shown in (c), at this time, the electronic device is still in the screen-up state. If the network is not connected, i.e. when the update is checked for failure, the electronic device presents an interface 602 as shown in (a), the interface 602 being provided with a set-up network control 303 for the user to set up the network directly. The specific technology of setting up the network may refer to the existing terminal device, for example, surrounding connectable WIFI may be searched and pushed to the user, etc., which will not be described in detail herein.
Regarding checking the updated tyr screen scheme, it may be implemented by adding 1 CCM parameter "ota _demo_flush_disable_delay" to the electronic device. The parameter indicates how long the current version is used offline to pop up the screen check update prompt. Default value-1, indicating that off-line screen-up activation is not enabled; 0 indicates that the screen prompt check update is performed within 1h offline. x represents offline use beyond x days of the screen prompt check update.
In the following, in conjunction with fig. 8-11, details of how to remind the user to perform the system upgrade in time during the downloading and installation process (i.e. corresponding to step S530 described above) will be described. That is, in the case that the new version installation package displayed in the package searching result is determined to be the super-automatic installation package, how to prompt the user to complete downloading and upgrading of the super-automatic installation package in time.
As shown in fig. 8, in some embodiments of the application, the download and installation process includes:
s5301: it is determined whether the electronic device is a router connection.
As for the means for specifically determining whether the network connection is a router connection, it can be recognized by conventional means, for example, by reading a communication device code or the like, and a detailed description thereof will be omitted here.
And under the condition that the electronic equipment is connected by the router, the electronic equipment directly downloads and installs the super-automatic installation package. (i.e., proceed to step S5308)
That is, in the case of router connection, since traffic and the like are not consumed, the electronic device directly enters the program for automatic download and installation through the background. The downloading and the installation are carried out through the background, so that the user is unaware, and the user experience is not affected.
In case the electronic device is in a non-router connection, further authorization of the user is required, because the download involves traffic consumption etc., for which purpose the following steps are entered.
S5302: a screen-in-a-super download interface (i.e., an instance of the second interface) is provided on the electronic device.
Specifically, a download and install control is provided in the tyrant screen download interface, which may be triggered by a download and install button.
In addition, a temporary use control can be provided in the screen-flash download interface, and the temporary use control is used for releasing the screen-flash download interface and providing temporary use for a user of the electronic equipment for a preset time. Specifically, the temporary use control may be triggered by, for example, a download button at a later time.
Fig. 9 (a) shows an exemplary screen download interface 610. Wherein downloading and installing controls may be triggered by a download button 304 and temporarily using controls may be triggered by a later upgrade button 305.
As described above, since the download involves traffic consumption, for this reason, it is considered that there are cases in which: the user is not convenient to immediately transfer the electronic device to the router and does not want to consume traffic, providing the user with an opportunity to download it later, i.e. to use it temporarily.
S5303: when later upgrades are clicked, i.e., the temporary use control is triggered, the electronic device enters temporary use for a predetermined period of time and begins timing.
According to some embodiments, when the temporary use control is triggered, a use time length prompt box is also displayed on the electronic device for prompting the predetermined time length value.
Fig. 9 (b) exemplarily shows a long-time-to-use prompt box 306, and the electronic device starts to time up by clicking confirmation and enters into temporary use.
That is, when the temporary use control is triggered, the electronic device releases the screen-up state, and at the same time, a reminder is displayed on the electronic device to remind the user that the electronic device remains in the current state for a predetermined time. The user can prepare for network connection in advance according to the use condition of the electronic equipment, the network environment condition and the like.
S5304: it is determined whether a preset time period has elapsed since the temporary use control was triggered. And if the preset time period does not elapse, allowing the user to keep the use state and continue using the electronic equipment.
S5305: when a predetermined time is reached, a strong and strong screen download interface (i.e., an instance of a third interface) is provided on the screen of the electronic device, and only download and install controls are provided in the strong and strong screen download interface.
Fig. 9 (c) exemplarily shows a strong-tyrant screen interface 630, in which only a download button 304 is provided in the strong-tyrant screen download interface 630 to trigger the download and install control.
That is, after the temporary use for a predetermined period of time, the user is strongly reminded of the download and installation in a screen-in-a-super manner.
As a specific embodiment of the screen-up scheme for implementing the screen-up download reminder, for example, an upgrade control item ota _demo_always_show_delay may be set for the electronic device: indicating whether the current version requires a screen-up prompt download and allowing a deferred upgrade time. For example, the default value may be set to 72, indicating that 3 days later download is allowed; -1 indicates that the screen prompt download is not enabled; and 0 Ba screen prompts downloading, and delay is not allowed.
Whether the screen download interface or the strong screen download interface is adopted, when the download and installation control is triggered, the following steps are carried out:
s5306: a WLAN connection status of the electronic device is determined.
In fact, the network connection status of the electronic device may not be networked, but may be a hot spot connection, in addition to the router connection mentioned previously. For this purpose, the current WLAN connection state is first determined.
S5307: and displaying a network setting control on the electronic equipment for setting a network to realize WLAN connection when the electronic equipment is in an networking-free network state.
That is, when the judging result shows that the electronic equipment processes the network disconnection state, the user is enabled to conduct network setting through the network control. Specific setting means and the like may refer to the description in the inspection update step before, and a detailed description thereof is omitted here.
S5308: and downloading and installing the electronic equipment through the hot spot when the electronic equipment is in the hot spot connection state.
Specifically, as shown in fig. 10, when the download and installation control in the screen-up download interface 610 shown in (b) is triggered, in the case of hot spot connection, the electronic device shown in (a) releases the screen-up status, enters a download program, and displays the download on the screen to be able to go into background operation, so that the electronic device can be used normally; in the case of no networking, as shown in (c), a settings web interface 650 is presented, i.e., settings web control 303 is displayed on the electronic device.
Here, it should be noted that a download interruption may also occur. The downloading is interrupted, which means that the super-automatic installation package is not completely downloaded, in which case the electronic device can be caused to present the screen-flash downloading interface again for continuing the downloading. In addition, in the case of download interruption, after reconnection, the download can be continued from the breakpoint without re-downloading from the header. The specific implementation means for breakpoint download may be a common means, which is not limited herein.
S5309: judging whether the downloading is finished or not, and if not, continuing to download until the downloading is finished.
S5310: and after the downloading is finished, further judging whether the residual quantity of the electronic equipment meets a threshold value.
As the installation capacity of the system upgrade is larger and larger, the installation process is time-consuming and power-consuming, and if power is lost in the installation process, equipment damage can be caused, so that the system cannot be started. Therefore, whether the residual quantity of the electronic device is enough to be installed and restarted is judged before the electronic device is installed after the downloading is finished, so that unnecessary waiting or time waste is avoided.
When the residual quantity meets the threshold value, the electronic equipment is automatically installed and automatically restarted to realize system updating. Downloading, judging the residual quantity and installing can be performed through background automatic connection, so that a user cannot perceive the residual quantity, and good user experience is achieved.
S5311: and when the residual quantity is judged to be insufficient, the electronic equipment displays a screen mounting interface (namely an example of a fourth interface), and a mounting control is provided in the screen mounting interface so as to mount the super-automatic mounting package.
An example of a panel installation interface 660 is shown in fig. 11 (a), in which panel installation interface 660 an immediate-install button 307 is provided for triggering an install control.
S5312: after the installation control is triggered, a charging prompt box can be further displayed on the electronic device to remind a user to charge. In addition, the electric quantity requirement which needs to be met for installation can be prompted.
As shown in fig. 11 (b), a charge reminder interface 670 is displayed on the electronic device, and a charge reminder box 308 is displayed in the charge reminder interface 670.
After the electronic device is connected to the charging device and the electric quantity meets the installation requirement, the screen state of the screen installation interface can be relieved by clicking the immediate installation button 307, so that the user can use the screen installation interface conveniently.
As shown in fig. 11 (c), the electronic device releases the screen, presents an installation display interface 680, and in the installation display interface 680, the user can be reminded to switch the program to the background operation. Of course, the current installation progress and the like may also be displayed. For example, the current installation progress is displayed in installation display interface 680 as 70% completed.
S5313: and when the electronic equipment is charged to a preset threshold value, the electronic equipment automatically installs and restarts the super-automatic installation package.
According to the description, the user is reminded to download and install in a screen-over mode after the preset time, manual follow-up catalysis is replaced, timely downloading and installation of the system upgrading installation package can be practically achieved, the upgrading rate is improved, and the manual follow-up catalysis cost is reduced.
Fig. 12 and 13 show two specific embodiments of a system upgrade method according to the present application.
In fig. 12, the steps S510, S520, and S530 are respectively corresponding to the 3 dotted boxes from top to bottom.
The two embodiments of fig. 12 and 13 differ in whether there is a step of a screen-up check update. Specifically, in the embodiment of fig. 12, the step of checking and updating the screen is adopted, whereas in the embodiment of fig. 13, the screen is not processed for the new version of the check and update, but the conventional waiting connection is adopted, and the normal use mode is adopted in waiting.
With respect to the specific details in fig. 12 and 13, reference is made to the above detailed description of fig. 6 and 8, and the detailed description thereof is omitted here.
The system upgrade method according to the present application is described in detail above in connection with specific embodiments.
In addition, an embodiment of the present application further provides a system upgrade apparatus 800, configured to be disposed in the electronic device, and configured to perform the system upgrade method. Specifically, as shown in fig. 14, the system upgrade apparatus 800 may include: a search module 810, a determination module 820, and a download module 830.
The search module 810 is used for searching the installation package for system upgrade.
The determining module 820 is configured to determine that the installation package in the package searching result is a super-automatic installation package. The super-automatic installation package is used for carrying out downloading reminding and installation reminding in a screen-in-screen state in the processing process of downloading and installation of the electronic equipment.
The download module 830 is used to download and install the super automatic installation package.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus provided in the foregoing embodiments and the corresponding method embodiments belong to the same concept, and specific implementation processes of the apparatus and the corresponding method embodiments are detailed in the corresponding method embodiments, which are not repeated herein.
The embodiment of the application also provides electronic equipment, which comprises:
a memory for storing instructions for execution by one or more processors of the electronic device;
the processor, when executing the instructions in the memory, may cause the electronic device to perform the system upgrade method shown in fig. 5 to 13 in the above embodiment.
Embodiments of the present application also provide a computer readable storage medium having instructions stored thereon, which when executed by a processor, cause the processor to perform the system upgrade method shown in fig. 5 to 13 in the above embodiments.
The present application also provides a computer program product comprising instructions which, when run on an electronic device, cause a processor to perform the system upgrade method shown in fig. 5 to 13 in the above embodiments.
Embodiments of the present disclosure may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as a computer program or program code that is executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (Digital Signal Processor, DSP), microcontroller, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. Including but not limited to OpenCL, C language, c++, java, etc. Whereas for languages such as c++, java, the storage will be transformed based on some differences in the application of the data processing method in embodiments of the present application, those skilled in the art can transform based on a specific high-level language without departing from the scope of embodiments of the present application.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy diskettes, optical disks, magneto-optical disks, read-Only memories (ROMs), compact disk-Read-Only memories (CD-ROMs), random access memories (Random Access Memory, RAMs), erasable programmable Read-Only memories (EPROMs), electrically erasable programmable Read-Only memories (Electrically Erasable Programmable Read-Only memories, EEPROMs), magnetic or optical cards, flash Memory, or tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) in an electrical, optical, acoustical or other form of propagated signal using the internet. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such a particular arrangement and/or ordering may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure is not meant to imply that such features are required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the present application, each unit/module mentioned in each device is a logic unit/module, and in physical terms, one logic unit/module may be one physical unit/module, or may be a part of one physical unit/module, or may be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logic unit/module itself is not the most important, and the combination of functions implemented by the logic unit/module is only a key for solving the technical problem posed by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-described device embodiments of the present application do not introduce units/modules that are less closely related to solving the technical problems posed by the present application, which does not indicate that the above-described device embodiments do not have other units/modules.
It should be noted that in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
While the application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (11)

1. A system upgrade method applied to an electronic device, the method comprising:
searching an installation package for system upgrades, the searching an installation package for system upgrades comprising:
determining a current WLAN connection state of the electronic device;
under the condition that the network connection state is determined to be wireless local area network connection, sending a packet searching request to a server by utilizing the wireless local area network to search the installation packet, and receiving a packet searching result from the server in response to the packet searching request;
determining whether an elapsed time from a timing start exceeds a first predetermined length of time if the network connection status is determined to be unconnected; providing a first interface on the electronic device when the first predetermined time period is exceeded, wherein the first interface is provided in a mode that only a control of the first interface on a screen can be operated, and a check update control is provided on the first interface for triggering searching an installation package for system upgrading;
determining that an installation package in a package searching result is a first type of installation package, wherein the first type of installation package is used for carrying out downloading reminding and installation reminding in a state of forcedly occupying a screen in the process of downloading and installing the electronic equipment;
Downloading and installing the first type installation package.
2. The method of claim 1, wherein determining that the installation package in the search result is a first type of installation package comprises:
determining whether an installation package exists in the package searching result;
if the installation package exists, further judging whether the installation package is the first type installation package or not;
and under the condition of no installation package, normal use is continued.
3. The method of claim 2, wherein the search request includes a device identification of the electronic device; the searching result includes version identification information of the installation package, and the judging whether the installation package is the first type installation package includes:
acquiring the version identification information in the packet searching result;
and judging whether the installation package is the first type installation package or not according to the version identification information.
4. The method of claim 1, wherein said downloading and installing said first type of installation package comprises:
determining whether the electronic device is a router connection;
under the condition that the electronic equipment is connected by a router, the electronic equipment downloads and installs the first type of installation package through a background;
Providing a second interface on the electronic device when the electronic device is in non-router connection, wherein the second interface is provided in a mode that only the control of the second interface on the screen can be operated, and a download and installation control is provided in the second interface and at least appears as a download and installation button for starting downloading and installing the first type of installation package.
5. The method of claim 4, further providing a second temporary use control in the second interface, the second temporary use control for unlocking the second interface and providing a second temporary use for a second predetermined duration by a user of the electronic device.
6. The method of claim 5, wherein the electronic device displays a use-time-period prompt box for prompting the second predetermined time period value when the second temporary use control is triggered.
7. The method of claim 5, wherein said downloading and installing said first type of installation package further comprises:
determining that the second preset time period passes from the time when the second temporary use control is triggered;
Providing a third interface on a screen of the electronic device, wherein the third interface is provided in a mode that only a control of the third interface on the screen can be operated, and the downloading and installing control is provided in the third interface.
8. The method of claim 5, wherein when the download and install button is triggered, the downloading and installing the first type of installation package further comprises:
determining a WLAN connection state of the electronic device;
displaying a network setting control on the electronic equipment in an unconnected network state, wherein the network setting control is used for setting a network to realize WLAN connection;
and downloading and installing the electronic equipment through the hot spot when the electronic equipment is in the hot spot connection state.
9. The method as recited in claim 5, further comprising:
after the downloading is completed, determining whether the residual quantity of the electronic equipment meets a threshold value;
when the residual quantity is less than the threshold value, displaying a fourth interface on the electronic equipment, providing the fourth interface in a mode that only a control of the fourth interface on the screen can be operated, and providing an installation control in the fourth interface to install the first type of installation package;
And when the residual quantity meets the threshold value, the electronic equipment is automatically installed and automatically restarted to realize system updating.
10. An electronic device, comprising:
a memory for storing instructions for execution by one or more processors of the electronic device;
a processor, which when executing the instructions in the memory, causes the electronic device to perform the system upgrade method of any one of claims 1-9.
11. A computer readable storage medium having stored thereon instructions which, when executed on a computer, cause the computer to perform the system upgrade method of any one of claims 1 to 9.
CN202211025361.2A 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium Active CN116048546B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202311382806.7A CN117453245A (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium
CN202211025361.2A CN116048546B (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211025361.2A CN116048546B (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202311382806.7A Division CN117453245A (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN116048546A CN116048546A (en) 2023-05-02
CN116048546B true CN116048546B (en) 2023-10-31

Family

ID=86112240

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211025361.2A Active CN116048546B (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium
CN202311382806.7A Pending CN117453245A (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202311382806.7A Pending CN117453245A (en) 2022-08-25 2022-08-25 System upgrading method, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN116048546B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824659A (en) * 2015-07-30 2016-08-03 广东维沃软件技术有限公司 Application program updating method and terminal equipment
CN108366366A (en) * 2017-12-29 2018-08-03 海尔优家智能科技(北京)有限公司 A kind of upgrade method of equipment, device, storage medium and smart machine
CN109600451A (en) * 2018-12-28 2019-04-09 厦门中控智慧信息技术有限公司 A kind of terminal device firmware upgrade method and system based on Websocket long connection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020067504A1 (en) * 2000-12-06 2002-06-06 Xerox Corporation Method and apparatus for automatic upgrade of a product's printer driver
CN106648671B (en) * 2016-12-27 2020-05-19 宇龙计算机通信科技(深圳)有限公司 Application upgrading method and terminal
CN109960521B (en) * 2019-03-20 2022-08-02 北京顺丰同城科技有限公司 Application program upgrading method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824659A (en) * 2015-07-30 2016-08-03 广东维沃软件技术有限公司 Application program updating method and terminal equipment
CN108366366A (en) * 2017-12-29 2018-08-03 海尔优家智能科技(北京)有限公司 A kind of upgrade method of equipment, device, storage medium and smart machine
CN109600451A (en) * 2018-12-28 2019-04-09 厦门中控智慧信息技术有限公司 A kind of terminal device firmware upgrade method and system based on Websocket long connection

Also Published As

Publication number Publication date
CN117453245A (en) 2024-01-26
CN116048546A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN112055424B (en) Electronic device and method for switching electronic device
CN113727333B (en) Downloading system for custom applications
CN110764825B (en) Starting method and terminal equipment
WO2020037560A1 (en) Application installation method and terminal
CN110865837A (en) Method and terminal for upgrading system
CN115328563B (en) System starting method and electronic equipment
CN116048628B (en) Equipment starting method and electronic equipment
CN105468504A (en) Program test method and device
WO2021057411A1 (en) Component loading method, device, and system
CN116048546B (en) System upgrading method, electronic equipment and computer readable storage medium
CN116048830B (en) Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN115291919B (en) Packet searching method and related device
WO2022161024A1 (en) Upgrade prompt method, terminal device, and computer readable storage medium
CN116048563B (en) System upgrading method, electronic equipment and storage medium
CN116719556B (en) System upgrading method and electronic equipment
CN117009023B (en) Method for displaying notification information and related device
CN116775084B (en) System upgrading method and electronic equipment
WO2024083114A1 (en) Software distribution method, electronic device, and system
CN116033064B (en) Card display method, electronic device and readable storage medium
CN115357273B (en) Reminding method for system upgrading and electronic equipment
CN116033333B (en) Method for determining position information, electronic device and readable storage medium
CN117130627B (en) Fitting upgrading method and electronic equipment
CN117093315B (en) Upgrade content display method, electronic equipment and storage medium
CN116048544B (en) Processing method of popup advertisement, electronic equipment and readable storage medium
WO2024032022A1 (en) Application icon visualization method and device

Legal Events

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