CN106990984B - Method and device for updating system - Google Patents

Method and device for updating system Download PDF

Info

Publication number
CN106990984B
CN106990984B CN201710170850.XA CN201710170850A CN106990984B CN 106990984 B CN106990984 B CN 106990984B CN 201710170850 A CN201710170850 A CN 201710170850A CN 106990984 B CN106990984 B CN 106990984B
Authority
CN
China
Prior art keywords
electric quantity
terminal
current
threshold value
updating
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
CN201710170850.XA
Other languages
Chinese (zh)
Other versions
CN106990984A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710170850.XA priority Critical patent/CN106990984B/en
Publication of CN106990984A publication Critical patent/CN106990984A/en
Application granted granted Critical
Publication of CN106990984B publication Critical patent/CN106990984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

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

Abstract

The disclosure relates to a method and a device for updating a system, wherein the method comprises the following steps: after downloading of the system installation package of the pre-installation version is completed, detecting a current electric quantity value of the terminal, sending first prompt information to a user when the current electric quantity value is lower than a preset electric quantity threshold value, wherein the first prompt information is used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value, and updating the current system according to the system installation package of the pre-installation version when the terminal electric quantity value reaches the preset electric quantity threshold value. According to the technical scheme, when the electric quantity value is lower than the preset electric quantity threshold value, the current system is not updated, only a prompt is sent to a user, and when the electric quantity value of the terminal reaches the preset electric quantity threshold value, the current system is automatically updated, so that the repeated operation of the user is reduced, the time of the user is saved, and the system can be updated more simply and quickly.

Description

Method and device for updating system
Technical Field
The present disclosure relates to the field of intelligent hardware technologies, and in particular, to a method and an apparatus for updating a system.
Background
At present, after a mobile device system detects and downloads (manually or automatically) an up-to-date system, if the power of the mobile device is lower than 30%, the system cannot be restarted, and because the power is too low and may be interrupted in the updating process due to power exhaustion, a user can only restart the updating system after the power is charged to 30%, which is not intelligent enough and wastes user time.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for updating a system. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of updating a system, including:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
and when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version.
In one embodiment, the method may further comprise:
receiving a first selection operation aiming at the first prompt message, wherein the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
when the terminal electric quantity value reaches the preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version, which may include:
and in response to the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the pre-installation version.
In one embodiment, the method may further comprise:
receiving a second selection operation aiming at the first prompt message;
in response to receiving the second selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, the current system is not updated;
detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value or not;
and when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, sending second prompt information to the user, wherein the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value, and updating the current system.
In one embodiment, the method may further comprise:
receiving a third selection operation aiming at the second prompt message; the third selection operation is used for confirming that the current system is updated;
and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
In one embodiment, the preinstalled version of the system installation package is the latest version of the system installation package of the current system.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for updating a system, including:
the first detection module is used for detecting the current electric quantity value of the terminal after the system installation package of the pre-installation version is downloaded;
the terminal comprises a first sending module, a second sending module and a control module, wherein the first sending module is used for sending first prompt information to a user when the current electric quantity value is lower than a preset electric quantity threshold value, and the first prompt information is used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
and the first updating module is used for updating the current system according to the system installation package of the pre-installation version when the terminal electric quantity value reaches a preset electric quantity threshold value.
In one embodiment, the apparatus may further comprise:
the first receiving module is used for receiving a first selection operation aiming at the first prompt message, and the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
the first update module, comprising:
and the first updating submodule is used for responding to the received first selection operation, and updating the current system according to the system installation package of the pre-installation version when the terminal electric quantity value reaches a preset electric quantity threshold value.
In one embodiment, the apparatus may further comprise:
a second receiving module, configured to receive a second selection operation for the first prompt information;
the second updating module is used for responding to the received second selection operation and not updating the current system when the terminal electric quantity value reaches a preset electric quantity threshold value;
the second detection module is used for detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value;
the first update module, comprising:
and the second updating submodule is used for sending second prompt information to the user when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, and the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value and updating the current system.
In one embodiment, the second update submodel may be operable to receive a third selection operation for the second hint information; the third selection operation is used for confirming that the current system is updated; and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
In one embodiment, the preinstalled version of the system installation package is the latest version of the system installation package of the current system.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for updating a system, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
and when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, after the system installation package of the pre-installation version is downloaded, the current electric quantity value of the terminal is detected, when the current electric quantity value is lower than the preset electric quantity threshold value, first prompt information is sent to a user and used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value, and when the terminal electric quantity value reaches the preset electric quantity threshold value, the current system is updated according to the system installation package of the pre-installation version. When the electric quantity value is lower than the preset electric quantity threshold value, the current system is not updated, only a prompt is sent to a user, and when the electric quantity value of the terminal reaches the preset electric quantity threshold value, the current system is automatically updated, so that the repeated operation of the user is reduced, the time of the user is saved, and the system can be updated more simply and quickly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is an interface diagram of a system update in the prior art.
FIG. 2 is a flow diagram illustrating a method of updating a system in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating yet another method of updating a system in accordance with an exemplary embodiment.
FIG. 4 is a flow chart illustrating yet another method of updating a system in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus of an update system according to an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus of yet another update system in accordance with an exemplary embodiment.
FIG. 7 is a block diagram illustrating an apparatus of yet another update system in accordance with an exemplary embodiment.
FIG. 8 is a block diagram illustrating an apparatus suitable for use in an update system according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, after downloading the latest version of the system software package, a system update interface is shown in fig. 1, a restart immediate update button is displayed in the user interface, and a user clicks the restart immediate update button to update the system and restart the device, but when the power of the device is lower than a preset threshold, for example, 30% of the total power, the power is exhausted during system update, so that the system update is interrupted during the update process. The application provides a method for updating a system, which comprises the steps of detecting a current electric quantity value of a terminal after a system installation package of a preinstalled version is downloaded, sending first prompt information to a user when the current electric quantity value is lower than a preset electric quantity threshold value, wherein the first prompt information is used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value, and automatically updating the current system according to the system installation package of the preinstalled version when the terminal electric quantity value reaches the preset electric quantity threshold value. Thereby making the system update more intelligent.
FIG. 2 is a flow diagram illustrating a method of updating a system in accordance with an exemplary embodiment. The method is used in a terminal, and the terminal can be a mobile phone, a PAD, a notebook and other terminal equipment. As shown in fig. 2, the method of updating the system includes the following steps S101-S103:
in step S101, after the system installation package of the preinstalled version is downloaded, the current electric quantity value of the terminal is detected.
In step S102, when the current electric quantity value is lower than the preset electric quantity threshold, a first prompt message is sent to the user, where the first prompt message is used to prompt the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold.
In step S103, when the terminal electric quantity value reaches the preset electric quantity threshold, the current system is updated according to the system installation package of the preinstalled version.
The preset electric quantity threshold value can be 30% of the total electric quantity of the system, for example, when the current electric quantity value is lower than 30% of the total electric quantity of the system, the UI is popped up to prompt a user whether to automatically restart the updating system when the current electric quantity value is 30% of the total electric quantity of the system, and when the charging of the mobile device reaches 30%, the operation of restarting the updating system is automatically executed, so that the time of multiple confirmation of the user is saved, and the method is more intelligent and convenient.
According to the method, after the system installation package of the preinstalled version is downloaded, the current electric quantity value of the terminal is detected, when the current electric quantity value is lower than the preset electric quantity threshold value, first prompt information is sent to a user and used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value, and when the terminal electric quantity value reaches the preset electric quantity threshold value, the current system is updated according to the system installation package of the preinstalled version. When the electric quantity value is lower than the preset electric quantity threshold value, the current system is not updated, only a prompt is sent to a user, and when the electric quantity value of the terminal reaches the preset electric quantity threshold value, the current system is automatically updated, so that the repeated operation of the user is reduced, the time of the user is saved, and the system can be updated more simply and quickly.
In a possible implementation, as shown in fig. 3, after step S102, the method for updating the system may further include the following step S104:
in step S104, a first selection operation for the first prompt message is received, where the first selection operation is used to confirm that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value.
At this time, step S103 may be implemented as the following step S1031:
in step S1031, in response to receiving the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold, the current system is updated according to the system installation package of the preinstalled version.
In the previous embodiment, when the current electric quantity value is lower than the preset electric quantity threshold value, the first prompt message is sent to the user, the user does not need to process the message, and the function of the first prompt message is only to inform the user that the current system is automatically updated when the terminal electric quantity value reaches the preset electric quantity threshold value. However, in this embodiment, more choices are provided for the user, that is, two buttons, such as a determination button and a cancel button, may be set on the interface where the first prompt information is located, the user may click the determination button or the cancel button, and the first selection operation is a selection operation for the determination button, so that whether to update the current system when the terminal electricity quantity value reaches the preset electricity quantity threshold value may be freely selected. Therefore, the system can be updated more flexibly.
In one embodiment, as shown in fig. 4, after step S102, the method for updating the system may further include the following steps S105-S107:
in step S105, a second selection operation for the first prompt information is received.
In step S106, in response to receiving the second selection operation, when the terminal electric quantity value reaches the preset electric quantity threshold, the current system is not updated.
In step S107, it is detected whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value.
At this time, step S103 may be implemented as the following step S1032:
in step S1032, when the current electric quantity value of the terminal reaches the preset electric quantity threshold, sending a second prompt message to the user, where the second prompt message is used to prompt the user that the current electric quantity value of the terminal has reached the preset electric quantity threshold, and updating the current system.
The second selection operation is selection operation aiming at a cancel button, the second selection operation is received, when the terminal electric quantity value reaches a preset electric quantity threshold value, the current system is not updated, and when the terminal current electric quantity value reaches the preset electric quantity threshold value, second prompt information is sent to a user, two buttons such as a confirm button and a cancel button can be arranged on an interface where the second prompt information is located, and the user can click the confirm button or the cancel button, so that whether the current system is updated or not can be freely selected, and the system is more flexibly updated.
In one embodiment, step S1032 may also be implemented as steps A1-A2:
a step a1 of receiving a third selection operation for the second prompt message; a third selection operation is used for confirming that the current system is updated;
step a2, in response to receiving the third selection operation, updating the current system according to the preinstalled version of the system installation package.
The third selection operation may be, for example, a selection operation of a determination button in an interface where the second prompt information is located, and when the third selection operation is received, the current system is updated according to the system installation package of the preinstalled version. The system is updated more flexibly.
In one embodiment, the preinstalled version of the system installation package is the latest version of the system installation package of the current system.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
FIG. 5 is a block diagram illustrating an apparatus of an update system that may be implemented as part or all of an electronic device via software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 5, the apparatus of the update system includes:
the first detection module 51 is configured to detect a current terminal electric quantity value after the system installation package of the preinstalled version is downloaded;
a first sending module 52, configured to send a first prompt message to the user when the current power value is lower than the preset power threshold, where the first prompt message is used to prompt the user to update the current system when the terminal power value reaches the preset power threshold;
and the first updating module 53 is configured to update the current system according to the system installation package of the pre-installation version when the terminal electric quantity value reaches the preset electric quantity threshold value.
In one embodiment, as shown in fig. 6, the apparatus of the update system may further include:
a first receiving module 54 configured to receive a first selection operation for the first prompt message, where the first selection operation is used to confirm that the current system is updated when the terminal power value reaches a preset power threshold;
the first update module 53 includes:
and the first updating submodule is configured to respond to the received first selection operation, and when the terminal electric quantity value reaches a preset electric quantity threshold value, the current system is updated according to the system installation package of the pre-installation version.
In one embodiment, as shown in fig. 7, the apparatus of the update system may further include:
a second receiving module 55 configured to receive a second selection operation for the first prompt information;
a second updating module 56, configured to, in response to receiving the second selection operation, not update the current system when the terminal power value reaches the preset power threshold;
a second detection module 57, configured to detect whether the current electric quantity value of the terminal reaches a preset electric quantity threshold;
the first update module 53 includes:
and the second updating submodule is configured to send second prompt information to the user when the current electric quantity value of the terminal reaches the preset electric quantity threshold, and the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold and updating the current system.
In one embodiment, the second update submodule is further configured to: receiving a third selection operation aiming at the second prompt message; a third selection operation is used for confirming that the current system is updated; and configured to update the current system according to the preinstalled version of the system installation package in response to receiving the third selection operation.
In one embodiment, the preinstalled version of the system installation package is the latest version of the system installation package of the current system.
According to the device of the embodiment of the disclosure, after the system installation package of the preinstalled version is downloaded, the current electric quantity value of the terminal is detected, when the current electric quantity value is lower than the preset electric quantity threshold value, first prompt information is sent to a user and used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value, and when the terminal electric quantity value reaches the preset electric quantity threshold value, the current system is updated according to the system installation package of the preinstalled version. When the electric quantity value is lower than the preset electric quantity threshold value, the current system is not updated, only a prompt is sent to a user, and when the electric quantity value of the terminal reaches the preset electric quantity threshold value, the current system is automatically updated, so that the repeated operation of the user is reduced, the time of the user is saved, and the system can be updated more simply and quickly.
The embodiment of the present disclosure further provides a device for updating a system, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
and when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version.
The processor is configured to:
receiving a first selection operation aiming at the first prompt message, wherein the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
when the terminal electric quantity value reaches the preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version, which may include:
and in response to the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the pre-installation version.
The processor is configured to:
receiving a second selection operation aiming at the first prompt message;
and in response to receiving the second selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, not updating the current system.
Detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value or not;
and when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, sending second prompt information to the user, wherein the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value, and updating the current system.
The processor is configured to:
receiving a third selection operation aiming at the second prompt message; the third selection operation is used for confirming that the current system is updated;
and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
The processor is configured to:
the system installation package of the preinstalled version is the system installation package of the latest version of the current system.
Fig. 8 is a block diagram illustrating an apparatus for updating a system, which is suitable for a terminal device, according to an example embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the apparatus 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia components 1208 include a screen that provides an output interface between the device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1200 is in an operation mode, such as a mode of updating a system or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect an open/closed state of the apparatus 1200, the relative positioning of the components, such as a display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the apparatus 1200 and other devices in a wired or wireless manner. The apparatus 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an apparatus 1200, enable the apparatus 1200 to perform the method of updating a system described above, the method comprising:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
and when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version.
In one embodiment, the method may further comprise:
receiving a first selection operation aiming at the first prompt message, wherein the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
when the terminal electric quantity value reaches the preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version, which may include:
and in response to the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the pre-installation version.
In one embodiment, the method may further comprise:
receiving a second selection operation aiming at the first prompt message;
and in response to receiving the second selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, not updating the current system.
Detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value or not;
and when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, sending second prompt information to the user, wherein the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value, and updating the current system.
In one embodiment, the method may further comprise:
receiving a third selection operation aiming at the second prompt message; the third selection operation is used for confirming that the current system is updated;
and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
In one embodiment, the preinstalled version of the system installation package is the latest version of the system installation package of the current system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method of updating a system, comprising:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
receiving a first selection operation aiming at the first prompt message, wherein the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
and in response to the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the pre-installation version.
2. The method of claim 1, further comprising:
receiving a second selection operation aiming at the first prompt message;
in response to receiving the second selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, the current system is not updated;
detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value or not;
when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the preinstalled version, wherein the updating comprises the following steps:
and when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, sending second prompt information to the user, wherein the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value, and updating the current system.
3. The method according to claim 2, wherein when the current terminal power value reaches the preset power threshold, sending a second prompt message to the user, where the second prompt message is used to prompt the user that the terminal power value has reached the preset power threshold, and updating the current system includes:
receiving a third selection operation aiming at the second prompt message; the third selection operation is used for confirming that the current system is updated;
and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
4. The method according to any one of claims 1 to 3,
the system installation package of the preinstalled version is the system installation package of the latest version of the current system.
5. An apparatus for updating a system, comprising:
the first detection module is used for detecting the current electric quantity value of the terminal after the system installation package of the pre-installation version is downloaded;
the terminal comprises a first sending module, a second sending module and a control module, wherein the first sending module is used for sending first prompt information to a user when the current electric quantity value is lower than a preset electric quantity threshold value, and the first prompt information is used for prompting the user to update the current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
the first receiving module is used for receiving a first selection operation aiming at the first prompt message, and the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
and the first updating module is used for responding to the received first selection operation, and updating the current system according to the system installation package of the pre-installation version when the terminal electric quantity value reaches a preset electric quantity threshold value.
6. The apparatus of claim 5, further comprising:
a second receiving module, configured to receive a second selection operation for the first prompt information;
the second updating module is used for responding to the received second selection operation and not updating the current system when the terminal electric quantity value reaches a preset electric quantity threshold value;
the second detection module is used for detecting whether the current electric quantity value of the terminal reaches a preset electric quantity threshold value;
the first update module, comprising:
and the second updating submodule is used for sending second prompt information to the user when the current electric quantity value of the terminal reaches the preset electric quantity threshold value, and the second prompt information is used for prompting the user that the electric quantity value of the terminal reaches the preset electric quantity threshold value and updating the current system.
7. The apparatus of claim 6, wherein the second update submodule is further configured to: receiving a third selection operation aiming at the second prompt message; the third selection operation is used for confirming that the current system is updated; and in response to receiving the third selection operation, updating the current system according to the system installation package of the preinstalled version.
8. The apparatus according to any one of claims 5-7,
the system installation package of the preinstalled version is the system installation package of the latest version of the current system.
9. An apparatus for updating a system, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after the system installation package of the preinstalled version is downloaded, detecting the current electric quantity value of the terminal;
when the current electric quantity value is lower than a preset electric quantity threshold value, sending first prompt information to a user, wherein the first prompt information is used for prompting the user to update a current system when the terminal electric quantity value reaches the preset electric quantity threshold value;
receiving a first selection operation aiming at the first prompt message, wherein the first selection operation is used for confirming that the current system is updated when the terminal electric quantity value reaches a preset electric quantity threshold value;
and in response to the first selection operation, when the terminal electric quantity value reaches a preset electric quantity threshold value, updating the current system according to the system installation package of the pre-installation version.
CN201710170850.XA 2017-03-21 2017-03-21 Method and device for updating system Active CN106990984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710170850.XA CN106990984B (en) 2017-03-21 2017-03-21 Method and device for updating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710170850.XA CN106990984B (en) 2017-03-21 2017-03-21 Method and device for updating system

Publications (2)

Publication Number Publication Date
CN106990984A CN106990984A (en) 2017-07-28
CN106990984B true CN106990984B (en) 2020-04-14

Family

ID=59412161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710170850.XA Active CN106990984B (en) 2017-03-21 2017-03-21 Method and device for updating system

Country Status (1)

Country Link
CN (1) CN106990984B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664257A (en) * 2017-03-30 2018-10-16 北京小米移动软件有限公司 The method and device of more new system
DE112018004053T5 (en) * 2017-08-10 2020-04-23 Sumitomo Electric Industries, Ltd. Control device, control method and computer program
CN107861730B (en) * 2017-10-27 2020-10-30 维沃移动通信有限公司 Application processing method and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185972A (en) * 2011-04-25 2011-09-14 惠州Tcl移动通信有限公司 Novel mobile terminal software upgrading system and method as well as mobile terminal
CN102595384A (en) * 2012-02-07 2012-07-18 惠州Tcl移动通信有限公司 Method and device for software updating, mobile terminal and system thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN105955774A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Software upgrading control method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8249660B2 (en) * 2008-06-11 2012-08-21 At&T Intellectual Property I, Lp System and method for display timeout on mobile communication devices
US9417679B2 (en) * 2012-11-12 2016-08-16 Advanced Micro Devices, Inc. Adaptive connected standby for a computing device
CN103199311B (en) * 2013-02-05 2015-08-12 北京奇虎科技有限公司 The battery power saving method of portable type electronic product, equipment and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185972A (en) * 2011-04-25 2011-09-14 惠州Tcl移动通信有限公司 Novel mobile terminal software upgrading system and method as well as mobile terminal
CN102595384A (en) * 2012-02-07 2012-07-18 惠州Tcl移动通信有限公司 Method and device for software updating, mobile terminal and system thereof
CN102799447A (en) * 2012-06-19 2012-11-28 优视科技有限公司 Method and system for updating internal software of mobile terminal
CN105955774A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Software upgrading control method and device

Also Published As

Publication number Publication date
CN106990984A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
EP3026875B1 (en) Method and apparatus for adjusting operational status of smart home device
CN106774774B (en) Method and device for displaying electric quantity of terminal battery
CN108040360B (en) Method and device for controlling screen display
CN105511907B (en) Application program upgrading method, device and system
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
CN107357613B (en) Application updating method and device and computer readable storage medium
CN106357721B (en) Timing method and device
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN106990984B (en) Method and device for updating system
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107436782B (en) Application silent installation method and device
CN107368175B (en) Processing method and device for reducing terminal power consumption and terminal
CN105227426B (en) Application interface switching method and device and terminal equipment
CN107168731B (en) System update control method and device
CN107483605B (en) File downloading method and device and storage medium
CN107241439B (en) Message pushing method and device for H5 page
CN107295462B (en) Wireless connection control method and device
CN111290843A (en) Process management method and device
CN107103231B (en) Method and device for installing and managing application
CN106060104B (en) Application management method and device
CN106201634B (en) Software installation method and device
CN112087544B (en) Prompting method and device
CN108539823B (en) Charging method and device
CN109246322B (en) Information processing method and system
CN113259995A (en) Information processing method, device and storage medium

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