System repair method, electronic device, and architecture

By establishing a proxy repair relationship between electronic devices and using the proxy repair license file and system information to perform a full partition copy, the problem of insufficient convenience in system repair when electronic devices fail to boot is solved, and a more efficient system repair effect is achieved.

CN114968658BActive Publication Date: 2026-02-03HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110588637.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-02-26
Filing Date
2021-05-28
Publication Date
2026-02-03
Estimated Expiration
2041-05-28

AI Technical Summary

Technical Problem

When electronic devices fail to boot properly due to power-on malfunctions, they cannot enter normal working mode. Existing system repair methods are not convenient enough in many scenarios.

Method used

By establishing a proxy repair relationship between electronic devices of the same or similar type, and utilizing the proxy repair authorization file and system information, a full partition copy is achieved, triggering the self-repair mode, and sending and overwriting the damaged partition data to restore the system.

Benefits of technology

It increases the convenience and success rate of system repair for electronic devices in more scenarios, and improves the security and speed of repair.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968658B_ABST
    Figure CN114968658B_ABST
Patent Text Reader

Abstract

The application provides a new system repair method, electronic device and architecture. The electronic device can authorize a system repair permission for a trusted electronic device, increasing the system repair scenarios. If two mutually trusted electronic devices belong to the same series of electronic devices, one electronic device can copy its own data to the other electronic device to complete system repair. The embodiments of the application mention a scheme that is beneficial to increase the system repair mode, so that the electronic device can complete system repair in more scenarios, and is beneficial to increase the convenience of repairing the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic devices, and more specifically, to a method, electronic device, and architecture for system repair. Background Technology

[0002] When an electronic device malfunctions during startup, it may fail to boot properly and thus be unable to enter normal operating mode, such as failing to display the home screen. System repair methods can usually restore the device's operating system to normal operation.

[0003] There are several methods for system repair. For example, an electronic device can display a system repair interface, respond to user gestures, and execute system repair methods. Another example is that an electronic device can establish a data connection with a computer; the computer can respond to user actions and perform proxy repair on the electronic device; under the computer's proxy repair, the electronic device can complete the system repair. Yet another example is that a user can transfer the electronic device to a repair center; the repair center can repair the electronic device using methods such as high-level repair privileges and disassembly. Summary of the Invention

[0004] This application provides a new system repair method, electronic device, and architecture, with the aim of increasing the ways to repair systems, enabling electronic devices to complete system repairs in more scenarios, and improving the convenience of repairing electronic devices.

[0005] Firstly, a system repair method is provided, including:

[0006] The first electronic device obtains the agent repair authorization file from the second electronic device;

[0007] The first electronic device determines the system information of the first electronic device;

[0008] If the agent repair authorization file is successfully verified, the first electronic device obtains the system information of the second electronic device, and the system information of the second electronic device corresponds to the system information of the first electronic device;

[0009] When the system information of the first electronic device and the system information of the second electronic device meet the conditions for a full partition copy, the first electronic device sends the data of the first partition to the second electronic device, where the first partition is a partition of the first electronic device.

[0010] The proxy repair authorization document can establish a proxy repair relationship between the first electronic device and the second electronic device, which is beneficial to increase the ways of system repair, enabling electronic devices to complete system repair in more scenarios, and increasing the convenience of repairing electronic devices.

[0011] If the system information of the first electronic device and the system information of the second electronic device meet the conditions for a full partition copy, it means that the data stored in the first electronic device can be directly used to restore the system of the second electronic device. By copying data between two electronic devices of the same or similar type, system repair of electronic devices can be completed, which increases the convenience of repairing electronic devices.

[0012] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: the first electronic device triggering the second electronic device to enter a self-repair mode.

[0013] If the partition corresponding to the system self-repair mode of the second electronic device is damaged, the first electronic device can send data from the undamaged partition to the second electronic device, overwriting the data in the damaged partition of the second electronic device, thus restoring the damaged partition of the second electronic device to normal. The second electronic device can then perform the system self-repair function normally, and its system can enter normal mode.

[0014] In conjunction with the first aspect, in some implementations of the first aspect, the system information is of any of the following types: system version number, device model, board number, chip identifier.

[0015] By examining various system information, including the system information of the first electronic device and the system information of the second electronic device, and determining whether they meet the conditions for a full partition copy, the success rate of repairing electronic devices can be improved.

[0016] In conjunction with the first aspect, in certain implementations of the first aspect, the system information of the first electronic device and the system information of the second electronic device satisfy the conditions for a full partition copy, including:

[0017] The system information of the first electronic device and the system information of the second electronic device belong to the same series of two system information.

[0018] The system information of the first electronic device and the system information of the second electronic device belong to the same series, meaning that the system differences between the two electronic devices are relatively small. Therefore, using the partition data of the first electronic device to repair the system of the second electronic device is beneficial to improving the success rate of system repair.

[0019] In conjunction with the first aspect, in certain implementations of the first aspect, the system information of the first electronic device and the system information of the second electronic device satisfy the conditions for a full partition copy, including any one of the following:

[0020] The first electronic device has multiple first system information, and the second electronic device has multiple second system information. The multiple first system information and the multiple second system information correspond one-to-one. Each first system information and its corresponding second system information belong to two system information of the same series. The multiple first system information corresponds one-to-one with all the preset system information in the full partition copy condition.

[0021] The first electronic device has n third system information, and the second electronic device has n fourth system information. The n third system information and the n fourth system information are in one-to-one correspondence. Each third system information and its corresponding fourth system information belong to two system information of the same series. n is greater than the preset number of all preset system information.

[0022] The first electronic device has first target system information, and the second electronic device has second target system information corresponding to the first target system information. The first target system information has a higher priority than the preset priority among all preset system information. The first target system information and the second target system information belong to the same series of two system information.

[0023] The more system information that is the same between the first electronic device and the second electronic device, the more critical the shared system information is. This means that the differences between the systems of the first electronic device and the second electronic device can be smaller, which is conducive to improving the success rate of system repair of electronic devices.

[0024] In conjunction with the first aspect, in certain implementations of the first aspect, the first electronic device obtains the proxy repair authorization file of the second electronic device, including:

[0025] The first electronic device obtains the agent repair authorization file from the server or the second electronic device.

[0026] The proxy repair license can be obtained from either the server or the second electronic device, which improves the convenience of system repair licenses and thus facilitates the increase of system repair methods. This allows electronic devices to complete system repair in more scenarios, thereby increasing the convenience of repairing electronic devices.

[0027] In conjunction with the first aspect, in some implementations of the first aspect, the proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

[0028] The authorized repair service document includes a unique hardware identifier for the electronic device, which helps to enhance the legitimacy of the authorized repair service.

[0029] In conjunction with the first aspect, in certain implementations of the first aspect, before the first electronic device sends data of the first partition to the second electronic device, the method further includes:

[0030] The first electronic device acquires the partition information of the second electronic device;

[0031] The first electronic device determines the first partition based on the partition information.

[0032] Partition information helps to narrow down the scope of the first partition, which in turn helps to reduce the amount of data interaction between the first electronic device and the second electronic device, and helps to speed up system repair.

[0033] In conjunction with the first aspect, in certain implementations of the first aspect, the partitioning information includes at least one of the following:

[0034] Information about the damaged partition, partition hash value, and boot error code.

[0035] Partition information can reflect the partition where the second electronic device was damaged.

[0036] In conjunction with the first aspect, in some implementations of the first aspect, the first partition includes at least a portion of the boot partition of the first electronic device.

[0037] Secondly, a system repair method is provided, including:

[0038] The first electronic device obtains the agent repair authorization file and system information of the second electronic device;

[0039] The first electronic device sends the agent repair authorization file and the system information of the second electronic device to the server;

[0040] If the proxy repair authorization file is successfully verified, the first electronic device obtains the system repair data packet of the second electronic device from the server. The system repair data packet is determined based on the system information of the second electronic device.

[0041] The first electronic device sends the data of the system repair data packet to the second electronic device.

[0042] A proxy repair authorization document can establish a proxy repair relationship between a first electronic device and a second electronic device. This improves system repair methods, enabling electronic devices to complete system repairs in more scenarios and increasing the convenience of repairing electronic devices.

[0043] The server can verify the legitimacy of the proxy repair authorization file, which helps improve the security of proxy repair of the second electronic device by the first electronic device.

[0044] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes: the first electronic device triggering the second electronic device to enter a self-repair mode.

[0045] If the partition corresponding to the system self-repair mode in the second electronic device is damaged, the first electronic device can send the system-repaired data to the second electronic device, overwriting the data in the damaged partition of the second electronic device, thus restoring the damaged partition of the second electronic device to normal. The second electronic device can then perform the system self-repair function normally, and its system can enter normal mode.

[0046] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:

[0047] The first electronic device triggers the second electronic device to enter the proxy repair mode, and performs proxy repair on the second electronic device according to the system repair data packet.

[0048] The second electronic device can enter a proxy repair mode and, under the control of the first electronic device, repair its system. In proxy repair mode, the second electronic device can load system version data packets under the control of the first electronic device.

[0049] In conjunction with the second aspect, in some implementations of the second aspect, the proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

[0050] The authorized repair service document includes a unique hardware identifier for the electronic device, which helps to enhance the legitimacy of the authorized repair service.

[0051] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:

[0052] The first electronic device sends an instruction message to the server, the instruction message indicating that the repair is complete.

[0053] Based on this instruction, the server can delete the record of the proxy repair license file. Previously used proxy repair license files can then become invalid.

[0054] In conjunction with the second aspect, in some implementations of the second aspect, the data of the system repair data packet is stored at the end of the data partition of the second electronic device.

[0055] Placing the data storage partition of the system repair data packet at the end of the data partition facilitates subsequent management of the data partition. For example, it makes it easier to delete the data in the system repair data packet and reduce the impact on other data in the data partition.

[0056] Thirdly, a system repair method is provided, including:

[0057] The second electronic device sends a proxy repair authorization file to the first electronic device;

[0058] If the agent repair authorization file is successfully verified, the second electronic device authorizes the first electronic device to obtain the system information of the second electronic device;

[0059] The second electronic device obtains system repair data from the first electronic device;

[0060] The second electronic device performs system repair based on the system repair data.

[0061] The proxy repair authorization document can establish a proxy repair relationship between the first electronic device and the second electronic device, which is beneficial to increase the ways of system repair, enabling electronic devices to complete system repair in more scenarios, and increasing the convenience of repairing electronic devices.

[0062] In conjunction with the third aspect, in certain implementations of the third aspect, the second electronic device obtains system repair data from the first electronic device, including:

[0063] When the system information of the first electronic device and the system information of the second electronic device meet the conditions for full partition copying, the second electronic device obtains the data of the first partition from the first electronic device. The first partition is the partition of the first electronic device, and the data in the first partition is the system repair data.

[0064] If the system information of the first electronic device and the system information of the second electronic device meet the conditions for a full partition copy, it means that the data stored in the first electronic device can be directly used to restore the system of the second electronic device. By copying data between two electronic devices of the same or similar type, system repair of electronic devices can be completed, which increases the convenience of repairing electronic devices.

[0065] In conjunction with the third aspect, in some implementations of the third aspect, the system information is of any of the following types: system version number, device model, board number, chip identifier.

[0066] By examining various system information, including the system information of the first electronic device and the system information of the second electronic device, and determining whether they meet the conditions for a full partition copy, the success rate of repairing electronic devices can be improved.

[0067] In conjunction with the third aspect, in certain implementations of the third aspect, the system information of the first electronic device and the system information of the second electronic device satisfy the conditions for a full partition copy, including:

[0068] The system information of the first electronic device and the system information of the second electronic device belong to the same series of two system information.

[0069] The system information of the first electronic device and the system information of the second electronic device belong to the same series, meaning that the system differences between the two electronic devices are relatively small. Therefore, using the partition data of the first electronic device to repair the system of the second electronic device is beneficial to improving the success rate of system repair.

[0070] In conjunction with the third aspect, in certain implementations of the third aspect, the system information of the first electronic device and the system information of the second electronic device satisfy the conditions for a full partition copy, including any one of the following:

[0071] The first electronic device has multiple first system information, and the second electronic device has multiple second system information. The multiple first system information and the multiple second system information correspond one-to-one. Each first system information and its corresponding second system information belong to two system information of the same series. The multiple first system information corresponds one-to-one with all the preset system information in the full partition copy condition.

[0072] The first electronic device has n third system information, and the second electronic device has n fourth system information. The n third system information and the n fourth system information are in one-to-one correspondence. Each third system information and its corresponding fourth system information belong to two system information of the same series. n is greater than the preset number of all preset system information.

[0073] The first electronic device has first target system information, and the second electronic device has second target system information corresponding to the first target system information. The first target system information has a higher priority than the preset priority among all preset system information. The first target system information and the second target system information belong to the same series of two system information.

[0074] The more system information that is the same between the first electronic device and the second electronic device, the more critical the shared system information is. This means that the differences between the systems of the first electronic device and the second electronic device can be smaller, which is conducive to improving the success rate of system repair of electronic devices.

[0075] In conjunction with the third aspect, in some implementations of the third aspect, before the second electronic device obtains data from the first electronic device, the method further includes:

[0076] The second electronic device sends its partition information to the first electronic device, the first partition being determined based on the partition information.

[0077] Partition information helps to narrow down the scope of the first partition, which in turn helps to reduce the amount of data interaction between the first electronic device and the second electronic device, and helps to speed up system repair.

[0078] In conjunction with the third aspect, in certain implementations of the third aspect, the partitioning information includes at least one of the following:

[0079] Information about the damaged partition, partition hash value, and boot error code.

[0080] Partition information can reflect the partition where the second electronic device was damaged.

[0081] In conjunction with the third aspect, in some implementations of the third aspect, the system repair data corresponds to the system repair data packet sent by the server.

[0082] The system repair data is distributed by the server, which increases the likelihood that the system repair data is applicable to the second electronic device, thereby improving the success rate and flexibility of the system repair.

[0083] In conjunction with the third aspect, in some implementations of the third aspect, before the second electronic device sends the proxy repair authorization file to the first electronic device, the method further includes:

[0084] The second electronic device obtains the verification information from the first electronic device;

[0085] The second electronic device sends a proxy repair authorization file to the first electronic device, including:

[0086] If the information to be verified matches the preset verification information, the second electronic device sends the proxy repair authorization file to the first electronic device.

[0087] By matching the information to be verified with the preset verification information, it is beneficial to quickly establish a proxy repair relationship between the first terminal device and the second electronic device, which helps to improve the flexibility of system repair of the second electronic device.

[0088] In conjunction with the third aspect, in certain implementations of the third aspect, the information to be verified includes at least one of the following:

[0089] The first electronic device contains account information, fingerprint information, and authorization code.

[0090] Various types of verification information can be used to verify whether the first and second electronic devices are suitable for establishing a proxy repair relationship, which helps to improve the security of repairing electronic devices.

[0091] In conjunction with the third aspect, in some implementations of the third aspect, the proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

[0092] The authorized repair service document includes a unique hardware identifier for the electronic device, which helps to enhance the legitimacy of the authorized repair service.

[0093] Fourthly, a system repair method is provided, including:

[0094] The server obtains the agent repair authorization file for the second electronic device and the system information of the second electronic device from the first electronic device;

[0095] The server verifies whether the agent repair authorization file is valid;

[0096] If the proxy repair authorization file is successfully verified, the server determines the system repair data package for the second electronic device based on the system information of the second electronic device;

[0097] The server sends the system repair data packet to the first electronic device.

[0098] A proxy repair authorization document can establish a proxy repair relationship between a first electronic device and a second electronic device. This improves system repair methods, enabling electronic devices to complete system repairs in more scenarios and increasing the convenience of repairing electronic devices.

[0099] The server can verify the legitimacy of the proxy repair authorization file, which helps improve the security of proxy repair of the second electronic device by the first electronic device.

[0100] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

[0101] The authorized repair service document includes a unique hardware identifier for the electronic device, which helps to enhance the legitimacy of the authorized repair service.

[0102] In conjunction with the fourth aspect, in certain implementations of the fourth aspect, the server verifies the validity of the proxy repair authorization file, including:

[0103] The server verifies whether the agent repair authorization file is associated with the first electronic device and / or the second electronic device.

[0104] The server can verify the association between the proxy repair license file and the first electronic device, and / or the association between the proxy repair license file and the second electronic device, to further enhance the security of the proxy repair license file. In other words, the repair license file can be a license file specifically for the first electronic device and / or the second electronic device.

[0105] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the method further includes:

[0106] The server obtains indication information from the first electronic device, the indication information being used to indicate that the repair is complete;

[0107] The server, based on the instruction information, cancels the validity of the proxy repair authorization file.

[0108] Based on this instruction, the server can delete the record of the proxy repair license file. Previously used proxy repair license files can be invalidated accordingly, further enhancing the security of the proxy repair license files.

[0109] Fifthly, a method for system repair is provided, including:

[0110] The second electronic device sends the agent repair authorization file and the system information of the second electronic device to the first electronic device;

[0111] The second electronic device obtains system repair data packets from the first electronic device.

[0112] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the method further includes:

[0113] The second electronic device enters self-repair mode or proxy repair mode when triggered by the first electronic device.

[0114] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

[0115] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the data of the system repair data packet is stored at the end of the data partition of the second electronic device.

[0116] A sixth aspect provides an electronic device including a processor, a memory, and a transceiver, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory; wherein the processor is used to execute the method described in any of the possible implementations of the first to fifth aspects described above.

[0117] A seventh aspect provides an electronic device, including a first electronic device and a second electronic device, wherein the first electronic device is configured to perform the method described in any possible implementation of the first aspect, and the second electronic device is configured to perform the method described in any possible implementation of the third aspect.

[0118] Eighthly, an electronic device is provided, comprising a first electronic device, a second electronic device, and a server, wherein the first electronic device is configured to perform the method described in any possible implementation of the second aspect, the second electronic device is configured to perform the method described in any possible implementation of the fifth aspect, and the server is configured to perform the method described in any possible implementation of the fourth aspect.

[0119] A ninth aspect provides a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described in any of the possible implementations of the first to fifth aspects.

[0120] In a tenth aspect, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform the method described in any of the possible implementations of the first to fifth aspects described above. Attached Figure Description

[0121] Figure 1 This is a schematic structural diagram of an electronic device provided in an embodiment of this application.

[0122] Figure 2 This is a schematic structural diagram of another electronic device provided in the embodiments of this application.

[0123] Figure 3 This is a software structure block diagram of an electronic device provided in an embodiment of this application.

[0124] Figure 4 This is a schematic interactive diagram illustrating a system repair method provided in an embodiment of this application.

[0125] Figure 5 This is a schematic flowchart illustrating a system repair method provided in an embodiment of this application.

[0126] Figure 6This is a schematic flowchart illustrating a method for copying partitioned data provided in an embodiment of this application.

[0127] Figure 7 This is a schematic flowchart illustrating another method for copying partitioned data provided in an embodiment of this application.

[0128] Figure 8 This is a schematic flowchart illustrating another method for copying partitioned data provided in the embodiments of this application.

[0129] Figure 9 This is a schematic interactive diagram illustrating another system repair method provided in the embodiments of this application.

[0130] Figure 10 This is a schematic flowchart illustrating another system repair method provided in the embodiments of this application.

[0131] Figure 11 This is a schematic interactive diagram illustrating another system repair method provided in the embodiments of this application.

[0132] Figure 12 This is a schematic flowchart illustrating another system repair method provided in the embodiments of this application.

[0133] Figure 13 This is a system repair scenario provided in the embodiments of this application.

[0134] Figure 14 This is a schematic structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0135] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0136] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0137] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0138] The following describes an electronic device provided in embodiments of this application, a user interface for such an electronic device, and embodiments for using such an electronic device. In some embodiments, the electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or music player, such as a mobile phone, tablet computer, wearable electronic device with wireless communication capabilities (such as a smartwatch), etc. Exemplary embodiments of the portable electronic device include, but are not limited to, carrying... Alternatively, it could be a portable electronic device with another operating system. The aforementioned portable electronic device could also be other portable electronic devices, such as laptops. It should also be understood that in some other embodiments, the aforementioned electronic device may not be a portable electronic device, but rather a desktop computer.

[0139] For example, Figure 1 , Figure 2 A schematic diagram of the structure of electronic device 100 is shown. Electronic device 100 may include a processing module 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0140] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more than Figure 1 , Figure 2 The number of components shown may be more or less, or some components may be combined, or some components may be separated, or different component arrangements may be made. Figure 1 , Figure 2The components shown can be implemented in hardware, software, or a combination of both. Optionally, in other examples, the electronic device 100 may also include other hardware, such as at least one of the following: a charging management module, an audio module, a speaker, a receiver, a microphone, a headphone jack, a sensor module, buttons, a motor, an indicator, and a camera.

[0141] The processing module 110 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). The controller can generate operation control signals based on the instruction opcode and timing signals to control instruction fetching and execution.

[0142] In some other embodiments, the processing module 110 may also include a memory for storing instructions and data. Exemplarily, the memory in the processing module 110 may be a cache memory. This memory can store instructions or data that the processing module 110 has just used or that are being used repeatedly. If the processing module 110 needs to reuse the instruction or data, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processing module 110, and thus improves the efficiency of the electronic device 100 in processing data or executing instructions.

[0143] like Figure 1 As shown, the processing module 110 may include a first processor 111 and a second processor 112. The first processor 111 may be, for example, a main processor, and the second processor 112 may be, for example, a secondary processor. The different processing units may be independent components or integrated into one or more processors. Figure 1 In the example shown, the first processor 111 and the second processor 112 can be integrated into a processing module 110.

[0144] Electronic device 100 may also include one or more processing modules 110. For example... Figure 2As shown, the electronic device 100 may include a first processor 111 and a second processor 112. The first processor 111 may correspond to a first processing module, and the second processor 112 may correspond to a second processing module. The first processing module and the second processing module can be two different processing modules. The first processor 111 may be, for example, a main processor, such as an application processor (AP). The second processor 112 may be, for example, a secondary processor, such as a microcontroller unit (MCU).

[0145] Optional, Figure 2 The second processor 112 shown can, for example, run an IoT operating system (such as liteOS). The second processor 112 can, for example, handle security verification in abnormal scenarios (such as verification of agent repair permissions), port management, and shared storage area management. The second processor 112 can also provide authorized access permissions to the first processor 111. For example, the second processor 112 can have read-only security partition permissions for the first processor 111. The memory of the second processor 112 can store security backup information such as the dynamic encryption key of the first processor 111.

[0146] In some embodiments, the processing module 110 may include one or more interfaces. These interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a universal synchronous / asynchronous receiver / transmitter (USART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a secure digital input / output (SDIO) interface, a SIM card interface, and / or a USB interface, etc. The USB interface 130 is a USB standard-compliant interface, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used for data transfer between the electronic device 100 and peripheral devices. The USB port 130 can also be used to connect headphones and play audio through the headphones.

[0147] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0148] The charging management module receives charging input from a charger, which can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module receives charging input from the wired charger via USB interface 130. In some wireless charging embodiments, the charging management module receives wireless charging input via the wireless charging coil of electronic device 100. While charging battery 142, the charging management module can also supply power to the electronic device via power management module 141.

[0149] The power management module 141 connects the battery 142, the charging management module, and the processing module 110. The power management module 141 receives input from the battery 142 and / or the charging management module, supplying power to the processing module 110, internal memory 121, external memory, display screen 194, camera, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processing module 110. In other embodiments, the power management module 141 and the charging management module may be housed in the same device.

[0150] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0151] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0152] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processing module 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processing module 110 may be housed in the same device.

[0153] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processing module 110. The wireless communication module 160 can also receive signals to be transmitted from processing module 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0154] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processing module 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0155] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or more display screens 194.

[0156] The display screen 194 of electronic device 100 can be a flexible screen. Currently, flexible screens are attracting much attention due to their unique characteristics and enormous potential. Compared to traditional screens, flexible screens are highly flexible and bendable, providing users with new interaction methods based on their bendability and meeting more user needs for electronic devices. For electronic devices equipped with foldable displays, the foldable display can switch between a small screen in a folded state and a large screen in an unfolded state at any time. Therefore, users are increasingly using split-screen functionality on electronic devices equipped with foldable displays.

[0157] Electronic device 100 can perform shooting functions through ISP, camera, video codec, GPU, display 194 and application processor.

[0158] An ISP (Image Signal Processor) processes data fed back from the camera. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's image sensor. The light signal is converted into an electrical signal, which is then transmitted to the ISP for processing, transforming it into a visible image. The ISP can also perform algorithmic optimizations on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature for the shooting scene. In some embodiments, the ISP can be integrated into the camera itself.

[0159] A camera is used to capture still images or videos. An object is projected onto a photosensitive element by an optical image generated through a lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP (Internet Service Provider) for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP (Digital Signal Processor) for processing. The DSP converts the digital image signal into image signals in standard formats such as RGB and YUV. In some embodiments, the electronic device 100 may include one or more cameras.

[0160] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0161] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0162] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0163] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processing module 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0164] The internal memory 121 can be used to store one or more computer programs, which include instructions. The processing module 110 can execute the instructions stored in the internal memory 121, thereby causing the electronic device 100 to perform the screen-off display method provided in some embodiments of this application, as well as various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system; it may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data created during the use of the electronic device 100 (such as photos, contacts, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), etc. In some embodiments, the processing module 110 can execute the instructions stored in the internal memory 121 and / or instructions stored in a memory disposed in the processing module 110, thereby causing the electronic device 100 to perform the screen-off display method provided in the embodiments of this application, as well as other applications and data processing. Electronic device 100 can implement audio functions through audio modules, speakers, receivers, microphones, headphone jacks, and application processors, such as music playback and recording.

[0165] In some examples, the electronic device 100 may also include a sensor module. The sensor module may include, for example, at least one of the following: a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0166] The pressure sensor is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 194. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may consist of at least two parallel plates with conductive material. When force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 100 may also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different intensities may correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.

[0167] A gyroscope sensor can be used to determine the motion attitude of an electronic device 100. In some embodiments, the gyroscope sensor can determine the angular velocity of the electronic device 100 around three axes (i.e., the X, Y, and Z axes). The gyroscope sensor can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the electronic device 100's movement, calculates the distance the lens module needs to compensate based on the angle, and allows the lens to counteract the movement of the electronic device 100 through reverse motion, thus achieving image stabilization. The gyroscope sensor can also be used in navigation and motion-sensing gaming scenarios.

[0168] An accelerometer can detect the magnitude of acceleration of an electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and is applied to applications such as screen orientation switching and pedometers.

[0169] An ambient light sensor is used to detect ambient light levels. Electronic device 100 can adaptively adjust the brightness of its display screen 194 based on the detected ambient light level. The ambient light sensor can also be used to automatically adjust the white balance when taking a picture. Furthermore, the ambient light sensor can work in conjunction with a proximity sensor to detect whether electronic device 100 is in a pocket, preventing accidental touches.

[0170] A fingerprint sensor is used to collect fingerprints. Electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0171] A temperature sensor is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor to execute a temperature handling strategy. For example, when the temperature reported by the temperature sensor exceeds a threshold, the electronic device 100 performs thermal protection by reducing the performance of a processor located near the temperature sensor to reduce power consumption. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to prevent abnormal shutdown of the electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown caused by low temperature.

[0172] A touch sensor, also known as a "touch panel," can be located on the display screen 194. The touch sensor and display screen 194 together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor may also be located on the surface of the electronic device 100, in a different position than the display screen 194.

[0173] Electronic devices may also include buttons, such as power buttons and volume buttons. These buttons can be mechanical or touch-sensitive. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100.

[0174] Figure 3 This is a software structure block diagram of an electronic device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0175] like Figure 3 As shown, the application package can include human-computer interaction applications, gallery, calendar, calling, map, navigation and other applications.

[0176] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0177] like Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0178] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0179] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0180] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0181] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0182] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0183] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0184] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0185] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0186] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0187] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0188] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0189] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0190] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0191] A 2D graphics engine is a graphics engine for 2D drawing.

[0192] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0193] System repair methods for electronic devices can include self-repair and proxy repair. The following example, using mobile phone repair, illustrates examples of self-repair and proxy repair.

[0194] If a phone fails to function properly after powering on, meaning its system cannot enter normal mode (e.g., load or display the main interface), the phone may be malfunctioning. The phone can enter a system self-repair mode and display an interface corresponding to this mode. This interface may include one or more self-repair controls, each corresponding to one or more self-repair functions. These functions may include at least one of the following: downloading and repairing the latest system version, emergency data backup, factory reset, or reboot. Responding to user actions on the controls, the phone can execute the corresponding self-repair function.

[0195] Downloading the latest system version and fixing functionalities could mean that the phone retrieves the latest system version data packet from a server and uses that packet to repair the system. This data packet can be system data.

[0196] Emergency data backup functionality can refer to backing up user data stored on a data partition, provided the data partition is not corrupted. Backups can be made to servers, external storage devices, or backup partitions on the phone. The data partition can be used to store user data. User data can refer to data related to the user. User data may not include system data. System data can include data required for normal system operation and repair. The phone's storage may also include other partitions, such as a boot partition. Data in the boot partition may be system data.

[0197] A factory reset function can refer to, for example, clearing the user data stored on the phone and restoring the system to its initial state.

[0198] The restart function can refer to, for example, re-executing the phone's boot process, which has a certain chance of recovering from errors in the original boot process.

[0199] If a phone's system self-repair mode malfunctions, it needs to be taken to a repair center to continue repairs. Possible reasons for a malfunction in the system self-repair mode are as follows.

[0200] In some cases, the phone will be unable to enter system self-repair mode if the partition on which the system self-repair mode depends is corrupted. For example, the boot partition may become corrupted when the system version data package (such as an image file in the data package) loads abnormally or is interrupted; or the boot partition may become corrupted when there is a data jump in the phone's memory.

[0201] In other examples, the phone will be unable to enter system self-repair mode if an unknown error (bug) occurs in the startup process upon which the system self-repair mode depends. For example, system problems such as software crashes, system loops, or process crashes may occur when the phone is executing the self-repair or boot process.

[0202] In some other examples, if the phone is abnormally interrupted during the execution of the system self-repair process or system upgrade process (such as by the user pressing and holding the power button), after the phone is restarted, the new image loaded by the system and the old image cannot match each other. The phone cannot execute the system self-repair process or system upgrade process again, so the phone can neither run normally nor enter the system self-repair mode.

[0203] If a phone fails to boot into normal mode (e.g., loading or displaying the main interface) after powering on, the phone may be malfunctioning. A data connection can be established between the phone and computer, allowing for proxy system repair. The computer can also instruct the phone to enter proxy repair mode. Once in proxy repair mode, both the computer and phone will display the interface corresponding to that mode. The computer can obtain the phone's system version information via the data connection. Based on this information, the computer can retrieve the phone's system version data package from a server. The computer can then transmit this data package to the phone via the data connection. The phone can then install the system version data package obtained from the computer, thus completing the proxy system repair.

[0204] If your phone's system proxy repair mode malfunctions, you'll need to take it to a repair center to continue repairs. Possible reasons for a malfunction in the system proxy repair mode are as follows.

[0205] In some cases, the phone will be unable to enter system proxy repair mode if the partition on which the system proxy repair mode depends is corrupted. For example, the boot partition may become corrupted when the system version data package (such as an image file in the data package) loads abnormally or is interrupted; or the boot partition may become corrupted when there is a data jump in the phone's memory.

[0206] In other examples, the phone will be unable to enter system proxy repair mode if an unknown error (bug) occurs in the startup process upon which the system proxy repair mode depends. For example, when the phone enters the proxy repair process, system problems such as software crashes, system loops, or process crashes may occur.

[0207] In some other examples, if the phone is abnormally interrupted during the execution of the system proxy repair process or system upgrade process (such as being interrupted by the user pressing and holding the power button), after the phone is restarted, the new image loaded by the system and the old image cannot match each other. The phone cannot execute the system proxy repair process or system upgrade process again, so the phone cannot run normally and cannot enter the system proxy repair mode.

[0208] This application provides a new system repair scenario. The aim is to provide a novel repair method that can be applied to this new repair scenario, thereby improving the repair flexibility of electronic devices.

[0209] Figure 4 This illustrates a scenario where a system agent performs repair. For example... Figure 4As shown, the first electronic device can perform system repair on behalf of the second electronic device. The second electronic device can accept the proxy of the first electronic device to perform system repair; and, the second electronic device can perform system self-repair under the proxy of the first electronic device. The first electronic device may be, for example, Figure 1 or Figure 2 The electronic device shown. The second electronic device could be, for example, the electronic device... Figure 1 or Figure 2 The electronic device shown.

[0210] Figure 5 A schematic flowchart of a system repair method is shown. Figure 5 The method shown can be applied to Figure 4 In the system repair scenario shown below. (Further details are needed.) Figure 4 , Figure 5 This paper describes an embodiment of a system proxy repair provided by the embodiments of this application.

[0211] 501, The first electronic device establishes a data connection with the second electronic device.

[0212] Accordingly, the second electronic device establishes a data connection with the first electronic device.

[0213] The first electronic device can be, for example, a normally functioning electronic device. Depending on the specific circumstances of the system's proxy repair, the second electronic device can be either a normally functioning or normally malfunctioning electronic device. That is, the first electronic device can establish a data connection with the second electronic device even when the second electronic device is not functioning properly; conversely, the first electronic device can also establish a data connection with the second electronic device even when the second electronic device is functioning properly.

[0214] The data connection established between the first electronic device and the second electronic device can be, for example, a wired data connection or a wireless data connection.

[0215] In one possible example, combining Figure 1 or Figure 2 It can be seen that the first electronic device can establish a wired data connection with the second electronic device through the USB interface of the first electronic device and the USB interface of the second electronic device.

[0216] In another possible example, combining Figure 1 or Figure 2 It is understood that the first electronic device can establish a wireless data connection with the second electronic device through the wireless communication module or mobile communication module of the first electronic device and the wireless communication module or mobile communication module of the second electronic device.

[0217] Combination Figure 1 , Figure 2As shown in the example, the second electronic device may include a first processor and a second processor. The first processor may be a main processor, and the second processor may be a secondary processor. The security level of the second processor may be higher than that of the first processor. The first processor may include a first port and a second port, and the first port may be an external port of the first processor (e.g.,...). Figure 1 , Figure 2 The second port can be an internal port for transferring data between the first and second processors, or a direct connection port between the first and second processors. The second processor may include a third port and a fourth port. The third port may be an external port of the second processor (e.g.,...). Figure 1 , Figure 2 The fourth port can be an internal port for transmitting data between the first and second processors, or a direct connection port between the first and second processors. The second port can be directly connected to the fourth port.

[0218] If the first port responds successfully, the first electronic device (e.g., the external port of the main processor of the first electronic device) can establish a data connection with the first port, so that the first electronic device can interact with the first processor of the second electronic device.

[0219] In the event of a failure to respond at the first port, the first electronic device (e.g., the external port of its main processor or auxiliary processor) can establish a data connection with the third port of the second electronic device. For example, data exchanged between the first and second electronic devices can be transmitted to the first processor of the second electronic device via its third port, second processor, fourth port, or second port. The third port can serve as a backup port for interaction between the first and second electronic devices, which helps improve the success rate of the first electronic device's proxy repair of the second electronic device.

[0220] In some possible examples, to ensure the security of the second processor, the first electronic device can request a temporary port authorization certificate from the server. The temporary port authorization certificate is used to authorize the first electronic device to establish a data connection with the third port of the second processor. The second processor can be a highly secure processor of the second electronic device.

[0221] 502, The first electronic device obtains the agent repair authorization file of the second electronic device.

[0222] Optionally, the proxy repair license file can be unique.

[0223] In one possible scenario, the second electronic device can send the proxy repair authorization file to the first electronic device. This authorization file establishes a proxy repair relationship between the two devices. In this case, the second electronic device may not be malfunctioning. The second electronic device can respond to user commands, authorizing the first electronic device to perform proxy repairs on its system.

[0224] Optionally, the proxy repair relationship can be temporarily effective.

[0225] Optionally, the proxy repair authorization file can also be a proxy repair authorization file obtained by the second electronic device from the server. In this case, the proxy repair relationship between the first electronic device and the second electronic device can be authenticated by the server.

[0226] The following describes some possible examples of establishing a proxy repair relationship between a first electronic device and a second electronic device.

[0227] For example, a user can input a preset authorization code into a second electronic device. This preset authorization code can be stored, for example, in the second electronic device's secure memory or secondary memory (e.g., a microcontroller unit (MCU)). The preset authorization code can be the same as or different from the power-on password. When the first electronic device requests a proxy repair authorization file from the second electronic device, the user can input an authorization code into the first electronic device. The first electronic device can then send the user-input authorization code to the second electronic device. The second electronic device can verify the authorization code sent by the first electronic device based on the preset authorization code to determine whether to send the proxy repair authorization file to the first electronic device.

[0228] For example, the second electronic device can obtain the user's preset fingerprint in advance. When the first electronic device requests a proxy repair authorization file from the second electronic device, either the first or second electronic device can obtain the user's fingerprint. If the user's fingerprint matches the previously obtained preset fingerprint, the second electronic device can send the proxy repair authorization file to the first electronic device, thus authorizing the first electronic device to perform a proxy repair of the second electronic device's system. If the user's fingerprint does not match the previously obtained preset fingerprint, the second electronic device can choose not to send the proxy repair authorization file to the first electronic device, i.e., not authorizing the first electronic device to perform a proxy repair of the second electronic device's system.

[0229] For example, if the account information of the first electronic device is the same as that of the second electronic device, the second electronic device can send a proxy repair authorization file to the first electronic device.

[0230] It should be understood that the conditions for granting a proxy repair license can take many forms. The embodiments of this application are not limited to the conditions for granting a proxy repair license mentioned in the examples.

[0231] In another possible scenario, the server could send the proxy repair authorization file to the first electronic device. In this case, the second electronic device may be functioning correctly or may have already malfunctioned.

[0232] If the second electronic device does not send a fault message, the server can send the proxy repair authorization file to the first electronic device, which means that the first electronic device and the second electronic device have established a proxy repair relationship.

[0233] If the second electronic device has malfunctioned, the first and second electronic devices do not necessarily need to establish a direct proxy repair relationship. Optionally, the proxy repair authorization file issued by the server can be, for example, a temporary file.

[0234] The proxy repair authorization document can be used to verify whether the first electronic device has the authority to perform proxy repair on the second electronic device. Before the first electronic device performs proxy repair on the second electronic device, verifying the legality of the proxy repair authorization document can confirm whether the first electronic device has the authority to perform proxy repair on the second electronic device. Proxy repair authority may include, for example, read / write permissions for memory, read permissions for device information, etc. The proxy repair authorization document may include, for example, a first unique hardware identifier of the first electronic device (the unique hardware identifier may be, for example, a product serial number (SN)) and a second unique hardware identifier of the second electronic device.

[0235] In one example, the first electronic device can obtain the proxy repair license file for the second electronic device before the second electronic device malfunctions. This allows the first electronic device to pre-obtain the proxy repair license file before the second electronic device fails. This facilitates the first electronic device acquiring sufficient permissions for the second electronic device after it malfunctions. For example, the first electronic device can have the permission to perform proxy repair on the second electronic device even if it cannot power on, i.e., if the second electronic device cannot automatically send data.

[0236] For example, the first and second electronic devices can establish a proxy repair relationship beforehand. The settings menu of the second electronic device can include a proxy repair relationship control. In response to user actions on the proxy repair relationship control, the second electronic device can establish a proxy repair relationship with other electronic devices (such as the first electronic device).

[0237] In another example, the first electronic device can obtain a proxy repair authorization file from the second electronic device after the second electronic device malfunctions. The malfunction of the second electronic device can be a condition for granting the proxy repair authorization file. That is, the proxy repair authorization file may be invalid if the second electronic device is not malfunctioning. Sending the proxy repair authorization file from the second electronic device to the first electronic device in the event of a malfunction improves the data security of the second electronic device.

[0238] In other examples, the second electronic device may have the capability to send or request a proxy repair authorization document both before and after a failure occurs. The granting conditions for the proxy repair authorization document may be the same or different depending on whether a failure occurs. For example, before a failure occurs, the granting conditions for the proxy repair authorization document may include instructions to obtain the user; after a failure occurs, the granting conditions for the proxy repair authorization document may not include instructions to obtain the user. In one possible scenario, the granting conditions for the proxy repair authorization document are met if the account information of the first electronic device is the same as that of the second electronic device.

[0239] 503, The first electronic device acquires at least one system information of the second electronic device.

[0240] The first electronic device can obtain the system information of the second electronic device in the following ways: for example, by receiving the at least one system information from the second electronic device, or by reading the at least one system information from the memory of the second electronic device.

[0241] At least one piece of system information may include, for example, at least one of the following: the system version number of the second electronic device, the device model of the second electronic device, the board ID of the second electronic device, the chip identifier of the second electronic device, etc.

[0242] The system version number can, for example, reflect the system version swimlane. The system version swimlane can reflect the system's development series.

[0243] The device model number can reflect the device type, device function, etc. of electronic equipment.

[0244] The board number can reflect the board series of an electronic device.

[0245] Chip identifiers can reflect the chip platform of an electronic device.

[0246] Several examples of system information are provided below. It should be understood that the embodiments of this application are not limited to the system information mentioned in the examples.

[0247] The system version number can be any of the following: EMUI9.1.0.100, EMUI9.1.0.110, EMUI9.1.1.100, EMUI9.0.1.100, EMUI10.1.0.100.

[0248] The device model can be any of the following: MATE20-AL00_all_cn, MATE20-AL00_cmcc_cn, P30-AL10_all_cn.

[0249] The board number can be any of the following: 2456, 2457, 3856.

[0250] The chip identifier can be any of the following: kirin990, kirin9A0, mtk6775.

[0251] Optionally, before the first electronic device obtains at least one system information of the second electronic device, the first electronic device and / or the second electronic device may send a proxy repair authorization file to the server to verify the legality of the proxy repair authorization file.

[0252] Figure 4 The 301 error in the example illustrates a verification example of a proxy repair authorization file. In other words, the proxy repair authorization file must be valid. Server verification of the proxy repair authorization file ensures that the first electronic device's proxy repair authority over the second electronic device is officially certified, which benefits both devices by allowing them to continue enjoying official after-sales service. If the proxy repair authorization file is granted individually by the second electronic device, it may not be within the scope of the operator's license. Therefore, if other malfunctions occur after the first electronic device repairs the second electronic device, it may require relatively high costs to access the operator's after-sales service.

[0253] Optionally, before the first electronic device sends the data of the first partition to the second electronic device, the first electronic device sends a proxy repair authorization file, as well as the authentication information of the first electronic device and / or the authentication information of the second electronic device, to the server to verify the legitimacy of the proxy repair authorization file.

[0254] The server can verify the association between the proxy repair license file and the first electronic device, and / or the association between the proxy repair license file and the second electronic device, to further enhance the security of the proxy repair license file. In other words, the repair license file can be a license file specifically for the first electronic device and / or the second electronic device.

[0255] 504. If the system information of the first electronic device and the system information of the second electronic device meet the conditions for full partition copying, the first electronic device sends the data of the first partition to the second electronic device. The first partition belongs to the boot partition of the first electronic device.

[0256] Figure 4 Section 302 illustrates an example of partition copying. That is, under the condition of a full partition copy, data in the first partition of the first electronic device can overwrite data in the second partition of the second electronic device.

[0257] Optionally, if the system information of the first electronic device and the system information of the second electronic device meet the conditions for full partition copying, the first system information of the first electronic device and the second system information of the second electronic device belong to the same series of two system information.

[0258] In other words, the conditions for a full partition copy are that the system information of the first electronic device and the system information of the second electronic device should be relatively similar.

[0259] Optionally, the full partition copy conditions include: the first electronic device has multiple first system information, the second electronic device has multiple second system information, the multiple first system information and the multiple second system information correspond one-to-one, each corresponding first system information and second system information belongs to two system information of the same series, and the multiple first system information corresponds one-to-one with all preset system information in the full partition copy conditions.

[0260] In one example, all the first system information of the first electronic device and all the second system information of the second electronic device correspond one-to-one, and each corresponding first system information and second system information are two system information of the same series.

[0261] For example, if the system version number of the first electronic device and the system version number of the second electronic device belong to the same series of system version numbers, and the device model of the first electronic device and the device model of the second electronic device belong to the same series of device models, and the board number of the first electronic device and the board number of the second electronic device belong to the same series of board numbers, and the chip identifier of the first electronic device and the chip identifier of the second electronic device belong to the same series of chip identifiers, the first electronic device can copy part or all of the data of the boot partition to the second electronic device.

[0262] The following describes some examples of system information of the first electronic device and system information of the second electronic device belonging to the same series and different series. It should be understood that the embodiments of this application are not limited to the situations mentioned in the examples.

[0263] Example 1: System version numbers of the same and different series

[0264] For example, if the system version number of the first electronic device is EMUI 9.1.0.100 and the system version number of the second electronic device is EMUI 9.1.0.100, then the first electronic device and the second electronic device are two electronic devices with the same system version number. The system version numbers of the first electronic device and the second electronic device can belong to the same series of system version numbers.

[0265] For example, if the system version number of the first electronic device is EMUI 9.1.0.100 and the system version number of the second electronic device is EMUI 9.1.0.110, then the first electronic device and the second electronic device belong to the same system version swimlane. The system version numbers of the first electronic device and the second electronic device can belong to the same series of system version numbers.

[0266] In other words, if the system version number of the first electronic device and the system version number of the second electronic device are the same, or if the difference between the system version number of the first electronic device and the system version number of the second electronic device is relatively small (such as different system version swimlanes), the system version number of the first electronic device and the system version number of the second electronic device can belong to the same series of two system version numbers.

[0267] For example, if the system version number of the first electronic device is EMUI9.1.0.100, and the system version number of the second electronic device is EMUI9.1.1.100, EMUI9.0.1.100, or EMUI10.1.0.100, then the first electronic device and the second electronic device are two electronic devices with different version numbers and different system version swimlanes.

[0268] In other words, if the system version number of the first electronic device and the system version number of the second electronic device are relatively different (such as different system version swimlanes), the system version number of the first electronic device and the system version number of the second electronic device can belong to two different series of system version numbers.

[0269] Example 2: Equipment models from the same and different series

[0270] For example, if the device model of the first electronic device is MATE20-AL00_all_cn, and the device model of the second electronic device is MATE20-AL00_all_cn, then the first electronic device and the second electronic device are two electronic devices with the same device model. The device type of both the first electronic device and the second electronic device can be MATE20. The first electronic device and the second electronic device can have the same device functions.

[0271] For example, if the device model of the first electronic device is MATE20-AL00_all_cn and the device model of the second electronic device is MATE20-AL00_cmcc_cn, then the first and second electronic devices are two electronic devices of the same device type. The device type of both the first and second electronic devices can be MATE20. The first and second electronic devices can have different device functions. The device function of MATE20-AL00_cmcc_cn may include support for China. The MATE20-AL00_all_cn device can include communication capabilities that support the entire network.

[0272] In other words, if the device model of the first electronic device and the device model of the second electronic device are the same, or if the difference between the device model of the first electronic device and the device model of the second electronic device is relatively small (such as the same device type), the device model of the first electronic device and the device model of the second electronic device can belong to the same series of two device models.

[0273] For example, if the device model of the first electronic device is MATE20-AL00_all_cn, and the device model of the second electronic device is P30-AL10_all_cn, then the first and second electronic devices are two electronic devices with different device types and different device functions. The device type of the first electronic device can be MATE20, and the device type of the second electronic device can be P30.

[0274] In other words, when the device model of the first electronic device and the device model of the second electronic device are relatively different (such as different device types), the device model of the first electronic device and the device model of the second electronic device can belong to two different series of device models.

[0275] Example 3: Board numbers of the same and different series

[0276] For example, if the board number of the first electronic device is 2456 and the board number of the second electronic device is 2456, then the first electronic device and the second electronic device are two electronic devices with the same board number.

[0277] For example, if the board number of the first electronic device is 2456 and the board number of the second electronic device is 2457, then the first electronic device and the second electronic device belong to the same board series.

[0278] In other words, if the board number of the first electronic device is the same as the board number of the second electronic device, or if the difference between the board number of the first electronic device and the board number of the second electronic device is relatively small (such as the same board series), the board number of the first electronic device and the board number of the second electronic device can belong to the same series of two board numbers.

[0279] For example, if the board number of the first electronic device is 2456 and the board number of the second electronic device is 3856, then the first electronic device and the second electronic device belong to two electronic devices with different board series.

[0280] In other words, if the board number of the first electronic device and the board number of the second electronic device are relatively different (such as different board series), the board number of the first electronic device and the board number of the second electronic device can belong to two board numbers from different series.

[0281] Example 4: Chip identification of the same series and different series

[0282] For example, if the chip identifier of the first electronic device can be kirin990, and the chip identifier of the second electronic device can be kirin990, then the first electronic device and the second electronic device are two electronic devices with the same chip identifier.

[0283] For example, if the chip identifier of the first electronic device is kirin990, and the chip identifier of the second electronic device is kirin9A0, then the first electronic device and the second electronic device are two electronic devices with the same chip platform.

[0284] In other words, if the chip identifier of the first electronic device is the same as that of the second electronic device, or if the difference between the chip identifier of the first electronic device and the chip identifier of the second electronic device is relatively small (such as the same chip platform), the chip identifier of the first electronic device and the chip identifier of the second electronic device may belong to the same series of two chip identifiers.

[0285] For example, if the chip identifier of the first electronic device is kirin990, and the chip identifier of the second electronic device is MTK6775, then the first electronic device and the second electronic device belong to two electronic devices with different chip platforms.

[0286] In other words, if the chip identifier of the first electronic device and the chip identifier of the second electronic device are relatively different (such as different chip platforms), the chip identifier of the first electronic device and the chip identifier of the second electronic device may belong to two different series of chip identifiers.

[0287] Optionally, the full partition copy conditions include: the first electronic device has n first system information items, the second electronic device has n second system information items, the n first system information items and the n second system information items correspond one-to-one, any first system information item and the corresponding second system information item belong to the same series of system information, and n is greater than a preset number.

[0288] In other words, when the first electronic device and the second electronic device have a large amount of the same series of system information, the first electronic device can directly copy the data stored in the first electronic device to the second electronic device.

[0289] For example, a first electronic device may have first system information 1, first system information 2, and first system information 3. A second electronic device may have second system information 1, second system information 2, and second system information 3. First system information 1 can correspond to second system information 1, and they can belong to the same series of system information; first system information 2 can correspond to second system information 2, and they can belong to the same series of system information; first system information 3 can correspond to second system information 3, and they can belong to the same series of system information. Therefore, n can be an integer greater than or equal to 3. If the preset quantity is 2, it can be determined that the system information of the first electronic device and the system information of the second electronic device satisfy the full partition copy condition.

[0290] Optionally, the full partition copy conditions include: the first electronic device has first target system information, the second electronic device has second target system information corresponding to the first target system information, the first target system information has a higher priority than a preset priority, and the first target system information and the second target system information belong to the same series of system information.

[0291] In other words, when the high-priority first system information and the high-priority second system information belong to the same series of system information, the first electronic device can directly copy the data stored in the first electronic device to the second electronic device.

[0292] Optionally, the full partition copy conditions include: the first electronic device has multiple first system information, including first target system information; the second electronic device has multiple second system information, including second target system information; the priority of the first target system information is higher than the priority of other first system information among the multiple first system information, and the priority of the second target system information is higher than the priority of other second system information among the multiple second system information, excluding the second target system information; the first target system information and the second target system information belong to the same series of system information.

[0293] In other words, if the highest priority first system information and the highest priority second system information belong to the same series of system information, the first electronic device can directly copy the data stored in the first electronic device to the second electronic device.

[0294] For example, the system version number has a higher priority than other system information. If the system version numbers of the first electronic device and the second electronic device belong to the same series of system version numbers, then it can be determined that the system information of the first electronic device and the system information of the second electronic device meet the conditions for a full partition copy.

[0295] Optionally, if the conditions for a full partition copy are not met, the first electronic device can perform proxy repair on the second electronic device through other examples provided in the embodiments of this application.

[0296] Optionally, before the first electronic device sends the data of the first partition to the second electronic device, the method further includes: the first electronic device obtaining the partition information of the second electronic device; and the first electronic device determining the first partition based on the partition information.

[0297] In one example, the second electronic device can send information about the damaged partition to the first electronic device.

[0298] For example, a second electronic device may include multiple second partitions. The second electronic device can obtain multiple second partition hash values ​​(e.g., SHA256 values) that correspond one-to-one with each of these second partitions. Partition information may include multiple second partition hash values. The second electronic device can match these multiple second partition hash values ​​with a software version partition list. The software version partition list may, for example, be obtained from a server. The software version partition list may be a list of partitions corresponding to the system version number of the second electronic device. The software version partition list may include multiple preset partition hash values ​​that correspond one-to-one with each of these multiple second partitions. The second electronic device can find second partition hash values ​​that do not match the preset partition hash values, thereby determining the damaged partitions of the second electronic device.

[0299] For example, a second electronic device can determine the damaged partition of the second electronic device based on its boot error code. The partition information may include the boot error code.

[0300] In another example, the first electronic device can analyze and determine the damaged partitions of the second electronic device.

[0301] For example, a first electronic device may include multiple first partitions, and a second electronic device may include multiple second partitions. Under the condition of a full partition copy, there is a one-to-one correspondence between the multiple first partitions and the multiple second partitions. The first electronic device can obtain multiple hash values ​​of the multiple first partitions that correspond one-to-one with the multiple second partitions. The first electronic device can obtain multiple hash values ​​of the multiple second partitions that correspond one-to-one with the multiple second partitions. The first electronic device can match each first partition hash value with its corresponding second partition hash value. The first electronic device can determine a second partition whose partition hash values ​​do not match as a damaged partition. Partition information may include multiple second partition hash values.

[0302] For example, a first electronic device can match multiple second partition hash values ​​with multiple preset partition hash values ​​in a software version partition list. This allows the first electronic device to find second partition hash values ​​that do not match the preset partition hash values, thereby identifying the damaged partition of the second electronic device. Partition information may include multiple second partition hash values.

[0303] For example, the first electronic device can obtain the boot error code of the second electronic device and determine the damaged partition of the second electronic device based on the boot error code. The partition information may include the boot error code.

[0304] It should be understood that there can be multiple ways to determine the damaged partitions of the second electronic device. The embodiments of this application are not limited to the methods for determining the damaged partitions of the second electronic device mentioned in the examples.

[0305] like Figure 6 As shown, the boot partition of the first electronic device includes data from partition 310-1 and partition 310-2. The boot partition of the second electronic device includes data from partition 410-1 and partition 410-2. Partition 410-1 is the damaged partition, and partition 410-2 is the undamaged partition. The first electronic device can copy the data from partition 310-1 to partition 410-1. After the partition copy, the boot partition of the second electronic device can include the data from partition 410-1 and partition 310-2. Partition 410-1 of the first electronic device can be considered the minimum partition required to repair the second electronic device.

[0306] like Figure 7As shown, the first electronic device can also copy data from its boot partition 310 to the boot partition 410 of the second electronic device. After the partition copy, the data in the boot partition of the second electronic device can include the data in partition 410. The boot partition 410 of the first electronic device can be considered as the minimum partition for repairing the second electronic device.

[0307] like Figure 8 As shown, the first electronic device can also copy all its data 30 (including data in boot partition 310 and data partition 320) to the boot partition 410 of the second electronic device. After the partition copy, the data in the boot partition of the second electronic device can include all the data 30 of the first electronic device. All the data 30 of the first electronic device can be considered as the minimum partition for repairing the second electronic device.

[0308] It should be understood that there are multiple ways to copy a partition. The embodiments of this application are not limited to the methods of copying partitions mentioned in the examples.

[0309] 505, the first electronic device triggers the second electronic device to enter self-repair mode.

[0310] like Figure 4 As shown, after the partition copy is complete, the first electronic device can trigger the second electronic device to enter self-recovery mode. Accordingly, the second electronic device enters self-recovery mode based on its second partition, which includes the data from the first partition.

[0311] Since the first electronic device has copied the normal partition data to the second electronic device, the damaged partition on the second electronic device may have been restored. The second electronic device can enter system self-repair mode and display the interface corresponding to system self-repair mode, such as... Figure 4 As shown in 401.

[0312] In other words, if the partition corresponding to the system self-repair mode of the second electronic device is damaged, the first electronic device can send data from the undamaged partition to the second electronic device, overwriting the data in the damaged partition of the second electronic device, thus restoring the damaged partition of the second electronic device to normal. The second electronic device can then perform the system self-repair function normally, and its system can enter normal mode.

[0313] Optionally, after the second electronic device enters self-repair mode, the second electronic device can send its authentication information and proxy repair authorization file to the server; if the authentication information and the proxy repair authorization file of the second electronic device are successfully verified, the second electronic device obtains a system upgrade data package from the server.

[0314] Optionally, after a 505 error, the first or second electronic device may send an indication to the server that the proxy repair is complete. The server can then use this indication to delete the record of the proxy repair license file. Previously used proxy repair license files may become invalid accordingly.

[0315] Optionally, after the first electronic device triggers the second electronic device to enter self-repair mode, the first electronic device can generate a proxy system repair report. This proxy system repair report may include information related to the current proxy repair. The first electronic device can report this proxy system repair report to the server. Alternatively, after the second electronic device completes its self-repair, it can report the proxy system repair report to the server. The server can collect the proxy system repair reports to determine the type of system repair error, the solution to the system repair error, etc.

[0316] Figure 9 This illustrates another scenario for system agent repair. For example... Figure 9 As shown, the first electronic device can perform system repair on behalf of the second electronic device. The second electronic device can accept the proxy of the first electronic device to perform system repair; and, the second electronic device can perform system self-repair under the proxy of the first electronic device. The first electronic device may be, for example, Figure 1 or Figure 2 The electronic device shown. The second electronic device could be, for example, the electronic device... Figure 1 or Figure 2 The electronic device shown.

[0317] Figure 10 A schematic flowchart of another system repair method is shown. Figure 10 The method shown can be applied to Figure 9 In the system repair scenario shown below. (Further details are needed.) Figure 9 , Figure 10 This paper describes another embodiment of system proxy repair provided by the embodiments of this application.

[0318] 1001, The first electronic device establishes a data connection with the second electronic device.

[0319] 1002, The first electronic device obtains the agent repair authorization file of the second electronic device.

[0320] 1003, The first electronic device acquires system information from the second electronic device.

[0321] For specific implementation details of 1001 to 1003, please refer to [link / reference]. Figure 5 Steps 501 to 503 in the illustrated embodiment will not be described in detail here.

[0322] 1004, The first electronic device sends the system information and agent repair authorization file of the second electronic device to the server.

[0323] Accordingly, the server can obtain the system information and agent repair authorization file of the second electronic device from the first electronic device.

[0324] The first electronic device and the second electronic device can be relatively unrelated. The first electronic device cannot repair the second electronic device based on its own stored data. The first electronic device can request the data needed to repair the second electronic device from the server. The server can determine the appropriate system repair package for the second electronic device based on its system information. For example, the server can perform digital certificate (Public Key Infrastructure, PKI) verification on the system information of the second electronic device. The system information can be used to determine, for example, the minimum system repair package applicable to the second electronic device. The minimum system repair package can be, for example, a partial image file of a system upgrade package.

[0325] like Figure 10 As shown in section 301, the server can also verify the legality of the proxy repair authorization file, which helps improve the security of the proxy repair of the second electronic device by the first electronic device. The proxy repair authorization file can be used to verify whether the first electronic device has the authority to perform proxy repair on the second electronic device. Before the first electronic device performs proxy repair on the second electronic device, verifying the legality of the proxy repair authorization file can confirm whether the first electronic device has the authority to perform proxy repair on the second electronic device. Proxy repair authority may include, for example, read / write permissions for memory, read permissions for device information, etc. For example, the proxy repair authorization file may include a first unique hardware identifier of the first electronic device (the unique hardware identifier may be, for example, a product serial number (SN)) and a second unique hardware identifier of the second electronic device.

[0326] Optionally, the server can verify the association between the proxy repair license file and the first electronic device, and / or, the association between the proxy repair license file and the second electronic device. This helps to further improve the security of the proxy repair license file. In other words, the repair license file can be a license file specific to the first electronic device and / or the second electronic device.

[0327] 1005, if the agent repair authorization file is successfully verified, the server sends a system repair data packet to the first electronic device.

[0328] Accordingly, the first electronic device obtains a system repair data packet from the server.

[0329] Figure 9303 illustrates an acquisition of a system repair data packet. This system repair data packet can be a data packet for a second electronic device. For example, the system repair data packet may include the original system data packet, a system upgrade data packet, etc.

[0330] 1006, the first electronic device sends the system repair data packet to the second electronic device.

[0331] Accordingly, the second electronic device can obtain the system repair data packet from the first electronic device.

[0332] Figure 9 The 304 error in the document illustrates an example of copying a system repair data packet.

[0333] For example, the first electronic device can decompress the system repair data packet, then send the decompressed data to the second electronic device and write it into the memory of the second electronic device. This method can be applied, for example, to scenarios where the second electronic device does not have decompression capabilities or has weak decompression capabilities, such as when the second electronic device has malfunctioned.

[0334] For example, the first electronic device can send a system repair data packet to the second electronic device. The second electronic device can store and decompress the system repair data packet. The second electronic device can load the image file from the system repair data packet. This method can be suitable for scenarios where data transmission efficiency is relatively low, such as when the second electronic device and the first electronic device interact via cellular data.

[0335] The data in the system repair package can be stored, for example, in the boot partition or the data partition. In one possible example, the data in the system repair package could be stored at the end of the data partition.

[0336] 1007, the first electronic device triggers the second electronic device to enter self-repair mode.

[0337] like Figure 10 As shown, after the data copy is complete, the first electronic device can trigger the second electronic device to enter self-repair mode. Accordingly, the second electronic device enters self-repair mode based on the data received from the first electronic device.

[0338] For details on how to implement 1007, please refer to [link / reference]. Figure 5 Step 505 in the illustrated embodiment will not be described in detail here.

[0339] Optionally, after the second electronic device enters self-repair mode, the second electronic device can send its authentication information and proxy repair authorization file to the server; if the authentication information and the proxy repair authorization file of the second electronic device are successfully verified, the second electronic device obtains a system upgrade data package from the server.

[0340] Optionally, after step 1007, the first or second electronic device may send an indication message to the server indicating that the proxy repair is complete. The server can then use this indication message to delete the record of the proxy repair license file. Previously used proxy repair license files may become invalid accordingly.

[0341] Optionally, after the first electronic device triggers the second electronic device to enter self-repair mode, or after the first electronic device sends the system repair data packet to the second electronic device, the first electronic device can generate a proxy system repair report. This proxy system repair report may include information related to the current proxy repair. The first electronic device can report this proxy system repair report to the server. Alternatively, after the second electronic device completes its self-repair, the second electronic device can report this proxy system repair report to the server. The server can collect the proxy system repair reports to determine the type of system repair error, the solution to the system repair error, etc.

[0342] Figure 11 This illustrates yet another scenario for system agent repair. For example... Figure 11 As shown, the first electronic device can perform system repairs on behalf of the second electronic device. The second electronic device can accept the proxy of the first electronic device to perform system repairs; after the proxy repair is completed, the second electronic device can return to its normal operating state. The first electronic device can be, for example, a... Figure 1 or Figure 2 The electronic device shown. The second electronic device could be, for example, the electronic device... Figure 1 or Figure 2 The electronic device shown. Optionally, in Figure 11 In the scenario shown, the second electronic device may not be able to enter the system self-repair mode automatically or when triggered by the first electronic device.

[0343] Figure 12 A schematic flowchart of yet another system repair method is shown. Figure 12 The method shown can be applied to Figure 11 In the system repair scenario shown below. (Further details are needed.) Figure 11 , Figure 12 This paper describes yet another embodiment of system proxy repair provided by the embodiments of this application.

[0344] 1201, The first electronic device establishes a data connection with the second electronic device.

[0345] 1202, The first electronic device obtains the agent repair authorization file of the second electronic device.

[0346] 1203, The first electronic device acquires system information from the second electronic device.

[0347] 1204, The first electronic device sends the system information and agent repair authorization file of the second electronic device to the server.

[0348] 1205, if the agent repair authorization file is successfully verified, the server sends a system repair data packet to the first electronic device.

[0349] For specific implementation details of 1201 to 1205, please refer to [link / reference]. Figure 10 Steps 1001 to 1005 in the illustrated embodiment will not be described in detail here.

[0350] like Figure 11 As shown in 305, in one example, after the first electronic device obtains the system repair data packet, it can decompress the system repair data packet.

[0351] 1206, the first electronic device triggers the second electronic device to enter the proxy repair mode, and performs proxy repair on the second electronic device according to the system repair data packet.

[0352] Accordingly, the second electronic device can repair the system under the proxy repair of the first electronic device.

[0353] In other words, the second electronic device can enter a proxy repair mode and, under the control of the first electronic device, repair its system. Proxy repair mode differs from self-repair mode. In self-repair mode, the second electronic device can load the system version data package itself. In proxy repair mode, the second electronic device loads the system version data package under the control of the first electronic device.

[0354] Figure 11 Section 306 illustrates an example of a first electronic device triggering a second electronic device to enter proxy recovery mode. For example, the first electronic device can trigger the second electronic device to enter forced loading mode, and the first electronic device can initiate proxy recovery (pxrecovery) mode.

[0355] Figure 11Section 307 illustrates an example of a first electronic device controlling a second electronic device to load system version data packets. For example, the first electronic device can parse the system version data packets and load repair images such as preloader files, fastboot files, tag files (such as ptables), and recovery files into the first electronic device to trigger the first electronic device to enter repair mode, and then trigger the first electronic device to upgrade or repair the system version.

[0356] The data in the system repair package can be stored, for example, in the boot partition or the data partition. In one possible example, the data in the system repair package could be stored at the end of the data partition.

[0357] Optionally, after step 1206, for example, after successful proxy repair, the first or second electronic device can send an indication message to the server indicating that the proxy repair is complete. The server can then use this indication message to delete the record of the proxy repair license file. Previously used proxy repair license files can then become invalid.

[0358] Optionally, after step 1206, the second electronic device can send its authentication information and proxy repair authorization file to the server; if the authentication information and the proxy repair authorization file of the second electronic device are successfully verified, the second electronic device obtains the system upgrade data package from the server.

[0359] Optionally, after step 1206, the first or second electronic device can generate a proxy system repair report. This proxy system repair report may include information related to the current proxy repair. The first or second electronic device can report this proxy system repair report to the server. The server can collect the proxy system repair reports to determine the type of system repair error, the solution to the system repair error, etc.

[0360] Figure 13 This illustrates yet another scenario for system agent repair. (And...) Figure 11 The examples shown are different; the device type of the first electronic device can be different from the device type of the second electronic device. For example... Figure 13 As shown, the first electronic device can be a computer, and the second electronic device can be a mobile phone. It should be understood that... Figure 12 The method shown can also be applied to Figure 13 The system repair scenario shown will not be elaborated further here.

[0361] Figure 14 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Figure 14The illustrated electronic device 1400 includes a memory 1401, a processor 1402, a communication interface 1403, and a bus 1404. The memory 1401, processor 1402, and communication interface 1403 are interconnected via the bus 1404.

[0362] The memory 1401 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1401 may store programs, and when the program stored in the memory 1401 is executed by the processor 1402, the processor 1402 is used to execute the embodiments of this application. Figure 5 , Figure 10 , Figure 12 The steps of the method shown.

[0363] The processor 1402 may be a general-purpose central processing unit (CPU), microprocessor, application-specific integrated circuit (ASIC), graphics processing unit (GPU), or one or more integrated circuits, used to execute relevant programs to implement the embodiments of this application. Figure 5 , Figure 10 , Figure 12 The method shown.

[0364] The processor 1402 can also be an integrated circuit chip with signal processing capabilities. In the implementation process, the embodiments of this application... Figure 5 , Figure 10 , Figure 12 Each step of the method shown can be accomplished by integrated logic circuitry in the hardware of the processor 1402 or by instructions in software form.

[0365] The processor 1402 described above can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 1401. The processor 1402 reads the information in memory 1401 and, in conjunction with its hardware, completes the functions required by the units included in the electronic device of this application embodiment, or executes the functions of the embodiments of this application. Figure 5 , Figure 10 , Figure 12 The method shown.

[0366] The communication interface 1403 uses transceiver devices, such as, but not limited to, transceivers, to enable communication between the electronic device 1400 and other devices or communication networks.

[0367] Bus 1404 may include a pathway for transmitting information between various components of electronic device 1400 (e.g., memory 1401, processor 1402, communication interface 1403).

[0368] It should be understood that the acquisition module in the electronic device can be equivalent to the communication interface 1403 in the electronic device 1400; the processing module in the electronic device can be equivalent to the processor 1402.

[0369] This application also provides an electronic device, including a processing unit and a transmitting unit, for performing... Figure 5 , Figure 10 , Figure 12 The method shown.

[0370] This application also provides an architecture, including... Figure 5 The first electronic device and the second electronic device are shown.

[0371] This application also provides an architecture, including... Figure 10 , Figure 12 The first electronic device, the second electronic device, and the server are shown.

[0372] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0373] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0374] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0375] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0376] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0377] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for system repair, characterized in that, include: The first electronic device obtains the agent repair authorization file from the second electronic device; The first electronic device determines the system information of the first electronic device; If the agent repair authorization file is successfully verified, the first electronic device obtains the system information of the second electronic device, and the system information of the second electronic device corresponds to the system information of the first electronic device; When the system information of the first electronic device and the system information of the second electronic device meet the conditions for full partition copying, the first electronic device sends the data of the first partition to the second electronic device, where the first partition is the partition of the first electronic device; Wherein, the system information of the first electronic device and the system information of the second electronic device satisfy the conditions for full partition copying, including any one of the following: The first electronic device has multiple first system information, and the second electronic device has multiple second system information. The multiple first system information and the multiple second system information correspond one-to-one. Each first system information and its corresponding second system information belong to two system information of the same series. The multiple first system information corresponds one-to-one with all the preset system information in the full partition copy condition. The first electronic device has n third system information, and the second electronic device has n fourth system information. The n third system information and the n fourth system information are in one-to-one correspondence. Each third system information and its corresponding fourth system information belong to two system information of the same series. n is greater than the preset number of all preset system information. The first electronic device has first target system information, and the second electronic device has second target system information corresponding to the first target system information. The first target system information has a higher priority than the preset priority among all preset system information. The first target system information and the second target system information belong to the same series of two system information.

2. The method according to claim 1, characterized in that, The method further includes: The first electronic device triggers the second electronic device to enter self-repair mode.

3. The method according to claim 1 or 2, characterized in that, The system information can be any of the following types: system version number, device model, board number, or chip identifier.

4. The method according to claim 1 or 2, characterized in that, The first electronic device obtains the proxy repair authorization file from the second electronic device, including: The first electronic device obtains the agent repair authorization file from the server or the second electronic device.

5. The method according to claim 1 or 2, characterized in that, The proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

6. The method according to claim 1 or 2, characterized in that, Before the first electronic device sends the data of the first partition to the second electronic device, the method further includes: The first electronic device acquires the partition information of the second electronic device; The first electronic device determines the first partition based on the partition information.

7. The method according to claim 6, characterized in that, The partition information includes at least one of the following: Information about the damaged partition, partition hash value, and boot error code.

8. The method according to claim 1 or 2, characterized in that, The first partition includes at least a portion of the boot partition of the first electronic device.

9. A method for system repair, characterized in that, include: The second electronic device sends a proxy repair authorization file to the first electronic device; If the agent repair authorization file is successfully verified, the second electronic device authorizes the first electronic device to obtain the system information of the second electronic device; The second electronic device obtains system repair data from the first electronic device; The second electronic device performs system repair based on the system repair data; The second electronic device obtains system repair data from the first electronic device, including: When the system information of the first electronic device and the system information of the second electronic device meet the conditions for full partition copying, the second electronic device obtains the data of the first partition from the first electronic device. The first partition is the partition of the first electronic device, and the data of the first partition is the system repair data. The system information of the first electronic device and the system information of the second electronic device satisfy the conditions for a full partition copy, including any one of the following: The first electronic device has multiple first system information, and the second electronic device has multiple second system information. The multiple first system information and the multiple second system information correspond one-to-one. Each first system information and its corresponding second system information belong to two system information of the same series. The multiple first system information corresponds one-to-one with all the preset system information in the full partition copy condition. The first electronic device has n third system information, and the second electronic device has n fourth system information. The n third system information and the n fourth system information are in one-to-one correspondence. Each third system information and its corresponding fourth system information belong to two system information of the same series. n is greater than the preset number of all preset system information. The first electronic device has first target system information, and the second electronic device has second target system information corresponding to the first target system information. The first target system information has a higher priority than the preset priority among all preset system information. The first target system information and the second target system information belong to the same series of system information. The system information of the first electronic device and the system information of the second electronic device belong to the same series of two system information.

10. The method according to claim 9, characterized in that, The system information can be any of the following types: system version number, device model, board number, or chip identifier.

11. The method according to claim 9 or 10, characterized in that, Before the second electronic device obtains data from the first electronic device in the first partition, the method further includes: The second electronic device sends its partition information to the first electronic device, the first partition being determined based on the partition information.

12. The method according to claim 11, characterized in that, The partition information includes at least one of the following: Information about the damaged partition, partition hash value, and boot error code.

13. The method according to claim 12, characterized in that, The system repair data corresponds to the system repair data packet sent by the server.

14. The method according to claim 9 or 10, characterized in that, Before the second electronic device sends the proxy repair authorization file to the first electronic device, the method further includes: The second electronic device obtains the verification information from the first electronic device; The second electronic device sends a proxy repair authorization file to the first electronic device, including: If the information to be verified matches the preset verification information, the second electronic device sends the proxy repair authorization file to the first electronic device.

15. The method according to claim 14, characterized in that, The information to be verified includes at least one of the following: The first electronic device contains account information, fingerprint information, and authorization code.

16. The method according to claim 9 or 10, characterized in that, The proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

17. An electronic device, characterized in that, include: A processor, a memory, and a transceiver, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory; wherein the processor is used in the method as described in any one of claims 1 to 16.

18. An architecture for system repair, characterized in that, It includes a first electronic device and a second electronic device, wherein the first electronic device is used to perform the method as described in any one of claims 1 to 8, and the second electronic device is used to perform the method as described in any one of claims 9 to 16.

19. The architecture according to claim 18, characterized in that, It also includes a server, which is used to perform: The server obtains the agent repair authorization file for the second electronic device and the system information of the second electronic device from the first electronic device; The server verifies whether the agent repair authorization file is valid; If the proxy repair authorization file is successfully verified, the server determines the system repair data package for the second electronic device based on the system information of the second electronic device; The server sends the system repair data packet to the first electronic device.

20. The architecture according to claim 19, characterized in that, The proxy repair authorization file includes a unique hardware identifier for the first electronic device and a unique hardware identifier for the second electronic device.

21. The architecture according to claim 19, characterized in that, The server verifies the validity of the proxy repair authorization file, including: The server verifies whether the agent repair authorization file is associated with the first electronic device and / or the second electronic device.

22. The architecture according to any one of claims 19 to 21, characterized in that, The server is also used to perform: The server obtains indication information from the first electronic device, the indication information being used to indicate that the repair is complete; The server, based on the instruction information, cancels the validity of the proxy repair authorization file.

23. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 16.

24. A computer program product, characterized in that, When the computer program product is run on a computer, the computer performs the method as described in any one of claims 1 to 16.

Citation Information

Patent Citations

  • Incremental provisioning of software

    CN101036121A

  • System upgrading method and device for an internet camera

    CN109582332A