CN102664929A - Mobile terminal and method for managing mass storage device - Google Patents
Mobile terminal and method for managing mass storage device Download PDFInfo
- Publication number
- CN102664929A CN102664929A CN2012100969228A CN201210096922A CN102664929A CN 102664929 A CN102664929 A CN 102664929A CN 2012100969228 A CN2012100969228 A CN 2012100969228A CN 201210096922 A CN201210096922 A CN 201210096922A CN 102664929 A CN102664929 A CN 102664929A
- Authority
- CN
- China
- Prior art keywords
- vold
- carry
- module
- service
- logical partition
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to a mobile terminal and a method for managing a mass storage device. The mobile terminal includes a VOLD module and a mounting service module. The VOLD module includes an event monitoring service submodule used for judging whether identities of a physical partition and a logical partition of an event are matched or not. If the identities are matched, a corresponding logical partition object state is modified, and a message is sent to the mounting service module. After the mounting service module receives the message, an equipment state is analyzed, and whether a mount directory is an SD card or not is judged. If the mount directory is the SD card, a package updating service is called, installation package information is updated, a scan storage device message is sent, and a scanning process is started. According to the invention, an EMMC card or other flash memories can be classified into internal mass storage, hardware cost is saved, and while system storage capacity is raised, the compatible with an original system can be maintained.
Description
Technical field
The present invention relates to field of mobile communication, relate in particular to the method for a kind of portable terminal and managing mass memory device thereof.
Background technology
Smart mobile phone has become current main flow mobile phone; The share of Android smart mobile phone on market constantly enlarges; People have also had new demand to the memory capacity of smart mobile phone; Android reaches the following operation system of smart phone of Android4.0 and only supports a SD card mass-memory unit on the whole more than 2.2 at present, and does not support a plurality of mass-memory units.
Therefore, must improve existing Android smart mobile phone.
Summary of the invention
The object of the present invention is to provide the method for a kind of portable terminal and managing mass memory device thereof, be used for supporting simultaneously a plurality of mass-memory units.
A kind of portable terminal comprises VOLD module and carry service module, and whether the VOLD module comprises action listener service submodule, be used for the Physical Extents of decision event and the sign of logical partition and mate; If coupling is revised corresponding logical partition Obj State, concurrent message is given the carry service module; The carry service module is resolved equipment state after receiving message, judges whether mount directory is the SD card; If be the SD card, then call the bag update service, the update contruction package informatin sends scanning memory device message, starts scan procedure.
Further, above-mentioned VOLD module also comprises: logical partition management object instance submodule is used for logical partition is managed and operated; Order eavesdropping target instance submodule is used for monitoring reception carry service module to the logical partition operational order, and calling logic partition management object instance module is operated equipment, and the return result; Network connection management object instance submodule is used to monitor the Action Events to memory device, and Action Events is sent to the carry service module; Logical partition object chained list submodule reads configuration file and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
Further, above-mentioned network connection management object instance submodule also is used to start sockets services and connects, and sets up long the connection with the carry service module; Whether order eavesdropping target instance submodule also is used for monitoring and receives orders, if receive orders, then analyzes order, and calling logic partition management object instance submodule, equipment is carried out carry, unloading, format manipulation, and return result.
Further, above-mentioned portable terminal also comprises and creates action listener service submodule, is used for: the incident of the operation store equipment that the monitoring kernel sends; Whether mate in judgment device path and subregion path; If coupling is created the Physical Extents equipment that supplies the VOLD management.
Further, above-mentioned carry service module also is used for initiatively connecting the VOLD module, obtains the list of devices state of VOLD module, if equipment exists and carry not, then sends carry and orders the module to VOLD, accomplishes the carry of equipment.
The present invention also provides a kind of method of mobile terminal administration mass-memory unit, comprising: whether the Physical Extents of action listener service decision event and the sign of logical partition mate; If coupling is revised corresponding logical partition Obj State, concurrent message is to the carry service; The carry service is resolved equipment state after receiving message, judges whether mount directory is the SD card; If be the SD card, then call the bag update service, the update contruction package informatin sends scanning memory device message, starts scan procedure.
Further, the method for above-mentioned mobile terminal administration mass-memory unit also comprises: VOLD starts; VOLD creates logical partition management object instance, is used for logical partition is managed and operated; VOLD creates order eavesdropping target instance, is used for the service of monitoring reception carry to the logical partition operational order, and calling logic partition management object instance is operated equipment, and the return result;
VOLD creates the network connection management object instance, is used to monitor the Action Events to memory device, and Action Events is sent to the carry service; VOLD reads configuration file and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
Further, the method for above-mentioned mobile terminal administration mass-memory unit also comprises: the network connection management object instance starts sockets services and connects, and sets up long the connection with the carry service; Whether order eavesdropping target instance is monitored and is received orders, if receive orders, then analyzes order, and calling logic partition management object instance, memory device is carried out carry, unloading, format manipulation, and return result.
Further, the method for above-mentioned mobile terminal administration mass-memory unit also comprises: create the action listener service; Listen to the incident of the operation store equipment that kernel sends; Whether mate in judgment device path and subregion path; If coupling is created the Physical Extents equipment that supplies the VOLD management.
Further, the method for above-mentioned mobile terminal administration mass-memory unit also comprises: the carry service starts; And initiatively connect the VOLD module, obtain the list of devices state of VOLD module, if equipment exists and carry not; Then send carry and order module, accomplish the carry of equipment to VOLD; Application program is directly called carry services interface, and equipment is operated.
The present invention can be divided into inner big capacity storage to EMMC card or other flash memory, has practiced thrift hardware cost, when improving system memory size, can also keep the compatibility with original system.
Description of drawings
In order to be easy to explanation, the present invention is done to describe in detail by following preferred embodiment and accompanying drawing.
Fig. 1 is the memory device mount directory structure chart of existing Android smart mobile phone;
Fig. 2 improves storage carry structure chart for the present invention;
Shown in Figure 3 for the structural representation of portable terminal of the present invention;
Shown in Figure 4 is the flow chart of the method for mobile terminal administration mass-memory unit;
Shown in Figure 5 is the particular flow sheet of step 401;
Shown in Figure 6 is the particular flow sheet of step 402.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, hereinafter will combine accompanying drawing that embodiments of the invention are elaborated.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Fig. 1 is the memory device mount directory structure chart of existing Android smart mobile phone.
Existing Android smart mobile phone has only an outside mass-memory unit, and this mass-memory unit is the SD card shown in the figure, and the mount directory of this SD card is :/mnt/sdcard.Music, picture, multimedia files such as video can only be kept in the SD card of this outside, and in addition, application program can be installed in internal memory and this outside SD card, so memory capacity is limited.
Fig. 2 improves storage carry structure chart for the present invention.
The outside SD card mount directory of Fig. 1, offer the EMMC card and use among Fig. 2, in other words, be mounted to catalogue to the EMMC card :/mnt/sdcard.And outside SD card and USB flash disk just have been mounted under the subdirectory of EMMC card, that is: outside SD card is mounted to catalogue/mnt/sdcard/extmal_sd, and USB flash disk is mounted to catalogue :/mnt/sdcard/udisk.Not only guaranteed the compatibility with original system, made the music of Android, picture library; Video, multimedia application need not be changed, and can also scan the multimedia file of outside SD card and USB flash disk; Camera, recorder etc. need not be changed and just can preserve photo or recording, and video file all has been saved in the internal storage; Rather than the original SD card that is saved in is medium, has guaranteed that the Android related application is changed to minimize.This carry structure makes installation application software to outside SD card, become to be installed on the EMMC card, but EMMC card Capacity Ratio is bigger, is again inner card, so the speed of service also can be optimized, and does not influence performance.
Need make amendment at the USB of kernel drive part for USB flash disk the present invention, those of ordinary skill in the art can make modification according to actual conditions, and the present invention repeats no more at this.
Shown in Figure 3 for the structural representation of portable terminal of the present invention;
Portable terminal of the present invention comprises VOLD (Volume Daemon, VOLD) module and carry service (Mountservice) module.
The VOLD module functions is to realize communicating by letter with kernel data, and with the data communication of carry service module, receive operational order, realization is to the management of memory device.VOLD module of the present invention can realize the carry to the specified partition of particular device, avoids the drawback that existing Android smart mobile phone can not the carry specified partition.
The VOLD module comprises action listener service submodule, and whether the sign (mPartIdx) that is used for the Physical Extents and the logical partition of decision event matees; If coupling is revised corresponding logical partition Obj State, concurrent message is given the carry service module.
The carry service module is resolved equipment state after being used to receive message, judges whether mount directory is the SD card; If be the SD card, then call the bag update service, the update contruction package informatin sends scanning memory device message, starts scan procedure.
The VOLD module also comprises: logical partition management object instance submodule is used for logical partition is managed and operated; Order eavesdropping target instance submodule is used for monitoring reception carry service module to the logical partition operational order, and calling logic partition management object instance module is operated equipment, and the return result; Network connection management object instance submodule is used to monitor the Action Events to memory device, and Action Events is sent to the carry service module; Logical partition object chained list submodule reads configuration file (vold.fstab) and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
Network connection management object instance submodule also is used to start sockets services and connects, and sets up long the connection with the carry service module; Whether order eavesdropping target instance submodule also is used for monitoring and receives orders, if receive orders, then analyzes order, and calling logic partition management object instance submodule, equipment is carried out carry, unloading, format manipulation, and return result.
Portable terminal also comprises creates action listener service submodule, is used to monitor the incident of the operation store equipment that kernel sends; Whether mate in judgment device path and subregion path; If coupling is created the Physical Extents equipment that supplies the VOLD management.
The present invention is through revising the mountservice.java file of carry service module; Original carry service module is only supported a SD card apparatus; Be modified as so long as the equipment in configuration file (vold.fstab) is all supported; Promptly support the EMMC card simultaneously, SD card, USB flash disk according to bibliographic structure shown in Figure 2.
The carry service module also is used for initiatively connecting the VOLD module, obtains the list of devices state of VOLD module, if equipment exists and carry not, then sends carry and orders the module to VOLD, accomplishes the carry of equipment.
Shown in Figure 4 is the flow chart of the method for mobile terminal administration mass-memory unit.
The method of mobile terminal administration mass-memory unit of the present invention comprises:
Step 401, whether the Physical Extents of action listener service decision event and the sign (mPartIdx) of logical partition mate; If coupling is revised corresponding logical partition Obj State, concurrent message is to the carry service;
Wherein, also comprise before the step 401: VOLD starts; VOLD creates logical partition management object instance, is used for logical partition is managed and operated; VOLD creates order eavesdropping target instance, is used for the service of monitoring reception carry to the logical partition operational order, and calling logic partition management object instance is operated equipment, and the return result; VOLD creates the network connection management object instance, is used to monitor the Action Events to memory device, and Action Events is sent to the carry service; VOLD reads configuration file (vold.fstab) and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
Wherein above-mentioned VOLD creates order eavesdropping target instance; Be used for the service of monitoring reception carry to the logical partition operational order; Calling logic partition management object instance is operated equipment; And return result's step specifically comprises: the network connection management object instance starts sockets services and connects, and sets up long the connection with the carry service; Whether order eavesdropping target instance is monitored and is received orders, if receive orders, then analyzes order, and calling logic partition management object instance, memory device is carried out carry, unloading, format manipulation, and return result.
Shown in Figure 5 is the particular flow sheet of step 401.
Shown in Figure 6 is the particular flow sheet of step 402.
The present invention can be divided into inner big capacity storage to EMMC card or other flash memory, has practiced thrift hardware cost, when improving system memory size, can also keep the compatibility with original system.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a portable terminal comprises VOLD module and carry service module, it is characterized in that:
Whether the VOLD module comprises action listener service submodule, be used for the Physical Extents of decision event and the sign of logical partition and mate; If coupling is revised corresponding logical partition Obj State, concurrent message is given the carry service module;
The carry service module is resolved equipment state after receiving message, judges whether mount directory is the SD card; If be the SD card, then call the bag update service, the update contruction package informatin sends scanning memory device message, starts scan procedure.
2. portable terminal as claimed in claim 1 is characterized in that, the VOLD module also comprises:
Logical partition management object instance submodule is used for logical partition is managed and operated;
Order eavesdropping target instance submodule is used for monitoring reception carry service module to the logical partition operational order, and calling logic partition management object instance module is operated equipment, and the return result;
Network connection management object instance submodule is used to monitor the Action Events to memory device, and Action Events is sent to the carry service module;
Logical partition object chained list submodule reads configuration file and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
3. portable terminal as claimed in claim 2 is characterized in that:
Network connection management object instance submodule also is used to start sockets services and connects, and sets up long the connection with the carry service module;
Whether order eavesdropping target instance submodule also is used for monitoring and receives orders, if receive orders, then analyzes order, and calling logic partition management object instance submodule, equipment is carried out carry, unloading, format manipulation, and return result.
4. portable terminal as claimed in claim 3 is characterized in that, also comprises creating action listener service submodule, is used for:
The incident of the operation store equipment that the monitoring kernel sends;
Whether mate in judgment device path and subregion path;
If coupling is created the Physical Extents equipment that supplies the VOLD management.
5. portable terminal as claimed in claim 4 is characterized in that, the carry service module also is used for initiatively connecting the VOLD module; Obtain the list of devices state of VOLD module; If equipment exists and carry not, then send carry and order module to VOLD, accomplish the carry of equipment.
6. the method for a mobile terminal administration mass-memory unit is characterized in that, comprising:
Whether the Physical Extents of action listener service decision event and the sign of logical partition mate; If coupling is revised corresponding logical partition Obj State, concurrent message is to the carry service;
The carry service is resolved equipment state after receiving message, judges whether mount directory is the SD card;
If be the SD card, then call the bag update service, the update contruction package informatin sends scanning memory device message, starts scan procedure.
7. the method for mobile terminal administration mass-memory unit as claimed in claim 6 is characterized in that, also comprises:
VOLD starts;
VOLD creates logical partition management object instance, is used for logical partition is managed and operated;
VOLD creates order eavesdropping target instance, is used for the service of monitoring reception carry to the logical partition operational order, and calling logic partition management object instance is operated equipment, and the return result;
VOLD creates the network connection management object instance, is used to monitor the Action Events to memory device, and Action Events is sent to the carry service;
VOLD reads configuration file and creates logical partition object chained list, and correlation logic partition management object is to operate logical partition.
8. the method for mobile terminal administration mass-memory unit as claimed in claim 7 is characterized in that, also comprises:
The network connection management object instance starts sockets services and connects, and sets up long the connection with the carry service;
Whether order eavesdropping target instance is monitored and is received orders, if receive orders, then analyzes order, and calling logic partition management object instance, memory device is carried out carry, unloading, format manipulation, and return result.
9. the method for mobile terminal administration mass-memory unit as claimed in claim 8 is characterized in that, also comprises:
The service of establishment action listener;
Listen to the incident of the operation store equipment that kernel sends;
Whether mate in judgment device path and subregion path;
If coupling is created the Physical Extents equipment that supplies the VOLD management.
10. the method for mobile terminal administration mass-memory unit as claimed in claim 9 is characterized in that, also comprises:
The carry service starts, and initiatively connects the VOLD module, obtains the list of devices state of VOLD module, if equipment exists and carry not, then sends carry and orders the module to VOLD, the carry of completion equipment; Application program is directly called carry services interface, and equipment is operated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100969228A CN102664929A (en) | 2012-04-05 | 2012-04-05 | Mobile terminal and method for managing mass storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100969228A CN102664929A (en) | 2012-04-05 | 2012-04-05 | Mobile terminal and method for managing mass storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102664929A true CN102664929A (en) | 2012-09-12 |
Family
ID=46774338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100969228A Pending CN102664929A (en) | 2012-04-05 | 2012-04-05 | Mobile terminal and method for managing mass storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102664929A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150516A (en) * | 2013-03-01 | 2013-06-12 | 中科创达软件股份有限公司 | Method and device for enabling Android system equipment to enter temporary mode |
CN105100901A (en) * | 2014-05-08 | 2015-11-25 | Tcl集团股份有限公司 | Virtual storage card configuration method and system |
CN105892940A (en) * | 2016-03-29 | 2016-08-24 | 四川秘无痕信息安全技术有限责任公司 | Method for acquiring mobile phone partition mounting information on basis of Android platform |
CN108833669A (en) * | 2018-04-27 | 2018-11-16 | Oppo广东移动通信有限公司 | Closedown method and Related product |
CN109542676A (en) * | 2018-10-26 | 2019-03-29 | 歌尔科技有限公司 | Method, apparatus, equipment and the storage medium of factory reset |
CN113412480A (en) * | 2019-05-05 | 2021-09-17 | 深圳市欢太科技有限公司 | Mounting processing method and device, electronic equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744040A (en) * | 2005-09-27 | 2006-03-08 | 胡元志 | Method for completely running operating system in multi storage media and its operating system |
CN101840314A (en) * | 2010-05-05 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method, device and server for expanding storage space of database |
CN101847101A (en) * | 2009-03-24 | 2010-09-29 | Tcl集团股份有限公司 | Method for automatically mounting USB storage device under embedded Linux |
WO2011127845A2 (en) * | 2011-05-04 | 2011-10-20 | 华为终端有限公司 | Method, system and terminal for system update between mobile communication terminals |
-
2012
- 2012-04-05 CN CN2012100969228A patent/CN102664929A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744040A (en) * | 2005-09-27 | 2006-03-08 | 胡元志 | Method for completely running operating system in multi storage media and its operating system |
CN101847101A (en) * | 2009-03-24 | 2010-09-29 | Tcl集团股份有限公司 | Method for automatically mounting USB storage device under embedded Linux |
CN101840314A (en) * | 2010-05-05 | 2010-09-22 | 北京星网锐捷网络技术有限公司 | Method, device and server for expanding storage space of database |
WO2011127845A2 (en) * | 2011-05-04 | 2011-10-20 | 华为终端有限公司 | Method, system and terminal for system update between mobile communication terminals |
Non-Patent Citations (2)
Title |
---|
百度文库: "android_双SD卡挂载", 《百度文库》, 5 January 2012 (2012-01-05) * |
百度文库: "android系统vold透析", 《百度文库》, 9 March 2011 (2011-03-09) * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150516A (en) * | 2013-03-01 | 2013-06-12 | 中科创达软件股份有限公司 | Method and device for enabling Android system equipment to enter temporary mode |
CN103150516B (en) * | 2013-03-01 | 2015-10-28 | 中科创达软件股份有限公司 | A kind of android system equipment enters method and the device of temporary mode |
CN105100901A (en) * | 2014-05-08 | 2015-11-25 | Tcl集团股份有限公司 | Virtual storage card configuration method and system |
CN105100901B (en) * | 2014-05-08 | 2018-07-13 | Tcl集团股份有限公司 | A kind of virtual memory card configuration method and system |
CN105892940A (en) * | 2016-03-29 | 2016-08-24 | 四川秘无痕信息安全技术有限责任公司 | Method for acquiring mobile phone partition mounting information on basis of Android platform |
CN108833669A (en) * | 2018-04-27 | 2018-11-16 | Oppo广东移动通信有限公司 | Closedown method and Related product |
CN109542676A (en) * | 2018-10-26 | 2019-03-29 | 歌尔科技有限公司 | Method, apparatus, equipment and the storage medium of factory reset |
CN113412480A (en) * | 2019-05-05 | 2021-09-17 | 深圳市欢太科技有限公司 | Mounting processing method and device, electronic equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2634697B1 (en) | Mobile terminal and controlling method thereof | |
CN111338854B (en) | Kubernetes cluster-based method and system for quickly recovering data | |
US8448187B2 (en) | Conflict resolution apparatus | |
KR101434293B1 (en) | System, method, and apparatus for providing telephony and digital media services | |
US7899959B2 (en) | Method of loading software in mobile and desktop environments | |
CN102664929A (en) | Mobile terminal and method for managing mass storage device | |
US20100093396A1 (en) | Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device | |
CN102196021A (en) | System for remotely erasing data, method, server, and mobile device thereof | |
CN102521031A (en) | Management method of preset application programs of mobile terminal and mobile terminal | |
CN102308561A (en) | ME network parameters configuration by UICC | |
CN103049287A (en) | Mobile terminal and method for installing application programs of mobile terminal | |
CN102571940A (en) | Remote application installation system, method, intelligent terminal and application server | |
CN110865837B (en) | Method and terminal for system upgrade | |
CN103716346A (en) | Management method and device of application on android handset client | |
US20230054451A1 (en) | Communication Connection Method and Electronic Device | |
WO2009091117A2 (en) | Mobile terminal, associated storage devices and methods of using the same | |
WO2018018735A1 (en) | Method and device for switching customization versions, and mobile terminal | |
WO2018082289A1 (en) | Method and device for managing application and computer storage medium | |
CN107506496B (en) | Defragmentation method, defragmentation device and computer-readable storage medium | |
KR101203741B1 (en) | System and method for widget service based on smart card, and smart card applied to the same | |
CN114253558A (en) | Method and device for installing patch package | |
WO2023066246A1 (en) | Method and system for installing application on cloudphone, and client cloudphone | |
CN103873631A (en) | Method and device for displaying call interface of mobile terminal | |
CN110730197A (en) | Service discovery method and system | |
CN114090127A (en) | Electronic device, loading method and medium of configuration file of electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120912 |