WO2015070582A1 - 文件共享方法、装置及移动设备 - Google Patents

文件共享方法、装置及移动设备 Download PDF

Info

Publication number
WO2015070582A1
WO2015070582A1 PCT/CN2014/077872 CN2014077872W WO2015070582A1 WO 2015070582 A1 WO2015070582 A1 WO 2015070582A1 CN 2014077872 W CN2014077872 W CN 2014077872W WO 2015070582 A1 WO2015070582 A1 WO 2015070582A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile device
shared
file
network
sharing
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.)
Ceased
Application number
PCT/CN2014/077872
Other languages
English (en)
French (fr)
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.)
Chengdu Kingsoft Digital Entertainment Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Chengdu Kingsoft Digital Entertainment Co Ltd
Zhuhai Kingsoft Online Game Technology 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
Priority claimed from CN201310577442.8A external-priority patent/CN104660624B/zh
Application filed by Chengdu Kingsoft Digital Entertainment Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Chengdu Kingsoft Digital Entertainment Co Ltd
Priority to DK14853130.4T priority Critical patent/DK2922276T3/en
Priority to JP2015548186A priority patent/JP6306606B2/ja
Priority to ES14853130.4T priority patent/ES2687920T3/es
Priority to EP14853130.4A priority patent/EP2922276B1/en
Priority to US14/442,486 priority patent/US10089094B2/en
Priority to KR1020157013581A priority patent/KR101777305B1/ko
Priority to TW103139972A priority patent/TWI614614B/zh
Publication of WO2015070582A1 publication Critical patent/WO2015070582A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0263Rule management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of data sharing, and in particular, to a file sharing method, device, and mobile device. Background technique
  • the user can log in to a website on the Internet through a browser in the mobile device, download the installation package of the required application to the local device of the mobile device, and then install it. For example, if the user downloads the installation package of the game software from the APP website and then installs the installation package of the game software, the user can start playing the game.
  • the friend can tell the friend the name of the application and download the website, so that the friend can log in to the browser to find the website, and then download the installation package of the application.
  • the friend can also scan the mobile device to display the QR code about the application displayed on the user's mobile device, thereby downloading the installation package of the application.
  • the embodiment of the present application discloses a file sharing method, device, and mobile device, so as to quickly generate a network traffic without installing any software or plug-in having a file sharing function on the shared file receiving end. Share files to improve the user experience.
  • the technical solutions are as follows:
  • the embodiment of the present application provides a file sharing method, which is applicable to a first mobile device, where the method includes:
  • the browser-based network request sent by the second mobile device is intercepted and redirected, and the to-be-shared file is used as a result of the request corresponding to the network request and sent to the second mobile device.
  • the method before the network connection with the second mobile device that is requested to be shared by the network, the method further includes:
  • the sharing instruction for the file to be shared is obtained, when the application is in an open state, when the operation for indicating the shared file is sent based on the application, where the file to be shared is the Apply the corresponding file.
  • the method further includes:
  • a file selection interface is displayed to indicate that the user selects a file that needs to be shared, where the file selection page includes a shareable file stored by the first mobile device;
  • the file selected by the user and required to be shared is used as a file to be shared.
  • the method further includes: acquiring a shared installation webpage of the file to be shared; wherein the shared installation webpage includes a download link to the file to be shared;
  • the file to be shared is used as a result of the request corresponding to the network request, and is sent to
  • the second mobile device includes:
  • the file to be shared corresponding to the download request is sent to the second mobile device.
  • the sharing instruction for the file to be shared is obtained, when the application is in an open state, when the operation for indicating the shared file is sent based on the application, where the file to be shared is the Apply the corresponding file;
  • the acquiring the shared installation webpage of the file to be shared includes:
  • the acquiring the shared installation webpage of the file to be shared includes:
  • a file selection interface is displayed to indicate that the user selects a file that needs to be shared, where the file selection page includes a shareable file stored by the first mobile device;
  • a file to be shared selected by the user is used as a file to be shared, and a shared installation webpage for the file to be shared is generated, wherein the shared installation webpage includes a download link to the file to be shared.
  • the intercepting and redirecting the browser-based network request sent by the second mobile device comprises:
  • the network request is redirected.
  • the second mobile is intercepted and redirected by setting a rule of iptables in an operating system of the first mobile device.
  • the process of setting a rule of iptables in an operating system of the first mobile device includes:
  • the target first port of the browser-based network request of the second mobile device Adding to the iptables of the first mobile device, the target first port of the browser-based network request of the second mobile device, and the intercepted first of the first mobile device a rule that the browser-based network request sent by the mobile device is redirected to the predetermined second port of the first mobile device;
  • the intercepting and redirecting the browser-based network request sent by the second mobile device includes:
  • the intercepted network request is redirected to the second port of the first mobile device to send the corresponding request result of the network request to the second mobile device through the second port.
  • the browser-based network sent by the second mobile device is intercepted and redirected by mounting the written kernel module. request.
  • the process of mounting the written kernel module includes:
  • the kernel module prepared by using the netfilter framework is loaded into the operating system kernel of the first mobile device, so as to add a hook point in the IP layer in the network architecture, where the hook point is intercepted by the hook point.
  • the target port of the first mobile device is a network request of the second mobile device of the predetermined first port, and the destination IP in the network request can be modified to the IP address of the first mobile device and the destination port is Modifying to the predetermined second port of the first mobile device; correspondingly, the intercepting and redirecting the browser-based network request sent by the second mobile device includes:
  • the destination port is modified to be the second port of the first mobile device, to send a request result corresponding to the network request to the second through the second port Mobile devices.
  • the method further includes:
  • the intercepting and redirecting the browser-based network request sent by the second mobile device includes:
  • the WEB module obtains a browser-based network request of the second mobile device.
  • the network connection with the second mobile device that is requested to be shared by the network includes: instructing the user to select a second shareable device that is sharable from the second mobile device that requests the network share;
  • the method further includes:
  • the intercepting and redirecting the browser-based network request sent by the second mobile device includes:
  • the network sharing function of the first mobile device includes: at least one of a WLAN hotspot function, a Bluetooth network sharing function, and a USB network sharing function.
  • the initiating the network sharing function in the first mobile device includes: determining whether a WLAN hotspot function exists, and if yes, starting the WLAN hotspot function; otherwise,
  • the file to be shared corresponds to a shared installation webpage, where the shared installation
  • the webpage includes a download link to at least one operating system pointing to the file to be shared, and each download link points to a file to be shared for one operating system;
  • the sending by the second mobile device, the file to be shared corresponding to the download request, including: determining, according to the download request, a first operating system run by the second mobile device; and performing, to the second mobile device Transmitting, to the download request, a file to be shared for the first operating system;
  • the file to be shared corresponds to at least one shared installation webpage, where each shared installation webpage includes a download link for an operating system that points to the file to be shared;
  • the sending the webpage as the result of the request corresponding to the network request and sending the result to the second mobile device includes:
  • the embodiment of the present application further provides a file sharing device, which is applicable to a first mobile device, where the file sharing device includes:
  • a shared instruction acquisition module configured to acquire a sharing instruction for a file to be shared
  • a network connection module configured to: after the network sharing function of the first mobile device is started, perform network connection with a second mobile device that requests the network to share;
  • a network request processing module configured to intercept and redirect a browser-based network request sent by the second mobile device
  • the to-be-shared file processing module is configured to send the file to be shared as a request result corresponding to the network request to the second mobile device.
  • the file sharing device further includes:
  • a network sharing function startup module configured to start a network sharing function of the first mobile device before performing a network connection with the second mobile device that requests the network share.
  • the sharing instruction acquiring module includes:
  • a first shared instruction acquisition unit configured to detect a base during an application being in an open state And obtaining, by the application, a sharing instruction for the file to be shared, where the file to be shared is a file corresponding to the application.
  • the sharing instruction acquiring module includes:
  • a second sharing instruction acquiring unit configured to obtain a sharing instruction for the file to be shared when detecting an operation for indicating the shared file
  • the device also includes:
  • a file to be shared determining module configured to display a file selection interface to indicate that the user selects a file to be shared, before the file to be shared is used as a result of the request corresponding to the network request and sent to the second mobile device, where
  • the file selection page includes a sharable file stored by the first mobile device; and the file selected by the user to be shared is used as a file to be shared.
  • the file sharing device further includes:
  • a shared installation webpage obtaining module configured to obtain a shared installation webpage of the file to be shared after obtaining the sharing instruction for the file to be shared; wherein the shared installation webpage includes a download link to the file to be shared;
  • the file processing module to be shared includes:
  • a shared installation webpage sending unit configured to send the shared installation webpage as a result of the request corresponding to the network request, and send the result to the second mobile device
  • a to-be-shared file processing unit configured to send, after the download request formed by the second mobile device based on the download link of the shared installation webpage, the download request corresponding to the second mobile device shared documents.
  • the sharing instruction acquiring module includes:
  • a first sharing instruction acquiring unit configured to acquire, when the application is in an open state, a sharing instruction for the file to be shared, based on the operation for indicating the shared file issued by the application, where the to-be-shared
  • the file is a file corresponding to the application
  • the shared installation webpage obtaining module includes:
  • a first shared installation webpage obtaining unit configured to acquire a pre-built shared installation webpage in the application after acquiring a sharing instruction for the file to be shared; wherein the shared installation webpage includes a download to the file to be shared link.
  • the sharing instruction acquiring module includes: a second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when detecting an operation for indicating the shared file;
  • the shared installation webpage obtaining module includes:
  • a second shared installation webpage obtaining unit configured to: after the sharing instruction for the file to be shared, display a file selection interface, to indicate that the user selects a file to be shared, where the file selection page includes the first mobile device After the file to be shared is selected, a shared installation webpage for the file to be shared is generated; wherein the shared installation webpage includes a download link to the file to be shared.
  • the network request processing module includes:
  • a network request intercepting unit configured to intercept a browser-based network request sent by the second mobile device
  • a determining unit configured to determine whether the network request is a preset first network request
  • a network request redirection unit configured to: when it is determined that the network request is a preset first network request, The network request is redirected.
  • the network request processing module is configured to: when a current user name of an operating system of the first mobile device has administrator rights, set a rule of iptables in an operating system of the first mobile device And intercepting and redirecting the browser-based network request sent by the second mobile device.
  • the network request processing module is configured to intercept and redirect the second mobile by attaching the written kernel module when the current user name of the operating system of the first mobile device has administrator rights.
  • a browser-based network request sent by the device is configured to intercept and redirect the second mobile by attaching the written kernel module when the current user name of the operating system of the first mobile device has administrator rights.
  • the file sharing device further includes:
  • a page display module configured to: after the sharing instruction for the file to be shared, display a page including the IP address and the access mode of the first mobile device, to indicate that the user corresponding to the second mobile device is in the Entering an IP address of the first mobile device in an address bar in a browser of the mobile device;
  • the network request processing module is configured to obtain, by the WEB module built in the first mobile device, the second mobile device based on when a current user name of an operating system of the first mobile device does not have administrator rights Browser network request.
  • the network connection module includes:
  • a selecting unit configured to instruct the user to select a second mobile device that can be shared from the second mobile device that requests the network sharing;
  • the file sharing device further includes:
  • a selection module configured to select, by the user, a second mobile device that is sharable from a second device that is in a network connection state after performing a network connection with the second mobile device that requests the network share;
  • the network request processing module includes:
  • a network request intercepting unit configured to intercept a browser-based network request sent by the second mobile device
  • a network request processing unit configured to determine whether the second mobile device is a second mobile device that is sharable, and if yes, redirect a browser-based network request sent by the second mobile device.
  • the network sharing function of the first mobile device includes: at least one of a WLAN hotspot function, a Bluetooth network sharing function, and a USB network sharing function.
  • the network sharing function startup module is configured to determine whether a WLAN hotspot function exists, and if yes, activate the WLAN hotspot function; otherwise, determine whether a Bluetooth network sharing function exists, and if yes, activate the Bluetooth network sharing function; Otherwise, the USB network sharing function is activated.
  • the file to be shared corresponds to a shared installation webpage, where the shared installation webpage includes a download link to at least one operating system that points to the file to be shared, and each download link points to an operating system.
  • the file processing unit to be shared includes:
  • An operating system determining subunit configured to determine, according to the download request, a first operation performed by the second mobile device after receiving the download request sent by the second mobile device through the download link of the shared installation webpage operating system;
  • a to-be-shared file sending subunit configured to send, to the second mobile device, a file to be shared corresponding to the first operating system corresponding to the download request;
  • the file to be shared corresponds to at least one shared installation webpage, where each shared installation webpage includes a download link for an operating system that points to the file to be shared;
  • the shared installation webpage sending unit includes:
  • An operating system determining subunit configured to determine, according to the network request, a first operating system that is operated by the second mobile device
  • the shared installation webpage sending subunit is configured to send the shared installation webpage corresponding to the first operating system as a result of the request corresponding to the network request, and send the result to the second mobile device.
  • the embodiment of the present application further provides a mobile device, including: any file sharing device provided by the embodiment of the present application.
  • the second mobile device does not need to install any software or plug-in with file sharing function before sharing the file
  • the first mobile device can intercept the browser-based network request sent by the second mobile device and redirect, and then to be shared.
  • the file is sent to the second mobile device as the result of the request corresponding to the network request, so that the file sharing end does not need to install any software or plug-in with file sharing function, and the file is quickly shared by not generating network traffic, thereby improving the file.
  • FIG. 1 is a first flowchart of a file sharing method according to an embodiment of the present application
  • FIG. 2 is a second flowchart of a file sharing method according to an embodiment of the present application
  • FIG. 4 is a fourth flowchart of a file sharing method according to an embodiment of the present application
  • Schematic diagram of the file sharing device
  • the file sharing method is provided in the embodiment of the present application, in order to improve the user experience by rapidly sharing files in a manner that does not generate network traffic on the shared file receiving end. , devices and mobile devices.
  • a file sharing method provided by the embodiment of the present application is first described below.
  • the file sharing method provided by the embodiment of the present application is applicable to a first mobile device having a network sharing function, where the network sharing function of the first mobile device includes:
  • the first mobile device can be a mobile phone, a notebook computer, a tablet computer, or the like.
  • the function software for implementing the file sharing method may be a shared function module built in an application, or may exist in an application through a plug-in form, and may also be installed in the first mobile device for providing file sharing.
  • Functional client software this is all reasonable.
  • the first mobile device is an Apple mobile phone.
  • the mobile phone is installed with the game pack application, and the installation package of the game pack application can be saved in a specific folder; when the user wants to recommend the game to the gods list game
  • the installation package of the gods game application is a file to be shared, wherein the function software for realizing the sharing method of the installation package may be a shared function module in the game application of the gods list, or The plug-in form exists in the application of the gods list game.
  • it can also be separated from the application of the gods list game, and another client software for providing file sharing, which is reasonable.
  • a file sharing method may include:
  • the user holding the first mobile device can perform a specific operation to send a sharing instruction, so that the first mobile device can acquire the file for the file to be shared. Share instructions.
  • the function software that implements the file sharing method is a shared function module built in an application or exists in an application through a plug-in form
  • the application when it is detected based on the
  • the sharing instruction for the file to be shared is obtained, where the file to be shared is the file corresponding to the application;
  • the first mobile device after the user holding the first mobile device clicks the button of “One Button Sharing” displayed on a certain page of the opened application, the first mobile device acquires a sharing instruction for the file to be shared, where the waiting
  • the shared file is an installation package corresponding to the application that is in the open state, and is of course not limited thereto.
  • the function software implementing the file sharing method is the client software for providing the file sharing function installed in the first mobile device
  • the acquisition is performed for The sharing instruction of the file to be shared; for example, after the user clicks the button of "one button sharing" in the client software, the first mobile device acquires a sharing instruction for the file to be shared, which is of course not limited thereto.
  • the button for indicating the shared file can be sunk after being pressed, and after being pressed again, the button will pop up, and the network sharing function of the first mobile device is turned off. .
  • the user holding the second mobile device can scan the first mobile device by using the second mobile device, and then request network sharing, and the first mobile device can request the network.
  • the shared second mobile device makes a network connection.
  • the first mobile device can automatically start its own network sharing function after acquiring the sharing instruction for the file to be shared.
  • the page for instructing the user to manually enable the network sharing function may also be displayed to instruct the user to manually start the network sharing function.
  • the manual startup process of the network sharing function varies according to different models. For example, in the Samsung mobile phone, the user selects "Settings” in the interface, selects “Wireless and Network”, and then selects "Network Sharing and Portable”. Hotspot", then turn on "Favorite Wi-Fi Hotspot”.
  • the network sharing function of the first mobile device may include: at least one of a WLAN hotspot function, a Bluetooth network sharing function, and a USB network sharing function.
  • the initiating the network sharing function in the first mobile device based on the usage habits and convenience of the user may include:
  • S103 intercepting and redirecting the browser-based network request sent by the second mobile device; wherein, after the second mobile device is connected to the first mobile device network, the user may input in the address bar of the browser of the second mobile device Any address information, and after detecting the address information, the second mobile device may generate a corresponding network request, and send the generated browser-based network request to the first mobile device; and the first mobile device may The browser-based network request sent by the second mobile device is intercepted and redirected, and then the file to be shared is subsequently used as a result of the request corresponding to the network request and sent to the second mobile device.
  • the network request can be: an HTTP request or an FTP request, of course, not limited to this;
  • the arbitrary address information can be a real real network address, for example: www.kingsoft.com, kingsoft .com, etc., can also be random characters, such as: 1, a, etc., which are all reasonable.
  • the current user name of the operating system of the first mobile device may have administrator rights or no administrator rights. Whether the current user name of the operating system of the first mobile device has administrator rights will result in a corresponding manner of intercepting and re-subscribing the browser-based network request sent to the second mobile device.
  • the second mobile device may be intercepted and redirected by setting rules of iptables in the operating system of the first mobile device.
  • the browser-based network request sent may also intercept and redirect the browser-based network request sent by the second mobile device by mounting the written kernel module.
  • all network requests such as the first mobile device as the shared terminal
  • the server such as the HTTP request and the FTP request
  • the TCP request is first filtered by iptables. Therefore, the target first port of the second mobile device's browser-based network request can be monitored and intercepted in the iptables of the first mobile device.
  • the kernel module written by the netfilter framework can be mounted to the operating system of the first mobile device
  • a hook point is added to the IP layer in the network architecture, and the network request of the second mobile device that is the predetermined first port through the target port of the first mobile device is intercepted by the hook point.
  • modifying the destination IP in the network request to an IP address of the first mobile device and modifying the destination port to a predetermined second port of the first mobile device.
  • the specific intercepted and redirected can be as follows:
  • the specific intercepting and redirection process may include:
  • the IP address of the device is modified to be the second port of the first mobile device, so that the request result corresponding to the network request is sent to the second mobile device by using the second port.
  • target first port can be 80 ports
  • second port can be other ports than the 80 ports capable of transmitting data content.
  • the first mobile device may display the IP address including the a page of the access mode, to indicate that the user corresponding to the second mobile device inputs the IP address of the first mobile device in the address field in the browser of the second mobile device, and correspondingly, the WEB module built in the first mobile device will Automatically responding to pass through the first mobile device
  • the built-in WEB module obtains a browser-based network request of the second mobile device, and then performs a step of sending a subsequent shared installation webpage.
  • iptables is an IOS, and IP packet filtering system based on Linux kernel integration.
  • the operating system using linux kernel currently has Android, Access Linux, Android, LiMo, Maemo, Mobilinux, Moblin, MotoMagx, Openmoko,
  • the operating system of the WebOS, the Qt Extended, the Ubuntu Mobile, and the like is only an example, and should not be construed as limiting the embodiments of the present application.
  • the file to be shared is used as a result of the request corresponding to the network request, and sent to the second mobile device.
  • the file to be shared may be used as a result of the request corresponding to the network request and sent to the second mobile device through the corresponding port, and the second mobile device After receiving the file to be shared, it may be saved to a specific storage location or installed in the second mobile device under the instruction of the user, thereby realizing sharing of the file.
  • the function software for implementing the file sharing method is the client software for providing the file sharing function
  • the file to be shared is used as the result of the request corresponding to the network request.
  • the method may further include: displaying a file selection interface, to indicate that the user selects a file that needs to be shared, where the file selection page includes the shareable file stored by the first mobile device ; The file selected by the user to be shared is used as the file to be shared.
  • the step of determining the file to be shared may be performed before the step of sending the file to be shared as the result of the request corresponding to the network request to the second mobile device, of course, in order to provide The user operation coherent use experience, the step of determining the file to be shared may be performed immediately after the step of acquiring the sharing instruction for the file to be shared, and from the perspective of the user operation, the user clicks to indicate the shared file.
  • the mobile device displays a file selection interface to instruct the user to select a file to be shared, and the user selects the file to be shared.
  • the second mobile device does not need to install any software or plug-in with file sharing function before sharing the file
  • the first mobile device can intercept the browser-based network request sent by the second mobile device and redirect, and then to be shared.
  • the file is sent as the result of the request corresponding to the network request
  • the user can quickly share files by not generating network traffic without installing any software or plug-ins with file sharing function on the receiving end of the shared file, thereby improving the user experience.
  • the first mobile device as the shared device or the second mobile device as the client does not need to implement file transmission by means of the mobile network and the Internet;
  • Key click operation is simple, no need for users to care about how to set hotspots, how to access hotspots, how to get related files from shared machines;
  • Fast implementation speed (5) Suitable for free software (6) No need to search the network to find the installation source; (7) It is safe to install the software without having to identify the installation software by the user; (8) No need to use routing or AP; (9) No need to share the machine It is on the same network segment as the client; (10) It does not need a PC as a transit; (11) No link cable is required; (12) No memory card is required to exchange data.
  • the installation package should be installed differently for the same application, for example, the first The mobile device runs the IOS system (the handheld device operating system developed by Apple), and the second mobile device runs the Android system.
  • the first mobile device needs to be applied to the IOS system.
  • the installation package, and the second mobile device requires an installation package suitable for the Android system. Therefore, in order to enable the first mobile device to provide the second mobile device with an operating system-compliant file, the first mobile device may pre-store different operating systems. The required file, and then the file corresponding to the operating system required by the second mobile device is sent as a file to be shared.
  • intercepting and redirecting the browser-based network request sent by the second mobile device may include:
  • the network request is redirected.
  • the first network request may be set according to an actual situation, which is not limited herein; and, when it is determined that the network request is not a preset first network request, the first mobile device may be The second mobile device downloads the content corresponding to the network request from the network and feeds back to the first Second, the mobile device can be.
  • a specific second mobile device can be selected for file sharing, and the selection process can occur in the process of network connection or after network connection.
  • the network connection with the second mobile device that requests the network sharing may include:
  • the file sharing method may further include:
  • intercepting and redirecting the browser-based network request sent by the second mobile device may include:
  • the device identifier of the second mobile device requesting the network connection or the device identifier of the second device in the network connection state may be displayed in a list form, and the user is instructed to select the required device identifier, thereby completing the shareable
  • the selection of the second mobile device may also be displayed in the form of a thumbnail of the distributed display device, and the user may slide the operation by sliding operation
  • the second mobile device in the corresponding sliding direction is used as the second mobile device that can be shared, and the second mobile device that can be shared can also be selected by clicking the thumbnail, for example, receiving the sliding gesture instruction of the user A (pointing to the left)
  • the device B displayed on the left side is a shareable device
  • the device C displayed on the right side is a shareable device.
  • the first mobile device when the first mobile device performs a network connection with the second mobile device, the first device may generate a password, and the second mobile device passes the verification by inputting a password.
  • the network of the first mobile device can be accessed to ensure the security of the network connection.
  • the embodiment of the present application further provides a file sharing method, so as to send a file to be shared when the user selects to download a file to be shared, thereby further improving the user experience.
  • a file sharing method provided by the embodiment of the present application is applicable to a first mobile device having a network sharing function, where the network sharing function of the first mobile device includes: a WLAN hotspot function and a Bluetooth network sharing function. And at least one of the USB network sharing functions.
  • the first mobile device can be a mobile phone, a notebook computer, a tablet computer, or the like.
  • the function software for implementing the file sharing method may be a shared function module built in an application, or may exist in an application through a plug-in form, and may also be installed in the first mobile device for providing file sharing. Functional client software, this is all reasonable.
  • a file sharing method may include:
  • step S201 is similar to step S101 in the foregoing embodiment, and details are not described herein.
  • the shared installation webpage of the file to be shared may be obtained, where the shared installation webpage includes a download link that points to the file to be shared.
  • the shared installation webpage of the file to be shared may include: Obtaining a pre-built shared installation webpage in the application; and for the function software implementing the file sharing method is the client software for providing the file sharing function installed in the first mobile device, due to the file to be shared
  • the selection range may be all the files stored by the first mobile device.
  • obtaining the shared installation webpage of the file to be shared may include: displaying a file selection interface to indicate that the user selects a file to be shared, where the file selection page is Include a shareable file stored by the first mobile device; use the file selected by the user to be shared as a file to be shared, and generate a shared installation network for the file to be shared Page.
  • the step of obtaining the shared installation webpage of the file to be shared may be executed immediately after acquiring the sharing instruction for the file to be shared, and of course, it is not limited thereto, as long as the shared installation is guaranteed to be sent to the second mobile device.
  • the webpage may be obtained before, for example: may be executed after the subsequent interception and redirection of the browser-based network request sent by the second mobile device, or may be followed by starting the network sharing function of the first mobile device. Execute after the step.
  • the function software implementing the file sharing method is the client software for providing the file sharing function installed in the first mobile device, it can be executed immediately after the step of acquiring the sharing instruction for the file to be shared.
  • the mobile device displays a file selection interface to instruct the user to select a file to be shared. And the user can select the file to be shared, so that the user has a consistent operation experience.
  • step S203-step S204 intercepting and redirecting the browser-based network request sent by the second mobile device.
  • step S203-step S204 is similar to step S102-step S103 in the foregoing embodiment, and is not used herein. Narration.
  • the shared installation webpage is used as a result of the request corresponding to the network request, and sent to the second mobile device.
  • the shared installation webpage may be used as a result of the request corresponding to the network request, and sent to the second mobile device through the corresponding port, so that the second The mobile device can receive and display the shared installation web page.
  • S206 Receive a download request that is generated by the second mobile device and is based on a download link of the shared installation webpage.
  • the user may click the download link in the shared installation webpage, and after detecting the operation of clicking the download link, the second mobile device forms the download link correspondingly.
  • the download request is sent to the first mobile device; and the first mobile device can receive the download request formed by the second mobile device based on the download link of the shared installation webpage, and then perform subsequent file sharing send. It can be understood by those skilled in the art that when the download request formed by the second mobile device based on the download link of the shared installation webpage is not received within a predetermined time period, the user of the second mobile device is selected to disagree with the download.
  • the first mobile device downloads the content corresponding to the network request from the network and feeds back to the second mobile device.
  • the file to be shared corresponding to the download request may be sent to the second mobile device, and the second mobile device receives the to-be-shared
  • the file may be saved to a specific storage location or installed in the second mobile device under the direction of the user, thereby enabling sharing of files in the first mobile device to the second mobile device.
  • the second mobile device does not need to install any plug-in or software with file sharing function before sharing the file
  • the first mobile device can intercept and redirect the second mobile device to send a browser-based network request, and then share the installation webpage.
  • the request corresponding to the network request and sent to the second mobile device, and after receiving the download request formed by the second mobile device based on the download link of the shared installation webpage, sending the download request to the second mobile device
  • the file to be shared corresponding to the download request realizes that the file can be quickly shared by means of not generating network traffic without installing any software or plug-in having file sharing function on the receiving end of the shared file, and when the user needs to share the file Sending files to be shared, further improving the user experience.
  • the installation package should be installed differently for the same application, for example, the first The mobile device runs the IOS system (the handheld device operating system developed by Apple), and the second mobile device runs the Android system.
  • the first mobile device needs to be applied to the IOS system.
  • the installation package, and the second mobile device requires an installation package suitable for the Android system. Therefore, in order to enable the first mobile device to provide the second mobile device with an operating system-compliant file, the first mobile device may pre-store different operating systems. The required files, and the download links corresponding to different operating systems are provided in the shared installation webpage.
  • the file to be shared may correspond to a shared installation webpage, where the shared installation network
  • the page includes download links to at least one operating system to the files to be shared, and each download link points to a file to be shared for one operating system;
  • sending the file to be shared corresponding to the download request to the second mobile device may include:
  • the file to be shared corresponds to at least one shared installation webpage, wherein each shared installation webpage includes a download link for an operating system that points to the file to be shared;
  • the sharing installation webpage is sent to the second mobile device as the result of the request corresponding to the network request, and may include:
  • the shared installation webpage corresponding to the first operating system is used as a result of the request corresponding to the network request and sent to the second mobile device.
  • intercepting and redirecting the browser-based network request sent by the second mobile device may include:
  • the network request is redirected.
  • the first network request may be set according to the actual situation, and is not limited herein. It should be noted that the first network request may be set according to an actual situation, which is not limited herein; and, when the network is determined When the request is not for the preset first network request, the first mobile device may download the content corresponding to the network request from the network for the second mobile device and feed back the second mobile device.
  • a specific second mobile device can be selected for file sharing, and the selection process can occur in the process of network connection or after network connection.
  • the network connection with the second mobile device that requests the network sharing may include: Instructing a user to select a second shareable device that is sharable from a second mobile device that requests network sharing;
  • the file sharing method may further include:
  • intercepting and redirecting the browser-based network request sent by the second mobile device may include:
  • the device identifier of the second mobile device requesting the network connection or the device identifier of the second device in the network connection state may be displayed in a list form, and the user is instructed to select the required device identifier, thereby completing the shareable
  • the selection of the second mobile device may also be displayed in the form of a thumbnail of the distributed display device, and the user may slide the operation by sliding operation
  • the second mobile device in the corresponding sliding direction is used as the second mobile device that can be shared, and the second mobile device that can be shared can also be selected by clicking the thumbnail, for example, receiving the sliding gesture instruction of the user A (pointing to the left)
  • the device B displayed on the left side is a shareable device
  • the device C displayed on the right side is a shareable device.
  • the first device when the first mobile device is connected to the second mobile device, the first device may generate a password, and the second mobile device can access the network of the first mobile device by inputting a password, and then verifying, Thereby ensuring the security of the network connection.
  • a file sharing method provided by the embodiment of the present application is introduced below in conjunction with a specific application example.
  • the function software that implements the file sharing method is the sharing built in the application 1.
  • a file sharing method may include:
  • a pre-built shared installation webpage in the application 1 may be obtained, where the shared installation webpage includes a download for at least one operating system that points to the installation package to be shared. link.
  • the WLAN hotspot function of the mobile phone A is activated
  • the mobile phone B can scan the mobile phone A to request network sharing, so that the mobile phone A can connect to the mobile phone B that requests the network sharing. If mobile phone A activates the WLAN hotspot function and has a verification password, mobile phone B needs to input the verification code when requesting network sharing. After the verification code is correct, mobile phone A can connect to mobile phone B.
  • the shared installation webpage is used as a result of the request corresponding to the network request, and sent to the mobile phone B;
  • the user can input any address information in the address bar of the mobile phone B browser, and after detecting the address information, the mobile phone B can generate a corresponding network request, and The mobile phone A sends the generated browser-based network request; and the mobile phone A can intercept and redirect the browser-based network request sent by the mobile phone B by setting the rules of the iptables in the operating system of the mobile phone A.
  • the shared installation webpage is further sent to the mobile phone B as a result of the request corresponding to the network request.
  • the network request can be: an HTTP request or an FTP request, and is of course not limited thereto. 5307. Receive a download request formed by the mobile phone B based on a download link of the shared installation webpage;
  • the user can click the download link in the shared installation webpage that matches the first operating system run by the mobile phone B, and the mobile phone B detects the operation of clicking the download link. Forming a download request corresponding to the download link and sending the request to the mobile phone A; and the mobile phone A can receive the download request formed by the mobile phone B based on the download link of the shared installation webpage, and determine the mobile phone according to the download request.
  • the first operating system run by the user B, and the mobile phone B sends the installation package for the first operating system corresponding to the download request, and the mobile phone B can be in the user after receiving the installation package to be shared.
  • File sharing is achieved by saving to a specific storage location or installing to that phone B.
  • the file is quickly shared by means of not generating network traffic without installing any software or plug-in having file sharing function on the receiving end of the shared file, and the sharing is sent when the user needs to share the file.
  • the file further improved the user experience.
  • a file sharing method provided by the embodiment of the present application is introduced below with reference to another specific application example.
  • the function software for implementing the file sharing method is the client software for sharing files installed in the mobile phone A, wherein the mobile phone A has the WLAN hotspot function and has the management right.
  • a file sharing method may include:
  • the file selection page includes a shareable file stored by the mobile phone A. S403. After the user selects a file to be shared, generate at least one shared installation webpage for the file to be shared.
  • each shared installation webpage contains a download link for an operating system that points to the file to be shared.
  • the mobile phone B can scan the mobile phone A to request network sharing, and the mobile phone A can connect to the mobile phone B that requests the network sharing. If the mobile phone A activates the WLAN hotspot function and the authentication password is set, the mobile phone B needs to input the verification code when requesting the network sharing. After the verification code is correct, the mobile phone A can connect with the mobile phone B.
  • the user can input any address information in the address bar of the mobile phone B browser, and after detecting the address information, the mobile phone B can generate a corresponding network request, and The mobile phone A sends the generated browser-based network request; and the mobile phone A can intercept and redirect the browser-based network request sent by the mobile phone B by mounting the written kernel module, and according to the network request And determining, by the first operating system of the second mobile device, the shared installation webpage corresponding to the first operating system as a result of the request corresponding to the network request, and sending the result to the mobile phone 8.
  • the network request can be: an HTTP request or an FTP request, and is of course not limited thereto.
  • the user can click the download link in the shared installation webpage, and after detecting the operation of clicking the download link, the mobile phone B forms a download request corresponding to the download link and sends the download request.
  • the mobile phone A can receive the mobile phone
  • the file is quickly shared by means of not generating network traffic without installing any software or plug-in having file sharing function on the receiving end of the shared file, and is sent when the user needs to share the file. Sharing files and further improving the user experience.
  • the embodiment of the present application provides a file sharing device, which is applicable to the first mobile device.
  • the file sharing device may include:
  • a sharing instruction acquisition module 510 configured to acquire a sharing instruction for a file to be shared
  • a network connection module 520 configured to perform network connection with a second mobile device that requests network sharing after the network sharing function of the first mobile device is started.
  • a network request processing module 530 configured to intercept and redirect a browser-based network request sent by the second mobile device
  • the to-be-shared file processing module 540 is configured to send the file to be shared as a request result corresponding to the network request to the second mobile device.
  • the second mobile device does not need to install any software or plug-in with file sharing function before sharing the file
  • the first mobile device can intercept the browser-based network request sent by the second mobile device and redirect, and then to be shared.
  • the file is sent to the second mobile device as the result of the request corresponding to the network request, so that the file sharing end does not need to install any software or plug-in with file sharing function, and the file is quickly shared by not generating network traffic, thereby improving the file.
  • the file sharing apparatus provided in the second embodiment of the present application may further include: a network sharing function starting module, configured to perform network on the second mobile device shared with the requesting network, according to the file sharing apparatus provided in the first embodiment of the present application. Before the connection, the network sharing function of the first mobile device is started.
  • the sharing instruction acquiring module 510 may include:
  • a first sharing instruction acquiring unit configured to acquire, when the application is in an open state, a sharing instruction for the file to be shared, based on the operation for indicating the shared file issued by the application, where the to-be-shared
  • the file is the file corresponding to the application.
  • the sharing instruction acquiring module 510 may include:
  • a second sharing instruction acquiring unit configured to obtain a sharing instruction for the file to be shared when detecting an operation for indicating the shared file
  • the device may further include:
  • a file to be shared determining module configured to display a file selection interface to indicate that the user selects a file to be shared, before the file to be shared is used as a result of the request corresponding to the network request and sent to the second mobile device, where
  • the file selection page includes a sharable file stored by the first mobile device; and the file selected by the user to be shared is used as a file to be shared.
  • the file sharing device may further include:
  • a shared installation webpage obtaining module configured to obtain a shared installation webpage of the file to be shared after obtaining the sharing instruction for the file to be shared; wherein the shared installation webpage includes a download link to the file to be shared;
  • the file processing module 540 to be shared may include:
  • a shared installation webpage sending unit configured to send the shared installation webpage as a result of the request corresponding to the network request, and send the result to the second mobile device
  • a to-be-shared file processing unit configured to send, after the download request formed by the second mobile device based on the download link of the shared installation webpage, the download request corresponding to the second mobile device shared documents.
  • the sharing instruction acquiring module may include:
  • a first sharing instruction acquiring unit configured to acquire a sharing for a file to be shared when detecting an operation based on the application for indicating a shared file during an application being in an open state
  • An instruction, where the file to be shared is a file corresponding to the application
  • the shared installation webpage obtaining module may include:
  • a first shared installation webpage obtaining unit configured to acquire a pre-built shared installation webpage in the application after acquiring a sharing instruction for the file to be shared; wherein the shared installation webpage includes a download to the file to be shared link.
  • the sharing instruction acquiring module 510 may include:
  • a second sharing instruction acquiring unit configured to obtain a sharing instruction for the file to be shared when detecting an operation for indicating the shared file
  • the shared installation webpage obtaining module may include:
  • a second shared installation webpage obtaining unit configured to: after the sharing instruction for the file to be shared, display a file selection interface, to indicate that the user selects a file to be shared, where the file selection page includes the first mobile device After the file to be shared is selected, a shared installation webpage for the file to be shared is generated; wherein the shared installation webpage includes a download link to the file to be shared.
  • the network request processing module 530 may include:
  • a network request intercepting unit configured to intercept a browser-based network request sent by the second mobile device
  • a determining unit configured to determine whether the network request is a preset first network request
  • a network request redirection unit configured to: when it is determined that the network request is a preset first network request, The network request is redirected.
  • the network request processing module 530 is configured to: when the current user name of the operating system of the first mobile device has administrator rights, And intercepting and redirecting the browser-based network request sent by the second mobile device by setting a rule of iptables in an operating system of the first mobile device.
  • the network request processing module 530 can intercept and redirect the second mobile device by loading the written kernel module. Browser-based network request.
  • the file sharing device provided in the first embodiment, the second embodiment, or the third embodiment may further include:
  • a page display module configured to: after the sharing instruction for the file to be shared, display a page including the IP address and the access mode of the first mobile device, to indicate that the user corresponding to the second mobile device is in the Entering an IP address of the first mobile device in an address bar in a browser of the mobile device;
  • the network request processing module 530 is configured to obtain, by the WEB module built in the first mobile device, the second mobile device when the current user name of the operating system of the first mobile device does not have administrator rights. Browser-based network request.
  • the network connection module 520 may include:
  • a selecting unit configured to instruct the user to select a second mobile device that can be shared from the second mobile device that requests the network sharing;
  • the file sharing device provided in the first embodiment, the second embodiment or the third embodiment may further include:
  • a selection module configured to select, by the user, a second mobile device that is sharable from a second device that is in a network connection state after performing a network connection with the second mobile device that requests the network share;
  • the network request processing module 530 may include:
  • a network request intercepting unit configured to intercept a browser-based network request sent by the second mobile device
  • a network request processing unit configured to determine whether the second mobile device is a second mobile device that is sharable, and if yes, redirect a browser-based network request sent by the second mobile device.
  • the network sharing function of the first mobile device includes: at least one of a WLAN hotspot function, a Bluetooth network sharing function, and a USB network sharing function.
  • the network sharing function startup module is configured to determine whether a WLAN hotspot function exists, and if yes, activate the WLAN hotspot function; otherwise,
  • the file to be shared corresponds to a shared installation webpage, where the shared installation webpage includes a download link for at least one operating system that points to the file to be shared, and each A download link points to a file to be shared for an operating system;
  • the file processing unit to be shared may include:
  • An operating system determining subunit configured to determine, according to the download request, a first operation performed by the second mobile device after receiving the download request sent by the second mobile device through the download link of the shared installation webpage operating system;
  • a to-be-shared file sending subunit configured to send, to the second mobile device, a file to be shared corresponding to the first operating system corresponding to the download request;
  • the file to be shared corresponds to at least one shared installation webpage, where each shared installation webpage includes a download link for an operating system that points to the file to be shared;
  • the shared installation webpage sending unit may include:
  • An operating system determining subunit configured to determine, according to the network request, a first operating system that is operated by the second mobile device
  • the shared installation webpage sending subunit is configured to send the shared installation webpage corresponding to the first operating system as a result of the request corresponding to the network request, and send the result to the second mobile device.
  • the embodiment of the present application further provides a mobile device, where the mobile device is a first mobile device, and may include: any file sharing device applicable to the first mobile device provided by the embodiment of the present application.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种文件共享方法、装置及移动设备。该文件共享方法,适用于第一移动设备,该方法包括:获取针对待共享文件的共享指令;在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;截获并重定向所述第二移动设备发送的基于浏览器的网络请求,将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。通过利用本方案,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高了用户的使用体验。

Description

文件共享方法、 装置及移动设备 本申请要求于 2013 年 11 月 18 日提交中国专利局、 申请号为 2013105774428申请名称为"文件共享方法、装置及移动设备"的中国专利申请 的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本申请涉及数据共享领域, 特别涉及一种文件共享方法、 装置及移动设 备。 背景技术
随着科学技术飞速的发展, 各种移动设备不断的丰富并方便了大众生活。 由于利用移动设备处理信息具有方便快捷、 节省资源等优势, 使得移动设备 成为人们的生活或工作中不可或缺的一部分。
其中, 用户可以通过移动设备中的浏览器登陆到互联网某个网站上, 将 所需应用的安装包下载到移动设备的本地然后安装。 例如, 用户从 APP网站 下载封神榜游戏软件的安装包, 然后在本地安装该封神榜游戏软件的安装包 后, 用户便可以开始玩游戏。
而如果用户希望将这个应用分享给身边的朋友, 他可以告诉朋友该应用 的名称以及下载网站, 从而使得该朋友可以登陆浏览器来査找该网站, 进而 下载该应用的安装包。 当然, 该朋友也可以通过移动设备扫描展示在该用户 的移动设备中显示的关于该应用的二维码, 从而下载该应用的安装包。
但是, 上述共享文件的方法, 非常麻烦, 给用户带来诸多不便。 例如: 用户将软件推荐给朋友后, 朋友很难在短时间内就搞定下载, 并且下载文件 还会产生上网流量; 而用户在下载较大字节数的文件的时候, 为节省流量, 往往会选择有 WLAN网络时才下载, 如果遇到暂时不能够上网的情况下, 不 能够立即实现文件分享。 申请内容
基于上述问题, 本申请实施例公开了一种文件共享方法、 装置及移动设 备, 以在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前 提下, 通过不产生网络流量的方式快速共享文件, 从而提高用户的使用体验。 技术方案如下:
第一方面, 本申请实施例提供了一种文件共享方法, 适用于第一移动设 备, 所述方法包括:
获取针对待共享文件的共享指令;
在所述第一移动设备的网络共享功能启动之后, 与请求网络共享的第二 移动设备进行网络连接;
截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 将待共 享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。
优选的, 所述与请求网络共享的第二移动设备进行网络连接之前, 所述 方法还包括:
启动所述第一移动设备的网络共享功能。
优选的, 在应用处于开启状态过程中, 当检测到基于所述应用发出的用 于指示共享文件的操作时, 获取所述针对待共享文件的共享指令, 其中, 所 述待共享文件为所述应用对应的文件。
优选的, 在检测到用于指示共享文件的操作时, 获取所述针对待共享文 件的共享指令;
在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移 动设备之前, 所述方法还包括:
展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 所述文件 选择页面中包含所述第一移动设备所存储的可共享的文件;
将所述用户所选择的需要共享的文件作为待共享文件。
优选的, 在获取针对待共享文件的共享指令之后, 所述方法还包括: 获取待共享文件的共享安装网页; 其中, 所述共享安装网页中包含指向 所述待共享文件的下载链接;
相应的, 所述将待共享文件作为所述网络请求对应的请求结果并发送至 所述第二移动设备, 包括:
将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第 二移动设备;
在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所 形成的下载请求后, 向所述第二移动设备发送所述下载请求对应的待共享文 件。
优选的, 在应用处于开启状态过程中, 当检测到基于所述应用发出的用 于指示共享文件的操作时, 获取所述针对待共享文件的共享指令, 其中, 所 述待共享文件为所述应用对应的文件;
相应的, 所述获取待共享文件的共享安装网页, 包括:
获取所述应用中预先内置的共享安装网页, 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
优选的, 在检测到用于指示共享文件的操作时, 获取所述针对待共享文 件的共享指令;
相应的, 所述获取待共享文件的共享安装网页, 包括:
展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 所述文件 选择页面中包含所述第一移动设备所存储的可共享的文件;
将所述用户所选择的需要共享的文件作为待共享文件, 并生成针对所述 待共享文件的共享安装网页, 其中, 所述共享安装网页中包含指向所述待共 享文件的下载链接。
优选的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络 请求, 包括:
截获所述第二移动设备发送的基于浏览器的网络请求;
判断所述网络请求是否为预先设定的第一网络请求;
当判断出所述网络请求为预先设定的第一网络请求时, 将所述网络请求 进行重定向处理。
优选的, 当所述第一移动设备的操作系统的当前用户名具有管理员权限 时, 通过设置所述第一移动设备的操作系统中的 iptables的规则的方式, 截获 并重定向所述第二移动设备发送的基于浏览器的网络请求。 优选的, 设置所述第一移动设备的操作系统中的 iptables的规则的过程, 包括:
在所述第一移动设备的 iptables中增加对所述第二移动设备的基于浏览器 的网络请求的目标第一端口进行监听、 以及将所截获到的经过所述第一移动 设备的所述第二移动设备发送的基于浏览器的网络请求重定向至所述第一移 动设备的预定的第二端口的规则;
相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络 请求, 包括:
监听所述第二移动设备的基于浏览器的网络请求的所述目标第一端口, 并截获经过所述第一移动设备的所述第二移动设备发送的基于浏览器的网络 请求, 进而将所截获到的网络请求重定向至所述第一移动设备的第二端口, 以通过所述第二端口将所述网络请求对应的请求结果并发送至所述第二移动 设备。
优选的, 当所述第一移动设备的操作系统的当前用户名具有管理员权限 时, 通过挂载所编写的内核模块的方式, 截获并重定向所述第二移动设备发 送的基于浏览器的网络请求。
优选的, 所述挂载所编写的内核模块的过程, 包括:
将采用 netfilter框架所编写的内核模块挂载到所述第一移动设备的操作 系统内核中, 以实现在网络架构中的 IP层中增设一 hook点, 其中, 通过所述 hook点拦截经过所述第一移动设备的目标端口为预定的第一端口的所述第二 移动设备的网络请求, 且能够将所述网络请求中的目的 IP修改为所述第一移 动设备的 IP地址且将目的端口修改为所述第一移动设备的预定的第二端口; 相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络 请求, 包括:
通过所述 hook点拦截经过所述第一移动设备的目标端口为所述第一端口 的所述第二移动设备发送的基于浏览器的网络请求, 并将所述网络请求中的 目的 IP地址修改为所述第一移动设备的 IP地址,目的端口修改为所述第一移 动设备的所述第二端口, 以通过所述第二端口将所述网络请求对应的请求结 果发送至所述第二移动设备。 优选的, 当所述第一移动设备的操作系统的当前用户名未具有管理员权 限时, 所述方法还包括:
在获取针对待共享文件的共享指令后, 展示包含所述第一移动设备自身 的 IP地址和访问方式的页面, 以指示所述第二移动设备所对应用户在所述第 二移动设备的浏览器内的地址栏内输入所述第一移动设备的 IP地址;相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 包括: 通过所述第一移动设备中内置的 WEB 模块获得所述第二移动设备的基 于浏览器的网络请求。
优选的, 所述与请求网络共享的第二移动设备进行网络连接, 包括: 指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设 备;
与所选择的可共享的第二移动设备进行网络连接。
优选的, 所述与请求网络共享的第二移动设备进行网络连接之后, 所述 方法还包括:
指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设 备;
所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 包 括:
截获所述第二移动设备发送的基于浏览器的网络请求;
判断所述第二移动设备是否为可共享的第二移动设备, 如果是, 重定向 所述第二移动设备发送的基于浏览器的网络请求。
优选的, 所述第一移动设备所具有的网络共享功能包括: WLAN热点功 能、 蓝牙网络共享功能和 USB网络共享功能中的至少一种。
优选的, 所述启动所述第一移动设备中的网络共享功能, 包括: 判断是否存在 WLAN热点功能, 如果是, 启动所述 WLAN热点功能; 否则,
判断是否存在蓝牙网络共享功能, 如果是, 启动所述蓝牙网络共享功能; 否则, 启动所述 USB网络共享功能。
优选的, 所述待共享文件对应一个共享安装网页, 其中, 所述共享安装 网页包含指向待共享文件的针对至少一种操作系统的下载链接, 每一下载链 接指向针对于一种操作系统的待共享文件;
相应的,
所述向所述第二移动设备发送所述下载请求对应的待共享文件, 包括: 依据所述下载请求, 确定所述第二移动设备所运行的第一操作系统; 向所述第二移动设备发送所述下载请求对应的、 针对于所述第一操作系 统的待共享文件;
或者,
所述待共享文件对应至少一个共享安装网页, 其中, 每一共享安装网页 包含指向待共享文件的针对于一种操作系统的下载链接;
相应的, 所述将所述共享安装网页作为所述网络请求对应的请求结果并 发送至所述第二移动设备, 包括:
依据所述网络请求, 确定所述第二移动设备运行的第一操作系统; 将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求 结果并发送至所述第二移动设备。
第二方面, 本申请实施例还提供了一种文件共享装置, 适用于第一移动 设备, 所述文件共享装置包括:
共享指令获取模块, 用于获取针对待共享文件的共享指令;
网络连接模块, 用于在所述第一移动设备的网络共享功能启动之后, 与 请求网络共享的第二移动设备进行网络连接;
网络请求处理模块, 用于截获并重定向所述第二移动设备发送的基于浏 览器的网络请求;
待共享文件处理模块, 用于将待共享文件作为所述网络请求对应的请求 结果并发送至所述第二移动设备。
优选的, 所述文件共享装置还包括:
网络共享功能启动模块, 用于在与请求网络共享的第二移动设备进行网 络连接之前, 启动所述第一移动设备的网络共享功能。
优选的, 所述共享指令获取模块, 包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件。
优选的, 所述共享指令获取模块, 包括:
第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
所述装置还包括:
待共享文件确定模块, 用于在将待共享文件作为所述网络请求对应的请 求结果并发送至所述第二移动设备之前, 展示文件选择界面, 以指示用户选 择需要共享的文件, 其中, 所述文件选择页面中包含所述第一移动设备所存 储的可共享的文件; 将所述用户所选择的需要共享的文件作为待共享文件。
优选的, 所述文件共享装置还包括:
共享安装网页获取模块, 用于在获取针对待共享文件的共享指令之后, 获取待共享文件的共享安装网页; 其中, 所述共享安装网页中包含指向所述 待共享文件的下载链接;
相应的, 所述待共享文件处理模块, 包括:
共享安装网页发送单元, 用于将所述共享安装网页作为所述网络请求对 应的请求结果并发送至所述第二移动设备;
待共享文件处理单元, 用于在接收到所述第二移动设备发送的基于所述 共享安装网页的下载链接所形成的下载请求后, 向所述第二移动设备发送所 述下载请求对应的待共享文件。
优选的, 所述共享指令获取模块, 包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件;
相应的, 所述共享安装网页获取模块, 包括:
第一共享安装网页获取单元, 用于在获取针对待共享文件的共享指令之 后, 获取所述应用中预先内置的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
优选的, 所述共享指令获取模块, 包括: 第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
相应的, 所述共享安装网页获取模块, 包括:
第二共享安装网页获取单元, 用于获取针对待共享文件的共享指令之后, 展示文件选择界面, 以指示用户选择待共享文件, 其中, 所述文件选择页面 中包含所述第一移动设备所存储的可共享的文件; 在待共享文件被选择完毕 后, 生成针对所述待共享文件的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
优选的, 所述网络请求处理模块, 包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
判断单元, 用于判断所述网络请求是否为预先设定的第一网络请求; 网络请求重定向单元, 用于当判断出所述网络请求为预先设定的第一网 络请求时, 将所述网络请求进行重定向处理。
优选的, 所述网络请求处理模块, 用于当所述第一移动设备的操作系统 的当前用户名具有管理员权限时, 通过设置所述第一移动设备的操作系统中 的 iptables的规则的方式,截获并重定向所述第二移动设备发送的基于浏览器 的网络请求。
优选的, 所述网络请求处理模块用于当所述第一移动设备的操作系统的 当前用户名具有管理员权限时, 通过挂载所编写的内核模块的方式, 截获并 重定向所述第二移动设备发送的基于浏览器的网络请求。
优选的, 所述文件共享装置还包括:
页面展示模块, 用于在获取针对待共享文件的共享指令后, 展示包含所 述第一移动设备自身的 IP地址和访问方式的页面, 以指示所述第二移动设备 所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设 备的 IP地址;
所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户 名未具有管理员权限时,通过所述第一移动设备中内置的 WEB模块获得所述 第二移动设备的基于浏览器的网络请求。 优选的, 所述网络连接模块, 包括:
选择单元, 用于指示用户从请求网络共享的第二移动设备中选择可共享 的第二移动设备;
网络连接单元, 用于与所选择的可共享的第二移动设备进行网络连接。 优选的, 所述文件共享装置还包括:
选择模块, 用于与请求网络共享的第二移动设备进行网络连接之后, 指 示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;
所述网络请求处理模块, 包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
网络请求处理单元, 用于判断所述第二移动设备是否为可共享的第二移 动设备, 如果是, 重定向所述第二移动设备发送的基于浏览器的网络请求。
优选的, 所述第一移动设备所具有的网络共享功能包括: WLAN热点功 能、 蓝牙网络共享功能和 USB网络共享功能中的至少一种。
优选的,所述网络共享功能启动模块用于判断是否存在 WLAN热点功能, 如果是,启动所述 WLAN热点功能; 否则,判断是否存在蓝牙网络共享功能, 如果是, 启动所述蓝牙网络共享功能; 否则, 启动所述 USB网络共享功能。
优选的, 所述待共享文件对应一个共享安装网页, 其中, 所述共享安装 网页包含指向待共享文件的针对至少一种操作系统的下载链接, 且每一下载 链接指向针对于一种操作系统的待共享文件;
所述待共享文件处理单元, 包括:
操作系统确定子单元, 用于在接收到所述第二移动设备通过所述共享安 装网页的下载链接发送的下载请求后, 依据所述下载请求, 确定所述第二移 动设备所运行的第一操作系统;
待共享文件发送子单元, 用于向所述第二移动设备发送所述下载请求对 应的、 针对于所述第一操作系统的待共享文件;
或者,
所述待共享文件对应至少一个共享安装网页, 其中, 每一共享安装网页 包含指向待共享文件的针对于一种操作系统的下载链接; 所述共享安装网页发送单元, 包括:
操作系统确定子单元, 用于依据所述网络请求, 确定所述第二移动设备 运行的第一操作系统;
共享安装网页发送子单元, 用于将所述第一操作系统对应的共享安装网 页作为所述网络请求对应的请求结果并发送至所述第二移动设备。
第三方面, 本申请实施例还提供了一种移动设备, 包括: 本申请实施例 所提供的任一文件共享装置。
本方案中, 第二移动设备在共享文件之前无需安装任何具备文件共享功 能的软件或插件, 而第一移动设备可以截获第二移动设备发送的基于浏览器 的网络请求并重定向, 进而将待共享文件作为网络请求对应的请求结果发送 至第二移动设备, 实现了在共享文件接收端无需安装任何具备文件共享功能 的软件或插件的前提下, 通过不产生网络流量的方式快速共享文件, 从而提 高了用户的使用体验。 附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案, 下面对实施例 和现有技术中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本申请的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本申请实施例所提供的一种文件共享方法的第一种流程图; 图 2为本申请实施例所提供的一种文件共享方法的第二种流程图; 图 3为本申请实施例所提供的一种文件共享方法的第三种流程图; 图 4为本申请实施例所提供的一种文件共享方法的第四种流程图; 图 5为本申请实施例所提供的一种文件共享装置的结构示意图。 具体实施方式
下面将结合本申请实施例中的附图, 对本申请实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本申请一部分实施例, 而 不是全部的实施例。 基于本申请中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本申请保护的范围。 为了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的 前提下, 通过不产生网络流量的方式快速共享文件, 从而提高用户的使用体 验, 本申请实施例提供了一种文件共享方法、 装置及移动设备。
下面首先介绍本申请实施例所提供的一种文件共享方法。
其中, 本申请实施例所提供的一种文件共享方法适用于具有网络共享功 能的第一移动设备, 其中, 该第一移动设备所具有的网络共享功能包括:
WLAN热点功能、蓝牙网络共享功能和 USB网络共享功能中的至少一种。可 以理解的是, 在实际应用中, 该第一移动设备可以为手机、 笔记本电脑、 平 板电脑等。
并且, 实现文件共享方法的功能软件可以为某一应用中内置的共享功能 模块, 也可以通过插件形式存在于某一应用中, 当然还可以是安装在第一移 动设备中的用于提供文件共享功能的客户端软件, 这都是合理的。 为了便于 理解, 举例说明: 第一移动设备为苹果手机, 该手机安装了封神榜游戏应用, 同时可以在某个特定的文件夹下保存着封神榜游戏应用的安装包; 当用户希 望将封神榜游戏推荐给朋友并帮助朋友安装上该封神榜游戏应用时, 该封神 榜游戏应用的安装包为待共享文件, 其中, 实现该安装包的共享方法的功能 软件可以是封神榜游戏应用中的一个共享功能模块, 也可以通过插件形式存 在于封神榜游戏应用中, 当然, 还可以是与封神榜游戏应用分离的, 另外一 个用于提供文件共享的客户端软件, 这都是合理的。
如图 1所示, 一种文件共享方法, 可以包括:
S101 , 获取针对待共享文件的共享指令;
当需要将第一移动设备的文件共享到第二移动设备中时, 持有第一移动 设备的用户可以进行特定的操作来发送共享指令, 从而使得该第一移动设备 可以获取针对待共享文件的共享指令。
举例而言: 对于实现文件共享方法的功能软件为某一应用中内置的共享 功能模块或通过插件形式存在于某一应用中的情况而言, 在应用处于开启状 态过程中, 当检测到基于该应用发出的用于指示共享文件的操作时, 获取针 对待共享文件的共享指令, 其中, 该待共享文件为该应用所对应的文件; 例 如: 持有第一移动设备的用户点击显示在所开启的应用的某一页面中的"一键 分享"的按钮后, 该第一移动设备获取针对待共享文件的共享指令, 其中, 该 待共享文件为处于开启状态的该应用对应的安装包, 当然并不局限于此。
举例而言: 对于实现文件共享方法的功能软件为安装在第一移动设备中 的用于提供文件共享功能的客户端软件的情况而言, 当检测到用于指示共享 文件的操作时, 获取针对待共享文件的共享指令; 例如, 用户点击客户端软 件中的 "一键共享"的按钮后, 该第一移动设备获取针对待共享文件的共享指 令, 当然并不局限于此。
需要说明的是, 为了安全起见, 用于指示共享文件的按钮可以在被按下 后可以下沉, 而再次按下后, 按钮将弹起, 同时将该第一移动设备的网络共 享功能的关闭。
S102, 在该第一移动设备的网络共享功能启动之后, 与请求网络共享的 第二移动设备进行网络连接;
在该第一移动设备启动网络共享功能后, 持有第二移动设备的用户可以 通过该第二移动设备可以扫描该第一移动设备, 进而请求网络共享, 而该第 一移动设备可以与请求网络共享的第二移动设备进行网络连接。
本领域技术人员可以理解的是, 该第一移动设备在获取针对待共享文件 的共享指令后, 可以自动启动自身的网络共享功能。 当然, 也可以在获取针 对待共享文件的共享指令后, 展示用于指示用户手动开启网络共享功能的页 面, 以指示用户自己手动操作启动网络共享功能。 其中, 网络共享功能的手 动启动过程根据不同的机型而不同,例如:在三星手机中,用户在界面选择"设 定",选择"无线和网络",再进一歩选择"网络分享和便捷式热点",然后开启"便 捷式 WLAN热点"。
需要说明的是,该第一移动设备所具有的网络共享功能可以包括: WLAN 热点功能、 蓝牙网络共享功能和 USB网络共享功能中的至少一种。
其中, 基于用户的使用习惯以及便捷性, 启动该第一移动设备中的网络 共享功能, 可以包括:
判断是否存在 WLAN热点功能, 如果是, 启动该 WLAN热点功能; 否 贝 lj, 判断是否存在蓝牙网络共享功能, 如果是, 启动该蓝牙网络共享功能; 否则, 启动该 USB网络共享功能。
本领域技术人员可以理解的是, 上述关于不同网络共享功能的选择顺序 仅仅作为示例, 并不应该构成对本申请实施例的限定。
S103 , 截获并重定向该第二移动设备发送的基于浏览器的网络请求; 其中, 在第二移动设备与第一移动设备网络连接后, 用户可以在第二移 动设备的浏览器的地址栏内输入任意的地址信息, 而第二移动设备在检测到 该地址信息后, 可以生成相应的网络请求, 并向该第一移动设备发送所生成 的基于浏览器的网络请求; 而该第一移动设备可以截获并重定向该第二移动 设备发送的基于浏览器的网络请求, 进而后续将待共享文件作为该网络请求 对应的请求结果并发送给该第二移动设备。 其中, 可以理解的是, 该网络请 求可以为: HTTP请求或 FTP请求, 当然并不局限于此; 该任意的地址信息 可以为实际中真实存在的网络地址, 例如: www.kingsoft.com、 kingsoft.com 等, 也可以是随意的字符, 例如: 1、 a等, 这都是合理的。
本领域技术人员可以理解的是, 第一移动设备的操作系统的当前用户名 可以为具有管理员权限, 也可以为未具有管理员权限。 其中, 第一移动设备 的操作系统的当前用户名是否具有管理员权限, 将导致所对应的截获并重定 向该第二移动设备发送的基于浏览器的网络请求的方式不同。
举例而言, 对于第一移动设备的操作系统的当前用户名具有管理员权限 而言, 可以通过设置该第一移动设备的操作系统中的 iptables的规则的方式, 截获并重定向该第二移动设备发送的基于浏览器的网络请求, 也可以通过挂 载所编写的内核模块的方式, 截获并重定向该第二移动设备发送的基于浏览 器的网络请求。
本领域技术人员可以理解的是,对于设置 iptables的规则实现截获及重定 向而言, 由于操作系统层面所有对服务端 (如作为共享端的第一移动设备) 网络请求(如包括 HTTP请求、 FTP请求等的 TCP请求)都会先经过 iptables 过滤, 因此, 可以在该第一移动设备的 iptables中增加对该第二移动设备的基 于浏览器的网络请求的目标第一端口进行监听、 以及将所截获到的经过该第 一移动设备的该第二移动设备发送的基于浏览器的网络请求重定向至该第一 移动设备的预定的第二端口的规则; 而对于通过挂载所编写的内核模块的方 式截获并重定向而言,可以将采用 netfilter框架所编写的内核模块挂载到该第 一移动设备的操作系统内核中, 以实现在网络架构中的 IP层中增设一 hook 点, 其中, 通过该 hook点拦截经过该第一移动设备的目标端口为预定的第一 端口的所述第二移动设备的网络请求, 且能够将该网络请求中的目的 IP修改 为该第一移动设备的 IP地址且将目的端口修改为该第一移动设备的预定的第 二端口。
基于上述的设置方式, 对于通过设置该第一移动设备的操作系统中的 iptables的规则的方式, 截获并重定向该第二移动设备发送的基于浏览器的网 络请求而言, 具体的截获并重定向的过程可以如下:
监听该第二移动设备的基于浏览器的网络请求的该目标第一端口, 并截 获经过该第一移动设备的该第二移动设备发送的基于浏览器的网络请求, 进 而将所截获到的网络请求重定向至该第一移动设备的第二端口, 以通过该第 二端口将该网络请求对应的请求结果并发送至该第二移动设备。
基于上述的设置方式, 对于通过挂载所编写的内核模块的方式, 截获并 重定向所述第二移动设备发送的基于浏览器的网络请求而言, 具体的截获并 重定向过程可以包括:
通过该 hook点拦截经过该第一移动设备的目标端口为该第一端口的该第 二移动设备发送的基于浏览器的网络请求, 并将该网络请求中的目的 IP地址 修改为该第一移动设备的 IP地址, 目的端口修改为该第一移动设备的该第二 端口, 以通过该第二端口将该网络请求对应的请求结果发送至该第二移动设 备。
其中, 本领域技术人员可以理解的是, 该目标第一端口可以为 80端口, 而该第二端口可以为不同于 80端口的能够发送数据内容的其他端口。
需要说明的是, 对于第一移动设备的操作系统的当前用户名未具有管理 员权限而言, 在获取针对待共享文件的共享指令后, 该第一移动设备可以展 示出包含自身的 IP地址和访问方式的页面, 以指示第二移动设备所对应用户 在第二移动设备的浏览器内的地址栏内输入该第一移动设备的 IP地址, 相应 的, 第一移动设备中内置的 WEB模块会自动响应, 以通过该第一移动设备中 内置的 WEB模块获得该第二移动设备的基于浏览器的网络请求,进而进行后 续共享安装网页的发送歩骤。
需要说明的是, iptables是 IOS、 和基于 Linux内核集成的 IP信息包过滤 系统,其中,使用 linux内核的操作系统目前有 Android, Access Linux, Android, LiMo、 Maemo、 Mobilinux、 Moblin、 MotoMagx、 Openmoko、 WebOS、 Qt Extended, Ubuntu Mobile等操作系统; 并且, 上述截获并重定向该第二移动 设备发送的基于浏览器的网络请求的方式仅仅作为示例, 并不应该构成对本 申请实施例的限定。
S104, 将待共享文件作为该网络请求对应的请求结果并发送至该第二移 动设备。
在将截获并重定向第二移动设备发送的基于浏览器的网络请求后, 可以 将该待共享文件作为该网络请求对应的请求结果并通过相应的端口发送至第 二移动设备, 而第二移动设备在接收到该待共享文件后可以在用户的指示下 保存到特定存储位置或安装到第二移动设备中, 从而实现了文件的共享。
需要说明的是, 对于实现文件共享方法的功能软件为用于提供文件共享 功能的客户端软件的情况而言, 为了确定出待共享文件, 在将待共享文件作 为该网络请求对应的请求结果并发送至该第二移动设备之前, 所述方法还可 以包括: 展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 该文 件选择页面中包含该第一移动设备所存储的可共享的文件; 将该用户所选择 的需要共享的文件作为待共享文件。 本领域技术人员可以理解的是, 确定出 待共享文件的歩骤只要在将待共享文件作为该网络请求对应的请求结果并发 送至该第二移动设备的歩骤之前就可以, 当然, 为了提供用户操作连贯性的 使用体验, 可以在获取针对待共享文件的共享指令的歩骤之后立即执行确定 待共享文件的歩骤, 而从用户操作的角度而言, 在用户点击用于指示共享文 件的按钮后, 移动设备便会展示文件选择界面, 以指示用户选择需要共享的 文件, 而用户选择所需共享的文件即可。
本方案中, 第二移动设备在共享文件之前无需安装任何具备文件共享功 能的软件或插件, 而第一移动设备可以截获第二移动设备发送的基于浏览器 的网络请求并重定向, 进而将待共享文件作为网络请求对应的请求结果发送 至第二移动设备, 实现了在共享文件接收端无需安装任何具有文件共享功能 的软件或插件的前提下, 通过不产生网络流量的方式快速共享文件, 从而提 高了用户的使用体验。 并且, 通过利用本方案, 还能够达到以下效果: (1 ) 无论是作为共享机的第一移动设备还是作为客户机的第二移动设备均无需借 助移动网络和互联网实现文件传输; (2) —键点击操作简单, 无需用户关心 如何设置热点, 如何访问热点, 如何从共享机中获得相关的文件; (3 ) 支持 多人同时共享; (4) 共享实现速度快; (5 ) 适合免费软件的推广传播; (6) 无需搜索网络寻找安装源; (7 ) 由于获取共享机中已存在的安装文件, 无需 用户鉴别安装软件是否安全; (8) 无需借助路由或 AP; (9) 无需分享机和客 户机处于同一网段; (10) 无需借助 PC作为中转; (11 )无需链接电缆; (12) 无需存储卡交换数据。
需要说明的是, 由于该第一移动设备运行的操作系统可能与第二移动设 备运行的操作系统不同, 因此, 对于同一个应用而言, 两者所应安装的安装 包不同, 例如, 第一移动设备运行 IOS系统 (由苹果公司开发的手持设备操 作系统), 而第二移动设备运行 Android系统, 此时, 对于待共享文件为应用 的安装包而言, 第一移动设备需要适用于 IOS系统的安装包, 而第二移动设 备需要适用于 Android系统的安装包, 因此, 为了实现第一移动设备为第二移 动设备提供符合操作系统的文件, 该第一移动设备可以预先存储不同操作系 统所需的文件, 进而将第二移动设备所需的符合操作系统的文件作为待共享 文件进行发送。
更进一歩的, 为了提高重定向效率, 截获并重定向该第二移动设备发送 的基于浏览器的网络请求, 可以包括:
截获该第二移动设备发送的基于浏览器的网络请求;
判断该网络请求是否为预先设定的第一网络请求;
当判断出该网络请求为预先设定的第一网络请求时, 将该网络请求进行 重定向处理。
需要说明的是, 该第一网络请求可以根据实际情况设定, 在此不做限定; 并且, 当判断出该网络请求不为预先设定的第一网络请求时, 该第一移动设 备可以为该第二移动设备从网络中下载该网络请求对应的内容并反馈给该第 二移动设备即可。
更进一歩, 可以根据实际需求, 选择特定的第二移动设备进行文件共享, 选择过程可以发生在网络连接的过程中, 也可以发生在网络连接之后。 其中, 对于选择过程发生在网络连接的过程中的情况, 与请求网络共享的第二移动 设备进行网络连接, 可以包括:
指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设 备;
与所选择的可共享的第二移动设备进行网络连接。
而对于选择过程发生在网络连接之后的情况而言,
在与请求网络共享的第二移动设备进行网络连接之后, 该文件共享方法 还可以包括:
指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设 备;
相应的, 截获并重定向该第二移动设备发送的基于浏览器的网络请求, 可以包括:
截获该第二移动设备发送的基于浏览器的网络请求;
判断该第二移动设备是否为可共享的第二移动设备, 如果是, 重定向该 第二移动设备发送的基于浏览器的网络请求。
需要说明的是, 可以通过列表形式展示出请求网络连接的第二移动设备 的设备标识或处于网络连接状态的第二设备的设备标识, 并指示用户选中所 需的设备标识, 从而完成对可共享的第二移动设备的选择; 当然, 也可以通 过分布显示设备缩略图的形式展示出请求网络连接的第二移动设备或处于网 络连接状态的第二设备, 而用户可以通过滑动操作将在滑动操作所对应滑动 方向上的第二移动设备作为可共享的第二移动设备, 也可以通过点击缩略图 的方式选择可共享的第二移动设备,例如:接收到用户 A的滑动手势指令(指 向左边) 后, 显示在左侧的设备 B为可共享的设备; 接收到用户 A的滑动手 势指令 (指向右边) 后, 显示在右侧的设备 C为可共享的设备。
当然, 作为一个具体实施例, 第一移动设备与第二移动设备进行网络连 接时, 第一设备可以生成密码, 第二移动设备通过输入密码, 通过验证后方 可接入第一移动设备的网络, 从而保证网络连接的安全性。 基于上述方法实施例, 本申请实施例还提供了一种文件共享方法, 以在 用户选择下载待共享文件时发送待共享文件, 从而进一歩提高用户的使用体 验。
同样的, 本申请实施例所提供的一种文件共享方法适用于具有网络共享 功能的第一移动设备, 其中, 该第一移动设备所具有的网络共享功能包括: WLAN热点功能、蓝牙网络共享功能和 USB网络共享功能中的至少一种。可 以理解的是, 在实际应用中, 该第一移动设备可以为手机、 笔记本电脑、 平 板电脑等。
并且, 实现文件共享方法的功能软件可以为某一应用中内置的共享功能 模块, 也可以通过插件形式存在于某一应用中, 当然还可以是安装在第一移 动设备中的用于提供文件共享功能的客户端软件, 这都是合理的。
如图 2所示, 一种文件共享方法, 可以包括:
S201 , 获取针对待共享文件的共享指令;
本申请实施例中, 歩骤 S201与上述实施例中, 歩骤 S101相似, 在此不 作赘述。
S202, 获取待共享文件的共享安装网页;
其中, 在获取针对于待共享文件的共享指令后, 可以获得待共享文件的 共享安装网页, 其中, 该共享安装网页包含指向待共享文件的下载链接。
需要说明的是, 对于实现文件共享方法的功能软件为某一应用中内置的 共享功能模块或通过插件形式存在于某一应用中的情况而言, 获取待共享文 件的共享安装网页, 可以包括: 获得应用中预先内置的共享安装网页; 而对 于实现文件共享方法的功能软件为安装在第一移动设备中的用于提供文件共 享功能的客户端软件的情况而言, 由于所针对的待共享文件的选择范围可以 为第一移动设备所存储的所有文件, 因此, 获取待共享文件的共享安装网页, 可以包括: 展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 该 文件选择页面中包含该第一移动设备所存储的可共享的文件; 将该用户所选 择的需要共享的文件作为待共享文件, 并生成针对待共享文件的共享安装网 页。
进一歩, 需要说明的是, 获取待共享文件的共享安装网页的歩骤可以在 获取针对待共享文件的共享指令后立即执行, 当然并不局限于此, 只要保证 向第二移动设备发送共享安装网页之前获得即可, 例如: 可以在后续的截获 并重定向该第二移动设备发送的基于浏览器的网络请求的歩骤之后执行, 也 可以在后续的启动该第一移动设备的网络共享功能的歩骤之后执行。
当然, 对于实现文件共享方法的功能软件为安装在第一移动设备中的用 于提供文件共享功能的客户端软件的情况而言, 可以在获取针对待共享文件 的共享指令的歩骤之后立即执行获取待共享文件的共享安装网页的歩骤, 而 从用户操作的角度而言, 在用户点击用于指示共享文件的按钮后, 移动设备 便会展示文件选择界面, 以指示用户选择需要共享的文件, 而用户选择所需 共享的文件即可, 从而使得用户具有操作连贯性的使用体验。
S203 , 在该第一移动设备的网络共享功能启动之后, 与请求网络共享的 第二移动设备进行网络连接;
S204, 截获并重定向该第二移动设备发送的基于浏览器的网络请求; 本申请实施例中,歩骤 S203-歩骤 S204与上述实施例中,歩骤 S102-歩骤 S103类似, 在此不作赘述。
5205 , 将该共享安装网页作为该网络请求对应的请求结果并发送至该第 二移动设备;
在完成截获并重定向该第二移动设备发送的基于浏览器的网络请求后, 可以将共享安装网页作为该网络请求对应的请求结果并通过相应的端口发送 至该第二移动设备, 从而该第二移动设备可以接收并展示该共享安装网页。
5206, 接收该第二移动设备发送的基于该共享安装网页的下载链接所形 成的下载请求;
当第二移动设备中展示出所接收到的共享安装网页后, 用户可以点击该 共享安装网页中的下载链接, 而该第二移动设备在检测到点击该下载链接的 操作后, 形成该下载链接对应的下载请求并发送至该第一移动设备; 而该第 一移动设备可以接收到该第二移动设备发送的基于该共享安装网页的下载链 接所形成的下载请求, 进而进行后续的待共享文件的发送。 本领域技术人员可以理解的是, 当预定时间段内未接收到该第二移动设 备发送的基于该共享安装网页的下载链接所形成的下载请求时, 表明第二移 动设备的用户选择不同意下载待共享文件, 此时, 该第一移动设备为该第二 移动设备从网络中下载该网络请求对应的内容并反馈给该第二移动设备即 可。
S207, 向该第二移动设备发送该下载请求对应的待共享文件。
在接收到该第二移动设备通过该共享安装网页的下载链接发送的下载请 求后, 可以向该第二移动设备发送该下载请求对应的待共享文件, 而第二移 动设备在接收到该待共享文件后可以在用户的指示下保存到特定存储位置或 安装到第二移动设备中, 从而实现将第一移动设备中的文件共享到该第二移 动设备。
本方案中, 第二移动设备在共享文件之前无需安装任何具备文件共享功 能的插件或软件, 而第一移动设备可以截获并重定向第二移动设备发送基于 浏览器的网络请求, 进而将共享安装网页作为该网络请求对应的请求结果并 发送至该第二移动设备, 并在接收到第二移动设备发送的基于该共享安装网 页的下载链接所形成的下载请求后, 向该第二移动设备发送该下载请求对应 的待共享文件, 实现了在共享文件接收端无需安装任何具备文件共享功能的 软件或插件的前提下, 通过不产生网络流量的方式快速共享文件, 并且, 在 用户需求待共享文件时发送待共享文件, 进一歩提高了用户的使用体验。 需要说明的是, 由于该第一移动设备运行的操作系统可能与第二移动设 备运行的操作系统不同, 因此, 对于同一个应用而言, 两者所应安装的安装 包不同, 例如, 第一移动设备运行 IOS系统 (由苹果公司开发的手持设备操 作系统), 而第二移动设备运行 Android系统, 此时, 对于待共享文件为应用 的安装包而言, 第一移动设备需要适用于 IOS系统的安装包, 而第二移动设 备需要适用于 Android系统的安装包, 因此, 为了实现第一移动设备为第二移 动设备提供符合操作系统的文件, 该第一移动设备可以预先存储不同操作系 统所需的文件, 并在共享安装网页中提供不同操作系统所对应的下载链接。
举例而言, 待共享文件可以对应一个共享安装网页, 其中, 共享安装网 页包含指向待共享文件的针对至少一种操作系统的下载链接, 且每一下载链 接指向针对于一种操作系统的待共享文件;
相应的, 向该第二移动设备发送该下载请求对应的待共享文件, 可以包 括:
依据该下载请求, 确定该第二移动设备所运行的第一操作系统; 向该第二移动设备发送该下载请求对应的、 针对于该第一操作系统的待 共享文件。
举例而言, 待共享文件对应至少一个共享安装网页, 其中, 每一共享安 装网页包含指向待共享文件的针对于一种操作系统的下载链接;
相应的, 将该共享安装网页作为该网络请求对应的请求结果并发送至该 第二移动设备, 可以包括:
依据该网络请求, 确定该第二移动设备运行的第一操作系统;
将该第一操作系统对应的共享安装网页作为该网络请求对应的请求结果 并发送至该第二移动设备。
更进一歩的, 为了提高重定向效率, 截获并重定向该第二移动设备发送 的基于浏览器的网络请求, 可以包括:
截获该第二移动设备发送的基于浏览器的网络请求;
判断该网络请求是否为预先设定的第一网络请求;
当判断出该网络请求为预先设定的第一网络请求时, 将该网络请求进行 重定向处理。
其中, 该第一网络请求可以根据实际情况设定, 在此不做限定; 需要说 明的是, 该第一网络请求可以根据实际情况设定, 在此不做限定; 并且, 当 判断出该网络请求不为预先设定的第一网络请求时, 该第一移动设备可以为 该第二移动设备从网络中下载该网络请求对应的内容并反馈给该第二移动设 备即可。
更进一歩, 可以根据实际需求, 选择特定的第二移动设备进行文件共享, 选择过程可以发生在网络连接的过程中, 也可以发生在网络连接之后。 其中, 对于选择过程发生在网络连接的过程中的情况, 与请求网络共享的第二移动 设备进行网络连接, 可以包括: 指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设 备;
与所选择的可共享的第二移动设备进行网络连接。
而对于选择过程发生在网络连接之后的情况而言,
在与请求网络共享的第二移动设备进行网络连接之后, 该文件共享方法 还可以包括:
指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设 备;
相应的, 截获并重定向该第二移动设备发送的基于浏览器的网络请求, 可以包括:
截获该第二移动设备发送的基于浏览器的网络请求;
判断该第二移动设备是否为可共享的第二移动设备, 如果是, 重定向该 第二移动设备发送的基于浏览器的网络请求。
需要说明的是, 可以通过列表形式展示出请求网络连接的第二移动设备 的设备标识或处于网络连接状态的第二设备的设备标识, 并指示用户选中所 需的设备标识, 从而完成对可共享的第二移动设备的选择; 当然, 也可以通 过分布显示设备缩略图的形式展示出请求网络连接的第二移动设备或处于网 络连接状态的第二设备, 而用户可以通过滑动操作将在滑动操作所对应滑动 方向上的第二移动设备作为可共享的第二移动设备, 也可以通过点击缩略图 的方式选择可共享的第二移动设备,例如:接收到用户 A的滑动手势指令(指 向左边) 后, 显示在左侧的设备 B为可共享的设备; 接收到用户 A的滑动手 势指令 (指向右边) 后, 显示在右侧的设备 C为可共享的设备。
当然, 作为一个具体实施例, 第一移动设备与第二移动设备进行网络连 接时, 第一设备可以生成密码, 第二移动设备通过输入密码, 通过验证后方 可接入第一移动设备的网络, 从而保证网络连接的安全性。 下面结合具体的应用实例, 对本申请实施例所提供的一种文件共享方法 介绍。
需要说明的是, 实现该文件共享方法的功能软件为应用 1 中内置的共享 功能模块, 其中, 该手机 A具有 WLAN热点功能, 且具有管理员权限。
如图 3所示, 一种文件共享方法, 可以包括:
5301 , 在应用 1处于开启状态的过程中, 当手机 A检测到基于该应用 1 发出的用于指示共享文件的操作时, 获取针对待共享安装包的共享指令; 当需要将该应用 1 的安装包共享到另一设备时, 用户可以点击显示在该 应用 1中的某一页面中的"一键分享"的按钮后, 从而该手机 A可以获取针对 待共享安装包的共享指令, 其中, 该待共享安装包为该应用 1对应的安装包。
5302, 获得该应用 1中预先内置的共享安装网页;
其中, 在获取针对于待共享安装包的共享指令后, 可以获得该应用 1 中 预先内置的共享安装网页, 其中, 该共享安装网页包含指向待共享安装包的 针对于至少一种操作系统的下载链接。
5303 , 当判断出该手机 A具有 WLAN热点功能时, 启动该手机 A 的 WLAN热点功能;
5304, 与请求网络共享的手机 B进行网络连接;
在手机 A启动 WLAN热点功能后,手机 B可以扫描该手机 A,进而请求 网络共享, 使得该手机 A可以与请求网络共享的手机 B进行网络连接。 如果 手机 A启动 WLAN热点功能时,设置有验证密码,则手机 B在请求网络共享 时需要输入该验证码, 验证码正确后手机 A可以与手机 B进行网络连接。
5305 , 通过设置该手机 A的操作系统中的 iptables的规则的方式, 截获 并重定向该手机 B发送的基于浏览器的网络请求;
5306, 将该共享安装网页作为该网络请求对应的请求结果并发送至该手 机 B;
其中, 在手机 A与手机 B网络连接后, 用户可以在手机 B的浏览器的地 址栏内输入任意的地址信息, 而手机 B在检测到该地址信息后, 可以生成相 应的网络请求, 并向该手机 A发送所生成的基于浏览器的网络请求; 而该手 机 A可以通过设置该手机 A的操作系统中的 iptables的规则的方式, 截获并 重定向该手机 B发送的基于浏览器的网络请求, 进而将该共享安装网页作为 该网络请求对应的请求结果并发送至该手机 B。 其中, 可以理解的是, 该网 络请求可以为: HTTP请求或 FTP请求, 当然并不局限于此。 5307 ,接收该手机 B基于该共享安装网页的下载链接所形成的下载请求;
5308, 依据该下载请求, 确定该手机 B所运行的第一操作系统;
5309, 向该手机 B发送该下载请求对应的、 针对于该第一操作系统的待 共享安装包。
当手机 B中展示出所接收到的共享安装网页后, 用户可以点击该共享安 装网页中的符合手机 B所运行第一操作系统的下载链接, 而该手机 B在检测 到点击下载链接的操作后, 形成该下载链接对应的下载请求并发送至该手机 A; 而该手机 A可以接收到该手机 B发送的基于该共享安装网页的下载链接 所形成的下载请求, 并依据该下载请求, 确定该手机 B所运行的第一操作系 统, 进而向该手机 B发送该下载请求对应的、 针对于该第一操作系统的待共 享安装包, 而手机 B在接收到该待共享安装包后可以在用户的指示下保存到 特定存储位置或安装到该手机 B中, 从而实现文件共享。
可见, 本方案中, 实现了在共享文件接收端无需安装任何具备文件共享 功能的软件或插件的前提下, 通过不产生网络流量的方式快速共享文件, 并 且, 在用户需求待共享文件时发送共享文件, 进一歩提高了用户的使用体验。 下面结合另一具体的应用实例, 对本申请实施例所提供的一种文件共享 方法介绍。
需要说明的是, 实现该文件共享方法的功能软件为安装在手机 A中的用 于共享文件的客户端软件, 其中, 该手机 A具有 WLAN热点功能, 且具有管 理权权限。
如图 4所示, 一种文件共享方法, 可以包括:
5401 , 在检测到用于指示共享文件的操作时, 获取针对待共享文件的共 享指令;
当需要将手机 A所存储的文件共享到另一设备时, 用户点击用于共享文 件的客户端软件中的 "一键分享"的按钮后, 该手机 A获取针对待共享文件的 共享指令。
5402, 展示文件选择界面, 以指示用户选择需要共享的文件;
其中, 该文件选择页面中包含该手机 A所存储的可共享的文件。 S403 , 在用户选择需要共享的文件后, 生成针对待共享文件的至少一个 共享安装网页;
其中, 每一共享安装网页包含指向待共享文件的针对于一种操作系统的 下载链接。
S404, 当判断出该手机 A具有 WLAN热点功能时, 启动该手机 A 的
WLAN热点功能;
5405 , 与请求网络共享的手机 B进行网络连接;
在手机 A启动 WLAN热点功能后,手机 B可以扫描该手机 A,进而请求 网络共享, 而该手机 A可以与请求网络共享的手机 B进行网络连接。 如果手 机 A启动 WLAN热点功能时,设置有验证密码,则手机 B在请求网络共享时 需要输入该验证码, 验证码正确后手机 A可以与手机 B进行网络连接。
5406, 通过挂载所编写内核模块的方式, 截获并重定向该第二移动设备 发送的基于浏览器的网络请求;
5407, 依据该网络请求, 确定该第二移动设备运行的第一操作系统; S408 , 将该第一操作系统对应的共享安装网页作为该网络请求对应的请 求结果并发送至该手机 B;
其中, 在手机 A与手机 B网络连接后, 用户可以在手机 B的浏览器的地 址栏内输入任意的地址信息, 而手机 B在检测到该地址信息后, 可以生成相 应的网络请求, 并向该手机 A发送所生成的基于浏览器的网络请求; 而该手 机 A可以通过挂载所编写的内核模块的方式, 截获并重定向该手机 B发送的 基于浏览器的网络请求, 并依据该网络请求, 确定该第二移动设备运行的第 一操作系统, 进而将该第一操作系统对应的共享安装网页作为该网络请求对 应的请求结果并发送至该手机8。 其中, 可以理解的是, 该网络请求可以为: HTTP请求或 FTP请求, 当然并不局限于此。
S409, 接收该手机 B通过该共享安装网页的下载链接发送的下载请求;
S410, 向该手机 B发送该下载请求对应的待共享文件。
当手机 B中展示出所接收到的共享安装网页后, 用户可以点击该共享安 装网页中的下载链接, 而该手机 B在检测到点击下载链接的操作后, 形成该 下载链接对应的下载请求并发送至该手机 A; 而该手机 A可以接收到该手机 B发送的基于该共享安装网页的下载链接所形成的下载请求,进而向该手机 B 发送该下载请求对应的待共享文件, 而手机 B在接收到该待共享安装包后可 以在用户的指示下保存到特定存储位置或安装到该手机 B 中, 从而实现文件 共享。
可见, 通过利用本方案, 实现了在共享文件接收端无需安装任何具备文 件共享功能的软件或插件的前提下, 通过不产生网络流量的方式快速共享文 件, 并且, 在用户需求待共享文件时发送共享文件, 进一歩提高了用户的使 用体验。 相应于上述共享端对应的方法实施例, 本申请实施例提供了一种文件共 享装置, 适用于第一移动设备。
实施例一, 如图 5所示, 所述文件共享装置可以包括:
共享指令获取模块 510, 用于获取针对待共享文件的共享指令; 网络连接模块 520, 用于在所述第一移动设备的网络共享功能启动之后, 与请求网络共享的第二移动设备进行网络连接;
网络请求处理模块 530,用于截获并重定向所述第二移动设备发送的基于 浏览器的网络请求;
待共享文件处理模块 540,用于将待共享文件作为所述网络请求对应的请 求结果并发送至所述第二移动设备。
本方案中, 第二移动设备在共享文件之前无需安装任何具备文件共享功 能的软件或插件, 而第一移动设备可以截获第二移动设备发送的基于浏览器 的网络请求并重定向, 进而将待共享文件作为网络请求对应的请求结果发送 至第二移动设备, 实现了在共享文件接收端无需安装任何具备文件共享功能 的软件或插件的前提下, 通过不产生网络流量的方式快速共享文件, 从而提 高了用户的使用体验。
其中, 基于本申请实施例一所提供的文件共享装置, 本申请实施例二所 提供的文件共享装置还可以包括: 网络共享功能启动模块, 用于在与请求网 络共享的第二移动设备进行网络连接之前, 启动所述第一移动设备的网络共 享功能。 其中, 针对于实施例一或实施例二所提供的文件共享装置, 所述共享指 令获取模块 510, 可以包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件。
其中, 针对于实施例一或实施例二所提供的文件共享装置, 所述共享指 令获取模块 510, 可以包括:
第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
所述装置还可以包括:
待共享文件确定模块, 用于在将待共享文件作为所述网络请求对应的请 求结果并发送至所述第二移动设备之前, 展示文件选择界面, 以指示用户选 择需要共享的文件, 其中, 所述文件选择页面中包含所述第一移动设备所存 储的可共享的文件; 将所述用户所选择的需要共享的文件作为待共享文件。
更进一歩的, 在实施例一或实施例二的基础上, 本申请所提供实施例三 中, 所述文件共享装置还可以包括:
共享安装网页获取模块, 用于在获取针对待共享文件的共享指令之后, 获取待共享文件的共享安装网页; 其中, 所述共享安装网页中包含指向所述 待共享文件的下载链接;
相应的, 所述待共享文件处理模块 540, 可以包括:
共享安装网页发送单元, 用于将所述共享安装网页作为所述网络请求对 应的请求结果并发送至所述第二移动设备;
待共享文件处理单元, 用于在接收到所述第二移动设备发送的基于所述 共享安装网页的下载链接所形成的下载请求后, 向所述第二移动设备发送所 述下载请求对应的待共享文件。
其中, 针对于实施例三所提供的文件共享装置, 所述共享指令获取模块, 可以包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件;
相应的, 所述共享安装网页获取模块, 可以包括:
第一共享安装网页获取单元, 用于在获取针对待共享文件的共享指令之 后, 获取所述应用中预先内置的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
其中, 针对于实施例三所提供的文件共享装置, 所述共享指令获取模块 510, 可以包括:
第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
相应的, 所述共享安装网页获取模块, 可以包括:
第二共享安装网页获取单元, 用于获得针对待共享文件的共享指令之后, 展示文件选择界面, 以指示用户选择待共享文件, 其中, 所述文件选择页面 中包含所述第一移动设备所存储的可共享的文件; 在待共享文件被选择完毕 后, 生成针对所述待共享文件的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
其中, 针对于实施例一、 实施例二或实施例三所提供的文件共享装置, 所述网络请求处理模块 530, 可以包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
判断单元, 用于判断所述网络请求是否为预先设定的第一网络请求; 网络请求重定向单元, 用于当判断出所述网络请求为预先设定的第一网 络请求时, 将所述网络请求进行重定向处理。
其中, 针对于实施例一、 实施例二或实施例三所提供的文件共享装置, 所述网络请求处理模块 530用于当所述第一移动设备的操作系统的当前用户 名具有管理员权限时,通过设置所述第一移动设备的操作系统中的 iptables的 规则的方式, 截获并重定向所述第二移动设备发送的基于浏览器的网络请求。
其中, 针对于实施例一、 实施例二或实施例三所提供的文件共享装置, 所述网络请求处理模块 530可以通过挂载所编写内核模块的方式, 截获并重 定向所述第二移动设备发送的基于浏览器的网络请求。 其中, 针对于实施例一、 实施例二或实施例三所提供的文件共享装置, 还可以包括:
页面展示模块, 用于在获取针对待共享文件的共享指令后, 展示包含所 述第一移动设备自身的 IP地址和访问方式的页面, 以指示所述第二移动设备 所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设 备的 IP地址;
所述网络请求处理模块 530用于当所述第一移动设备的操作系统的当前 用户名未具有管理员权限时,通过所述第一移动设备中内置的 WEB模块获得 所述第二移动设备的基于浏览器的网络请求。
其中, 针对于实施例一、 实施例二或实施例三所提供的文件共享装置, 所述网络连接模块 520, 可以包括:
选择单元, 用于指示用户从请求网络共享的第二移动设备中选择可共享 的第二移动设备;
网络连接单元, 用于与所选择的可共享的第二移动设备进行网络连接。 更进一歩的, 针对于实施例一、 实施例二或实施例三所提供的文件共享 装置, 还可以包括:
选择模块, 用于与请求网络共享的第二移动设备进行网络连接之后, 指 示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;
所述网络请求处理模块 530, 可以包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
网络请求处理单元, 用于判断所述第二移动设备是否为可共享的第二移 动设备, 如果是, 重定向所述第二移动设备发送的基于浏览器的网络请求。
其中, 针对于实施例二所提供的文件共享装置, 所述第一移动设备所具 有的网络共享功能包括: WLAN热点功能、蓝牙网络共享功能和 USB网络共 享功能中的至少一种。
其中,所述网络共享功能启动模块,用于判断是否存在 WLAN热点功能, 如果是, 启动所述 WLAN热点功能; 否则,
判断是否存在蓝牙网络共享功能, 如果是, 启动所述蓝牙网络共享功能; 否则, 启动所述 USB网络共享功能。
其中, 针对于实施例三所提供的文件共享装置, 所述待共享文件对应一 个共享安装网页, 其中, 所述共享安装网页包含指向待共享文件的针对至少 一种操作系统的下载链接, 且每一下载链接指向针对于一种操作系统的待共 享文件;
所述待共享文件处理单元, 可以包括:
操作系统确定子单元, 用于在接收到所述第二移动设备通过所述共享安 装网页的下载链接发送的下载请求后, 依据所述下载请求, 确定所述第二移 动设备所运行的第一操作系统;
待共享文件发送子单元, 用于向所述第二移动设备发送所述下载请求对 应的、 针对于所述第一操作系统的待共享文件;
或者, 所述待共享文件对应至少一个共享安装网页, 其中, 每一共享安 装网页包含指向待共享文件的针对于一种操作系统的下载链接;
所述共享安装网页发送单元, 可以包括:
操作系统确定子单元, 用于依据所述网络请求, 确定所述第二移动设备 运行的第一操作系统;
共享安装网页发送子单元, 用于将所述第一操作系统对应的共享安装网 页作为所述网络请求对应的请求结果并发送至所述第二移动设备。 进一歩的, 本申请实施例还提供了一种移动设备, 所述移动设备为第一 移动设备, 可以包括: 本申请实施例所提供的适用于第一移动设备的任意一 种文件共享装置。 对于系统实施例而言, 由于其基本相似于方法实施例, 所以描述的比较 简单, 相关之处参见方法实施例的部分说明即可。
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来 将一个实体或者操作与另一个实体或操作区分开来, 而不一定要求或者暗示 这些实体或操作之间存在任何这种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要 素的过程、 方法、 物品或者设备不仅包括那些要素, 而且还包括没有明确列 出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设备所固有的要 素。在没有更多限制的情况下, 由语句 "包括一个 ...... "限定的要素, 并不排除 在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分歩 骤是可以通过程序来指令相关的硬件来完成, 所述的程序可以存储于计算机 可读取存储介质中, 这里所称得的存储介质, 如: ROM/RAM,磁碟、光盘等。
以上所述仅为本申请的较佳实施例而已, 并非用于限定本申请的保护范 围。 凡在本申请的精神和原则之内所作的任何修改、 等同替换、 改进等, 均 包含在本申请的保护范围内。

Claims

权 利 要 求
1、 一种文件共享方法, 其特征在于, 适用于第一移动设备, 所述方法包 括:
获取针对待共享文件的共享指令;
在所述第一移动设备的网络共享功能启动之后, 与请求网络共享的第二 移动设备进行网络连接;
截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 将待共 享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。
2、 根据权利要求 1所述的方法, 其特征在于, 所述与请求网络共享的第 二移动设备进行网络连接之前, 所述方法还包括:
启动所述第一移动设备的网络共享功能。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 在应用处于开启状态 过程中, 当检测到基于所述应用发出的用于指示共享文件的操作时, 获取所 述针对待共享文件的共享指令, 其中, 所述待共享文件为所述应用对应的文 件。
4、 根据权利要求 1或 2所述的方法, 其特征在于, 在检测到用于指示共 享文件的操作时, 获取所述针对待共享文件的共享指令;
在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移 动设备之前, 所述方法还包括:
展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 所述文件 选择页面中包含所述第一移动设备所存储的可共享的文件;
将所述用户所选择的需要共享的文件作为待共享文件。
5、 根据权利要求 1至 4任意一项所述的方法, 其特征在于, 在获取针对 待共享文件的共享指令之后, 所述方法还包括:
获取待共享文件的共享安装网页; 其中, 所述共享安装网页中包含指向 所述待共享文件的下载链接;
相应的, 所述将待共享文件作为所述网络请求对应的请求结果并发送至 所述第二移动设备, 包括:
将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第 二移动设备;
在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所 形成的下载请求后, 向所述第二移动设备发送所述下载请求对应的待共享文 件。
6、 根据权利要求 5所述的方法, 其特征在于, 在应用处于开启状态过程 中, 当检测到基于所述应用发出的用于指示共享文件的操作时, 获取所述针 对待共享文件的共享指令, 其中, 所述待共享文件为所述应用对应的文件; 相应的, 所述获取待共享文件的共享安装网页, 包括:
获取所述应用中预先内置的共享安装网页, 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
7、 根据权利要求 5所述的方法, 其特征在于, 在检测到用于指示共享文 件的操作时, 获取所述针对待共享文件的共享指令;
相应的, 所述获取待共享文件的共享安装网页, 包括:
展示文件选择界面, 以指示用户选择需要共享的文件, 其中, 所述文件 选择页面中包含所述第一移动设备所存储的可共享的文件;
将所述用户所选择的需要共享的文件作为待共享文件, 并生成针对所述 待共享文件的共享安装网页, 其中, 所述共享安装网页中包含指向所述待共 享文件的下载链接。
8、 根据权利要求 1-7任意一项所述的方法, 其特征在于, 所述截获并重 定向所述第二移动设备发送的基于浏览器的网络请求, 包括:
截获所述第二移动设备发送的基于浏览器的网络请求;
判断所述网络请求是否为预先设定的第一网络请求;
当判断出所述网络请求为预先设定的第一网络请求时, 将所述网络请求 进行重定向处理。
9、 根据权利要求 1-8任意一项所述的方法, 其特征在于, 当所述第一移 动设备的操作系统的当前用户名具有管理员权限时, 通过设置所述第一移动 设备的操作系统中的 iptables的规则的方式,截获并重定向所述第二移动设备 发送的基于浏览器的网络请求。
10、 根据权利要求 9所述的方法, 其特征在于, 设置所述第一移动设备 的操作系统中的 iptables的规则的过程, 包括:
在所述第一移动设备的 iptables中增加对所述第二移动设备的基于浏览器 的网络请求的目标第一端口进行监听、 以及将所截获到的经过所述第一移动 设备的所述第二移动设备发送的基于浏览器的网络请求重定向至所述第一移 动设备的预定的第二端口的规则;
相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络 请求, 包括:
监听所述第二移动设备的基于浏览器的网络请求的所述目标第一端口, 并截获经过所述第一移动设备的所述第二移动设备发送的基于浏览器的网络 请求, 进而将所截获到的网络请求重定向至所述第一移动设备的第二端口, 以通过所述第二端口将所述网络请求对应的请求结果并发送至所述第二移动 设备。
11、根据权利要求 1-8任意一项所述的方法, 其特征在于, 当所述第一移 动设备的操作系统的当前用户名具有管理员权限时, 通过挂载所编写的内核 模块的方式, 截获并重定向所述第二移动设备发送的基于浏览器的网络请求。
12、 根据权利要求 11所述的方法, 其特征在于, 所述挂载所编写的内核 模块的过程包括:
将采用 netfilter框架所编写的内核模块挂载到所述第一移动设备的操作 系统内核中, 以实现在网络架构中的 IP层中增设一 hook点, 其中, 通过所述 hook点拦截经过所述第一移动设备的目标端口为预定的第一端口的所述第二 移动设备的网络请求, 且能够将所述网络请求中的目的 IP修改为所述第一移 动设备的 IP地址且将目的端口修改为所述第一移动设备的预定的第二端口; 相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络 请求, 包括:
通过所述 hook点拦截经过所述第一移动设备的目标端口为所述第一端口 的所述第二移动设备发送的基于浏览器的网络请求, 并将所述网络请求中的 目的 IP地址修改为所述第一移动设备的 IP地址,目的端口修改为所述第一移 动设备的所述第二端口, 以通过所述第二端口将所述网络请求对应的请求结 果发送至所述第二移动设备。
13、 根据权利要求 1-12任意一项所述的方法, 其特征在于, 当所述第一 移动设备的操作系统的当前用户名未具有管理员权限时, 所述方法还包括: 在获取针对待共享文件的共享指令后, 展示包含所述第一移动设备自身 的 IP地址和访问方式的页面, 以指示所述第二移动设备所对应用户在所述第 二移动设备的浏览器内的地址栏内输入所述第一移动设备的 IP地址;相应的, 所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 包括: 通过所述第一移动设备中内置的 WEB 模块获得所述第二移动设备的基 于浏览器的网络请求。
14、 根据权利要求 1-13任意一项所述的方法, 其特征在于, 所述与请求 网络共享的第二移动设备进行网络连接, 包括:
指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设 备;
与所选择的可共享的第二移动设备进行网络连接。
15、 根据权利要求 1-14任意一项所述的方法, 其特征在于, 所述与请求 网络共享的第二移动设备进行网络连接之后, 所述方法还包括:
指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设 备;
所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求, 包 括:
截获所述第二移动设备发送的基于浏览器的网络请求;
判断所述第二移动设备是否为可共享的第二移动设备, 如果是, 重定向 所述第二移动设备发送的基于浏览器的网络请求。
16、 根据权利要求 2至 15任意一项所述的方法, 其特征在于, 所述第一 移动设备所具有的网络共享功能包括: WLAN热点功能、 蓝牙网络共享功能 和 USB网络共享功能中的至少一种。
17、 根据权利要求 2至 16任意一项所述的方法, 其特征在于, 所述启动 所述第一移动设备中的网络共享功能, 包括:
判断是否存在 WLAN热点功能, 如果是, 启动所述 WLAN热点功能; 否则, 判断是否存在蓝牙网络共享功能, 如果是, 启动所述蓝牙网络共享功能; 否则, 启动所述 USB网络共享功能。
18、 根据权利要求 5至 17任意一项所述的方法, 其特征在于, 所述待共 享文件对应一个共享安装网页, 其中, 所述共享安装网页包含指向待共享文 件的针对至少一种操作系统的下载链接, 每一下载链接指向针对于一种操作 系统的待共享文件;
相应的,
所述向所述第二移动设备发送所述下载请求对应的待共享文件, 包括: 依据所述下载请求, 确定所述第二移动设备所运行的第一操作系统; 向所述第二移动设备发送所述下载请求对应的、 针对于所述第一操作系 统的待共享文件;
或者,
所述待共享文件对应至少一个共享安装网页, 其中, 每一共享安装网页 包含指向待共享文件的针对于一种操作系统的下载链接;
相应的, 所述将所述共享安装网页作为所述网络请求对应的请求结果并 发送至所述第二移动设备, 包括:
依据所述网络请求, 确定所述第二移动设备运行的第一操作系统; 将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求 结果并发送至所述第二移动设备。
19、 一种文件共享装置, 其特征在于, 适用于第一移动设备, 所述文件 共享装置包括:
共享指令获取模块, 用于获取针对待共享文件的共享指令;
网络连接模块, 用于在所述第一移动设备的网络共享功能启动之后, 与 请求网络共享的第二移动设备进行网络连接;
网络请求处理模块, 用于截获并重定向所述第二移动设备发送的基于浏 览器的网络请求;
待共享文件处理模块, 用于将待共享文件作为所述网络请求对应的请求 结果并发送至所述第二移动设备。
20、 根据权利要求 19所述的装置, 其特征在于, 还包括: 网络共享功能启动模块, 用于在与请求网络共享的第二移动设备进行网 络连接之前, 启动所述第一移动设备的网络共享功能。
21、 根据权利要求 19或 20所述的装置, 其特征在于, 所述共享指令获 取模块, 包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件。
22、 根据权利要求 19或 20所述的装置, 其特征在于, 所述共享指令获 取模块, 包括:
第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
所述装置还包括:
待共享文件确定模块, 用于在将待共享文件作为所述网络请求对应的请 求结果并发送至所述第二移动设备之前, 展示文件选择界面, 以指示用户选 择需要共享的文件, 其中, 所述文件选择页面中包含所述第一移动设备所存 储的可共享的文件; 将所述用户所选择的需要共享的文件作为待共享文件。
23、 根据权利要求 19至 22任意一项所述的装置, 其特征在于, 还包括: 共享安装网页获取模块, 用于在获取针对待共享文件的共享指令之后, 获取待共享文件的共享安装网页; 其中, 所述共享安装网页中包含指向所述 待共享文件的下载链接;
相应的, 所述待共享文件处理模块, 包括:
共享安装网页发送单元, 用于将所述共享安装网页作为所述网络请求对 应的请求结果并发送至所述第二移动设备;
待共享文件处理单元, 用于在接收到所述第二移动设备发送的基于所述 共享安装网页的下载链接所形成的下载请求后, 向所述第二移动设备发送所 述下载请求对应的待共享文件。
24、根据权利要求 23所述的装置,其特征在于,所述共享指令获取模块, 包括:
第一共享指令获取单元, 用于在应用处于开启状态过程中, 当检测到基 于所述应用发出的用于指示共享文件的操作时, 获取针对待共享文件的共享 指令, 其中, 所述待共享文件为所述应用对应的文件;
相应的, 所述共享安装网页获取模块, 包括:
第一共享安装网页获取单元, 用于在获取针对待共享文件的共享指令之 后, 获取所述应用中预先内置的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
25、根据权利要求 23所述的装置,其特征在于,所述共享指令获取模块, 包括:
第二共享指令获取单元, 用于在检测到用于指示共享文件的操作时, 获 取针对待共享文件的共享指令;
相应的, 所述共享安装网页获取模块, 包括:
第二共享安装网页获取单元, 用于获取针对待共享文件的共享指令之后, 展示文件选择界面, 以指示用户选择待共享文件, 其中, 所述文件选择页面 中包含所述第一移动设备所存储的可共享的文件; 在待共享文件被选择完毕 后, 生成针对所述待共享文件的共享安装网页; 其中, 所述共享安装网页中 包含指向所述待共享文件的下载链接。
26、根据权利要求 19-25任意一项所述的装置, 其特征在于, 所述网络请 求处理模块, 包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
判断单元, 用于判断所述网络请求是否为预先设定的第一网络请求; 网络请求重定向单元, 用于当判断出所述网络请求为预先设定的第一网 络请求时, 将所述网络请求进行重定向处理。
27、根据权利要求 19-26任意一项所述的装置, 其特征在于, 所述网络请 求处理模块, 用于当所述第一移动设备的操作系统的当前用户名具有管理员 权限时, 通过设置所述第一移动设备的操作系统中的 iptables的规则的方式, 截获并重定向所述第二移动设备发送的基于浏览器的网络请求。
28、根据权利要求 19-26任意一项所述的装置, 其特征在于, 所述网络请 求处理模块用于当所述第一移动设备的操作系统的当前用户名具有管理员权 限时, 通过挂载所编写的内核模块的方式, 截获并重定向所述第二移动设备 发送的基于浏览器的网络请求。
29、 根据权利要求 19-28任意一项所述的装置, 其特征在于, 还包括: 页面展示模块, 用于在获取针对待共享文件的共享指令后, 展示包含所 述第一移动设备自身的 IP地址和访问方式的页面, 以指示所述第二移动设备 所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设 备的 IP地址;
所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户 名未具有管理员权限时,通过所述第一移动设备中内置的 WEB模块获得所述 第二移动设备的基于浏览器的网络请求。
30、根据权利要求 19-29任意一项所述的装置, 其特征在于, 所述网络连 接模块, 包括:
选择单元, 用于指示用户从请求网络共享的第二移动设备中选择可共享 的第二移动设备;
网络连接单元, 用于与所选择的可共享的第二移动设备进行网络连接。
31、 根据权利要求 19-30任意一项所述的装置, 其特征在于, 还包括: 选择模块, 用于与请求网络共享的第二移动设备进行网络连接之后, 指 示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;
所述网络请求处理模块, 包括:
网络请求截获单元, 用于截获所述第二移动设备发送的基于浏览器的网 络请求;
网络请求处理单元, 用于判断所述第二移动设备是否为可共享的第二移 动设备, 如果是, 重定向所述第二移动设备发送的基于浏览器的网络请求。
32、 根据权利要求 20至 31任意一项所述的装置, 其特征在于, 所述第 一移动设备所具有的网络共享功能包括: WLAN热点功能、 蓝牙网络共享功 能和 USB网络共享功能中的至少一种。
33、 根据权利要求 20至 32任意一项所述的装置, 其特征在于, 所述网 络共享功能启动模块用于判断是否存在 WLAN热点功能, 如果是, 启动所述 WLAN热点功能; 否则, 判断是否存在蓝牙网络共享功能, 如果是, 启动所 述蓝牙网络共享功能; 否则, 启动所述 USB网络共享功能。
34、 根据权利要 23至 33任意一项所述的装置, 其特征在于, 所述待共 享文件对应一个共享安装网页, 其中, 所述共享安装网页包含指向待共享文 件的针对至少一种操作系统的下载链接, 且每一下载链接指向针对于一种操 作系统的待共享文件;
所述待共享文件处理单元, 包括:
操作系统确定子单元, 用于在接收到所述第二移动设备通过所述共享安 装网页的下载链接发送的下载请求后, 依据所述下载请求, 确定所述第二移 动设备所运行的第一操作系统;
待共享文件发送子单元, 用于向所述第二移动设备发送所述下载请求对 应的、 针对于所述第一操作系统的待共享文件;
或者,
所述待共享文件对应至少一个共享安装网页, 其中, 每一共享安装网页 包含指向待共享文件的针对于一种操作系统的下载链接;
所述共享安装网页发送单元, 包括:
操作系统确定子单元, 用于依据所述网络请求, 确定所述第二移动设备 运行的第一操作系统;
共享安装网页发送子单元, 用于将所述第一操作系统对应的共享安装网 页作为所述网络请求对应的请求结果并发送至所述第二移动设备。
35、 一种移动设备, 其特征在于, 包括: 权利要求 19-34任意一项所述的 文件共享装置。
PCT/CN2014/077872 2013-11-18 2014-05-20 文件共享方法、装置及移动设备 Ceased WO2015070582A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
DK14853130.4T DK2922276T3 (en) 2013-11-18 2014-05-20 FILE SHARING PROCEDURE, DEVICE, AND MOBILE DEVICE
JP2015548186A JP6306606B2 (ja) 2013-11-18 2014-05-20 ファイル共有の方法、装置およびモバイル機器
ES14853130.4T ES2687920T3 (es) 2013-11-18 2014-05-20 Procedimiento, aparato y dispositivo móvil para compartir archivos
EP14853130.4A EP2922276B1 (en) 2013-11-18 2014-05-20 File sharing method, apparatus, and mobile device
US14/442,486 US10089094B2 (en) 2013-11-18 2014-05-20 File sharing method, device and mobile equipment
KR1020157013581A KR101777305B1 (ko) 2013-11-18 2014-05-20 파일공유방법, 장치 및 모바일 장비
TW103139972A TWI614614B (zh) 2013-11-18 2014-11-18 檔案共享方法、裝置及行動設備

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310577442.8 2013-11-18
CN201310577442.8A CN104660624B (zh) 2013-11-18 文件共享方法、装置及移动设备

Publications (1)

Publication Number Publication Date
WO2015070582A1 true WO2015070582A1 (zh) 2015-05-21

Family

ID=53056706

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077872 Ceased WO2015070582A1 (zh) 2013-11-18 2014-05-20 文件共享方法、装置及移动设备

Country Status (9)

Country Link
US (1) US10089094B2 (zh)
EP (1) EP2922276B1 (zh)
JP (1) JP6306606B2 (zh)
KR (1) KR101777305B1 (zh)
DK (1) DK2922276T3 (zh)
ES (1) ES2687920T3 (zh)
PT (1) PT2922276T (zh)
TW (1) TWI614614B (zh)
WO (1) WO2015070582A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618316A (zh) * 2018-11-29 2019-04-12 努比亚技术有限公司 网络共享方法、移动终端及存储介质
US12425461B2 (en) 2023-03-03 2025-09-23 T-Mobile Usa, Inc. Enabling a first mobile device associated with a wireless telecommunication network to receive assistance from a second mobile device in a shared web page

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977086B (zh) 2013-11-29 2023-09-01 华为终端有限公司 终端间应用共享的方法和终端
WO2016004579A1 (zh) * 2014-07-08 2016-01-14 华为技术有限公司 一种共享无线局域网的方法、装置及平台
US20170041392A1 (en) * 2015-08-04 2017-02-09 Smart Technologies Ulc Method of distributing a file and a computing system employing same
US10785282B2 (en) * 2015-12-17 2020-09-22 Dropbox, Inc. Link file sharing and synchronization
KR102021503B1 (ko) * 2017-09-04 2019-09-17 주식회사 심플한 단말 내 복구 가능한 삭제된 데이터를 영구 삭제하는 장치
CN108363793B (zh) * 2018-02-13 2020-07-07 Oppo广东移动通信有限公司 网页应用的访问方法、装置、存储介质及电子设备
CN110011896B (zh) * 2018-11-06 2020-07-28 阿里巴巴集团控股有限公司 一种数据处理方法及装置、一种计算设备及存储介质
US11388596B2 (en) * 2019-09-03 2022-07-12 International Business Machines Corporation Secure transmittal of wireless local area network access codes
US12348981B2 (en) * 2022-03-09 2025-07-01 Netgear, Inc. Repurposing consumer electronic devices as nodes in wireless mesh networks

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852105A (zh) * 2005-09-15 2006-10-25 华为技术有限公司 一种实现端到端文件共享的系统及方法
CN101860591A (zh) * 2009-04-08 2010-10-13 北京搜狗科技发展有限公司 一种共享应用程序的方法及装置
CN102035869A (zh) * 2009-09-30 2011-04-27 联想(北京)有限公司 一种使用移动终端实现文件共享的方法、装置和系统
CN103179201A (zh) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 一种文件同步的方法及系统

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8090856B1 (en) * 2000-01-31 2012-01-03 Telecommunication Systems, Inc. Intelligent messaging network server interconnection
US7664861B2 (en) * 2005-02-02 2010-02-16 Verizon Laboratories Inc. Managed peer-to-peer file sharing
US9049205B2 (en) * 2005-12-22 2015-06-02 Genesys Telecommunications Laboratories, Inc. System and methods for locating and acquisitioning a service connection via request broadcasting over a data packet network
US8769127B2 (en) * 2006-02-10 2014-07-01 Northrop Grumman Systems Corporation Cross-domain solution (CDS) collaborate-access-browse (CAB) and assured file transfer (AFT)
US7925244B2 (en) * 2006-05-30 2011-04-12 Sony Ericsson Mobile Communications Ab Mobile wireless communication terminals, systems, methods, and computer program products for publishing, sharing and accessing media files
US7613770B2 (en) 2006-06-30 2009-11-03 Microsoft Corporation On-demand file transfers for mass P2P file sharing
US9087325B2 (en) 2007-09-11 2015-07-21 Yahoo! Inc. Social network site including trust-based Wiki functionality
JP2009089297A (ja) * 2007-10-03 2009-04-23 Sony Ericsson Mobilecommunications Japan Inc コンテンツ取得システムおよび携帯端末装置
FI20080345A0 (fi) 2008-05-09 2008-05-09 Joikusoft Oy Ltd Symbian S60 puhelin 3G kaistanyhdistäjänä
JP2010198473A (ja) * 2009-02-26 2010-09-09 Sony Ericsson Mobile Communications Ab 携帯端末およびそのアプリケーション転送方法
US8438287B2 (en) * 2009-11-17 2013-05-07 Motorola Mobility Llc System and method for management of mobile device
US20120246226A1 (en) 2011-03-23 2012-09-27 Tappin Inc. System and method for sharing data from a local network to a remote device
US8775850B2 (en) * 2011-06-28 2014-07-08 Amazon Technologies, Inc. Transferring state information between electronic devices
US9015860B2 (en) * 2011-09-24 2015-04-21 Elwha Llc Behavioral fingerprinting via derived personal relation
US9626340B2 (en) * 2012-08-28 2017-04-18 Dropbox, Inc. Bookmarking shared file and folder links
JP5958254B2 (ja) * 2012-09-28 2016-07-27 ブラザー工業株式会社 特定のサーバ及び通信装置
US9331998B2 (en) * 2013-03-14 2016-05-03 Forty Cloud Ltd. Dynamic secured network in a cloud environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852105A (zh) * 2005-09-15 2006-10-25 华为技术有限公司 一种实现端到端文件共享的系统及方法
CN101860591A (zh) * 2009-04-08 2010-10-13 北京搜狗科技发展有限公司 一种共享应用程序的方法及装置
CN102035869A (zh) * 2009-09-30 2011-04-27 联想(北京)有限公司 一种使用移动终端实现文件共享的方法、装置和系统
CN103179201A (zh) * 2013-03-08 2013-06-26 东莞宇龙通信科技有限公司 一种文件同步的方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618316A (zh) * 2018-11-29 2019-04-12 努比亚技术有限公司 网络共享方法、移动终端及存储介质
US12425461B2 (en) 2023-03-03 2025-09-23 T-Mobile Usa, Inc. Enabling a first mobile device associated with a wireless telecommunication network to receive assistance from a second mobile device in a shared web page

Also Published As

Publication number Publication date
JP6306606B2 (ja) 2018-04-04
US20160274881A1 (en) 2016-09-22
EP2922276B1 (en) 2018-08-15
TWI614614B (zh) 2018-02-11
TW201527993A (zh) 2015-07-16
EP2922276A4 (en) 2016-11-09
KR101777305B1 (ko) 2017-09-11
JP2016509702A (ja) 2016-03-31
EP2922276A1 (en) 2015-09-23
US10089094B2 (en) 2018-10-02
DK2922276T3 (en) 2018-10-08
PT2922276T (pt) 2018-10-19
ES2687920T3 (es) 2018-10-29
CN104660624A (zh) 2015-05-27
KR20150079756A (ko) 2015-07-08

Similar Documents

Publication Publication Date Title
WO2015070582A1 (zh) 文件共享方法、装置及移动设备
EP2973147B1 (en) Policy-based secure web boot
EP2901659B1 (en) Systems and methods for sharing files among multiple terminals
US8464332B2 (en) Access gateway and method for providing cloud storage service
WO2015043420A1 (zh) 权限控制方法和装置
JP6306731B2 (ja) アプリケーションプログラムをプッシュするための方法、装置、およびシステム、ならびにデバイス
WO2014012449A1 (zh) 桌面同步方法、装置、处理中心及系统
JP2017510861A (ja) デバイスバインドの方法および装置
WO2013097715A1 (zh) 一种对移动设备进行家长控制的方法和系统
WO2018019241A1 (zh) 针对终端应用的更新处理方法及装置、计算机存储介质
WO2015014151A1 (zh) 多终端共享虚拟sim卡的方法、终端、服务器及系统
CN107040965B (zh) 一种流量控制方法、装置及移动终端
WO2017071207A1 (zh) 一种应用安装方法、相关装置及应用安装系统
US20170230468A1 (en) Systems and Methods for Facilitating Service Provision Between Applications
US10341346B2 (en) Information processing method, information processing apparatus, and storage medium
CN103649919A (zh) 云中的智能电话应用程序
TW201310947A (zh) 文件下載系統
US20170329739A1 (en) Methods and systems for loading a boot agent on a router network device
JP2015018537A (ja) アプリケーションのダウンロード方法およびシステム
WO2015096597A1 (zh) 一种多设备浏览文档的方法及装置
WO2016029639A1 (zh) 在线资源下载推送至移动终端的方法和装置
CN106027632A (zh) 数据传输方法和装置
WO2017088294A1 (zh) 用于建立无线连接的方法与设备
US20170134933A1 (en) Optimizing setup for wireless devices
WO2017193544A1 (zh) 资源下载方法、装置及电子设备

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2014853130

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14442486

Country of ref document: US

ENP Entry into the national phase

Ref document number: 20157013581

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015548186

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14853130

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE