Electronic device startup method, function activation method, and electronic device

By reading the startup files sequentially into memory before the terminal device starts, the problem of limited startup speed caused by weak disk read/write performance is solved, resulting in faster process startup and function activation.

WO2026061043A1PCT designated stage Publication Date: 2026-03-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

During the startup process, the terminal device's startup speed is limited due to its weak disk read/write performance. In particular, when starting a process, it needs to wait for the startup file to be read from the disk into memory, which affects the user experience.

Method used

By pre-reading the startup files from the disk into memory according to the process startup order, the corresponding files are read directly from memory when the process starts, reducing waiting time.

Benefits of technology

It improves process startup speed, enhancing the user's boot experience and feature activation speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025103921_26032026_PF_FP_ABST
    Figure CN2025103921_26032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, and provides an electronic device startup method, a function activation method, and an electronic device. The electronic device startup method comprises: according to a first preset sequence, accessing from a disk startup files required for starting up an electronic device, and reading same into memory according to the first preset sequence; and upon initiating startup of a process, reading respective startup files from the memory according to the first preset sequence so as to start corresponding processes. This reduces time spent waiting for startup files to be read from a disk to memory, increases process startup speed, allows for the quick startup of electronic devices, and improves user experience. The first preset sequence is a startup sequence for starting a plurality of processes of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Method for starting electronic device, method for starting function and electronic device

[0001] The present application claims priority to the Chinese patent application No. 202411314912.6, filed on September 19, 2024, and entitled "Method for starting electronic device, method for starting function and electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal, in particular to a method for starting electronic device, a method for starting function and an electronic device. BACKGROUND

[0003] In the starting process of the terminal device, each process needs to be started in turn. When each process is started, the terminal device needs to read the starting file required for starting the process from the disk. Since the read-write performance of the disk is weak, the starting speed of the terminal device is limited.

[0004] Currently, each starting file can be read from the disk to the memory in advance in the form of file granularity or disk partition, so that the corresponding starting file can be directly accessed in the memory when the process is started. However, when starting a process, if the starting file corresponding to the process is not read in the memory, the terminal device still needs to wait for the disk to read the starting file to the memory, which leads to slow starting of the terminal device and affects the user's boot experience. SUMMARY

[0005] The present application provides a method for starting electronic device, a method for starting function and an electronic device, which can directly obtain the corresponding starting file from the memory when starting the process required by the electronic device, reduces the time for waiting for the corresponding starting file to be read from the disk to the memory when starting the corresponding process, improves the starting speed of the process, thereby improving the starting speed of the electronic device and improving the user experience.

[0006] To achieve the above-mentioned purpose, the embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a method for starting an electronic device is provided. Taking an electronic device as an example, in the starting method, first, the electronic device responds to the user's starting operation on the electronic device, obtains a plurality of starting files for starting the electronic device from the disk in a first predetermined order, and saves the plurality of starting files to the memory in turn. Then, after the first process in the plurality of processes starts, the electronic device reads the starting files corresponding to the plurality of processes from the memory in the first predetermined order. Finally, the electronic device starts the corresponding processes in the plurality of processes according to the starting files corresponding to the plurality of processes in turn, to start the electronic device.

[0008] The first preset order is a starting order of multiple processes for starting the electronic device, and the multiple starting files in the disk are stored according to the starting order of the multiple processes, and one process corresponds to at least one starting file.

[0009] The starting operation can be a long press operation on the power key or a short press operation on the power key, and the power key can be one or two.

[0010] In the starting method of the electronic device, the electronic device stores the starting files in the disk according to the starting order of the processes for starting the electronic device, and in response to the starting operation of the user on the electronic device, the starting files in the disk are read into the memory in sequence according to the starting order of the processes for starting the electronic device before the corresponding processes are started, so that the corresponding starting files are read from the memory to start the corresponding processes after the processes are started in sequence, the starting of the electronic device is realized, the time for the electronic device to read the corresponding starting files from the disk into the memory when starting the corresponding processes is reduced, the starting speed of the electronic device is improved, and the user experience is improved.

[0011] In an implementation form of the first aspect, when the electronic device acquires the multiple starting files for starting the electronic device from the disk according to the first preset order, first, the electronic device acquires at least one first file for starting the electronic device from the first partition of the disk according to the first preset order, and then the electronic device acquires at least one second file for starting the electronic device from the second partition of the disk according to the first preset order.

[0012] The first file is a file corresponding to an operating system function of the electronic device in the starting files, and the second file is a file corresponding to a hardware function of the electronic device in the starting files; the multiple starting files include the at least one first file and the at least one second file. It can be seen that the disk is divided into the first partition and the second partition, which is beneficial to the management of the starting files and facilitates the installation and maintenance of the operating system of the electronic device. When the operating system needs to be reinstalled due to problems, only the corresponding partition can be formatted and reinstalled, without affecting the data in other partitions.

[0013] In an implementation form of the first aspect, when the electronic device acquires the at least one first file for starting the electronic device from the first partition of the disk according to the first preset order, first, the electronic device acquires at least one first description information from the first partition of the disk according to the first preset order, and then the electronic device acquires the at least one first file for starting the electronic device according to the at least one first description information.

[0014] The at least one first description information is used to describe positions of the at least one first file stored in the first partition. It can be seen that, by obtaining the first description information, all the first files corresponding to the first description information can be quickly obtained, and the first description information facilitates management of each first file required for starting the process, thereby improving the speed and reliability of obtaining the first files.

[0015] In an implementation form of the first aspect, the at least one first description information is stored in a first storage unit of the first partition, the first storage unit is a region that is read first in the first partition, a size of the first storage unit is determined according to a size of the at least one first file, and each first description information includes a first preset parameter, the first preset parameter being used to indicate that the first description information is stored in the first storage unit. It can be seen that, by the first storage unit, all the first files can be directly and preferentially obtained without determining the first files to be read, so that when the files in the first partition of the disk are sequentially read into the memory, the time for reading and loading other files in the first partition into the memory can be reduced, the memory space is saved, and the speed of obtaining the first files from the memory by the electronic device is improved.

[0016] In an implementation form of the first aspect, when the electronic device obtains the at least one second file used for starting the electronic device from the second partition of the disk according to the first preset order, the electronic device first obtains the at least one second description information from the second partition of the disk according to the first preset order, and then obtains the at least one second file used for starting the electronic device according to the at least one second description information.

[0017] The at least one second description information is used to describe positions of the at least one second file stored in the second partition. It can be seen that, by obtaining the second description information, all the second files corresponding to the second description information can be quickly obtained, and the second description information facilitates management of each second file required for starting the process, thereby improving the speed and reliability of obtaining the second files.

[0018] In an implementation form of the first aspect, the at least one second description information is stored in a second storage unit of the second partition, the second storage unit is a region that is read first in the second partition, a size of the second storage unit is determined according to a size of the at least one second file, and each second description information includes a second preset parameter, the second preset parameter being used to indicate that the second description information is stored in the second storage unit. It can be seen that, by the second storage unit, all the second files can be directly and preferentially obtained without determining the second files to be read, so that when the files in the second partition of the disk are sequentially read into the memory, the time for reading and loading other files in the second partition into the memory can be reduced, the memory space is saved, and the speed of obtaining the second files from the memory by the electronic device is improved.

[0019] In a possible implementation of the first aspect, in response to a user starting operation on the electronic device, when the first pre-reading permission is enabled, the electronic device acquires, from the disk, a plurality of starting files for starting the electronic device according to a first preset order, and saves the plurality of starting files to the memory one by one. As can be seen, the electronic device can accelerate the starting speed of the electronic device through the pre-reading process, or can directly interact with the disk without pre-reading. In the case of not pre-reading, since the starting files in the disk are also arranged according to the first preset order, when the electronic device starts the processes according to the first preset order, the corresponding starting files are read from the disk according to the first preset order to start the corresponding processes, which can further improve the reading speed of the disk. The first pre-reading permission provides two ways for the user to choose, meets the different needs of the user, and the first pre-reading permission is convenient for the developer to manage the method of fast starting the electronic device.

[0020] In a second aspect, a function starting method is provided. Taking an electronic device as an example, in the starting method, the electronic device acquires, from an image file, a plurality of starting files for starting a target function according to a second preset order in response to a user starting operation on the target function, and saves the plurality of starting files to the memory one by one. Then, the electronic device reads the starting files corresponding to the plurality of processes from the memory one by one according to the second preset order after the first process in the plurality of processes starts. Finally, the electronic device starts the processes corresponding to the plurality of processes according to the starting files corresponding to the plurality of processes one by one to start the target function.

[0021] In the function starting method, the second preset order is the starting order of the plurality of processes for starting the target function, the plurality of starting files in the image file are saved according to the starting order of the plurality of processes, and one process corresponds to at least one starting file.

[0022] For example, the starting operation can be a click operation on an application corresponding to the target function of the electronic device, a click operation on a control corresponding to the target function of the electronic device, or a sliding operation on a shortcut gesture corresponding to the target function of the electronic device.

[0023] For example, the target function can be a container corresponding function, for example, starting a virtual machine on the electronic device.

[0024] In the method for starting the function, the starting file corresponding to the starting sequence of the process of the target function is stored in the mirror file. When the electronic device starts the target function, the starting file is read from the mirror file to the memory according to the starting sequence of the process in advance. After the process is started, the electronic device can read the starting file from the memory according to the starting sequence of the process to start the process in sequence, so as to start the target function of the electronic device. In this way, when the process corresponding to the target function is started, the electronic device can reduce the time for reading and loading the starting file corresponding to the process from the mirror file to the memory, improve the starting speed of the process, and improve the starting speed of the target function of the electronic device, so as to realize the fast starting of the target function of the electronic device and improve the user experience of the target function.

[0025] In an implementation of the second aspect, when the electronic device acquires the plurality of starting files for starting the target function from the mirror file according to the second preset sequence, the electronic device acquires a plurality of third description information from the mirror file according to the second preset sequence, and then acquires the plurality of starting files for starting the target function according to the plurality of third description information.

[0026] The plurality of third description information is used to describe the positions of the plurality of starting files stored in the mirror file. It can be seen that the third description information facilitates the fast acquisition of all starting files corresponding to the third description information, and the third description information facilitates the management of the starting files required by the process corresponding to the target function, and improves the acquisition speed and reliability of the starting files.

[0027] In an implementation of the second aspect, the plurality of third description information is stored in a third storage unit of the mirror file. The third storage unit is the first read area of the mirror file, the size of the third storage unit is determined according to the size of the plurality of starting files, and each third description information includes a third preset parameter. The third preset parameter is used to indicate that the third description information is stored in the third storage unit. It can be seen that all starting files can be directly acquired in priority through the third storage unit, without the need to determine the starting files to be read. In this way, when the files in the mirror file are read to the memory in sequence, the time for reading other files in the mirror file to the memory can be reduced, and the memory space is also reduced, thereby improving the speed of acquiring the starting files from the memory.

[0028] In an implementation form of the second aspect, in response to the user opening operation on the target function, the electronic device acquires the plurality of start files for opening the target function from the mirror file in the second preset order and saves the plurality of start files into the memory one by one in the case that the second pre-reading permission is opened. It can be seen that the electronic device can accelerate the opening speed of the target function through the pre-reading process, or directly interact with the mirror file without pre-reading. In the case without pre-reading, since the start files in the mirror file are also arranged in the second preset order, when the electronic device starts the corresponding process of the target function in the second preset order, the corresponding start file is read from the mirror file in the second preset order to start the corresponding process, which can further improve the reading speed of the mirror file. The second pre-reading permission provides two ways for the user to choose, meets different needs of the user, and the second pre-reading permission is convenient for the developer to manage the method of quickly opening the target function of the electronic device.

[0029] In a third aspect, an electronic device is provided, including a memory and one or more processors; the memory is coupled with the processor; the memory stores computer program codes, the computer program codes include computer instructions, when the computer instructions are executed by the processor, the electronic device executes the start method of the electronic device in the first aspect and any implementation form thereof, or executes the opening method of the function in the second aspect and any implementation form thereof.

[0030] In a fourth aspect, a computer readable storage medium is provided, including computer instructions, when the computer instructions are run on an electronic device, the electronic device executes the start method of the electronic device in the first aspect and any implementation form thereof, or executes the opening method of the function in the second aspect and any implementation form thereof.

[0031] In a fifth aspect, a computer program product is provided, when the computer program product is run on an electronic device, the electronic device executes the start method of the electronic device in the first aspect and any implementation form thereof, or executes the opening method of the function in the second aspect and any implementation form thereof.

[0032] The electronic device provided in the third aspect, the computer storage medium provided in the fourth aspect and the computer program product provided in the fifth aspect can achieve the beneficial effects as described with reference to the first aspect and any implementation form thereof, the second aspect and any implementation form thereof, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0033] FIG. 1 shows a hardware structure schematic diagram of an electronic device provided by an embodiment of the present application;

[0034] Figure 2 shows a software structure diagram of an electronic device according to an embodiment of the present application;

[0035] Figure 3 shows a flowchart of a mobile phone startup according to an embodiment of the present application;

[0036] Figure 4 shows a diagram of a mobile phone startup according to an embodiment of the present application;

[0037] Figure 5 shows a diagram of a mobile phone startup according to an embodiment of the present application;

[0038] Figure 6 shows a diagram of a system image file according to an embodiment of the present application;

[0039] Figure 7 shows a flowchart of a mobile phone startup according to an embodiment of the present application;

[0040] Figure 8 shows a flowchart of a mobile phone startup according to an embodiment of the present application;

[0041] Figure 9 shows a flowchart of starting a target function of a mobile phone according to an embodiment of the present application;

[0042] Figure 10 shows a diagram of an image file according to an embodiment of the present application;

[0043] Figure 11 shows a flowchart of starting a target function of a mobile phone according to an embodiment of the present application;

[0044] Figure 12 shows a flowchart of starting a target function of a mobile phone according to an embodiment of the present application;

[0045] Figure 13 shows a hardware structure diagram of another electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, " / " represents an "or" relationship between the objects before and after the " / ", for example, A / B can represent A or B; in the present application, "and / or" is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A alone, A and B together, and B alone, where A and B can be singular or plural. In the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or the like means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second", and the like are used to distinguish the same or similar items with the same function and effect. Those skilled in the art can understand that "first", "second", and the like do not limit the quantity and execution order, and "first", "second", and the like do not necessarily mean different. At the same time, in the embodiments of the present application, "exemplary" or "for example" means to serve as an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, "exemplary" or "for example" is used to present the relevant concept in a specific manner, and to facilitate understanding.

[0047] In addition, the business scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that as new business scenarios appear, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0048] When the operating system is started, each process needs to be started in turn, for example, Android When a mobile phone is powered on, an initialization init process, a hatching zygote process, a system service system_server process and the like need to be started in sequence. When each process is started, a large number of files need to be read from a disk to a memory, such as an executable binary file of the process, a shared object (SO) file running in dependence and the like. Because the input / output (IO) performance of the disk is weak, the starting speed of the operating system is limited. In order to improve the starting speed of the operating system, when the operating system is started, the files required by each process to be started are read from the disk to the memory in advance, and the subsequent process can directly access the file in the memory when the process is started, so as to improve the starting speed of the operating system.

[0049] Currently, there are two ways to perform IO pre-reading, one is file granularity-based IO pre-reading, and the other is disk partition-based IO pre-reading.

[0050] The file granularity-based IO pre-reading, for example, when the operating system is started, the init binary file needs to be executed, so the init file can be read from the disk to the memory in advance before the init is started. When the operating system is started subsequently, the init file can be directly read from the memory, so as to improve the starting speed of the operating system. However, the operating system startup involves tens of thousands of file reading and writing, so the reading efficiency is low when each file is read, the speed is slow, and it is difficult to ensure that the file is read into the memory before the operating system accesses the file.

[0051] The disk partition-based IO pre-reading, because all the files on which the operating system depends are in the system system and the third-party vendor disk partitions, so when the operating system is started, the data of the system and vendor disk partitions can be read synchronously. However, the current file position in the disk partition is sorted according to the file name, and it is difficult to ensure that the file is loaded into the memory before the operating system accesses it. For example, the process corresponding to the file starting with the letter z needs to be started at an early time, but the file starting with the letter z is pre-read into the memory at a later time, which affects the process starting speed and thus the operating system starting speed.

[0052] Therefore, the embodiments of the present application provide a starting method of an electronic device and a function opening method.

[0053] In a starting method of an electronic device, taking the application of the electronic device as an example, first, the electronic device responds to the starting operation of the user on the electronic device, and acquires a plurality of starting files for starting the electronic device from a disk in a first preset order, and saves the plurality of starting files in the memory in turn, wherein the first preset order is the starting order of a plurality of processes for starting the electronic device, the plurality of starting files in the disk are saved according to the starting order of the plurality of processes, and one process corresponds to at least one starting file. Then, after the first process in the plurality of processes starts, the electronic device reads the starting files corresponding to the plurality of processes from the memory in turn according to the first preset order. Finally, the electronic device starts the corresponding processes according to the starting files corresponding to the plurality of processes in turn, so as to start the electronic device.

[0054] In the above method, the user can make the electronic device read the corresponding starting files from the disk in the starting order of the processes and store them in the memory in advance before starting the corresponding processes, so that the electronic device reads the corresponding starting files from the memory in the starting order of the processes to start the processes when the processes start, reduces the time for waiting for the starting files to be read from the disk to the memory, improves the speed of starting the processes, and thus improves the starting speed of the electronic device and improves the user's boot experience.

[0055] In a starting method of an electronic device, taking the application of the electronic device as an example, first, the electronic device responds to the starting operation of the user on the electronic device, and acquires a plurality of starting files for starting the electronic device from a disk in a first preset order, and saves the plurality of starting files in the memory in turn, wherein the first preset order is the starting order of a plurality of processes for starting the electronic device, the plurality of starting files in the disk are saved according to the starting order of the plurality of processes, and one process corresponds to at least one starting file. Then, after the first process in the plurality of processes starts, the electronic device reads the starting files corresponding to the plurality of processes from the memory in turn according to the first preset order. Finally, the electronic device starts the corresponding processes according to the starting files corresponding to the plurality of processes in turn, so as to start the electronic device.

[0056] In the above method, the user can make the electronic device read the corresponding starting files from the disk in the starting order of the processes and store them in the memory in advance before starting the corresponding processes, so that the electronic device reads the corresponding starting files from the memory in the starting order of the processes to start the processes when the processes start, reduces the time for waiting for the starting files to be read from the disk to the memory, improves the speed of starting the processes, and thus improves the starting speed of the electronic device and improves the user's boot experience.

[0057] In some embodiments, as shown in FIG. 1, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0058] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0059] The processor 110 can include one or more processing units (not shown in FIG. 1), for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0060] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0061] In some possible implementation manners, the controller can specifically control the electronic device 100 to receive a user start operation on the electronic device, read the start file from the disk into the memory according to the order of starting the corresponding process, and after the corresponding process starts to start, control the electronic device 100 to read the start file from the memory according to the order of starting the corresponding process in sequence; or the controller can specifically control the electronic device 100 to receive a user start operation on the electronic device, read the start file from the disk into the memory according to the order of starting the corresponding process, and after the corresponding process starts to start, control the electronic device 100 to read the start file from the memory according to the order of starting the corresponding process in sequence.

[0062] In some possible implementation manners, the controller can also control the electronic device 100 to start the corresponding process after obtaining the start file, or control the electronic device 100 to start the corresponding process after obtaining the start file.

[0063] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. Avoid repeated access and reduce the waiting time of the processor 110, thereby improving the efficiency of the system.

[0064] In some embodiments, the processor 110 can include one or more interfaces (not shown in FIG. 1). For example, the USB interface 130 is an interface that meets the USB standard specification, and can be 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, or to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0065] The charging management module 140 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger.

[0066] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc.

[0067] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0068] The antenna 1 and the antenna 2 are used for transmitting and receiving electromagnetic wave signals. The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert the signals into electromagnetic waves radiated by the antenna 1.

[0069] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and convert the signals into electromagnetic waves radiated by the antenna 2.

[0070] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.

[0071] The electronic device 100 implements the display function by the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.

[0072] It can be understood that the display screen 194 mentioned herein can be used as a screen in the following embodiments.

[0073] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor, etc.

[0074] The ISP is configured to process data fed back by the camera 193. The camera 193 is configured to capture a still image or a video.

[0075] The digital signal processor is configured to process a digital signal, which can be a digital image signal, and can also be other digital signals. The video codec is configured to compress or decompress a digital video. The NPU is a neural-network (NN) calculation processor, which is configured to process input information quickly by referring to a biological neural network structure, for example, by referring to a transmission mode between human brain neurons, and can also be self-learned constantly. Through the NPU, intelligent cognition of the electronic device 100 and other applications can be implemented.

[0076] The external memory interface 120 can be configured to connect an external memory card, for example, a Micro SD card, to implement an extension of a storage capability of the electronic device 100. The external memory card is configured to communicate with the processor 110 through the external memory interface 120 to implement a data storage function.

[0077] The internal memory 121 can be configured to store computer executable program codes, which include instructions. The processor 110 is configured to execute various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (for example, a sound playing function, an image playing function, etc.), and the like. The data storage area can store data (for example, audio data, a phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0078] In some possible implementation manners, the electronic device 100 can store an operating system of the electronic device and an image file corresponding to a function of the electronic device in the non-volatile memory in the internal memory 121. The electronic device 100 can store a start file for starting the electronic device, which is pre-read from the non-volatile memory, in the high-speed random access memory in the internal memory 121, or store a start file for starting the function of the electronic device, which is pre-read from the image file in the non-volatile memory.

[0079] The electronic device 100 can implement audio functions through the audio module 170 and an application processor, etc. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0080] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys. They can also be touch keys.

[0081] In some possible implementations, the electronic device 100 can start an operating system in response to a long-press operation of a user on the power-on key, or the electronic device 100 can start a function of the electronic device 100 in response to a click operation of a user on a touch key corresponding to the function.

[0082] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and also can be used to indicate a message, a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.

[0083] Based on the electronic device shown in FIG. 1, the starting method of the electronic device in the embodiment of the present application can reduce the time for the electronic device to wait for a corresponding starting file to be read from a disk to a memory when starting a corresponding process, improve the starting speed of the process for starting the electronic device, thereby improving the starting speed of the electronic device and improving the user's boot experience.

[0084] Based on the electronic device shown in FIG. 1, the starting method of the starting method of the function in the embodiment of the present application can reduce the time for the electronic device to wait for a corresponding starting file to be read from a disk to a memory when starting a corresponding process, improve the starting speed of the process for starting the electronic device, thereby improving the starting speed of the electronic device and improving the user's boot experience.

[0085] In some embodiments, as shown in FIG. 2, the electronic device 100 can also adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes an android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.

[0086] As shown in FIG. 2, the layered architecture divides software into several layers, each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a system service layer, and a kernel layer.

[0087] The application program layer can include a series of application packages.

[0088] As shown in FIG. 2, the application packages can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0089] The application framework layer provides application programming interface (API) and programming framework for the application programs of the application program layer. The application framework layer includes some pre-defined functions.

[0090] As shown in FIG. 2, the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0091] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build application programs. The display interface can be composed of one or more views.

[0092] The system service layer can include a plurality of functional modules. For example: surface manager, media libraries, three-dimensional graphics processing library (e.g. OpenGL ES), two-dimensional graphics engine (e.g. SGL), etc.

[0093] In some possible implementation manners, the system service layer can include a starting module. The starting module is configured to, in response to a starting operation of the electronic device by a user, read the starting files from the disk to the memory in the starting order of the corresponding processes one by one, and after the first corresponding process is started, read the starting files from the memory in the starting order of the corresponding processes one by one, to realize the starting of the electronic device.

[0094] In some possible implementation manners, the system service layer can include an enabling module. The enabling module is configured to, in response to an enabling operation of the electronic device function by a user, read the starting files from the image file to the memory in the starting order of the corresponding processes one by one, and after the first corresponding process is started, read the starting files from the memory in the starting order of the corresponding processes one by one, to realize the enabling of the electronic device function.

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

[0096] In some possible implementation manners, the kernel layer can include an operating system driver, and the operating system driver is configured to, in response to a user starting operation on the electronic device, sequentially read the start files from the disk to the memory according to the start order of the corresponding processes, and sequentially read the start files from the memory according to the start order of the corresponding processes after the first process of the corresponding processes is started, to realize starting of the electronic device.

[0097] In some possible implementation manners, the kernel layer can include a container driver, and the container driver is configured to, in response to a user starting operation on the electronic device, sequentially read the start files from the disk to the memory according to the start order of the corresponding processes, and sequentially read the start files from the memory according to the start order of the corresponding processes after the first process of the corresponding processes is started, to realize starting of the electronic device.

[0098] Based on the electronic device shown in FIG. 2, the starting method of the electronic device in the embodiment of the present application can guarantee that the electronic device can directly read the start file corresponding to the process in the memory when starting the process, improve the process starting speed, and thus improve the starting speed of the electronic device and improve the user's boot experience.

[0099] Based on the electronic device shown in FIG. 2, the starting method of the electronic device in the embodiment of the present application can guarantee that the electronic device can directly read the start file corresponding to the process in the memory when starting the process, improve the process starting speed, and thus improve the starting speed of the electronic device and improve the user's boot experience.

[0100] The electronic device can be a terminal device such as a mobile phone, a tablet computer, a wearable device (such as a smart watch, a smart bracelet, etc.), a smart furniture device (such as a television, etc.), and a car machine (such as a car computer), and the mobile phone can be a foldable screen mobile phone or a non-foldable screen mobile phone.

[0101] The starting method and the function starting method of the electronic device provided in the embodiments of the present application are described below with the electronic device being a mobile phone as an example.

[0102] Embodiment One

[0103] Referring to FIG. 3, the starting method of the electronic device can include the following steps S301-S303.

[0104] S301, the mobile phone, in response to a user starting operation on the mobile phone, obtains a plurality of start files for starting the mobile phone from the disk according to a first preset order, and sequentially saves the plurality of start files to the memory.

[0105] For example, the startup operation includes any one of the following: a long press / short press of the power button, a click operation of the screen control, and a gesture swipe operation on the screen. The power button can be one button or two buttons. For example, as shown in Figure 3, the startup operation can be a long press / short press of the power button by the user when the phone is off to turn it on; as shown in Figure 4, the startup operation can be a click operation of the confirmation control displayed in the restart confirmation pop-up window on the phone screen by the user when the phone is on to restart it; as shown in Figure 5, the startup operation can be a swipe operation of the Z-shaped gesture corresponding to the restart shortcut gesture on the phone screen by the user when the phone is on to restart it. This application embodiment does not impose specific limitations on these.

[0106] For example, starting a phone means starting its operating system, which may include Android. HarmonyOS as well as The first preset order is the startup order of multiple processes used to start the phone. When the phone is powered on, it needs to start the multiple processes required for startup in the first preset order in order to start the phone's operating system and thus power on the phone. For example, When a mobile phone boots up, it needs to start the corresponding init, zygote, system_server, and other processes in sequence before it can start. The operating system of a certain mobile phone requires the sequential startup of corresponding initialization, incubation, and system service processes before it can boot up. operating system.

[0107] For example, a mobile phone needs to obtain the startup files required to start a process before it can start the corresponding process. One process corresponds to at least one startup file. For example, the multiple startup files corresponding to a certain process can be the executable binary file and SO file corresponding to that process, etc. The multiple startup files are stored on the disk according to the startup order of the multiple processes (i.e., the first preset order). In this way, when the mobile phone is powered on, it can pre-read the multiple startup files corresponding to the multiple processes required to start the mobile phone operating system from the disk into memory in the first preset order. For example, the multiple processes required to start the mobile phone are arranged in the first preset order as process 1, process 2, ..., and process n. The multiple startup files stored on the disk are startup file 1 corresponding to process 1, startup file 2 corresponding to process 2, ..., and startup file n corresponding to process n. When the mobile phone is powered on, startup file 1 is read into memory from the disk in the following order: startup file 1, startup file 2, ..., and startup file n.

[0108] S302, after the first process of the plurality of processes required for starting the mobile phone starts to start, the mobile phone reads the starting files corresponding to the plurality of processes from the memory in the first preset order.

[0109] For example, after the first process of the plurality of processes required for starting the mobile phone starts to start, the mobile phone can directly read the corresponding starting files from the memory in the first preset order. For example, after the process 1 starts to start, the mobile phone reads the starting file 1 from the memory in the first preset order to start the corresponding process 1, reads the starting file 2 to start the corresponding process 2, and so on, and reads the starting file n to start the corresponding process n.

[0110] S303, the mobile phone starts the corresponding processes according to the starting files corresponding to the plurality of processes to start the mobile phone.

[0111] For example, the mobile phone reads the starting files from the memory in the first preset order to start the corresponding processes. After the last process of the plurality of processes required for starting the mobile phone starts to start, the mobile phone can start the operating system of the mobile phone to realize the booting of the mobile phone.

[0112] In the above starting method of the mobile phone, the starting files in the disk are stored in the starting order of the corresponding processes. Thus, before starting the corresponding processes, the starting files are read from the disk to the memory in the process starting order. When the mobile phone starts the processes, the mobile phone can directly read the corresponding starting files from the memory in the process starting order to start the corresponding processes in sequence, thereby starting the operating system of the mobile phone to realize the starting of the mobile phone. The time for waiting for the disk to read the corresponding starting files to the memory is reduced when the mobile phone starts the processes, the process starting speed is improved, thereby improving the starting speed of the operating system of the mobile phone, realizing the fast starting of the mobile phone, and improving the user booting experience.

[0113] In some possible implementation manners, when the mobile phone acquires the plurality of starting files for starting the mobile phone from the disk in the first preset order, first, the mobile phone acquires at least one first file for starting the mobile phone from the first partition of the disk in the first preset order, and then the mobile phone acquires at least one second file for starting the mobile phone from the second partition of the disk in the first preset order.

[0114] The first file is the file corresponding to the operating system function of the mobile phone in the starting files, the second file is the file corresponding to the hardware function of the mobile phone in the starting files, and the plurality of starting files include the at least one first file and the at least one second file.

[0115] For example, In the mobile phone, the first partition of the disk can be a system partition, and the second partition can be a vendor partition. The boot file stored in the system partition is a first file, and the boot file stored in the vendor partition is a second file. When the mobile phone performs pre-reading, the mobile phone can first read the first file in the system partition into the memory according to the first preset order, and then read the second file in the vendor partition into the memory according to the first preset order. When the mobile phone performs pre-reading, the mobile phone can also read the first file in the system partition into the memory according to the first preset order, and simultaneously read the second file in the vendor partition into the memory according to the first preset order. In this way, the mobile phone can start multiple threads to simultaneously read the corresponding boot files from different partitions into the memory, and multiple reading modes are provided, and the embodiments of the present application do not make specific limitations on this.

[0116] It can be seen that dividing the disk of the mobile phone into the first partition and the second partition is beneficial to the management of the boot file and facilitates the installation and maintenance of the mobile phone operating system. In this way, when the operating system has a problem and needs to be reinstalled, only the first partition can be formatted and reinstalled, and the data of other partitions will not be affected.

[0117] In some possible implementation manners, when the mobile phone acquires at least one first file for starting the mobile phone from the first partition of the disk according to the first preset order, first, the mobile phone acquires at least one first description information from the first partition of the disk according to the first preset order, and then the mobile phone respectively acquires at least one first file for starting the mobile phone according to the at least one first description information.

[0118] The at least one first description information is used to describe the position of the at least one first file stored in the first partition.

[0119] For example, In the mobile phone, when the first partition is a system partition, the files corresponding to system components and service (APEX) modules are stored in the / system / apex path, the system-level executable files are stored in the / system / bin path, the shared library files required by a 64-bit system architecture are stored in the / system / lib64 path, and the multiple first description information can be apex, bin, and lib64 in the system partition.

[0120] For example, the first files include files corresponding to APEX modules required for starting the mobile phone under apex in the system partition, executable files corresponding to various processes required for starting the mobile phone under bin in the system partition, and shared library files required for starting the mobile phone under lib64 in the system partition. The first description information apex, bin, and lib64 in the system partition can be sequentially obtained in a first preset order, so that all the first files under apex, bin, and lib64 can be sequentially obtained in the first preset order. For example, the first description information is arranged in the first preset order in the order of apex, bin, and lib64. The mobile phone can first load the files corresponding to the APEX modules required for starting the mobile phone under apex in the first preset order, so that the subsequent system services or processes can use the components provided in the APEX modules. Then, the mobile phone loads the executable files corresponding to the processes required for starting the mobile phone under bin in the first preset order, so that the corresponding processes can be subsequently started. Finally, the mobile phone loads the shared library files required for starting the mobile phone under lib64 in the first preset order, so as to provide necessary runtime support for system services and application programs.

[0121] It can be seen that the first description information facilitates the management of various first files required for starting the processes. All the first files corresponding to the first description information can be obtained, so that the pre-read first files can be quickly obtained, and the acquisition speed and reliability of the first files are improved.

[0122] In some possible implementation manners, the at least one first description information is stored in a first storage unit of the first partition. The first storage unit is a region that is first read in the first partition. The size of the first storage unit is determined according to the size of the at least one first file. Each first description information includes a first preset parameter. The first preset parameter is used to indicate that the first description information is stored in the first storage unit.

[0123] Exemplarily, the first storage unit is a specified area in the first partition, which can be a frontmost area, a middle area or a rear area in the first partition, and the specified area in the first partition is the area read first by the mobile phone, and the size of the first storage unit can be the sum of the sizes of the at least one first file or can be determined according to the sizes of the at least one first file and the first preset floating value; for example, if the sum of the sizes of all the first files required for starting the mobile phone is 780 MB, and there is no first preset floating value or the first preset floating value is 0, the first storage unit is an interval of the first 780 MB in the first partition, and if the first preset floating value is 20 MB, the first storage unit is an interval of the first 800 MB in the first partition. It can be seen that the mobile phone can obtain all the first files by reading the first storage unit, without the need to determine the first files to be read, so that when the files in the first partition of the disk are read into the memory one by one, the time for reading and loading other files in the first partition into the memory in addition to the first files can be reduced, the memory space is also saved, and thus the speed of the mobile phone for obtaining the first files from the memory is improved.

[0124] Exemplarily, each first description information has a corresponding first preset parameter, and the first preset parameters corresponding to each first description information can be the same or different, and the first preset parameter is used to indicate that the first file under the corresponding first description information is stored in the first read area in the first partition, i.e., the first storage unit, so that the first files required for starting the mobile phone can be stored in the front position of the first partition of the disk, so that when the mobile phone is started, the first files can be read from the disk into the memory in priority, and when the subsequent mobile phone startup process reads the first files required for the startup process from the memory, the time for waiting for reading the first files from the disk and storing into the memory can be reduced, and the startup speed of the mobile phone is improved.

[0125] In some possible implementations, the file corresponding to the mobile phone operating system is saved into the mobile phone disk before the mobile phone is manufactured, and the content of the entire first partition of the mobile phone operating system can be made into a system image file through a mirror making tool on a computer, the system image file is transmitted to the mobile phone and stored in the first partition of the mobile phone disk. In this way, the system image file can install the same operating system on different mobile phones, simplifying the installation process, saving the installation time and the configuration process, and ensuring that the same operating system version and configuration are installed on each mobile phone through the unified system image file, facilitating subsequent management and maintenance, and when the mobile phone operating system has a major failure or the mobile phone encounters a virus, a blue screen, a dead machine or the like, the system image file is restored to the first partition of the mobile phone disk, thereby restoring the entire operating system environment and improving the stability and security of the operating system.

[0126] In some possible implementation manners, when the system image file is made by the image making tool, the image making tool has an attribute for identifying the first preset parameter, and through the attribute, the image making tool identifies that the description information of a certain file has the first preset parameter, takes the description information as the first description information, and preferentially saves the first description information and all files under the first description information in the system image file, so that the first description information can be stored in the area that is read first in the system image file.

[0127] For example, in the case of a mobile phone, the files required for starting the operating system mainly come from paths such as / system / apex, / system / bin, / system / lib64, / vendor / lib64, and the like. The files required for starting the operating system mainly come from paths such as / system / apex, / system / bin, / system / lib64, / vendor / lib64, and the like. The / apex, / bin, and / lib64 paths in the system partition are specified by the first preset parameter as paths that are read first, and the three paths all need to be recursively processed to generate corresponding first description information and all first files and sub-paths under the first description information; as shown in FIG. 6, when the image making tool makes the system image file, the image making tool first makes an empty image, and then preferentially writes the files under the paths having the first preset parameter into the empty image through the attribute for identifying the first preset parameter, that is, writes the / apex path and all files under the / apex path into the empty image to obtain the first description information apex and all first files under apex, writes the / bin path and all files under the / bin path into the empty image to obtain the first description information bin and all first files under bin, writes the / lib64 path and all files under the / lib64 path into the empty image to obtain the first description information lib64 and all first files under lib64, and finally writes the files corresponding to the application programs app, the files corresponding to the configuration etc, and the files corresponding to the multimedia media included in the remaining paths into the empty image in the order of the first letter or the file size, to obtain the system image file. In this way, the first files required for starting the operating system can be distributed in the area that is read first in the system image file.

[0128] For example, the first description information can be sorted according to the first letter or according to the first preset order, and similarly, all first files under each first description information in the system image file can be sorted according to the first letter of the file name of each first file under the corresponding first description information, or according to the file size of each first file under the corresponding first description information, or according to the first preset order corresponding to each first file under the corresponding first description information, and the embodiments of the present application do not make a specific limitation in this regard.

[0129] It can be seen that the system image file can be produced by the mirror production tool in the first preset order, so that the first file stored in the first partition of the disk in the first preset order is obtained, thereby improving the subsequent process startup speed.

[0130] In some possible implementation manners, when the mobile phone acquires at least one second file for starting the mobile phone from the second partition of the disk in the first preset order, first, the mobile phone acquires at least one second description information from the second partition of the disk in the first preset order, and then the mobile phone acquires at least one second file for starting the mobile phone according to the at least one second description information, respectively.

[0131] The at least one second description information is used to describe a position of at least one second file stored in the second partition.

[0132] Exemplarily, When the second partition is a vendor partition in the mobile phone, the file corresponding to the 64-bit system service layer required for normal operation of the mobile phone is stored in the / vendor / lib64 path, and the second description information can be lib64 in the vendor partition.

[0133] Exemplarily, the second file can be the file corresponding to the 64-bit system service layer required for starting the mobile phone under lib64 in the vendor partition. The second description information lib64 can be acquired from the vendor partition in the first preset order, so as to acquire all second files under lib64 in the first preset order.

[0134] It can be seen that the second description information facilitates management of each second file required for starting the process, and all second files corresponding to the second description information can be acquired, so that the pre-read second file is quickly acquired, and the acquisition speed and reliability of the second file are improved.

[0135] In some possible implementation manners, the at least one second description information is stored in a second storage unit of the second partition; the second storage unit is a region read first in the second partition, the size of the second storage unit is determined according to the size of the at least one second file; and each second description information includes a second preset parameter, and the second preset parameter is used to indicate that the second description information is stored in the second storage unit.

[0136] Exemplarily, the second storage unit is a specified area in the second partition, which can be a frontmost area, a middle area or a rear area in the second partition, and the specified area in the second partition is the area read first by the mobile phone. The size of the second storage unit can be the sum of the sizes of the at least one second file, or can be determined according to the sizes of the at least one second file and the second preset floating value. For example, if the sum of the sizes of all the second files required for starting the mobile phone is 280 MB, and there is no second preset floating value or the second preset floating value is 0, the second storage unit is an interval of the front 280 MB in the second partition, and if the second preset floating value is 20 MB, the second storage unit is an interval of the front 300 MB in the second partition. As can be seen, the mobile phone can directly and preferentially obtain all the second files through the second storage unit, without the need to determine the second files to be read, so that when the files in the second partition of the disk are sequentially read into the memory, the time for reading and loading other files in the second partition into the memory, except the second files, can be reduced, the memory space is saved, and the speed of obtaining the second files from the memory by the mobile phone is improved.

[0137] Exemplarily, each second description information has a corresponding second preset parameter, and the second preset parameters corresponding to each second description information can be the same or different, and the second preset parameter can be the same as or different from the first preset parameter. The second preset parameter is used to indicate that the second file under the corresponding second description information is stored in the first read area in the second partition, i.e., the second storage unit. In this way, the second files required for starting the mobile phone can be stored in the front position of the second partition of the disk, so that when the mobile phone is started, the second files can be preferentially read from the disk into the memory, and when the mobile phone starts the corresponding process to read the second files required for starting the process from the memory, the time for waiting for reading the second files from the disk and storing them into the memory can be reduced, and the starting speed of the mobile phone is improved.

[0138] Similarly, in some possible implementation manners, the contents of the entire second partition of the mobile phone operating system can be made into a vendor image file through a mirror making tool on a computer, the vendor image file can be transmitted to the mobile phone and stored in the second partition of the disk of the mobile phone. In this way, the vendor image file and the system image file can install the same operating system on different mobile phones, simplify the installation process, save the installation time and the configuration process, and ensure that the same files for supporting the corresponding hardware functions of the mobile phone are installed on each mobile phone through the unified vendor image file, which is convenient for subsequent management and maintenance, and when the mobile phone has hardware compatibility problems that cause the operating system to crash or be unstable, the vendor image file can be restored to the second partition of the disk of the mobile phone, thereby improving the stability and compatibility of the mobile phone.

[0139] In some possible implementations, when creating a supplier image file using an image creation tool, the image creation tool has an attribute that identifies a second preset parameter. When the image creation tool identifies that the description information of a certain file contains the second preset parameter, it uses the description information as the second description information and prioritizes saving the second description information and all files under the second description information in the supplier image file. In this way, it can be ensured that the second description information is stored in the area of ​​the supplier image file that is read first.

[0140] For example, in a mobile phone In the case of mobile phones, the second preset parameter specifies / lib64 in the vendor partition as the preferred reading path. lib64 needs to be processed recursively to generate the corresponding second description information and all second files and subpaths under that description information. When the image creation tool creates the vendor image file, it first creates an empty image. Then, by recognizing the attributes of the second preset parameter, it prioritizes writing files under paths with the second preset parameter into the empty image. Specifically, it writes the lib64 path and all files under / lib64 into the empty image to obtain the second description information lib64 and all second files under lib64. Finally, the remaining paths and corresponding files can be written into the empty image in alphabetical order or file size order, thus obtaining the vendor image file. This ensures that the second files required for operating system startup are distributed in the first area read by the vendor image file.

[0141] For example, the second description information can be sorted by first letter or by a second preset order. Similarly, the sorting of all second files under each second description information in the supplier image file can be sorted by the first letter of the filename of each second file under the corresponding second description information, or by the file size of each second file under the corresponding second description information, or by the first preset order corresponding to each second file under the corresponding second description information. This application embodiment does not impose specific limitations on this.

[0142] As can be seen, the image creation tool can create supplier image files in a first preset order, so as to obtain the second file stored in the second partition of the disk in the first preset order, thereby improving the startup speed of subsequent processes.

[0143] In some possible implementations, in response to the user's startup operation, the mobile phone can also retrieve multiple startup files for starting the mobile phone from the disk in a first preset order, and save the multiple startup files into memory in sequence, provided that the first pre-read permission is enabled.

[0144] Exemplarily, the first pre-reading permission can be a switch state configured in the mobile phone by the user in advance, the user can select to turn on or turn off the first pre-reading permission, or can be a switch state configured in the mobile phone at the time of factory shipment. When the mobile phone is started, it can first determine whether the first pre-reading permission is turned on. If the first pre-reading permission is turned on, the process of starting the mobile phone is as shown in FIG. 7. The mobile phone reads the plurality of start files for starting the mobile phone from the disk in the first preset order in advance before the starting process of the mobile phone in response to the long-press operation of the user on the power button of the mobile phone, and saves them to the memory, so that the mobile phone reads the start files from the memory in the first preset order when starting the process to start the corresponding process, thereby starting the mobile phone. If the first pre-reading permission is turned off, the process of starting the mobile phone is as shown in FIG. 8. The mobile phone reads the plurality of start files for starting the mobile phone from the disk in the first preset order when starting the process to start the corresponding process in response to the long-press operation of the user on the power button of the mobile phone, thereby starting the mobile phone.

[0145] It can be seen that the mobile phone can accelerate the starting speed of the mobile phone through the pre-reading process, or can directly interact with the disk without pre-reading. Without pre-reading, since the start files in the disk are also arranged in the first preset order, when the mobile phone starts the process in the first preset order, the corresponding start files are read from the disk in the first preset order to start the corresponding process, which can further improve the reading speed of the disk. The first pre-reading permission provides two ways for the user to select, meets the different needs of the user, and the first pre-reading permission is convenient for the developer to manage the method of fast starting the mobile phone.

[0146] Embodiment Two

[0147] Referring to FIG. 9, the method for turning on the above function can include the following steps S901-S903.

[0148] S901, the mobile phone acquires the plurality of start files for turning on the target function from the mirror file in the second preset order in response to the turning-on operation of the user on the target function, and saves the plurality of start files to the memory in sequence.

[0149] Exemplarily, the target function can be the function corresponding to the container. The container is a lightweight, portable and self-sufficient software running environment. When the container is turned on, the corresponding process needs to be started in sequence to turn on the container. For example, when the virtual machine is turned on, the plurality of start files for turning on the virtual machine are acquired from the mirror file in the second preset order, and the plurality of start files are saved to the memory in sequence.

[0150] Exemplarily, the opening operation can be a click operation of the user on an application corresponding to the target function in a phone startup state, can be a click operation of the user on a target function opening control displayed on the screen of the phone in the phone startup state, or can be a gesture operation of the user on the screen of the phone in the phone startup state corresponding to a target function quick opening gesture. Embodiments of the present application do not make specific limitations in this regard.

[0151] Exemplarily, the second preset order is a starting order of multiple processes for opening the target function. When the phone opens the target function, the phone needs to open multiple processes required for the target function of the phone in the second preset order, and then the target function of the phone can be opened. For example, when a virtual machine is opened, multiple starting files for opening the virtual machine need to be obtained from the image file in the starting order of multiple processes required for opening the virtual machine, and the obtained multiple starting files are saved in the memory in sequence.

[0152] Exemplarily, the image file is a file used to store an application program and its running environment in container technology. The image file includes all dependencies, configuration files, library files, and operating systems required for running the application program. Multiple starting files in the image file are saved in the starting order of multiple processes for opening the target function of the phone. One process corresponds to at least one starting file.

[0153] In some possible implementation manners, when the phone obtains multiple starting files for opening the target function from the image file in the second preset order, first, the phone obtains multiple third description information from the image file in the second preset order, and then the phone respectively obtains multiple starting files for opening the target function according to the multiple third description information.

[0154] The multiple third description information is used to describe the positions of multiple starting files stored in the image file.

[0155] Exemplarily, when a container is started, the required files mainly come from the paths of / system / apex, / system / bin, / system / lib64, / vendor / lib64, and the like corresponding to the container in sequence. The multiple third description information can be system, system / apex, system / bin, system / lib64, vendor, and vendor / lib64. The system and vendor are only the third description information itself, and do not correspond to any sub-path and file. This can make the structure of the image file more clear, and facilitate management and maintenance. The system / apex, system / bin, system / lib64, and vendor / lib64 correspond to at least one starting file.

[0156] For example, the start files include files corresponding to APEX modules required for starting the target function of the mobile phone under system / apex in the image file, executable files corresponding to each process required for starting the target function of the mobile phone under system / bin, shared library files required for starting the target function of the mobile phone under system / lib64, and files corresponding to a 64-bit system service layer required for starting the target function of the mobile phone under vendor / lib64. The mobile phone can sequentially obtain third description information system, system / apex, system / bin, system / lib64, vendor, and vendor / lib64 from the image file in a second preset order, so as to sequentially obtain all start files under system / apex, system / bin, system / lib64, and vendor / lib64 in the second preset order. For example, the third description information is arranged in the second preset order as system / apex, system / bin, system / lib64, and vendor / lib64. The mobile phone can first load the files corresponding to the APEX modules required for starting the target function of the mobile phone under system / apex in the second preset order, so that the subsequent system services or processes can use the components provided in the APEX modules. Then, the mobile phone loads the executable files corresponding to the processes required for starting the target function of the mobile phone under system / bin in the second preset order, so as to subsequently start the corresponding processes. Then, the mobile phone loads the shared library files required for starting the target function of the mobile phone under system / lib64 in the second preset order, so as to provide necessary runtime support for system services and applications. Finally, the mobile phone loads the files corresponding to the 64-bit system service layer required for starting the target function of the mobile phone under vendor / lib64 in the second preset order.

[0157] It can be seen that the third description information facilitates the management of each start file required for starting the process, and all start files corresponding to the third description information can be obtained, so that the pre-read start files can be quickly obtained, and the acquisition speed and reliability of the start files are improved.

[0158] In some possible implementation manners, the plurality of third description information is stored in a third storage unit of the image file; the third storage unit is a region that is read first in the image file, and the size of the third storage unit is determined according to the sizes of the plurality of start files; and each third description information includes a third preset parameter, and the third preset parameter is used to indicate that the third description information is stored in the third storage unit.

[0159] Exemplarily, the third storage unit is a specified area in the third partition, the specified area in the third partition can be a frontmost area in the third partition, or a middle area or a rear area in the third partition, the specified area in the third partition is represented as an area first read by the mobile phone in the third partition, and the size of the third storage unit can be a sum of sizes of the plurality of start files, or can be determined according to the sizes of the plurality of start files and the third preset floating value; for example, if the sum of sizes of all start files required to start the target function of the mobile phone is 1000 MB, and there is no third preset floating value or the third preset floating value is 0, the third storage unit is an interval of the first 1000 MB in the mirror file, and if the third preset floating value is 100 MB, the third storage unit is an interval of the first 1100 MB in the mirror file. It can be seen that all start files can be directly and preferentially obtained through the third storage unit, without the need to determine the start files to be read, so that when the files in the mirror file are sequentially read into the memory, the time for reading other files in the mirror file into the memory except the start files is reduced, the memory space is also reduced, and thus the speed of obtaining the start files from the memory by the mobile phone is improved.

[0160] Exemplarily, each third description information has a corresponding third preset parameter, the third preset parameters corresponding to each third description information can be the same or different, and the third preset parameter is used to represent that the start file under the corresponding third description information is stored in the first read area in the mirror file, i.e., the third storage unit. It can be seen that the start file required to start the target function of the mobile phone can be stored in a front position of the mirror file, so that when the target function of the mobile phone is started, the start file can be preferentially read from the mirror file on the disk into the memory, so that when the mobile phone starts the corresponding process subsequently, the corresponding start file can be directly read from the memory, the time for waiting for reading the corresponding start file from the disk and storing it into the memory when the mobile phone starts the corresponding process is reduced, and the starting speed of the target function of the mobile phone is improved.

[0161] In some possible implementation manners, the mirror file corresponding to the target function of the mobile phone can be made on a computer through a mirror making tool, the mirror file can be transmitted to the mobile phone and stored in the disk of the mobile phone. In this way, the mirror file can install the same target function on different mobile phones, simplifies the installation process, saves the installation time and the configuration process, and ensures that the same version and configuration of the target function are installed on each mobile phone through the unified mirror file, which is convenient for subsequent management and maintenance, and when the target function of the mobile phone has a fault or the like, the target function of the mobile phone can be restored by restoring the mirror file to the disk of the mobile phone, so that the stability and safety of the target function are improved.

[0162] In some possible implementation manners, when the mirror image file is made by the mirror image making tool, the mirror image making tool has an attribute identifying the third preset parameter, through which the mirror image making tool identifies that the third preset parameter is in the description information of a certain file, takes the description information as the third description information, and preferentially saves the third description information and all files under the third description information in the mirror image file, so that the third description information can be stored in the area which is read first in the mirror image file.

[0163] For example, in the mobile phone In the case that the operating system is running normally, to start the virtual machine, the files required for starting the virtual machine mainly come from the paths of / system / apex, / system / bin, / system / lib64, / vendor / lib64 and the like in sequence. The third preset parameter is used to specify that / system / apex, / system / bin, / system / lib64 and / vendor / lib64 are the paths to be read preferentially, and the / system and / vendor paths in these paths do not need to be processed recursively. The / system and / vendor paths are used to represent the structure in the image file, so as to facilitate management and maintenance. The paths of / system / apex, / system / bin, / system / lib64 and / vendor / lib64 all need to be processed recursively to generate the corresponding third description information and all the start files and sub-paths under the third description information. As shown in FIG. 10, when the image making tool makes the image file, the image making tool first makes an empty image, and then writes the files under the paths with the third preset parameter into the empty image preferentially by identifying the attributes of the third preset parameter, that is, the / system directory is written into the empty image to obtain the third description information system, then the / system / apex path and all the files under the / system / apex path are written into the empty image to obtain the third description information system / apex and all the start files under system / apex, then the / system / bin path and all the files under the / system / bin path are written into the empty image to obtain the third description information system / bin and all the start files under system / bin, then the / system / lib64 path and all the files under the / system / lib64 path are written into the empty image to obtain the third description information system / lib64 and all the start files under system / lib64, then the / vendor directory is written into the empty image to obtain the third description information vendor, then the / vendor / lib64 path and all the files under the / vendor / lib64 path are written into the empty image to obtain the third description information vendor / lib64 and all the start files under vendor / lib64, and finally the files in the acct path for recording the resource usage of the processes in the container, the files in the bin path of the remaining processes, the files in the system / other paths, the files in the vendor / other paths and the files in the version path of the container version included in the remaining paths can be written into the empty image in the order of the first letter or the file size, so as to obtain the image file. In this way, the start files required for starting the target function of the mobile phone can be distributed in the area of the image file to be read first.

[0164] For example, the third description information can be sorted according to the first letter, or sorted according to the second preset order. Similarly, all the start files under each third description information in the mirror file can be sorted according to the first letter of the file name of each start file under the corresponding third description information, or sorted according to the file size of each start file under the corresponding third description information, or sorted according to the second preset order corresponding to each start file under the corresponding third description information. The embodiments of the present application do not make specific limitations on this.

[0165] It can be seen that the mirror file can be made by the mirror making tool according to the second preset order, so as to obtain the start files stored in the mirror file in the disk according to the second preset order, thereby improving the start speed of the subsequent process.

[0166] In some possible implementation manners, the mobile phone can also acquire the multiple start files for starting the target function from the mirror file according to the second preset order in the case that the second pre-reading permission is turned on, and save the multiple start files into the memory one by one in response to the user's starting operation on the target function.

[0167] For example, the second pre-reading permission can be a switch state configured by the user in the target function of the mobile phone in advance, or a switch state configured by the mobile phone when the target function is manufactured. The user can select to turn on or turn off the second pre-reading permission of the target function. When the target function of the mobile phone is started, it can be determined whether the second pre-reading permission of the target function is turned on. If the second pre-reading permission is turned on, the mobile phone can acquire the container name, create the container, acquire the mirror file of the container in the disk of the mobile phone, start the pre-reading program, construct the pre-reading task, and save the multiple start files in the third storage unit (for example, the first 1100 MB interval in the mirror file) of the mirror file into the memory according to the second preset order, so that the execution thread of the mobile phone reads the start files from the memory according to the second preset order to start the corresponding process when the target function of the mobile phone is started, thereby starting the container. If the second pre-reading permission is turned off, the mobile phone can acquire the container name, create the container, acquire the mirror file of the container in the disk of the mobile phone, and read the multiple start files in the mirror file according to the second preset order to start the corresponding process when the target function of the mobile phone is started, thereby starting the container.

[0168] It can be seen that the mobile phone can accelerate the opening speed of the target function of the mobile phone through the pre-reading process, or can directly interact with the mirror file in the disk without pre-reading. Without pre-reading, since the start files in the mirror file are also arranged in the second preset order, when the mobile phone starts the target function corresponding process in the second preset order, the corresponding start file is read from the mirror file in the second preset order to start the corresponding process, which can further improve the reading speed of the mirror file. The second pre-reading permission provides two ways for users to choose, meets the different needs of users, and the second pre-reading permission is convenient for developers to manage the method of quickly opening the target function of the mobile phone.

[0169] S902, after the first process in the plurality of processes starts to start, the mobile phone reads the start files corresponding to the plurality of processes from the memory in the second preset order.

[0170] For example, after the first process of the plurality of processes required to open the target function of the mobile phone starts to start, the mobile phone can directly read the corresponding start file from the memory in the second preset order. For example, after process 1 starts to start, the mobile phone reads start file 1 from the memory in the first preset order to start corresponding process 1, reads start file 2 to start corresponding process 2, and so on, and reads start file n to start corresponding process n.

[0171] S903, the mobile phone starts the corresponding process according to the start file corresponding to the plurality of processes to open the target function.

[0172] For example, the mobile phone reads the start file from the memory in the second preset order to start the corresponding process. After the last process of the plurality of processes required to open the target function of the mobile phone starts to start, the target function of the mobile phone can be opened. For example, a virtual machine is started in the current running environment of the mobile phone to operate the operating system corresponding to the virtual machine.

[0173] In the above-mentioned method of opening the function, the start files in the mirror file are stored in the start order of the corresponding processes. Therefore, when the mobile phone opens the target function, the start files are read from the mirror file to the memory in the start order of the corresponding processes in advance. After the corresponding processes start, the mobile phone can directly read the corresponding start file from the memory in the start order of the corresponding processes to start the corresponding processes in turn, thereby opening the target function of the mobile phone. The time for the mobile phone to wait for the mirror file to read the corresponding start file to the memory when opening the target function corresponding process is reduced, the process start speed is improved, thereby improving the start speed of the target function of the mobile phone, realizing the fast start of the target function of the mobile phone, and improving the user experience of the target function.

[0174] It can be understood that the above only takes several embodiments as examples to describe the page display method, and the above several embodiments do not limit the page display method. In some other embodiments, a plurality of embodiments of the present application or part of the contents of the plurality of embodiments can be combined, and the combined scheme is implemented. Optionally, some operations in the flow of each method embodiment are combined, and / or the order of some operations is changed. Moreover, the execution order between the steps of each flow is only exemplary, and does not constitute a limitation on the execution order between the steps. Other execution orders between the steps can also be used. The execution order is not intended to indicate that the operations can be performed in this order. Those skilled in the art will think of various ways to reorder the operations described in the embodiments of the present application. In addition, it should be pointed out that the process details of some embodiments of the present application are also applicable in a similar manner to other embodiments, or different embodiments can be combined.

[0175] In addition, some steps in the method embodiments can be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiments can be optional and can be deleted in some use scenarios. Alternatively, other possible steps can be added to the method embodiments.

[0176] Moreover, each method embodiment can be implemented individually or in combination.

[0177] It can be understood that, in order to achieve the above functions, the foregoing electronic device contains the corresponding hardware and / or software modules for executing each function. The algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.

[0178] The embodiments of the present application can divide the functional modules of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware. It should be noted that the division of modules in the present embodiment is illustrative, and is only a logical functional division. When actually implemented, another division method can be used.

[0179] The embodiments of the present application also provide an electronic device, as shown in FIG. 13, which can include one or more processors 1301, a memory 1302, and a communication interface 1303.

[0180] The memory 1302, the communication interface 1303 and the processor 1301 are coupled. For example, the memory 1302, the communication interface 1303 and the processor 1301 can be coupled together through a bus 1304.

[0181] The communication interface 1303 is configured to perform data transmission with other devices. The memory 1302 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 1301, cause the electronic device to perform the starting method of the electronic device or the method for starting the function.

[0182] The processor 1301 can be a processor or a controller, for example, can be a central processing unit (CPU), 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 device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in combination with the present disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of DSP and microprocessor, etc.

[0183] The bus 1304 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The above bus 1304 can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, only one thick line is shown in FIG. 13, but it does not mean that there is only one bus or only one type of bus.

[0184] The embodiment of the present application also provides a computer readable storage medium, which stores computer program code, when the processor executes the computer program code, the electronic device executes the related method steps in the above method embodiment.

[0185] The electronic device and the computer storage medium provided by the present application are used to execute the corresponding method provided above, so the beneficial effects that can be achieved are referred to the beneficial effects of the corresponding method provided above, which will not be repeated here.

[0186] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0187] In several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0188] The units described as separate components can or can not be physically separated, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.

[0189] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0190] When the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical scheme of the embodiment of the present application can be embodied in the form of a software product in essence or a part that contributes or all or part of the technical scheme. The software product is stored in a storage medium, including a plurality of instructions for causing an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage program codes.

[0191] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed by the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of starting an electronic device, the method comprising: The method comprises: in response to a user starting operation on an electronic device, obtaining a plurality of starting files for starting the electronic device from a disk in a first preset order, and saving the plurality of starting files into a memory in sequence; the first preset order is a starting order of a plurality of processes for starting the electronic device; the plurality of starting files in the disk are saved according to the starting order of the plurality of processes; one process corresponds to at least one starting file; after a first process in the plurality of processes starts, the starting file corresponding to each process is read from the memory in sequence according to the first preset order; the corresponding process is started according to the starting file corresponding to each process in sequence, so as to start the electronic device.

2. The method of claim 1, wherein, The method comprises: at least one first file for starting the electronic device is obtained from a first partition of the disk in the first preset order; the first file is a file corresponding to an operating system function of the electronic device in the starting file; at least one second file for starting the electronic device is obtained from a second partition of the disk in the first preset order; the second file is a file corresponding to a hardware function of the electronic device in the starting file; the plurality of starting files comprise the at least one first file and the at least one second file.

3. The method of claim 2, wherein, The method comprises: at least one first description information is obtained from the first partition of the disk in the first preset order; the at least one first description information is used to describe the position of at least one first file stored in the first partition; at least one first file for starting the electronic device is obtained according to the at least one first description information.

4. The method of claim 3, wherein, The at least one first description information is saved in a first storage unit of the first partition; the first storage unit is an area read first in the first partition, the size of the first storage unit is determined according to the size of the at least one first file; each first description information comprises a first preset parameter, and the first preset parameter is used to indicate that the first description information is stored in the first storage unit.

5. The method according to any one of claims 2-4, characterized in that, The method comprises: at least one second description information is obtained from the second partition of the disk in the first preset order; the at least one second description information is used to describe the position of at least one second file stored in the second partition; at least one second file for starting the electronic device is obtained according to the at least one second description information.

6. The method of claim 5, wherein, The at least one second description information is stored in a second storage unit of the second partition; the second storage unit is a region read first in the second partition, and a size of the second storage unit is determined according to a size of the at least one second file; each second description information includes a second preset parameter, and the second preset parameter is used to indicate that the second description information is stored in the second storage unit.

7. The method according to any one of claims 1 to 6, characterized in that, The method comprises the following steps: In response to a user starting operation on the electronic device, a plurality of starting files for starting the electronic device are acquired from the disk in a first preset order, and the plurality of starting files are sequentially saved to the memory.

8. A method of enabling a function, characterized by, The method comprises the following steps: In response to a user starting operation on the electronic device, a plurality of starting files for starting the electronic device are acquired from the disk in a first preset order, and the plurality of starting files are sequentially saved to the memory. The method comprises the following steps: In response to a user starting operation on the electronic device, a plurality of starting files for starting the electronic device are acquired from the disk in a first preset order, and the plurality of starting files are sequentially saved to the memory. The second preset order is a starting order of the plurality of processes for starting the target function; the plurality of starting files in the image file are saved according to the starting order of the plurality of processes; One process corresponds to at least one starting file; 9. The method of claim 8, wherein, After a first process in the plurality of processes starts, starting files corresponding to the plurality of processes are sequentially read from the memory according to the second preset order; According to the starting files corresponding to the plurality of processes, the corresponding processes are sequentially started to start the target function. The method comprises the following steps:

10. The method of claim 9, wherein, According to the second preset order, a plurality of third description information is acquired from the image file; the plurality of third description information is used to describe positions of a plurality of starting files stored in the image file; 11. The method according to any one of claims 8-10, characterized in that, According to the plurality of third description information, a plurality of starting files for starting the target function are acquired. The plurality of third description information is stored in a third storage unit of the image file; the third storage unit is a region read first in the image file, and a size of the third storage unit is determined according to sizes of the plurality of starting files; each third description information includes a third preset parameter, and the third preset parameter is used to indicate that the third description information is stored in the third storage unit. The method comprises the following steps: In response to a user starting operation on the electronic device, a plurality of starting files for starting the electronic device are acquired from the disk in a first preset order, and the plurality of starting files are sequentially saved to the memory. In response to a user starting operation on the electronic device, a plurality of starting files for starting the electronic device are acquired from the disk in a first preset order, and the plurality of starting files are sequentially saved to the memory.

12. An electronic device, comprising: An electronic device comprising a memory, one or more processors; the memory coupled with the processors; the memory storing computer program code comprising computer instructions that, when executed by the processors, cause the electronic device to perform the method of starting the electronic device of any one of claims 1-7, or the method of starting the function of any one of claims 8-11.

13. A computer-readable storage medium, characterized in that, A computer program product comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of starting the electronic device of any one of claims 1-7, or the method of starting the function of any one of claims 8-11.

14. A computer program product, characterised in that, A computer program product comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of starting the electronic device of any one of claims 1-7, or the method of starting the function of any one of claims 8-11.

Citation Information

Patent Citations

  • Terminal device and method for starting operation system of terminal device

    CN102890634A

  • Method and device for accelerating starting of computer device

    CN103677900A

  • File processing method, file processing device and electronic equipment in start-up process of mobile operating system

    CN104408209A

  • Fast computer startup

    US20120144179A1