WO2022135215A1 - Procédé et appareil de réparation d'activation anormale - Google Patents

Procédé et appareil de réparation d'activation anormale Download PDF

Info

Publication number
WO2022135215A1
WO2022135215A1 PCT/CN2021/137550 CN2021137550W WO2022135215A1 WO 2022135215 A1 WO2022135215 A1 WO 2022135215A1 CN 2021137550 W CN2021137550 W CN 2021137550W WO 2022135215 A1 WO2022135215 A1 WO 2022135215A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
processor
information
upgrade package
repair
Prior art date
Application number
PCT/CN2021/137550
Other languages
English (en)
Chinese (zh)
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 WO2022135215A1 publication Critical patent/WO2022135215A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • 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 technical field of terminals, and in particular, to a method and device for repairing abnormal startup.
  • Mobile phones not only have communication functions, but also have powerful processing capabilities, storage capabilities, and camera functions. Therefore, the mobile phone can not only be used as a communication tool, but also the user's mobile file library. It stores various personal information, photos, videos, etc. of the user, and can also bind the user's social account, online banking, mobile payment account, etc. information.
  • the purpose of the embodiments of the present application is to provide a method and device for repairing abnormal startup, which are used to effectively repair an electronic device with abnormal startup and improve user experience.
  • an embodiment of the present application provides a method for repairing an abnormal startup.
  • the method can be applied to a first electronic device, where the first electronic device is an electronic device that is properly turned on.
  • the method includes: establishing a connection with the second electronic device, The second electronic device is an electronic device with abnormal startup; obtain the version information of the second electronic device; obtain an upgrade package for repairing the second electronic device according to the version information of the second electronic device; control The second electronic device is repaired according to the upgrade package.
  • the electronic device that is turned on abnormally can be repaired by proxy through the electronic device that is turned on normally. Perform proxy repair, so as to effectively repair electronic devices that are abnormally powered on, and improve user experience.
  • the method before acquiring the version information of the second electronic device, the method further includes: receiving a first operation command from a user, where the first operation command is used to trigger the first electronic device to perform an operation on the second electronic device.
  • the second electronic device performs repair; in response to the first operation command, an authorization file is obtained from the first server, where the authorization file is used to indicate that the first electronic device has the right to repair the second electronic device.
  • the first electronic device needs to obtain an authorization file before performing proxy repair on the second electronic device, so as to ensure the security of the repair process.
  • acquiring an authorization file from the first server includes: acquiring device information of the second electronic device; and sending an authorization request to the first server, where the authorization request includes the first electronic device.
  • Device information of the electronic device device information of the second electronic device; and receiving an authorization response from the first server, where the authorization response includes the authorization file.
  • the authorization request further includes at least one of the following: account information of the first electronic device; product information of the first electronic device; state information of the first electronic device.
  • the first electronic device needs to send a variety of possible information of the first electronic device to the first server, so that the first server can evaluate from multiple dimensions whether to allow the first electronic device to repair the second electronic device, So as to avoid some illegal repair behavior of electronic equipment.
  • acquiring an upgrade package for repairing the second electronic device according to the version information of the second electronic device includes: sending a package search request to the second server, where the package search request includes The authorization file and the version information of the second electronic device; receiving a package search response from the second server, the package search response including the information of the upgrade package; according to the information of the upgrade package, from the first The third server downloads the upgrade package.
  • controlling the second electronic device to perform repair according to the upgrade package includes: determining medical examination information of the second electronic device, where the medical examination information of the second electronic device is used to indicate the Whether the second electronic device can enter the recovery mode; according to the medical examination information of the second electronic device, control the second electronic device to repair according to the upgrade package.
  • control the second electronic device according to the medical examination information of the second electronic device Repairing by the device according to the upgrade package includes: sending an upgrade start command to the second electronic device, so that the second electronic device parses the upgrade package according to the upgrade start command, and analyzes the upgrade package according to the parsed upgrade package. data is repaired.
  • control the second electronic device according to the medical examination information of the second electronic device includes: parsing the upgrade package to obtain a minimum system image file; sending the minimum system image file and a forced startup command to the second electronic device to make the second electronic device run The minimal system image file is repaired.
  • the first electronic device can adopt different repairing methods for different situations according to the medical examination information of the second electronic device, so that the second electronic device can be repaired more effectively.
  • the method further includes: receiving input information from the user, the input information including attribute information of the second electronic device; and comparing the attribute information of the second electronic device with the pre-stored electronic device that supports repairing The attribute information of the device is compared, and if the attribute information of the pre-stored electronic device that supports repair includes the attribute information of the second electronic device, a prompt message is sent, and the prompt information is used to prompt the user that the first electronic device supports the repair. the second electronic device.
  • the user can be informed in advance whether the first electronic device supports the repair of the second electronic device, so as to avoid subsequent repair failure caused by the first electronic device not supporting the second electronic device and affecting user experience.
  • an embodiment of the present application provides a method for repairing an abnormal startup.
  • the method can be applied to a second electronic device.
  • the second electronic device is an electronic device with an abnormal startup.
  • the method includes: establishing a connection with the first electronic device, An electronic device that the first electronic device is powered on normally; sending the version information of the second electronic device to the first electronic device, so that the first electronic device obtains the version information of the second electronic device according to the version information of the second electronic device An upgrade package for repairing the second electronic device; under the control of the first electronic device, repairing is performed according to the upgrade package.
  • repairing according to the upgrade package includes: receiving a start-up upgrade command from the first electronic device; after the start-up upgrade command, The upgrade package is parsed and repaired according to the parsed upgrade package data.
  • repairing according to the upgrade package includes: receiving a minimum system image file from the first electronic device, where the minimum system image file is Obtained by the first electronic device parsing the upgrade package; and running the minimum system image file to repair.
  • an embodiment of the present application provides an electronic device, the electronic device is an electronic device that is powered on normally, and the electronic device includes: a processor, a memory, and a communication interface; wherein, the memory stores a computer program, and the The computer program includes instructions, which, when executed by the processor, cause the processor to implement the following steps in combination with the communication interface: establishing a connection with a second electronic device, and the electronic device that the second electronic device turns on abnormally. device; obtain the version information of the second electronic device; obtain an upgrade package for repairing the second electronic device according to the version information of the second electronic device; control the second electronic device according to the upgrade package make a repair.
  • the processor is further configured to: receive a user's first operation command through the communication interface, where the first operation command is used to trigger the first electronic device to perform an operation on the second electronic device. repairing the device; in response to the first operation command, obtain an authorization file from the first server through the communication interface, where the authorization file is used to indicate that the first electronic device has the ability to repair the second electronic device permissions.
  • the processor is specifically configured to: acquire device information of the second electronic device; send an authorization request to the first server through the communication interface, where the authorization request includes the first server Device information of an electronic device, device information of the second electronic device; and receiving an authorization response from the first server through the communication interface, the authorization response including the authorization file.
  • the authorization request further includes at least one of the following: account information of the first electronic device; product information of the first electronic device; state information of the first electronic device.
  • the processor is specifically configured to: send a packet search request to the second server through the communication interface, where the packet search request includes the authorization file and version information of the second electronic device ; and receive a packet search response from the second server through the communication interface, the packet search response including the information of the upgrade package; download the upgrade package from the third server according to the information of the upgrade package.
  • the processor is specifically configured to: determine physical examination information of the second electronic device, where the physical examination information of the second electronic device is used to indicate whether the second electronic device can enter the recovery mode ; According to the medical examination information of the second electronic device, control the second electronic device to repair according to the upgrade package.
  • the processor when the medical examination information of the second electronic device is used to indicate that the second electronic device can enter the recovery mode, the processor is specifically configured to: send the information to the first electronic device through the communication interface.
  • the second electronic device sends a start-up upgrade command, so that the second electronic device parses the upgrade package according to the start-up upgrade command, and performs repair according to the parsed upgrade package data.
  • the processor when the medical examination information of the second electronic device is used to indicate that the second electronic device cannot enter the recovery mode, the processor is specifically configured to: parse the upgrade package to obtain a minimum system image file; sending the minimum system image file and a forced startup command to the second electronic device through the communication interface, so that the second electronic device runs the minimum system image file for repair.
  • the processor is further configured to: receive input information from a user through the communication interface, where the input information includes attribute information of the second electronic device; Compare with the pre-stored attribute information of the electronic device supporting repair, if the pre-stored attribute information of the electronic device supporting repair includes the attribute information of the second electronic device, send out prompt information, the prompt information is used to prompt the user
  • the first electronic device supports repair of the second electronic device.
  • an embodiment of the present application provides an electronic device, the electronic device is an electronic device with abnormal startup, and the electronic device includes: a processor, a memory, and a communication interface; wherein, the memory stores a computer program, and the The computer program includes instructions, which, when executed by the processor, cause the processor to implement the following steps in combination with the communication interface: establishing a connection with a first electronic device, and the first electronic device is powered on normally. device; sending the version information of the second electronic device to the first electronic device, so that the first electronic device obtains the information for repairing the second electronic device according to the version information of the second electronic device An upgrade package; under the control of the first electronic device, repairing is performed according to the upgrade package.
  • the processor includes a first processor and a second processor, and the communication interface includes a first communication interface and a second communication interface; the second processor is specifically configured to: The first communication interface receives a start-up upgrade command from the first electronic device, and sends the start-up upgrade command to the first processor through the second communication interface; the first processor is specifically configured to: The upgrade package is parsed according to the start-up upgrade command, and repaired according to the parsed upgrade package data.
  • the processor includes a first processor and a second processor, and the communication interface includes a first communication interface and a second communication interface; the second processor is specifically configured to: The first communication interface receives a minimum system image file from the first electronic device, and the minimum system image file is obtained by the first electronic device by parsing the upgrade package; The first processor sends a forced startup command; the first processor is specifically configured to: run the minimum system image file for repairing according to the forced startup command.
  • an embodiment of the present application further provides an electronic device, where the electronic device includes a module/unit for executing the method of the first aspect or any possible design of the first aspect; or, the electronic device includes Modules/units for performing the above-mentioned second aspect or any possible design method of the second aspect; these modules/units may be implemented by hardware, or by executing corresponding software in hardware.
  • an embodiment of the present application further provides a chip, which is coupled to a memory in an electronic device, and is used to call a computer program stored in the memory and execute the first aspect of the embodiment of the present application and any one of the first aspects thereof.
  • the technical solutions that may be designed or the technical solutions of the second aspect and any possible design of the second aspect of the embodiments of the present application, "coupling" in the embodiments of the present application means that two components are directly or indirectly combined with each other.
  • an embodiment of the present application further provides a system, which may include the electronic device described in any possible design of the third aspect above, and the electronic device described in any possible design of the fourth aspect above. Described electronic equipment.
  • the system may also include an authorization server, a packet search server, and an OTA server.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a computer, causes the computer to execute the first aspect or the first aspect above.
  • the method steps provided in the second aspect are provided in the eighth aspect.
  • a program product comprising instructions, which when executed on a computer, cause the computer to perform the method steps provided in the first aspect or the second aspect above.
  • FIG. 1 is a schematic diagram of a possible hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another possible hardware structure of the electronic device provided by the embodiment of the present application.
  • FIG. 4 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart corresponding to a method for repairing abnormal startup of an electronic device according to an embodiment of the present application
  • FIG. 7 is an example diagram of an interface displayed by a first electronic device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a connection between a first electronic device and a second electronic device according to an embodiment of the present application
  • FIG. 9 is an example diagram of an interface displayed by a first electronic device according to an embodiment of the present application.
  • FIG. 10 is an example diagram of an interface displayed by a first electronic device according to an embodiment of the present application.
  • FIG. 11 is an example diagram of an interface displayed by a first electronic device according to an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of repairing according to an upgrade package by a first processor of a second electronic device according to an embodiment of the present application
  • FIG. 13 is a schematic flowchart of a first electronic device performing proxy repair on a second electronic device
  • FIG. 14 is a schematic diagram of an electronic device according to an embodiment of the present application.
  • Electronic devices such as mobile phones, tablet computers, wearable devices (eg, watches, bracelets, helmets, headphones, necklaces, etc.), in-vehicle devices, augmented reality (AR)/virtual reality (VR) ) equipment, notebook computer, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA), etc.
  • AR augmented reality
  • VR virtual reality
  • PDA personal digital assistant
  • OS Operating system
  • Flashing refers to changing or replacing some languages, software or operating systems originally existing in the electronic device through a certain method. Flashing is to reinstall the operating system of the electronic device, which can make the function of the electronic device more perfect, or restore it to its original state.
  • the Android system As the operating system as an example, because the Android system is relatively open source, it allows users to make certain modifications to the operating system of the electronic device (that is, flashing). Therefore, for different functions and permissions, the operating system can have the following possible modes :
  • 1Normal mode the function of this mode is to start the electronic device normally.
  • the way to enter this mode is, for example, when the electronic device is turned off, press the power button to start it.
  • this mode has a relatively high modification authority, can open the command interpreter (shell), refresh the image file (flash image), perform backup, etc.
  • the electronic device can modify the system data of the electronic device according to the system data stored in its own memory, thereby completing the flashing.
  • the electronic device can communicate with the computer through the universal serial bus (USB) data line.
  • USB universal serial bus
  • the electronic device After the electronic device receives the system data sent by the computer, it updates the system data to the designated partition of the electronic device (for example, the command fastboot flash boot boot.img is to flash the contents of boot.img to the boot partition), so as to complete the flashing.
  • the command fastboot flash boot boot.img is to flash the contents of boot.img to the boot partition
  • the operating system may also have other modes, such as a safe mode (safe mode), a diagnostic mode (diagnostic mode), etc., which are not specifically limited.
  • a safe mode safe mode
  • diagnostic mode diagnostic mode
  • An electronic device may include a storage area (similar to a hard disk of a computer), and the storage area may include multiple partitions, each of which has different functions.
  • the storage area of an electronic device may include the following possible partitions:
  • the boot partition which can ensure the normal startup of electronic devices, includes the kernel and the virtual memory disk (a technology used by software to simulate a part of the memory as a hard disk, which can greatly improve the speed of file access on it), without this partition, electronic devices often cannot boot properly.
  • 2system partition which is used to store system-related configurations other than the kernel and virtual memory disk, including user interface, pre-installed software of electronic devices, etc. Erasing this partition will delete the entire operating system, but it will not make it unbootable, such as by entering recovery mode to install a new operating system.
  • 3Data (data) partition this partition contains the user's data information, such as contacts, text messages, settings, user-installed programs, etc., erasing this partition is equivalent to restoring the factory settings of the electronic device, you can select "" data/factory reset" to erase this partition.
  • the partition on which the normal mode depends may include a boot partition
  • the partition on which the recovery mode depends may include a recovery partition
  • the partition on which the fast boot mode depends may include some partitions in the boot partition (or in other words, the partition on which the fast boot mode depends).
  • the dependent partition is a subpartition or subset of the boot partition). Therefore, when there is a problem with the boot partition, the electronic device will not be able to enter the normal mode; when there is a problem with the recovery partition, the electronic device will not be able to enter the recovery mode; when there is a problem with the partition that the fast boot mode relies on in the boot partition, the Causes the electronic device to fail to enter fastboot mode.
  • the storage area of the electronic device may also have other partitions, such as a cache partition, which is not specifically limited.
  • an abnormal startup of an electronic device (such as a mobile phone) will bring huge losses to users, and will also cause multi-dimensional losses to mobile phone manufacturers.
  • One possible reason is: there is a problem with the software of the electronic equipment. For example, the user makes a misoperation during the software upgrade process, which causes the software upgrade to fail. For example, the user accidentally deletes some key files. .
  • the abnormal startup of the electronic device may refer to that the electronic device cannot enter the normal mode (or the safe mode).
  • the electronic device boots abnormally it can correspond to the following possible situations, such as situation 1: the electronic device cannot enter the fast boot mode and cannot enter the recovery mode; situation 2: the electronic device can enter the fast boot mode, but cannot enter Recovery Mode; Scenario 3: The electronic device is able to enter fastboot mode and is able to enter recovery mode. It is understandable that the abnormal startup of the electronic device may also correspond to other possible situations, and details will not be repeated one by one.
  • the Erecovery mode is a mode provided by some terminal device manufacturers, and the partitions on which the Erecovery mode depends may include some partitions of the boot partition and specific partitions corresponding to the Erecovery mode.
  • Erecovery mode includes the following features:
  • this solution may not be able to effectively repair electronic devices, that is, there are certain limitations and disadvantages, for example, the partition on which Erecovery mode is entered is damaged (for example, the boot partition is damaged due to an upgrade interruption (a key image is upgraded by half).
  • the data jump in the storage area causes the startup verification failure), it will not be able to enter the Erecovery mode; for another example, when an unknown error occurs in the startup process that the Erecovery mode depends on (for example, the startup process software is abnormally stuck, the process crashes, etc.) , it will not be able to enter the Erecovery mode; for another example, when the upgrade process is interrupted by the user's long key press, so that the new and old images do not match when booting, the electronic device will not be able to boot to the normal mode, nor enter the Erecovery mode.
  • the user can use the Android package (Android package, APK) tool (such as the hissuit tool) to try to repair, the specific operation is as follows:
  • the electronic device enters the fast boot mode, and the hissuit tool obtains the version number of the electronic device in this mode, and then searches the server for the upgrade package and downloads it to the computer.
  • the electronic device enters the recovery mode, and the hisiut tool sends the local upgrade package of the computer to the electronic device. Accordingly, the electronic device receives the upgrade package and performs the upgrade to refresh to the latest version, thereby finally completing the repair.
  • this solution may not be able to effectively repair electronic devices, that is, there are certain limitations and disadvantages, such as the partition that depends on entering the fast boot mode and the recovery mode is damaged, so that when the fast boot mode or recovery mode cannot be entered, the There is no way to fix it with the hissuit tool.
  • the user can go to the maintenance outlet to use the maintenance tool to repair it. Due to the high authority of the maintenance network, when the electronic device is abnormally turned on (you can enter the fast boot mode), you can use the maintenance tool to unlock the electronic device, and then force the upgrade. However, if the electronic device cannot enter the fast boot mode, it may not be able to effectively repair the electronic device. In this case, the maintenance network can only repair the electronic device through compulsory measures such as disassembly and replacement of the motherboard, which may give the user's property. cause losses and degrade the user experience.
  • an embodiment of the present application provides a method for repairing an abnormal startup.
  • an electronic device that is turned on abnormally can be repaired by proxy through an electronic device that is turned on normally.
  • an electronic device that is turned on abnormally cannot enter the enhanced recovery mode.
  • the electronic device that is powered on normally can perform proxy repair for the electronic device that is powered on abnormally, so that the electronic device that is powered on abnormally can be effectively repaired and the user experience can be improved.
  • FIG. 1 is a schematic diagram of a possible hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device 100 may include a first processor, a first port, a first memory, a wireless communication module, and may also include other peripheral modules.
  • the first processor may include one or more processing units, for example, the first processor may include an application processor (application processor, AP), and may also include at least one of the following: a modem processor, a graphics processor ( graphics processing unit, GPU), image signal processor (ISP), memory, video codec, digital signal processor (DSP), baseband processor, neural-network processor processing unit, NPU), etc.
  • the different processing units can be stand-alone devices or integrated in one or more processors.
  • a memory may also be provided in the first processor for storing instructions and data.
  • the memory in the first processor is a cache memory. The memory may hold instructions or data that have just been used or recycled by the first processor. If the first processor needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the first processor is reduced, thereby improving the efficiency of the system.
  • the first port may be an interface conforming to the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the first port 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 other devices.
  • the first memory may be used to store a computer program comprising instructions.
  • the first processor executes various functions and data processing of the electronic device 100 by executing the instructions stored in the first memory.
  • the first memory may include various partitions as described above, such as a boot partition, a system partition, a data partition, and the like.
  • the first memory 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 wireless communication module can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite systems (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite systems
  • frequency modulation frequency modulation
  • FM near field communication technology
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module may be one or more devices integrating at least one communication processing module.
  • peripheral modules may include a display screen, a sensor module, a camera, etc., which are not specifically limited.
  • the structures illustrated in the embodiments of the present invention 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.
  • FIG. 1 Taking the electronic device 100 shown in FIG. 1 as a mobile phone as an example below, the hardware structure of the mobile phone will be described in detail with reference to FIG. 2 .
  • FIG. 2 is a schematic diagram of a hardware structure of a mobile phone according to an embodiment of the present application.
  • the mobile phone 200 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 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 processor 110 may be the first processor in FIG. 1 above.
  • the USB interface 130 may be the first port in FIG. 1 described above.
  • the charging management module 140 is used to receive charging input from the charger.
  • 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 charge 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 wireless communication function of the mobile phone 200 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160 (which can be the wireless communication module in FIG. 1 above), the modulation and demodulation processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in handset 200 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 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied on the mobile phone 200 .
  • 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 wireless communication module 160 can receive electromagnetic waves via the antenna 2 , frequency modulate and filter the electromagnetic wave signals, and send 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 mobile phone 200 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 200 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 display screen 194 is used to display the display interface of the application and the like.
  • the display screen 194 includes a display panel, and 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.
  • Body active-matrix organic light emitting diode, AMOLED
  • 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.
  • cell phone 200 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the camera 193 is used to capture still images, moving images or videos.
  • the number of cameras 193 in the mobile phone 200 may be at least two. Take two as an example, one is a front camera and the other is a rear camera; take three as an example, one of which is a front camera and the other two are rear cameras.
  • the internal memory 121 may be the above-mentioned first memory in FIG. 1 .
  • 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 mobile phone 200 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. Such as saving pictures, videos and other files in an external memory card.
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the mobile phone 200 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • 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 cell phone 200 can receive key input and generate key signal input related to user settings and function control of the cell phone 200 .
  • the mobile phone 200 can receive the key 190 input and generate the key signal input related to the user setting and function control of the mobile phone 200 .
  • the mobile phone 200 can use the motor 191 to generate vibration alerts (eg, vibration alerts for incoming calls).
  • the indicator 192 in the mobile phone 200 can be an indicator light, which can be used to indicate a charging state, a change in power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 in the mobile phone 200 is used to connect the SIM card. The SIM card can be contacted and separated from the mobile phone 200 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 200 .
  • the mobile phone 200 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.
  • FIG. 3 is a schematic diagram of another possible hardware structure of the electronic device provided by the embodiment of the present application.
  • the electronic device 300 may not only include a first processor, a first port, a first memory, a wireless communication module, and other peripheral modules, but also Including a second processor, a second port, a third port, a second memory, a controller, and the like.
  • a first processor for the description of the first processor, the first port, the first memory, the wireless communication module, and other peripheral modules, reference may be made to the introduction of FIG. 1 .
  • the second processor may be a microcontroller, such as a microcontroller unit (MCU), also known as a single chip microcomputer (single chip microcomputer) or a single chip.
  • MCU microcontroller unit
  • the second processor may be mainly responsible for related implementation in an abnormal scenario (for example, the electronic device 300 is turned on abnormally), and for details, refer to the following description.
  • the first processor may be understood as a master processor of the electronic device 300
  • the second processor may be understood as a slave processor of the electronic device 300
  • the processing capability of the second processor may be smaller than the processing capability of the first processor, for example, the second processor may have part of the processing capability of the first processor.
  • the first processor and the second processor may share some modules, for example, the first processor and the second processor may share the first port, and may also share a wireless communication module and the like. It should be noted that the first processor and the second processor may also share other possible peripheral modules, which are not specifically limited. Since the first processor is the main processor of the electronic device 300, under normal circumstances, when the first processor can run normally or is in a normal running state, the first processor manages the above-mentioned shared modules (such as The first port, the wireless communication module), in this case, the second processor is in a standby state, that is, it does not manage the above-mentioned shared module for the time being; When entering the normal mode), the second processor can take over the above-mentioned shared module.
  • the first processor is the main processor of the electronic device 300, under normal circumstances, when the first processor can run normally or is in a normal running state, the first processor manages the above-mentioned shared modules (such as The first port, the wireless communication module), in this case, the second processor is
  • the first processor and the second processor may connect to (or manage) the first port at different times, but not connect to the first port at the same time; for example, When the first processor is connected to the first port, the connection between the second processor and the first port is disconnected, and when the second processor is connected to the first port, the connection between the first processor and the first port is disconnected.
  • an attribute (for convenience of description, referred to as the first attribute) may be preset in the electronic device 300, and when the first processor is in a normal running state, the value of the first attribute may be true (true). ), in this case, the above-mentioned shared module can be managed by the first processor; and when the first processor is in an abnormal operation state, the value of the first attribute can be false (false), in this case, it can trigger The second processor takes over the above-mentioned shared module.
  • another device may trigger the second process to take over the above-mentioned shared module.
  • the electronic device 300 can establish a connection with another device through the first port.
  • the first processor manages the first port and responds to the handshake signal of the other device through the first port, when the other device
  • a device determines that it needs to perform proxy repair on the electronic device 300 (for example, another device receives a user's first operation command, the first operation command can be referred to later) or other possible operations
  • it can send the first port to the first
  • the processor sends a switching instruction, the switching instruction is used to instruct to switch to the second processor to take over the above-mentioned shared module; and after the first processor receives the switching instruction, it can use the second port (or the third port) to process the second processor
  • the second processor sends the control information, correspondingly, after receiving the control information, the second processor can take over the above-mentioned sharing module.
  • the second port can be understood as a general information exchange or data exchange bus between the first processor and the second processor.
  • the second port needs to depend on the processing capability of the first processor. For example, when the first processor can run normally, the first processor and the second processor can communicate through the second port; When an exception occurs, the processing capability of the first processor is limited. In this case, communication between the first processor and the second processor may not be possible through the second port.
  • the second port may be a secure digital input and output (SDIO) port, a general purpose input output (general purpose input output) port, an integrated interchip sound (I2S), an inter-integrated circuit (inter integrated circuit, I2C), there is no specific limitation.
  • SDIO secure digital input and output
  • I2S integrated interchip sound
  • I2C inter-integrated circuit
  • the third port may refer to a lower-level port than the second port.
  • the third port may be a universal synchronous/asynchronous serial receiver/transmitter (universal synchronous/asynchronous receiver/transmitter, USART), which is not specifically limited.
  • the first memory may be the main memory of the electronic device 300
  • the second memory may be the slave memory of the electronic device 300 .
  • the storage capacity of the first memory may be greater than the storage capacity of the second memory, or in other words, the storage space of the first memory may be greater than the storage space of the second memory.
  • the first processor may access the first memory and the second memory, for example, the first processor may write device information, version information, etc. of the electronic device 300 into the first memory and the second memory.
  • the first processor may access the first memory first and the second memory second.
  • the second processor can access the first memory and the second memory, for example, the second processor can write the minimum system image file into the first memory, and for example, the second processor can read the device of the electronic device 300 from the second memory information, version information, etc.
  • the second processor may access the second memory first and the first memory second.
  • the second processor For the second processor to access the first memory, it should be noted that: (1) when the second processor determines that it needs to access the first memory, it can first determine whether the first memory is in a locked state (for example, when the first processor is in a locked state) When accessing the first memory, the first processor can set the first memory to be in a locked state). If it is in a locked state, the second processor cannot access the first memory. If the first memory is not in a locked state, the first memory The second processor can access the first memory. In other possible situations, if the second processor determines that the first memory is in an unknown state (ie, it is uncertain whether it is locked), the second processor can also access the first memory at this time.
  • a locked state for example, when the first processor is in a locked state
  • Accessing the first memory by the second processor may mean that the second processor accesses a partition reserved in the first memory, for example, the second processor writes data or reads data in the partition.
  • the reserved partition can be located at the end of the data block device (data block device), that is, the data block device can include the data partition and the reserved partition; further, user data can be preferentially stored in the data partition. , try not to occupy the reserved partition.
  • the second processor can be connected to the first memory through the controller, and when the second processor can access the first memory, the controller can be used to assist the second processor to access the first memory, such as assisting
  • the second processor parses the data structures and the like.
  • the controller may be a hardware component, or may also be a software module, which is not specifically limited; further, the controller may exist independently, or may also be integrated in the second processor, which is not specifically limited.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 300 .
  • the electronic device 300 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.
  • FIG. 4 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • the software structure of the electronic device may be a layered architecture, for example, the software may be divided 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 (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
  • an application layer an application framework layer (framework, FWK)
  • an Android runtime Android runtime
  • system libraries system libraries
  • the application layer can include a series of application packages. As shown in FIG. 4 , the application layer may include system applications (referred to as system applications) and third-party applications (referred to as third-party applications), wherein the system applications may include cameras, settings, skin modules, user interfaces (user interface, UI), mobile phone manager, call, SMS, etc., third-party applications can include maps, navigation, music, video, etc.
  • system applications referred to as system applications
  • third-party applications referred to as third-party applications
  • third-party applications can include maps, navigation, music, video, etc.
  • the application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer.
  • the application framework layer can include some predefined functions. As shown in Figure 4, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • the 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.
  • 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 library and virtual machine, and Android runtime is responsible for scheduling and management of Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part 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 library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • 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.
  • the electronic device may further include a hardware layer, and the hardware layer may include various types of sensors, such as an acceleration sensor, a gyroscope sensor, and a touch sensor involved in the embodiments of the present application.
  • sensors such as an acceleration sensor, a gyroscope sensor, and a touch sensor involved in the embodiments of the present application.
  • FIG. 5 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the application scenario includes a first device, a second device, and may also include at least one server (eg, a first server, a second server, and a third server).
  • at least one server eg, a first server, a second server, and a third server.
  • the first device and the second device may both be electronic devices.
  • the first device may be referred to as the first electronic device
  • the second device may be referred to as the second electronic device.
  • a case where both the first device and the second device may be electronic devices will be mainly used for description as an example.
  • the hardware structure of the first electronic device and the hardware structure of the second electronic device reference may be made to the hardware structure of the electronic device 300 shown in FIG. 3 .
  • the first electronic device when the first electronic device is powered on normally and the second electronic device is powered on abnormally, the first electronic device can repair the second electronic device by using the repair method provided in the embodiment of the present application; when the first electronic device is powered on abnormally .
  • the second electronic device when the second electronic device is powered on normally, the second electronic device can repair the first electronic device by using the repair method provided in the embodiment of the present application. That is, the first electronic device and the second electronic device can repair each other.
  • the hardware structure of the first electronic device may refer to the hardware structure of the electronic device 100 shown in FIG.
  • the hardware structure of the second electronic device may refer to the hardware structure of the electronic device 300 shown in FIG. 3 .
  • the first electronic device can repair the second electronic device by using the repair method provided in the embodiment of the present application; and when the first electronic device is powered on When the second electronic device is abnormal and the second electronic device is powered on normally, since the first electronic device does not include the second processor, the second electronic device may not be able to repair the first electronic device through the repair method provided in the embodiment of the present application. That is to say, in this embodiment of the present application, the hardware structure of the electronic device to be repaired may be the hardware structure shown in FIG.
  • the hardware structure of the electronic device that performs the repair may be the hardware structure shown in FIG. 1 , or, It may be the hardware structure shown in FIG. 3 .
  • the software structure of the first electronic device and the software structure of the second electronic device reference may be made to the software structure of the electronic device shown in FIG. 4 .
  • the first electronic device and the second electronic device may be electronic devices of the same device type, for example, both the first electronic device and the second electronic device are mobile phones, or both are tablet computers;
  • the second electronic device may also be electronic devices of different device types, for example, the first electronic device is a tablet computer and the second electronic device is a mobile phone, or the first electronic device is a mobile phone and the second electronic device is a watch.
  • the first server may be called an authorization server, which is used to authorize the first electronic device to perform proxy repair on the second electronic device .
  • the second server may be referred to as a package search server, and is configured to, after receiving the package search request from the first electronic device, search for information for repairing the upgrade package of the second electronic device according to the package search request, and feed back to the first electronic device A package search response, the package search response includes the information of the searched upgrade package.
  • the third server may be called an upgrade server (such as an over-the-air (OTA) server, a cloud server, etc.), and the third server may be an upgrade package capable of storing application software, and provides an upgrade package download service for electronic devices of third-party devices.
  • the third server may be configured to return a download response according to the download request after receiving a download request from the first electronic device (the download request includes information about the upgrade package to be downloaded), where the download response includes the upgrade package to be downloaded.
  • the application scenario may also include other possible devices, which is not specifically limited.
  • the first device and the second device may also be relay node devices and sub-node devices in the Internet of Everything scenario, respectively, that is, the relay node device can pass the The repair method repairs and upgrades the sub-node device, which is not limited.
  • the first electronic device repairs the second electronic device (and the hardware structure of the first electronic device and the hardware structure of the second electronic device are both the hardware structures of the electronic device 300 shown in FIG. 3 )
  • the repair method provided by the embodiment of the present application will be described in detail. That is, the first electronic device is an electronic device that is powered on normally, and the second device is an electronic device that is powered on abnormally.
  • FIG. 6 is a schematic flowchart corresponding to a method for repairing an abnormal startup of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the process may include:
  • the first electronic device receives input information from a user, where the input information includes attribute information of the second electronic device.
  • the first electronic device sends out prompt information according to the input information of the user, where the prompt information is used to prompt the user whether the first electronic device supports the repair of the second electronic device.
  • attribute information of the electronic device supporting repair may be pre-stored in the first electronic device, for example, attribute information of the electronic device supporting repair may be stored in the first memory of the first electronic device.
  • the first electronic device specifically, the first processor of the first electronic device
  • receives the user's input information that is, the attribute information of the second electronic device
  • the prompt information sent by the first electronic device is used for Prompt the user that the first electronic device supports the repair of the second electronic device; if the pre-stored attribute information of the electronic device supporting the repair does not include the attribute information of the second electronic device, the first electronic device may determine that the repair of the second electronic device is not supported, In this case, the prompt information sent by the first electronic device is used to prompt the user that the first electronic device does not support repairing the second electronic device.
  • the attribute information of the electronic device may include at least one of the following: device information of the electronic device and product information of the electronic device.
  • the device information of the electronic device may include the serial number (SN) of the electronic device and the device type of the electronic device;
  • the product information of the electronic device may include the brand information of the electronic device (such as Huawei), the series information of the electronic device ( Such as Mate series, P series).
  • the first electronic device may be pre-installed with an application for proxy repair (referred to as application A for ease of description), that is, the application layer of the first electronic device may include application A, and application A may be a system application.
  • application A can be started on the first electronic device (for example, the user clicks the icon of application A, see FIG. 7 . (a)), and then the display screen of the first electronic device may display an interface as shown in (b) in FIG.
  • the interface may include one or more options (for example, "electronic device that supports repair” option).
  • the user can trigger the option of "electronic equipment supporting repair", and then the display screen of the first electronic equipment can display an interface as shown in (c) in FIG. 7 , and the interface can include an input box (the input box uses for the user to input the attribute information of the second electronic device).
  • the user can input the attribute information of the second electronic device in the input box (for example, the brand is "Huawei" and the series is "P series”), and click the "OK” button, correspondingly, the first electronic device can receive the second electronic device.
  • the attribute information of the device, and the judgment process as described above is performed.
  • a prompt message can be sent (for example, "repair is supported” is displayed on the display screen of the first electronic device), see Figure 7 As shown in (d) in the above; if it is determined that the repair of the second electronic device is supported, a prompt message may be issued (for example, "repair is not supported” is displayed on the display screen of the first electronic device), see (e) in FIG. 7 . Show.
  • the first electronic device can repair the second electronic device through the following S603 to S609; If one electronic device does not support repairing the second electronic device, the following S603 to S609 may not be performed. In this way, through the above S601 and S602, the user can be informed in advance whether the first electronic device supports the repair of the second electronic device, so as to avoid subsequent repair failure caused by the first electronic device not supporting the second electronic device and affecting user experience.
  • the first electronic device establishes a connection with the second electronic device.
  • the first electronic device can establish a wired connection with the second electronic device.
  • the first electronic device and the second electronic device establish a wired connection through a data cable, and one end of the data cable is connected to the first port of the first electronic device. The other end is connected to the first port of the second electronic device. Since the second electronic device is abnormally powered on, that is, the first processor of the second electronic device is abnormal, in this case, the value of the first attribute in the second electronic device is false, and the shared module is managed by the second processor. (For details, please refer to the relevant description in FIG.
  • the first processor of the first electronic device is connected to the first processor of the second electronic device through a wired connection.
  • the two processors are connected, as shown in (a) of FIG. 8 . If the first port described above is a USB Type C port, the data line can be called a CC line.
  • the first electronic device may establish a wireless connection with the second electronic device. Since the second electronic device is abnormally powered on, that is, the first processor of the second electronic device is abnormal, in this case, the value of the first attribute in the second electronic device is false, and the shared module is managed by the second processor. (For details, please refer to the relevant description in FIG. 3 above), that is, a connection may be established between the wireless communication module and the second processor, and then the second processor may establish a connection with the first electronic device through the wireless communication module; that is, a connection may be established between the wireless communication module and the second processor; , the first processor of the first electronic device is connected to the second processor of the second electronic device through a wireless connection, as shown in (b) of FIG. 8 .
  • the first electronic device receives a first operation command from the user, where the first operation command is used to trigger the first electronic device to repair the second electronic device.
  • the first electronic device may pre-install an application program for proxy repair (such as the aforementioned application A), and after the first electronic device establishes a connection with the second electronic device, the user can start the application A (for example, the user Click the icon of application A, see (a) in FIG. 7 ), and then the display screen of the first electronic device may display an interface as shown in (b) in FIG. 7 , the interface may include one or more options (such as the "Authorization Check” option). If the user triggers the "authorization check” (ie, is equivalent to triggering the first operation command), the first electronic device may receive the first operation command.
  • an application program for proxy repair such as the aforementioned application A
  • the user can start the application A (for example, the user Click the icon of application A, see (a) in FIG. 7 ), and then the display screen of the first electronic device may display an interface as shown in (b) in FIG. 7 , the interface may include one or more options (such as the "Authorization Check” option). If the user triggers the
  • Implementation mode 2 an option (such as an "authorization check” option, as shown in FIG. 9 ) may be added in advance in the setting application of the first electronic device, and then if the user starts the setting application (for example, the user clicks the icon of the setting application), Then the "authorization check” is triggered (that is, equivalent to triggering the first operation command), and the first electronic device can receive the first operation command.
  • an option such as an "authorization check” option, as shown in FIG. 9 ) may be added in advance in the setting application of the first electronic device, and then if the user starts the setting application (for example, the user clicks the icon of the setting application), Then the "authorization check” is triggered (that is, equivalent to triggering the first operation command), and the first electronic device can receive the first operation command.
  • Implementation 3 A password corresponding to the authorization check function can be preset in the first electronic device, and then when the user can open the dial of the first electronic device and enter the password (that is, equivalent to triggering the first operation command), the first electronic device The device may receive the first operation command.
  • the first electronic device in response to the first operation command, obtains an authorization file from the first server, where the authorization file is used to indicate that the first electronic device has the right to repair the second electronic device.
  • the first electronic device may display an interface as shown in (a) in FIG. 10 on the display screen, and the interface includes two options, respectively "Reliable relationship has been established", “Reliable relationship has not been established”.
  • the first electronic device (specifically, the first electronic device
  • the first processor of the first electronic device) can send the relevant information of the first electronic device to the second electronic device, and after the second processor of the second electronic device receives the relevant information of the first electronic device, it can be stored with it from the memory.
  • the relevant information of the electronic device that has established a trust relationship with the second electronic device is matched, and when the matching is successful, an instruction for authorization can be sent to the first electronic device, and the instruction for authorization can include an encrypted file.
  • the file can be decrypted by the first server, but cannot be decrypted by the first electronic device, and the encrypted file is used to instruct the second electronic device to authorize the repair through the first electronic device; furthermore, the first electronic device can display "authorized passed” on the interface , see Fig. 10 (b).
  • an instruction of unauthorized passing may be sent to the first electronic device; further, the first electronic device may display "unauthorized passing" on the interface, as shown in (c) of FIG. 10 .
  • the user can trigger the first electronic device to return to the interface shown in FIG. 9, and trigger the first electronic device to obtain the proxy repair authority by selecting that the trust relationship is not established, See the description below for details.
  • the first electronic device and the second electronic device may establish a connection (for example, the first processor of the first electronic device and the first processor of the second electronic device establish a connection wired or wireless connection).
  • the second electronic device receives the user's second operation command, and sends a request message to the first electronic device according to the second operation command, so as to request the first electronic device to establish a trust relationship with the second electronic device.
  • the request message may include relevant information of the second electronic device.
  • the first electronic device can establish a trust relationship between the first electronic device and the second electronic device, and store relevant information of the second electronic device (such as a slave memory stored in the first electronic device). ); optionally, the first electronic device may also send out prompt information for prompting the user that the trust relationship between the first electronic device and the second electronic device has been successfully established. And, the first electronic device sends a response message to the second electronic device, the response message includes relevant information of the second electronic device, and after receiving the response message, the second electronic device can establish a relationship between the first electronic device and the second electronic device.
  • relevant information of the second electronic device such as a slave memory stored in the first electronic device.
  • the first electronic device may also send out prompt information for prompting the user that the trust relationship between the first electronic device and the second electronic device has been successfully established.
  • the first electronic device sends a response message to the second electronic device, the response message includes relevant information of the second electronic device, and after receiving the response message, the second electronic device can establish a relationship between the first electronic device and the second electronic device
  • the second electronic device can also send out prompt information to prompt the user that the first electronic device has been successfully established.
  • the trust relationship between the electronic device and the second electronic device may include device information, account information, and the like of the electronic device.
  • the second electronic device may receive the second operation command.
  • an option such as the "device mutual assistance” option
  • the user starts the setting application for example, the user clicks on the icon of the setting application
  • the "device mutual assistance” ie, the "device mutual assistance”
  • the first electronic device can receive the second operation command.
  • the display screen of the first electronic device may display the display shown in FIG. 11 .
  • the interface shown in (b), the interface includes a variety of possible ways to obtain the agent repair authority, such as "obtaining the agent repair authority through the authorization code”, "obtaining the agent repair authority through the power-on password (such as digital password or fingerprint)” ”, may also include other possible manners, which are not specifically limited.
  • the first electronic device can An input box for inputting an authorization code is displayed, as shown in (c) of FIG. 11 .
  • the first electronic device receives the authorization code input by the user, it can transmit the authorization code to the second electronic device, and after receiving the authorization code, the second electronic device can compare the authorization code with the authorization code stored in the memory Yes, if they are consistent, it can be determined that the authorization is passed, and an instruction of passing the authorization can be sent to the first electronic device.
  • the instruction of passing the authorization can include an encrypted file, and the encrypted file can be decrypted by the first server, and the first electronic device If it cannot be decrypted, the encrypted file is used to instruct the second electronic device to authorize the repair through the first electronic device; furthermore, the first electronic device may display “authorized passed” on the interface, as shown in (d) in FIG. 11 ; if If not, it can be determined to pass without authorization, and send an instruction of unauthorized pass to the first electronic device; furthermore, the first electronic device can display "unauthorized pass” on the interface, as shown in (e) of FIG. 11 .
  • the first electronic device displays “pass without authorization” the user can trigger the “temporary authorization” as shown in (e) in FIG. 11 , and then the first electronic device can apply to the first server to obtain the proxy Repair permissions, see the description below for details.
  • an authorization request may be sent to the first server, where the authorization request includes device information of the second electronic device and device information of the first electronic device and encrypted file, after the first server receives the authorization request, by decrypting the encrypted file, it can know that the second electronic device is authorized to repair through the first electronic device, and then the device information of the second electronic device and the device information of the first electronic device can be obtained.
  • the information is verified (for example, the verification method can be public key infrastructure (PKI) verification), and the legality of the proxy authorization request is verified.
  • the authorization can be issued to the first electronic device. document.
  • the authorization file may include device information of the first electronic device and device information of the second electronic device, and the authorization file is used for the first electronic device to perform proxy repair on the second electronic device.
  • the first electronic device can apply to the server for obtaining the proxy repair authority.
  • the first electronic device may send an authorization request to the first server, where the authorization request includes device information of the second electronic device and device information of the first electronic device; further, the authorization request may also include the device information of the first electronic device.
  • Other possible information such as account information of the first electronic device, product information of the first electronic device, state information of the first electronic device.
  • the product information of the first electronic device may include brand information, series information, etc. of the first electronic device, and the state information of the first electronic device is used to indicate the current state of the first electronic device, such as a user state or a super authority state.
  • the first server may, according to the authorization request, evaluate whether to allow the first electronic device to obtain the proxy repair authority, and if so, may send the authorization file to the first electronic device;
  • the state of the electronic device is the super-authorized state), an unauthorized passing instruction can be sent to the first electronic device.
  • the first electronic device performs physical examination on the second electronic device, and then determines the physical examination information of the second electronic device, and the physical examination information of the second electronic device is used to indicate whether the second electronic device can enter the recovery mode;
  • the situation corresponding to the abnormal startup of the electronic device such as the situation 1, situation 2 or situation 3 described above).
  • the first electronic device can perform physical examination on the second electronic device in various ways.
  • the first electronic device can use the connection between the first electronic device and the second electronic device (as shown in FIG.
  • the second processor in the second electronic device sends a medical examination command to obtain the medical examination information of the second electronic device; correspondingly, after receiving the medical examination command, the second processor of the second electronic device can return to the first electronic device
  • the physical examination result where the physical examination result includes physical examination information of the second electronic device.
  • one or more attributes may be preset in the second electronic device.
  • the value of the second attribute may be true, and when the first processor of the second electronic device cannot successfully load the corresponding partition to enter the fast boot mode , the value of the second attribute can be false.
  • the value of the third attribute may be true, and when the first processor of the second electronic device cannot successfully load the corresponding partition to enter the recovery mode, the first processor The value of the three attributes can be false.
  • the second processor can obtain the medical examination information of the second electronic device by querying the values of the corresponding attributes (eg, the second attribute and the third attribute).
  • the second processor may send a physical examination command to the first processor (for example, the second processor may preferentially pass the first The second port sends a physical examination command to the first processor, and if the first processor does not respond, the second processor can send a physical examination command to the first processor through the third port), and then the physical examination information of the second electronic device can be obtained.
  • the second processor may send a physical examination command to the first processor (for example, the second processor may preferentially pass the first
  • the second port sends a physical examination command to the first processor, and if the first processor does not respond, the second processor can send a physical examination command to the first processor through the third port), and then the physical examination information of the second electronic device can be obtained.
  • the first electronic device obtains from the second server information about an upgrade package for repairing the second electronic device.
  • the first electronic device may acquire version information of the second electronic device.
  • the version information of the second electronic device may include a system version model of the second electronic device, such as a model of the second electronic device and a version number of an operating system in the second electronic device.
  • the first electronic device may acquire the version information of the second electronic device in various ways. For example, referring to the above, the version information of the second electronic device may be stored in the second memory.
  • the first electronic device can send a query command to the second processor of the second electronic device, where the query command is used to query the version information of the second electronic device; correspondingly, the second processor of the second electronic device receives the query command Afterwards, the version information of the second electronic device can be obtained by accessing the second memory, and then sent to the first electronic device.
  • the first electronic device can send a packet search request to the second server, and the packet search request includes the authorization file and the version information of the second electronic device; after receiving the packet search request, the second server can determine the first packet according to the authorization file.
  • the electronic device is in the proxy mode, and according to the version information of the second electronic device, the information of the upgrade package matching the version of the second electronic device is determined.
  • the second server sends a packet search response to the first electronic device, where the packet search response includes information of the matching upgrade package, and may also include authentication file and file list information (eg filelist.xml).
  • the information of the upgrade package may include the download address of the upgrade package, and optionally, may also include other possible information, such as the identifier of the upgrade package, which is not specifically limited;
  • the authentication file includes description information of the upgrade package (such as Ha value), which is used to authenticate the upgrade package to ensure the validity of the downloaded upgrade package;
  • the file list information includes the hash value of each file included in the upgrade package, which is used to ensure the integrity of the upgrade package.
  • the first electronic device downloads the upgrade package from the third server according to the information of the upgrade package.
  • the first electronic device may send a download request to the third server, and the download request includes the information of the upgrade package obtained in S607; correspondingly, after receiving the download request, the third server searches for the corresponding upgrade package according to the information of the upgrade package package, and send a download response to the first electronic device, where the download response includes the upgrade package.
  • the first electronic device may determine whether the files included in the upgrade package are complete according to the file list information. After the first electronic device determines that the files included in the upgrade package are complete, as a possible implementation, the first electronic device can perform the second processing on the second electronic device through the connection between the first electronic device and the second electronic device.
  • the server sends the upgrade package and authentication file.
  • the second processor of the second electronic device can access the first memory of the second electronic device, and if it is determined that the reserved partition in the first memory can store the upgrade package and the authentication file file (for example, the remaining space of the reserved partition is enough to store the upgrade package and authentication file), the upgrade package and authentication file can be stored in the reserved partition, for example, the reserved partition can be located at the end of the data block device (ie After the data partition), in order to ensure the effective storage of the upgrade package and authentication files in the case of damage to the data partition. Further, after the storage is successful, the second processor of the second electronic device may send a response that the storage is successful to the first electronic device.
  • the reserved partition in the first memory can store the upgrade package and the authentication file file (for example, the remaining space of the reserved partition is enough to store the upgrade package and authentication file)
  • the upgrade package and authentication file can be stored in the reserved partition, for example, the reserved partition can be located at the end of the data block device (ie After the data partition), in order to ensure the effective storage of the upgrade package and
  • the second processor of the second electronic device determines that the reserved partition cannot store the upgrade package and the authentication file (for example, the remaining space of the reserved partition is insufficient to store the upgrade package and the authentication file), it can send the update package and the authentication file to the first electronic device.
  • the failed response is stored, and after receiving the response, the first electronic device can store the upgrade package and the authentication file in its own data partition.
  • the first electronic device may also directly store the upgrade package and the authentication file in its own memory.
  • the first electronic device may send an upgrade package to the second processor of the second electronic device through the connection between the first electronic device and the second electronic device, and then the second electronic device of the second electronic device sends an upgrade package to the second processor of the second electronic device.
  • the processor may store the upgrade package in a reserved partition of the first memory of the second electronic device, and the first electronic device may store the authentication file in its own memory.
  • the first electronic device may send the authentication file to the second processor of the second electronic device through the connection between the first electronic device and the second electronic device, and then the second processor of the second electronic device may authenticate the authentication file.
  • the rights file is stored in a reserved partition of the first memory of the second electronic device, and the first electronic device can store the upgrade package in its own memory. In this way, since the upgrade package and the authentication file can be stored in different devices, the upgrade package and the authentication file can be prevented from being replaced at the same time, and the security of the upgrade package and the authentication file can be effectively guaranteed.
  • the first electronic device controls the second electronic device to perform repair according to the upgrade package.
  • the first electronic device controls the second electronic device to repair according to the upgrade package. accomplish.
  • the second electronic device can enter the recovery mode (that is, the situation corresponding to the second electronic device is the above-mentioned situation 3)
  • the first electronic device determines that the second electronic device can enter the recovery mode, it can send a start-up upgrade command to the second electronic device.
  • the second processor of the second electronic device The third port) transmits the start-up upgrade command to the first processor of the second electronic device.
  • the first processor of the second electronic device receives the start-up upgrade command, it can enter the recovery mode, and search the data partition of the first electronic device and the data partition of the second electronic device whether there is an upgrade package, and if so, then It can be fixed according to the upgrade package.
  • the first processor of the second electronic device can read the upgrade package and the authentication file from the second electronic device.
  • the first processor of the second electronic device can read the upgrade package and the authentication file from the first electronic device; in this case, the first electronic device The data partition is equivalent to the external storage area of the second electronic device.
  • the process of repairing the first processor of the second electronic device according to the upgrade package may refer to FIG. 12 , as shown in FIG. 12 .
  • the process can include:
  • the first processor of the second electronic device authenticates the upgrade package according to the authentication file, and if the authentication is passed, S1202 may be executed, and if the authentication fails, it is determined that the upgrade fails.
  • the first processor verifies the signature of the upgrade package, and if the verification passes, S1203 may be executed, and if the verification fails, it may be determined that the upgrade fails.
  • the first processor performs a version check on the upgrade package, such as checking whether the upgrade package is an upgrade package corresponding to the current version of the first electronic device, if the check passes, S1204 may be executed, and if the check fails, it may be determined upgrade unsuccessful.
  • the first processor starts a binary upgrade.
  • the first processor parses the data of the upgrade package.
  • the first processor writes the partition images in sequence.
  • the first processor updates the version information of the first electronic device, that is, the version of the operating system is updated from V1 to V2, and the upgrade is completed.
  • FIG. 12 describes a possible upgrade process, and the specific implementation of the relevant steps in FIG. 12 may refer to the prior art.
  • the second electronic device cannot enter the recovery mode (that is, the situation corresponding to the second electronic device is the above-mentioned situation 1 or situation 2)
  • the process of performing proxy repair on the second electronic device by the first electronic device may refer to FIG. 13 . As shown in Figure 13, the process may include:
  • the first electronic device enters a proxy recovery mode, and parses the upgrade package to obtain a minimum system image file.
  • the first electronic device sends the minimum system image file to the second processor of the second electronic device through the connection between the first electronic device and the second electronic device (as shown in FIG. 8 ).
  • the second processor of the second electronic device stores the minimum system image file in the first memory (or second memory) of the second electronic device.
  • the first electronic device sends a forced startup command to the second processor of the second electronic device.
  • the second processor of the second electronic device after receiving the forced startup command, transmits the forced startup command to the first processor of the second electronic device through the third port.
  • the above S1304 is an optional step, that is to say, the first electronic device may not send a forced start command to the second processor of the second electronic device.
  • the processor can actively send a forced startup command to the first processor of the second processor through the third port.
  • the first processor of the second electronic device may run the minimum system image file to enter the recovery mode.
  • the authentication file obtained in the above S607 may also include description information of the minimum system image file. Therefore, before running the minimum system image file, the first processor may The description information is used to authenticate the minimum system image file. If the authentication is passed, the minimum system image file can be run to enter the recovery mode.
  • the first processor of the second electronic device performs repair according to the upgrade package and the authentication file in the first electronic device and/or the second electronic device.
  • step numbers of the above flow charts are only an example of the execution flow, and do not constitute a restriction on the sequence of execution of the steps, and there is no timing dependency between each other in the embodiments of the present application There is no strict order of execution between the steps.
  • not all the steps shown in each flowchart are steps that must be executed, and some steps may be added or deleted on the basis of each flowchart according to actual needs.
  • the above S606 may be executed before S607 and S608, or may be executed after S607 and S608, or may be executed simultaneously with S607 and S608.
  • the electronic device that is powered on normally can be used to perform proxy repair on the electronic device that is powered on abnormally.
  • the electronic device that is powered on normally Proxy repair is performed on the electronic device that is abnormally turned on, so that the electronic device that is abnormally turned on can be effectively repaired, and the user experience can be improved.
  • the present application further provides an electronic device, the electronic device is used to implement the method for repairing a startup abnormality as shown in FIG. 6 .
  • the electronic device 1400 includes: a processor 1401 , a memory 1402 , and a communication interface 1403 .
  • the electronic device illustrated in FIG. 14 may be the first electronic device in FIG. 6 .
  • the processor 1401 may include the first processor shown in FIG. 1 or FIG. 3 , and optionally, further include the second processor shown in FIG. 3 ; it should be noted that because the first electronic The device is an electronic device that is normally powered on. Therefore, when the first electronic device includes the first processor and the second processor, the first processor is in a normal operation state, and the second processor may be in a standby state.
  • the memory 1402 may include the first memory shown in FIG. 1 or FIG. 3 , and optionally, further include the second memory shown in FIG. 3 .
  • the communication interface 1403 may include the first port and/or the wireless communication module shown in FIG. 1 or FIG. 3 , and optionally, may further include the second port and/or the third port shown in FIG. 3 . It can be understood that the electronic device may also have various peripheral or internal hardware shown in FIG. 2 .
  • the memory 1402 may be used to store computer programs, and may also store information such as user data, an upgrade package for repairing the second electronic device, and the like.
  • a computer program may include program code including instructions for computer operation.
  • the processor 1401 (for example, may be referred to as the first processor) executes the program stored in the memory 1402, and implements the above functions through the above components, thereby finally implementing the method executed by the first electronic device in the above embodiment.
  • the processor 1401 implements the following steps in combination with the communication interface 1403: establishing a connection with a second electronic device, the second electronic device is abnormally powered on; obtaining the second electronic device Version information of the electronic device; obtaining an upgrade package for repairing the second electronic device according to the version information of the second electronic device; controlling the second electronic device to perform repair according to the upgrade package.
  • the processor 1401 is further configured to: receive a user's first operation command through the communication interface 1403, where the first operation command is used to trigger the first electronic device to The second electronic device is repaired; in response to the first operation command, an authorization file is obtained from the first server through the communication interface 1403, and the authorization file is used to indicate that the first electronic device has access to the second electronic device. Permission to make repairs.
  • the processor 1401 is specifically configured to: acquire device information of the second electronic device; send an authorization request to the first server through the communication interface 1403, where the authorization request includes all device information of the first electronic device and device information of the second electronic device; and, through the communication interface 1403, receiving an authorization response from the first server, where the authorization response includes the authorization file.
  • the authorization request further includes at least one of the following: account information of the first electronic device; product information of the first electronic device; state information of the first electronic device.
  • the processor 1401 is specifically configured to: send a packet search request to the second server through the communication interface 1403, where the packet search request includes the authorization file and the data of the second electronic device version information; and receive a packet search response from the second server through the communication interface 1403, the packet search response includes the information of the upgrade package; download the upgrade package from the third server according to the information of the upgrade package upgrade package.
  • the processor 1401 is specifically configured to: determine physical examination information of the second electronic device, where the physical examination information of the second electronic device is used to indicate whether the second electronic device can enter recovery mode; according to the medical examination information of the second electronic device, control the second electronic device to repair according to the upgrade package.
  • the processor 1401 when the medical examination information of the second electronic device is used to indicate that the second electronic device can enter the recovery mode, the processor 1401 is specifically configured to: send the communication interface 1403 to the The second electronic device sends a start-up upgrade command, so that the second electronic device parses the upgrade package according to the start-up upgrade command, and performs repairs according to the parsed upgrade package data.
  • the processor 1401 when the medical examination information of the second electronic device is used to indicate that the second electronic device cannot enter the recovery mode, the processor 1401 is specifically configured to: parse the upgrade package to obtain the minimum system image file; send the minimum system image file and a forced startup command to the second electronic device through the communication interface 1403, so that the second electronic device runs the minimum system image file for repair.
  • the processor 1401 is further configured to: receive input information from the user through the communication interface 1403, where the input information includes attribute information of the second electronic device; The attribute information is compared with the attribute information of the pre-stored electronic device supporting repair, and if the pre-stored attribute information of the electronic device supporting repair includes the attribute information of the second electronic device, prompt information is sent, and the prompt information is used to prompt The user supports the repair of the second electronic device on the first electronic device.
  • the electronic device illustrated in FIG. 14 may be the second electronic device in FIG. 6 .
  • the processor 1401 may include the first processor shown in FIG. 1 or FIG. 3 , and also include the second processor shown in FIG. 3 ; it should be noted that because the second electronic device is abnormally powered on Therefore, the first processor in the second electronic device is in an abnormal operation state, and the second processor can take over part of the functions of the first processor.
  • the memory 1402 may include the first memory illustrated in FIG. 1 or FIG. 3 , and further include the second memory illustrated in FIG. 3 .
  • the communication interface 1403 may include a first communication interface and a second communication interface, wherein the first communication interface may be used for communication between the second electronic device and other devices, for example, the first communication interface may include the one shown in FIG. 1 or FIG. 3 .
  • the illustrated first port and/or wireless communication module, etc.; the second communication interface may be used for communication between the first processor and the second processor, for example, the second communication interface may include the second port illustrated in FIG. 3 and/or third port.
  • the electronic device may also have various peripheral or internal hardware shown in FIG. 2 .
  • the memory 1402 can be used to store computer programs, and can also store information such as user data and upgrade packages.
  • a computer program may include program code including instructions for computer operation.
  • the processor 1401 (for example, it may refer to the first processor and the second processor) executes the program stored in the memory 1402, and implements the above functions through the above components, so as to finally realize the above embodiment by the second electronic device. The method performed by the device.
  • the processor 1401 when the instructions are executed by the processor 1401, the processor 1401 is made to implement the following steps in combination with the communication interface 1403: establishing a connection with the first electronic device, the first electronic device An electronic device with an electronic device powered on normally; sending the version information of the second electronic device to the first electronic device, so that the first electronic device can obtain the version information for repairing according to the version information of the second electronic device An upgrade package of the second electronic device; under the control of the first electronic device, repairing is performed according to the upgrade package.
  • the second processor is specifically configured to: receive a start-up upgrade command from the first electronic device through the first communication interface, and send a command to the first electronic device through the second communication interface
  • a processor sends the start-up upgrade command
  • the first processor is specifically configured to: parse the upgrade package according to the start-up upgrade command, and perform repairs according to the parsed upgrade package data.
  • the second processor is specifically configured to: receive a minimum system image file from the first electronic device through the first communication interface, where the minimum system image file is the first obtained by the electronic device parsing the upgrade package; sending a forced startup command to the first processor through the second communication interface; the first processor is specifically configured to: run the minimum startup command according to the forced startup command The system image file is repaired.
  • the embodiments of the present application further provide a repair system, including the first electronic device and the second electronic device in the above embodiments.
  • a repair system including the first electronic device and the second electronic device in the above embodiments.
  • the first server, the second server and the third server in the above embodiment may also be included.
  • the embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on the computer, the computer is made to execute the repair method provided by the above embodiment. .
  • the storage medium may be any available medium that the computer can access.
  • computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
  • the embodiments of the present application further provide a program product, the program product includes instructions, when the instructions are run on a computer, the computer is made to execute the repair method provided by the above embodiments.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
  • magnetic media eg, floppy disks, hard disks, magnetic tapes
  • optical media eg, DVDs
  • semiconductor media eg, solid state disks (SSDs)

Landscapes

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

Abstract

L'invention concerne un procédé et un appareil de réparation d'une activation anormale. Le procédé peut s'appliquer à un premier dispositif électronique qui s'active normalement. Lors dudit procédé, le premier dispositif électronique peut établir une connexion avec un second dispositif électronique anormalement activé. Le premier dispositif électronique peut obtenir des informations de version du second dispositif électronique et, selon les informations de version du second dispositif électronique, obtenir un progiciel de mise à niveau utilisé pour réparer le second dispositif électronique. En outre, le premier dispositif électronique commande la réalisation, par le second dispositif électronique, d'une réparation selon le progiciel de mise à niveau. Selon une telle approche, on peut effectuer une réparation par mandataire d'un dispositif électronique activé anormalement par un dispositif électronique activé normalement. Si par exemple il est impossible pour un dispositif électronique activé anormalement de passer en mode de démarrage rapide ou en mode de récupération, un dispositif électronique activé normalement peut effectuer une réparation par mandataire d'un dispositif électronique activé anormalement, ce qui permet une réparation efficace d'un dispositif électronique activé anormalement et d'améliorer l'expérience d'utilisateur.
PCT/CN2021/137550 2020-12-23 2021-12-13 Procédé et appareil de réparation d'activation anormale WO2022135215A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011535219.3A CN114661501A (zh) 2020-12-23 2020-12-23 一种开机异常的修复方法及装置
CN202011535219.3 2020-12-23

Publications (1)

Publication Number Publication Date
WO2022135215A1 true WO2022135215A1 (fr) 2022-06-30

Family

ID=82024946

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137550 WO2022135215A1 (fr) 2020-12-23 2021-12-13 Procédé et appareil de réparation d'activation anormale

Country Status (2)

Country Link
CN (1) CN114661501A (fr)
WO (1) WO2022135215A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719670A (zh) * 2022-09-30 2023-09-08 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116881039B (zh) * 2023-09-07 2024-04-19 荣耀终端有限公司 系统恢复方法、装置、可读存储介质以及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688427A (zh) * 2018-12-14 2019-04-26 广州市科虎电子有限公司 一种智能电视及其系统修复方法
CN109992453A (zh) * 2019-04-30 2019-07-09 Oppo广东移动通信有限公司 系统恢复方法及相关产品
WO2019137280A1 (fr) * 2018-01-10 2019-07-18 中兴通讯股份有限公司 Procédé de réparation d'anomalie de terminal, appareil, terminal mobile et support de stockage
CN110362328A (zh) * 2019-07-17 2019-10-22 腾讯科技(深圳)有限公司 Ota升级的方法、装置和计算机设备
CN110837430A (zh) * 2019-11-05 2020-02-25 RealMe重庆移动通信有限公司 开机异常处理方法、装置、电子设备以及存储介质
CN111813427A (zh) * 2019-04-12 2020-10-23 杭州海康威视数字技术股份有限公司 设备修复方法、装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019137280A1 (fr) * 2018-01-10 2019-07-18 中兴通讯股份有限公司 Procédé de réparation d'anomalie de terminal, appareil, terminal mobile et support de stockage
CN109688427A (zh) * 2018-12-14 2019-04-26 广州市科虎电子有限公司 一种智能电视及其系统修复方法
CN111813427A (zh) * 2019-04-12 2020-10-23 杭州海康威视数字技术股份有限公司 设备修复方法、装置、电子设备及存储介质
CN109992453A (zh) * 2019-04-30 2019-07-09 Oppo广东移动通信有限公司 系统恢复方法及相关产品
CN110362328A (zh) * 2019-07-17 2019-10-22 腾讯科技(深圳)有限公司 Ota升级的方法、装置和计算机设备
CN110837430A (zh) * 2019-11-05 2020-02-25 RealMe重庆移动通信有限公司 开机异常处理方法、装置、电子设备以及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719670A (zh) * 2022-09-30 2023-09-08 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质
CN116719670B (zh) * 2022-09-30 2024-04-12 荣耀终端有限公司 数据处理的方法、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN114661501A (zh) 2022-06-24

Similar Documents

Publication Publication Date Title
US10223132B2 (en) Synchronization between electronic devices
EP3340574B1 (fr) Procédé permettant de fournir du contenu correspondant à un accessoire et son dispositif électronique
CN109076331B (zh) 电子设备和电子设备的控制方法
WO2020192447A1 (fr) Procédé d'authentification d'autorité pour un accès à des fichiers et dispositif électronique
EP3893118A1 (fr) Récupération à partir d'une anomalie d'application
WO2022135215A1 (fr) Procédé et appareil de réparation d'activation anormale
WO2021036706A1 (fr) Procédé d'opération d'application de confiance et procédé et appareil de traitement d'informations et d'attribution de mémoire
WO2011127845A2 (fr) Procédé, système et terminal pour mise à jour de système entre des terminaux de communication mobiles
WO2020015259A1 (fr) Procédé et terminal de sauvegarde de données
WO2022048385A1 (fr) Procédé et appareil de migration d'un profil
WO2022156443A1 (fr) Procédé et appareil de connexion de produit d'infodivertissement embarqué dans un véhicule
US10257873B2 (en) Method and electronic device for providing tethering service
CN115328563B (zh) 系统启动方法及电子设备
CN110865837A (zh) 一种进行系统升级的方法和终端
US20170078269A1 (en) Method for managing application and electronic device supporting the same
CN115019418B (zh) 蓝牙车钥匙控车方法、装置和存储介质
WO2022063037A1 (fr) Procédé et appareil d'installation de paquet correctif
WO2022052766A1 (fr) Procédé et appareil d'adaptation de paquet de thème
CN113468606A (zh) 一种应用程序的访问方法及电子设备
WO2020172874A1 (fr) Procédé de traitement de fichier et dispositif terminal
WO2022166502A1 (fr) Procédé et système de protection de données, support et dispositif électronique
CN114048469B (zh) 目录操作管理方法、电子设备及可读存储介质
KR20190115361A (ko) 외부 전자 장치의 키와 관련된 어플리케이션을 관리하는 전자 장치 및 전자 장치의 동작 방법
CN114138343A (zh) 一种终端及终端启动方法
CN114968657A (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: 21909212

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21909212

Country of ref document: EP

Kind code of ref document: A1