CN105183517A - Method and device for mounting external storage equipment in recovery mode and electronic device - Google Patents

Method and device for mounting external storage equipment in recovery mode and electronic device Download PDF

Info

Publication number
CN105183517A
CN105183517A CN201510582961.2A CN201510582961A CN105183517A CN 105183517 A CN105183517 A CN 105183517A CN 201510582961 A CN201510582961 A CN 201510582961A CN 105183517 A CN105183517 A CN 105183517A
Authority
CN
China
Prior art keywords
subregion
external memory
carry
memory equipment
recovery pattern
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
CN201510582961.2A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510582961.2A priority Critical patent/CN105183517A/en
Publication of CN105183517A publication Critical patent/CN105183517A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method for mounting partitions of external storage equipment in a recovery mode. The method includes the steps that equipment information of the external storage equipment is read, wherein the equipment information comprises partition names; an equipment file is established according to the equipment information, wherein the equipment file comprises equipment nodes of the partitions, and the equipment nodes comprise the partition names; a catalogue of the partitions is generated according to the equipment file; the partitions are mounted according to the catalogue and the equipment file. The invention further provides a device for mounting the partitions of the external storage equipment in the recovery mode and an electronic device. According to the method and device for mounting the partitions of external storage equipment in the recovery mode and the electronic device, dynamic mounting can be achieved in the recovery mode, and therefore successful mounting can be achieved even though the partitions are not named according to protocols.

Description

The method of carry External memory equipment, device and electronic installation under recovery pattern
Technical field
Embodiments of the present invention relate to Android operation system, particularly a kind of method of carry External memory equipment under recovery pattern, device and electronic installation.
Background technology
Android operation system can carry out recovering and upgrading under recovery pattern.Along with the capacity of the External memory equipment using the electronic installation of Android operation system to adopt is increasing, now general upgrade file to be stored on External memory equipment, thus Android operation system need under recovery pattern the subregion of carry External memory equipment.But the process under recovery pattern is all fairly simple, such as, adopt the carry order of predetermined directory, in other words, the partition name of the subregion of the External memory equipment in carry order is fixing, therefore, requires that the subregion of External memory equipment is named according to agreement.But at present some External memory equipment subregion and not in accordance with agreement name, cause carry order cannot find the subregion of corresponding External memory equipment, carry failure.
Summary of the invention
Embodiments of the present invention are intended at least to solve one of technical matters existed in prior art.For this reason, embodiments of the present invention need the method for the subregion providing a kind of carry External memory equipment under recovery pattern, device and electronic installation.
The method of the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention comprises:
Read the facility information of described External memory equipment, described facility information comprises the partition name of described subregion;
According to described facility information apparatus for establishing file, described device file comprises the device node of described subregion, and described device node comprises described partition name;
The catalogue of described subregion is generated according to described device file; And
Subregion according to described catalogue and described device file carry.
The device of the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention comprises:
Kernel module, described kernel module is for reading the facility information of described External memory equipment, and described facility information comprises the partition name of described subregion;
Notification module, described notification module is used for according to described facility information apparatus for establishing file, and described device file comprises the device node of described subregion, and described device node comprises described partition name; And
Recover module, described recovery module be used for according to described device file generate described subregion catalogue and according to described catalogue and described device file carry subregion.
The electronic installation of embodiments of the present invention comprises the device of the subregion of above-mentioned carry External memory equipment under recovery pattern.
The method of the subregion of carry External memory equipment, device and the electronic installation under recovery pattern of embodiments of the present invention, can realize dynamic carry under recovery pattern, so, even if subregion is not according to agreement name, and still can successful carry.
The additional aspect of embodiments of the present invention and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by the practice of embodiments of the present invention.
Accompanying drawing explanation
Above-mentioned and/or the additional aspect of embodiments of the present invention and advantage will become obvious and easy understand from accompanying drawing below combining to the description of embodiment, wherein:
Fig. 1 is the schematic flow sheet of the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention.
Fig. 2 is the schematic diagram of the user interface of the electronic installation of embodiments of the present invention.
Fig. 3 is another schematic diagram of the user interface of the electronic installation of embodiments of the present invention.
Fig. 4 is the sub-process schematic diagram of the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention.
Fig. 5 is another schematic flow sheet of the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention.
Fig. 6 is the high-level schematic functional block diagram of the device of the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention.
Fig. 7 is the high-level schematic functional block diagram of the electronic installation of embodiments of the present invention.
Embodiment
Be described below in detail the embodiment of embodiments of the present invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining embodiments of the present invention, and the restriction to embodiments of the present invention can not being interpreted as.
Below in conjunction with accompanying drawing, the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention and device, electronic installation are described further.
Refer to Fig. 1, the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention comprises:
Step S1, read the facility information of External memory equipment, facility information comprises the partition name of subregion.
In present embodiment, under recovery pattern, the method for the subregion of carry External memory equipment can be applicable to the electronic installation adopting Android operation system.
In present embodiment, electronic installation can be mobile phone.
Certainly, electronic installation is not limited to present embodiment, and panel computer, Set Top Box, televisor and navigating instrument etc. can be adopted in other embodiments to adopt the electronic installation of Android operation system.
In present embodiment, External memory equipment can be TF card (Trans-flashCard, also known as MicroSDcard).
Certainly, External memory equipment is not limited to TF card, can be the External memory equipment such as USB flash disk (USBflashdisk, USB flash drive) or portable hard drive in other embodiments.
Be appreciated that External memory equipment is for the internal storage device of electronic installation.In present embodiment, electronic installation inside includes internal storage device, or is called fuselage internal memory or referred to as internal memory.
Internal storage device is that the manufacturer of electronic installation is directly incorporated in electronic installation inside.Internal storage device can comprise running memory and stored memory etc.
Running memory is used for load operation system (such as Android operation system) and various application program (Applications, Apps) when electronic installation runs.
Stored memory for storing the file of user, such as document, music, picture and video etc.
Therefore, in many occasions, External memory equipment is also extended memory, can expand to electronic installation by user after purchasing electronic installation.In present embodiment, electronic installation is mobile phone, and External memory equipment is TF card and is arranged in mobile phone.
In other embodiments, electronic installation can be mobile phone, and External memory equipment can be USB flash disk or portable hard drive and be connected with mobile phone by connection device.Electronic installation can also be Set Top Box, and external memory storage is TF card and is arranged in Set Top Box.
Electronic installation can also be Set Top Box, and External memory equipment can be USB flash disk or portable hard drive and be connected with Set Top Box by connection device.
In other other embodiments, External memory equipment may have multiple, and electronic installation can connect or install multiple External memory equipment in other words.
Such as, electronic installation is mobile phone, and External memory equipment comprises one or more TF card, USB flash disk or/and portable hard drive, mobile phone can be connected at the multiple TF card of installation or while the one or more TF card of installation with one or more USB flash disk or/and one or more portable hard drive.
Again such as, electronic installation is televisor, and External memory equipment comprises one or more TF card, USB flash disk or/and portable hard drive, televisor can be connected at the multiple TF card of installation or while the one or more TF card of installation with one or more USB flash disk or/and one or more portable hard drive.
External memory equipment can comprise (being divided into) multiple subregion, each subregion has corresponding partition name.
In the present embodiment, External memory equipment is TF card, and comprises a subregion (not carrying out subregion), and according to agreement called after mmcblk1p1.Wherein, mmc represents that subregion belongs to TF card, blk represents that subregion belongs to block device, represent that subregion belongs to External memory equipment (if 0 represents that subregion belongs to internal storage device for first 1, if 2 represent that subregion belongs to second External memory equipment, the like), p1 represents that subregion belongs to first subregion (if p2 then represents that subregion belongs to second subregion of External memory equipment, the like) of External memory equipment.
In other embodiments, External memory equipment can be divided into multiple subregion (n), and called after mmcblk1pn (n=1,2,3 successively ...).
In other embodiments, External memory equipment is multiple (m), and each External memory equipment is divided into multiple subregion (n), and these subregions are called after mmcblkmpn (m=1,2,3 successively N=1,2,3 ...).
In other embodiments, External memory equipment can also be USB flash disk and portable hard drive etc., and names according to agreement.
In like manner, internal storage device is divided into multiple subregion.Be such as:
System partitioning (System), for operational system and various Apps, partition name is mmcblk0p1;
Data partition (Data), for the service data etc. of storage system and various Apps, partition name is mmcblk0p2;
Cache partitions (Cache), the various data of user cache system and various Apps, partition name is mmcblk0p3; And
Partition holding (InternalSDcard), for being stored in the file of user, the data such as such as document, music, picture and video, partition name is mmcblk0p4.
Android operation system can be program code segments, and is stored on internal storage device.The processor (not shown) of calling in electronic installation when electronic installation starts is run, thus realize various predetermined object, effect or function with input and output (input/output, the I/O) devices communicating of electronic installation and control I/O equipment.
Android operation system will enter normal mode after electronic installation normally starts, and such as, by pressing or the long power key by mobile phone, mobile phone will be started shooting and entered the normal mode of Android operation system.And recovery pattern will be entered after specific operation startup is carried out to electronic installation 100, such as press or the long power key by mobile phone and volume key, mobile phone will be started shooting and entered the recovery pattern of Android operation system simultaneously.
Because normal mode is the pattern that user mainly uses, therefore in the normal mode, Android operation system by the various main process of startup, such as, starts kerenl process, uevent process, vold process and mountsevice process.
Recovery pattern is generally used for be recovered Android operation system and upgrades, such as factory reset, space download technology (Over-the-AirTechnology, OTA) upgrading, patch upgrading and firmware upgrade etc.
Because the occasion used is comparatively limited, therefore, recovery pattern is general all comparatively simple, and the process of startup is also less, such as, start kernel process, uevent process and recovery process.The order that each process adopts also may be comparatively simple, and the such as carry order of existing recovery process is to preset and the partition name of catalogue in carry order is fixing, and such as partition name is mmcblkp1.
This is because the general only compatible External memory equipment of current most electronic installation, and common External memory equipment is generally TF card, and TF card does not generally carry out subregion (only having a subregion).Therefore, for simplicity, during the subregion of existing recovery process carry External memory equipment, generally carry is carried out with the partition name mmcblk1p1 of acquiescence.
But, along with the progress of technology, Android operation system can compatible multiple External memory equipment, and type will be more and more abundanter, and be not limited to TF card, then have, along with the increase of External memory equipment capacity, carry out partition management to External memory equipment and become very meaningful, in the case, may there is multiple subregion and have multiple partition name in a TF card.
Therefore, the carry order of existing recovery process may need in the face of selecting, and need the partition name in carry device node to be also not limited to mmcblk1p1, default carry order will be no longer applicable.
In addition, such as, even if when the TF card of an only carry subregion, also may occur that the manufacturer of TF card not names according to agreement, order as mmcblk1p2, in the case, the carry order preset also will be no longer applicable.
Step S1 can be realized by kernel process, and kernel process belongs to the bottom process of Android operation system, for fetch equipment information.In present embodiment, facility information comprises:
ACTION: device action is such as add (increase), remove (deletion) or change (change) etc.
Which kind of equipment SUBSYSTEM: equipment read-write type, belong to, and mainly comprises block device (block) and character device has (character) etc.; Just as previously discussed, the subregion of External memory equipment is block device.
DEVPATH: device path, the subregion of External memory equipment is arranged in the path of system directory (/sys).
MAJOR: major device number, such as, the major device number of TF card is 179.
MINOR: secondary device number, such as, the subregion secondary device number of TF card is 0,1,10-13.Major device number and secondary device number can identify an equipment together.
DEVNAME: device name, such as, for distinguishing title mmcblk1p2.
DEVTYPE: device type, such as, have disk or partition.
PARTN: the number of partitions, such as, the External memory equipment number of partitions is 1.
Certainly, kernel process also reads the facility information of other equipment, is not limited to External memory equipment 200.Such as also read the facility information of internal storage device.
Refer to Fig. 1, the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention also comprises:
Step S2, according to facility information apparatus for establishing file, device file comprises the device node of subregion, and device node comprises partition name.
In present embodiment, step S2 can realize in uevent process.Uevent process belongs to the transition bed process of Android operation system, for kernel process communication, fetch equipment information also creates device file, and device file can be kept at running memory.Device file should comprise the device node of subregion, such as, be dev/block/mmcblk1p1, and wherein dev/block is the device node that indication equipment is relevant.
Just as above, kernel process not only for reading the facility information of External memory equipment, but reads the facility information of all I/O equipment.Therefore, the device file that uevent process is set up also not only comprises the device node of the subregion of External memory equipment.Under all I/O equipment device nodes are all kept at the device node of dev/block.
Such as, device node may be there is under device node dev/block:
The device node of the system partitioning (System) of dev/block/mmcblk0p1/ internal storage device;
The device node of the data partition (Data) of dev/block/mmcblk0p2/ internal storage device;
The device node of the cache partitions (Cache) of dev/block/mmcblk0p3/ internal storage device;
The device node of the partition holding (InternalSDcard) of dev/block/mmcblk0p4/ internal storage device; And
The device node of the subregion (MicroSDcard) of dev/block/mmcblk1p2/ External memory equipment.
The like.
In other words, in present embodiment, electronic installation only connects a TF card, but TF card does not press agreement called after mmcblk1p1 but called after mmcblk1p2, illustrates how android system realizes dynamic carry as example.
Refer to Fig. 1, the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention also comprises:
S3, generates the catalogue of subregion according to device file.
In present embodiment, step S3 can realize in recovery process.
Recovery process belongs to the application layer process of Android operation system.Kernel process and uevent process are run in electronic device initializing process, and recovery process is run after electronic device initializing completes.
Please refer to the drawing 2, after electronic device initializing completes, recovery process just shows various option of operation in user interface, the operation will carried out electronic installation is selected to allow user, such as, (Install) is installed, clears data/recovers and dispatch from the factory (Wipe), back up (Backup), reduce (Restore), carry (Mount), setting (Settings), senior (Advanced) and restart (Reboot) etc.
User can select carry (Mount) when needing carry to store the subregion of External memory equipment, and recovery process enters the carry page (please refer to the drawing 3) by according to user's operation on a user interface.
Refer to Fig. 4, the step S3 of embodiments of the present invention comprises:
Step S31, the carry page shows carry option.
Step S31 can be realized by recovery process.Carry option can comprise various electronic installation can the partition holding of carry, the system partitioning (System) of such as internal storage device, data partition (Data), cache partitions (Cache) and partition holding (InternalSDcard).Again such as, the subregion (MicroSDcard) of External memory equipment.
Be appreciated that carry option is set up according to device file, recovery process can the subregion of carry by fetch equipment file acquisition electronic installation in other words.
Such as, device file comprise each can the device node of subregion of carry.Recovery process generates corresponding carry option after reading on the carry page.Such as after reading device node dev/blokc/mmcblk0p1, on the carry page, correspondence generates the carry option of System, and after reading device node dev/block/mmcblk1p2, on the carry page, correspondence generates the carry option of MicroSDcard.
Should illustrate, carry option, than device node tool elephant more, is more easily easily absorbed on a cognitive level by the user, and therefore, the conversion between device node and carry option can facilitate user to understand, and improves Consumer's Experience.
Refer to Fig. 4, the step S3 of embodiments of the present invention also comprises:
S32, produces the catalogue (or address) needing the subregion of carry according to user operation.
Step S32 also can be realized by recovery process.
So, recovery process can be searched with the device node of directory matches by polling mechanism thus realize carry in device file.
Such as, if user chooses carry option MicroSDcard, then recovery process produces catalogue dev/blokc/mmcblk1p2, then under device node dev/block catalogue, searches the device node with partition name mmcblk1p2 by polling mechanism, such as can by carry order:
mount–tvfat/dev/block/mmcblk1p1/externalSDcard;
Wherein, mount is order, and-tvfat is the file type of the subregion of specifying carry is fat./ externalSDcard is the explanation to order.
Can finding, by adopting the method for the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention, dynamic carry can be realized under recovery pattern, so, even if subregion is not according to agreement name, still can successful carry.
Refer to Fig. 5, in other embodiment of the present invention, under recovery pattern, the method for the subregion of carry External memory equipment can also comprise after step S4:
S5, reads the file in the subregion after carry, and recovers Android operation system or upgrade.
Step S5 also can realize in recovery process.Concrete, reply or renewal comprise factory reset, space download technology (Over-the-AirTechnology, OTA) upgrading, patch upgrading and firmware upgrade.
In these embodiments, under recovery pattern, the method for the subregion of carry External memory equipment can also comprise after step S4:
S6 unloads subregion.
Step S6 also can realize in recovery process, such as, can unload TF card by order unmount.
Refer to Fig. 6, the device 10 of the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention comprises kernel module 12, notification module 14 and recovers module 16.
Kernel module 11 is for reading the facility information of External memory equipment 200, and facility information comprises the partition name of subregion.
Notification module 12 is for according to facility information apparatus for establishing file, and device file comprises the device node of subregion, and device node comprises partition name.
Recover module 16 for according to device file generate subregion catalogue and according to catalogue and device file carry subregion.
The method of the subregion of carry External memory equipment under recovery pattern of embodiments of the present invention, can realize dynamic carry under recovery pattern, so, even if subregion is not according to agreement name, and still can successful carry.
In some embodiments, External memory equipment 200 comprises TF card, USB flash disk or portable hard drive.
In some embodiments, External memory equipment 200 may have multiple.
In some embodiments, External memory equipment 200 can comprise (being divided into) multiple subregion, each subregion has corresponding partition name.
Refer to Fig. 7, in present embodiment, under recovery pattern, the device 10 of the subregion of carry External memory equipment can be applicable to the electronic installation 100 adopting Android operation system.
In present embodiment, electronic installation 100 can be mobile phone.
Certainly, electronic installation 100 is not limited to present embodiment, and panel computer, Set Top Box, televisor and navigating instrument etc. can be adopted in other embodiments to adopt the electronic installation of Android operation system.
Be appreciated that External memory equipment 200 is for electronic installation 100 is inner, in present embodiment, electronic installation 100 inside also includes storage inside module 20, or is called internal memory or fuselage internal memory.
In present embodiment, facility information comprises device action, equipment read-write type, device path, major device number, secondary device number, device type or/and the number of partitions.
Refer to Fig. 7, in other embodiment, recover module 16 and comprise boundary element 162 and carry unit 164.
Boundary element 162 is for generating carry option according to device file in the user interface 30 of electronic installation 100.
Carry unit 164, carry unit 164 for generating the catalogue of subregion in user interface 30 to the operation of carry option according to user.
In the present embodiment, carry unit 164 also for searching with the device node of directory matches by polling mechanism to realize carry in device file.
In the present embodiment, recover module 16 and also comprise operating unit 166.
Operating unit 166 is for reading the file of subregion to recover Android operation system or to upgrade.
In the present embodiment, recover module 16 and also comprise unloading unit 168.Carry unit 168 is for unloading subregion.
The other parts that the device 10 of the subregion of carry External memory equipment under recovery pattern of present embodiment and electronic installation do not launch, the corresponding part of the method for the subregion of carry External memory equipment under recovery pattern of above embodiment can be joined, launch no longer in detail at this.
In the description of embodiments of the present invention, it will be appreciated that, term " " center ", " longitudinal direction ", " transverse direction ", " length ", " width ", " thickness ", " on ", D score, " front ", " afterwards ", " left side ", " right side ", " vertically ", " level ", " top ", " end ", " interior ", " outward ", " clockwise ", orientation or the position relationship of the instruction such as " counterclockwise " are based on orientation shown in the drawings or position relationship, only embodiments of the present invention and simplified characterization for convenience of description, instead of indicate or imply that the device of indication or element must have specific orientation, with specific azimuth configuration and operation, therefore the restriction to embodiments of the present invention can not be interpreted as.In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise one or more described features.In the description of embodiments of the present invention, the implication of " multiple " is two or more, unless otherwise expressly limited specifically.
In the description of embodiments of the present invention, it should be noted that, unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection " should be interpreted broadly, and such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection or can communication mutually; Can be directly be connected, also indirectly can be connected by intermediary, can be the connection of two element internals or the interaction relationship of two elements.For the ordinary skill in the art, above-mentioned term concrete meaning in embodiments of the present invention can be understood as the case may be.
In embodiments of the present invention, unless otherwise clearly defined and limited, fisrt feature second feature it " on " or D score can comprise the first and second features and directly contact, also can comprise the first and second features and not be directly contact but by the other characterisation contact between them.And, fisrt feature second feature " on ", " top " and " above " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " below " and " below " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is less than second feature.
Disclosing hereafter provides the different structure that many different embodiments or example are used for realizing embodiments of the present invention.In order to simplify disclosing of embodiments of the present invention, hereinafter the parts of specific examples and setting are described.Certainly, they are only example, and object does not lie in restriction the present invention.In addition, embodiments of the present invention can in different example repeat reference numerals and/or reference letter, this repetition is to simplify and clearly object, itself does not indicate the relation between discussed various embodiment and/or setting.In addition, the various specific technique that embodiments of the present invention provide and the example of material, but those of ordinary skill in the art can recognize the application of other techniques and/or the use of other materials.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " exemplary embodiment ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with described embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of embodiments of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (21)

1. the method for the subregion of carry External memory equipment under recovery pattern, is characterized in that, comprising:
Read the facility information of described External memory equipment, described facility information comprises the partition name of described subregion;
According to described facility information apparatus for establishing file, described device file comprises the device node of described subregion, and described device node comprises described partition name;
The catalogue of described subregion is generated according to described device file; And
Subregion according to described catalogue and described device file carry.
2. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
Described External memory equipment comprises TF card, USB flash disk or portable hard drive.
3. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
Described External memory equipment has multiple.
4., as the method for the subregion of carry External memory equipment under recovery pattern that claim 1 is stated, it is characterized in that,
Described exterior storage comprises multiple subregion.
5. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
The method of the subregion of described carry External memory equipment under recovery pattern is applied to the electronic installation adopting Android operation system;
Described electronic installation comprises mobile phone, panel computer, Set Top Box, televisor or navigating instrument.
6. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
Described facility information comprises device action, equipment read-write type, device path, major device number, secondary device number, device type or/and the number of partitions.
7. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
The method of the subregion of described carry External memory equipment under recovery pattern is applied to the electronic installation adopting Android operation system;
The described step generating described catalogue according to described device file comprises:
Carry option is generated in the user interface of described electronic installation according to described device file; And
The operation of described carry option is generated to the catalogue of described subregion in described user interface according to user.
8. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
The step of described subregion according to described catalogue and described device file carry is searched by polling mechanism and is realized with the described device node of described directory matches in described device file.
9. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
The method of the subregion of described carry External memory equipment under recovery pattern is applied to the electronic installation adopting Android operation system;
The method of the subregion of described carry External memory equipment under recovery pattern comprises after the step of described subregion according to described catalogue and described device file carry:
Read the file of described subregion to recover described Android operation system or to upgrade.
10. the method for the subregion of carry External memory equipment under recovery pattern as claimed in claim 1, is characterized in that,
The method of the subregion of described carry External memory equipment under recovery pattern comprises after the step of described subregion according to described catalogue and described device file carry:
Unload described subregion.
The device of the subregion of 11. 1 kinds of carry External memory equipments under recovery pattern, is characterized in that, comprising:
Kernel module, described kernel module is for reading the facility information of described External memory equipment, and described facility information comprises the partition name of described subregion;
Notification module, described notification module is used for according to described facility information apparatus for establishing file, and described device file comprises the device node of described subregion, and described device node comprises described partition name; And
Recover module, described recovery module be used for according to described device file generate described subregion catalogue and according to described catalogue and described device file carry subregion.
12., as the device of the subregion of carry External memory equipment under recovery pattern of claim 11, is characterized in that, it is characterized in that,
Described External memory equipment has multiple.
13. methods of the subregion of carry External memory equipment under recovery pattern stated as claim 11, is characterized in that,
Described exterior storage comprises multiple subregion.
The device of 14. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described External memory equipment comprises TF card, USB flash disk or portable hard drive.
The device of 15. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described electronic installation comprises mobile phone, panel computer, Set Top Box, televisor or navigating instrument.
The device of 16. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described facility information comprises device action, equipment read-write type, device path, major device number, secondary device number, device type or/and the number of partitions.
The device of 17. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described recovery module comprises;
Boundary element, described boundary element is used for generating carry option according to described device file in the user interface of described electronic installation; And
Carry unit, described carry unit for generating the catalogue of described subregion in described user interface to the operation of described carry option according to user.
The device of 18. subregions of carry External memory equipment under recovery pattern as claimed in claim 17, it is characterized in that, described carry unit also for searching with the described device node of described directory matches by polling mechanism to realize carry in described device file.
The device of 19. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described recovery module also comprises operating unit, and described operating unit is for reading the file of described subregion to recover described Android operation system or to upgrade.
The device of 20. subregions of carry External memory equipment under recovery pattern as claimed in claim 11, it is characterized in that, described recovery module also comprises unloading unit, and described unloading unit is for unloading described subregion.
21. 1 kinds of electronic installations, is characterized in that comprising the device of the subregion of carry External memory equipment under recovery pattern as described in claim 11-20 any one.
CN201510582961.2A 2015-09-14 2015-09-14 Method and device for mounting external storage equipment in recovery mode and electronic device Pending CN105183517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510582961.2A CN105183517A (en) 2015-09-14 2015-09-14 Method and device for mounting external storage equipment in recovery mode and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510582961.2A CN105183517A (en) 2015-09-14 2015-09-14 Method and device for mounting external storage equipment in recovery mode and electronic device

Publications (1)

Publication Number Publication Date
CN105183517A true CN105183517A (en) 2015-12-23

Family

ID=54905615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510582961.2A Pending CN105183517A (en) 2015-09-14 2015-09-14 Method and device for mounting external storage equipment in recovery mode and electronic device

Country Status (1)

Country Link
CN (1) CN105183517A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system
CN105744365A (en) * 2016-02-01 2016-07-06 烽火通信科技股份有限公司 Upgrading method of intelligent set-top box based on Android system
CN105867987A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and device for processing data in Recovery mode
CN105893076A (en) * 2015-12-25 2016-08-24 乐视致新电子科技(天津)有限公司 Over the air upgrade method and device
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN106201584A (en) * 2016-06-28 2016-12-07 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal unit
CN106844261A (en) * 2016-12-19 2017-06-13 杰发科技(合肥)有限公司 The method and apparatus of hot plug is realized in recovery mode
CN106873921A (en) * 2017-03-24 2017-06-20 努比亚技术有限公司 A kind of hanging method and device of multi partition external storage
WO2019062109A1 (en) * 2017-09-30 2019-04-04 深圳市华德安科技有限公司 Method of mounting disk array, android device and storage medium
CN109976811A (en) * 2017-12-27 2019-07-05 株洲中车时代电气股份有限公司 A kind of automatic hanging method of movable memory equipment and engine video frequency monitoring system
CN110166338A (en) * 2019-05-17 2019-08-23 华东师范大学 A kind of Cascading Methods of serial communication interface
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium
WO2020113421A1 (en) * 2018-12-04 2020-06-11 深圳市欢太科技有限公司 Method for mounting file system, terminal device, and storage medium
CN112867994A (en) * 2018-12-06 2021-05-28 深圳市欢太科技有限公司 Data recovery method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682088A (en) * 2012-04-23 2012-09-19 Tcl集团股份有限公司 Mount method and mount system of storage equipment, and television
CN102938817A (en) * 2012-11-14 2013-02-20 广东欧珀移动通信有限公司 Storage mount achieving method and device under recovery mode of mobile phone
CN104572387A (en) * 2015-01-30 2015-04-29 青岛海信移动通信技术股份有限公司 Method and device for debugging terminal in engineering mode

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682088A (en) * 2012-04-23 2012-09-19 Tcl集团股份有限公司 Mount method and mount system of storage equipment, and television
CN102938817A (en) * 2012-11-14 2013-02-20 广东欧珀移动通信有限公司 Storage mount achieving method and device under recovery mode of mobile phone
CN104572387A (en) * 2015-01-30 2015-04-29 青岛海信移动通信技术股份有限公司 Method and device for debugging terminal in engineering mode

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893076A (en) * 2015-12-25 2016-08-24 乐视致新电子科技(天津)有限公司 Over the air upgrade method and device
CN105677393A (en) * 2015-12-30 2016-06-15 中科创达软件股份有限公司 Software package processing method, apparatus and system
CN105677393B (en) * 2015-12-30 2019-02-05 中科创达软件股份有限公司 A kind of software packet processing method, apparatus and system
CN105744365A (en) * 2016-02-01 2016-07-06 烽火通信科技股份有限公司 Upgrading method of intelligent set-top box based on Android system
CN105912369A (en) * 2016-04-26 2016-08-31 青岛海信移动通信技术股份有限公司 System upgrading method and device
CN105867987A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and device for processing data in Recovery mode
CN106201584A (en) * 2016-06-28 2016-12-07 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal unit
CN106201584B (en) * 2016-06-28 2019-09-17 青岛海信移动通信技术股份有限公司 Version upgrading method and terminal device
CN106844261A (en) * 2016-12-19 2017-06-13 杰发科技(合肥)有限公司 The method and apparatus of hot plug is realized in recovery mode
CN106873921A (en) * 2017-03-24 2017-06-20 努比亚技术有限公司 A kind of hanging method and device of multi partition external storage
WO2019062109A1 (en) * 2017-09-30 2019-04-04 深圳市华德安科技有限公司 Method of mounting disk array, android device and storage medium
CN109976811A (en) * 2017-12-27 2019-07-05 株洲中车时代电气股份有限公司 A kind of automatic hanging method of movable memory equipment and engine video frequency monitoring system
WO2020113421A1 (en) * 2018-12-04 2020-06-11 深圳市欢太科技有限公司 Method for mounting file system, terminal device, and storage medium
CN112867994A (en) * 2018-12-06 2021-05-28 深圳市欢太科技有限公司 Data recovery method and device and electronic equipment
CN110166338A (en) * 2019-05-17 2019-08-23 华东师范大学 A kind of Cascading Methods of serial communication interface
CN110704243A (en) * 2019-09-25 2020-01-17 Oppo(重庆)智能科技有限公司 Data recovery method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105183517A (en) Method and device for mounting external storage equipment in recovery mode and electronic device
CN102521031B (en) Management method of preset application programs of mobile terminal and mobile terminal
CN105094927B (en) A kind of device firmware upgrade method and apparatus
CN105824678A (en) Method and device for installing operating system
CN108334372B (en) Firmware upgrading processing method, device and system
CN104123153A (en) Apparatus and method for firmware upgrade using USB
CN102141921A (en) Method for upgrading system of terminal equipment and terminal equipment
CN104915226A (en) Network device software starting method, device and network device
CN104636165A (en) Mobile device starting method and device
CN105302663A (en) Mirror image starting method and terminal equipment
CN102955706A (en) Installing method and boot loading method for dual operation system
CN104063256A (en) Partition and firmware upgrading method based on minimum operating system
CN105930184A (en) System upgrade method and device
CN102075710B (en) Starting operation method for television and television
CN108170456B (en) Firmware upgrading method and device for electronic equipment
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN104166609A (en) Computer hardware device repairing method and device
CN102880478A (en) Software updating method
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
CN113032183A (en) System management method, device, computer equipment and storage medium
EP2835737A1 (en) Data terminal running mode switching method, device, and data terminal
CN112912743B (en) Calculation force control method, device, equipment and storage medium
JPH07191835A (en) Computer system
CN105511904A (en) Method and apparatus for automatically updating shortcut window
CN115951920A (en) Mobile equipment upgrading method and device, storage unit and mobile equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151223