Method and device for mounting memory card and mobile terminal

A storage card and mounting technology, applied in the storage field, can solve problems such as long-time interaction, unprocessable commands, unresponsive system or black screen, etc., and achieve the effect of avoiding system unresponsiveness

CN106528158AActive Publication Date: 2017-03-22GUANGDONG OPPO MOBILE TELECOMM CORP LTD
5 Cites 9 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2017-03-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and device for mounting a memory card and a mobile terminal. The method comprises the steps of setting a mark bit in a disk loading service program and recording related information of the memory card when identifying the memory card in a startup process; and after receiving a startup broadcast for indicating startup completion, executing the operation of mounting the memory card according to the mark bit and the related information. According to the method and the device, the abnormal conditions of no response, a blank screen and the like of the system caused by mounting of the memory in the startup process are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] Embodiments of the present invention relate to storage technology, and in particular to a method, device and mobile terminal for mounting a memory card. Background technique

[0002] Memory card, also known as SD card, is an independent storage medium used in mobile phones, digital cameras, portable computers, MP3 and other digital products. It has excellent characteristics such as small size, fast data transmission speed, and hot-swappable.

[0003] When the memory card is inserted into the mobile terminal, the storage daemon (Volume Daemon, vold) will interact with the disk loading service program (mountservice) to mount the memory card. During the interaction process, if there is a link stuck , it will cause the following commands to not be processed. The interaction between the disk loading service program and the storage daemon process takes a long time during the boot process, which may easily lead to system abnormalities such as unresponsive sy...

Examples

Embodiment 1

[0022] figure 1 It is a flow chart of a method for mounting a memory card provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of mounting a memory card during the boot process, and the method can be executed by a device for mounting a memory card. The device can be realized by means of software and / or hardware, and the device can be configured in mobile terminals such as mobile phones, tablet computers or digital cameras. The method specifically includes the following steps:

[0023] Step 110, when the memory card is recognized during the boot process, set a flag in the disk loading service program, and record the relevant information of the memory card.

[0024] Among them, the disk loading service program provides storage-related functions, such as mounting, unmounting, and formatting volumes, activating the USB mass storage mode, monitoring changes in the state of the memory card and mass storage mode, and the like. As the control ...

Embodiment 2

[0032] figure 2 It is a flow chart of a method for mounting a memory card provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments, and "according to the flag bit and the related information, execute the mount The operation of the memory card is further optimized as "when the memory card is identified according to the flag bit and the relevant information, the file detection system is started to detect the memory card and repair the damaged memory card; when the When the running time of the file detection system reaches the preset time, close the file detection system”.

[0033] In the prior art, when a mobile terminal detects that a memory card is inserted, it will detect and repair the memory card through a file system check (fsck), and some damaged memory cards can be repaired successfully after being repaired by the file system check. Some cannot be repaired successfully. For memory cards that cannot be succes...

Embodiment 3

[0048] image 3 It is a flow chart of a method for mounting a memory card provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments, and "when the running time of the file detection system reaches the preset time , turn off the file detection system" is further optimized as "while starting the file detection system, start the timer whose timing time is the preset time; when the timing time of the timer reaches the preset time, turn off The document detection system". The method specifically includes the following steps:

[0049] Step 310, when the memory card is recognized during the boot process, set a flag in the disk loading service program, and record the relevant information of the memory card.

[0050] Step 320, after receiving the start-up broadcast indicating that the start-up is completed, when the memory card is identified according to the flag bit and the related information, the start-up file detection s...