WO2022111665A1 - 应用的管理方法、装置、设备及存储介质 - Google Patents

应用的管理方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022111665A1
WO2022111665A1 PCT/CN2021/133757 CN2021133757W WO2022111665A1 WO 2022111665 A1 WO2022111665 A1 WO 2022111665A1 CN 2021133757 W CN2021133757 W CN 2021133757W WO 2022111665 A1 WO2022111665 A1 WO 2022111665A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
upgrade
electronic device
version
crash
Prior art date
Application number
PCT/CN2021/133757
Other languages
English (en)
French (fr)
Inventor
孙闻
黄伟
Original Assignee
花瓣云科技有限公司
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 花瓣云科技有限公司 filed Critical 花瓣云科技有限公司
Publication of WO2022111665A1 publication Critical patent/WO2022111665A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to an application management method, apparatus, device, and storage medium.
  • the present application provides an application management method, device, device and storage medium, which solves the problem of how to manage application crash problems in the prior art.
  • a first aspect provides an application management method, the method comprising:
  • the first application is upgraded based on the upgrade data package.
  • the first application may be any application in the electronic device, or may also be a specific application in the electronic device.
  • the electronic device will still upgrade the first application after a crash event occurs in the first application, which can avoid Due to the problem that the upgrade cannot be realized after the automatic upgrade function of the first application is turned off.
  • the upgraded version of the first application is obtained when it is determined that there is an upgraded version of the first application Data package, including:
  • the number of crashes is counted, and the number of crashes refers to the number of all crash events that have occurred in the current version of the first application;
  • an occasional crash event may not have a great impact on the user's use. Therefore, when the number of crashes of the current version of the first application is less than the threshold, it is not necessary to query whether there is an upgraded version of the first application, but It is to query whether there is an upgraded version of the first application after determining that the current version of the first application has multiple crash events. In this way, the electronic device does not perform a query operation every time a crash event occurs in the first application, that is, it does not try to upgrade the first application every time, which can not only save the running power consumption of the electronic device, but also avoid frequent upgrades. A problem that brings a poor user experience to the user.
  • acquiring the upgrade data package of the first application includes:
  • the upgrade data package of the first application is acquired.
  • the method further includes:
  • the latest application version information of the first application is obtained from the server through the second application, and whether there is an upgraded version of the first application is determined according to the application version information fed back by the server. Since the second application is a management application used to upgrade and manage the first application, it can be ensured that the electronic device can accurately obtain the latest application version information of the first application, thereby ensuring the accuracy of the judgment.
  • the method further includes:
  • crash statistics of the first application where the crash statistics include application attribute information of the first application, device attribute information of the electronic device where the first application is located, and crash event information of the first application at least one of.
  • the electronic device records and reports the crash statistics of the first application, which can provide an analysis basis for subsequent improvement of the crash problem of the first application.
  • an application management device comprising:
  • a monitoring module for monitoring the installed and running first application
  • an obtaining module configured to obtain an upgrade data package of the first application if it is determined that an upgraded version of the first application exists if a crash event of the first application is monitored;
  • An upgrade module configured to upgrade the first application based on the upgrade data package.
  • the acquisition module is used for:
  • crash times refer to the times of all crash events that have occurred in the first application of the current version
  • the acquisition module is used for:
  • the upgrade data package of the first application is acquired.
  • the acquisition module is also used for:
  • the device further includes:
  • a recording module configured to record crash statistics of the first application, where the crash statistics include application attribute information of the first application, device attribute information of the electronic device where the first application is located, and the first At least one item in the crash event information of the application.
  • an electronic device in a third aspect, includes a processor and a memory, the memory is used to store a program that supports the electronic device to execute the application management method described in any of the above-mentioned first aspects, and storing data involved in the management method for implementing any one of the applications described in the first aspect; the processor is configured to execute the program stored in the memory; the electronic device may further include a communication bus, The communication bus is used to establish a connection between the processor and the memory.
  • a computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to execute any one of the above-mentioned first aspects.
  • a computer program product containing instructions, which, when executed on a computer, cause the computer to execute the application management method described in the first aspect above.
  • the application management method and device provided by the present application monitor the installed and running first application, and if a crash event is detected in the first application, it is possible to query whether there is an upgraded version of the first application.
  • an upgrade data package of the first application is acquired, and the first application is upgraded based on the upgrade data package. That is, after a crash event occurs in the first application, an attempt can be made to improve by upgrading the first application, so as to manage the crash problem of the first application.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a software structural framework diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an interface display of a mobile phone according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an interface display of another mobile phone according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of an application management method provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another application management method provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of another application management method provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an application management apparatus provided by an embodiment of the present application.
  • the methods provided in the embodiments of the present application may be executed by an electronic device, and the electronic device may install various types of applications.
  • the electronic device may be a device such as a wearable device, a vehicle equipment device, and a terminal device.
  • terminal devices may include but are not limited to mobile phones, tablet computers, augmented reality (AR)/virtual reality (VR) devices, ultra-mobile personal computers (UMPC), notebooks Computers, netbooks, personal digital assistants (PDAs).
  • FIG. 1 is a schematic structural diagram of an electronic device provided by 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 (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different 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, for example, 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), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices, or can be integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface 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 transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • 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, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function 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 screen 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 alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • 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 playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into 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, which can implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to recognize the posture of the electronic device 100, and can be used in applications such as horizontal and vertical screen switching, pedometers, and the like.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • 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, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to realize functions such as call and data communication.
  • electronic device 100 employs an eSIM, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.
  • the electronic device is a mobile phone as an example for description, specifically:
  • the mobile phone may display a message, which can be used to remind the user that the APP1 has been upgraded due to the crash event of APP1.
  • APP1 performed the upgrade operation.
  • the message can be “A crash event has been detected in APP1, and the upgrade of APP1 has been completed”, that is, the mobile phone automatically upgrades APP1 after a crash event occurs in APP1, so as to try to pass the upgrade. way to solve the crash problem.
  • the message can also be "The current version of APP1 has detected multiple crash events, and the upgrade of APP1 has been completed", that is, the mobile phone automatically upgrades APP1 after detecting that the current version of APP1 has multiple crash events. .
  • the mobile phone can directly display the message in the central area of the display screen; alternatively, the mobile phone can also display part of the message in the form of a notification message at the top of the display screen.
  • click This message is displayed in the central area of the display screen after the mobile phone detects the user's click operation, so that the direct pop-up of the message may prevent the user from using the mobile phone.
  • the mobile phone can also pop up a first window in the display interface, the first window includes an upgrade prompt message, and the upgrade prompt message can be used to ask the user whether to upgrade APP1.
  • the upgrade prompt message can be "A crash event occurred in APP1, there is a new version of APP1, do you want to upgrade APP1?", that is, the mobile phone prompts the user to try to upgrade APP1. Solve the crash problem of APP1.
  • two options of "Confirm Upgrade” and "Cancel Upgrade” can also be displayed in the first window.
  • the upgrade prompt message in the first window can also be "The current version of APP1 has crashed many times, there is a new version of APP1, do you want to upgrade APP1?", that is, the mobile phone is detecting the current version of APP1 for many times. After a crash event occurs, the user is prompted to try to solve the crash problem of APP1 by upgrading APP1.
  • a second window may also pop up, and the second window includes a message for prompting the user that the upgrade of APP1 has been completed.
  • the message in the second window may be “The upgrade of APP1 has been completed”.
  • the second window can also be provided with two options of "run” and "close”. When the user wants to continue using APP1, he can click the "run” option, and the mobile phone detects the trigger operation of the "run” option. Then start the upgraded APP1; when the user does not need to use APP1 temporarily, you can also click the "Close” option, and the mobile phone will close the second window after detecting the triggering operation of "Close”.
  • FIG. 5 is a schematic flowchart of an application management method provided by an embodiment of the present application.
  • the method may be applied to the above electronic device, and the method may include some or all of the following: content:
  • Step 501 Monitor the installed and running first application.
  • the first application may be any application in the electronic device.
  • the first application may also be a specific application in the electronic device.
  • the first application may be an application in the application list, and the application list is used to record the application that needs to be monitored whether a crash event occurs.
  • the application list may be preset and stored locally on the electronic device, for example, in the application list. Can include applications that users frequently use.
  • the electronic device may monitor the first application through a listening thread after detecting that the first application is running, that is, monitor the first application Whether a crash event occurred.
  • Step 502 If it is monitored that a crash event occurs in the first application, query whether there is an upgraded version of the first application.
  • the specific implementation of querying whether there is an upgraded version of the first application may include: sending a query request to the server through the second application, the second application is an application capable of performing upgrade management on the first application, and the query request is used to request The server feeds back the latest application version information of the first application. Receive a query response sent by the server, where the query response carries the application version information of the first application, and determines whether there is an upgrade of the first application according to the application version information carried in the query response and the application version information of the first application in the running state Version.
  • the second application may be an application market; in another embodiment, the second application may also be an application store; management applications.
  • the server can provide services for the second application.
  • the server is used to provide services for the application market. That is, the server and the second application can perform information interaction.
  • the server includes the latest versions of various applications managed by the second application.
  • the electronic device may send a query request to the server through the second application.
  • the query request may carry an application identifier of the first application, and the application identifier may be used to uniquely identify the first application.
  • the server may parse the query request to obtain a first parsing result. According to the first analysis result, the server can determine that the latest application version information of the first application needs to be fed back. Therefore, the server obtains the latest application version information of the first application, and responds to the query to obtain the latest application version information of the first application.
  • the application version information is fed back to the electronic device. In this way, the electronic device can determine whether there is an upgraded version of the first application according to the application version information fed back by the server and the application version information of the first application in the running state.
  • the application version information includes an application version number, and a larger application version number indicates a higher corresponding version.
  • the electronic device may compare the application version number in the query response with the application version number of the first application in the running state. If the application version number in the query response is greater than the application version number of the first application in the running state, it means that the version corresponding to the application version number in the query response is higher than the version of the first application in the running state, so it can be determined that there is a first application version number in the running state. An updated version of the application.
  • the application version number in the query response is equal to the application version number of the first application in the running state, it means that the version corresponding to the application version number in the query response is the same as the version of the first application in the running state. That is, the version of the first application in the running state is currently the highest version, so it can be determined that there is no upgraded version of the first application.
  • the application version information of the first application in the running state is version1, and the application version information carried in the query response is version2, it can be determined that there is an upgraded version of the first application, that is, version1 is the old version and version2 is the new version.
  • the application version information of the first application in the running state is version1, and the application version information carried in the query response is also version1, it can be determined that there is no upgraded version of the first application.
  • the electronic device obtains the latest application version information of the first application from the server through the second application, and determines whether there is an upgraded version of the first application according to the application version information fed back by the server. Since the second application is a management application used to upgrade and manage the first application, it can be ensured that the electronic device can accurately obtain the latest application version information of the first application, thereby ensuring the accuracy of the judgment.
  • the electronic device may send the application identifier of the first application and the current application version information to the server, so that the server can query the latest application version information of the first application based on the application identifier. Afterwards, the server compares the queried application version information with the application version information reported by the electronic device to determine whether there is an upgraded version of the first application, and directly feeds back the query result to the electronic device.
  • the query result includes indication information, where the indication information is used to indicate whether there is an upgraded version of the first application, that is, the electronic device can determine whether there is an upgraded version of the first application according to the indication information.
  • the indication information is "1"
  • the electronic device determines that there is an upgraded version of the first application
  • the indication information is "0”
  • the electronic device determines that there is no upgraded version of the first application. In this way, the judging operation is performed by the server, the electronic device can directly obtain the query result, and the computation of the electronic device can be reduced.
  • the electronic device may perform other processing operations, for example, may record a crash event log, which is not limited in this embodiment of the present application.
  • step 501 is continued, that is, the electronic device continues to monitor the first application.
  • Step 503 Acquire an upgrade data package of the first application.
  • the electronic device can obtain the upgrade data package of the first application, so as to subsequently try to improve the crash problem of the first application by upgrading the first application.
  • the specific implementation of acquiring the upgrade data package of the first application may include: sending a download request to the server through the second application, for example, the download request carries the application identifier of the first application, and the download request is used to indicate the The server feeds back the upgrade data package of the first application.
  • the server parses the download request to obtain a second parsing result.
  • the server determines according to the second analysis result that the upgrade data package of the first application needs to be fed back, so the server obtains the upgrade data package of the first application, and sends the obtained upgrade data package to the electronic device.
  • step 502 and step 503 may further include: if a crash event is detected in the first application, the number of crashes is counted, and the number of crashes refers to all crashes that have occurred in the current version of the first application. number of events. If the number of crashes is greater than or equal to the number threshold, in the case that it is determined that there is an upgraded version of the first application, an upgrade data package of the first application is acquired.
  • the number of times threshold may be set by the user according to actual needs, or may also be set by default by the electronic device, which is not limited in this embodiment of the present application. Exemplarily, the number of times threshold is 3.
  • the electronic device can count the total number of crash events that have occurred in the current version of the first application so far.
  • the first application of the current version has many crash events, and it can be inferred that there may be problems with the current version.
  • the electronic device inquires whether there is an upgraded version of the first application, and obtains an upgrade data package of the first application if it is determined that there is an upgraded version of the first application.
  • an occasional crash event may not have a great impact on the user's use, so when the number of crashes is less than the threshold, it is not necessary to query whether there is an upgraded version of the first application, but It is to query whether there is an upgraded version of the first application after determining that the current version of the first application has multiple crash events.
  • the electronic device does not perform a query operation every time a crash event occurs in the first application, that is, it does not try to upgrade the first application every time, which can not only save the running power consumption of the electronic device, but also avoid frequent upgrades. A problem that brings a poor user experience to the user.
  • the electronic device when the electronic device counts the number of crashes, it can also count the number of times that the current version of the first application has a crash event within a preset time period, that is, the number of crashes may refer to the current version of the first application at the current time. The number of all crash events that have occurred within the previous preset duration.
  • the preset duration may be set by the user according to actual needs, or may also be set by default by the electronic device, which is not limited in this embodiment of the present application.
  • the electronic device may only count the number of times that the current version of the first application has a crash event within a certain period of time, so as to try to upgrade the first application that has multiple crash events in a short period of time.
  • Step 504 Upgrade the first application based on the upgrade data package.
  • the electronic device may perform sub-package processing on the upgrade data package to obtain sub-package data, and then upgrade the first application based on the sub-package data.
  • the electronic device may also perform other operations. For details, refer to the following steps.
  • Step 505 Record crash statistics of the first application.
  • the crash statistical data includes at least one item of application attribute information of the first application, device attribute information of the electronic device where the first application is located, and crash event information.
  • the application attribute information may include, but is not limited to, an application identifier and application version information of the first application in which the crash event occurs.
  • the device attribute information may include, but is not limited to, a device identifier and an operating system type.
  • the crash event information may include, but is not limited to, the occurrence time of the crash event and the number of crashes.
  • Step 506 Report crash statistics.
  • the electronic device sends the crash statistics to the cloud, so that the cloud can subsequently perform data analysis based on the collected crash statistics (for example, through an AI model), and take corresponding processing measures according to the analysis results.
  • the electronic device records and reports the crash statistics of the first application, which can provide an analysis basis for subsequent improvement of the crash problem of the first application.
  • the electronic device can also update the historical crash statistical data based on the current recorded crash statistical data, wherein, The historical crash statistics refer to crash statistics corresponding to all versions of the first application recorded before the current time. After that, the electronic device can report the updated crash statistics. In this way, all the crash statistics data of the first application can be reported to the cloud at one time, so as to avoid the problem of affecting the analysis result caused by the loss of the crash statistics collected in the history by the cloud.
  • the installed and running first application is monitored, and if it is monitored that a crash event occurs in the first application, it is possible to query whether there is an upgraded version of the first application.
  • an upgrade data package of the first application is acquired, and the first application is upgraded based on the upgrade data package. That is, after a crash event occurs in the first application, an attempt can be made to improve by upgrading the first application, so as to manage the crash problem of the first application.
  • the electronic device regardless of whether the automatic upgrade function of the first application is enabled, or even if the automatic upgrade function of the first application is disabled, the electronic device will still generate a crash event in the first application or in the first application. After the application has crashed several times, upgrading the first application can avoid that the first application cannot be upgraded because the automatic upgrade function of the first application is turned off under the circumstance that the upgraded version can solve the crash problem, thereby making the user still unable to upgrade. When using the old version, frequent flashbacks have a greater impact on the user experience.
  • the electronic device may also prompt the user and perform a subsequent upgrade operation under the condition of the user's authorization.
  • the first application is installed and run in the electronic device, and the version number of the first application is Version1. Assuming that a crash event occurs during the running process of the first application, on the one hand, the electronic device can It is detected whether there is an upgraded version of the first application through the second application (eg, the application market), that is, whether Version2 exists.
  • the application management method can be applied to the above electronic device, and the method can include some or all of the following contents:
  • the electronic device monitors the installed and running first application, and the specific implementation can refer to step 501 in the above-mentioned embodiment shown in FIG. 5 , and details are not repeated here.
  • step 701 if the first application does not have a crash event, the electronic device performs step 701 in a loop. Otherwise, if the electronic device monitors that a crash event occurs in the first application, the following operation of step 702 may be performed.
  • the electronic device performs the following operation of step 703 .
  • the electronic device can return to step 701 .
  • step 702 may be an optional operation, that is, in another embodiment, after monitoring the crash event of the first application, the electronic device may not count the number of crashes, but The following step 703 is directly executed.
  • the electronic device may query whether there is an upgraded version of the first application through the second application.
  • the electronic device may query whether there is an upgraded version of the first application through the second application.
  • step 502 in the embodiment shown in FIG. 5 , which will not be repeated here.
  • step 704 if there is an upgraded version of the first application, the following step 704 is performed. Otherwise, if there is no upgraded version of the first application, the following step 709 is performed.
  • the upgrade prompt message is used to prompt the user whether to upgrade the first application.
  • the upgrade prompt message may be "crash events occur many times in the current version of APP1, there is a new version of APP1, do you want to upgrade APP1".
  • the electronic device directly inquires whether there is an upgraded version of the first application after monitoring the occurrence of a crash event in the first application, that is, the number of crashes is not counted, then when it is determined that there is an upgraded version of the first application, display
  • the upgrade prompt message can be "A crash event occurred in APP1, there is a new version of APP1, do you want to upgrade APP1".
  • the electronic device may display an upgrade prompt message through the first window.
  • the first window can also display two options of “confirm upgrade” and “cancel upgrade”.
  • the user wants to upgrade the first application, he can click the "Confirm Upgrade” option, and the electronic device determines that the confirmation operation is detected in response to the trigger operation of the "Confirm Upgrade” option. At this time, the electronic device obtains the upgrade data of the first application. Bag.
  • step 709 may also be performed.
  • step 503 for a specific acquisition method for the electronic device to acquire the upgrade data package, reference may be made to step 503 in the embodiment shown in FIG. 5 , and details are not repeated here.
  • step 706 to step 708 reference may be made to step 504 to step 506 in the embodiment shown in FIG. 5, and details are not repeated here.
  • step 707 can be executed before step 702, or can be executed after step 702, or, step 707 and step 702 can also be executed in parallel. This is not limited in the application examples.
  • processing operations may be operations such as recording a crash event log, or executing other crash processing measures, which are not limited in this embodiment of the present application.
  • the installed and running first application is monitored, and if it is monitored that a crash event occurs in the first application, it is possible to query whether there is an upgraded version of the first application.
  • an upgrade prompt message may be displayed to the user, so as to prompt the user to try to solve the crash problem by upgrading the first application.
  • a confirmation operation is detected based on the upgrade prompt message, it means that the user agrees to upgrade the first application.
  • an upgrade data package of the first application is acquired, and the first application is upgraded based on the upgrade data package. That is, after a crash event occurs in the first application, an attempt can be made to improve by upgrading the first application, so as to manage the crash problem of the first application.
  • the user is prompted and inquired through the upgrade prompt message before the first application is upgraded, so as to avoid the poor user experience caused by directly performing the upgrade operation without the user's perception.
  • the electronic device regardless of whether the automatic upgrade function of the first application is enabled, or even if the automatic upgrade function of the first application is disabled, the electronic device will still generate a crash event in the first application or in the first application. After the application has crashed several times, upgrading the first application can avoid that the first application cannot be upgraded because the automatic upgrade function of the first application is turned off under the circumstance that the upgraded version can solve the crash problem, thereby making the user still unable to upgrade. When using the old version, frequent flashbacks have a greater impact on the user experience.
  • FIG. 8 is a structural block diagram of an application management apparatus provided by the embodiment of the present application. For convenience of description, only the part related to the embodiment of the present application is shown.
  • the device includes:
  • a monitoring module 810 configured to monitor the installed and running first application
  • the obtaining module 820 is configured to obtain an upgrade data package of the first application if it is determined that an upgraded version of the first application exists if a crash event of the first application is monitored;
  • the upgrade module 830 is configured to upgrade the first application based on the upgrade data package.
  • the obtaining module 820 is used for:
  • the number of crashes is counted, and the number of crashes refers to the number of all crash events that have occurred in the current version of the first application;
  • the upgrade data package of the first application is acquired.
  • the obtaining module 820 is used for:
  • an upgrade prompt message is displayed, and the upgrade prompt message is used to prompt the user whether to upgrade the first application;
  • the upgrade data package of the first application is acquired.
  • the obtaining module 820 is further configured to:
  • the device further includes:
  • the recording module 840 is configured to record crash statistics of the first application, where the crash statistics include at least one of application attribute information of the first application, device attribute information of the electronic device where the first application is located, and crash event information of the first application. item.
  • the installed and running first application is monitored, and if it is monitored that a crash event occurs in the first application, it is possible to query whether there is an upgraded version of the first application.
  • an upgrade data package of the first application is acquired, and the first application is upgraded based on the upgrade data package. That is, after a crash event occurs in the first application, an attempt can be made to improve by upgrading the first application, so as to manage the crash problem of the first application.
  • the disclosed apparatus and method may be implemented in other manners.
  • the system embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware.
  • the computer program can be stored in a computer-readable storage medium, and the computer program When executed by the processor, the steps of the above-mentioned various method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable medium may include at least: any entity or device capable of carrying computer program codes to electronic equipment, recording media, computer memory, read-only memory (ROM, read-only memory), random access memory (RAM) , random access memory), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
  • computer readable media may not be electrical carrier signals and telecommunications signals.

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)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供了一种应用的管理方法、装置、设备及存储介质,涉及终端技术领域。该方法包括:对已安装且处于运行状态的第一应用进行监控,若监控到第一应用发生崩溃crash事件,则在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包,基于升级数据包对第一应用进行升级。也即在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。另外,即使第一应用的自动升级功能被关闭,电子设备仍会在第一应用发生crash事件后对第一应用进行升级,可以避免在升级版本能够解决crash问题的情况下而由于第一应用的自动升级功能关闭,导致第一应用无法实现升级的问题。

Description

应用的管理方法、装置、设备及存储介质
本申请要求于2020年11月30日提交国家知识产权局、申请号为202011384234.2、申请名称为“应用的管理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种应用的管理方法、装置、设备及存储介质。
背景技术
随着终端技术的快速发展,电子设备中可以安装各种类型的应用。然而,受到电子设备的系统兼容性、应用本身的稳定性等因素的影响,应用在电子设备中运行可能会崩溃,也即可能会发生崩溃(crash)事件。
通常情况下,当应用发生crash事件时,该应用就会被电子设备强制关闭掉,也即会被电子设备kill掉,此时该应用会出现闪退现象,如此带来了较差的用户体验。所以,如何针对应用的crash问题进行管理成为研究的热点。
发明内容
本申请提供一种应用的管理方法、装置、设备及存储介质,解决了现有技术中如何针对应用的crash问题进行管理的问题。
为达到上述目的,本申请采用如下技术方案:
第一方面,提供一种应用的管理方法,所述方法包括:
对已安装且处于运行状态的第一应用进行监控;
若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包;
基于所述升级数据包对所述第一应用进行升级。
作为一种示例,第一应用可以为电子设备中的任意一个应用,或者,也可以是电子设备中的某个特定的应用。
如此,在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。
另外,无论第一应用的自动升级功能是否被开启,或者说,即使第一应用的自动升级功能被关闭,电子设备仍会在第一应用发生crash事件后,对第一应用进行升级,可以避免由于第一应用的自动升级功能关闭后无法实现升级的问题。
在本申请一种可能的实现方式中,所述若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包,包括:
若监控到所述第一应用发生crash事件,则统计crash次数,所述crash次数是指当前版本的所述第一应用已发生过的所有crash事件的次数;
若所述crash次数大于或等于次数阈值,则在确定存在所述第一应用的升级版本的情 况下,获取所述第一应用的升级数据包。
在一些实施中偶尔发生一次crash事件可能不会对用户的使用产生较大的影响,所以在当前版本的第一应用的crash次数小于次数阈值时可以不查询是否存在第一应用的升级版本,而是在确定当前版本的第一应用多次发生crash事件后再查询是否存在第一应用的升级版本。如此电子设备不是每次监控到第一应用发生crash事件就执行查询操作,也即不是每次都尝试对第一应用进行升级,不仅可以节省电子设备的运行功耗,也可以避免由于频繁升级导致给用户带来较差的用户体验的问题。
在本申请一种可能的实现方式中,所述在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包,包括:
在确定存在所述第一应用的升级版本的情况下,显示升级提示消息,所述升级提示消息用于提示用户是否对所述第一应用进行升级;
在基于所述升级提示消息检测到确认操作的情况下,获取所述第一应用的升级数据包。
值得一提的是,在对第一应用升级之前问询用户是否要对第一应用进行升级,并且在用户授权的情况下,再获取第一应用的升级数据包,以便于后续进行升级。如此可以避免在用户不感知的情况下直接执行升级操作导致给用户带来较差的用户体验。
在本申请一种可能的实现方式中,所述方法还包括:
通过第二应用向服务器发送查询请求,所述第二应用为能够对所述第一应用进行升级管理的应用,所述查询请求用于请求所述服务器反馈所述第一应用的最新的应用版本信息;
接收所述服务器发送的查询响应,所述查询响应中携带所述第一应用的应用版本信息;
根据所述查询响应中携带的应用版本信息、以及处于运行状态的所述第一应用的应用版本信息,确定是否存在所述第一应用的升级版本。
值得一提的是,通过第二应用从服务器获取第一应用的最新的应用版本信息,并根据服务器反馈的应用版本信息判断是否存在第一应用的升级版本。由于第二应用是用于对第一应用进行升级管理的管理类应用,所以可以保证电子设备准确地获取到第一应用的最新的应用版本信息,从而可以保证判断的准确性。
在本申请一种可能的实现方式中,所述监控到所述第一应用发生崩溃crash事件之后,还包括:
记录所述第一应用的crash统计数据,所述crash统计数据包括所述第一应用的应用属性信息、所述第一应用所在的电子设备的设备属性信息、所述第一应用的crash事件信息中的至少一项。
如此,电子设备记录并上报第一应用的crash统计数据,可以为后续改善第一应用的crash问题提供分析依据。
第二方面,提供了一种应用的管理装置,所述装置包括:
监控模块,用于对已安装且处于运行状态的第一应用进行监控;
获取模块,用于若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包;
升级模块,用于基于所述升级数据包对所述第一应用进行升级。
在本申请一种可能的实现方式中,所述获取模块用于:
若监控到所述第一应用发生crash事件,则统计crash次数,所述crash次数是指当前 版本的所述第一应用已发生过的所有crash事件的次数;
若所述crash次数大于或等于次数阈值,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包。
在本申请一种可能的实现方式中,所述获取模块用于:
在确定存在所述第一应用的升级版本的情况下,显示升级提示消息,所述升级提示消息用于提示用户是否对所述第一应用进行升级;
在基于所述升级提示消息检测到确认操作的情况下,获取所述第一应用的升级数据包。
在本申请一种可能的实现方式中,所述获取模块还用于:
通过第二应用向服务器发送查询请求,所述第二应用为能够对所述第一应用进行升级管理的应用,所述查询请求用于请求所述服务器反馈所述第一应用的最新的应用版本信息;
接收所述服务器发送的查询响应,所述查询响应中携带所述第一应用的应用版本信息;
根据所述查询响应中携带的应用版本信息、以及处于运行状态的所述第一应用的应用版本信息,确定是否存在所述第一应用的升级版本。
在本申请一种可能的实现方式中,所述装置还包括:
记录模块,用于记录所述第一应用的crash统计数据,所述crash统计数据包括所述第一应用的应用属性信息、所述第一应用所在的电子设备的设备属性信息、所述第一应用的crash事件信息中的至少一项。
第三方面,提供一种电子设备,所述电子设备的结构中包括处理器和存储器,所述存储器用于存储支持电子设备执行上述第一方面任一所述的应用的管理方法的程序,以及存储用于实现上述第一方面任一所述的应用的管理方法所涉及的数据;所述处理器被配置为用于执行所述存储器中存储的程序;所述电子设备还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。
第四方面,提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如上述第一方面任意一项所述的方法。
第五方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的应用的管理方法。
上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
本申请提供的技术方案至少可以带来以下有益效果:
本申请提供的应用的管理方法及装置,对已安装且处于运行状态的第一应用进行监控,若监控到第一应用发生crash事件,可以查询是否存在第一应用的升级版本。在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包,并基于升级数据包对第一应用进行升级。也即在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的一种电子设备的软件结构框架图;
图3为本申请实施例提供的一种手机的界面显示示意图;
图4为本申请实施例提供的另一种手机的界面显示示意图;
图5为本申请实施例提供的一种应用的管理方法的流程示意图;
图6为本申请实施例提供的另一种应用的管理方法的流程示意图;
图7为本申请实施例提供的另一种应用的管理方法的流程示意图;
图8为本申请实施例提供的一种应用的管理装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
本申请实施例提供的方法可以由电子设备来执行,该电子设备可以安装各种类型的应用。作为一种示例,该电子设备可以为诸如可穿戴设备、车机设备、终端设备之类的设备。示例性地,终端设备可以包括但不限于手机、平板电脑、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、笔记本电脑、上网本、个人数字助理(personal digital assistant,PDA)。
请参阅图1,图1是本申请实施例提供的一种电子设备的结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也 可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194, 无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通 信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换 成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别 声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备100的姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些 实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media  Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
基于上述图1和图2所示实施例提供的电子设备,接下来对本申请实施例涉及的应用场景进行介绍。作为示例而非限定,这里以电子设备是手机为例进行说明,具体地:
手机中安装并运行APP1。假设APP1运行过程中发生crash事件,则手机将APP1强制关闭掉,此时APP1闪退。
作为一种示例,强制关闭掉APP1后,手机可能会显示一条消息,该消息可以用于提示用户由于APP1发生crash事件,所以对APP1进行了升级操作,也就是说,手机在显示该消息之前对APP1执行了升级操作。示例性地,如图3所示,该消息可以为“检测到APP1发生crash事件,现已对APP1完成升级”,也即手机在APP1发生crash事件后自动对APP1进行升级,以尝试通过升级的方式解决crash问题。当然,该消息还可以为“检测到当前版本的APP1多次发生crash事件,现已对APP1完成升级”,也即手机是在检测到当前版本的APP1多次发生crash事件后自动对APP1进行升级。另外,手机可以直接将该消息显示在显示屏的中央区域;或者,手机还可以先在显示屏的顶端以通知消息的方式显示该消息的部分内容,此时若用户要查看该消息则可以点击该消息,手机检测到用户的点击操作后在显示屏的中央区域显示该消息,如此可以避免该消息直接弹出后可能会影响用户使用手机。
作为另一种示例,强制关闭掉APP1后,手机还可以在显示界面中弹出第一窗口,第一窗口中包括升级提示消息,升级提示消息可以用于问询用户是否对APP1进行升级。譬如如图4中的(a)图所示,升级提示消息可以为“APP1发生crash事件,存在APP1的新版本,是否要对APP1升级”,也即手机提示用户可以尝试通过升级APP1的方式来解决APP1的crash问题。另外,第一窗口中还可以展示“确认升级”和“取消升级”两个选项,当用户想要对APP1进行升级时,可以点击“确认升级”选项,手机响应于“确认升级”选项的触发操作,对APP1进行升级;当用户不想对APP1进行升级时,可以点击“取消升级”选 项,手机响应于“取消升级”选项的触发操作,可以关闭第一窗口,即手机不对APP1进行升级。
当然,第一窗口中的升级提示消息还可以是“当前版本的APP1多次发生crash事件,存在APP1的新版本,是否要对APP1升级”,也即手机是在检测到当前版本的APP1多次发生crash事件后才提示用户可以尝试通过升级APP1的方式来解决APP1的crash问题。
在一种可能的实现方式中,手机在基于第一窗口确定对APP1升级且完成升级后,还可以弹出第二窗口,第二窗口中包括用于提示用户已完成对APP1的升级的一条消息。示例性地,请参考图4中的(b)图,第二窗口中的消息可以为“已完成对APP1的升级”。作为一种示例,第二窗口还可以提供有“运行”和“关闭”两个选项,当用户想要继续使用APP1时,可以点击“运行”选项,手机检测到对“运行”选项的触发操作后启动升级后的APP1;当用户暂时不需要使用APP1时,也可以点击“关闭”选项,手机检测到对“关闭”的触发操作后关闭第二窗口。
在介绍完本申请实施例涉及的执行主体和应用场景后,接下来对本申请实施例提供的应用的管理方法进行介绍。请参阅图5,图5是本申请实施例提供的一种应用的管理方法的示意性流程图,作为示例而非限定,该方法可以应用于上述电子设备中,该方法可以包括如下部分或者全部内容:
步骤501:对已安装且处于运行状态的第一应用进行监控。
作为一种示例,第一应用可以是电子设备中的任意一个应用。
作为另一种示例,第一应用也可以是电子设备中的某个特定的应用。示例性地,第一应用可以是应用列表中的一个应用,该应用列表用于记录需要被监控是否发生crash事件的应用,该应用列表可以预先设置并存储在电子设备的本地,譬如应用列表中可以包括用户经常使用的应用。
在一种可能的实现方式中,由于第一应用运行过程中可能会发生crash事件,所以电子设备在检测到第一应用运行后可以通过监听线程对第一应用进行监控,也即监控第一应用是否发生crash事件。
步骤502:若监控到第一应用发生crash事件,则查询是否存在第一应用的升级版本。
作为一种示例,若监控到第一应用发生crash事件,说明可能是电子设备的操作系统对第一应用的兼容性较差,或者也可能是第一应用自身的稳定性较差。此时,电子设备可以查询是否存在第一应用的升级版本。
作为一种示例,查询是否存在第一应用的升级版本的具体实现可以包括:通过第二应用向服务器发送查询请求,第二应用为能够对第一应用进行升级管理的应用,查询请求用于请求服务器反馈第一应用的最新的应用版本信息。接收服务器发送的查询响应,查询响应中携带第一应用的应用版本信息,根据查询响应中携带的应用版本信息、以及处于运行状态的第一应用的应用版本信息,确定是否存在第一应用的升级版本。
在一实施例中,第二应用可以为应用市场;在另一实施例中,第二应用也可以为应用商店;在又一实施例中,第二应用还可以是一个专用于管理第一应用的管理类应用。
其中,该服务器能够为第二应用提供服务。示例性地,若第二应用为应用市场,则该服务器用于为应用市场提供服务。也即该服务器与第二应用能够进行信息交互。该服务器 中包括有第二应用所管理的各类应用最新的版本。
在实施中,电子设备可以通过第二应用向该服务器发送查询请求,示例性地,查询请求中可以携带第一应用的应用标识,该应用标识可以用于唯一地标识第一应用。该服务器接收到查询请求后可以对查询请求进行解析,得到第一解析结果。该服务器根据第一解析结果可以确定需要反馈第一应用的最新的应用版本信息,所以,该服务器获取第一应用的最新的应用版本信息,并通过查询响应将获取到的第一应用的最新的应用版本信息反馈给电子设备。如此电子设备就可以根据该服务器反馈的应用版本信息和处于运行状态的第一应用的应用版本信息,确定是否存在第一应用的升级版本。
作为一种示例,应用版本信息包括应用版本号,且应用版本号越大说明对应的版本越高。在该种情况下,电子设备可以将查询响应中的应用版本号与处于运行状态的第一应用的应用版本号进行比较。若查询响应中的应用版本号大于处于运行状态的第一应用的应用版本号,则说明查询响应中的应用版本号对应的版本高于处于运行状态的第一应用的版本,从而可以确定存在第一应用的升级版本。当然不难理解,若查询响应中的应用版本号等于处于运行状态的第一应用的应用版本号,则说明查询响应中的应用版本号对应的版本与处于运行状态的第一应用的版本相同,也即处于运行状态的第一应用的版本当前是最高版本,从而可以确定不存在第一应用的升级版本。
譬如,若处于运行状态的第一应用的应用版本信息为version1,查询响应中携带的应用版本信息为version2,则可以确定存在第一应用的升级版本,也即version1是旧版本,version2是新版本。再如,若处于运行状态的第一应用的应用版本信息为version1,查询响应中携带的应用版本信息也是version1,则可以确定不存在第一应用的升级版本。
值得一提的是,电子设备通过第二应用从服务器获取第一应用的最新的应用版本信息,并根据服务器反馈的应用版本信息判断是否存在第一应用的升级版本。由于第二应用是用于对第一应用进行升级管理的管理类应用,所以可以保证电子设备准确地获取到第一应用的最新的应用版本信息,从而可以保证判断的准确性。
需要说明的是,上述判断是否存在第一应用的升级版本的实现方式仅是示例性的,在另一实施例中,还可以通过其他方式判断是否存在第一应用的升级版本。譬如,电子设备可以将第一应用的应用标识和当前的应用版本信息发送给服务器,以便于服务器基于该应用标识查询第一应用的最新的应用版本信息。之后,服务器将查询到的应用版本信息与电子设备上报的应用版本信息进行比较,以确定是否存在第一应用的升级版本,并向电子设备直接反馈查询结果。示例性地,该查询结果包括指示信息,该指示信息用于指示是否存在第一应用的升级版本,也即电子设备可以根据该指示信息确定是否存在第一应用的升级版本。示例性地,若该指示信息为“1”,则电子设备确定存在第一应用的升级版本,若该指示信息为“0”,则电子设备确定不存在第一应用的升级版本。如此,判断操作由服务器执行,电子设备可以直接获取到查询结果,可以减少电子设备的运算。
作为一种示例,在确定存在第一应用的升级版本的情况下执行如下步骤503。否则若确定不存在第一应用的升级版本,则电子设备可以执行其他处理操作,譬如可以记录crash事件日志等,本申请实施例对此不作限定。
另外不难理解,若电子设备未监控到第一应用发生crash事件,则继续执行步骤501,也即电子设备继续对第一应用进行监控。
步骤503:获取第一应用的升级数据包。
也即在确定存在第一应用的升级版本的情况下,电子设备可以获取第一应用的升级数据包,以便于后续尝试通过升级第一应用的方式改善第一应用的crash问题。
作为一种示例,获取第一应用的升级数据包的具体实现可以包括:通过第二应用向服务器发送下载请求,示例性地,下载请求中携带第一应用的应用标识,下载请求用于指示该服务器反馈第一应用的升级数据包。该服务器接收到下载请求后对下载请求进行解析,得到第二解析结果。该服务器根据第二解析结果确定需要反馈第一应用的升级数据包,所以获取第一应用的升级数据包,并将获取到的升级数据包发送给电子设备。
作为本申请的一个示例,步骤502和步骤503的具体实现还可以包括:若监控到第一应用发生crash事件,则统计crash次数,crash次数是指当前版本的第一应用已发生过的所有crash事件的次数。若crash次数大于或等于次数阈值,则在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包。
其中,次数阈值可以由用户根据实际需求进行设置,或者,也可以由电子设备默认设置,本申请实施例对此不做限定。示例性地,次数阈值为3。
也即是,电子设备在监控到第一应用发生crash事件后,可以统计当前版本的第一应用截止目前为止共计发生了多少次crash事件,如果发生crash事件的次数大于或等于次数阈值,可以确定当前版本的第一应用发生crash事件的次数较多,可以推断当前版本可能存在问题。在该种情况下,电子设备查询是否存在第一应用的升级版本,并在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包。
值得一提的是,在一些实施中,偶尔发生一次crash事件可能不会对用户的使用产生较大的影响,所以在crash次数小于次数阈值时可以不查询是否存在第一应用的升级版本,而是在确定当前版本的第一应用多次发生crash事件后再查询是否存在第一应用的升级版本。如此电子设备不是每次监控到第一应用发生crash事件就执行查询操作,也即不是每次都尝试对第一应用进行升级,不仅可以节省电子设备的运行功耗,也可以避免由于频繁升级导致给用户带来较差的用户体验的问题。
作为另一种示例,电子设备在统计crash次数时,也可以统计预设时长内当前版本的第一应用发生过crash事件的次数,也即crash次数可以是指当前版本的第一应用在当前时间之前的预设时长内已发生过的所有crash事件的次数。
其中,预设时长可以由用户根据实际需求进行设置,或者,也可以由电子设备默认设置,本申请实施例对此不作限定。
具体地,由于时隔较长时间第一应用才发生一次crash事件可能对用户使用不会产生较大的影响,譬如时隔几个月才出现crash事件。所以,电子设备可以仅统计当前版本的第一应用在一定时长内发生过crash事件的次数,以对短时间内多次发生crash事件的第一应用尝试升级。
步骤504:基于升级数据包对第一应用进行升级。
作为一种示例,电子设备可以对升级数据包进行分包处理,得到分包数据,之后基于分包数据对第一应用进行升级。
至此已完成本申请实施例提供的应用的管理。在另一实施例中,电子设备监控到第一应用发生crash事件之后,还可以执行其他操作,具体可以参见如下步骤。
步骤505:记录第一应用的crash统计数据。
作为一种示例,crash统计数据包括第一应用的应用属性信息、第一应用所在的电子设备的设备属性信息、crash事件信息中的至少一项。
作为一种示例,应用属性信息可以包括但不限于应用标识、发生crash事件的第一应用的应用版本信息。
作为一种示例,设备属性信息可以包括但不限于设备标识、操作系统的类型。
作为一种示例,crash事件信息可以包括但不限于crash事件的发生时间、crash次数。
步骤506:上报crash统计数据。
作为一种示例,电子设备将crash统计数据发送至云端,以便于后续云端可以基于收集的crash统计数据进行数据分析(如通过AI模型进行分析),并根据分析结果采取对应的处理措施。
如此,电子设备记录并上报第一应用的crash统计数据,可以为后续改善第一应用的crash问题提供分析依据。
在一种可能的实现方式中,若本地存储有第一应用的历史crash统计数据,则电子设备在记录crash统计数据之后,还可以基于本次记录的crash统计数据更新历史crash统计数据,其中,历史crash统计数据是指在当前时间之前记录的第一应用的所有版本对应的crash统计数据。之后,电子设备可以上报更新后的crash统计数据。如此可以将第一应用的所有crash统计数据一次性上报给云端,避免云端由于丢失掉历史收集的crash统计数据导致影响分析结果的问题。
在本申请实施例中,对已安装且处于运行状态的第一应用进行监控,若监控到第一应用发生crash事件,可以查询是否存在第一应用的升级版本。在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包,并基于升级数据包对第一应用进行升级。也即在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。
另外,在本申请实施例中,无论第一应用的自动升级功能是否被开启,或者说,即使第一应用的自动升级功能被关闭,电子设备仍会在第一应用发生crash事件或者在第一应用多次发生crash事件后,对第一应用进行升级,可以避免在升级版本能够解决crash问题的情况下而由于第一应用的自动升级功能关闭,导致第一应用无法实现升级,进而使得用户仍在使用旧版本,频繁的闪退情况对用户体验带来较大影响的问题。
应理解,上述实施例中各步骤的序号并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
上述是以电子设备在监控到第一应用发生crash事件且存在第一应用的升级版本的情况下,直接自动对第一应用进行升级为例进行说明。在另一实施例中,电子设备在监控到第一应用发生crash事件且存在第一应用的升级版本的情况下,还可以提示用户并在用户授权的情况下再执行后续的升级操作。示例性地请参见图6,在实施中,电子设备中安装并运行第一应用,第一应用的版本号为Version1,假设第一应用在运行过程中发生crash事件,则一方面,电子设备可以通过第二应用(如应用市场)检测是否存在第一应用的升级版本,即检测是否存在Version2。如果存在,可以提示并问询用户是否要升级第一应用。 在检测到用户同意升级的情况下升级第一应用至Version2版本。另一方面,电子设备还可以上报第一应用的crash统计数据至云端。接下来结合图7所示的流程图对具体实现进行介绍。作为示例而非限定,该应用的管理方法可以应用于上述电子设备中,该方法可以包括如下部分或者全部内容:
701:监控已安装且处于运行状态的第一应用是否发生crash事件。
也即电子设备对已安装且处于运行状态的第一应用进行监控,其具体实现可以参见上述图5所示实施例中的步骤501,这里不再重复赘述。
作为一种示例,若第一应用没有发生crash事件,则电子设备循环执行步骤701。否则,若电子设备监控到第一应用发生crash事件,则可以执行如下步骤702的操作。
702:统计crash次数,判断crash次数是否大于或等于次数阈值。
作为一种示例,若crash次数大于或等于次数阈值,说明当前版本的第一应用多次发生crash事件,在该种情况下,电子设备执行如下步骤703的操作。当然,若crash次数小于次数阈值,则说明当前版本的第一应用仅是偶尔发生crash事件,可能不会对用户的使用带来较大影响,所以在该种情况下电子设备可以返回执行步骤701。
需要说明的是,在一些实施例中,步骤702可以是可选操作,也即在另一实施例中,电子设备在监控到第一应用发生crash事件后,也可以不统计crash次数,而是直接执行如下步骤703。
703:查询是否存在第一应用的升级版本。
作为一种示例,电子设备可以通过第二应用查询是否存在第一应用的升级版本,具体实现可以参见图5所示实施例中的步骤502,这里不再重复赘述。
作为一种示例,若存在第一应用的升级版本,则执行如下步骤704。否则,若不存在第一应用的升级版本,则执行如下步骤709。
704:显示升级提示消息。
升级提示消息用于提示用户是否对第一应用进行升级。作为一种示例,升级提示消息可以为“当前版本的APP1多次发生crash事件,存在APP1的新版本,是否要对APP1升级”。
可选地,若电子设备在监控到第一应用发生crash事件后直接查询是否存在第一应用的升级版本,也即没有统计crash次数,则在确定存在第一应用的升级版本的情况下,显示的升级提示消息可以为“APP1发生crash事件,存在APP1的新版本,是否要对APP1升级”。
705:在基于升级提示消息检测到确认操作的情况下,获取第一应用的升级数据包。
在本申请一种可能的实现方式中,电子设备可以通过第一窗口显示升级提示消息。示例性地,请参考图4中的(a)图所示,第一窗口中除了显示升级提示消息外还可以展示“确认升级”和“取消升级”两个选项。当用户想要对第一应用进行升级时,可以点击“确认升级”选项,电子设备响应于“确认升级”选项的触发操作,确定检测到确认操作,此时电子设备获取第一应用的升级数据包。当用户不想对第一应用进行升级时,可以点击“取消升级”选项,电子设备响应于“取消升级”选项的触发操作,可以关闭第一窗口,也即电子设备不获取第一应用的升级数据包。在一实施例中,当电子设备检测到对“取消升级”的触发操作后,除了关闭第一窗口,还可以执行如下步骤709。
需要说明的是,电子设备获取升级数据包的具体获取方式可以参见图5所示实施例中的步骤503,这里不再重复赘述。
706:基于升级数据包对第一应用进行升级。
707:记录第一应用的crash统计数据。
708:上报crash统计数据。
步骤706至步骤708的具体实现可以参见上述图5所示的实施例中的步骤504至步骤506,这里不再重复赘述。
需要说明的是,步骤707与步骤702之间没有先后执行顺序,也即步骤707可以在步骤702之前执行,也可以在步骤702之后执行,再或者,步骤707与步骤702还可以并行执行,本申请实施例对此不作限定。
709:执行其他处理操作。
作为一种示例,其他处理操作可以为记录crash事件日志等操作,或者执行其他crash处理措施,本申请实施例对此不作限定。
在本申请实施例中,对已安装且处于运行状态的第一应用进行监控,若监控到第一应用发生crash事件,可以查询是否存在第一应用的升级版本。在确定存在第一应用的升级版本的情况下,可以向用户显示升级提示消息,以便于提示用户可以尝试通过升级第一应用的方式来解决crash问题。当基于升级提示消息检测到确认操作时,说明用户同意升级第一应用,在该种情况下获取第一应用的升级数据包,并基于升级数据包对第一应用进行升级。也即在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。
另外,在对第一应用升级之前先通过升级提示消息向用户进行提示和问询,如此可以避免在用户不感知的情况下直接执行升级操作导致给用户带来较差的用户体验。
另外,在本申请实施例中,无论第一应用的自动升级功能是否被开启,或者说,即使第一应用的自动升级功能被关闭,电子设备仍会在第一应用发生crash事件或者在第一应用多次发生crash事件后,对第一应用进行升级,可以避免在升级版本能够解决crash问题的情况下而由于第一应用的自动升级功能关闭,导致第一应用无法实现升级,进而使得用户仍在使用旧版本,频繁的闪退情况对用户体验带来较大影响的问题。
对应于上文实施例所述的应用的管理方法,图8是本申请实施例提供的一种应用的管理装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图8,该装置包括:
监控模块810,用于对已安装且处于运行状态的第一应用进行监控;
获取模块820,用于若监控到第一应用发生崩溃crash事件,则在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包;
升级模块830,用于基于升级数据包对第一应用进行升级。
在本申请一种可能的实现方式中,获取模块820用于:
若监控到第一应用发生crash事件,则统计crash次数,crash次数是指当前版本的第一应用已发生过的所有crash事件的次数;
若crash次数大于或等于次数阈值,则在确定存在第一应用的升级版本的情况下,获 取第一应用的升级数据包。
在本申请一种可能的实现方式中,获取模块820用于:
在确定存在第一应用的升级版本的情况下,显示升级提示消息,升级提示消息用于提示用户是否对第一应用进行升级;
在基于升级提示消息检测到确认操作的情况下,获取第一应用的升级数据包。
在本申请一种可能的实现方式中,获取模块820还用于:
通过第二应用向服务器发送查询请求,第二应用为能够对第一应用进行升级管理的应用,查询请求用于请求服务器反馈第一应用的最新的应用版本信息;
接收服务器发送的查询响应,查询响应中携带第一应用的应用版本信息;
根据查询响应中携带的应用版本信息、以及处于运行状态的第一应用的应用版本信息,确定是否存在第一应用的升级版本。
在本申请一种可能的实现方式中,装置还包括:
记录模块840,用于记录第一应用的crash统计数据,crash统计数据包括第一应用的应用属性信息、第一应用所在的电子设备的设备属性信息、第一应用的crash事件信息中的至少一项。
在本申请实施例中,对已安装且处于运行状态的第一应用进行监控,若监控到第一应用发生crash事件,可以查询是否存在第一应用的升级版本。在确定存在第一应用的升级版本的情况下,获取第一应用的升级数据包,并基于升级数据包对第一应用进行升级。也即在第一应用发生crash事件后可以尝试通过升级第一应用的方式进行改善,从而对第一应用的crash问题进行管理。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分, 仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到电子设备设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种应用的管理方法,其特征在于,所述方法包括:
    对已安装且处于运行状态的第一应用进行监控;
    若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包;
    基于所述升级数据包对所述第一应用进行升级。
  2. 如权利要求1所述的方法,其特征在于,所述若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包,包括:
    若监控到所述第一应用发生crash事件,则统计crash次数,所述crash次数是指当前版本的所述第一应用已发生过的所有crash事件的次数;
    若所述crash次数大于或等于次数阈值,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包。
  3. 如权利要求1或2所述的方法,其特征在于,所述在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包,包括:
    在确定存在所述第一应用的升级版本的情况下,显示升级提示消息,所述升级提示消息用于提示用户是否对所述第一应用进行升级;
    在基于所述升级提示消息检测到确认操作的情况下,获取所述第一应用的升级数据包。
  4. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    通过第二应用向服务器发送查询请求,所述第二应用为能够对所述第一应用进行升级管理的应用,所述查询请求用于请求所述服务器反馈所述第一应用的最新的应用版本信息;
    接收所述服务器发送的查询响应,所述查询响应中携带所述第一应用的应用版本信息;
    根据所述查询响应中携带的应用版本信息、以及处于运行状态的所述第一应用的应用版本信息,确定是否存在所述第一应用的升级版本。
  5. 如权利要求1-4中任一项所述的方法,其特征在于,所述监控到所述第一应用发生崩溃crash事件之后,还包括:
    记录所述第一应用的crash统计数据,所述crash统计数据包括所述第一应用的应用属性信息、所述第一应用所在的电子设备的设备属性信息、所述第一应用的crash事件信息中的至少一项。
  6. 一种应用的管理装置,其特征在于,所述装置包括:
    监控模块,用于对已安装且处于运行状态的第一应用进行监控;
    获取模块,用于若监控到所述第一应用发生崩溃crash事件,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包;
    升级模块,用于基于所述升级数据包对所述第一应用进行升级。
  7. 如权利要求6所述的装置,其特征在于,所述获取模块用于:
    若监控到所述第一应用发生crash事件,则统计crash次数,所述crash次数是指当前版本的所述第一应用已发生过的所有crash事件的次数;
    若所述crash次数大于或等于次数阈值,则在确定存在所述第一应用的升级版本的情况下,获取所述第一应用的升级数据包。
  8. 如权利要求6或7所述的装置,其特征在于,所述获取模块用于:
    在确定存在所述第一应用的升级版本的情况下,显示升级提示消息,所述升级提示消息用于提示用户是否对所述第一应用进行升级;
    在基于所述升级提示消息检测到确认操作的情况下,获取所述第一应用的升级数据包。
  9. 如权利要求6所述的装置,其特征在于,所述获取模块还用于:
    通过第二应用向服务器发送查询请求,所述第二应用为能够对所述第一应用进行升级管理的应用,所述查询请求用于请求所述服务器反馈所述第一应用的最新的应用版本信息;
    接收所述服务器发送的查询响应,所述查询响应中携带所述第一应用的应用版本信息;
    根据所述查询响应中携带的应用版本信息、以及处于运行状态的所述第一应用的应用版本信息,确定是否存在所述第一应用的升级版本。
  10. 如权利要求6-9中任一项所述的装置,其特征在于,所述装置还包括:
    记录模块,用于记录所述第一应用的crash统计数据,所述crash统计数据包括所述第一应用的应用属性信息、所述第一应用所在的电子设备的设备属性信息、所述第一应用的crash事件信息中的至少一项。
  11. 一种电子设备,其特征在于,所述电子设备包括存储器和处理器;
    所述存储器用于存储支持所述电子设备执行权利要求1-5任一项所述的方法的程序,以及存储用于实现权利要求1-5任一项所述的方法所涉及的数据;所述处理器被配置为用于执行所述存储器中存储的程序。
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行权利要求1-5任一项所述的方法。
PCT/CN2021/133757 2020-11-30 2021-11-27 应用的管理方法、装置、设备及存储介质 WO2022111665A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011384234.2A CN114579389A (zh) 2020-11-30 2020-11-30 应用的管理方法、装置、设备及存储介质
CN202011384234.2 2020-11-30

Publications (1)

Publication Number Publication Date
WO2022111665A1 true WO2022111665A1 (zh) 2022-06-02

Family

ID=81755315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133757 WO2022111665A1 (zh) 2020-11-30 2021-11-27 应用的管理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN114579389A (zh)
WO (1) WO2022111665A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541188A (zh) * 2023-06-25 2023-08-04 荣耀终端有限公司 通知显示方法、终端设备及存储介质
CN116684517A (zh) * 2022-09-29 2023-09-01 荣耀终端有限公司 发送响应消息的方法和装置
CN116702100A (zh) * 2022-10-21 2023-09-05 荣耀终端有限公司 权限管理方法和电子设备
CN116709609A (zh) * 2022-09-30 2023-09-05 荣耀终端有限公司 消息传递方法、电子设备及存储介质
CN116719670A (zh) * 2022-09-30 2023-09-08 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (zh) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 一种应用程序异常的处理方法、系统及移动终端
CN106844074A (zh) * 2015-12-03 2017-06-13 小米科技有限责任公司 更新应用程序的方法和装置
CN109885323A (zh) * 2019-02-03 2019-06-14 维沃移动通信有限公司 一种应用程序升级方法、移动终端和可读存储介质
US20190250900A1 (en) * 2018-02-14 2019-08-15 Micron Technology, Inc. Over-the-air (ota) update for firmware of a vehicle component

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365732A (zh) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 一种应用程序异常的处理方法、系统及移动终端
CN106844074A (zh) * 2015-12-03 2017-06-13 小米科技有限责任公司 更新应用程序的方法和装置
US20190250900A1 (en) * 2018-02-14 2019-08-15 Micron Technology, Inc. Over-the-air (ota) update for firmware of a vehicle component
CN109885323A (zh) * 2019-02-03 2019-06-14 维沃移动通信有限公司 一种应用程序升级方法、移动终端和可读存储介质

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684517A (zh) * 2022-09-29 2023-09-01 荣耀终端有限公司 发送响应消息的方法和装置
CN116709609A (zh) * 2022-09-30 2023-09-05 荣耀终端有限公司 消息传递方法、电子设备及存储介质
CN116719670A (zh) * 2022-09-30 2023-09-08 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质
CN116719670B (zh) * 2022-09-30 2024-04-12 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质
CN116709609B (zh) * 2022-09-30 2024-05-14 荣耀终端有限公司 消息传递方法、电子设备及存储介质
CN116702100A (zh) * 2022-10-21 2023-09-05 荣耀终端有限公司 权限管理方法和电子设备
CN116702100B (zh) * 2022-10-21 2024-04-16 荣耀终端有限公司 权限管理方法和电子设备
CN116541188A (zh) * 2023-06-25 2023-08-04 荣耀终端有限公司 通知显示方法、终端设备及存储介质

Also Published As

Publication number Publication date
CN114579389A (zh) 2022-06-03

Similar Documents

Publication Publication Date Title
WO2022111665A1 (zh) 应用的管理方法、装置、设备及存储介质
WO2020073288A1 (zh) 一种触发电子设备执行功能的方法及电子设备
WO2022033320A1 (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
WO2021218540A1 (zh) 天线功率调节方法、终端设备及存储介质
CN113747374B (zh) 一种消息推送方法及装置
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
WO2021031865A1 (zh) 通话方法及装置
WO2022052740A1 (zh) 一种折叠设备及其开合控制方法
CN113778641B (zh) 控制摄像头的方法、电子设备及计算机可读存储介质
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
CN115333941A (zh) 获取应用运行情况的方法及相关设备
WO2023130931A1 (zh) 服务异常提醒方法、电子设备及存储介质
WO2022242412A1 (zh) 杀应用的方法及相关设备
WO2022228180A1 (zh) 一种应用的管理方法和电子设备
WO2022170856A1 (zh) 建立连接的方法与电子设备
WO2022166435A1 (zh) 分享图片的方法和电子设备
WO2022170854A1 (zh) 视频通话的方法与相关设备
WO2022152167A1 (zh) 一种网络选择方法及设备
CN114690924A (zh) 防误触锁定方法、终端设备及计算机可读存储介质
CN114003241A (zh) 应用程序的界面适配显示方法、系统、电子设备和介质
WO2021129453A1 (zh) 一种截屏方法及相关设备
CN116048831B (zh) 一种目标信号处理方法和电子设备
CN116048629B (zh) 系统服务切换方法及控制装置、电子设备和存储介质
WO2023160205A1 (zh) 进程的控制方法、电子设备及可读存储介质
WO2024093703A1 (zh) 一种实例的管理方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21897165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 201023)