The method, apparatus and mobile terminal of storage file between multiple domain
Technical field
The present invention relates to the method, apparatus of storage file between electronic technology field more particularly to a kind of multiple domain and movements eventually
End.
Background technique
It is more with the safety problem that user becomes increasingly conspicuous to the in-depth of mobile terminal demand difference and mobile terminal
Domain (i.e. Multi-User Dimension) is a good solution, it provides the system virtualization solution of lightweight, is allowed more
A user operates in an operating system, and each user has respective user's space, and the resource of each user's space is mutually isolated.
Scheme of this solution of terminal multiple domain relative to multiple operating system system terminal, the resource (such as CPU, memory) of consumption
Much smaller, the requirement to terminal capabilities is also less high, therefore, has broader practice prospect.
For the safety of user, multiple domain (i.e. Multi-User Dimension) this solution, each user's space is to a certain extent
It is relatively independent and isolation, is directly or indirectly contacted although always existing between each domain, in current technology, respectively
Between domain still can not safely and conveniently unloading file, and in fact, when user be commonly present the demand of cross-domain storage file,
Therefore, current technology is unable to satisfy this demand of user, and user experience is poor.
Summary of the invention
In view of this, the present invention provides the method, apparatus and mobile terminal of storage file between a kind of multiple domain, it can be safe
Easily cross-domain unloading file can promote user experience to meet the needs of cross-domain storage file of user well.
To achieve the above object, the invention provides the following technical scheme:
A kind of method of storage file between multiple domain, is applied to mobile terminal, comprising:
When receiving the instruction of the unloading file of user's input, the prompting message of input authentication key is sent to user,
The file is located at active user space;
Obtain the first authentication key of user's input;
Judge whether first authentication key is pre-stored authentication key;
If so, authentication success, controls the active user space for the file and is put into output end;
It controls the first user's space corresponding with first authentication key and obtains the file from the output end, it is complete
The unloading of the pairs of file.
Preferably, when receiving the instruction of the unloading file of user's input, by the display screen of the mobile terminal and/
Or loudspeaker sends the prompting message of input authentication key to user.
Preferably, further includes:
If not, sending authentication failure to user, the prompting message of authentication key is re-entered.
Preferably, it is described judge whether first authentication key is pre-stored authentication key before, further includes:
The authentication key corresponding with user's space of user's input is obtained and stores, different user's spaces is corresponding different
Authentication key.
Preferably, the file is put into before output end by the control active user space, further includes:
If it is determined that the file is encryption file, controls the active user space and decrypt the file.
Preferably, the output end is corresponding with the mode of file described in unloading, is the output end or shared of pipeline
Region of memory.
Preferably, the control the first user's space corresponding with first authentication key is obtained from the output end
After the file, further includes:
It controls first user's space and encrypts the file.
Preferably, control first user's space encrypts the file, comprising:
It controls first user's space and encrypts the file with first authentication key.
Preferably, the authentication key is the fingerprint of user, alternatively, character set by user or character combination.
The device of storage file between a kind of multiple domain, is applied to mobile terminal, comprising:
First reminding module when for receiving the instruction for the unloading file that user inputs, sending input to user and recognizing
The prompting message of key is demonstrate,proved, the file is located at active user space;
First obtains module, for obtaining the first authentication key of user's input;
Judgment module obtains yes/no for judging whether first authentication key is pre-stored authentication key
Judging result;
First control module, if for the judging result be it is yes, authentication success controls the active user space
The file is put into output end;
Second control module, for controlling the first user's space corresponding with first authentication key from the output
End obtains the file, completes the unloading to the file.
Preferably, first reminding module includes:
First reminding unit passes through the mobile terminal when for receiving the instruction for the unloading file that user inputs
Display screen and/or loudspeaker to user send input authentication key prompting message.
Preferably, further includes:
Second reminding module, if for the judging result be it is no, to user send authentication fail, re-enter and recognize
Demonstrate,prove the prompting message of key.
Preferably, further includes:
Second obtains module, different for obtaining and storing the authentication key corresponding with user's space of user's input
User's space correspond to different authentication keys.
Preferably, further includes:
Deciphering module determines the text if being yes for the judging result, before first control module is triggered
When part is encryption file, controls the active user space and decrypt the file.
Preferably, the output end is corresponding with the mode of file described in unloading, is the output end or shared of pipeline
Region of memory.
Preferably, further includes:
Encrypting module encrypts the file for controlling first user's space.
Preferably, the encrypting module includes:
Encryption unit encrypts the file for controlling first user's space, first authentication key.
Preferably, the authentication key is the fingerprint of user, alternatively, character set by user or character combination.
A kind of mobile terminal, comprising:
Processor;
The operation of the processor includes: when receiving the instruction of the unloading file of user's input, to send to user defeated
Enter the prompting message of authentication key, the file is located at active user space;Obtain the first authentication key of user's input;Judgement
Whether first authentication key is pre-stored authentication key;If so, authentication success, it is empty to control the active user
Between the file is put into output end;The first user's space corresponding with first authentication key is controlled from the output end
The file is obtained, the unloading to the file is completed.
Preferably, the operation of the processor further include:
The file is put into before output end by the control active user space, however, it is determined that the file is encryption
File controls the active user space and decrypts the file.
Preferably, the operation of the processor further include:
It controls first user's space and encrypts the file.
It can be seen via above technical scheme that compared with prior art, the present invention provides storage files between a kind of multiple domain
Method, apparatus and a kind of mobile terminal.Technical solution provided by the invention is applied to mobile terminal, defeated receiving user
When the instruction of the unloading active user space file entered, user's input authentication key is reminded, then obtains the of user's input
One authentication key judges whether first authentication key is pre-stored authentication key, if it is, authentication success,
That is, determining the permission of user by the judgement, authentication successfully illustrates that user has file described in unloading
Permission just controls the active user space for the file and is put into output end, control and described first after authentication success
Corresponding first user's space of authentication key obtains the file from the output end, completes the unloading to the file, peace
Full property is relatively high, meanwhile, the file is directly transferred to the first user's space corresponding with first authentication key, than
It is more convenient, be embodied in using technical solution provided by the invention, when user's file described in unloading, it is only necessary to it is mobile eventually
Authentication key corresponding to the user's space dumped to is wanted in end input, and the unloading to the file can be completed.Via above-mentioned
Analysis it was determined that using technical solution provided by the invention, can safely and conveniently cross-domain unloading file, to meet use
The demand of the cross-domain storage file in family, can promote user experience well.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the method for storage file between a kind of multiple domain provided in an embodiment of the present invention;
The flow chart of Fig. 2 method of storage file between another multiple domain provided in an embodiment of the present invention;
The flow chart of Fig. 3 method of storage file between another multiple domain provided in an embodiment of the present invention;
Fig. 4 is the structure chart of the device of storage file between a kind of multiple domain provided in an embodiment of the present invention;
The structure chart of Fig. 5 device of storage file between another multiple domain provided in an embodiment of the present invention;
The structure chart of Fig. 6 device of storage file between another multiple domain provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig. 1, Fig. 1 is the flow chart of the method for storage file between a kind of multiple domain provided in an embodiment of the present invention.This
The method of storage file between the multiple domain that inventive embodiments provide, is applied to mobile terminal.As shown in Figure 1, this method comprises:
Step S101 when receiving the instruction of the unloading file of user's input, sends input authentication key to user
Prompting message;
Specifically, the file is located at active user space, that is to say, that the file is certain in active user space
File.
Optionally, when receiving the instruction of the unloading file of user's input, by the display screen of the mobile terminal and/
Or loudspeaker sends the prompting message of input authentication key to user.
Step S102 obtains the first authentication key of user's input;
Optionally, first authentication key is the fingerprint of user, alternatively, character set by user or character combination.
Step S103 judges whether first authentication key is pre-stored authentication key;
Specifically, if it is, authentication success, illustrates that user has the permission of file described in unloading, at this point, executing
Step S104;
Step S104 controls the active user space for the file and is put into output end;
Specifically, the output end is corresponding with the mode of file described in unloading, it is the output end or shared of pipeline
Region of memory.That is, the output end is the output of pipeline if realizing file described in unloading by way of pipeline
End;If realizing file described in unloading by way of shared drive, the output end is shared region of memory.
Step S105 controls the first user's space corresponding with first authentication key from the output end and obtains institute
File is stated, the unloading to the file is completed.
The technical solution that the embodiment of the present invention one provides is applied to mobile terminal, works as in the unloading for receiving user's input
When the instruction of preceding user's space file, user's input authentication key is reminded, then obtains the first authentication key of user's input,
Judge whether first authentication key is pre-stored authentication key, if it is, authentication success, that is to say, that logical
The judgement is crossed to determine the permission of user, authentication successfully illustrates that user has the permission of file described in unloading, and identity is recognized
The active user space is just controlled after demonstrate,proving successfully, the file is put into output end, control opposite with first authentication key
The first user's space answered obtains the file from the output end, completes the unloading to the file, safety is relatively high, together
When, the file is directly transferred to the first user's space corresponding with first authentication key, more convenient, specific table
Now to apply technical solution provided by the invention, when user's file described in unloading, it is only necessary to want to turn to mobile terminal input
The unloading to the file can be completed in authentication key corresponding to the user's space being stored to.Through from the above analysis it was determined that
Using technical solution provided by the invention, can safely and conveniently cross-domain unloading file, to meet user cross-domain storage
The demand of file can promote user experience well.
The method of storage file between the multiple domain that another embodiment of the present invention provides, optionally, further includes:
If the judging result of the step S103 be it is no, to user send authentication failure, re-enter certification it is close
The prompting message of key, to successfully manage the problem of user inputs authentication key by mistake.
It should be noted that the embodiment of the present invention one provide multiple domain between storage file method, be based on done in advance
Implement on the basis of preparation, illustrates technical solution provided by the invention in order to more clear and complete, the present invention is also
Another embodiment is provided, work is prepared in advance to described and is also illustrated together.
Embodiment two
Referring to Fig. 2, the process of Fig. 2 method of storage file between another multiple domain provided in an embodiment of the present invention
Figure.The method of storage file between multiple domain provided in an embodiment of the present invention is applied to mobile terminal.As shown in Fig. 2, this method packet
It includes:
Step S201 when receiving the instruction of the unloading file of user's input, sends input authentication key to user
Prompting message, the file are located at active user space;
Step S202 obtains the first authentication key of user's input;
Step S203 obtains and stores the authentication key corresponding with user's space of user's input;
Specifically, different user's spaces corresponds to different authentication keys.One user's space can correspond to one or more
A authentication key, an authentication key can correspond to one or more user's spaces, however, it is preferred to, an authentication key is only
A corresponding user's space, it is therefore an objective to facilitate user's space corresponding to more accurate determination authentication key, be more in line with use
The use habit at family.
Optionally, technical solution provided in an embodiment of the present invention, the authentication key is the fingerprint of user, alternatively, user
The character of setting or character combination.
Step S204 judges whether first authentication key is pre-stored authentication key;
Specifically, if it is, authentication success, executes the step S205.
Step S205 controls the active user space for the file and is put into output end;
Step S206 controls the first user's space corresponding with first authentication key from the output end and obtains institute
File is stated, the unloading to the file is completed.
It should be noted that the execution of the step S203 is not limited to the example in embodiment two, the step
As long as S203 is executed before the S204.
The method of storage file between the multiple domain that another embodiment of the present invention provides, optionally, further includes:
If the judging result of the step S204 be it is no, to user send authentication failure, re-enter certification it is close
The prompting message of key, to successfully manage the problem of user inputs authentication key by mistake.
In order to further increase the safety of cross-domain unloading file, the present invention also provides another embodiments.
Embodiment three
Referring to Fig. 3, the process of Fig. 3 method of storage file between another multiple domain provided in an embodiment of the present invention
Figure.The method of storage file between multiple domain provided in an embodiment of the present invention is applied to mobile terminal.As shown in figure 3, this method packet
It includes:
Step S301 when receiving the instruction of the unloading file of user's input, sends input authentication key to user
Prompting message, the file are located at active user space;
Step S302 obtains the first authentication key of user's input;
Step S303 judges whether first authentication key is pre-stored authentication key;
Specifically, if it is, authentication success, executes step S304.
Step S304, however, it is determined that the file is encryption file, controls the active user space and decrypts the file;
Specifically, the step S304 includes:
Analyze whether the file is encryption file;
If so, controlling the active user space decrypts the file, if not, executing step S305.
Step S305 controls the active user space for the file and is put into output end;
Step S306 controls the first user's space corresponding with first authentication key from the output end and obtains institute
File is stated, the unloading to the file is completed;
Step S307 controls first user's space and encrypts the file;
Optionally, it controls first user's space and encrypts the file with first authentication key, in this way, user has
When the permission of the first user's space of standby access, the file can be directly accessed, it is more convenient and fast on the basis of guaranteeing safety
It is prompt.
The method of storage file between the multiple domain that another embodiment of the present invention provides, optionally, further includes:
If the judging result of the step S303 be it is no, to user send authentication failure, re-enter certification it is close
The prompting message of key, to successfully manage the problem of user inputs authentication key by mistake.
Multiple domain in order to illustrate technical solution provided by the invention more fully hereinafter, corresponding to the offer of the embodiment of the present invention one
Between storage file method, the present invention discloses a kind of device of storage file between multiple domain.
Referring to Fig. 4, Fig. 4 is the structure chart of the device of storage file between a kind of multiple domain provided in an embodiment of the present invention.Such as
Shown in Fig. 4, which includes:
First reminding module 401 when for receiving the instruction for the unloading file that user inputs, sending to user and inputting
The prompting message of authentication key, the file are located at active user space;
Specifically, first reminding module 401 includes:
First reminding unit passes through the mobile terminal when for receiving the instruction for the unloading file that user inputs
Display screen and/or loudspeaker to user send input authentication key prompting message.
First obtains module 402, for obtaining the first authentication key of user's input;
Judgment module 403 obtains yes/no for judging whether first authentication key is pre-stored authentication key
Judging result;
First control module 404, if for the judging result be it is yes, authentication success controls the active user
The file is put into output end by space;
Specifically, technical solution provided in an embodiment of the present invention, the output end is opposite with the mode of file described in unloading
It answers, is the output end or shared region of memory of pipeline.
Second control module 405, for controlling corresponding with first authentication key the first user's space from described
Output end obtains the file, completes the unloading to the file.
Optionally, technical solution provided in an embodiment of the present invention, the authentication key is the fingerprint of user, alternatively, user
The character of setting or character combination.
Corresponding to the method for storage file between multiple domain provided by Embodiment 2 of the present invention, the present invention discloses another multiple domain
Between storage file device.Referring to Fig. 5, the dress of Fig. 5 storage file between another multiple domain provided in an embodiment of the present invention
The structure chart set.As shown in figure 5, the device includes:
First reminding module 501 when for receiving the instruction for the unloading file that user inputs, sending to user and inputting
The prompting message of authentication key, the file are located at active user space;
First obtains module 502, for obtaining the first authentication key of user's input;
Second obtains module 503, for obtaining and storing the authentication key corresponding with user's space of user's input, no
Same user's space corresponds to different authentication keys;
Judgment module 504 obtains yes/no for judging whether first authentication key is pre-stored authentication key
Judging result;
First control module 505, if for the judging result be it is yes, authentication success controls the active user
The file is put into output end by space;
Second control module 506, for controlling corresponding with first authentication key the first user's space from described
Output end obtains the file, completes the unloading to the file.
The method of storage file, the present invention disclose another multiple domain between the multiple domain provided corresponding to the embodiment of the present invention three
Between storage file device.Referring to Fig. 6, the dress of Fig. 6 storage file between another multiple domain provided in an embodiment of the present invention
The structure chart set.As shown in fig. 6, the device includes:
First reminding module 601 when for receiving the instruction for the unloading file that user inputs, sending to user and inputting
The prompting message of authentication key, the file are located at active user space;
First obtains module 602, for obtaining the first authentication key of user's input;
Judgment module 603 obtains yes/no for judging whether first authentication key is pre-stored authentication key
Judging result;
Deciphering module 604 determines institute if being yes for the judging result, before first control module is triggered
When stating file to encrypt file, controls the active user space and decrypt the file;
First control module 605, if for the judging result be it is yes, authentication success controls the active user
The file is put into output end by space;
Second control module 606, for controlling corresponding with first authentication key the first user's space from described
Output end obtains the file, completes the unloading to the file;
Encrypting module 607 encrypts the file for controlling first user's space;
Optionally, the encrypting module 607 includes:
Encryption unit encrypts the file for controlling first user's space, first authentication key.
Optionally, between multiple domain provided in an embodiment of the present invention storage file device, further includes:
Second reminding module, if for the judging result be it is no, to user send authentication fail, re-enter and recognize
Demonstrate,prove the prompting message of key.
In order to protect technical solution provided by the invention more fully hereinafter, invention additionally discloses a kind of mobile terminals.
A kind of mobile terminal provided in an embodiment of the present invention, comprising:
Processor;
The operation of the processor includes: when receiving the instruction of the unloading file of user's input, to send to user defeated
Enter the prompting message of authentication key, the file is located at active user space;Obtain the first authentication key of user's input;Judgement
Whether first authentication key is pre-stored authentication key;If so, authentication success, it is empty to control the active user
Between the file is put into output end;The first user's space corresponding with first authentication key is controlled from the output end
The file is obtained, the unloading to the file is completed.
The mobile terminal that another embodiment of the present invention provides, the operation of the processor can also include:
The file is put into before output end by the control active user space, however, it is determined that the file is encryption
File controls the active user space and decrypts the file.
The mobile terminal that another embodiment of the present invention provides, the operation of the processor can also include:
It controls first user's space and encrypts the file.
It should be noted that technical solution provided by the invention, the operating system based on mobile terminal, such as Android
OS (Operating System, operating system), IOS (i.e. the Mobile operating system of Apple Inc.'s exploitation) etc., multiple domains (are used
Family space) share an operating system.
It can be seen via above technical scheme that compared with prior art, the present invention provides storage files between a kind of multiple domain
Method, apparatus and a kind of mobile terminal.Technical solution provided by the invention is applied to mobile terminal, defeated receiving user
When the instruction of the unloading active user space file entered, user's input authentication key is reminded, then obtains the of user's input
One authentication key judges whether first authentication key is pre-stored authentication key, if it is, authentication success,
That is, determining the permission of user by the judgement, authentication successfully illustrates that user has file described in unloading
Permission just controls the active user space for the file and is put into output end, control and described first after authentication success
Corresponding first user's space of authentication key obtains the file from the output end, completes the unloading to the file, peace
Full property is relatively high, meanwhile, the file is directly transferred to the first user's space corresponding with first authentication key, than
It is more convenient, be embodied in using technical solution provided by the invention, when user's file described in unloading, it is only necessary to it is mobile eventually
Authentication key corresponding to the user's space dumped to is wanted in end input, and the unloading to the file can be completed.Via above-mentioned
Analysis it was determined that using technical solution provided by the invention, can safely and conveniently cross-domain unloading file, to meet use
The demand of the cross-domain storage file in family, can promote user experience well.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For mobile terminal, since it is corresponded to the methods disclosed in the examples, so be described relatively simple, related place referring to
Method part illustration.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.