CN113741980A - Electronic equipment starting method based on android system, electronic equipment and storage medium - Google Patents

Electronic equipment starting method based on android system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113741980A
CN113741980A CN202010479840.6A CN202010479840A CN113741980A CN 113741980 A CN113741980 A CN 113741980A CN 202010479840 A CN202010479840 A CN 202010479840A CN 113741980 A CN113741980 A CN 113741980A
Authority
CN
China
Prior art keywords
storage space
starting
system data
directory
copying
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
CN202010479840.6A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202010479840.6A priority Critical patent/CN113741980A/en
Publication of CN113741980A publication Critical patent/CN113741980A/en
Pending legal-status Critical Current

Links

Images

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/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/4403Processor initialisation

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 application discloses an electronic equipment starting method based on an android system, electronic equipment and a storage medium, relates to the technical field of intelligent equipment, and is used for solving the problem that a system cannot be started due to the fact that a storage space is occupied. The method comprises the following steps: after receiving a starting-up instruction, detecting the residual capacity of the first storage space; if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space; and starting the system data running in the second storage space through the main starting process. Therefore, even if the storage space for storing the system file is occupied, the system can still be started, so that the system stability is improved, and the loss of user data is avoided.

Description

Electronic equipment starting method based on android system, electronic equipment and storage medium
Technical Field
The application relates to the technical field of intelligent equipment, in particular to an electronic equipment starting method based on an android system, electronic equipment and a storage medium.
Background
With the upgrade of Android (Android system) version, the application volume of the current mobile phone becomes larger and larger, the requirement on the storage space is higher and higher, the storage space is always limited, and the storage space is always used up. For the Android system, once the storage space for storing system files in the system is completely full, the system cannot be started.
Disclosure of Invention
The embodiment of the application provides an electronic equipment starting method based on an android system, electronic equipment and a storage medium, and aims to solve the problem that the system cannot be started due to the fact that a storage space is occupied.
In a first aspect, an embodiment of the present application provides an electronic device based on an android system, where the electronic device includes: a processor and a memory;
the processor is used for detecting the residual capacity of the first storage space after receiving the starting instruction; if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space; and starting the system data running in the second storage space through the main starting process.
The memory includes the first storage space and the second storage space, wherein the second storage space is smaller than the first storage space.
The electronic equipment detects the residual capacity of the first storage space after receiving the starting-up instruction, copies the starting-up system data to the second storage space if the space is insufficient, and starts up according to the starting-up system data stored in the second storage space. Therefore, even if the storage space for storing the system file is occupied, the system can still be started, so that the system stability is improved, and the loss of user data is avoided.
In certain embodiments, the treatment appliance is configured to:
creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory;
copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory;
and unloading the temporary directory and mounting the second storage space under the system directory.
According to the electronic equipment, the system data is copied to the second storage space in the mounting and unloading modes, so that the electronic equipment is started directly according to the system data in the second storage space without passing through the first storage space when being started, information in the first storage space is not required to be deleted, and user data loss is avoided.
In certain embodiments, the treatment appliance is configured to:
if the system data exists in the second storage space, emptying the system data in the second storage space;
and copying system data for starting up in the system catalog in the first storage space to the second storage space under the emptied temporary catalog.
Before copying the system data into the second storage space, the electronic device needs to clean the second storage space, so that the second storage space cannot be occupied, and the electronic device can be normally started.
In certain embodiments, the treatment appliance is configured to:
creating tag information in the second storage space;
after the system data running in the second storage space is started through a main starting process, if the mark information exists in the second storage space, prompt information for cleaning the memory is displayed on a display interface.
According to the electronic equipment, the mark information is created in the second storage space, so that a user can obtain a message that the storage space is insufficient after the electronic equipment is started, and the user can clean the first storage space so as to normally start the electronic equipment next time.
In certain embodiments, the treatment appliance is configured to:
determining system data occupying less than a second preset threshold from the first storage space as system data for starting up;
copying the determined system data in the first storage space to the second storage space.
The electronic equipment takes the system data with the occupied space smaller than the second preset threshold value as the system data for starting, and because the originally used starting file of the Android system is not particularly large, if the file with the large size is a certain abnormal file or a non-system-level temporary file, the file does not need to be copied to the second storage space.
In a second aspect, an embodiment of the present application provides an electronic device booting method based on an android system, where the method includes:
after receiving a starting-up instruction, detecting the residual capacity of the first storage space;
if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space;
and starting the system data running in the second storage space through the main starting process.
In some embodiments, copying the system data for booting in the first storage space to the second storage space includes:
creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory;
copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory;
and unloading the temporary directory and mounting the second storage space under the system directory.
In some embodiments, before copying the system data for booting in the system directory in the first storage space into the second storage space under the temporary directory, the method further includes:
and if the system data exist in the second storage space, emptying the system data in the second storage space.
In some embodiments, after copying the system data for booting in the system directory in the first storage space into the second storage space under the temporary directory, the method further includes:
creating tag information in the second storage space;
after the system data running in the second storage space through the boot main process is booted, the method further includes:
and if the mark information exists in the second storage space, displaying prompt information for cleaning the memory on a display interface.
In some embodiments, the copying the system data for booting in the first storage space to the second storage space includes:
determining system data occupying less than a second preset threshold from the first storage space as system data for starting up;
copying the determined system data in the first storage space to the second storage space.
In a third aspect, the present application further provides a computer storage medium having a computer program stored thereon, where the computer program is executed by a processing unit to implement the steps of the mutual information determination method according to the second aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the third aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
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 application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a flowchart of a method for starting up an electronic device based on an android system according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a special boot mode start according to an embodiment of the present application;
fig. 5 is a schematic diagram of a prompt message according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiment of the present application, the term "and/or" describes an association relationship of associated objects, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein.
The term "electronic device" in the embodiments of the present application refers to an electronic device that can be used in mobile, i.e., a mobile phone, a tablet, and the like.
An embodiment of the application provides an electronic equipment based on android system, electronic equipment includes: a processor and a memory;
wherein the processor and the memory may be integrated into a same component, and the component may be used as both the processor and the memory.
The processor is used for detecting the residual capacity of the first storage space after receiving the starting instruction; if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space; and starting the system data running in the second storage space through the main starting process.
The memory includes the first storage space and the second storage space, wherein the second storage space is smaller than the first storage space.
Specifically, when a user uses the electronic device provided in the embodiment of the present application and boots, the electronic device may determine whether a space for storing a system boot file is sufficient, and if the space is determined to be insufficient, the booting process may be interrupted, the system boot file may be copied to another separate storage space, and the electronic device may boot according to the system boot file in the another separate storage space. Referring to fig. 1, the memory is divided into a first storage space and a second storage space, wherein the second storage space is smaller than the first storage space. The first storage space is usually used for storing user data, application information, system data and the like, the second storage space is only used for storing system data used for starting, and if the first storage space in the memory is full, the system starting file in the first storage space is copied to the second storage space, and starting is carried out according to the system starting file in the second storage space.
According to the electronic equipment starting method based on the android system, the electronic equipment and the storage medium, after a starting instruction is received, the residual capacity of the first storage space is detected, if the space is insufficient, starting system data are copied to the second storage space, and starting is carried out according to the starting system data stored in the second storage space. Therefore, even if the storage space for storing the system file is occupied, the system can still be started, so that the system stability is improved, and the loss of user data is avoided.
In some embodiments, the electronic device may include the following elements in addition to the elements described above, as described in conjunction with fig. 2.
It should be understood that the electronic device 200 shown in fig. 2 is merely an example, and that the electronic device 200 may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 2, the electronic apparatus 200 includes: memory 210, display unit 220, camera 230, Wireless Fidelity (Wi-Fi) module 240, processor 250, audio circuitry 260, and power supply 270.
The processor 250 is a control center of the electronic device 200, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device 200 and processes data by running or executing software programs stored in the memory 210 and calling data stored in the memory 210. In some embodiments, processor 250 may include one or more processing units; the processor 250 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. In the present application, the processor 250 may run an operating system, an application program, a user interface display, a touch response, and the facial modification display method according to the embodiment of the present application.
Memory 210 may be used to store software programs and data. The processor 250 performs various functions of the electronic device 200 and data processing by executing software programs or data stored in the memory 210. The memory 210 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 210 stores an operating system that enables the electronic apparatus 200 to operate. The memory 210 may store an operating system and various application programs, and may also store codes for performing the methods described in the embodiments of the present application.
Among them, the display unit 220 may be used to receive input numeric or character information, generate signal input related to user settings and function control of the electronic device 200, and particularly, the display unit 220 may include a touch screen 221 disposed on the front surface of the electronic device 200, and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 220 may also be used to display information input by or provided to the user and a Graphical User Interface (GUI) of various menus of the electronic apparatus 200. Specifically, the display unit 220 may include a display screen 222 disposed on the front surface of the electronic apparatus 200. The display screen 222 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 220 may be used to display various graphical user interfaces described herein. Wherein, when the electronic device is integrated on the electronic device, the housing of the door in the electronic device may be replaced with the display screen 222 in the display unit.
The touch screen 221 may be covered on the display screen 222, or the touch screen 221 and the display screen 222 may be integrated to implement the input and output functions of the electronic device 200, and after the integration, the touch screen may be referred to as a touch display screen for short. The display unit 220 in the present application can display the application programs and the corresponding operation steps.
Details of the configuration of the electronic device 200 included in fig. 2 are described below by way of an example.
In certain embodiments, the treatment appliance is configured to:
creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory;
copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory;
and unloading the temporary directory and mounting the second storage space under the system directory.
In certain embodiments, the treatment appliance is configured to:
if the system data exists in the second storage space, emptying the system data in the second storage space;
and copying system data for starting up in the system catalog in the first storage space to the second storage space under the emptied temporary catalog.
In certain embodiments, the treatment appliance is configured to:
creating tag information in the second storage space;
after the system data running in the second storage space is started through a main starting process, if the mark information exists in the second storage space, prompt information for cleaning the memory is displayed on a display interface.
In certain embodiments, the treatment appliance is configured to:
determining system data occupying less than a second preset threshold from the first storage space as system data for starting up;
copying the determined system data in the first storage space to the second storage space.
In this embodiment, the processor 250 is also connected to the camera 230, wherein the camera 230 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 250 for conversion into digital image signals.
Specifically, the camera 230 captures an image of the user and sends the image to the processor 250, and the processor 250 may determine a cosmetic area and cosmetic information in the image of the user according to the image of the user.
In this embodiment, processor 250 is coupled to audio circuitry 260. The audio circuitry 260, speaker 261, and microphone 262 may provide an audio interface between a user and the electronic device 200. The audio circuit 260 may transmit the electrical signal converted from the received audio data to the speaker 261, and convert the electrical signal into a sound signal by the speaker 261 and output the sound signal. The electronic device 200 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 262 converts the collected sound signals into electrical signals, which are received by the audio circuit 260 and converted into audio data, which are output to the memory 210 for further processing. In this application, the microphone 262 may capture the user's voice.
Specifically, the microphone 262 collects the user voice, and sends the user voice to the processor 250, and the processor 250 obtains the cosmetic area and the cosmetic information through voice analysis.
In this embodiment, the processor 250 is connected to the Wi-Fi module 240, wherein Wi-Fi belongs to short-range wireless transmission technology, and the electronic device 200 can help the user send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 240, which provides the user with wireless broadband internet access.
Based on all the embodiments described above, the electronic device 200 further includes a power supply 270 (such as a battery) for supplying power to the various components. The power supply may be logically coupled to the processor 250 through a power management system to manage charging, discharging, and power consumption functions through the power management system. The electronic device 200 may also be configured with a power button for powering on and off the electronic device, and locking the screen.
After the electronic device is introduced, how to implement the startup of the electronic device based on the android system provided by the application according to the electronic device is further described below.
With the upgrade of the Android version, the application volume of the current mobile phone becomes larger and larger, the requirement on the storage space is higher and higher, the storage space is always limited, and the storage space is always used up. For the Android system, once the userdata (user data) space (i.e., the first storage space) in the system is completely full, the system cannot be started, and the user data cannot be exported.
The reason why the system cannot be booted is that the system updates some system files during the booting process, for example, contents such as a database are updated to a respective directory of the userdata space, and if the current storage space is insufficient, system service breakdown is caused due to the inability to write in the updated files.
However, a common method for solving the problem is to reserve a part of space in userdata and release the reserved space when the space is insufficient, which has the disadvantage that the reserved space is reserved in userdata and is released when the space is insufficient, so that the reserved space disappears after several releases if the space is insufficient, and the problem that the electronic device cannot be started due to insufficient storage space appears again.
For example: the reserved space reserves 100M of space, the reserved space is released when the space is insufficient (for example, an application is downloaded or a system updates a file), if the system writes 10M of content after the first release, 90M of the reserved space remains, and after the 90M is used up, the device still has the problem that the device cannot be started.
The following description is made in detail by a face grooming display method applied to an electronic device. As shown in fig. 3, the method specifically includes the following steps:
s301: and after receiving the starting-up instruction, detecting the residual capacity of the first storage space.
In the embodiment of the present application, if the remaining capacity of the first storage space is detected, a bin service (e.g., specialboot) that does not depend on the operation of the Android system may be started at startup, where the bin service is used to query the remaining available size of the userdata space of the system after the bin service is started. The bin service is compiled in advance and stored in the electronic equipment, and the bin service and the boot main process run in parallel when the electronic equipment is booted.
S302: if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space.
The second storage space is a fixed partition space which is divided in advance and is completely independent; namely, even if the memory space of the first storage space is insufficient, the second storage space is not occupied.
In the embodiment of the present application, if the remaining capacity of the first storage space is smaller than the first preset threshold, it indicates that the space of the first storage space is insufficient, and the system file cannot be created, so that the computer cannot be started. At this point, a special boot mode is initiated. Under the special starting mode, the bin service can close the main starting process, and the breakdown of the electronic equipment caused by normal starting is avoided.
Then, the system data for booting in the first storage space is copied to the second storage space, which may be implemented as steps a 1-A3:
step A1: creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory.
In the embodiment of the present application, mount means to mount a device (usually a storage device) to an existing directory (this directory may not be empty, but the previous content under this directory after mount will not be available.) it should be understood that the linux operating system considers all devices as files, and it integrates the resources of the whole computer into a large file directory. To access a file in a storage device, the partition in which the file is located must be mounted to an existing directory, and the storage device is then accessed by accessing the directory.
Therefore, in order to copy the system data for booting in the first storage space to the second storage space, a temporary directory needs to be created in the electronic device, and then the second storage space is mounted under the temporary directory, for example: a temporary directory, such as/mnt/tmpsysem, is created in the device by the bin service and then the second memory space is mounted under/mnt/tmpsysem/this directory by the mount method. The/mnt is mainly used as a mount point, and generally includes a mount point of a file system mounted after the system is booted. The/tmpsysem is a storage directory for generating temporary files by a system, and each user can read and write the temporary files. In this way, the second storage space can be used.
Step A2: and copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory.
After the second storage space is mounted, system data used for starting up in the first storage space can be copied to the second storage space, and specifically, key files in a key directory used for starting up in the first storage space are copied to the created temporary directory according to the original directory structure.
It should be noted that before copying the data, it is necessary to detect whether the data exists in the second storage space, and if so, delete the existing data. The method can be specifically implemented as follows: and if the system data exist in the second storage space, emptying the system data in the second storage space.
The second storage space is only used for storing the boot system files during special boot, so that the files in the second storage space are the system data which are copied during the last special boot and are used for booting.
Therefore, the second storage space can not be occupied, and the computer can be normally started.
In the embodiment of the application, some files occupying a large space may exist in the userdata space, but because the files originally used by the Android system are not particularly large, the files occupying a large space exist, and are definitely some abnormal files or non-system-level temporary files, and the files do not need to be copied to a temporary directory. Specifically, system data occupying a space smaller than a second preset threshold value is determined from the first storage space as system data for starting up; copying the determined system data in the first storage space to the second storage space. In this way, less data can be moved to the second storage space, and there is still room after all files are copied to the second storage space.
Step A3: and unloading the temporary directory and mounting the second storage space under the system directory.
After copying the system data to the second storage space, the system data in the second storage space may be used to boot, but since the boot is performed according to the file in the system directory, the second storage space needs to be unloaded from the temporary directory and mounted to the system directory. Therefore, the computer can be started through the system data in the second storage space.
S303: and starting the system data running in the second storage space through the main starting process.
After the second storage space is mounted to the system directory, the main boot program can be restarted to boot. Therefore, after receiving the starting-up command, the residual capacity of the first storage space is detected, if the space is insufficient, the starting-up system data is copied into the second storage space, and the starting-up is carried out according to the starting-up system data stored in the second storage space. Therefore, even if the storage space for storing the system file is occupied, the system can still be started, so that the system stability is improved, and the loss of user data is avoided.
FIG. 4 is a flowchart of the special boot mode. After the special starting mode is started, whether the userdata space is insufficient or not is judged, and if the userdata space is sufficient, the special starting mode is ended; if the userdata space is insufficient, starting the main process of the computer, creating a temporary directory, mounting the second storage space to the temporary directory, emptying data files in the temporary directory, copying key files in the userdata space to the temporary directory, unloading and mounting the second storage space from the temporary directory to a system directory, and finally restarting the main process of the computer. Therefore, even if the storage space for storing the system file is occupied, the system can still be started, so that the system stability is improved, and the loss of user data is avoided.
In the embodiment of the present application, since the first storage space is still insufficient at the beginning of the special boot mode, a prompt needs to be provided to the user after booting, so that the user deletes some files to make the first storage space sufficient, and specifically, mark information can be created in the second storage space after copying system data for booting to the second storage space; and detecting the marking information after starting up, and if the marking information exists in the second storage space, displaying prompt information for cleaning the memory on a display interface.
As shown in fig. 5, it is a diagram of prompt information. Upon detecting the presence of the marker information, the user may be notified in the form of a prompt box.
And after the user clears the memory, the mobile phone can be restarted, and at the moment, after the fact that the space of the first storage space is sufficient is detected, the second storage space is unloaded from the system directory.
Certainly, the user may not restart the mobile phone after cleaning the memory, at this time, the system file generated by the user operation may be stored in the second storage space, and when the mobile phone is restarted next time, the system file generated in the second storage space may be copied to the first storage space, and the second storage space may be unloaded from the system directory.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an electronic device to perform the above method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiment of the present application further provides a computer program product, which when running on an electronic device, enables the electronic device to execute any one of the above methods for determining interaction information in the embodiment of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the appended claims.

Claims (10)

1. An electronic device based on an android system, the electronic device comprising: a processor and a memory;
the processor is used for detecting the residual capacity of the first storage space after receiving the starting instruction; if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space; starting the system data running in the second storage space through a starting main process;
the memory includes the first storage space and the second storage space, wherein the second storage space is smaller than the first storage space.
2. The electronic device of claim 1, wherein the processor is configured to:
creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory;
copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory;
and unloading the temporary directory and mounting the second storage space under the system directory.
3. The electronic device of claim 2, wherein the processor is configured to:
if the system data exists in the second storage space, emptying the system data in the second storage space;
and copying system data for starting up in the system catalog in the first storage space to the second storage space under the emptied temporary catalog.
4. The electronic device of claim 2, wherein the processor is configured to:
creating tag information in the second storage space;
after the system data running in the second storage space is started through a main starting process, if the mark information exists in the second storage space, prompt information for cleaning the memory is displayed on a display interface.
5. The electronic device of any of claims 1-4, wherein the processor is configured to:
determining system data occupying less than a second preset threshold from the first storage space as system data for starting up;
copying the determined system data in the first storage space to the second storage space.
6. An electronic device starting method based on an android system is characterized by comprising the following steps:
after receiving a starting-up instruction, detecting the residual capacity of the first storage space;
if the residual capacity of the first storage space is smaller than a first preset threshold value, closing the starting main process, and copying system data for starting in the first storage space to a second storage space; wherein the second storage space is independent of the first storage space;
and starting the system data running in the second storage space through the main starting process.
7. The method of claim 6, wherein copying system data for booting in the first storage space to a second storage space comprises:
creating a temporary directory in the electronic equipment, and mounting the second storage space under the temporary directory;
copying system data for starting up in a system directory in the first storage space into the second storage space under the temporary directory;
and unloading the temporary directory and mounting the second storage space under the system directory.
8. The method of claim 7, wherein before copying the system data for booting in the system directory in the first storage space into the second storage space under the temporary directory, the method further comprises:
and if the system data exist in the second storage space, emptying the system data in the second storage space.
9. The method of claim 7, wherein after copying the system data for booting in the system directory in the first storage space into the second storage space under the temporary directory, the method further comprises:
creating tag information in the second storage space;
after the system data running in the second storage space through the boot main process is booted, the method further includes:
and if the mark information exists in the second storage space, displaying prompt information for cleaning the memory on a display interface.
10. The method according to any one of claims 6 to 9, wherein the copying the system data for booting in the first storage space to the second storage space comprises:
determining system data occupying less than a second preset threshold from the first storage space as system data for starting up;
copying the determined system data in the first storage space to the second storage space.
CN202010479840.6A 2020-05-29 2020-05-29 Electronic equipment starting method based on android system, electronic equipment and storage medium Pending CN113741980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010479840.6A CN113741980A (en) 2020-05-29 2020-05-29 Electronic equipment starting method based on android system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010479840.6A CN113741980A (en) 2020-05-29 2020-05-29 Electronic equipment starting method based on android system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113741980A true CN113741980A (en) 2021-12-03

Family

ID=78725115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010479840.6A Pending CN113741980A (en) 2020-05-29 2020-05-29 Electronic equipment starting method based on android system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113741980A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722444A (en) * 2012-05-23 2012-10-10 北京百纳威尔科技有限公司 Method and device for extending internal storage space and terminal
CN103077122A (en) * 2013-01-14 2013-05-01 华为终端有限公司 Management method of internal storage space of mobile terminal and mobile terminal
CN104102498A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Mobile terminal and booting method thereof
CN105320621A (en) * 2014-08-04 2016-02-10 株式会社东芝 Memory system and information processing device
CN109101363A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 Abnormal restoring method, device, smart machine and storage medium based on android system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722444A (en) * 2012-05-23 2012-10-10 北京百纳威尔科技有限公司 Method and device for extending internal storage space and terminal
CN103077122A (en) * 2013-01-14 2013-05-01 华为终端有限公司 Management method of internal storage space of mobile terminal and mobile terminal
CN104102498A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Mobile terminal and booting method thereof
CN105320621A (en) * 2014-08-04 2016-02-10 株式会社东芝 Memory system and information processing device
CN109101363A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 Abnormal restoring method, device, smart machine and storage medium based on android system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张恒杰 等: "《Red Hat Enterprise Linux服务器配置与管理》", 31 August 2011, 北京:冶金工业出版社, pages: 87 *

Similar Documents

Publication Publication Date Title
JP6072362B2 (en) Application program processing method, apparatus, program, and storage medium
WO2016090902A1 (en) Hot-handover method and device for operating systems, and mobile terminal
RU2641257C2 (en) Device management method and device
CN109522147A (en) A kind of method, apparatus, storage medium and the terminal of record booting exception information
CN111258921B (en) Garbage memory recycling method and device, electronic equipment and storage medium
CN101494729A (en) Information processing apparatus and method
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
CN115328563B (en) System starting method and electronic equipment
JPWO2007119550A1 (en) System management device
CN108459882B (en) Electronic device and control method thereof
CN111061550A (en) Task processing method, device, equipment and storage medium
EP3327565A1 (en) Method and equipment for running a file
CN109684123B (en) Problem resource positioning method, device, terminal and storage medium
CN111158735B (en) Hot patch file processing method and communication terminal
CN107153621B (en) Equipment identification method and device
CN113741980A (en) Electronic equipment starting method based on android system, electronic equipment and storage medium
CN108132817B (en) Object management method and device
CN114860242A (en) Compiling method, compiling device and storage medium
KR100274146B1 (en) Multimedia service control unit and method using computer
CN112214254A (en) Method and device for accelerating starting of application program and electronic equipment
CN114138343A (en) Terminal and terminal starting method
CN111290672A (en) Image display method and device, storage medium and terminal
CN112667474B (en) Data monitoring method and device, electronic equipment and storage medium
CN112241353B (en) Method, device, terminal and storage medium for checking running state

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