CN117369881A - Start control method, start control device, electronic equipment, readable storage medium and chip - Google Patents

Start control method, start control device, electronic equipment, readable storage medium and chip Download PDF

Info

Publication number
CN117369881A
CN117369881A CN202210772155.1A CN202210772155A CN117369881A CN 117369881 A CN117369881 A CN 117369881A CN 202210772155 A CN202210772155 A CN 202210772155A CN 117369881 A CN117369881 A CN 117369881A
Authority
CN
China
Prior art keywords
target file
database
memory
starting
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210772155.1A
Other languages
Chinese (zh)
Inventor
刘虹佐
郭虎
吴宏炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210772155.1A priority Critical patent/CN117369881A/en
Publication of CN117369881A publication Critical patent/CN117369881A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The present disclosure relates to a startup control method, apparatus, electronic device, readable storage medium, and chip, the method comprising: the method comprises the steps that an operating system receives a first starting instruction, reads target files required by starting operation from a database in response to the first starting instruction, loads the target files into a memory, stores various target files required by starting operation in the database, and controls a process corresponding to the starting operation to run the target files; by storing the information of all the specified files required by the starting operation into the database in advance, and pre-reading the file content in the database and loading the file content before the next starting operation is executed, the aim of starting acceleration is achieved, and meanwhile, the memory information in the starting operation process can be monitored in real time, the hard coding of a standard interface is not involved, the influence of modification permission is avoided, the information is not required to be acquired by using tracking, and the problem of overhigh power consumption is also avoided.

Description

Start control method, start control device, electronic equipment, readable storage medium and chip
Technical Field
The disclosure relates to the technical field of control, and in particular relates to a startup control method, a startup control device, electronic equipment, a readable storage medium and a chip.
Background
In the related art, startup acceleration and application startup acceleration of electronic devices such as mobile phones, televisions, tablet computers and the like which are provided with Android/Linux systems are realized by reading files in a file system in advance. However, in the related art, various ways of pre-reading files in a file system have drawbacks, such as: the method of opening and mapping each file in the file system in advance cannot dynamically acquire file information; the file read each time is obtained through modifying part of the system call interfaces, and the modification system call interfaces belong to hard codes and are easily limited by modification authorities; therefore, there is a need for a start control method that avoids the above problems while ensuring an accelerated start.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a startup control method, apparatus, electronic device, readable storage medium, and chip.
According to a first aspect of an embodiment of the present disclosure, there is provided a startup control method applied to an operating system of an electronic device, including: receiving a first starting instruction; responding to the first starting instruction, reading a target file required by starting operation from a database, and loading the target file into a memory; the database stores various target files required by the starting operation; and controlling the process corresponding to the starting operation to run the target file.
Optionally, the step of reading, in response to the start instruction, a target file required for a start operation from a database, and loading the target file into the memory includes: receiving a second starting instruction; responding to the second starting instruction, writing various target files and target file information required by starting operation into a memory of the electronic equipment so as to finish the starting operation, and sending the target files and the target file information to a monitoring background; the monitoring background is used for storing the target file and the target file information into the database.
Optionally, the target file information includes at least one of a target file number, an application process number, a target file page index, a target file path, an application package name, and an event type; the target file information is used for indicating the monitoring background to generate a target file temporary number according to the target file number; the target file information is used for indicating the monitoring background to acquire page marks of target files written into the memory and/or application process names for reading and writing the target files according to the temporary numbers of the target files and the application process numbers; and the target file information is also used for indicating the monitoring background to store the page mark and the application process name into the database.
Optionally, the start-up instruction includes a start-up instruction; the starting operation comprises a starting operation; the step of loading the target file into the memory includes: controlling the monitoring background to detect whether a first target file of the starting operation exists in the database; acquiring the first target file from the database under the condition that the first target file exists in the database; acquiring a page mark of the first target file written into the memory through the monitoring background; and loading the first target file into the memory according to the page mark of the first target file.
Optionally, the start instruction includes an application start instruction; the start operation includes an application start operation; the step of loading the target file into the memory includes: acquiring the name of an application process to be started; acquiring a second target file of the application starting operation from the database according to the application process name; acquiring a page mark of the second target file written into the memory through the monitoring background; and loading the second target file into the memory according to the page mark of the second target file.
Optionally, the start control method further includes: and storing the time for loading the target file into the database.
According to a second aspect of the embodiments of the present disclosure, there is provided a start control device applied to an operating system of an electronic device, including: the receiving module is configured to receive a first starting instruction; the processing module is configured to respond to the first starting instruction, read a target file required by starting operation from a database and load the target file into a memory; the database stores various target files required by the starting operation; and controlling the process corresponding to the starting operation to run the target file.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the startup control method described previously.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the start-up control method provided by the first aspect of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a chip comprising a processor and an interface; the processor is configured to read the instructions to perform the aforementioned start-up control method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the method comprises the steps that an operating system receives a first starting instruction, reads target files required by starting operation from a database in response to the first starting instruction, loads the target files into a memory, stores various target files required by starting operation in the database, and controls a process corresponding to the starting operation to run the target files; by storing the information of all the specified files required by the starting operation into the database in advance, and pre-reading the file content in the database and loading the file content before the next starting operation is executed, the aim of starting acceleration is achieved, meanwhile, the memory information in the starting operation process can be monitored in real time, the hard coding of a standard interface is not involved, the influence of modification permission is avoided, the information is not required to be acquired by using tracking (trace), and the problem of overhigh power consumption is also avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a startup control method shown in an exemplary embodiment of the present disclosure.
Fig. 2 is a flowchart of another start control method shown in an exemplary embodiment of the present disclosure.
Fig. 3 is a block diagram illustrating a start-up control device according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a start-up control apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, a first target file may also be referred to as a second target file, and similarly, a second target file may also be referred to as a first target file, without departing from the scope of the present disclosure.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be noted that, all actions for acquiring signals, information or data in the present application are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
The startup acceleration and the application startup acceleration of the electronic equipment with Android/Linux systems such as mobile phones, televisions and flat panels are realized by reading files in a file system in advance. The method for pre-reading the files in the file system in the related art mainly comprises the following three modes:
the first method is that after the startup or application startup is completed, each file in the file system is opened and mapped into the memory, so that the page of the file in the memory is judged, the aim of recording is achieved, and when the startup or application startup is performed next time, the file, the offset of the file and the length of the file are read in advance for pre-reading.
The second is to modify the system call interface of kernel (CPU), such as read interface, to send the information of file, offset of file, length of file, etc. read each time to the application monitoring background, and the monitoring background records the information into the database, and when the next starting up or application starting up, the information of file, offset of file, length of file, etc. is pre-read by means of memory mapping.
Thirdly, an existing method of Android is that the iorapd function (newly added software framework in Android 11) of Google on the Android platform acquires information through information tracking (trace), and then pre-reads files through a pre-reading interface. This scheme consumes relatively high power.
For the first mode, the information in the memory of the file cannot be obtained dynamically, which belongs to the situation that the obtained memory information is possibly lost after starting up or after starting up the application.
For the second mode, since the modification of the kernel layer involves a standard interface, the code belongs to hard coding and is easily limited by the modification authority.
For the third mode, trace related information is needed for acquiring file information in advance, and the problem that the current power consumption is very high is opened in real time.
Therefore, the embodiment of the present disclosure proposes a startup control method capable of avoiding the above-described problems while ensuring acceleration of startup. Fig. 1 is a flowchart of a startup control method according to an exemplary embodiment, and as shown in fig. 1, the startup control method is used in an operating system of an electronic device, such as a mobile phone, a television, a tablet, and the like, and includes the following steps.
In step S11, a first start instruction is received.
It should be noted that, the first start instruction includes a start instruction and an application start instruction.
When the electronic equipment is started or an application in the electronic equipment is started, a first starting instruction is triggered, and at the moment, the operating system of the electronic equipment detects the first starting instruction, namely the first starting instruction is received. When the operating system receives the first starting instruction, the starting program or the application starting program is ready to be executed. For example, receiving the user operation triggers a start-up instruction and/or an application start-up instruction, and then sends the start-up instruction and/or the application start-up instruction to an operating system of the electronic device.
In step S12, in response to the first start instruction, the target file required for the start operation is read from the database, and the target file is loaded into the memory.
In this embodiment, various target files required by the startup operation are pre-stored in a database of the electronic device, the target files are necessary files required by the startup operation, the target files in the database are stored in the database in the process of executing the startup operation in a history, the target files and target file information required by the startup operation are written into a memory of the electronic device in the process of executing the startup operation in a history, so as to complete the startup operation, and the target files and the target file information are sent to a monitoring background of the electronic device, wherein the monitoring background is used for storing the target files and the target file information into the database. It is understood that the monitoring background is a component in the electronic device, and in the embodiments of the present disclosure, may be used for processing data.
In step S13, the process operation target file corresponding to the start operation is controlled.
The startup operation includes a startup operation and an application startup operation.
The operating system controls the starting operation or the process corresponding to the application starting operation to run the target file already loaded in the memory, so that the starting operation or the application starting is completed.
By storing the information of all the specified files required by the starting operation into the database in advance, and pre-reading the file content in the database and loading the file content before the next starting operation is executed, the aim of starting acceleration is achieved, meanwhile, the memory information in the starting operation process can be monitored in real time, the hard coding of a standard interface is not involved, the influence of modification permission is avoided, the information is not required to be acquired by using tracking (trace), and the problem of overhigh power consumption is also avoided.
Referring to fig. 2, fig. 2 is a flowchart illustrating another start control method according to an exemplary embodiment of the present disclosure. The method is executed by an operating system of the electronic device, such as a mobile phone, a television, a tablet and the like. It should be noted that, the start control method shown in fig. 2 is consistent with the embodiment of the start control method shown in fig. 1, and the description of fig. 1 may be referred to where fig. 2 is not mentioned, which is not repeated here. The start control method shown in fig. 2 includes the steps of:
in step S21, a second start instruction is received.
The second initiation instruction is essentially the same instruction that is triggered at a different time than the first initiation instruction.
It should be noted that the second start instruction includes a start-up start instruction and an application start instruction.
When the boot or application is started, a second starting instruction is triggered, and the operating system receives the second starting instruction and prepares to execute the boot or application starting program. The start-up instruction and the application start-up instruction can be triggered by a user in the electronic device, or can be sent to the electronic device by other electronic devices. In step S22, in response to the second start instruction, the target files and the target file information required by the various start operations are written into the memory of the electronic device to complete the start operations, and the target files and the target file information are sent to the monitoring background.
The operating system responds to the second starting instruction, prepares to execute a starting program or an application starting program, and writes a target file required by starting operation into a memory of the electronic equipment so as to complete the starting operation; the starting operation comprises starting up and starting up an application; and then the target file and the target file information are sent to the monitoring background. The target file is necessary file needed by starting up and/or starting application, when an application program is started, the necessary file is needed to be opened, the necessary file is the target file of the application program, reading and/or writing operation is needed to be carried out on the target file later, each reading and/or writing operation can inform information to a monitoring background registered in advance, the monitoring background stores the target file into a database, and the information of the read and/or written target file is stored into the database, such as the number, the page number, the offset and the like of the target file; it should be noted that the monitoring background is further configured to store the time of loading the target file into the database, and store the time of reading and/or writing the target file information into the database.
For example, when executing the startup operation, some necessary files of the startup operation need to be read/written, and these necessary files are target files of the startup operation, and then the target files need to be read and/or written, each reading and/or writing operation will be notified by a message to a monitoring background registered in advance, and the monitoring background stores information of the target files into a database, and stores information of the target files that are read/written into the database, such as numbers, pages, offsets, and the like of the target files. In one embodiment, the target file and target file information may also be stored in a notepad.
The object file information includes at least one of an object file number, an application process number, an object file page index, an object file path, an application package name, and an event type. The target file information is used for indicating the monitoring background to generate a target file temporary number according to the target file number, wherein the target file temporary number is a temporary number generated by the monitoring background for the monitored target file; the application process number is a temporary number generated by the monitoring background for the started application process; the target file page index is the directory index of the target file; the target file path is a path when the target file is loaded; the application package name is the package name of the application in the starting process; event types include open files, read files, or write files. The target file information is used for indicating the monitoring background to acquire page marks of the target file written into the memory and/or application process names for reading and writing the target file according to the temporary number of the target file and the application process number, and the target file information is also used for indicating the monitoring background to store the page marks and the application process names into the database. The page tag is used to characterize a file in which portions of memory are written in a file, i.e., it is possible to derive from the page tag which portions of a file are written in memory. In one embodiment, page tags and application process names may also be stored in the notepad.
Repeating the steps S21 and S22, wherein each time the application program A is started once, some target files are stored in the database, the target files required by the application program A are stored in the database, the application program B is started once, the target files required by the application program B are stored in the database, and the target files required by the startup are stored in the database after the startup is started once; until all the specified files required for the start-up operation are stored in the database, wherein the specified files are necessary files required for the start-up operation.
In step S23, a first start instruction is received.
It should be noted that, the first start instruction includes a start instruction and an application start instruction.
In step S24, in response to the first start instruction, the target file required for the start operation is read from the database, and the target file is loaded into the memory.
In the foregoing steps, steps S21 and S22 are repeatedly performed, so that various target files required for the startup operation, which are necessary files required for the startup operation, are stored in the database.
When the first starting instruction is a starting instruction, responding to the starting instruction, acquiring a target file required by starting operation from a database, acquiring the page position and the page number of the file corresponding to the starting operation by a file mapping method, and loading the target file into a memory in advance. The method for loading the target file into the memory in advance comprises the following steps: and controlling the monitoring background to detect whether a first target file of a starting operation exists in the database, acquiring the first target file from the database under the condition that the first target file exists in the database, acquiring a page mark of the first target file written into the memory through the monitoring background, and loading the first target file into the memory according to the page mark of the first target file.
When the starting instruction is an application starting instruction, responding to the application starting instruction, acquiring a target file required by application starting operation from a database, acquiring the page position and the page number of the file corresponding to the application starting operation by a file mapping method, and loading the target file into a memory in advance. The method for loading the target file into the memory in advance comprises the following steps: and acquiring the name of the application process to be started, acquiring a second target file started by starting from the database according to the name of the application process, acquiring a page mark of the second target file written into the memory by a monitoring background, and loading the second target file into the memory according to the page mark of the second target file.
In step S25, the process operation target file corresponding to the start operation is controlled.
The startup operation includes a startup operation and an application startup operation. The operating system controls the starting operation or the process corresponding to the application starting operation to run the target file already loaded in the memory, so that the starting operation or the application starting is completed.
In summary, the startup control method provided by the present disclosure includes: the method comprises the steps that an operating system receives a first starting instruction, reads target files required by starting operation from a database in response to the first starting instruction, loads the target files into a memory, stores various target files required by starting operation in the database, and controls a process corresponding to the starting operation to run the target files; by storing the information of all the specified files required by the starting operation into the database in advance, and pre-reading the file content in the database and loading the file content before the next starting operation is executed, the aim of starting acceleration is achieved, meanwhile, the memory information in the starting operation process can be monitored in real time, the hard coding of a standard interface is not involved, the influence of modification permission is avoided, the information is not required to be acquired by using tracking (trace), and the problem of overhigh power consumption is also avoided.
Fig. 3 is a block diagram illustrating a start-up control device according to an exemplary embodiment. Referring to fig. 3, the apparatus 20 includes a receiving module 201 and a processing module 203.
The receiving module 201 is configured to receive a first start instruction;
the processing module 203 is configured to respond to the first starting instruction, read a target file required by a starting operation from a database, and load the target file into a memory; the database stores various target files required by the starting operation;
and controlling the process corresponding to the starting operation to run the target file.
Optionally, the receiving module 201 is further configured to receive a second start instruction; optionally, the processing module 203 is further configured to respond to the second start instruction, write the target file and the target file information required by the various start operations into the memory of the electronic device, so as to complete the start operations, and send the target file and the target file information to a monitoring background; the monitoring background is used for storing the target file and the target file information into the database.
Optionally, the target file information includes at least one of a target file number, an application process number, a target file page index, a target file path, an application package name, and an event type;
the target file information is used for indicating the monitoring background to generate a target file temporary number according to the target file number;
the target file information is used for indicating the monitoring background to acquire page marks of target files written into the memory and/or application process names for reading and writing the target files according to the temporary numbers of the target files and the application process numbers;
and the target file information is also used for indicating the monitoring background to store the page mark and the application process name into the database.
Optionally, the processing module 203 is further configured to control the monitoring background to detect whether a first target file of the startup operation exists in the database;
acquiring the first target file from the database under the condition that the first target file exists in the database;
acquiring a page mark of the first target file written into the memory through the monitoring background;
and loading the first target file into the memory according to the page mark of the first target file.
Optionally, the processing module 203 is further configured to obtain an application process name to be started;
acquiring a second target file of the application starting operation from the database according to the application process name;
acquiring a page mark of the second target file written into the memory through the monitoring background;
and loading the second target file into the memory according to the page mark of the second target file.
Optionally, the processing module 203 is further configured to store the time of loading the target file in the database.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the start-up control method provided by the present disclosure.
Fig. 4 is a block diagram illustrating an apparatus for initiating control according to an exemplary embodiment. For example, apparatus 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 4, apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the startup control method described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
Input/output interface 812 provides an interface between processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described startup control methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the startup control method described above. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The apparatus may be a stand-alone electronic device or may be part of a stand-alone electronic device, for example, in one embodiment, the apparatus may be an integrated circuit (Integrated Circuit, IC) or a chip, where the integrated circuit may be an IC or may be a collection of ICs; the chip may include, but is not limited to, the following: GPU (Graphics Processing Unit, graphics processor), CPU (Central Processing Unit ), FPGA (Field Programmable Gate Array, programmable logic array), DSP (Digital Signal Processor ), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), SOC (System on Chip, SOC, system on Chip or System on Chip), etc. The integrated circuit or chip may be configured to execute executable instructions (or code) to implement the start control method described above. The executable instructions may be stored on the integrated circuit or chip or may be retrieved from another device or apparatus, such as the integrated circuit or chip including a processor, memory, and interface for communicating with other devices. The executable instructions may be stored in the memory, which when executed by the processor implement the start control method described above; alternatively, the integrated circuit or chip may receive the executable instructions through the interface and transmit the executable instructions to the processor for execution, so as to implement the startup control method described above.
In another exemplary embodiment, a computer program product is also provided, comprising a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-described start-up control method when executed by the programmable apparatus.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A startup control method, applied to an operating system of an electronic device, comprising:
receiving a first starting instruction;
responding to the first starting instruction, reading a target file required by starting operation from a database, and loading the target file into a memory; the database stores various target files required by the starting operation;
and controlling the process corresponding to the starting operation to run the target file.
2. The method of claim 1, wherein the step of reading a target file required for a boot operation from a database in response to the boot instruction, and loading the target file into the memory is preceded by:
receiving a second starting instruction;
responding to the second starting instruction, writing various target files and target file information required by starting operation into a memory of the electronic equipment so as to finish the starting operation, and sending the target files and the target file information to a monitoring background; the monitoring background is used for storing the target file and the target file information into the database.
3. The method of claim 2, wherein the object file information comprises at least one of an object file number, an application process number, an object file page index, an object file path, an application package name, and an event type;
the target file information is used for indicating the monitoring background to generate a target file temporary number according to the target file number;
the target file information is used for indicating the monitoring background to acquire page marks of target files written into the memory and/or application process names for reading and writing the target files according to the temporary numbers of the target files and the application process numbers;
and the target file information is also used for indicating the monitoring background to store the page mark and the application process name into the database.
4. A method according to claim 3, wherein the start-up instruction comprises a power-on start-up instruction; the starting operation comprises a starting operation; the step of loading the target file into the memory includes: controlling the monitoring background to detect whether a first target file of the starting operation exists in the database;
acquiring the first target file from the database under the condition that the first target file exists in the database;
acquiring a page mark of the first target file written into the memory through the monitoring background;
and loading the first target file into the memory according to the page mark of the first target file.
5. A method according to claim 3, wherein the launch instruction comprises an application launch instruction; the start operation includes an application start operation;
the step of loading the target file into the memory includes:
acquiring the name of an application process to be started;
acquiring a second target file of the application starting operation from the database according to the application process name;
acquiring a page mark of the second target file written into the memory through the monitoring background;
and loading the second target file into the memory according to the page mark of the second target file.
6. The method according to any one of claims 1 to 5, further comprising:
and storing the time for loading the target file into the database.
7. A start-up control device, characterized by comprising:
the receiving module is configured to receive a first starting instruction;
the processing module is configured to respond to the first starting instruction, read a target file required by starting operation from a database and load the target file into a memory; the database stores various target files required by the starting operation;
and controlling the process corresponding to the starting operation to run the target file.
8. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the steps of the method of any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the steps of the method of any of claims 1 to 6.
10. A chip, comprising a processor and an interface; the processor is configured to read instructions to perform the method of any one of claims 1 to 6.
CN202210772155.1A 2022-06-30 2022-06-30 Start control method, start control device, electronic equipment, readable storage medium and chip Pending CN117369881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210772155.1A CN117369881A (en) 2022-06-30 2022-06-30 Start control method, start control device, electronic equipment, readable storage medium and chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210772155.1A CN117369881A (en) 2022-06-30 2022-06-30 Start control method, start control device, electronic equipment, readable storage medium and chip

Publications (1)

Publication Number Publication Date
CN117369881A true CN117369881A (en) 2024-01-09

Family

ID=89400983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210772155.1A Pending CN117369881A (en) 2022-06-30 2022-06-30 Start control method, start control device, electronic equipment, readable storage medium and chip

Country Status (1)

Country Link
CN (1) CN117369881A (en)

Similar Documents

Publication Publication Date Title
CN109117144B (en) Page processing method, device, terminal and storage medium
US20220391446A1 (en) Method and device for data sharing
CN107463372B (en) Data-driven page updating method and device
CN108446226B (en) Application exception processing method
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN113778687B (en) Memory allocation information processing method and device, electronic equipment and storage medium
CN107885571B (en) Display page control method and device
CN113360708B (en) Video playing method and device, electronic equipment and storage medium
CN117369881A (en) Start control method, start control device, electronic equipment, readable storage medium and chip
CN112651012A (en) Information processing method and device
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN114443161B (en) Application docking method, device, equipment and storage medium
CN114115025B (en) Method, device and equipment for storing fault information based on automatic driving system
CN111240757B (en) Quick application control method, device and storage medium
CN107463414B (en) Application installation method and device
CN111414245B (en) Method, device and medium for controlling flash memory read-write rate
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN113778385B (en) Component registration method, device, terminal and storage medium
CN112887590B (en) Image processing method, device and storage medium
CN108205452B (en) Software execution control method and device
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
EP4312111A1 (en) Screen projection method, screen projection apparatus, electronic device, storage medium, and chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination