CN114791832B - IOS system repairing method and device when equipment space is insufficient and related components - Google Patents

IOS system repairing method and device when equipment space is insufficient and related components Download PDF

Info

Publication number
CN114791832B
CN114791832B CN202210454526.1A CN202210454526A CN114791832B CN 114791832 B CN114791832 B CN 114791832B CN 202210454526 A CN202210454526 A CN 202210454526A CN 114791832 B CN114791832 B CN 114791832B
Authority
CN
China
Prior art keywords
equipment
repair
information
construction
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210454526.1A
Other languages
Chinese (zh)
Other versions
CN114791832A (en
Inventor
陈可立
江泽龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruan Niu Technology Group Co ltd
Original Assignee
Shenzhen Ruan Niu Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ruan Niu Technology Group Co ltd filed Critical Shenzhen Ruan Niu Technology Group Co ltd
Priority to CN202210454526.1A priority Critical patent/CN114791832B/en
Publication of CN114791832A publication Critical patent/CN114791832A/en
Application granted granted Critical
Publication of CN114791832B publication Critical patent/CN114791832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Abstract

The invention discloses a method, a device and related components for repairing an IOS system when equipment space is insufficient. The method comprises the steps of establishing communication connection between a terminal and equipment and acquiring equipment information of the equipment; judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, entering a recovery mode and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; after the system repairing step is executed, judging whether the equipment returns prompt information of insufficient space; if the error log is returned, obtaining the disk space difference in the repair error log; and updating the minimum disk space value in the construction identifier according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step. The method can carry out system repair on the abnormal Apple system under the condition of insufficient space of the user equipment, and can successfully reserve the data of the user.

Description

IOS system repairing method and device when equipment space is insufficient and related components
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, and a related component for repairing an IOS system when a device space is insufficient.
Background
With the popularization of the IOS15 system on the IOS device, many Apple users begin to generate various new types of iPhone device anomalies or IOS system anomalies, so that many Apple users can select to use various Apple system repair tools to repair the iPhone device with the problems.
However, under the IOS15 system, when the user performs system repair for the abnormal device of the system in the space shortage state, which retains the personal data of the user, the system repair failure error 1110 may occur, and when the system abnormality occurs in the device, the device will be blocked in the system boot interface, unable to normally enter the IOS system, and unable to operate the data in the device, so that the user can only select to discard the personal data in the device to achieve the purpose of system repair, that is, this will cause important data loss in the device.
At present, a method for repairing an abnormal IOS system successfully under the condition of keeping user data is not convenient and simple.
Disclosure of Invention
The invention aims to provide a method, a device and related components for repairing an IOS system when equipment space is insufficient, and aims to solve the problem that equipment in a space insufficient state cannot smoothly perform system repair under the condition of keeping personal data of a user.
In order to solve the technical problems, the aim of the invention is realized by the following technical scheme: a method of IOS system repair when device space is insufficient is provided, comprising:
establishing communication connection between a terminal and equipment, and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode;
judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, entering a recovery mode and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the system repairing step comprises the steps of sending a preset construction identifier to the equipment, so that the equipment performs system repairing based on the construction identifier;
after the system repairing step is executed, judging whether the equipment returns the prompt information of insufficient space, if not, ending; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; and updating the minimum disk space value in the construction identifier according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step.
In addition, the technical problem to be solved by the present invention is to provide an apparatus for repairing IOS system when the equipment space is insufficient, which comprises:
the information acquisition unit is used for establishing communication connection between the terminal and the equipment and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode;
the first processing unit is used for judging the type of the connection mode of the equipment based on the equipment connection mode, entering a recovery mode if the equipment connection mode is a normal mode, and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the step of executing the system repair includes sending a preset construction identifier to the device, so that the device performs the system repair based on the construction identifier
The second processing unit is used for judging whether the equipment returns the prompt information of insufficient space after the system repair step is executed, and ending if the equipment does not return the prompt information; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; and updating the minimum disk space value in the construction identifier according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step.
In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor executes the computer program to implement the method for repairing an IOS system when the device space is insufficient according to the first aspect.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor causes the processor to perform the method for repairing an IOS system when a device space is insufficient in the first aspect.
The embodiment of the invention discloses a method, a device and related components for repairing an IOS system when equipment space is insufficient, wherein the method comprises the following steps: establishing communication connection between a terminal and equipment, and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode; judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, entering a recovery mode and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the system repairing step comprises the steps of sending a preset construction identifier to the equipment, so that the equipment performs system repairing based on the construction identifier; after the system repairing step is executed, judging whether the equipment returns the prompt information of insufficient space, if not, ending; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; and updating the minimum disk space value in the construction identifier according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step.
The method can carry out system repair on the abnormal Apple system under the condition of insufficient space of the user equipment and can successfully reserve important data of the user, and compared with the prior art, the method has the advantages that the method needs machine repair or saves the data through hardware means, and then the system repair is simpler and more convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for IOS system repair when device space is insufficient, provided by an embodiment of the invention;
FIG. 2 is a schematic block diagram of an apparatus for IOS system repair when device space is insufficient, provided by an embodiment of the invention;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The following more detailed description of the background art will now be made:
first, because the firmware package structure and content used by the apple for system repair are not described in detail, most of the apple user's knowledge of the system firmware package remains at the level of direct use when using system repair, and the user can only follow the description in the build manifest file of the system firmware package to repair the system.
Secondly, due to confidentiality of apples on a system repair process, failure reasons and solutions caused in the system repair process are not officially and accurately described or documented, and a user is difficult to process system repair errors through official guidance or through a system repair process.
Third, because the device cleans unnecessary space in the abnormal state of the system, most users will have to choose to erase the personal data in the device in order to restore the device to normal when a repair error occurs, so as to solve the problem of system repair failure caused by insufficient space, which can lead to loss of the personal data of the users.
Referring to fig. 1, fig. 1 is a flowchart of a method for repairing an IOS system when a device space is insufficient according to an embodiment of the present invention;
as shown in fig. 1, the method includes steps S101 to S107.
S101, establishing communication connection between a terminal and equipment, and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode;
s102, judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, executing the step S103, and if the equipment connection mode is the recovery mode or the DFU mode, executing the step S104;
s103, entering a recovery mode, and entering a step S104;
s104, executing a system repairing step, and entering a step S105; the system repairing step comprises the steps of sending a preset construction identifier to the equipment, so that the equipment performs system repairing based on the construction identifier;
s105, judging whether the equipment returns the prompt information of insufficient space, if so, executing the step S106, and if not, executing the step S107;
s106, collecting corresponding repair error logs, and obtaining disk space difference in the repair error logs; updating the minimum disk space value in the construction mark according to the disk space difference, and returning to the step S101;
s107, ending.
Specifically, the terminal of the application includes, but is not limited to, a PC terminal, and the device includes, but is not limited to, an Iphone mobile phone, an IOS tablet, and other devices, in step S101, the terminal first identifies whether an Apple device connection driver is installed under the current system, if the driver is not installed, the latest version of the Apple device driver is automatically installed, and confirms that the Apple device driver is normally installed on the terminal, and if the driver is installed or already installed, the Apple device driver is directly operated to check that the device support service is normally started and is in a normal state, and if the device support service is not normally started or is in a normal state, the device support service is restarted to ensure that the Apple device can be normally connected to the terminal, and if the device support service is normally started and is in a normal state, the user waits for connecting the Apple device to the terminal through a data line, thereby establishing a communication connection between the terminal and the device.
The acquired device information is device basic information which is needed to be used by the device in repairing, wherein the device ID information comprises a device mainboard ID and device CPU ID information.
And judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, firstly entering a recovery mode, and if the equipment connection mode is the normal mode, entering the recovery mode or the DFU mode, directly starting a system repair flow, namely entering step S104.
After step S104 is performed, the system is described as completing the repair of the first wheel system (it is described that the repair of the first wheel system may be incomplete repair, because there is a space deficiency and a repair is suspended), after the repair of the first wheel system is completed, it is determined whether the device returns a notification message of space deficiency, if the device returns a notification message of space deficiency, it is described that the device has a phenomenon of space deficiency and repair errors.
According to the existing mode, a user usually chooses to erase personal data to ensure that the system is continuously repaired, but in the application, in order to ensure that the personal data of the user can be successfully maintained, a second wheel system repair is performed, specifically, a repair error log is collected first, and it is to be noted that the repair error log is formed by repair progress information sent to a terminal by equipment in a system repair process, then disk space difference in the repair error log is obtained, that is, the equipment calculates how much memory is still lacking for the system repair to continuously run and stores the memory in the repair progress information, after the disk space difference is obtained, the minimum disk space value in a construction identifier is rewritten, that is, the minimum disk space value is modified to enable the equipment to consider that space is enough, so that the equipment can pass through the space size check in the second wheel system repair process, and the data of the user can be maintained.
In general, the method can protect the data of the user, has simple and effective implementation steps, does not need to disassemble and repair or save the data through hardware means, and then repairs the system, thereby solving the problems of complex operation and waste of human resources in the prior art.
In a specific embodiment, the step S103 includes the following steps:
s10, judging whether the equipment is in an unlocking state, if so, executing a step S11, and if not, executing a step S12;
s11, judging whether a trust relationship exists between the terminal and the equipment, if so, executing a step S13, and if not, executing a step S14;
s12, executing unlocking operation;
s13, sending an instruction for entering a recovery mode to the equipment, so that the equipment executes the instruction for entering the recovery mode and enters the recovery mode;
s14, sending a trust establishment request to the equipment and generating a trust relationship.
Specifically, in step S12, if the device is not unlocked, the user is required to input a screen locking code to unlock the screen, thereby completing the unlocking of the device. It should be noted that, the device can normally complete the system repair only when entering the recovery mode.
In a specific embodiment, the step S104 includes the following steps:
s20, acquiring a corresponding system firmware package according to the equipment model, decompressing the system firmware package to obtain a recovery file and a construction list file;
s21, converting the equipment model and the equipment ID information into hardware model information, reading an array buildulties in the construction list file, and reading all sub-items in the array buildulties;
s22, judging whether the key value of the DeviceClass key in the Info key in the current sub-item is matched with the hardware model corresponding to the hardware model information, if so, executing the step S23, and if not, executing the step S24; wherein, the key value of the Manifest key and the key value of the Info key in the construction identifier respectively represent a construction list and construction information;
s23, judging the current sub item as a construction identifier;
s24, judging the next sub item until the key value of the DeviceClass key in the Info key in the sub item is matched with the hardware model corresponding to the hardware model information;
s25, a boot mode entering instruction is sent to the equipment, so that the equipment enters a boot mode according to the boot mode entering instruction;
s26, based on the recovery file, acquiring a repair mode image in the decompressed system firmware package, and sending the repair system image to the equipment, so that the equipment enters a repair mode according to the repair system image;
s27, constructing basic parameters and information of a corresponding repair flow based on the construction list and the construction information, updating the construction identification, and sending the updated construction identification to the equipment so that the equipment repairs according to the construction identification.
Specifically, in step S20, the system firmware packages are stored on the terminal, and the number of the system firmware packages is plural, where the system firmware packages and the device types are in one-to-one correspondence, and different device types have different system firmware packages, and in this step, the corresponding system firmware packages are found by the device types, and the system firmware packages are decompressed, so as to obtain a restore file (restore. Plist) and a build manifest file (build manifest), and obtain the Supported products types key in the restore file (restore. Plist), so as to determine that the Supported products types key includes the device type of the current device, so as to confirm compatibility of the system.
In step S21, the same device model has several corresponding hardware models for identifying different versions of the same device model, such as WIFI version and SIM card version, and it should be noted that, in addition, the buildups key in the build Manifest file (buildups. Plist) is an array, where the array includes multiple subitems (elements), and any subitem includes an Info key, and by determining that the key value of the DeviceClass key included in the Info key matches the hardware model corresponding to the hardware model information, the subitem is the build identifier (buildups id), and the build list and the build information respectively represented by the key value of the key manifist and the key Info in the build identifier (buildups id), and it should be noted that the key value of the DeviceClass key has the same data information as the device hardware model.
In step S25, the terminal sends a boot mode entering instruction to the equipment, so that the equipment enters the boot mode according to the boot mode entering instruction after receiving the boot mode entering instruction; the device is put into a boot mode, which is equivalent to the switching of the device mode, and can be understood as an intermediate process, namely the boot mode, which occurs when the mobile phone is turned off to be turned on, enters a RestoreOS system to prepare for starting system repair, the RestoreOS is used for supporting the device to complete IOS system repair, and the RestoreOS can perform communication between sending plist data.
In step S26, the device is guided from boot mode to enter a recovery mode according to the received repair mode image file to enter a restore mode to prepare to start system restoration, where the restore os is used to support the device to complete IOS system restoration, and the restore os can perform communication between sending plist data.
In step S26, the basic parameters and information of the repair procedure used for constructing the system repair by constructing the manifest and constructing the information are sent to the device to be repaired in the restoreed os system, so that the device starts the system repair, and the communication, inspection and data exchange between the device and the terminal are performed.
In the process of repairing the system, the device will automatically send a data request message (datarequest msg) to the terminal through the restoeos system, and it should be noted that, the data request message (datarequest msg) includes plist data, and the plist data includes a key DataType, where the key DataType is used to identify a required data type, and when a key value of the key DataType is buildupdentitydic, the construction identifier obtained in step S23 needs to be sent to the device.
In a specific embodiment, before the step S20, the method includes the following steps:
s30, based on the equipment ID information, judging whether the equipment ID corresponding to the equipment ID information is the same as the equipment ID of the current equipment, and if so, judging that the current equipment is the equipment to be repaired.
In this embodiment, the device ID information is used as a unique identifier of the device, so as to determine that the device that needs to be repaired currently is the same as the device that is being repaired before, so as to prevent connection of other devices in the process of repairing the device, which results in failure of repairing the system.
In a specific embodiment, the "send updated build identifier to the device" in step S27 includes the following steps:
s40, receiving a data request instruction sent by the equipment in the repair time, and acquiring a key value of a DataType key in the plist data in the current data request instruction;
s41, judging whether the key value of the current DataType key is the buildultyityDict, if so, executing a step S42, and if not, jumping to a step S43;
s42, the updated construction identification is sent to the equipment.
S43, judging whether the key value of the next DataType key is the BuildIdentityDict or not until the key value of the DataType key is the BuildIdentityDict.
In this embodiment, during the process of repairing a system, the device will automatically send a data request message (datarequest msg) to the terminal through the resteeros system, and it should be noted that, the data request message (datarequest msg) includes plist data, where the plist data includes a key DataType, where the key DataType is used to identify a required data type, and when a key value of the key DataType is buildintydirect, an updated construction identifier needs to be sent to the device, and because a minimum disk space value in the construction identifier has been rewritten, the device considers that the device space is enough in the process of repairing the system in the second round, that is, the device passes through the space size check, so that the data of the user is retained.
In an embodiment, before the step S105, the method includes the following steps:
s50, receiving a repair progress message returned by the equipment, reading a checkpoint_error key value in the repair progress message, and storing Error information in the checkpoint_error key value into a repair Error log;
in this embodiment, the device returns a message, i.e. CheckPoint, to the terminal for the current repair step and repair progress, and after receiving the message, the terminal stores the repair progress message in the system repair error log.
It should be noted that, the repair progress message received by the terminal is plist data.
In a specific embodiment, the step S105 includes the following steps:
s60, obtaining error information in the repair error log, judging whether the error information is a preset error code, if not, executing step S61, and if so, executing step S62;
s61, outputting and displaying a system repair result;
s62, obtaining the disk space difference in the repair error log.
In this embodiment, the terminal first confirms the error information included in the repair error log, i.e. acquires the error code, determines whether the error code is 1110, acquires the key data (disk space delta) in the error information if the error is 1110, and directly displays the system repair information if the error code is not 1110.
It should be noted that, the insufficient device space may cause the error code 1110 to be generated, that is, the repair error log may store field information such as a required space, and the number included in the "required data space" in the repair error log is obtained, that is, the amount of space (disk space difference) that is missing from the system disk, and the unit is MB, and the obtained value is stored for the second-round repair to be provided for the system repair process in step S106, and returns to step S101 to start the new one-wheel system repair.
In a specific embodiment, the "updating the minimum disk space value in the build identifier according to the disk space delta" in the step S106 includes the following steps:
obtaining a minimum disk space value in the construction information, and adding the disk space difference and the minimum disk space value to obtain a target disk space value;
and re-placing the target disk space value into the construction information, naming the key value of the construction identifier by the buildintyDict, and converting the key value into data in a binary plist form.
The embodiment of the invention also provides a device for repairing the IOS system when the equipment space is insufficient, which is used for executing any embodiment of the method for repairing the IOS system when the equipment space is insufficient. In particular, referring to FIG. 2, FIG. 2 is a schematic block diagram of an apparatus for IOS system repair when device space is insufficient, in accordance with an embodiment of the present invention.
As shown in fig. 2, an apparatus 500 for IOS system repair when device space is insufficient, comprising:
an information obtaining unit 501, configured to establish a communication connection between a terminal and an apparatus, and obtain apparatus information of the apparatus, where the apparatus information includes an apparatus model, apparatus ID information, and an apparatus connection mode;
the first processing unit 502 is configured to determine a type of a connection mode of the device based on the device connection mode, and if the connection mode is a normal mode, enter a recovery mode and execute a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the step of executing the system repair includes sending a preset construction identifier to the device, so that the device performs the system repair based on the construction identifier
A second processing unit 503, configured to determine whether the device returns a notification message of insufficient space after the system repair step is performed, and if not, end; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; and updating the minimum disk space value in the construction identifier according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step.
The device can protect the data of the user, the implementation steps are simple and effective, the data are saved without disassembling and repairing or by hardware means, and then the system repairing is carried out, so that the problems of complex operation and human resource waste in the prior art are solved.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and units described above may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
The means for IOS system repair described above when device space is insufficient may be implemented in the form of a computer program that can run on a computer device as shown in FIG. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 1100 is a server, and the server may be a stand-alone server or a server cluster formed by a plurality of servers.
With reference to FIG. 3, the computer device 1100 includes a processor 1102, memory, and a network interface 1105 connected through a system bus 1101, wherein the memory may include a non-volatile storage medium 1103 and an internal memory 1104.
The non-volatile storage medium 1103 may store an operating system 11031 and computer programs 11032. The computer program 11032, when executed, causes the processor 1102 to perform a method for IOS system repair when device space is insufficient.
The processor 1102 is operable to provide computing and control capabilities to support the operation of the overall computer device 1100.
The internal memory 1104 provides an environment for the execution of a computer program 11032 in the non-volatile storage medium 1103, which computer program 11032, when executed by the processor 1102, causes the processor 1102 to perform a method of IOS system repair when device space is insufficient.
The network interface 1105 is used for network communication such as providing transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 3 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 1100 to which the present inventive arrangements may be implemented, and that a particular computer device 1100 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 3 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 3, and will not be described again.
It should be appreciated that in embodiments of the invention, the processor 1102 may be a central processing unit (Central Processing Unit, CPU), the processor 1102 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program which when executed by a processor implements a method of IOS system repair when device space is insufficient in accordance with an embodiment of the present invention.
The storage medium is a physical, non-transitory storage medium, and may be, for example, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A method for repairing an IOS system when a device space is insufficient, applied to a terminal, comprising the steps of:
establishing communication connection between a terminal and equipment, and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode;
judging the type of the connection mode of the equipment based on the equipment connection mode, if the equipment connection mode is the normal mode, entering a recovery mode and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the system repairing step comprises the steps of sending a preset construction identifier to the equipment, so that the equipment performs system repairing based on the construction identifier;
after the system repairing step is executed, judging whether the equipment returns the prompt information of insufficient space, if not, ending; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; updating the minimum disk space value in the construction mark according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step;
the system repair executing step comprises the following steps:
acquiring a corresponding system firmware package according to the equipment model, decompressing the system firmware package to obtain a recovery file and a construction list file;
converting the equipment model and equipment ID information into hardware model information, reading an array of buildudates in the construction list file, reading all sub-items in the array of buildudates, traversing and judging whether key values of DeviceClass keys in Info keys in the sub-items are matched with hardware models corresponding to the hardware model information, if so, judging that the current sub-item is a construction identifier, and if not, continuing to judge the next sub-item, wherein key values of a Manifest key and key values of Info keys in the construction identifier respectively represent a construction list and construction information;
a boot mode entering instruction is sent to the equipment, so that the equipment enters a boot mode according to the boot mode entering instruction;
based on the recovery file, acquiring a repair system image in the decompressed system firmware package, and sending the repair system image to the equipment, so that the equipment enters a repair mode according to the repair system image;
based on the construction list and the construction information, constructing basic parameters and information of a corresponding repair flow, updating the construction identification, and sending the updated construction identification to the equipment, so that the equipment repairs according to the construction identification.
2. The method of IOS system repair when device space is insufficient according to claim 1, wherein the entering a recovery mode comprises:
judging whether the equipment is in an unlocking state, if so, judging whether a trust relationship exists between the terminal and the equipment, and if not, executing unlocking operation;
if the trust relationship exists between the terminal and the equipment, sending an instruction for entering a recovery mode to the equipment, so that the equipment executes the instruction for entering the recovery mode and enters the recovery mode;
and if the terminal and the equipment do not have the trust relationship, sending a trust establishment request to the equipment and generating the trust relationship.
3. The method for repairing an IOS system when a device space is insufficient according to claim 1, wherein the steps of, according to the device model, obtaining a corresponding system firmware package, decompressing the system firmware package, obtaining a recovery file, and constructing a manifest file, include:
and judging whether the equipment ID corresponding to the equipment ID information is the same as the equipment ID of the current equipment or not based on the equipment ID information, and if so, judging that the current equipment is the equipment to be repaired.
4. The method of IOS system repair when device space is insufficient of claim 1, wherein the sending the updated build identification to the device comprises:
and receiving a data request instruction sent by the equipment within the repair time, acquiring a key value of a DataType key in the plist data in the current data request instruction, judging whether the key value of the current DataType key is the buildultyityDict, if so, sending the updated construction identifier to the equipment, and if not, continuing to judge the next data request instruction.
5. The method for repairing an IOS system when there is insufficient space in a device according to claim 1, wherein before determining whether the device returns a notification of insufficient space, the method comprises:
receiving a repair progress message returned by the equipment, reading a checkpoint_error key value in the repair progress message, and storing Error information in the checkpoint_error key value into a repair Error log;
the judging whether the equipment returns the prompt information of insufficient space or not comprises the following steps:
and obtaining error information in the repair error log, judging whether the error information is a preset error code, if not, outputting and displaying a system repair result, and if so, obtaining the disk space difference in the repair error log.
6. The method of IOS system repair in the event of device space deficiency of claim 1, wherein updating the minimum disk space value in the build identity based on the disk space delta comprises:
obtaining a minimum disk space value in the construction information, and adding the disk space difference and the minimum disk space value to obtain a target disk space value;
and re-placing the target disk space value into the construction information, naming the key value of the construction identifier by the buildintyDict, and converting the key value into data in a binary plist form.
7. An apparatus for repairing an IOS system when device space is insufficient, comprising:
the information acquisition unit is used for establishing communication connection between the terminal and the equipment and acquiring equipment information of the equipment, wherein the equipment information comprises equipment model, equipment ID information and equipment connection mode;
the first processing unit is used for judging the type of the connection mode of the equipment based on the equipment connection mode, entering a recovery mode if the equipment connection mode is a normal mode, and executing a system repair step; if the system is in the recovery mode or the DFU mode, directly executing a system repairing step; the system repairing step comprises the steps of sending a preset construction identifier to the equipment, so that the equipment performs system repairing based on the construction identifier;
the second processing unit is used for judging whether the equipment returns the prompt information of insufficient space after the system repair step is executed, and ending if the equipment does not return the prompt information; if the error log is returned, a corresponding repair error log is collected, and the disk space difference in the repair error log is obtained; updating the minimum disk space value in the construction mark according to the disk space difference, and returning to execute the communication connection step, the connection mode judgment step and the system repair step;
wherein, the system repair step is executed, including:
acquiring a corresponding system firmware package according to the equipment model, decompressing the system firmware package to obtain a recovery file and a construction list file;
converting the equipment model and equipment ID information into hardware model information, reading an array of buildudates in the construction list file, reading all sub-items in the array of buildudates, traversing and judging whether key values of DeviceClass keys in Info keys in the sub-items are matched with hardware models corresponding to the hardware model information, if so, judging that the current sub-item is a construction identifier, and if not, continuing to judge the next sub-item, wherein key values of a Manifest key and key values of Info keys in the construction identifier respectively represent a construction list and construction information;
a boot mode entering instruction is sent to the equipment, so that the equipment enters a boot mode according to the boot mode entering instruction;
based on the recovery file, acquiring a repair system image in the decompressed system firmware package, and sending the repair system image to the equipment, so that the equipment enters a repair mode according to the repair system image;
based on the construction list and the construction information, constructing basic parameters and information of a corresponding repair flow, updating the construction identification, and sending the updated construction identification to the equipment, so that the equipment repairs according to the construction identification.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements a method of IOS system repair when device space is insufficient as claimed in any one of claims 1 to 6.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the method of IOS system repair in the event of insufficient device space of any of claims 1 to 6.
CN202210454526.1A 2022-04-24 2022-04-24 IOS system repairing method and device when equipment space is insufficient and related components Active CN114791832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210454526.1A CN114791832B (en) 2022-04-24 2022-04-24 IOS system repairing method and device when equipment space is insufficient and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210454526.1A CN114791832B (en) 2022-04-24 2022-04-24 IOS system repairing method and device when equipment space is insufficient and related components

Publications (2)

Publication Number Publication Date
CN114791832A CN114791832A (en) 2022-07-26
CN114791832B true CN114791832B (en) 2024-02-27

Family

ID=82461522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210454526.1A Active CN114791832B (en) 2022-04-24 2022-04-24 IOS system repairing method and device when equipment space is insufficient and related components

Country Status (1)

Country Link
CN (1) CN114791832B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857358A (en) * 2011-06-29 2013-01-02 环旭电子股份有限公司 Customer premise equipment capable of repairing firmware and firmware repairing method of customer premise equipment
CN104580439A (en) * 2014-12-30 2015-04-29 创新科存储技术(深圳)有限公司 Method for achieving uniform data distribution in cloud storage system
CN107341049A (en) * 2017-07-03 2017-11-10 飞天诚信科技股份有限公司 The optimized treatment method and device of a kind of issued transaction
CN108701017A (en) * 2017-03-21 2018-10-23 华为技术有限公司 A kind of method and device of update operating system
CN109379246A (en) * 2018-09-21 2019-02-22 锐捷网络股份有限公司 A kind of detection method and device of memory
CN110764704A (en) * 2019-10-18 2020-02-07 浙江大华技术股份有限公司 Environment variable writing method, storage medium and electronic device
CN110928719A (en) * 2019-11-19 2020-03-27 深圳忆联信息系统有限公司 SSD low-power-consumption mode exception handling method and device, computer equipment and storage medium
CN110968266A (en) * 2019-11-07 2020-04-07 华中科技大学 Storage management method and system based on heat degree
CN111078515A (en) * 2019-11-25 2020-04-28 深圳忆联信息系统有限公司 SSD layered log recording method and device, computer equipment and storage medium
CN112035071A (en) * 2020-09-27 2020-12-04 万兴科技(湖南)有限公司 Disk data reading method and device, computer equipment and storage medium
CN112306563A (en) * 2020-11-03 2021-02-02 深圳软牛科技有限公司 Method, device, equipment and storage medium for resetting IOS screen use time password

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147821A1 (en) * 2006-12-19 2008-06-19 Dietrich Bradley W Managed peer-to-peer content backup service system and method using dynamic content dispersal to plural storage nodes
WO2015035396A1 (en) * 2013-09-09 2015-03-12 Layer, Inc. Federated authentication of client computers in networked data communications services callable by applications

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857358A (en) * 2011-06-29 2013-01-02 环旭电子股份有限公司 Customer premise equipment capable of repairing firmware and firmware repairing method of customer premise equipment
CN104580439A (en) * 2014-12-30 2015-04-29 创新科存储技术(深圳)有限公司 Method for achieving uniform data distribution in cloud storage system
CN108701017A (en) * 2017-03-21 2018-10-23 华为技术有限公司 A kind of method and device of update operating system
CN107341049A (en) * 2017-07-03 2017-11-10 飞天诚信科技股份有限公司 The optimized treatment method and device of a kind of issued transaction
CN109379246A (en) * 2018-09-21 2019-02-22 锐捷网络股份有限公司 A kind of detection method and device of memory
CN110764704A (en) * 2019-10-18 2020-02-07 浙江大华技术股份有限公司 Environment variable writing method, storage medium and electronic device
CN110968266A (en) * 2019-11-07 2020-04-07 华中科技大学 Storage management method and system based on heat degree
CN110928719A (en) * 2019-11-19 2020-03-27 深圳忆联信息系统有限公司 SSD low-power-consumption mode exception handling method and device, computer equipment and storage medium
CN111078515A (en) * 2019-11-25 2020-04-28 深圳忆联信息系统有限公司 SSD layered log recording method and device, computer equipment and storage medium
CN112035071A (en) * 2020-09-27 2020-12-04 万兴科技(湖南)有限公司 Disk data reading method and device, computer equipment and storage medium
CN112306563A (en) * 2020-11-03 2021-02-02 深圳软牛科技有限公司 Method, device, equipment and storage medium for resetting IOS screen use time password

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
A Survey of Cybersecurity of Digital Manufacturing;Priyanka Mahesh等;IEEE;第109卷(第4期);第495页-516页 *
Android平台下的隐私数据保护方法的研究与实现;汤瑾;中国优秀硕士学位论文全文数据库信息科技辑(第4期);第I138-59页 *
iOS平台数字取证系统的设计与实现;许正达;中国优秀硕士学位论文全文数据库社会科学Ⅰ辑(第7期);第G120-1页 *
数据中心三维可视化运行服务平台编译器的设计与实现;薛芸;中国优秀硕士学位论文全文数据库信息科技辑(第1期);第I138-286页 *
浅谈桌面级关系数据库引擎的存储模型;林云;福建电脑(第1期);第132页-133页 *
裸机备份与恢复技术研究;王德军;王丽娜;郝永芳;;计算机应用研究(第12期);第3735页-3738页 *

Also Published As

Publication number Publication date
CN114791832A (en) 2022-07-26

Similar Documents

Publication Publication Date Title
CN103530199A (en) Software running error repairing method, device and system
US9585033B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN112906008A (en) Kernel vulnerability repairing method, device, server and system
CN104065695A (en) Software update method, server, user end and system
CN108241498B (en) Vehicle-mounted equipment upgrading method and device and vehicle
CN111538517B (en) Method and system for upgrading server firmware, electronic equipment and storage medium
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN113504932B (en) Firmware data updating method and device
US20170344429A1 (en) Remediation of a Device using an Embedded Server
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN115437915A (en) Vehicle-based version testing method and device and electronic equipment
CN112464238B (en) Vulnerability scanning method and electronic equipment
CN114791832B (en) IOS system repairing method and device when equipment space is insufficient and related components
CN113760611A (en) System site switching method and device, electronic equipment and storage medium
CN112015587B (en) Method and device for enhancing reliability of operating system
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN111581005A (en) Terminal repairing method, terminal and storage medium
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN115208695B (en) Black box safety scanning method, device and system and electronic equipment
CN114546537B (en) Starting sequence deployment method and related device for multiple operating systems
CN110968456A (en) Method and device for processing fault disk in distributed storage system
KR20210113595A (en) Anomaly handling method, terminal device and storage medium
CN114995854A (en) Application program online upgrading method and device, terminal and operation machine
CN112416796B (en) Software upgrading test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Ruan Niu Technology Group Co.,Ltd.

Address before: 1301-1310, building 2, jinlitong financial center building, 1100 Xingye Road, Haiwang community, Xin'an street, Bao'an District, Shenzhen, Guangdong 518000

Applicant before: AFIRSTSOFT CO.,LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant