Method for mounting multi-partition storage device in Android system

A storage device and Android system technology, applied in the direction of program control design, input/output to record carrier, special data processing application, etc., can solve the problem that the default Android strategy cannot support multi-partition storage devices, etc.

Inactive Publication Date: 2015-03-04
SHANGHAI INFOTM MICROELECTRONICS
View PDF3 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The daemon process of vold will process uevents related to storage devices sent by the kernel, but it will only process the storage blocks written in the fstab file. That is to say, if several storage devices are configured in fstab, then vold only supports a few corresponding Mounting of storage devices
If the storage device has multiple partitions, the partition information is obviously not in the fstab list, so the Android default policy cannot support multi-partition storage devices
figure 2 It is the default processing flow of Android in the prior art. According to this flow, only one partition of the storage device can be mounted

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for mounting multi-partition storage device in Android system
  • Method for mounting multi-partition storage device in Android system
  • Method for mounting multi-partition storage device in Android system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0025] image 3 The invention discloses a method for mounting a multi-partition storage device on an Android system. The implementation method of the present invention based on Android system is as follows:

[0026] In vold in the storage daemon process, since Android reads the fstab storage device list by default, it does not process storage devices that are not in this list, so these events need to be processed after receiving uevent.

[0027] In system / vold / VolumeManager.cpp of the Android source code.

[0028] Add the processing of these events in the VolumeManger receiving event processing function. The specific location of adding code is in the handleBlockEvent function of VolumeManager.

[0029] VolumeManager::handleBlockEvent(evt) {

[0030] for(it=mVolumes->begin();it!=mVolumes->end();++it) {

[0031] …

[0032] hit = true;

[0033] break;

[0034]}

[0035] if (!hit) { / / Do not store device node information in the mVolume list,

[0036] ... / / Follow-up processin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for mounting a storage device in the Android system, and in particular relates to a method for mounting a multi-partition storage device in the Android system. The method comprises the steps of 1, sending an event containing all node information through an inner core when inserting and drawing an external storage device; 2, determining that the local storage daemon process monitors the event from the inner core and whether the node information in the event is included into a known lift of the Android; if so, enabling upper mounting to be performed, namely, updating the disk state, creating a thread to inform the local storage daemon process of implementing a specific mounting command, and mounting a partition only; if not so, enabling the local storage daemon process to work, adding to a list that can be processed, informing of performing the upper mounting, namely, receiving the information, adding the node information to a support list, and mounting the node; 3, finishing the mounting. With the adoption of the method, each partition can be successfully mounted for a user to use, and therefore, the waste of the disk space can be avoided.

Description

technical field [0001] The invention relates to a method for mounting a storage device on an Android system, in particular to a method for mounting a multi-partition storage device on an Android system. Background technique [0002] The Android default solution can only recognize the first logical partition of a multi-partition storage device, and the remaining partitions are unrecognizable. This will result in a waste of disk space. For example, some storage devices require partition management due to their large storage space, such as mobile hard disks, which are not recognized by users after they are inserted into Android devices, resulting in a waste of disk space. What users expect is more comprehensive file management. [0003] like figure 1 As shown, on the Android system, the management of hot-swappable storage devices is divided into these parts, kernel (kernel), vold (storage class daemon process), frameworks (application interface layer): [0004] 1. Kernel: I...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F17/30
CPCG06F9/4411G06F9/545
Inventor 葛晶波刘棨包乔晋王海波
Owner SHANGHAI INFOTM MICROELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products