CN115705219A - Terminal starting method and device, storage medium and terminal - Google Patents

Terminal starting method and device, storage medium and terminal Download PDF

Info

Publication number
CN115705219A
CN115705219A CN202110925471.3A CN202110925471A CN115705219A CN 115705219 A CN115705219 A CN 115705219A CN 202110925471 A CN202110925471 A CN 202110925471A CN 115705219 A CN115705219 A CN 115705219A
Authority
CN
China
Prior art keywords
file
hash value
terminal
file system
updated
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
CN202110925471.3A
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 CN202110925471.3A priority Critical patent/CN115705219A/en
Publication of CN115705219A publication Critical patent/CN115705219A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a terminal starting method, a device, a storage medium and a terminal, wherein the method comprises the following steps: in the terminal starting process, acquiring a current file hash value corresponding to a file system of the terminal, wherein the file hash value is used for representing the content of a source code file in the file system; determining whether the file system of the terminal is updated or not according to the hash value of the current file; skipping a file system check of the file system if it is determined that the file system is not updated. Therefore, whether the file system is updated or not is determined through the hash value of the current file corresponding to the file system of the terminal, and the fsck is not triggered to check the file system under the condition that the file system is not updated, so that the starting speed of the terminal can be increased, and the user experience is improved.

Description

Terminal starting method and device, storage medium and terminal
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a terminal starting method and apparatus, a storage medium, and a terminal.
Background
In recent years, electronic products have been commonly used in people's lives, the competition of electronic products is more and more intense, and the software performance of electronic products becomes more and more important under the condition of the same level of hardware. In various performances of electronic products, the starting time is an important index for measuring the performances of the products, and therefore, the starting time for optimizing the system becomes extremely important.
In the related art, the starting time of the system can be optimized by improving the speed of the CPU, the reading and writing speed of the flash and the like, but the effect of the optimization mode is limited, so that the starting speed of the equipment is still relatively slow.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a terminal starting method, apparatus, storage medium, and terminal.
According to a first aspect of the embodiments of the present disclosure, a terminal starting method is provided, including:
in the starting process of a terminal, acquiring a current file hash value corresponding to a file system of the terminal, wherein the file hash value is used for representing the content of a source code file in the file system;
determining whether the file system of the terminal is updated or not according to the hash value of the current file;
skipping a file system check of the file system if it is determined that the file system is not updated.
Optionally, the determining, according to the hash value of the current file, whether the file system of the terminal is updated includes:
acquiring a historical file hash value corresponding to a file system of the terminal from a data partition of the terminal;
under the condition that the hash value of the current file is the same as the hash value of the historical file, determining that the file system of the terminal is not updated;
and under the condition that the current file hash value is different from the historical file hash value, determining the file system update of the terminal.
Optionally, the method further comprises:
and under the condition that the file system is determined to be updated, updating the historical file hash value in the data partition of the terminal to the current file hash value.
Optionally, the file hash value is obtained in advance by:
in the process of compiling the source code corresponding to the file system, calculating a first hash value corresponding to each source code file in the file system through a preset hash algorithm;
and acquiring the file hash value according to the plurality of first hash values.
Optionally, the first hash value includes a plurality of bytes, and the obtaining the file hash value according to the plurality of first hash values includes:
acquiring a second hash value corresponding to the appointed byte of each first hash value;
and calculating the file hash value through the preset hash algorithm according to the plurality of second hash values.
Optionally, the method further comprises:
after the file hash value is obtained, adding the file hash value into version information generated by compiling;
the obtaining of the hash value of the current file corresponding to the file system of the terminal includes:
acquiring version information corresponding to the terminal;
and acquiring the hash value of the current file from the version information.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal activation apparatus, including:
the file hash value acquisition module is configured to acquire a current file hash value corresponding to a file system of the terminal in a terminal starting process, wherein the file hash value is used for representing the content of a source code file in the file system;
an update determination module configured to determine whether a file system of the terminal is updated according to the current file hash value;
a check skip module configured to skip a file system check of the file system if it is determined that the file system is not updated.
Optionally, the update determining module is further configured to:
acquiring a historical file hash value corresponding to a file system of the terminal from a data partition of the terminal;
under the condition that the hash value of the current file is the same as the hash value of the historical file, determining that the file system of the terminal is not updated;
and under the condition that the hash value of the current file is different from the hash value of the historical file, determining the file system update of the terminal.
Optionally, the apparatus further comprises:
a hash value updating module configured to update the historical file hash value in the data partition of the terminal to the current file hash value if it is determined that the file system is updated.
Optionally, the file hash value is obtained in advance by:
in the process of compiling the source code corresponding to the file system, calculating a first hash value corresponding to each source code file in the file system through a preset hash algorithm;
and acquiring the file hash value according to the plurality of first hash values.
Optionally, the first hash value includes a plurality of bytes, and the obtaining the file hash value according to the plurality of first hash values includes:
acquiring a second hash value corresponding to the appointed byte of each first hash value;
and calculating the file hash value through the preset hash algorithm according to the plurality of second hash values.
Optionally, after the file hash value is obtained, the file hash value is added to version information generated by compiling;
the file hash value obtaining module is further configured to:
acquiring version information corresponding to the terminal;
and acquiring the hash value of the current file from the version information.
According to a third 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 terminal start-up method provided by the first aspect of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the terminal start-up method provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the starting process of a terminal, acquiring a current file hash value corresponding to a file system of the terminal, wherein the file hash value is used for representing the content of a source code file in the file system; determining whether the file system of the terminal is updated or not according to the hash value of the current file; skipping file system checking of the file system if it is determined that the file system is not updated. Therefore, whether the file system is updated or not is determined through the hash value of the current file corresponding to the file system of the terminal, and the fsck is not triggered to check the file system under the condition that the file system is not updated, so that the starting speed of the terminal can be increased, and the user experience is improved.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method for terminal booting according to an exemplary embodiment;
FIG. 2 is a block diagram illustrating a terminal activation device according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating another terminal activation device according to an exemplary embodiment;
fig. 4 is a block diagram illustrating a terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
First, an application scenario of the present disclosure will be explained. The method can be applied to a terminal with an android operating system, the version information of the currently running system version is obtained in the terminal starting process according to the default processing mode of the android system, whether the currently running system version is updated or not is determined according to the version information, and if the currently running system version is determined to be updated, a fsck (file system check) tool carried by the system is triggered to check the file system of the terminal; and if the currently running system version is determined not to be updated, the fsck tool is not triggered to check the file system of the terminal. However, the system version may not be updated because the source code file of the file system is modified, but may also be updated because other source code files are modified, so that when the source code of the file system is not modified, fsck is still triggered to check the file system, and files contained in the file system are more, and the check of the file system takes about 10 seconds, which results in a long startup time of the terminal, thereby resulting in a poor user experience.
The disclosure provides a terminal starting method, a device, a storage medium and a terminal for overcoming the technical problems in the related art, wherein whether a file system of the terminal is updated or not is determined through a hash value of a current file corresponding to the file system, and fsck is not triggered to check the file system under the condition that the file system is not updated, so that the starting speed of the terminal can be increased, and the user experience is improved.
The present disclosure is described below with reference to specific examples.
Fig. 1 is a flowchart illustrating a terminal booting method according to an exemplary embodiment, and as shown in fig. 1, the method may include:
s101, in the process of starting the terminal, obtaining a current file hash value corresponding to a file system of the terminal.
The file hash value is used for representing the content of a source code file in the file system, and the file hash value corresponding to the file system changes when the content of any source code file in the file system changes. The file hash value may be stored in a preset environment variable, or may be stored in version information of a system version currently running in the terminal.
The file hash value can be obtained in advance through the following modes: in the process of compiling the source code corresponding to the file system of the terminal, calculating a first hash value corresponding to each source code file in the file system through a preset hash algorithm, and then obtaining the file hash value according to a plurality of first hash values. The predetermined hash algorithm may be a hash, or other hash algorithms in the prior art, which is not limited in this disclosure.
For example, in the case that the preset hash algorithm is a sharsum, a command for obtaining a hash value may be added to the mkcomplie _ h file of the source code of the android, and when all the source code files in the source/include/linux/f2fs _ fs.h and the source/fs/f2fs directories are compiled, a first hash value corresponding to each source code file may be calculated through the sharsum algorithm. Then, a new hash value file is generated by the plurality of first hash values, for example, the plurality of first hash values may be sequentially spliced to obtain the hash value file, and finally, the hash value corresponding to the hash value file is calculated by the sharsum algorithm, and the hash value corresponding to the hash value file is used as the file hash value.
It should be noted that the hash value corresponding to the hash value file may also be calculated by other hash value algorithms, which is not limited in this disclosure.
The first hash value may include a plurality of bytes, and a byte number corresponding to the first hash value may be determined according to the preset hash algorithm, for example, the first hash value calculated by the sharsum algorithm may include 160 bytes. Under the condition that the number of bytes corresponding to the first hash value is large, the hash value file generated according to the plurality of first hash values is also long, so that the efficiency of calculating the hash value corresponding to the hash value file is low.
In a possible implementation manner, a second hash value corresponding to the designated byte of each first hash value may be obtained, and the hash value of the file is calculated by the preset hash algorithm according to a plurality of second hash values. Illustratively, the specified byte may be the first byte of the first hash value. After the second hash value corresponding to the designated byte of each first hash value is obtained, a hash value file may be generated according to the plurality of second hash values, and then the hash value corresponding to the hash value file is obtained through the preset hash algorithm, and the hash value corresponding to the hash value file is used as the file hash value.
Further, after the file hash value is obtained through calculation, the file hash value can be stored in a preset environment variable, so that the terminal can obtain the current file hash value by reading the value of the preset environment variable in the starting process; after the compilation is completed, the file hash value may be added to the version information of the system version generated by the compilation, for example, the file hash value may be added to the last of the version information, for example, if the file hash value is "8e3c99a365cc2c2274d76c8d4a4441e750a6eab6", the version information to which the file hash value is added may be "#1SMP PREEMPT wen 2.
It should be noted that the length of the string corresponding to the version information defined in the source code may be limited, for example, the length of the string corresponding to the version information may be limited to 64 bytes, in this case, the target file hash value may be determined according to the length of the string that may be added to the version information, and the target file hash value may be added to the version information. For example, if the length of the character string that can be added to the version information is 11 bytes, the first 11 bytes in the file hash value can be used as the target file hash value. For example, the hash value of the target file is "8e3c99a365c", and the version information to which the hash value of the file is added may be "#1SMP PREEMPT Wed Jun 2 17. Therefore, the file hash value is stored without adding an environment variable and under the condition that the source code is slightly modified.
In this step, in the terminal starting process, if the current file hash value is stored in the version information, the version information of the system version currently running by the terminal may be obtained, and the version information is analyzed to obtain the current file hash value in the version information. For example, the version information may be parsed to obtain a preset character string "fsfs-hash" in the version information: ", the character string following the preset character string is taken as the hash value of the current file.
And S102, determining whether the file system of the terminal is updated or not according to the hash value of the current file.
In this step, after obtaining the current file hash value corresponding to the file system of the terminal, the historical file hash value corresponding to the file system of the terminal may be obtained from the data partition of the terminal, and when the current file hash value is the same as the historical file hash value, it is determined that the file system of the terminal is not updated, and when the current file hash value is different from the historical file hash value, it is determined that the file system of the terminal is updated.
For example, after the current file hash value and the historical file hash value are obtained, each byte in the current file hash value and each byte in the historical file hash value may be sequentially compared, and if the hash values of the current file hash value and each byte in the historical file hash value are the same, it indicates that the system file of the current running system version of the terminal is the same as the system file of the historical system version, and it is determined that the file system of the terminal is not updated; if the hash value of any byte of the hash value of the current file is different from that of any byte of the hash value of the historical file, the hash value of the current file indicates that the system version currently operated by the terminal is different from the system file of the historical system version, and the file system update of the terminal is determined.
S103, skipping the file system check of the file system when the file system is determined not to be updated.
In this step, in the case that it is determined that the file system is not updated, fsck may not be triggered any more, and the file system check for the file system may be skipped.
It should be noted that the processing flow related to fsck is skipped when checking the file system of the file system indicates that fsck is not executed any more, and the processing flow after fsck is executed as it is.
In the case that the file system update is determined, the historical file hash value in the data partition of the terminal may be updated to the current file hash value, and fsck is triggered to check the file system.
By adopting the method, whether the file system is updated or not is determined through the hash value of the current file corresponding to the file system of the terminal, and fsck is not triggered to check the file system under the condition that the file system is not updated, so that the starting speed of the terminal can be increased, and the user experience is improved.
Fig. 2 is a block diagram illustrating a terminal activation apparatus according to an exemplary embodiment, which may include, as shown in fig. 2:
a file hash value obtaining module 201, configured to obtain, in a terminal start process, a current file hash value corresponding to a file system of the terminal, where the file hash value is used to represent content of a source code file in the file system;
an update determining module 202, configured to determine whether the file system of the terminal is updated according to the current file hash value;
an examination skipping module 203 configured to skip the examination of the file system for the file system in case it is determined that the file system is not updated.
Optionally, the update determining module 202 is further configured to:
acquiring a historical file hash value corresponding to a file system of the terminal from a data partition of the terminal;
under the condition that the hash value of the current file is the same as the hash value of the historical file, determining that the file system of the terminal is not updated;
and determining the file system update of the terminal under the condition that the current file hash value is different from the historical file hash value.
Optionally, fig. 3 is a block diagram of another terminal activating apparatus according to an exemplary embodiment, and as shown in fig. 3, the apparatus further includes:
a hash value updating module 204 configured to update the historical file hash value in the data partition of the terminal to the current file hash value if the file system update is determined.
Optionally, the file hash value is obtained in advance by:
in the process of compiling the source code corresponding to the file system, calculating a first hash value corresponding to each source code file in the file system through a preset hash algorithm;
and acquiring the file hash value according to the plurality of first hash values.
Optionally, the first hash value includes a plurality of bytes, and the obtaining the file hash value according to the plurality of first hash values includes:
acquiring a second hash value corresponding to the designated byte of each first hash value;
and calculating the file hash value through the preset hash algorithm according to the plurality of second hash values.
Optionally, after the file hash value is obtained, adding the file hash value to version information generated by compiling;
the file hash value obtaining module 201 is further configured to:
acquiring version information corresponding to the terminal;
and acquiring the hash value of the current file from the version information.
By the device, whether the file system is updated or not is determined through the hash value of the current file corresponding to the file system of the terminal, and the fsck is not triggered to check the file system under the condition that the file system is not updated, so that the starting speed of the terminal can be increased, and the user experience is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
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 terminal booting method provided by the present disclosure.
Fig. 4 is a block diagram illustrating a terminal 400 according to an example embodiment. For example, the terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 4, the terminal 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the terminal activation method described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the terminal 400. Examples of such data include instructions for any application or method operating on the terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or non-volatile storage 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 disks.
The power components 406 provide power to the various components of the terminal 400. The power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 400.
The multimedia component 408 comprises a screen providing an output interface between the terminal 400 and the user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 400 is in an operation 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 a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the terminal 400. For example, the sensor assembly 414 can detect an open/closed state of the terminal 400, relative positioning of components, such as a display and keypad of the terminal 400, the sensor assembly 414 can also detect a change in position of the terminal 400 or a component of the terminal 400, the presence or absence of user contact with the terminal 400, orientation or acceleration/deceleration of the terminal 400, and a change in temperature of the terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 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 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate communications between the terminal 400 and other devices in a wired or wireless manner. The terminal 400 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 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 terminal 400 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, micro-controllers, microprocessors or other electronic components for performing the above-described terminal activation methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the terminal 400 to perform the terminal activation method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned terminal start-up 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A terminal starting method is characterized by comprising the following steps:
in the terminal starting process, acquiring a current file hash value corresponding to a file system of the terminal, wherein the file hash value is used for representing the content of a source code file in the file system;
determining whether the file system of the terminal is updated or not according to the hash value of the current file;
skipping file system checking of the file system if it is determined that the file system is not updated.
2. The method according to claim 1, wherein the determining whether the file system of the terminal is updated according to the current file hash value comprises:
acquiring a historical file hash value corresponding to a file system of the terminal from a data partition of the terminal;
under the condition that the hash value of the current file is the same as the hash value of the historical file, determining that the file system of the terminal is not updated;
and under the condition that the current file hash value is different from the historical file hash value, determining the file system update of the terminal.
3. The method of claim 2, further comprising:
and under the condition that the file system is determined to be updated, updating the historical file hash value in the data partition of the terminal to the current file hash value.
4. The method according to claim 1, wherein the file hash value is obtained in advance by:
in the process of compiling the source code corresponding to the file system, calculating a first hash value corresponding to each source code file in the file system through a preset hash algorithm;
and acquiring the file hash value according to the plurality of first hash values.
5. The method of claim 4, wherein the first hash value comprises a plurality of bytes, and wherein obtaining the file hash value based on the plurality of first hash values comprises:
acquiring a second hash value corresponding to the appointed byte of each first hash value;
and calculating the file hash value through the preset hash algorithm according to the plurality of second hash values.
6. The method of claim 4, further comprising:
after the file hash value is obtained, adding the file hash value into version information generated by compiling;
the obtaining of the current file hash value corresponding to the file system of the terminal includes:
acquiring version information corresponding to the terminal;
and acquiring the hash value of the current file from the version information.
7. A terminal activating device, comprising:
the file hash value acquisition module is configured to acquire a current file hash value corresponding to a file system of the terminal in a terminal starting process, wherein the file hash value is used for representing the content of a source code file in the file system;
the updating determination module is configured to determine whether the file system of the terminal is updated according to the hash value of the current file;
a check skip module configured to skip a file system check of the file system if it is determined that the file system is not updated.
8. The apparatus of claim 7, wherein the update determination module is further configured to:
acquiring a historical file hash value corresponding to a file system of the terminal from a data partition of the terminal;
under the condition that the hash value of the current file is the same as the hash value of the historical file, determining that the file system of the terminal is not updated;
and under the condition that the current file hash value is different from the historical file hash value, determining the file system update of the terminal.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
10. A terminal, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 6.
CN202110925471.3A 2021-08-12 2021-08-12 Terminal starting method and device, storage medium and terminal Pending CN115705219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110925471.3A CN115705219A (en) 2021-08-12 2021-08-12 Terminal starting method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110925471.3A CN115705219A (en) 2021-08-12 2021-08-12 Terminal starting method and device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN115705219A true CN115705219A (en) 2023-02-17

Family

ID=85181000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110925471.3A Pending CN115705219A (en) 2021-08-12 2021-08-12 Terminal starting method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN115705219A (en)

Similar Documents

Publication Publication Date Title
EP3096224B1 (en) Method and apparatus for processing application installation package
EP3171270A1 (en) Method and device for information push
CN111221559B (en) Application updating method, device, storage medium, terminal and server
US20160226519A1 (en) Method and device for compressing firmware program, method and device for decompressing firmware program
EP3428790B1 (en) Method and device for displaying application interface
US20140380292A1 (en) Method, device, and storage medium for upgrading operating system
CN107463372B (en) Data-driven page updating method and device
CN110457084B (en) Loading method and device
CN108427568B (en) User interface updating method and device
CN114528037A (en) Application starting method and device, electronic equipment and storage medium
CN115705219A (en) Terminal starting method and device, storage medium and terminal
CN113590091A (en) Data processing method and device, electronic equipment and storage medium
CN108549570B (en) User interface updating method and device
CN114077461A (en) Application program running method, device, equipment and storage medium
CN107463414B (en) Application installation method and device
CN111104110A (en) Global style sharing method, global style sharing device and electronic device
CN112214252A (en) Information expansion method and device and electronic equipment
CN113934452B (en) Data processing method and device, electronic equipment and storage medium
CN113946346B (en) Data processing method and device, electronic equipment and storage medium
CN111767063A (en) Resource updating method, device and equipment for application program
CN114489641B (en) Data processing method and device, electronic equipment and storage medium
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN111596949B (en) Method and device for developing application program
CN114020505B (en) Data processing method and device, electronic equipment and storage medium
CN110659081B (en) File processing method and device for program object and electronic equipment

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