CN104090822B - The switching method and system of android system lower outer portion storage device - Google Patents

The switching method and system of android system lower outer portion storage device Download PDF

Info

Publication number
CN104090822B
CN104090822B CN201410329829.6A CN201410329829A CN104090822B CN 104090822 B CN104090822 B CN 104090822B CN 201410329829 A CN201410329829 A CN 201410329829A CN 104090822 B CN104090822 B CN 104090822B
Authority
CN
China
Prior art keywords
external memory
storage device
memory equipment
switching
user
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.)
Active
Application number
CN201410329829.6A
Other languages
Chinese (zh)
Other versions
CN104090822A (en
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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN201410329829.6A priority Critical patent/CN104090822B/en
Publication of CN104090822A publication Critical patent/CN104090822A/en
Application granted granted Critical
Publication of CN104090822B publication Critical patent/CN104090822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The switching method and system of android system lower outer portion storage device provided by the present invention,Select a main External memory equipment from External memory equipment by user first,Then whole External memory equipments is unloaded from mount point,After storage device during user is selected is as main External memory equipment,Generate new storage device configurations list,External memory equipment is re-started into carry,It is fixed as one to overcome main External memory equipment under prior art android system,And other can only be mounted to the defect used under main peripheral storage device from External memory equipment as catalogue,Make user when using android system,Can preferably information storage be carried out using multiple External memory equipments,While improving stored memory utilization rate,Demand of the people to more memory spaces is better met.

Description

The switching method and system of android system lower outer portion storage device
Technical field
The present invention relates to cutting for mobile communication field more particularly to a kind of Android system lower outer portion storage device Change method and system.
Background technology
Android(Chinese is known as Android)It is the open source code operating system based on Linux, is mainly used for Mobile device, the Open Handset Alliance set up by Google(OHA, open handheld device alliance)Lasting leader and In exploitation.Latest edition issued Android is Android 4.3.Android system is initially by An Dilubin (Andy Rubin)Exploitation and composition, the purpose for originally developing this system create the " intelligence that can surf the Internet with PC using it Energy mobile phone " the ecosphere.But later, smart mobile phone market started Fast Growth, and Android is transformed into a towards mobile phone Operating system.It is purchased by U.S. science-and-technology enterprise Google in August, 2005.In November, 2007, Google and 84 hardware manufacturing Quotient, software developer and Telecom operators set up open handheld device alliance to research and develop improvement android system jointly, then, Google is opened for free the authorization of source code licensing with Apache, has issued the source code of Android.Manufacturer is allowed to push away Go out to carry the smart mobile phone of Android, Android operation system was more gradually extended on tablet computer and other field later.
(SuSE) Linux OS all manages all in system as file.In linux system, hardware device, magnetic Disk subregion etc. is considered file, and the access to equipment, subregion is exactly to read and write corresponding file.Mount point is actually Linux In disk file system entrance catalogue, an equipment needs corresponding mount point and could access to it.
Android compatibility specifications define(Android Compatibility Definition)Regulation:It is each compatible The equipment of Android all supports shared " external memory ", can be with it come store files.It is stored in external memory In file be all world-readable attributes and can be modifiable by the user(When they allow the big reservoirs of USB in computer When upper the staged files).The file being stored on external memory be can disappear it is sightless --- if user is external storage Device is hung over on a computer or removing the medium(SD card), while you to be stored in the file on external storage not compulsory Safety assurance.All applications can read and write these files and user can also delete them.
" external memory " can be the storaging medium that can be removed(A such as SD card)An or internal storage (It can not be removed).Currently, there are three types of the modes of major mobile-phone manufacturers realizations external memory:Physical storage media(SD Card), the simulation external memory of the internal storage and shared internal storage that come independent partitions is marked off from ROM.If It is standby must realize one of the above mode and be mounted to/sdcard as main external memory, could be used for application program.
Currently, some mobile-phone manufacturers often realize the implementation of two kinds of external memories, still, due to The characteristic of Android can only be used one piece of external memory devices as " main external memory ", and in addition realize " from outer Portion's memory " equipment, which can only be mounted to as catalogue under " main external memory ", to be used, and application program can not in this case It is complete utilize " from external memory " space --- due to compatible api interface problem, application program can not be known in advance Equipment whether realize " from external memory " and how carry.
Therefore, the prior art is up for further improving.
Invention content
In view of above-mentioned shortcoming in the prior art, it is an object of the invention to provide a kind of android systems to the user Switching method between the lower storage device of system and system can only use a fixation to solve Android system in the prior art Main External memory equipment the problem of.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of switching method of android system lower outer portion storage device, wherein including:
It receives after user selects switching command of any one in External memory equipment as main External memory equipment, unloads Carry the storage device on the mount point corresponding to all External memory equipments;
The storage device that user selects is arranged as main External memory equipment;New storage device configurations list is generated, and The External memory equipment under android system is mounted on corresponding mount point according to new storage device configurations list, it is complete At the switching between principal and subordinate's External memory equipment.
The switching method of the android system lower outer portion storage device, wherein select external storage to set receiving user Before instruction of any one in standby as main External memory equipment, further include, by the configured list of all External memory equipments And master-slave relationship is shown.
The switching method of the android system lower outer portion storage device, wherein including receiving user and selecting external deposit After storing up instruction of any one in equipment as main External memory equipment, what is switched between execution principal and subordinate's External memory equipment answers With program whether there is switching permission to be verified, if with switching permission unload corresponding to all External memory equipments Mount point on storage device operation, if without switching permission if terminate operation.
The switching method of the android system lower outer portion storage device, wherein further include being deposited when unloading all outsides After storing up the storage device on the mount point corresponding to equipment, carrying of switching between whether confirming external principal and subordinate's storage device is sent out Show, if confirming the prompt, carries out the handover operation, otherwise abandon this operation.
The switching method of the android system lower outer portion storage device, wherein the storage device for selecting user as While the operation of main External memory equipment, changes External memory equipment configured list and preserve new configured list.
A kind of switching system of android system lower outer portion storage device, wherein including:
Device uninstallation module selects any of External memory equipment storage device for main external storage for receiving user After the instruction of equipment, the storage device on the mount point corresponding to all External memory equipments is unloaded;
Hand-off process module, the storage device for selecting user are deposited as main External memory equipment, and according to new External memory equipment is mounted on corresponding mount point by storage device configuration list, cutting between completion principal and subordinate's External memory equipment It changes.
The switching system of the android system lower outer portion storage device, wherein further include list display selecting module;
The list display selecting module, for any one in selecting External memory equipment in reception user as main memory Before the instruction for storing up equipment, the configured list of all External memory equipments and master-slave relationship are shown.
The switching system of the android system lower outer portion storage device, wherein further include authorization check module;
The authorization check module selects any one in External memory equipment as main external storage for receiving user After the instruction of equipment, to executing whether the application program switched between principal and subordinate's External memory equipment there is switching permission to carry out school It tests, if with switching permission unload the operation of the storage device on the mount point corresponding to all External memory equipments, Operation is terminated if without switching permission.
The switching system of the android system lower outer portion storage device, wherein further include confirming handover module;
The confirmation handover module, for working as the extension corresponding to all External memory equipments of storage device processes program unloading After storage device on loading point, the prompt for whether confirming and switching between principal and subordinate's External memory equipment is sent out, if confirming the prompt, The handover operation is then carried out, this operation is otherwise abandoned.
The switching system of the android system lower outer portion storage device, wherein further include configured list update module;
The configured list update module, the storage device for selecting user is as the operation of main External memory equipment While, it changes External memory equipment configured list and preserves new configured list.
Advantageous effect, the switching method and system of android system lower outer portion storage device provided by the present invention, first A main External memory equipment is selected from External memory equipment by user, then by whole External memory equipments from extension It is unloaded on loading point, after the storage device during user is selected is as main External memory equipment, generates new storage device and match List is set, External memory equipment is re-started into carry, is set to overcome main external storage under prior art android system It is standby to be fixed as one, and other can only be mounted to the defect used under main peripheral storage device from External memory equipment as catalogue, Make user when using android system, preferably can carry out information storage using multiple External memory equipments, be deposited in raising While storing up memory usage, demand of the people to more memory spaces has been better met.
Description of the drawings
Fig. 1 is the step flow chart of the switching method of peripheral storage device under android system of the present invention.
Fig. 2 is the most preferred embodiment of the switching method of peripheral storage device under android system of the present invention in specific application Schematic diagram.
Fig. 3 is the structure principle chart of the switching system of peripheral storage device under android system of the present invention.
Fig. 4 is the structural schematic diagram that the switching system of peripheral storage device under android system of the present invention is in concrete application.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and do not have to It is of the invention in limiting.
The present invention discloses a kind of switching method of android system lower outer portion storage device, as shown in Figure 1, the method Include the following steps:
S1, the switching command that user selects any one in External memory equipment as main External memory equipment is received Afterwards, the storage device on the mount point corresponding to all External memory equipments is unloaded.
First, it when principal and subordinate's External memory equipment switches under user wants to android system, is then sent out by system Go out to select switching command of the storage device as main External memory equipment from whole External memory equipments, triggers system Start to switch over the master-slave relationship of External memory equipment.
After receiving the switching command that above-mentioned user sends out, pre-set hand-off process program be then triggered start into The handover operation of row storage device.
Since the storage device in being currently running can not carry out carry, switched in the storage device for selecting user It needs first to unload the storage device on the mount point corresponding to whole External memory equipments before main storage device, makes storage Equipment is in the state of non-carry.
S2, the storage device that user selects is arranged as main External memory equipment;New storage device configurations list is generated, And the External memory equipment under android system is mounted on corresponding mount point according to new storage device configurations list, Complete the switching between principal and subordinate's External memory equipment.
After the completion of unloading, the storage device that user selects is arranged as main External memory equipment, and according to generating new deposit Configured list is stored up, External memory equipment is re-started into carry.
It is envisioned that External memory equipment can be multiple, mount point may be multiple.
Further, in order to preferably realize above-mentioned handover operation, can also have based on the above method following It improves:
It is selected for the ease of user, any one is deposited as main outside in receiving user and selecting External memory equipment Before the instruction for storing up equipment, the configured list of all External memory equipments and master-slave relationship are shown.
In order to ensure the safety of handover operation, any one is as main outer in receiving user and selecting External memory equipment After the instruction of portion's storage device, to execute the application program that switches between principal and subordinate's External memory equipment whether have switching permission into Row verification if with switching permission unload the behaviour of the storage device on the mount point corresponding to all External memory equipments Make, operation is terminated if without switching permission.
Due to when the storage device to mount point unloads, it is understood that there may be the application stored inside some storage devices During program is currently running, therefore the loss of data is stored in order to prevent, after unloading the storage device on all mount points, send out The prompt for whether confirming and switching between external principal and subordinate's storage device gone out, the time that user carries out data preservation is provided, if confirming institute Prompt is stated, then carries out the handover operation, otherwise abandons this operation.
In order to preferably carry out carry to storage device, in the storage device for selecting user as main External memory equipment Operation while, modification External memory equipment configured list simultaneously new configured list is preserved.
Fig. 2 gives the method and step flow chart of the method disclosed in this invention in specific application, as shown, The method includes:
H1, system show that the list of all External memory equipments and master-slave relationship are selected for user first.
H2, user select a storage device as main External memory equipment from External memory equipment list, and triggering is outer The instruction of portion's storage device switching.
H3, Authority Verification is carried out to the application program for carrying out handover operation in advance, next step H4 is carried out if having switching permission, If not switching permission enters step H31.
H4 unloads the External memory equipment on the mount point, and enters step H5.
H5, it sends out switching and confirms instruction, if user's selection is to carry out step H6, otherwise abort operation.
H6, switching mount point, the storage device that user is selected generate new storage as main External memory equipment Device configuration list carries out in next step, otherwise abort operation if switching successfully.
H7, according to newly-generated storage device configurations list again carry External memory equipment, complete this handover operation.
On the basis of the method disclosed in this invention, the present invention also provides a kind of android system lower outer portions The switching system of storage device, as shown in figure 3, including:
Device uninstallation module 10 selects external based on any of External memory equipment storage device deposit for receiving user After the instruction for storing up equipment, the storage device on the mount point corresponding to all External memory equipments is unloaded;
Hand-off process module 20, for the storage device that selects user as main External memory equipment, and according to new External memory equipment is mounted on corresponding mount point by storage device configurations list, between completion principal and subordinate's External memory equipment Switching.
In order to preferably complete the handover operation, it is illustrated in figure 4 under a kind of android system disclosed by the invention outer The structural schematic diagram of the switching system of portion's storage device in specific application, as shown in figure 4, the android system lower outer portion The switching system of storage device, in addition to comprising above-mentioned device uninstallation module 10 and hand-off process module 20, wherein further including:
The list display selecting module 50, for any one in selecting External memory equipment in reception user as master Before the instruction of storage device, the configured list of all External memory equipments and master-slave relationship are shown.
The authorization check module 30 selects any one in External memory equipment to be deposited as main outside for receiving user After the instruction for storing up equipment, to executing whether the application program switched between principal and subordinate's External memory equipment there is switching permission to carry out school It tests, if with switching permission unload the operation of the storage device on the mount point corresponding to all External memory equipments, Operation is terminated if without switching permission.
The confirmation handover module 40, for when the storage device on all mount points of storage device processes program unloading Afterwards, the prompt for whether confirming and switching between principal and subordinate's External memory equipment is sent out, if confirming the prompt, switches over operation, Otherwise this operation is abandoned.
The configured list update module 60, the storage device for selecting user is as the behaviour of main External memory equipment While work, changes External memory equipment configured list and preserve new configured list.
Wherein, storage device and its corresponding mount point can be multiple.
The switching method and system of android system lower outer portion storage device provided by the present invention, by receiving user An instruction as main External memory equipment is selected from External memory equipment, by whole External memory equipments from carry It is unloaded on point, after the storage device during user is selected is as main External memory equipment, generates new storage device configurations External memory equipment is re-started carry by list, realizes the switching at runtime of multiple External memory equipments, existing to overcome Have the mobile terminal of technology one using android system, main External memory equipment is fixed as one under system, and other from External memory equipment can only be mounted to the defect used under main peripheral storage device as catalogue, make user using Android systems When system, can information storage preferably be carried out using multiple External memory equipments, while improving stored memory utilization rate, more Good meets demand of the people to more memory spaces.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention Protect range.

Claims (2)

1. a kind of switching method of android system lower outer portion storage device, which is characterized in that including:
It receives after user selects switching command of any one in External memory equipment as main External memory equipment, unloads institute There is the storage device on the mount point corresponding to External memory equipment;
After receiving the switching command that user sends out, pre-set hand-off process program, which is then triggered, to be proceeded by storage and sets Standby handover operation;
The storage device that user selects is arranged as main External memory equipment;Generate new storage device configurations list, and according to External memory equipment under android system is mounted on corresponding mount point by new storage device configurations list, completes master From the switching between External memory equipment;
Before receiving user and selecting instruction of any one in External memory equipment as main External memory equipment, further include: The configured list of all External memory equipments and master-slave relationship are shown;
After reception user selects instruction of any one in External memory equipment as main External memory equipment, to executing outside principal and subordinate Whether the application program switched between portion's storage device there is switching permission to be verified, and be unloaded if with switching permission The operation of the storage device on mount point corresponding to all External memory equipments terminates operation if without switching permission;
The External memory equipment is multiple, and the mount point is multiple;
The switching method further includes, after storage device on the mount point unloaded corresponding to all External memory equipments, hair The prompt for whether confirming and switching between external principal and subordinate's storage device gone out, the time that user carries out data preservation is provided;
If confirming the prompt, the handover operation is carried out, otherwise abandons this operation;
As while the operation of main External memory equipment, modification External memory equipment configuration arranges the storage device that user is selected Table simultaneously preserves new configured list.
2. a kind of switching system of android system lower outer portion storage device, which is characterized in that including:
Device uninstallation module selects any of External memory equipment storage device for main External memory equipment for receiving user Instruction after, unload the storage device on the mount point corresponding to all External memory equipments;
Hand-off process module, the storage device for selecting user are sent out as main External memory equipment when receiving user Switching command after, pre-set hand-off process program, which is then triggered, proceeds by the handover operation of storage device, and according to External memory equipment is mounted on corresponding mount point by new storage device configurations list, complete principal and subordinate External memory equipment it Between switching;
The system also includes:List display selecting module;
The list display selecting module is set for any one in selecting External memory equipment in reception user as primary storage Before standby instruction, the configured list of all External memory equipments and master-slave relationship are shown;
The system also includes:It further include authorization check module;
The authorization check module selects any one in External memory equipment as main External memory equipment for receiving user Instruction after, whether there is switching permission to verify the application program that switches between executing principal and subordinate's External memory equipment, if The operation for then carrying out unloading the storage device on the mount point corresponding to all External memory equipments with switching permission, if not having There is switching permission then to terminate operation;
The External memory equipment is multiple, and the mount point is multiple;
The switching system further includes confirming handover module;
The confirmation handover module, for working as the mount point corresponding to all External memory equipments of storage device processes program unloading On storage device after, the prompt for whether confirming and switching between principal and subordinate's External memory equipment sent out, provide user carry out data guarantor The time deposited;
If confirming the prompt, the handover operation is carried out, otherwise abandons this operation;
It further include configured list update module;
The configured list update module, the storage device for selecting user is as the same of the operation of main External memory equipment When, it changes External memory equipment configured list and preserves new configured list.
CN201410329829.6A 2014-07-11 2014-07-11 The switching method and system of android system lower outer portion storage device Active CN104090822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410329829.6A CN104090822B (en) 2014-07-11 2014-07-11 The switching method and system of android system lower outer portion storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410329829.6A CN104090822B (en) 2014-07-11 2014-07-11 The switching method and system of android system lower outer portion storage device

Publications (2)

Publication Number Publication Date
CN104090822A CN104090822A (en) 2014-10-08
CN104090822B true CN104090822B (en) 2018-10-26

Family

ID=51638541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410329829.6A Active CN104090822B (en) 2014-07-11 2014-07-11 The switching method and system of android system lower outer portion storage device

Country Status (1)

Country Link
CN (1) CN104090822B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463034B (en) * 2014-11-19 2018-03-27 广东欧珀移动通信有限公司 A kind of method and device of safe and convenient unloading external connection storage device
CN111104679B (en) * 2018-10-26 2023-06-06 紫光国芯微电子股份有限公司北京分公司 External storage device for safe mounting and method thereof
CN114579036B (en) * 2020-11-30 2024-02-13 北京达佳互联信息技术有限公司 Storage device management method and related device
CN113835857B (en) * 2021-09-18 2024-04-02 青岛海信移动通信技术有限公司 Mounting method, device, equipment and medium of external storage equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847101A (en) * 2009-03-24 2010-09-29 Tcl集团股份有限公司 Method for automatically mounting USB storage device under embedded Linux
CN102902488A (en) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 Memory card of handheld equipment and dynamic mounting method of memory card
CN103793256A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Method for management of memory cards, and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120054382A1 (en) * 2010-08-31 2012-03-01 I/O Interconnect, Ltd. Method of hand-held smart device for accessing data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847101A (en) * 2009-03-24 2010-09-29 Tcl集团股份有限公司 Method for automatically mounting USB storage device under embedded Linux
CN102902488A (en) * 2012-08-06 2013-01-30 广东欧珀移动通信有限公司 Memory card of handheld equipment and dynamic mounting method of memory card
CN103793256A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Method for management of memory cards, and electronic device

Also Published As

Publication number Publication date
CN104090822A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
KR102318877B1 (en) Apparatus and method for displaying user interface
EP3032418A1 (en) Permission control method and device
EP3975503A1 (en) Esim card replacement method and related device
US20170257357A1 (en) Data Communication Method, User Equipment, and Server
CN104090822B (en) The switching method and system of android system lower outer portion storage device
JP2015508582A (en) Provisioning work environments on personal mobile devices
US10481756B2 (en) Controlling application access to applications and resources via graphical representation and manipulation
US11711686B2 (en) Method for controlling display of SIM card function menu and storage device for the same
WO2016130349A1 (en) Systems and methods for adaptive cloning of mobile devices
WO2014180427A1 (en) Application program management method and device
US9513928B2 (en) Method of operating multiple operating systems and the electronic device thereof
CN103678125A (en) Method and system for debugging codes
CN105095009B (en) A kind of method for deleting and device of memory
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN105959451A (en) MBN loading method and mobile terminal
JP2010146410A (en) Portable electronic device
CN106919865B (en) Non-volatile memory data encryption system
CN104765631A (en) Restoration method and device for application program of mobile terminal
WO2014080547A1 (en) Improved synchronization of an application run on two distinct devices
CN105391810B (en) Terminal equipment interface device
CN104918234A (en) Mobile phone wallet client and application processing method thereof and terminal device
KR101556831B1 (en) Input method of permission for application development and recording medium storing program for executing method of developing android application
CN106775881B (en) System upgrading method and device
KR20160134419A (en) Method for changing the subscriber identification information of terminal using smart card including multiple subscriber identification information, terminal and computer program thereof
CN104750579A (en) Method and device for manufacturing memory mirroring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant