CN105577904B - A kind of file sharing method and mobile terminal - Google Patents

A kind of file sharing method and mobile terminal Download PDF

Info

Publication number
CN105577904B
CN105577904B CN201510142575.1A CN201510142575A CN105577904B CN 105577904 B CN105577904 B CN 105577904B CN 201510142575 A CN201510142575 A CN 201510142575A CN 105577904 B CN105577904 B CN 105577904B
Authority
CN
China
Prior art keywords
mobile terminal
file
carry equipment
banner
operating system
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.)
Expired - Fee Related
Application number
CN201510142575.1A
Other languages
Chinese (zh)
Other versions
CN105577904A (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.)
Coolpad Software Technology Shenzhen Co Ltd
Original Assignee
Coolpad Software Technology Shenzhen Co 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 Coolpad Software Technology Shenzhen Co Ltd filed Critical Coolpad Software Technology Shenzhen Co Ltd
Priority to CN201510142575.1A priority Critical patent/CN105577904B/en
Publication of CN105577904A publication Critical patent/CN105577904A/en
Application granted granted Critical
Publication of CN105577904B publication Critical patent/CN105577904B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of file sharing method and mobile terminals, comprising: the first operating system default of the system banner of the current operation system of mobile terminal described in acquisition for mobile terminal, the mobile terminal loads the file in carry equipment;If the mobile terminal judges that the system banner of the current operation system and the system banner of first operating system are inconsistent, the mobile terminal pops up the shared setting options that the file in the carry equipment is loaded for the current operation system to be arranged in the touch display screen of the mobile terminal;When the mobile terminal monitors to open the incoming event of the shared setting options, the mobile terminal loads the file in the carry equipment according to default file sharing policy.Using the embodiment of the present invention, multiple operating systems of mobile terminal can share the file in carry equipment, improve the efficiency of the file in mobile terminal read-write carry equipment.

Description

A kind of file sharing method and mobile terminal
Technical field
The present invention relates to technical field of electronic equipment more particularly to a kind of file sharing methods and mobile terminal.
Background technique
Carry, which refers to, is articulated to an equipment in terminal system in an already present catalogue;Wherein, the mounting is to end The equipment of end system can be described as the carry equipment of terminal.With the development of microelectric technique, the mobile terminals such as smart phone have melted Enter the every aspect to human lives, mobile terminal is capable of providing such as call, Video chat, surfing on the net, e-payment, work The various functions such as money management, while the function of mobile terminal is become stronger day by day, the safety of mobile terminal is become more and more important, For this problem, occurred carrying the smart phone of dual operating systems in the market, such as security system and standard system are installed System extremely sends " platinum " Series Intelligent mobile phone.
Carry the mobile terminals of multiple operating systems in use, carry equipment (such as SD of mobile terminal installation Card) operating system (such as modular system) load that can only be predetermined, when mobile terminal in non-default operating system (such as safety system System) under when reading and writing the file in carry equipment, mobile terminal needs first to wait modular system to unload carry equipment, then in safety The system loads carry equipment, so that the file in carry equipment is read and write, the above-mentioned mobile terminal for carrying multiple operating systems The method process for reading and writing the file in carry equipment is cumbersome, and the efficiency of mobile terminal reading and writing of files is lower.
Summary of the invention
The present invention provides a kind of file sharing method and mobile terminal.Multiple operating systems of mobile terminal can share extension The file in equipment is carried, the efficiency of the file in mobile terminal read-write carry equipment is improved.
First aspect of the embodiment of the present invention provides a kind of file sharing method, comprising:
The system banner of the current operation system of mobile terminal described in acquisition for mobile terminal, the first behaviour of the mobile terminal Make the file in system default load carry equipment;
If what the mobile terminal judged the system banner of the current operation system and first operating system is System mark is inconsistent, then the mobile terminal pops up in the touch display screen of the mobile terminal for the current behaviour to be arranged Make the shared setting options of the file in carry equipment described in system loads;
When the mobile terminal monitors to open the incoming event of the shared setting options, the mobile terminal according to Default file sharing policy loads the file in the carry equipment.
Wherein, the mobile terminal loads the file in the carry equipment according to default file sharing policy and includes:
The mobile terminal loads the file in the carry equipment by Samba service routine;
Alternatively,
The mobile terminal loads the file in the carry equipment by NFS service routine;
Alternatively,
The mobile terminal loads the file in the carry equipment by TFTP service routine.
Wherein, after the mobile terminal loads the file in the carry equipment according to default file sharing policy, also Include:
The current operation system is switched to the second operating system according to system switching command by the mobile terminal;
If what the mobile terminal judged the system banner of second operating system and first operating system is System mark is consistent, then the mobile terminal is monitoring the mobile terminal to the read-write requests of the file in the carry equipment When the time, the mobile terminal popped up in the touch display screen of the mobile terminal for be arranged whether continue starting it is described total Enjoy the confirmation prompt of setting options.
Wherein, if the mobile terminal judge second operating system system banner and first operating system System banner it is inconsistent, then the mobile terminal is monitoring reading of the mobile terminal to the file in the carry equipment When the write request time, then the mobile terminal is popped up in the touch display screen of the mobile terminal for second behaviour to be arranged Make the shared setting options of carry equipment described in system loads.
Wherein, the system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal includes:
The mobile terminal monitors the mobile terminal to the read-write requests event of the file in the carry equipment;
When the mobile terminal monitors read-write requests event of the mobile terminal to the file in carry equipment, institute State the system banner of the current operation system of mobile terminal described in acquisition for mobile terminal.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
First acquisition unit, the system banner of the current operation system for obtaining mobile terminal, the mobile terminal File in first operating system default load carry equipment;
First display unit, for judge in the mobile terminal system banner of the current operation system with it is described When the system banner of first operating system is inconsistent, pop-up is for being arranged described work as in the touch display screen of the mobile terminal Preceding operating system loads the shared setting options of the file in the carry equipment;
Shared cell, for when the mobile terminal monitors to open the incoming event of the shared setting options, root The file in the carry equipment is loaded according to default file sharing policy.
Wherein, the shared cell is specifically used for:
The file in the carry equipment is loaded by Samba service routine;
Alternatively,
The file in the carry equipment is loaded by NFS service routine;
Alternatively,
The file in the carry equipment is loaded by TFTP service routine.
Wherein, the mobile terminal further include:
System switch unit, for the current operation system to be switched to the second operation system according to system switching command System;
Second display unit, if for the mobile terminal judge the system banner of second operating system with it is described The system banner of first operating system is consistent, then monitors the mobile terminal in the carry equipment in the mobile terminal File the read-write requests time when, in the touch display screen of the mobile terminal pop-up for be arranged whether continue starting institute State the confirmation prompt of shared setting options.
Wherein, the mobile terminal further include:
Third display unit, if for the mobile terminal judge the system banner of second operating system with it is described The system banner of first operating system is inconsistent, and the mobile terminal is monitoring the mobile terminal to the carry equipment In file the read-write requests time when, in the touch display screen of the mobile terminal pop-up for be arranged it is described second operation The shared setting options of carry equipment described in system loads.
Wherein, the acquiring unit includes:
Monitoring unit, for monitoring the mobile terminal to the read-write requests event of the file in the carry equipment;
Second acquisition unit, for monitoring the mobile terminal to the file in carry equipment when the monitoring unit When read-write requests event, the system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, and the mobile terminal includes network interface, storage Device and processor, wherein batch processing code is stored in memory, and processor is for calling the program stored in memory Code, for performing the following operations:
Obtain the system banner of current operation system, the first operating system default load carry equipment of the mobile terminal In file;
If the system banner for judging the current operation system and the system banner of first operating system are inconsistent, It is then popped up in the touch display screen of the mobile terminal and loads the carry equipment for the current operation system to be arranged Shared setting options;
When monitoring to open the incoming event of the shared setting options, according to the load of default file sharing policy File in carry equipment.
Implement the embodiment of the present invention, firstly, the system mark of the current operation system of mobile terminal described in acquisition for mobile terminal Know, the file in the first operating system default load carry equipment of the mobile terminal;Secondly, if the mobile terminal judges The system banner of the current operation system and the system banner of first operating system are inconsistent out, then the mobile terminal It pops up in the touch display screen of the mobile terminal and is loaded in the carry equipment for the current operation system to be arranged The shared setting options of file;Finally, when the mobile terminal monitors to open the incoming event of the shared setting options, The mobile terminal loads the file in the carry equipment according to default file sharing policy, thus multiple behaviour of mobile terminal File in carry equipment can be shared by making system, improve the efficiency of the file in mobile terminal read-write carry equipment.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 .1 is a kind of flow chart for file sharing method that first embodiment of the invention proposes;
Fig. 1 .2 is a kind of exemplary diagram for shared setting options that first embodiment of the invention proposes;
Fig. 1 .3 is a kind of exemplary diagram of the confirmation prompt for shared setting options that first embodiment of the invention proposes;
Fig. 2 is a kind of flow chart for file sharing method that second embodiment of the invention proposes;
Fig. 3 is a kind of structural schematic diagram for mobile terminal that third embodiment of the invention proposes;
Fig. 4 is a kind of structural schematic diagram of the first acquisition unit for mobile terminal that third embodiment of the invention proposes;
Fig. 5 is the structural schematic diagram for another mobile terminal that third embodiment of the invention proposes;
Fig. 6 is the structural schematic diagram for another mobile terminal that fourth embodiment of the invention proposes.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " and " third " etc. are For distinguishing different objects, it is not use to describe a particular order.In addition, term " includes " and " having " and their any changes Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional Ground further includes the other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
The embodiment of the invention discloses a kind of file sharing method and mobile terminals, comprising: moves described in acquisition for mobile terminal The first operating system default of the system banner of the current operation system of dynamic terminal, the mobile terminal loads in carry equipment File;If the mobile terminal judges the system banner of the current operation system and the system mark of first operating system Know inconsistent, then the mobile terminal pops up in the touch display screen of the mobile terminal for the current operation system to be arranged System loads the shared setting options of the file in the carry equipment;When the mobile terminal monitors to open the shared setting When the incoming event of option, the mobile terminal loads the file in the carry equipment according to default file sharing policy.It adopts With the embodiment of the present invention, multiple operating systems of mobile terminal can share the file in carry equipment, improve mobile terminal Read and write the efficiency of the file in carry equipment.
With reference to the accompanying drawing and specific embodiment, the technical solution of the embodiment of the present invention is described in detail.
Fig. 1 .1 is please referred to, Fig. 1 .1 is a kind of flow chart for file sharing method that first embodiment of the invention proposes.Such as Shown in figure, the method in the embodiment of the present invention includes:
S101, the system banner of the current operation system of mobile terminal described in acquisition for mobile terminal, the mobile terminal File in first operating system default load carry equipment.
Wherein, above-mentioned mobile terminal for example can be any one or whole in following, and smart phone wearable is set Standby (personal maincenter), personal or mobile multimedia player, personal digital assistant (PDA), laptop computer, tablet computer, Smartbook, palmtop computer, the cellular phone for having multimedia internet function and similar personal electronic equipments, should Mobile terminal is equipped with multiple operating systems (multiple refer to is greater than or equal to two), includes the first operation in multiple operating system System, and the first operating system default load carry equipment in file, i.e., when mobile terminal work in the first operating system, Mobile terminal can read or be written file directly from above-mentioned carry equipment.
The read-write of the file in carry equipment is asked in the specific implementation, mobile terminal can periodically monitor mobile terminal Event is sought, it is mobile whole when mobile terminal monitors read-write requests event of the mobile terminal to the file in carry equipment End obtains the system banner of the current operation system of the mobile terminal.Wherein, above-mentioned monitoring cycle T can take 1ms, 10ms, Any times length such as 20ms, 30ms, 40ms, 100ms, above-mentioned read-write requests time include that file reads event or file write-in Time, system banner include operating system ID (Identity, identification number) and system property.
S102, if the mobile terminal judge the current operation system system banner and first operating system System banner it is inconsistent, then the mobile terminal is popped up in the touch display screen of the mobile terminal for described work as to be arranged Preceding operating system loads the shared setting options of the file in the carry equipment.
In the specific implementation, the mobile terminal may determine that the system banner of current operation system and first operation is Whether the system banner of system is consistent;If what mobile terminal judged the system banner of current operation system and the first operating system is System mark is consistent, then mobile terminal can read or be written file directly from carry equipment;If mobile terminal is judged The system banner of current operation system and the system banner of the first operating system are inconsistent, then mobile terminal can be in mobile terminal Touch display screen on pop-up the shared setting of the file in the carry equipment is loaded for the current operation system to be arranged Option, please participate in Fig. 1 .2, and above-mentioned shared setting options specifically can be the setting page shown in the touch display screen of mobile terminal A sub- setting options (" shared SD card " in Fig. 1 .2) in face.
S103, it is described mobile whole when the mobile terminal monitors to open the incoming event of the shared setting options End loads the file in the carry equipment according to default file sharing policy.
In the specific implementation, mobile terminal monitors input time of the user to the shared setting options popped up in step S102, If mobile terminal monitors that user does not open shared setting options and (is defaulted as not opening assuming that sharing setting options, user Shared setting options do not opened corresponding to user, any incoming event is not made to shared setting options), then mobile terminal can not add Carry the file in carry equipment;If mobile terminal monitors to open the incoming event of the shared setting options, mobile terminal The file in the carry equipment is loaded according to default file sharing policy.
Wherein, above-mentioned mobile terminal loads the specific reality of the file in the carry equipment according to default file sharing policy The mode of applying may include: that mobile terminal can load file in the carry equipment, mobile terminal by Samba service routine By NETBIOS (NetBIOS Services Protocols, network basic input/output agreement) name and mobile terminal Corresponding relationship writes in configuration file/etc/samba/lmhosts;By the setting information write-in configuration text of established catalogue In part/etc/smb.conf;Alternatively, the mobile terminal passes through NFS (Network File System, Network File System) Service routine loads the file in the carry equipment, and mobile terminal modifies configuration file/etc/ in NFS service routine Access control is arranged in exports, the information of configuration access host;Alternatively, the mobile terminal passes through TFTP (Trivial File Transfer Protocol, Simple File Transfer Protocol) service routine loads the file in the carry equipment.
Further, it is mobile after mobile terminal loads the file in the carry equipment according to default file sharing policy The current operation system can also be switched to the second operating system according to system switching command by terminal, obtain the second operation system The system banner of system, and judge the second operating system system banner and first operating system system banner whether one It causes.
If mobile terminal judges the system banner of the second operating system and the system banner of first operating system is It is consistent, then mobile terminal when monitoring read-write requests time of the mobile terminal to the file in the carry equipment, Pop-up is used to be arranged the confirmation for whether continuing starting the shared setting options and mentions in the touch display screen of the mobile terminal Show.
If mobile terminal judge the second operating system system banner and first operating system system banner not Unanimously, then the mobile terminal is monitoring the mobile terminal to the read-write requests time of the file in the carry equipment When, pop-up loads the carry equipment for second operating system to be arranged in the touch display screen of the mobile terminal Shared setting options.
Such as: mobile terminal can be mobile phone, it is assumed that the first operating system of mobile phone installation is security system (system banner For OS-1), it is also equipped with modular system (system banner OS-2) and third operating system (system banner OS-3), carry is set Standby is SD card, and photo i is stored in SD card, and security system default loads the SD card, and mobile phone is currently operating in modular system.When When mobile phone monitors read requests of the mobile phone to picture i, mobile phone obtains the system banner OS-2 of modular system, and judges that this is System mark OS-2 and the system banner OS-1 of the security system of default load SD card are inconsistent, and mobile phone is shown in touch display screen The shared setting options of " shared SD card " as are shown in figure 1.2, mobile phone further monitor that user opens the shared setting choosing The touch event of item loads the picture i in SD card by the Samba service routine installed in each operating system, to realize Reading to picture i.Mobile phone further obtains the system switching command of switch mobile phone operating system to security system, then mobile phone Modular system is switched into security system, and judges the system banner OS-1 of system banner OS-1 and security system after switching Unanimously, when mobile phone requests to read picture i again, mobile phone pops up whether be used for setting as shown in Fig. 1 .3 in touch display screen Continue starting the confirmation prompt of the shared setting options.
In embodiments of the present invention, firstly, the system mark of the current operation system of mobile terminal described in acquisition for mobile terminal Know, the file in the first operating system default load carry equipment of the mobile terminal;Secondly, if the mobile terminal judges The system banner of the current operation system and the system banner of first operating system are inconsistent out, then the mobile terminal It pops up in the touch display screen of the mobile terminal and is loaded in the carry equipment for the current operation system to be arranged The shared setting options of file;Finally, when the mobile terminal monitors to open the incoming event of the shared setting options, The mobile terminal loads the file in the carry equipment according to default file sharing policy, thus multiple behaviour of mobile terminal File in carry equipment can be shared by making system, improve the efficiency of the file in mobile terminal read-write carry equipment.
Referring to FIG. 2, Fig. 2 is a kind of flow chart for file sharing method that second embodiment of the invention proposes.As schemed Show, the method in the embodiment of the present invention includes:
S201, mobile terminal monitor the mobile terminal to the read-write requests event of the file in the carry equipment.
S202, when the mobile terminal monitors the mobile terminal to the read-write requests event of the file in carry equipment When, the system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal.Wherein, system banner includes operation System identifier (Identity, identification number) and system property.
Wherein, above-mentioned mobile terminal for example can be any one or whole in following, and smart phone wearable is set Standby (personal maincenter), personal or mobile multimedia player, personal digital assistant (PDA), laptop computer, tablet computer, Smartbook, palmtop computer, the cellular phone for having multimedia internet function and similar personal electronic equipments, should Mobile terminal is equipped with multiple operating systems (multiple refer to is greater than or equal to two), includes the first operation in multiple operating system System, and the first operating system default load carry equipment in file, i.e., when mobile terminal work in the first operating system, Mobile terminal can read or be written file directly from above-mentioned carry equipment.
The read-write of the file in carry equipment is asked in the specific implementation, mobile terminal can periodically monitor mobile terminal Event is sought, it is mobile whole when mobile terminal monitors read-write requests event of the mobile terminal to the file in carry equipment End obtains the system banner of the current operation system of the mobile terminal.Wherein, above-mentioned monitoring cycle T can take 1ms, 10ms, Any times length such as 20ms, 30ms, 40ms, 100ms, above-mentioned read-write requests time include that file reads event or file write-in Time, system banner include operating system ID (Identity, identification number) and system property.
S203, if the mobile terminal judge the current operation system system banner and first operating system System banner it is inconsistent, then the mobile terminal is popped up in the touch display screen of the mobile terminal for described work as to be arranged Preceding operating system loads the shared setting options of the file in the carry equipment.
In the specific implementation, the mobile terminal may determine that the system banner of current operation system and first operation is Whether the system banner of system is consistent;If what mobile terminal judged the system banner of current operation system and the first operating system is System mark is consistent, then mobile terminal can read or be written file directly from carry equipment;If mobile terminal is judged The system banner of current operation system and the system banner of the first operating system are inconsistent, then mobile terminal can be in mobile terminal Touch display screen on pop-up the shared setting of the file in the carry equipment is loaded for the current operation system to be arranged Option, please participate in Fig. 1 .2, and above-mentioned shared setting options specifically can be the setting page shown in the touch display screen of mobile terminal A sub- setting options (" shared SD card " in Fig. 1 .2) in face.
S204, it is described mobile whole when the mobile terminal monitors to open the incoming event of the shared setting options End loads the file in the carry equipment according to default file sharing policy.
In the specific implementation, mobile terminal monitors input time of the user to the shared setting options popped up in step S102, If mobile terminal monitors that user does not open shared setting options and (is defaulted as not opening assuming that sharing setting options, user Shared setting options do not opened corresponding to user, any incoming event is not made to shared setting options), then mobile terminal can not add Carry the file in carry equipment;If mobile terminal monitors to open the incoming event of the shared setting options, mobile terminal The file in the carry equipment is loaded according to default file sharing policy.
Wherein, above-mentioned mobile terminal loads the specific reality of the file in the carry equipment according to default file sharing policy The mode of applying may include: that mobile terminal loads file in the carry equipment by Samba service routine;Alternatively, the shifting Dynamic terminal loads the file in the carry equipment by NFS service routine;Alternatively, the mobile terminal services journey by TFTP Sequence loads the file in the carry equipment.
The current operation system is switched to the second operating system according to system switching command by S205, mobile terminal.
S206, if the mobile terminal judge second operating system system banner and first operating system System banner it is consistent, then the mobile terminal is monitoring read-write of the mobile terminal to the file in the carry equipment When request time, the mobile terminal is popped up in the touch display screen of the mobile terminal for being arranged whether continue starting institute State the confirmation prompt of shared setting options.
S207, if the mobile terminal judge second operating system system banner and first operating system System banner it is inconsistent, then the mobile terminal is monitoring reading of the mobile terminal to the file in the carry equipment When the write request time, the mobile terminal is popped up in the touch display screen of the mobile terminal for second operation to be arranged The shared setting options of carry equipment described in system loads.
Such as: mobile terminal can be mobile phone, it is assumed that the first operating system of mobile phone installation is security system (system banner For OS-1), it is also equipped with modular system (system banner OS-2) and third operating system (system banner OS-3), carry is set Standby is SD card, and photo i is stored in SD card, and security system default loads the SD card, and mobile phone is currently operating in modular system.When When mobile phone monitors read requests of the mobile phone to picture i, mobile phone obtains the system banner OS-2 of modular system, and judges that this is System mark OS-2 and the system banner OS-1 of the security system of default load SD card are inconsistent, and mobile phone is shown in touch display screen The shared setting options of " shared SD card " as are shown in figure 1.2, mobile phone further monitor that user opens the shared setting choosing The touch event of item loads the picture i in SD card by the Samba service routine installed in each operating system, to realize Reading to picture i.Mobile phone further obtains the system switching command of switch mobile phone operating system to security system, then mobile phone Modular system is switched into security system, and judges the system banner OS-1 of system banner OS-1 and security system after switching Unanimously, when mobile phone requests to read picture i again, mobile phone pops up whether be used for setting as shown in Fig. 1 .3 in touch display screen Continue starting the confirmation prompt of the shared setting options.
In embodiments of the present invention, firstly, the system mark of the current operation system of mobile terminal described in acquisition for mobile terminal Know, the file in the first operating system default load carry equipment of the mobile terminal;Secondly, if the mobile terminal judges The system banner of the current operation system and the system banner of first operating system are inconsistent out, then the mobile terminal It pops up in the touch display screen of the mobile terminal and is loaded in the carry equipment for the current operation system to be arranged The shared setting options of file;Finally, when the mobile terminal monitors to open the incoming event of the shared setting options, The mobile terminal loads the file in the carry equipment according to default file sharing policy, thus multiple behaviour of mobile terminal File in carry equipment can be shared by making system, improve the efficiency of the file in mobile terminal read-write carry equipment.
Referring to FIG. 3, Fig. 3 is the structural schematic diagram for the mobile terminal that third embodiment of the invention proposes.As shown, this Mobile terminal in inventive embodiments includes:
First acquisition unit 301, the system banner of the current operation system for obtaining mobile terminal, the mobile terminal The first operating system default load carry equipment in file.
Wherein, above-mentioned mobile terminal for example can be any one or whole in following, and smart phone wearable is set Standby (personal maincenter), personal or mobile multimedia player, personal digital assistant (PDA), laptop computer, tablet computer, Smartbook, palmtop computer, the cellular phone for having multimedia internet function and similar personal electronic equipments, should Mobile terminal is equipped with multiple operating systems (multiple refer to is greater than or equal to two), includes the first operation in multiple operating system System, and the first operating system default load carry equipment in file, i.e., when mobile terminal work in the first operating system, Mobile terminal can read or be written file directly from above-mentioned carry equipment.
In the specific implementation, as shown in figure 4, first acquisition unit 301 can further include:
Monitoring unit 401, for monitoring the mobile terminal to the read-write requests event of the file in the carry equipment;
Second acquisition unit 402, for monitoring the mobile terminal in carry equipment when the monitoring unit 401 When the read-write requests event of file, the system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal.
The periodically monitoring mobile terminal of above-mentioned monitoring unit 401 to the read-write requests event of the file in carry equipment, When above-mentioned monitoring unit 401 monitors read-write requests event of the mobile terminal to the file in carry equipment, above-mentioned Two acquiring units 402 obtain the system banner of the current operation system of the mobile terminal.Wherein, above-mentioned monitoring unit 401 Monitoring cycle T can take any times length such as 1ms, 10ms, 20ms, 30ms, 40ms, 100ms, above-mentioned read-write requests time packet File is included to read event or file write time, system banner include operating system ID (Identity, identification number) and System property.
First display unit 302, for judge in the mobile terminal system banner of the current operation system with When the system banner of first operating system is inconsistent, pop-up is for being arranged in the touch display screen of the mobile terminal State the shared setting options for the file that current operation system loads in the carry equipment.
In the specific implementation, mobile terminal may determine that current operation system system banner and first operating system Whether system banner is consistent;If mobile terminal judges the system banner of current operation system and the system mark of the first operating system Knowledge is consistent, then mobile terminal can read or be written file directly from carry equipment;If mobile terminal is judged currently The system banner of operating system and the system banner of the first operating system are inconsistent, then the first display unit 302 can be in movement It is popped up in the touch display screen of terminal and loads the shared of file in the carry equipment for the current operation system to be arranged Setting options, please participate in Fig. 1 .2, and above-mentioned shared setting options specifically can be setting of showing in the touch display screen of mobile terminal Set a sub- setting options (" shared SD card " in Fig. 1 .2) in the page.
Shared cell 303, for when the mobile terminal monitors to open the incoming event of the shared setting options, The file in the carry equipment is loaded according to default file sharing policy.
In the specific implementation, mobile terminal monitors input time of the user to the shared setting options popped up in step S102, If mobile terminal monitors that user does not open shared setting options and (is defaulted as not opening assuming that sharing setting options, user Shared setting options do not opened corresponding to user, any incoming event is not made to shared setting options), then mobile terminal can not add Carry the file in carry equipment;If mobile terminal monitors to open the incoming event of the shared setting options, shared cell 303 load the file in the carry equipment according to default file sharing policy.
Wherein, above-mentioned shared cell 303 loads the tool of the file in the carry equipment according to default file sharing policy Body embodiment may include: that shared cell 303 loads file in the carry equipment by Samba service routine;Alternatively, Shared cell 303 loads the file in the carry equipment by NFS service routine;Alternatively, shared cell 303 is taken by TFTP Business program loads the file in the carry equipment.
Optionally, as shown in figure 5, mobile terminal further can also include:
System switch unit 501, for the current operation system to be switched to the second operation according to system switching command System;
Second display unit 502, if for the mobile terminal judge the system banner of second operating system with The system banner of first operating system is consistent, then monitors that the mobile terminal sets the carry in the mobile terminal When the read-write requests time of the file in standby, whether pop-up continues out for being arranged in the touch display screen of the mobile terminal Open the confirmation prompt of the shared setting options.
Third display unit 503, if for the mobile terminal judge the system banner of second operating system with The system banner of first operating system is inconsistent, and the mobile terminal is monitoring the mobile terminal to the carry When the read-write requests time of the file in equipment, pop-up is for being arranged described second in the touch display screen of the mobile terminal Operating system loads the shared setting options of the carry equipment.
In embodiments of the present invention, the system mark of the current operation system of mobile terminal described in acquisition for mobile terminal first Know, the file in the first operating system default load carry equipment of the mobile terminal;Secondly, if the mobile terminal judges The system banner of the current operation system and the system banner of first operating system are inconsistent out, then the mobile terminal It pops up in the touch display screen of the mobile terminal and is loaded in the carry equipment for the current operation system to be arranged The shared setting options of file;Finally, when the mobile terminal monitors to open the incoming event of the shared setting options, The mobile terminal loads the file in the carry equipment according to default file sharing policy, thus multiple behaviour of mobile terminal File in carry equipment can be shared by making system, improve the efficiency of the file in mobile terminal read-write carry equipment.
Fig. 6 is the structural schematic diagram for another mobile terminal that fourth embodiment of the invention proposes.As shown, the device It may include: at least one processor 601, such as CPU, at least one receiver 603, at least one processor 604, at least one A transmitter 605, at least one communication bus 602.Wherein, communication bus 602 is logical for realizing the connection between these components Letter.Wherein, the receiver 603 of device and transmitter 605 can be wired sending port in the embodiment of the present invention, or nothing Line equipment, for example including antenna assembly, for carrying out the communication of signaling or data with other node devices.Memory 604 can be with It is high speed RAM memory, is also possible to non-labile memory (non-volatile memory), for example, at least a magnetic Disk storage.Memory 604 optionally can also be that at least one is located remotely from the storage device of aforementioned processor 601.Storage Store batch processing code in device 604, and processor 601 is for calling the program code stored in memory, for execute with Lower operation:
The system banner of the current operation system of mobile terminal described in acquisition for mobile terminal, the first behaviour of the mobile terminal Make the file in system default load carry equipment;
If what the mobile terminal judged the system banner of the current operation system and first operating system is System mark is inconsistent, then the mobile terminal pops up in the touch display screen of the mobile terminal for the current behaviour to be arranged Make the shared setting options of the file in carry equipment described in system loads;
When the mobile terminal monitors to open the incoming event of the shared setting options, the mobile terminal according to Default file sharing policy loads the file in the carry equipment.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentioned The combination of actions of column, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because For according to the present invention, certain some step can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, reference can be made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: flash disk, read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English Text: Random Access Memory, referred to as: RAM), disk or CD etc..
It is provided for the embodiments of the invention file sharing method above and relevant device is described in detail, herein Apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help Understand method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (7)

1. a kind of file sharing method, which is characterized in that the described method includes:
The system banner of the current operation system of mobile terminal described in acquisition for mobile terminal, the first operation system of the mobile terminal File in system default load carry equipment, the system banner includes operating system identification number ID;
If the mobile terminal judges the system banner of the current operation system and the system mark of first operating system Know inconsistent, then the mobile terminal pops up in the touch display screen of the mobile terminal for the current operation system to be arranged System loads the shared setting options of the file in the carry equipment;
When the mobile terminal monitors to open the incoming event of the shared setting options, the mobile terminal is according to default File-sharing strategy loads the file in the carry equipment;
It includes: the mobile terminal that the mobile terminal, which loads the file in the carry equipment according to default file sharing policy, The file in the carry equipment is loaded by Samba service routine;Alternatively, the mobile terminal is added by NFS service routine Carry the file in the carry equipment;Alternatively, the mobile terminal is loaded in the carry equipment by TFTP service routine File;
The system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal, comprising: the mobile terminal prison The mobile terminal is surveyed to the read-write requests event of the file in the carry equipment;
When the mobile terminal monitors read-write requests event of the mobile terminal to the file in carry equipment, the shifting Dynamic terminal obtains the system banner of the current operation system of the mobile terminal.
2. the method as described in claim 1, which is characterized in that the mobile terminal loads institute according to default file sharing policy After stating the file in carry equipment, further includes:
The current operation system is switched to the second operating system according to system switching command by the mobile terminal;
If the mobile terminal judges the system banner of second operating system and the system mark of first operating system Know unanimously, then the mobile terminal is monitoring the mobile terminal to the read-write requests time of the file in the carry equipment When, the mobile terminal is popped up in the touch display screen of the mobile terminal and is set for whether setting to continue starting described share Set the confirmation prompt of option.
3. method according to claim 2, which is characterized in that further include:
If the mobile terminal judges the system banner of second operating system and the system mark of first operating system Know inconsistent, then the mobile terminal is when monitoring read-write requests of the mobile terminal to the file in the carry equipment Between when, the mobile terminal is popped up in the touch display screen of the mobile terminal for second operating system load to be arranged The shared setting options of the carry equipment.
4. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First acquisition unit, the system banner of the current operation system for obtaining mobile terminal, the first of the mobile terminal File in operating system default load carry equipment, the system banner includes operating system identification number ID;
First display unit, for judging the system banner and described first of the current operation system in the mobile terminal When the system banner of operating system is inconsistent, pop-up is for being arranged the current behaviour in the touch display screen of the mobile terminal Make the shared setting options of the file in carry equipment described in system loads;
Shared cell, for when the mobile terminal monitors to open the incoming event of the shared setting options, according to pre- If file-sharing strategy loads the file in the carry equipment;
The shared cell is specifically used for: loading the file in the carry equipment by Samba service routine;Alternatively, passing through NFS service routine loads the file in the carry equipment;Alternatively, being loaded in the carry equipment by TFTP service routine File;
The first acquisition unit includes: monitoring unit, for monitoring the mobile terminal to the file in the carry equipment Read-write requests event;Second acquisition unit, for monitoring the mobile terminal in carry equipment when the monitoring unit File read-write requests event when, the system banner of the current operation system of mobile terminal described in the acquisition for mobile terminal.
5. mobile terminal as claimed in claim 4, which is characterized in that the mobile terminal further include:
System switch unit, for the current operation system to be switched to the second operating system according to system switching command;
Second display unit, if judging the system banner and described first of second operating system for the mobile terminal The system banner of operating system is consistent, then monitors the mobile terminal to the text in the carry equipment in the mobile terminal When the read-write requests time of part, whether pop-up continues starting described total for setting in the touch display screen of the mobile terminal Enjoy the confirmation prompt of setting options.
6. mobile terminal as claimed in claim 5, which is characterized in that the mobile terminal further include:
Third display unit, if judging the system banner and described first of second operating system for the mobile terminal The system banner of operating system is inconsistent, and the mobile terminal is monitoring the mobile terminal in the carry equipment When the read-write requests time of file, pop-up is for being arranged second operating system in the touch display screen of the mobile terminal Load the shared setting options of the carry equipment.
7. a kind of mobile terminal, which is characterized in that the mobile terminal includes network interface, memory and processor, wherein Batch processing code is stored in memory, and processor is such as weighed for calling the program code stored in memory for executing Benefit requires the step in 1-3 either method.
CN201510142575.1A 2015-03-27 2015-03-27 A kind of file sharing method and mobile terminal Expired - Fee Related CN105577904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510142575.1A CN105577904B (en) 2015-03-27 2015-03-27 A kind of file sharing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510142575.1A CN105577904B (en) 2015-03-27 2015-03-27 A kind of file sharing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105577904A CN105577904A (en) 2016-05-11
CN105577904B true CN105577904B (en) 2019-04-12

Family

ID=55887538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510142575.1A Expired - Fee Related CN105577904B (en) 2015-03-27 2015-03-27 A kind of file sharing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105577904B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804709B (en) * 2018-06-22 2021-01-01 新华三云计算技术有限公司 Method and device for processing lock management message of shared file system and server
CN112506819B (en) * 2019-08-26 2022-04-15 成都鼎桥通信技术有限公司 Dual-system-based external equipment control method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477511A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Method and apparatus for sharing memory medium between multiple operating systems
CN104156658A (en) * 2014-07-30 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal and dual-system based data access method and device thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007509387A (en) * 2003-09-30 2007-04-12 ジャルナ エスアー operating system
CN101059768B (en) * 2006-04-17 2011-01-05 北京软通科技有限责任公司 System and method for implementing operating system standby
JP5491972B2 (en) * 2010-06-04 2014-05-14 日本電信電話株式会社 Duplex server system, file operation method, and file operation program
CN101894042B (en) * 2010-06-24 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Realization method for sharing application among a plurality of operating systems, system and mobile terminal
AU2011202837B2 (en) * 2010-12-21 2013-08-22 Lg Electronics Inc. Mobile terminal and method of controlling a mode switching therein
CN106095524B (en) * 2011-12-22 2019-04-02 中国移动通信集团公司 A kind of virtual machine deployment method, system and device
CN103034616B (en) * 2012-12-07 2015-09-09 中国科学院声学研究所 A kind of method, computing machine of multiple operating system access storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477511A (en) * 2008-12-31 2009-07-08 杭州华三通信技术有限公司 Method and apparatus for sharing memory medium between multiple operating systems
CN104156658A (en) * 2014-07-30 2014-11-19 深圳市中兴移动通信有限公司 Mobile terminal and dual-system based data access method and device thereof

Also Published As

Publication number Publication date
CN105577904A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
US20140208328A1 (en) Method for terminal acceleration, terminal and storage medium
CN105376107B (en) Terminal testing method and proxy server
EP3016296B1 (en) Bluetooth communication method and bluetooth communication device
US9692846B2 (en) System, device and method for providing push service using feedback message
CN102043645B (en) Plug-in loading method and device
CN113805962B (en) Application page display method and device and electronic equipment
CN102135895B (en) System upgrading method and system
CN102821111A (en) Real-time synchronizing method for file cloud storage
CN105487640A (en) Image pre-loading and caching method of Android watch
CN110515762A (en) Data reconstruction method, device, terminal device and storage medium
CN105577904B (en) A kind of file sharing method and mobile terminal
CN108959046A (en) A kind of information processing method, equipment and device
EP3832460A1 (en) Method and apparatus for displaying application program, and terminal device
CN108509236A (en) Subject replacement method and device, face identification system subject replacement method and device
CN104424306A (en) Method, device and terminal equipment for recording log
CN106648488B (en) A kind of terminal and its display methods
CN107168648B (en) File storage method and device and terminal
CN112817493B (en) Content sharing method and device, computer equipment and storage medium
CN109033235A (en) A kind of data storage dual-active framework construction method, system, medium and electronic equipment
CN104580672A (en) Information processing method and electronic equipment
CN104657043A (en) Multimedia data backup method, user terminal and synchronous device
CN113901374A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN107357524B (en) File storage method, file reading method and electronic equipment
CN111079049A (en) Display content processing method and device of terminal equipment and storage medium
EP2624176A1 (en) Menu assembly method, menu assembly system and terminal

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190412