[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104660624B - File sharing method, device and mobile device - Google Patents

File sharing method, device and mobile device Download PDF

Info

Publication number
CN104660624B
CN104660624B CN201310577442.8A CN201310577442A CN104660624B CN 104660624 B CN104660624 B CN 104660624B CN 201310577442 A CN201310577442 A CN 201310577442A CN 104660624 B CN104660624 B CN 104660624B
Authority
CN
China
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.)
Active
Application number
CN201310577442.8A
Other languages
Chinese (zh)
Other versions
CN104660624A (en
Inventor
王全国
伍新春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Filing date
Publication date
Priority to CN201310577442.8A priority Critical patent/CN104660624B/en
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 ES14853130.4T priority patent/ES2687920T3/en
Priority to PCT/CN2014/077872 priority patent/WO2015070582A1/en
Priority to EP14853130.4A priority patent/EP2922276B1/en
Priority to KR1020157013581A priority patent/KR101777305B1/en
Priority to PT14853130T priority patent/PT2922276T/en
Priority to DK14853130.4T priority patent/DK2922276T3/en
Priority to JP2015548186A priority patent/JP6306606B2/en
Priority to US14/442,486 priority patent/US10089094B2/en
Priority to TW103139972A priority patent/TWI614614B/en
Publication of CN104660624A publication Critical patent/CN104660624A/en
Application granted granted Critical
Publication of CN104660624B publication Critical patent/CN104660624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

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

The embodiment of the invention discloses a file sharing method, device and mobile equipment. The file sharing method is applicable to a first mobile device, and the method includes: obtaining a sharing instruction for a file to be shared; after the network sharing function of the first mobile device is started, performing network Connecting: intercepting and redirecting a browser-based network request sent by the second mobile device, and sending the file to be shared as a request result corresponding to the network request to the second mobile device. By utilizing this solution, it is possible to quickly share files without generating network traffic without installing any software or plug-ins with file sharing functions at the receiving end of shared files, thereby improving user experience.

Description

文件共享方法、装置及移动设备File sharing method, device and mobile device

技术领域technical field

本发明涉及数据共享领域,特别涉及一种文件共享方法、装置及移动设备。The invention relates to the field of data sharing, in particular to a file sharing method, device and mobile device.

背景技术Background technique

随着科学技术飞速的发展,各种移动设备不断的丰富并方便了大众生活。由于利用移动设备处理信息具有方便快捷、节省资源等优势,使得移动设备成为人们的生活或工作中不可或缺的一部分。With the rapid development of science and technology, various mobile devices are continuously enriched and facilitate the life of the public. Due to the advantages of convenience, quickness, resource saving and other advantages of using mobile devices to process information, mobile devices have become an indispensable part of people's life or work.

其中,用户可以通过移动设备中的浏览器登陆到互联网某个网站上,将所需应用的安装包下载到移动设备的本地然后安装。例如,用户从APP网站下载封神榜游戏软件的安装包,然后在本地安装该封神榜游戏软件的安装包后,用户便可以开始玩游戏。Wherein, the user may log in to a certain website on the Internet through the browser in the mobile device, download the installation package of the required application to the local of the mobile device, and then install it. For example, the user downloads the installation package of the Fengshenbang game software from the APP website, and then installs the installation package of the Fengshenbang game software locally, and the user can start playing the game.

而如果用户希望将这个应用分享给身边的朋友,他可以告诉朋友该应用的名称以及下载网站,从而使得该朋友可以登陆浏览器来查找该网站,进而下载该应用的安装包。当然,该朋友也可以通过移动设备扫描展示在该用户的移动设备中显示的关于该应用的二维码,从而下载该应用的安装包。And if the user wishes to share this application with friends around him, he can tell the name of the application and the download website to the friend, so that the friend can log in to the browser to find the website, and then download the installation package of the application. Of course, the friend can also scan the QR code about the application displayed on the user's mobile device through the mobile device, so as to download the installation package of the application.

但是,上述共享文件的方法,非常麻烦,给用户带来诸多不便。例如:用户将软件推荐给朋友后,朋友很难在短时间内就搞定下载,并且下载文件还会产生上网流量;而用户在下载较大字节数的文件的时候,为节省流量,往往会选择有WLAN网络时才下载,如果遇到暂时不能够上网的情况下,不能够立即实现文件分享。However, the above-mentioned method for sharing files is very troublesome and brings a lot of inconvenience to users. For example: after a user recommends a software to a friend, it is difficult for the friend to download it in a short time, and the downloaded file will also generate Internet traffic; Choose to download only when there is a WLAN network. If you are temporarily unable to access the Internet, file sharing cannot be realized immediately.

发明内容Contents of the invention

基于上述问题,本发明实施例公开了一种文件共享方法、装置及移动设备,以在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高用户的使用体验。技术方案如下:Based on the above-mentioned problems, the embodiment of the present invention discloses a file sharing method, device, and mobile device, so that on the premise that the receiving end of the shared file does not need to install any software or plug-in with file sharing function, it can quickly share files in a way that does not generate network traffic. Share files to improve user experience. The technical scheme is as follows:

第一方面,本发明实施例提供了一种文件共享方法,适用于第一移动设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a file sharing method, which is applicable to a first mobile device, and the method includes:

获取针对待共享文件的共享指令;Obtain a sharing instruction for the file to be shared;

在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;After the network sharing function of the first mobile device is started, perform network connection with the second mobile device requesting network sharing;

截获并重定向所述第二移动设备发送的基于浏览器的网络请求,将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。intercepting and redirecting the browser-based network request sent by the second mobile device, and sending the file to be shared as a request result corresponding to the network request to the second mobile device.

优选的,所述与请求网络共享的第二移动设备进行网络连接之前,所述方法还包括:Preferably, before performing the network connection with the second mobile device requesting network sharing, the method further includes:

启动所述第一移动设备的网络共享功能。A tethering function of the first mobile device is activated.

优选的,在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取所述针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件。Preferably, when the application is in the open state, when an operation for instructing file sharing based on the application is detected, the sharing instruction for the file to be shared is acquired, wherein the file to be shared is the Apply the corresponding file.

优选的,在检测到用于指示共享文件的操作时,获取所述针对待共享文件的共享指令;Preferably, when an operation for instructing to share a file is detected, the sharing instruction for the file to be shared is acquired;

在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备之前,所述方法还包括:Before sending the file to be shared as a request result corresponding to the network request to the second mobile device, the method further includes:

展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;displaying a file selection interface to instruct the user to select a file to be shared, wherein the file selection page includes shareable files stored in the first mobile device;

将所述用户所选择的需要共享的文件作为待共享文件。The file to be shared selected by the user is used as the file to be shared.

优选的,在获取针对待共享文件的共享指令之后,所述方法还包括:Preferably, after obtaining the sharing instruction for the file to be shared, the method further includes:

获取待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接;Obtaining a shared installation webpage of the file to be shared; wherein, the shared installation webpage includes a download link pointing to the file to be shared;

相应的,所述将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备,包括:Correspondingly, sending the file to be shared as a request result corresponding to the network request to the second mobile device includes:

将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备;Using the shared installation webpage as a request result corresponding to the network request and sending it to the second mobile device;

在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所形成的下载请求后,向所述第二移动设备发送所述下载请求对应的待共享文件。After receiving the download request sent by the second mobile device based on the download link of the shared installation webpage, sending the file to be shared corresponding to the download request to the second mobile device.

优选的,在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取所述针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件;Preferably, when the application is in the open state, when an operation for instructing file sharing based on the application is detected, the sharing instruction for the file to be shared is acquired, wherein the file to be shared is the The corresponding file of the application;

相应的,所述获取待共享文件的共享安装网页,包括:Correspondingly, the acquisition of the shared installation webpage of the file to be shared includes:

获取所述应用中预先内置的共享安装网页,其中,所述共享安装网页中包含指向所述待共享文件的下载链接。Obtaining a shared installation webpage pre-built in the application, wherein the shared installation webpage includes a download link pointing to the file to be shared.

优选的,在检测到用于指示共享文件的操作时,获取所述针对待共享文件的共享指令;Preferably, when an operation for instructing to share a file is detected, the sharing instruction for the file to be shared is acquired;

相应的,所述获取待共享文件的共享安装网页,包括:Correspondingly, the acquisition of the shared installation webpage of the file to be shared includes:

展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;displaying a file selection interface to instruct the user to select a file to be shared, wherein the file selection page includes shareable files stored in the first mobile device;

将所述用户所选择的需要共享的文件作为待共享文件,并生成针对所述待共享文件的共享安装网页,其中,所述共享安装网页中包含指向所述待共享文件的下载链接。Taking the file to be shared selected by the user as the file to be shared, and generating a shared installation webpage for the file to be shared, wherein the shared installation webpage includes a download link pointing to the file to be shared.

优选的,所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:Preferably, the intercepting and redirecting the browser-based network request sent by the second mobile device includes:

截获所述第二移动设备发送的基于浏览器的网络请求;intercepting a browser-based network request sent by the second mobile device;

判断所述网络请求是否为预先设定的第一网络请求;judging whether the network request is a preset first network request;

当判断出所述网络请求为预先设定的第一网络请求时,将所述网络请求进行重定向处理。When it is determined that the network request is the preset first network request, the network request is redirected.

优选的,当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过 设置所述第一移动设备的操作系统中的iptables的规则的方式,截获并重定向所述第二移 动设备发送的基于浏览器的网络请求。 Preferably, when the current user name of the operating system of the first mobile device has administrator authority, by Set the iptables rules in the operating system of the first mobile device to intercept and redirect the second mobile device Browser-based network requests sent by mobile devices.

优选的,设置所述第一移动设备的操作系统中的iptables的规则的过程,包括: Preferably, the process of setting the rules of iptables in the operating system of the first mobile device includes:

在所述第一移动设备的iptables中增加对所述第二移动设备的基于浏览器的网 络请求的目标第一端口进行监听、以及将所截获到的经过所述第一移动设备的所述第二移 动设备发送的基于浏览器的网络请求重定向至所述第一移动设备的预定的第二端口的规 则; In the iptables of the first mobile device, increase the browser-based network access to the second mobile device The target first port of the network request is monitored, and the intercepted second mobile device passing through the first mobile device The browser-based network request sent by the mobile device is redirected to the predetermined second port of the first mobile device. but;

相应的,所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:Correspondingly, the intercepting and redirecting the browser-based network request sent by the second mobile device includes:

监听所述第二移动设备的基于浏览器的网络请求的所述目标第一端口,并截获经过所述第一移动设备的所述第二移动设备发送的基于浏览器的网络请求,进而将所截获到的网络请求重定向至所述第一移动设备的第二端口,以通过所述第二端口将所述网络请求对应的请求结果并发送至所述第二移动设备。Listening to the target first port of the browser-based network request of the second mobile device, and intercepting the browser-based network request sent by the second mobile device passing through the first mobile device, and then converting the The intercepted network request is redirected to the second port of the first mobile device, so as to send a request result corresponding to the network request to the second mobile device through the second port.

优选的,当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过挂载所编写的内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。Preferably, when the current user name of the operating system of the first mobile device has administrator authority, the browser-based network information sent by the second mobile device is intercepted and redirected by mounting the written kernel module. ask.

优选的,所述挂载所编写的内核模块的过程,包括:Preferably, the process of loading the written kernel module includes:

将采用netfilter框架所编写的内核模块挂载到所述第一移动设备的操作系统内核中,以实现在网络架构中的IP层中增设一hook点,其中,通过所述hook点拦截经过所述第一移动设备的目标端口为预定的第一端口的所述第二移动设备的网络请求,且能够将所述网络请求中的目的IP修改为所述第一移动设备的IP地址且将目的端口修改为所述第一移动设备的预定的第二端口;Mount the kernel module written by the netfilter framework 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, wherein, the hook point intercepts passing through the The target port of the first mobile device is the 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 modifying to a 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:

通过所述hook点拦截经过所述第一移动设备的目标端口为所述第一端口的所述第二移动设备发送的基于浏览器的网络请求,并将所述网络请求中的目的IP地址修改为所述第一移动设备的IP地址,目的端口修改为所述第一移动设备的所述第二端口,以通过所述第二端口将所述网络请求对应的请求结果发送至所述第二移动设备。The browser-based network request sent by the second mobile device that is the first port through the target port of the first mobile device is intercepted through the hook point, and the destination IP address in the network request is modified. is the IP address of the first mobile device, and the destination port is modified to the second port of the first mobile device, so as to send the request result corresponding to the network request to the second port through the second port. Mobile devices.

优选的,当所述第一移动设备的操作系统的当前用户名未具有管理员权限时,所述方法还包括:Preferably, when the current username of the operating system of the first mobile device does not have administrator authority, the method further includes:

在获取针对待共享文件的共享指令后,展示包含所述第一移动设备自身的IP地址和访问方式的页面,以指示所述第二移动设备所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设备的IP地址;相应的,所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:After obtaining the sharing instruction for the file to be shared, a page containing the IP address and access method of the first mobile device itself is displayed, so as to indicate that the user corresponding to the second mobile device is in the browser of the second mobile device Enter the IP address of the first mobile device in the address bar in the input; correspondingly, the interception and redirection of the browser-based network request sent by the second mobile device includes:

通过所述第一移动设备中内置的WEB模块获得所述第二移动设备的基于浏览器的网络请求。The browser-based network request of the second mobile device is obtained through the built-in WEB module in the first mobile device.

优选的,所述与请求网络共享的第二移动设备进行网络连接,包括:Preferably, the network connection with the second mobile device requesting network sharing includes:

指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;instructing the user to select a shareable second mobile device from among the second mobile devices requesting tethering;

与所选择的可共享的第二移动设备进行网络连接。A network connection is made with the selected shareable second mobile device.

优选的,所述与请求网络共享的第二移动设备进行网络连接之后,所述方法还包括:Preferably, after performing network connection with the second mobile device requesting network sharing, the method further includes:

指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;instructing the user to select a sharable second mobile device from among the second devices in the network connection state;

所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:The intercepting and redirecting the browser-based network request sent by the second mobile device includes:

截获所述第二移动设备发送的基于浏览器的网络请求;intercepting a browser-based network request sent by the second mobile device;

判断所述第二移动设备是否为可共享的第二移动设备,如果是,重定向所述第二移动设备发送的基于浏览器的网络请求。Judging whether the second mobile device is a shareable second mobile device, if yes, redirecting a browser-based network request sent by the second mobile device.

优选的,所述第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。Preferably, 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.

优选的,所述启动所述第一移动设备中的网络共享功能,包括:Preferably, said starting the network sharing function in said first mobile device includes:

判断是否存在WLAN热点功能,如果是,启动所述WLAN热点功能;否则,Determine whether there is a WLAN hotspot function, if yes, start the WLAN hotspot function; otherwise,

判断是否存在蓝牙网络共享功能,如果是,启动所述蓝牙网络共享功能;否则,启动所述USB网络共享功能。Judging whether there is a Bluetooth network sharing function, if yes, starting the Bluetooth network sharing function; otherwise, starting the USB network sharing function.

优选的,所述待共享文件对应一个共享安装网页,其中,所述共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,每一下载链接指向针对于一种操作系统的待共享文件;Preferably, the file to be shared corresponds to a shared installation webpage, wherein the shared installation webpage includes download links for at least one operating system pointing to the file to be shared, and each download link points to a to-be-installed webpage for an operating system. shared documents;

相应的,corresponding,

所述向所述第二移动设备发送所述下载请求对应的待共享文件,包括:The sending the file to be shared corresponding to the download request to the second mobile device includes:

依据所述下载请求,确定所述第二移动设备所运行的第一操作系统;determining the first operating system run by the second mobile device according to the download request;

向所述第二移动设备发送所述下载请求对应的、针对于所述第一操作系统的待共享文件;Sending the file to be shared corresponding to the download request and specific to the first operating system to the second mobile device;

或者,or,

所述待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;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 pointing to the file to be shared;

相应的,所述将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备,包括:Correspondingly, sending the shared installation webpage as the request result corresponding to the network request to the second mobile device includes:

依据所述网络请求,确定所述第二移动设备运行的第一操作系统;determining a first operating system running on the second mobile device according to the network request;

将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备。Sending the shared installation web page corresponding to the first operating system as a request result corresponding to the network request to the second mobile device.

第二方面,本发明实施例还提供了一种文件共享装置,适用于第一移动设备,所述文件共享装置包括:In the second aspect, the embodiment of the present invention also provides a file sharing device, which is suitable for the first mobile device, and the file sharing device includes:

共享指令获取模块,用于获取针对待共享文件的共享指令;A sharing instruction acquisition module, configured to acquire a sharing instruction for the file to be shared;

网络连接模块,用于在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;A network connection module, configured to perform a network connection with a second mobile device requesting network sharing after the network sharing function of the first mobile device is started;

网络请求处理模块,用于截获并重定向所述第二移动设备发送的基于浏览器的网络请求;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 to-be-shared file to the second mobile device as a request result corresponding to the network request.

优选的,所述文件共享装置还包括:Preferably, the file sharing device further includes:

网络共享功能启动模块,用于在与请求网络共享的第二移动设备进行网络连接之前,启动所述第一移动设备的网络共享功能。The network sharing function starting module is used for starting the network sharing function of the first mobile device before making a network connection with the second mobile device requesting network sharing.

优选的,所述共享指令获取模块,包括:Preferably, the shared instruction acquisition module includes:

第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件。A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application.

优选的,所述共享指令获取模块,包括:Preferably, the shared instruction acquisition module includes:

第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected;

所述装置还包括:The device also includes:

待共享文件确定模块,用于在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备之前,展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;将所述用户所选择的需要共享的文件作为待共享文件。The file-to-be-shared determining module is configured to display a file selection interface to instruct the user to select a file to be shared before sending the file to be shared as a request result corresponding to the network request to the second mobile device, wherein the The file selection page includes the shareable files stored in the first mobile device; and the file selected by the user to be shared is taken as the file to be shared.

优选的,所述文件共享装置还包括:Preferably, the file sharing device further includes:

共享安装网页获取模块,用于在获取针对待共享文件的共享指令之后,获取待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接;A shared installation web page obtaining module, configured to obtain a shared installation web page of the file to be shared after obtaining the sharing instruction for the file to be shared; wherein, the shared installation web page includes a download link pointing to the file to be shared;

相应的,所述待共享文件处理模块,包括:Correspondingly, the file processing module to be shared includes:

共享安装网页发送单元,用于将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备;A shared installation webpage sending unit, configured to send the shared installation webpage as a request result corresponding to the network request to the second mobile device;

待共享文件处理单元,用于在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所形成的下载请求后,向所述第二移动设备发送所述下载请求对应的待共享文件。The to-be-shared file processing unit is configured to, after receiving the download request based on the download link of the shared installation webpage sent by the second mobile device, send the to-be-shared file corresponding to the download request to the second mobile device. shared documents.

优选的,所述共享指令获取模块,包括:Preferably, the shared instruction acquisition module includes:

第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件;A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application;

相应的,所述共享安装网页获取模块,包括:Correspondingly, the shared installation web page acquisition module includes:

第一共享安装网页获取单元,用于在获取针对待共享文件的共享指令之后,获取所述应用中预先内置的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The first shared installation webpage acquisition unit is configured to acquire a pre-built shared installation webpage in the application after acquiring the sharing instruction for the file to be shared; wherein, the shared installation webpage includes a download pointing to the file to be shared Link.

优选的,所述共享指令获取模块,包括:Preferably, the shared instruction acquisition module includes:

第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected;

相应的,所述共享安装网页获取模块,包括:Correspondingly, the shared installation web page acquisition module includes:

第二共享安装网页获取单元,用于获取针对待共享文件的共享指令之后,展示文件选择界面,以指示用户选择待共享文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;在待共享文件被选择完毕后,生成针对所述待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The second shared installation web page obtaining unit is used to display a file selection interface after obtaining the sharing instruction for the file to be shared, so as to instruct the user to select the file to be shared, wherein the file selection page includes the files stored in 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 pointing to the file to be shared.

优选的,所述网络请求处理模块,包括:Preferably, 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 judging unit, configured to judge whether the network request is a preset first network request;

网络请求重定向单元,用于当判断出所述网络请求为预先设定的第一网络请求时,将所述网络请求进行重定向处理。The network request redirecting unit is configured to redirect the network request when it is determined that the network request is a preset first network request.

优选的,所述网络请求处理模块,用于当所述第一移动设备的操作系统的当前用 户名具有管理员权限时,通过设置所述第一移动设备的操作系统中的iptables的规则的方 式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。 Preferably, the network request processing module is configured to, when the current user of the operating system of the first mobile device When the account name has administrator authority, by setting the rules of iptables in the operating system of the first mobile device In a manner, intercepting and redirecting a browser-based network request sent by the second mobile device.

优选的,所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过挂载所编写的内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。Preferably, the network request processing module is configured to intercept and redirect the second mobile device by mounting the written kernel module when the current user name of the operating system of the first mobile device has administrator authority. A browser-based network request sent by the device.

优选的,所述文件共享装置还包括:Preferably, the file sharing device further includes:

页面展示模块,用于在获取针对待共享文件的共享指令后,展示包含所述第一移动设备自身的IP地址和访问方式的页面,以指示所述第二移动设备所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设备的IP地址;The page display module is configured to display a page containing the IP address and access method of the first mobile device itself after obtaining the sharing instruction for the file to be shared, so as to indicate that the user corresponding to the second mobile device is on the second mobile device. Enter the IP address of the first mobile device in the address bar of the browser of the second mobile device;

所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户名未具有管理员权限时,通过所述第一移动设备中内置的WEB模块获得所述第二移动设备的基于浏览器的网络请求。The network request processing module is used to obtain, through the built-in WEB module in the first mobile device, the information based on The browser's network request.

优选的,所述网络连接模块,包括:Preferably, the network connection module includes:

选择单元,用于指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;a selection unit, configured to instruct the user to select a shareable second mobile device from the second mobile devices requesting network sharing;

网络连接单元,用于与所选择的可共享的第二移动设备进行网络连接。The network connection unit is used for network connection with the selected second mobile device that can be shared.

优选的,所述文件共享装置还包括:Preferably, the file sharing device further includes:

选择模块,用于与请求网络共享的第二移动设备进行网络连接之后,指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;The selection module is configured to instruct the user to select a shareable second mobile device from the second devices in the network connection state after network connection with the second mobile device requesting network sharing;

所述网络请求处理模块,包括: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 shareable second mobile device, and if yes, redirect the browser-based network request sent by the second mobile device.

优选的,所述第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。Preferably, 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.

优选的,所述网络共享功能启动模块用于判断是否存在WLAN热点功能,如果是,启动所述WLAN热点功能;否则,判断是否存在蓝牙网络共享功能,如果是,启动所述蓝牙网络共享功能;否则,启动所述USB网络共享功能。Preferably, the network sharing function starting module is used to judge whether there is a WLAN hotspot function, if yes, start the WLAN hotspot function; otherwise, judge whether there is a Bluetooth network sharing function, if yes, start the Bluetooth network sharing function; Otherwise, start the USB tethering function.

优选的,所述待共享文件对应一个共享安装网页,其中,所述共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,且每一下载链接指向针对于一种操作系统的待共享文件;Preferably, the file to be shared corresponds to a shared installation webpage, wherein the shared installation webpage includes download links for at least one operating system pointing to the file to be shared, and each download link points to a download link for an operating system file to be shared;

所述待共享文件处理单元,包括:The file processing unit to be shared includes:

操作系统确定子单元,用于在接收到所述第二移动设备通过所述共享安装网页的下载链接发送的下载请求后,依据所述下载请求,确定所述第二移动设备所运行的第一操作系统;The operating system determination subunit is configured to, after receiving the download request sent by the second mobile device through the download link of the shared installation web page, determine the first operating system run by the second mobile device according to the download request. operating system;

待共享文件发送子单元,用于向所述第二移动设备发送所述下载请求对应的、针对于所述第一操作系统的待共享文件;A file to be shared sending subunit, configured to send to the second mobile device the file to be shared corresponding to the download request and specific to the first operating system;

或者,or,

所述待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;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 pointing to the file to be shared;

所述共享安装网页发送单元,包括:The shared installation web page sending unit includes:

操作系统确定子单元,用于依据所述网络请求,确定所述第二移动设备运行的第一操作系统;an operating system determining subunit, configured to determine the first operating system running on the second mobile device according to the network request;

共享安装网页发送子单元,用于将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备。The shared installation webpage sending subunit is configured to send the shared installation webpage corresponding to the first operating system as a request result corresponding to the network request to the second mobile device.

第三方面,本发明实施例还提供了一种移动设备,包括:本发明实施例所提供的任一文件共享装置。In a third aspect, the embodiment of the present invention further provides a mobile device, including: any file sharing apparatus provided in the embodiment of the present invention.

本方案中,第二移动设备在共享文件之前无需安装任何具备文件共享功能的软件或插件,而第一移动设备可以截获第二移动设备发送的基于浏览器的网络请求并重定向,进而将待共享文件作为网络请求对应的请求结果发送至第二移动设备,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高了用户的使用体验。In this solution, the second mobile device does not need to install any software or plug-in with file sharing function before sharing files, and the first mobile device can intercept and redirect the browser-based network request sent by the second mobile device, and then transfer the file to be shared The file is sent to the second mobile device as the request result corresponding to the network request, realizing the rapid file sharing without generating network traffic on the premise that the receiving end of the shared file does not need to install any software or plug-in with file sharing function, thereby improving user experience.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例所提供的一种文件共享方法的第一种流程图;FIG. 1 is a first flow chart of a file sharing method provided by an embodiment of the present invention;

图2为本发明实施例所提供的一种文件共享方法的第二种流程图;FIG. 2 is a second flowchart of a file sharing method provided by an embodiment of the present invention;

图3为本发明实施例所提供的一种文件共享方法的第三种流程图;FIG. 3 is a third flowchart of a file sharing method provided by an embodiment of the present invention;

图4为本发明实施例所提供的一种文件共享方法的第四种流程图;FIG. 4 is a fourth flowchart of a file sharing method provided by an embodiment of the present invention;

图5为本发明实施例所提供的一种文件共享装置的结构示意图。Fig. 5 is a schematic structural diagram of a file sharing device provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

为了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高用户的使用体验,本发明实施例提供了一种文件共享方法、装置及移动设备。In order to quickly share files without generating network traffic without installing any software or plug-ins with file sharing functions on the receiving end of shared files, thereby improving user experience, an embodiment of the present invention provides a file sharing method , devices and mobile devices.

下面首先介绍本发明实施例所提供的一种文件共享方法。A file sharing method provided by an embodiment of the present invention is first introduced below.

其中,本发明实施例所提供的一种文件共享方法适用于具有网络共享功能的第一移动设备,其中,该第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。可以理解的是,在实际应用中,该第一移动设备可以为手机、笔记本电脑、平板电脑等。Wherein, a file sharing method provided by the embodiment of the present invention is applicable to a first mobile device having a network sharing function, wherein the network sharing function possessed by the first mobile device includes: a WLAN hotspot function, a Bluetooth network sharing function and At least one of the USB tethering functions. It can be understood that, in practical applications, the first mobile device may be a mobile phone, a notebook computer, a tablet computer, and the like.

并且,实现文件共享方法的功能软件可以为某一应用中内置的共享功能模块,也可以通过插件形式存在于某一应用中,当然还可以是安装在第一移动设备中的用于提供文件共享功能的客户端软件,这都是合理的。为了便于理解,举例说明:第一移动设备为苹果手机,该手机安装了封神榜游戏应用,同时可以在某个特定的文件夹下保存着封神榜游戏应用的安装包;当用户希望将封神榜游戏推荐给朋友并帮助朋友安装上该封神榜游戏应用时,该封神榜游戏应用的安装包为待共享文件,其中,实现该安装包的共享方法的功能软件可以是封神榜游戏应用中的一个共享功能模块,也可以通过插件形式存在于封神榜游戏应用中,当然,还可以是与封神榜游戏应用分离的,另外一个用于提供文件共享的客户端软件,这都是合理的。Moreover, the functional software for implementing the file sharing method may be a built-in sharing function module in a certain application, or may exist in a certain application in the form of a plug-in, and of course may be a file sharing module installed in the first mobile device. Functionality of the client software, which is reasonable. For ease of understanding, an example is given: the first mobile device is an Apple mobile phone, and the mobile phone has installed the Fengshenbang game application, and at the same time, the installation package of the Fengshenbang game application can be saved in a specific folder; when the user wants to recommend the Fengshenbang game to When a friend helps a friend to install the Fengshenbang game application, the installation package of the Fengshenbang game application is a file to be shared, wherein the functional software that realizes the sharing method of the installation package can be a sharing function module in the Fengshenbang game application, or It exists in the Fengshenbang game application in the form of a plug-in. Of course, it can also be separated from the Fengshenbang game application, and another client software is used to provide file sharing. This is all reasonable.

如图1所示,一种文件共享方法,可以包括:As shown in Figure 1, a file sharing method may include:

S101,获取针对待共享文件的共享指令;S101. Obtain a sharing instruction for the file to be shared;

当需要将第一移动设备的文件共享到第二移动设备中时,持有第一移动设备的用户可以进行特定的操作来发送共享指令,从而使得该第一移动设备可以获取针对待共享文件的共享指令。When it is necessary to share the file of the first mobile device to the second mobile device, the user holding the first mobile device can perform a specific operation to send a sharing instruction, so that the first mobile device can obtain the file to be shared. Shared instructions.

举例而言:对于实现文件共享方法的功能软件为某一应用中内置的共享功能模块或通过插件形式存在于某一应用中的情况而言,在应用处于开启状态过程中,当检测到基于该应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,该待共享文件为该应用所对应的文件;例如:持有第一移动设备的用户点击显示在所开启的应用的某一页面中的“一键分享”的按钮后,该第一移动设备获取针对待共享文件的共享指令,其中,该待共享文件为处于开启状态的该应用对应的安装包,当然并不局限于此。For example: for the case where the functional software implementing the file sharing method is a built-in shared function module in an application or exists in a certain application in the form of a plug-in, when the application is in the open state, when it is detected that the When an application issues an operation for instructing to share a file, a sharing instruction for the file to be shared is obtained, wherein the file to be shared is a file corresponding to the application; After clicking the "one-click share" button on a certain page of the application, the first mobile device obtains a sharing instruction for the file to be shared, wherein the file to be shared is the installation package corresponding to the application in the open state, of course It is not limited to this.

举例而言:对于实现文件共享方法的功能软件为安装在第一移动设备中的用于提供文件共享功能的客户端软件的情况而言,当检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;例如,用户点击客户端软件中的“一键共享”的按钮后,该第一移动设备获取针对待共享文件的共享指令,当然并不局限于此。For example: for the case where the functional software implementing the file sharing method is the client software installed in the first mobile device for providing the file sharing function, when an operation for instructing file sharing is detected, the A sharing instruction for the file to be shared; for example, after the user clicks the "one-click share" button in the client software, the first mobile device obtains a sharing instruction for the file to be shared, but it is certainly not limited thereto.

需要说明的是,为了安全起见,用于指示共享文件的按钮可以在被按下后可以下沉,而再次按下后,按钮将弹起,同时将该第一移动设备的网络共享功能的关闭。It should be noted that, for the sake of safety, the button used to indicate the file sharing can sink after being pressed, and after being pressed again, the button will pop up, and at the same time, the network sharing function of the first mobile device will be turned off. .

S102,在该第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;S102. After the network sharing function of the first mobile device is started, perform network connection with the second mobile device requesting network sharing;

在该第一移动设备启动网络共享功能后,持有第二移动设备的用户可以通过该第二移动设备可以扫描该第一移动设备,进而请求网络共享,而该第一移动设备可以与请求网络共享的第二移动设备进行网络连接。After the first mobile device starts the network sharing function, the user holding the second mobile device can scan the first mobile device through the second mobile device, and then request network sharing, and the first mobile device can communicate with the requesting network The shared second mobile device makes the network connection.

本领域技术人员可以理解的是,该第一移动设备在获取针对待共享文件的共享指令后,可以自动启动自身的网络共享功能。当然,也可以在获取针对待共享文件的共享指令后,展示用于指示用户手动开启网络共享功能的页面,以指示用户自己手动操作启动网络共享功能。其中,网络共享功能的手动启动过程根据不同的机型而不同,例如:在三星手机中,用户在界面选择“设定”,选择“无线和网络”,再进一步选择“网络分享和便捷式热点”,然后开启“便捷式WLAN热点”。Those skilled in the art can understand that, after the first mobile device obtains the sharing instruction for the file to be shared, it can automatically start its own network sharing function. Of course, after obtaining the sharing instruction for the file to be shared, a page for instructing the user to manually enable the network sharing function may also be displayed, so as to instruct the user to manually activate the network sharing function. Among them, the manual activation process of the network sharing function is different according to different models. For example, in a Samsung mobile phone, the user selects "Settings" on the interface, selects "Wireless and Network", and then further selects "Network Sharing and Portable Hotspot". ", and then enable "Portable Wi-Fi hotspot".

需要说明的是,该第一移动设备所具有的网络共享功能可以包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。It should be noted that 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.

其中,基于用户的使用习惯以及便捷性,启动该第一移动设备中的网络共享功能,可以包括:Wherein, based on the user's usage habits and convenience, starting the network sharing function in the first mobile device may include:

判断是否存在WLAN热点功能,如果是,启动该WLAN热点功能;否则,Determine whether there is a WLAN hotspot function, if yes, start the WLAN hotspot function; otherwise,

判断是否存在蓝牙网络共享功能,如果是,启动该蓝牙网络共享功能;否则,启动该USB网络共享功能。Judging whether there is a Bluetooth network sharing function, if yes, starting the Bluetooth network sharing function; otherwise, starting the USB network sharing function.

本领域技术人员可以理解的是,上述关于不同网络共享功能的选择顺序仅仅作为示例,并不应该构成对本发明实施例的限定。Those skilled in the art can understand that, the selection order of the above-mentioned different network sharing functions is merely an example, and should not be construed as a limitation to this embodiment of the present invention.

S103,截获并重定向该第二移动设备发送的基于浏览器的网络请求;S103. Intercept and redirect the browser-based network request sent by the second mobile device;

其中,在第二移动设备与第一移动设备网络连接后,用户可以在第二移动设备的浏览器的地址栏内输入任意的地址信息,而第二移动设备在检测到该地址信息后,可以生成相应的网络请求,并向该第一移动设备发送所生成的基于浏览器的网络请求;而该第一移动设备可以截获并重定向该第二移动设备发送的基于浏览器的网络请求,进而后续将待共享文件作为该网络请求对应的请求结果并发送给该第二移动设备。其中,可以理解的是,该网络请求可以为:HTTP请求或FTP请求,当然并不局限于此;该任意的地址信息可以为实际中真实存在的网络地址,例如:www.kingsoft.com、kingsoft.com等,也可以是随意的字符,例如:1、a等,这都是合理的。Wherein, after the second mobile device is connected to the network of the first mobile device, the user can input arbitrary address information in the address bar of the browser of the second mobile device, and after the second mobile device detects the address information, it can Generate a corresponding network request, and send the generated browser-based network request to the first mobile device; and the first mobile device can intercept and redirect the browser-based network request sent by the second mobile device, and then follow-up The file to be shared is sent to the second mobile device as a request result corresponding to the network request. Among them, it can be understood that the network request can be: HTTP request or FTP request, of course it is not limited to this; the arbitrary address information can be a real network address in reality, for example: www.kingsoft.com, kingsoft .com, etc., can also be random characters, such as: 1, a, etc., which are all reasonable.

本领域技术人员可以理解的是,第一移动设备的操作系统的当前用户名可以为具有管理员权限,也可以为未具有管理员权限。其中,第一移动设备的操作系统的当前用户名是否具有管理员权限,将导致所对应的截获并重定向该第二移动设备发送的基于浏览器的网络请求的方式不同。Those skilled in the art can understand that the current user name of the operating system of the first mobile device may have administrator authority or may not have administrator authority. Wherein, whether the current user name of the operating system of the first mobile device has administrator authority or not will lead to different ways of intercepting and redirecting the browser-based network request sent by the second mobile device.

举例而言,对于第一移动设备的操作系统的当前用户名具有管理员权限而言,可 以通过设置该第一移动设备的操作系统中的iptables的规则的方式,截获并重定向该第二 移动设备发送的基于浏览器的网络请求,也可以通过挂载所编写的内核模块的方式,截获 并重定向该第二移动设备发送的基于浏览器的网络请求。 For example, with administrator privileges for the current username of the operating system of the first mobile device, the intercepting and redirecting the second Browser-based network requests sent by mobile devices can also be intercepted by mounting the written kernel module And redirect the browser-based network request sent by the second mobile device.

本领域技术人员可以理解的是,对于设置iptables的规则实现截获及重定向而 言,由于操作系统层面所有对服务端(如作为共享端的第一移动设备)网络请求(如包括 HTTP请求、FTP请求等的TCP请求)都会先经过iptables过滤,因此,可以在该第一移动设备 的iptables中增加对该第二移动设备的基于浏览器的网络请求的目标第一端口进行监听、 以及将所截获到的经过该第一移动设备的该第二移动设备发送的基于浏览器的网络请求 重定向至该第一移动设备的预定的第二端口的规则;而对于通过挂载所编写的内核模块的 方式截获并重定向而言,可以将采用netfilter框架所编写的内核模块挂载到该第一移动 设备的操作系统内核中,以实现在网络架构中的IP层中增设一hook点,其中,通过该hook点 拦截经过该第一移动设备的目标端口为预定的第一端口的所述第二移动设备的网络请求, 且能够将该网络请求中的目的IP修改为该第一移动设备的IP地址且将目的端口修改为该 第一移动设备的预定的第二端口。 Those skilled in the art can understand that, for setting the rules of iptables to realize interception and redirection In other words, due to the fact that all network requests to the server (such as the first mobile device as the sharing terminal) at the operating system level (such as including TCP requests such as HTTP requests, FTP requests, etc.) will be filtered by iptables first, so the first mobile device can In the iptables, add the target first port of the browser-based network request of the second mobile device to monitor, and the intercepted browser-based network request sent by the second mobile device passing through the first mobile device Redirect to the rule of the predetermined second port of the first mobile device; and for the kernel module written by mounting In terms of interception and redirection, the kernel module written by the netfilter framework can be mounted to the first mobile In the operating system kernel of the device, a hook point is added in the IP layer of the network architecture, wherein, through the hook point intercepting the network request of the second mobile device whose target port is a predetermined first port through the first mobile device, And the destination IP in the network request can be modified to the IP address of the first mobile device and the destination port can be modified to the A predetermined second port of the first mobile device.

基于上述的设置方式,对于通过设置该第一移动设备的操作系统中的iptables的 规则的方式,截获并重定向该第二移动设备发送的基于浏览器的网络请求而言,具体的截 获并重定向的过程可以如下: Based on the above setting method, for setting the iptables in the operating system of the first mobile device In terms of intercepting and redirecting the browser-based network request sent by the second mobile device in a regular manner, the specific interception The process of obtaining and redirecting can be as follows:

监听该第二移动设备的基于浏览器的网络请求的该目标第一端口,并截获经过该第一移动设备的该第二移动设备发送的基于浏览器的网络请求,进而将所截获到的网络请求重定向至该第一移动设备的第二端口,以通过该第二端口将该网络请求对应的请求结果并发送至该第二移动设备。Listening to the target first port of the browser-based network request of the second mobile device, and intercepting the browser-based network request sent by the second mobile device passing through the first mobile device, and then using the intercepted network The request is redirected to the second port of the first mobile device, so that the corresponding request result of the network request is sent to the second mobile device through the second port.

基于上述的设置方式,对于通过挂载所编写的内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求而言,具体的截获并重定向过程可以包括:Based on the above setting method, for intercepting and redirecting the browser-based network request sent by the second mobile device by loading the written kernel module, the specific intercepting and redirecting process may include:

通过该hook点拦截经过该第一移动设备的目标端口为该第一端口的该第二移动设备发送的基于浏览器的网络请求,并将该网络请求中的目的IP地址修改为该第一移动设备的IP地址,目的端口修改为该第一移动设备的该第二端口,以通过该第二端口将该网络请求对应的请求结果发送至该第二移动设备。The browser-based network request sent by the second mobile device whose target port is the first port through the first mobile device is intercepted through the hook point, and the destination IP address in the network request is modified to the first mobile device The IP address of the device and the destination port are modified to the second port of the first mobile device, so as to send the request result corresponding to the network request to the second mobile device through the second port.

其中,本领域技术人员可以理解的是,该目标第一端口可以为80端口,而该第二端口可以为不同于80端口的能够发送数据内容的其他端口。Wherein, those skilled in the art can understand that the target first port may be port 80, and the second port may be other port capable of sending data content different from port 80.

需要说明的是,对于第一移动设备的操作系统的当前用户名未具有管理员权限而言,在获取针对待共享文件的共享指令后,该第一移动设备可以展示出包含自身的IP地址和访问方式的页面,以指示第二移动设备所对应用户在第二移动设备的浏览器内的地址栏内输入该第一移动设备的IP地址,相应的,第一移动设备中内置的WEB模块会自动响应,以通过该第一移动设备中内置的WEB模块获得该第二移动设备的基于浏览器的网络请求,进而进行后续共享安装网页的发送步骤。It should be noted that, for the current user name of the operating system of the first mobile device that does not have administrator authority, after obtaining the sharing instruction for the file to be shared, the first mobile device may display a display including its own IP address and access mode page, to instruct the user corresponding to the second mobile device to input the IP address of the first mobile device in the address bar of the browser of the second mobile device, correspondingly, the built-in WEB module in the first mobile device will The automatic response is to obtain the browser-based network request of the second mobile device through the built-in WEB module in the first mobile device, and then perform the subsequent step of sending the shared installation web page.

需要说明的是,iptables是IOS、和基于Linux内核集成的IP信息包过滤系统,其 中,使用linux内核的操作系统目前有Android、Access Linux、Android、LiMo、Maemo、 Mobilinux、Moblin、MotoMagx、Openmoko、WebOS、Qt Extended、Ubuntu Mobile等操作系统; 并且,上述截获并重定向该第二移动设备发送的基于浏览器的网络请求的方式仅仅作为示 例,并不应该构成对本发明实施例的限定。 It should be noted that iptables is an IP packet filtering system integrated with IOS and Linux kernel. Among them, the operating systems using the linux kernel currently include Android, Access Linux, Android, LiMo, Maemo, Mobilinux, Moblin, MotoMagx, Openmoko, WebOS, Qt Extended, Ubuntu Mobile and other operating systems; And, the above-mentioned way of intercepting and redirecting the browser-based network request sent by the second mobile device is only for illustration. Examples should not be construed as limiting the embodiments of the present invention.

S104,将待共享文件作为该网络请求对应的请求结果并发送至该第二移动设备。S104. Send the file to be shared to the second mobile device as a request result corresponding to the network request.

在将截获并重定向第二移动设备发送的基于浏览器的网络请求后,可以将该待共享文件作为该网络请求对应的请求结果并通过相应的端口发送至第二移动设备,而第二移动设备在接收到该待共享文件后可以在用户的指示下保存到特定存储位置或安装到第二移动设备中,从而实现了文件的共享。After the browser-based network request sent by the second mobile device is intercepted and redirected, the file to be shared can be sent to the second mobile device through a corresponding port as the request result corresponding to the network request, and the second mobile device After receiving the file to be shared, it can be saved in a specific storage location or installed in the second mobile device under the instruction of the user, thereby realizing file sharing.

需要说明的是,对于实现文件共享方法的功能软件为用于提供文件共享功能的客户端软件的情况而言,为了确定出待共享文件,在将待共享文件作为该网络请求对应的请求结果并发送至该第二移动设备之前,所述方法还可以包括:展示文件选择界面,以指示用户选择需要共享的文件,其中,该文件选择页面中包含该第一移动设备所存储的可共享的文件;将该用户所选择的需要共享的文件作为待共享文件。本领域技术人员可以理解的是,确定出待共享文件的步骤只要在将待共享文件作为该网络请求对应的请求结果并发送至该第二移动设备的步骤之前就可以,当然,为了提供用户操作连贯性的使用体验,可以在获取针对待共享文件的共享指令的步骤之后立即执行确定待共享文件的步骤,而从用户操作的角度而言,在用户点击用于指示共享文件的按钮后,移动设备便会展示文件选择界面,以指示用户选择需要共享的文件,而用户选择所需共享的文件即可。It should be noted that, for the case where the functional software implementing the file sharing method is the client software for providing the file sharing function, in order to determine the file to be shared, the file to be shared is taken as the request result corresponding to the network request and Before sending to the second mobile device, the method may further include: displaying a file selection interface to instruct the user to select a file to be shared, wherein the file selection page includes shareable files stored in the first mobile device ; The file to be shared selected by the user is used as the file to be shared. Those skilled in the art can understand that the step of determining the file to be shared can be done before the step of sending the file to be shared as the request result corresponding to the network request to the second mobile device. Of course, in order to provide user operation Coherent user experience, the step of determining the file to be shared can be performed immediately after the step of obtaining the sharing instruction for the file to be shared, and from the perspective of user operation, after the user clicks the button used to indicate the file to be shared, the mobile The device will display a file selection interface to instruct the user to select the file to be shared, and the user only needs to select the file to be shared.

本方案中,第二移动设备在共享文件之前无需安装任何具备文件共享功能的软件或插件,而第一移动设备可以截获第二移动设备发送的基于浏览器的网络请求并重定向,进而将待共享文件作为网络请求对应的请求结果发送至第二移动设备,实现了在共享文件接收端无需安装任何具有文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高了用户的使用体验。并且,通过利用本方案,还能够达到以下效果:(1)无论是作为共享机的第一移动设备还是作为客户机的第二移动设备均无需借助移动网络和互联网实现文件传输;(2)一键点击操作简单,无需用户关心如何设置热点,如何访问热点,如何从共享机中获得相关的文件;(3)支持多人同时共享;(4)共享实现速度快;(5)适合免费软件的推广传播;(6)无需搜索网络寻找安装源;(7)由于获取共享机中已存在的安装文件,无需用户鉴别安装软件是否安全;(8)无需借助路由或AP;(9)无需分享机和客户机处于同一网段;(10)无需借助PC作为中转;(11)无需链接电缆;(12)无需存储卡交换数据。In this solution, the second mobile device does not need to install any software or plug-in with file sharing function before sharing files, and the first mobile device can intercept and redirect the browser-based network request sent by the second mobile device, and then transfer the file to be shared The file is sent to the second mobile device as the request result corresponding to the network request, so that the shared file receiving end does not need to install any software or plug-in with file sharing function, and the file can be quickly shared without generating network traffic, thereby improving user experience. Moreover, by using this solution, the following effects can also be achieved: (1) No matter whether it is the first mobile device as the sharing machine or the second mobile device as the client, it is not necessary to use the mobile network and the Internet to realize file transfer; (2) a The operation is simple with one click, and users do not need to care about how to set up hotspots, how to access hotspots, and how to obtain related files from the shared machine; (3) Support multiple people to share at the same time; (4) Sharing is fast; (5) Suitable for free software Promotion and dissemination; (6) No need to search the network to find the installation source; (7) Since the existing installation files in the shared machine are obtained, there is no need for users to identify whether the installation software is safe; (8) No need to rely on routing or AP; (9) No need to share the machine It is in the same network segment as the client; (10) No need to use PC as a transfer; (11) No need to link cables; (12) No need to exchange data with a memory card.

需要说明的是,由于该第一移动设备运行的操作系统可能与第二移动设备运行的操作系统不同,因此,对于同一个应用而言,两者所应安装的安装包不同,例如,第一移动设备运行IOS系统(由苹果公司开发的手持设备操作系统),而第二移动设备运行Android系统,此时,对于待共享文件为应用的安装包而言,第一移动设备需要适用于IOS系统的安装包,而第二移动设备需要适用于Android系统的安装包,因此,为了实现第一移动设备为第二移动设备提供符合操作系统的文件,该第一移动设备可以预先存储不同操作系统所需的文件,进而将第二移动设备所需的符合操作系统的文件作为待共享文件进行发送。It should be noted that since the operating system running on the first mobile device may be different from the operating system running on the second mobile device, for the same application, the installation packages that should be installed by the two are different, for example, the first The mobile device runs the IOS system (a handheld device operating system developed by Apple Inc.), while the second mobile device runs the Android system. At this time, for the installation package of the application file to be shared, the first mobile device needs to be suitable for the IOS system installation package, and the second mobile device needs an installation package suitable for the Android system. Therefore, in order to realize that the first mobile device provides the second mobile device with files conforming to the operating system, the first mobile device may pre-store files of different operating systems. required files, and then send the files required by the second mobile device conforming to the operating system as files to be shared.

更进一步的,为了提高重定向效率,截获并重定向该第二移动设备发送的基于浏览器的网络请求,可以包括:Furthermore, in order to improve redirection efficiency, intercepting and redirecting the browser-based network request sent by the second mobile device may include:

截获该第二移动设备发送的基于浏览器的网络请求;Intercepting a browser-based network request sent by the second mobile device;

判断该网络请求是否为预先设定的第一网络请求;judging whether the network request is a preset first network request;

当判断出该网络请求为预先设定的第一网络请求时,将该网络请求进行重定向处理。When it is determined that the network request is the preset first network request, the network request is redirected.

需要说明的是,该第一网络请求可以根据实际情况设定,在此不做限定;并且,当判断出该网络请求不为预先设定的第一网络请求时,该第一移动设备可以为该第二移动设备从网络中下载该网络请求对应的内容并反馈给该第二移动设备即可。It should be noted that the first network request can be set according to the actual situation, which is not limited here; and, when it is determined that the network request is not a preset first network request, the first mobile device can be The second mobile device downloads the content corresponding to the network request from the network and feeds it back to the second mobile device.

更进一步,可以根据实际需求,选择特定的第二移动设备进行文件共享,选择过程可以发生在网络连接的过程中,也可以发生在网络连接之后。其中,对于选择过程发生在网络连接的过程中的情况,与请求网络共享的第二移动设备进行网络连接,可以包括:Furthermore, according to actual needs, a specific second mobile device can be selected for file sharing, and the selection process can occur during or after network connection. Wherein, for the situation that the selection process occurs during the network connection, performing network connection with the second mobile device requesting network sharing may include:

指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;instructing the user to select a shareable second mobile device from among the second mobile devices requesting tethering;

与所选择的可共享的第二移动设备进行网络连接。A network connection is made with the selected shareable second mobile device.

而对于选择过程发生在网络连接之后的情况而言,In cases where the selection process occurs after the network connection, the

在与请求网络共享的第二移动设备进行网络连接之后,该文件共享方法还可以包括:After performing network connection with the second mobile device requesting network sharing, the file sharing method may further include:

指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;instructing the user to select a sharable second mobile device from among the second devices in the network connection state;

相应的,截获并重定向该第二移动设备发送的基于浏览器的网络请求,可以包括:Correspondingly, intercepting and redirecting the browser-based network request sent by the second mobile device may include:

截获该第二移动设备发送的基于浏览器的网络请求;Intercepting a browser-based network request sent by the second mobile device;

判断该第二移动设备是否为可共享的第二移动设备,如果是,重定向该第二移动设备发送的基于浏览器的网络请求。Judging whether the second mobile device is a shareable second mobile device, if yes, redirecting the browser-based network request sent by the second mobile device.

需要说明的是,可以通过列表形式展示出请求网络连接的第二移动设备的设备标识或处于网络连接状态的第二设备的设备标识,并指示用户选中所需的设备标识,从而完成对可共享的第二移动设备的选择;当然,也可以通过分布显示设备缩略图的形式展示出请求网络连接的第二移动设备或处于网络连接状态的第二设备,而用户可以通过滑动操作将在滑动操作所对应滑动方向上的第二移动设备作为可共享的第二移动设备,也可以通过点击缩略图的方式选择可共享的第二移动设备,例如:接收到用户A的滑动手势指令(指向左边)后,显示在左侧的设备B为可共享的设备;接收到用户A的滑动手势指令(指向右边)后,显示在右侧的设备C为可共享的设备。It should be noted that the device identification of the second mobile device requesting network connection or the device identification of the second device in the network connection state can be displayed in a list form, and the user is instructed to select the required device identification, so as to complete the sharable selection of the second mobile device; of course, the second mobile device requesting network connection or the second device in the network connection state can also be displayed in the form of distributed display device thumbnails, and the user can slide the 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 a sliding gesture command from user A (pointing to the left) After that, device B displayed on the left is a shareable device; after receiving user A's sliding gesture instruction (pointing to the right), device C displayed on the right is a shareable device.

当然,作为一个具体实施例,第一移动设备与第二移动设备进行网络连接时,第一设备可以生成密码,第二移动设备通过输入密码,通过验证后方可接入第一移动设备的网络,从而保证网络连接的安全性。Of course, as a specific embodiment, when the first mobile device is connected to the second mobile device through the network, the first device can generate a password, and the second mobile device can only access the network of the first mobile device after entering the password and passing verification. Thereby ensuring the security of the network connection.

基于上述方法实施例,本发明实施例还提供了一种文件共享方法,以在用户选择下载待共享文件时发送待共享文件,从而进一步提高用户的使用体验。Based on the foregoing method embodiments, an embodiment of the present invention further provides a file sharing method, so as to send the file to be shared when the user chooses to download the file to be shared, thereby further improving user experience.

同样的,本发明实施例所提供的一种文件共享方法适用于具有网络共享功能的第一移动设备,其中,该第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。可以理解的是,在实际应用中,该第一移动设备可以为手机、笔记本电脑、平板电脑等。Similarly, a file sharing method provided by an embodiment of the present invention is applicable to a first mobile device with a network sharing function, wherein the network sharing function of the first mobile device includes: WLAN hotspot function, Bluetooth network sharing function and at least one of the USB tethering functions. It can be understood that, in practical applications, the first mobile device may be a mobile phone, a notebook computer, a tablet computer, and the like.

并且,实现文件共享方法的功能软件可以为某一应用中内置的共享功能模块,也可以通过插件形式存在于某一应用中,当然还可以是安装在第一移动设备中的用于提供文件共享功能的客户端软件,这都是合理的。Moreover, the functional software for implementing the file sharing method may be a built-in sharing function module in a certain application, or may exist in a certain application in the form of a plug-in, and of course may be a file sharing module installed in the first mobile device. Functionality of the client software, which is reasonable.

如图2所示,一种文件共享方法,可以包括:As shown in Figure 2, a file sharing method may include:

S201,获取针对待共享文件的共享指令;S201. Obtain a sharing instruction for the file to be shared;

本发明实施例中,步骤S201与上述实施例中,步骤S101相似,在此不作赘述。In the embodiment of the present invention, step S201 is similar to step S101 in the foregoing embodiment, and details are not described here.

S202,获取待共享文件的共享安装网页;S202, acquiring a shared installation webpage of the file to be shared;

其中,在获取针对于待共享文件的共享指令后,可以获得待共享文件的共享安装网页,其中,该共享安装网页包含指向待共享文件的下载链接。Wherein, after obtaining the sharing instruction for the file to be shared, a shared installation webpage of the file to be shared can be obtained, wherein the shared installation webpage includes a download link pointing to the file to be shared.

需要说明的是,对于实现文件共享方法的功能软件为某一应用中内置的共享功能模块或通过插件形式存在于某一应用中的情况而言,获取待共享文件的共享安装网页,可以包括:获得应用中预先内置的共享安装网页;而对于实现文件共享方法的功能软件为安装在第一移动设备中的用于提供文件共享功能的客户端软件的情况而言,由于所针对的待共享文件的选择范围可以为第一移动设备所存储的所有文件,因此,获取待共享文件的共享安装网页,可以包括:展示文件选择界面,以指示用户选择需要共享的文件,其中,该文件选择页面中包含该第一移动设备所存储的可共享的文件;将该用户所选择的需要共享的文件作为待共享文件,并生成针对待共享文件的共享安装网页。It should be noted that, for the case where the functional software implementing the file sharing method is a built-in sharing function module in a certain application or exists in a certain application in the form of a plug-in, obtaining the shared installation webpage of the file to be shared may include: Obtain the shared installation webpage pre-built in the application; and for the case where the functional software implementing the file sharing method is the client software installed in the first mobile device for providing the file sharing function, since the targeted file to be shared The selection range may be all the files stored in the first mobile device, therefore, obtaining the shared installation webpage of the file to be shared may include: displaying a file selection interface to instruct the user to select the file to be shared, wherein, in the file selection page Include the shareable files stored in the first mobile device; set the file to be shared selected by the user as the file to be shared, and generate a shared installation webpage for the file to be shared.

进一步,需要说明的是,获取待共享文件的共享安装网页的步骤可以在获取针对待共享文件的共享指令后立即执行,当然并不局限于此,只要保证向第二移动设备发送共享安装网页之前获得即可,例如:可以在后续的截获并重定向该第二移动设备发送的基于浏览器的网络请求的步骤之后执行,也可以在后续的启动该第一移动设备的网络共享功能的步骤之后执行。Further, it should be noted that the step of obtaining the shared installation webpage of the file to be shared can be executed immediately after obtaining the sharing instruction for the file to be shared. It only needs to be obtained, for example: it can be executed after the subsequent step of intercepting and redirecting the browser-based network request sent by the second mobile device, or it can be executed after the subsequent step of starting the network sharing function of the first mobile device .

当然,对于实现文件共享方法的功能软件为安装在第一移动设备中的用于提供文件共享功能的客户端软件的情况而言,可以在获取针对待共享文件的共享指令的步骤之后立即执行获取待共享文件的共享安装网页的步骤,而从用户操作的角度而言,在用户点击用于指示共享文件的按钮后,移动设备便会展示文件选择界面,以指示用户选择需要共享的文件,而用户选择所需共享的文件即可,从而使得用户具有操作连贯性的使用体验。Of course, in the case where the functional software implementing the file sharing method is the client software installed in the first mobile device to provide the file sharing function, the acquiring The steps of the shared installation web page of the file to be shared, and from the perspective of user operation, after the user clicks the button used to indicate the shared file, the mobile device will display the file selection interface to instruct the user to select the file to be shared, and The user only needs to select the file to be shared, so that the user has a consistent operation experience.

S203,在该第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;S203, after the network sharing function of the first mobile device is started, perform network connection with the second mobile device requesting network sharing;

S204,截获并重定向该第二移动设备发送的基于浏览器的网络请求;S204, intercepting and redirecting the browser-based network request sent by the second mobile device;

本发明实施例中,步骤S203-步骤S204与上述实施例中,步骤S102-步骤S103类似,在此不作赘述。In the embodiment of the present invention, step S203-step S204 is similar to step S102-step S103 in the above embodiment, and details are not described here.

S205,将该共享安装网页作为该网络请求对应的请求结果并发送至该第二移动设备;S205. Send the shared installation webpage to the second mobile device as a request result corresponding to the network request;

在完成截获并重定向该第二移动设备发送的基于浏览器的网络请求后,可以将共享安装网页作为该网络请求对应的请求结果并通过相应的端口发送至该第二移动设备,从而该第二移动设备可以接收并展示该共享安装网页。After intercepting and redirecting the browser-based network request sent by the second mobile device, the shared installation web page can be sent to the second mobile device through a corresponding port as the request result corresponding to the network request, so that the second The mobile device can receive and display the shared installation web page.

S206,接收该第二移动设备发送的基于该共享安装网页的下载链接所形成的下载请求;S206. Receive a download request based on the download link of the shared installation webpage sent by the second mobile device;

当第二移动设备中展示出所接收到的共享安装网页后,用户可以点击该共享安装网页中的下载链接,而该第二移动设备在检测到点击该下载链接的操作后,形成该下载链接对应的下载请求并发送至该第一移动设备;而该第一移动设备可以接收到该第二移动设备发送的基于该共享安装网页的下载链接所形成的下载请求,进而进行后续的待共享文件的发送。After the received shared installation webpage is displayed on the second mobile device, the user can click the download link in the shared installation webpage, and the second mobile device will form a corresponding download link after detecting the operation of clicking the download link. and send the download request to the first mobile device; and the first mobile device can receive the download request based on the download link of the shared installation webpage sent by the second mobile device, and then proceed to the subsequent downloading of the file to be shared send.

本领域技术人员可以理解的是,当预定时间段内未接收到该第二移动设备发送的基于该共享安装网页的下载链接所形成的下载请求时,表明第二移动设备的用户选择不同意下载待共享文件,此时,该第一移动设备为该第二移动设备从网络中下载该网络请求对应的内容并反馈给该第二移动设备即可。Those skilled in the art can understand that, when the download request based on the download link of the shared installation webpage sent by the second mobile device is not received within a predetermined period of time, it indicates that the user of the second mobile device chooses not to agree to the download. When the file is to be shared, at this time, the first mobile device downloads the content corresponding to the network request from the network for the second mobile device and feeds it back to the second mobile device.

S207,向该第二移动设备发送该下载请求对应的待共享文件。S207. Send the file to be shared corresponding to the download request to the second mobile device.

在接收到该第二移动设备通过该共享安装网页的下载链接发送的下载请求后,可以向该第二移动设备发送该下载请求对应的待共享文件,而第二移动设备在接收到该待共享文件后可以在用户的指示下保存到特定存储位置或安装到第二移动设备中,从而实现将第一移动设备中的文件共享到该第二移动设备。After receiving the download request sent by the second mobile device through the download link of the shared installation webpage, the file to be shared corresponding to the download request can be sent to the second mobile device, and the second mobile device can send the file to be shared after receiving the file to be shared. The file can then be saved to a specific storage location or installed in the second mobile device under the instruction of the user, so that the file in the first mobile device can be shared with the second mobile device.

本方案中,第二移动设备在共享文件之前无需安装任何具备文件共享功能的插件或软件,而第一移动设备可以截获并重定向第二移动设备发送基于浏览器的网络请求,进而将共享安装网页作为该网络请求对应的请求结果并发送至该第二移动设备,并在接收到第二移动设备发送的基于该共享安装网页的下载链接所形成的下载请求后,向该第二移动设备发送该下载请求对应的待共享文件,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,并且,在用户需求待共享文件时发送待共享文件,进一步提高了用户的使用体验。In this solution, the second mobile device does not need to install any plug-ins or software with file sharing functions before sharing files, and the first mobile device can intercept and redirect the second mobile device to send a browser-based network request, and then share the installation web page As the request result corresponding to the network request, it is sent to the second mobile device, and after receiving the download request based on the download link of the shared installation webpage sent by the second mobile device, the request is sent to the second mobile device. The file to be shared corresponding to the download request realizes rapid file sharing without installing any software or plug-in with file sharing function on the receiving end of the shared file without generating network traffic, and when the user needs to share the file Sending files to be shared further improves user experience.

需要说明的是,由于该第一移动设备运行的操作系统可能与第二移动设备运行的操作系统不同,因此,对于同一个应用而言,两者所应安装的安装包不同,例如,第一移动设备运行IOS系统(由苹果公司开发的手持设备操作系统),而第二移动设备运行Android系统,此时,对于待共享文件为应用的安装包而言,第一移动设备需要适用于IOS系统的安装包,而第二移动设备需要适用于Android系统的安装包,因此,为了实现第一移动设备为第二移动设备提供符合操作系统的文件,该第一移动设备可以预先存储不同操作系统所需的文件,并在共享安装网页中提供不同操作系统所对应的下载链接。It should be noted that since the operating system running on the first mobile device may be different from the operating system running on the second mobile device, for the same application, the installation packages that should be installed by the two are different, for example, the first The mobile device runs the IOS system (a handheld device operating system developed by Apple Inc.), while the second mobile device runs the Android system. At this time, for the installation package of the application file to be shared, the first mobile device needs to be suitable for the IOS system installation package, and the second mobile device needs an installation package suitable for the Android system. Therefore, in order to realize that the first mobile device provides the second mobile device with files conforming to the operating system, the first mobile device may pre-store files of different operating systems. required files, and provide download links corresponding to different operating systems on the shared installation web page.

举例而言,待共享文件可以对应一个共享安装网页,其中,共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,且每一下载链接指向针对于一种操作系统的待共享文件;For example, the file to be shared may correspond to a shared installation webpage, wherein the shared installation webpage includes download links for at least one operating system pointing to the file to be shared, and each download link points to a shared installation page for an operating system. document;

相应的,向该第二移动设备发送该下载请求对应的待共享文件,可以包括:Correspondingly, sending the file to be shared corresponding to the download request to the second mobile device may include:

依据该下载请求,确定该第二移动设备所运行的第一操作系统;determining the first operating system run by the second mobile device according to the download request;

向该第二移动设备发送该下载请求对应的、针对于该第一操作系统的待共享文件。The file to be shared corresponding to the download request and specific to the first operating system is sent to the second mobile device.

举例而言,待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;For example, the file to be shared corresponds to at least one shared installation web page, wherein each shared installation web page includes a download link for an operating system pointing to the file to be shared;

相应的,将该共享安装网页作为该网络请求对应的请求结果并发送至该第二移动设备,可以包括:Correspondingly, sending the shared installation webpage as the request result corresponding to the network request to the second mobile device may include:

依据该网络请求,确定该第二移动设备运行的第一操作系统;determining the first operating system run by the second mobile device according to the network request;

将该第一操作系统对应的共享安装网页作为该网络请求对应的请求结果并发送至该第二移动设备。The shared installation web page corresponding to the first operating system is sent to the second mobile device as a request result corresponding to the network request.

更进一步的,为了提高重定向效率,截获并重定向该第二移动设备发送的基于浏览器的网络请求,可以包括:Furthermore, in order to improve redirection efficiency, intercepting and redirecting the browser-based network request sent by the second mobile device may include:

截获该第二移动设备发送的基于浏览器的网络请求;Intercepting a browser-based network request sent by the second mobile device;

判断该网络请求是否为预先设定的第一网络请求;judging whether the network request is a preset first network request;

当判断出该网络请求为预先设定的第一网络请求时,将该网络请求进行重定向处理。When it is determined that the network request is the preset first network request, the network request is redirected.

其中,该第一网络请求可以根据实际情况设定,在此不做限定;需要说明的是,该第一网络请求可以根据实际情况设定,在此不做限定;并且,当判断出该网络请求不为预先设定的第一网络请求时,该第一移动设备可以为该第二移动设备从网络中下载该网络请求对应的内容并反馈给该第二移动设备即可。Wherein, the first network request can be set according to the actual situation, which is not limited here; it should be noted that the first network request can be set according to the actual situation, which is not limited here; and, when it is determined that the network When the request is not a 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 it back to the second mobile device.

更进一步,可以根据实际需求,选择特定的第二移动设备进行文件共享,选择过程可以发生在网络连接的过程中,也可以发生在网络连接之后。其中,对于选择过程发生在网络连接的过程中的情况,与请求网络共享的第二移动设备进行网络连接,可以包括:Furthermore, according to actual needs, a specific second mobile device can be selected for file sharing, and the selection process can occur during or after network connection. Wherein, for the situation that the selection process occurs during the network connection, performing network connection with the second mobile device requesting network sharing may include:

指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;instructing the user to select a shareable second mobile device from among the second mobile devices requesting tethering;

与所选择的可共享的第二移动设备进行网络连接。A network connection is made with the selected shareable second mobile device.

而对于选择过程发生在网络连接之后的情况而言,In cases where the selection process occurs after the network connection, the

在与请求网络共享的第二移动设备进行网络连接之后,该文件共享方法还可以包括:After performing network connection with the second mobile device requesting network sharing, the file sharing method may further include:

指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;instructing the user to select a sharable second mobile device from among the second devices in the network connection state;

相应的,截获并重定向该第二移动设备发送的基于浏览器的网络请求,可以包括:Correspondingly, intercepting and redirecting the browser-based network request sent by the second mobile device may include:

截获该第二移动设备发送的基于浏览器的网络请求;Intercepting a browser-based network request sent by the second mobile device;

判断该第二移动设备是否为可共享的第二移动设备,如果是,重定向该第二移动设备发送的基于浏览器的网络请求。Judging whether the second mobile device is a shareable second mobile device, if yes, redirecting the browser-based network request sent by the second mobile device.

需要说明的是,可以通过列表形式展示出请求网络连接的第二移动设备的设备标识或处于网络连接状态的第二设备的设备标识,并指示用户选中所需的设备标识,从而完成对可共享的第二移动设备的选择;当然,也可以通过分布显示设备缩略图的形式展示出请求网络连接的第二移动设备或处于网络连接状态的第二设备,而用户可以通过滑动操作将在滑动操作所对应滑动方向上的第二移动设备作为可共享的第二移动设备,也可以通过点击缩略图的方式选择可共享的第二移动设备,例如:接收到用户A的滑动手势指令(指向左边)后,显示在左侧的设备B为可共享的设备;接收到用户A的滑动手势指令(指向右边)后,显示在右侧的设备C为可共享的设备。It should be noted that the device identification of the second mobile device requesting network connection or the device identification of the second device in the network connection state can be displayed in a list form, and the user is instructed to select the required device identification, so as to complete the sharable selection of the second mobile device; of course, the second mobile device requesting network connection or the second device in the network connection state can also be displayed in the form of distributed display device thumbnails, and the user can slide the 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 a sliding gesture command from user A (pointing to the left) After that, device B displayed on the left is a shareable device; after receiving user A's sliding gesture instruction (pointing to the right), device C displayed on the right is a shareable device.

当然,作为一个具体实施例,第一移动设备与第二移动设备进行网络连接时,第一设备可以生成密码,第二移动设备通过输入密码,通过验证后方可接入第一移动设备的网络,从而保证网络连接的安全性。Of course, as a specific embodiment, when the first mobile device is connected to the second mobile device through the network, the first device can generate a password, and the second mobile device can only access the network of the first mobile device after entering the password and passing verification. Thereby ensuring the security of the network connection.

下面结合具体的应用实例,对本发明实施例所提供的一种文件共享方法介绍。A file sharing method provided by an embodiment of the present invention is introduced below in combination with specific application examples.

需要说明的是,实现该文件共享方法的功能软件为应用1中内置的共享功能模块,其中,该手机A具有WLAN热点功能,且具有管理员权限。It should be noted that the functional software for realizing the file sharing method is a built-in sharing function module in application 1, wherein the mobile phone A has a WLAN hotspot function and has administrator authority.

如图3所示,一种文件共享方法,可以包括:As shown in Figure 3, a file sharing method may include:

S301,在应用1处于开启状态的过程中,当手机A检测到基于该应用1发出的用于指示共享文件的操作时,获取针对待共享安装包的共享指令;S301. When the application 1 is in the open state, when the mobile phone A detects an operation for instructing file sharing based on the application 1, obtain a sharing instruction for the installation package to be shared;

当需要将该应用1的安装包共享到另一设备时,用户可以点击显示在该应用1中的某一页面中的“一键分享”的按钮后,从而该手机A可以获取针对待共享安装包的共享指令,其中,该待共享安装包为该应用1对应的安装包。When it is necessary to share the installation package of the application 1 to another device, the user can click the "one-click share" button displayed on a certain page of the application 1, so that the mobile phone A can obtain the installation package for the application to be shared. A package sharing instruction, wherein the installation package to be shared is the installation package corresponding to the application 1 .

S302,获得该应用1中预先内置的共享安装网页;S302, obtaining the pre-built shared installation webpage in the application 1;

其中,在获取针对于待共享安装包的共享指令后,可以获得该应用1中预先内置的共享安装网页,其中,该共享安装网页包含指向待共享安装包的针对于至少一种操作系统的下载链接。Wherein, after obtaining the sharing instruction for the installation package to be shared, the shared installation webpage pre-built in the application 1 can be obtained, wherein the shared installation webpage includes downloading for at least one operating system pointing to the installation package to be shared Link.

S303,当判断出该手机A具有WLAN热点功能时,启动该手机A的WLAN热点功能;S303, when it is determined that the mobile phone A has a WLAN hotspot function, start the WLAN hotspot function of the mobile phone A;

S304,与请求网络共享的手机B进行网络连接;S304, making a network connection with the mobile phone B requesting network sharing;

在手机A启动WLAN热点功能后,手机B可以扫描该手机A,进而请求网络共享,使得该手机A可以与请求网络共享的手机B进行网络连接。如果手机A启动WLAN热点功能时,设置有验证密码,则手机B在请求网络共享时需要输入该验证码,验证码正确后手机A可以与手机B进行网络连接。After the mobile phone A activates the WLAN hotspot function, the mobile phone B can scan the mobile phone A, and then request network sharing, so that the mobile phone A can perform network connection with the mobile phone B requesting network sharing. If mobile phone A sets a verification password when starting the WLAN hotspot function, mobile phone B needs to enter the verification code when requesting network sharing. After the verification code is correct, mobile phone A can connect to the network with mobile phone B.

S305,通过设置该手机A的操作系统中的iptables的规则的方式,截获并重定向该 手机B发送的基于浏览器的网络请求; S305, intercepting and redirecting the Browser-based network request sent by mobile phone B;

S306,将该共享安装网页作为该网络请求对应的请求结果并发送至该手机B;S306, send the shared installation webpage to the mobile phone B as a request result corresponding to the network request;

其中,在手机A与手机B网络连接后,用户可以在手机B的浏览器的地址栏内输入任 意的地址信息,而手机B在检测到该地址信息后,可以生成相应的网络请求,并向该手机A发 送所生成的基于浏览器的网络请求;而该手机A可以通过设置该手机A的操作系统中的 iptables的规则的方式,截获并重定向该手机B发送的基于浏览器的网络请求,进而将该共 享安装网页作为该网络请求对应的请求结果并发送至该手机B。其中,可以理解的是,该网 络请求可以为:HTTP请求或FTP请求,当然并不局限于此。 Among them, after mobile phone A is connected to the network of mobile phone B, the user can enter any After detecting the address information, the mobile phone B can generate a corresponding network request and send it to the mobile phone A. Send the generated browser-based network request; and the mobile phone A can set the mobile phone A's operating system iptables rules, intercept and redirect the browser-based network request sent by the mobile phone B, and then share the Share the installation webpage as the request result corresponding to the network request and send it to the mobile phone B. Among them, it is understandable that the network The network request can be: HTTP request or FTP request, certainly not limited to this.

S307,接收该手机B基于该共享安装网页的下载链接所形成的下载请求;S307, receiving the download request formed by the mobile phone B based on the download link of the shared installation web page;

S308,依据该下载请求,确定该手机B所运行的第一操作系统;S308. Determine the first operating system run by the mobile phone B according to the download request;

S309,向该手机B发送该下载请求对应的、针对于该第一操作系统的待共享安装包。S309, sending to the mobile phone B a to-be-shared installation package corresponding to the download request and specific to the first operating system.

当手机B中展示出所接收到的共享安装网页后,用户可以点击该共享安装网页中的符合手机B所运行第一操作系统的下载链接,而该手机B在检测到点击下载链接的操作后,形成该下载链接对应的下载请求并发送至该手机A;而该手机A可以接收到该手机B发送的基于该共享安装网页的下载链接所形成的下载请求,并依据该下载请求,确定该手机B所运行的第一操作系统,进而向该手机B发送该下载请求对应的、针对于该第一操作系统的待共享安装包,而手机B在接收到该待共享安装包后可以在用户的指示下保存到特定存储位置或安装到该手机B中,从而实现文件共享。After the mobile phone B displays the received shared installation webpage, the user can click on the download link in the shared installation webpage that conforms to the first operating system running on mobile phone B, and after the mobile phone B detects the operation of clicking the download link, Form the download request corresponding to the download link and send it to the mobile phone A; and the mobile phone A can receive the download request based on the download link of the shared installation webpage sent by the mobile phone B, and determine the mobile phone's download request based on the download request. The first operating system run by B, and then send the download request corresponding to the mobile phone B, the installation package to be shared for the first operating system, and the mobile phone B can be in the user's after receiving the installation package to be shared. Save to a specific storage location or install to the mobile phone B according to the instruction, so as to realize file sharing.

可见,本方案中,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,并且,在用户需求待共享文件时发送共享文件,进一步提高了用户的使用体验。It can be seen that in this solution, on the premise that the receiving end of the shared file does not need to install any software or plug-in with file sharing function, the file can be shared quickly without generating network traffic, and the shared file can be sent when the user needs to share the file. files, further improving the user experience.

下面结合另一具体的应用实例,对本发明实施例所提供的一种文件共享方法介绍。The following describes a file sharing method provided by an embodiment of the present invention in conjunction with another specific application example.

需要说明的是,实现该文件共享方法的功能软件为安装在手机A中的用于共享文件的客户端软件,其中,该手机A具有WLAN热点功能,且具有管理权权限。It should be noted that the functional software implementing the file sharing method is the client software installed in the mobile phone A for sharing files, wherein the mobile phone A has a WLAN hotspot function and has management rights.

如图4所示,一种文件共享方法,可以包括:As shown in Figure 4, a file sharing method may include:

S401,在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;S401. Acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected;

当需要将手机A所存储的文件共享到另一设备时,用户点击用于共享文件的客户端软件中的“一键分享”的按钮后,该手机A获取针对待共享文件的共享指令。When the file stored in mobile phone A needs to be shared with another device, after the user clicks the button of "one-click sharing" in the client software for sharing the file, the mobile phone A obtains the sharing instruction for the file to be shared.

S402,展示文件选择界面,以指示用户选择需要共享的文件;S402, displaying a file selection interface to instruct the user to select a file to be shared;

其中,该文件选择页面中包含该手机A所存储的可共享的文件。Wherein, the file selection page includes shareable files stored in the mobile phone A.

S403,在用户选择需要共享的文件后,生成针对待共享文件的至少一个共享安装网页;S403, after the user selects the file to be shared, generate at least one shared installation webpage for the file to be shared;

其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接。Wherein, each shared installation webpage includes a download link directed to a kind of operating system to the file to be shared.

S404,当判断出该手机A具有WLAN热点功能时,启动该手机A的WLAN热点功能;S404, when it is determined that the mobile phone A has a WLAN hotspot function, start the WLAN hotspot function of the mobile phone A;

S405,与请求网络共享的手机B进行网络连接;S405, performing a network connection with the mobile phone B requesting network sharing;

在手机A启动WLAN热点功能后,手机B可以扫描该手机A,进而请求网络共享,而该手机A可以与请求网络共享的手机B进行网络连接。如果手机A启动WLAN热点功能时,设置有验证密码,则手机B在请求网络共享时需要输入该验证码,验证码正确后手机A可以与手机B进行网络连接。After the mobile phone A activates the WLAN hotspot function, the mobile phone B can scan the mobile phone A, and then request network sharing, and the mobile phone A can perform network connection with the mobile phone B requesting network sharing. If mobile phone A sets a verification password when starting the WLAN hotspot function, mobile phone B needs to enter the verification code when requesting network sharing. After the verification code is correct, mobile phone A can connect to the network with mobile phone B.

S406,通过挂载所编写内核模块的方式,截获并重定向该第二移动设备发送的基于浏览器的网络请求;S406. Intercept and redirect the browser-based network request sent by the second mobile device by mounting the written kernel module;

S407,依据该网络请求,确定该第二移动设备运行的第一操作系统;S407. Determine the first operating system running on the second mobile device according to the network request;

S408,将该第一操作系统对应的共享安装网页作为该网络请求对应的请求结果并发送至该手机B;S408, sending the shared installation webpage corresponding to the first operating system to the mobile phone B as a request result corresponding to the network request;

其中,在手机A与手机B网络连接后,用户可以在手机B的浏览器的地址栏内输入任意的地址信息,而手机B在检测到该地址信息后,可以生成相应的网络请求,并向该手机A发送所生成的基于浏览器的网络请求;而该手机A可以通过挂载所编写的内核模块的方式,截获并重定向该手机B发送的基于浏览器的网络请求,并依据该网络请求,确定该第二移动设备运行的第一操作系统,进而将该第一操作系统对应的共享安装网页作为该网络请求对应的请求结果并发送至该手机B。其中,可以理解的是,该网络请求可以为:HTTP请求或FTP请求,当然并不局限于此。Among them, after the mobile phone A is connected to the network of the mobile phone B, the user can input any address information in the address bar of the browser of the mobile phone B, and after the mobile phone B detects the address information, it can generate a corresponding network request and send it to 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 , determine the first operating system running on the second mobile device, and then send the shared installation web page corresponding to the first operating system to the mobile phone B as a request result corresponding to the network request. Wherein, it can be understood that the network request may be: an HTTP request or an FTP request, and of course it is not limited thereto.

S409,接收该手机B通过该共享安装网页的下载链接发送的下载请求;S409, receiving the download request sent by the mobile phone B through the download link of the shared installation webpage;

S410,向该手机B发送该下载请求对应的待共享文件。S410, sending to the mobile phone B the file to be shared corresponding to the download request.

当手机B中展示出所接收到的共享安装网页后,用户可以点击该共享安装网页中的下载链接,而该手机B在检测到点击下载链接的操作后,形成该下载链接对应的下载请求并发送至该手机A;而该手机A可以接收到该手机B发送的基于该共享安装网页的下载链接所形成的下载请求,进而向该手机B发送该下载请求对应的待共享文件,而手机B在接收到该待共享安装包后可以在用户的指示下保存到特定存储位置或安装到该手机B中,从而实现文件共享。After the mobile phone B displays the received shared installation webpage, the user can click the download link in the shared installation webpage, and after the mobile phone B detects the operation of clicking the download link, it forms a download request corresponding to the download link and sends to the mobile phone A; and the mobile phone A can receive the download request based on the download link of the shared installation webpage sent by the mobile phone B, and then send the file to be shared corresponding to the download request to the mobile phone B, and the mobile phone B is in After receiving the installation package to be shared, it can be saved in a specific storage location or installed in the mobile phone B under the instruction of the user, thereby realizing file sharing.

可见,通过利用本方案,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,并且,在用户需求待共享文件时发送共享文件,进一步提高了用户的使用体验。It can be seen that by using this solution, the shared file receiving end does not need to install any software or plug-in with file sharing function, and the file can be shared quickly without generating network traffic, and the file is sent when the user needs to share the file Sharing files further improves the user experience.

相应于上述共享端对应的方法实施例,本发明实施例提供了一种文件共享装置,适用于第一移动设备。Corresponding to the above method embodiment corresponding to the sharing terminal, the embodiment of the present invention provides a file sharing apparatus, which is applicable to the first mobile device.

实施例一,如图5所示,所述文件共享装置可以包括:Embodiment 1, as shown in FIG. 5, the file sharing device may include:

共享指令获取模块510,用于获取针对待共享文件的共享指令;A sharing instruction acquisition module 510, configured to acquire a sharing instruction for the file to be shared;

网络连接模块520,用于在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;A network connection module 520, configured to perform network connection with a second mobile device requesting network sharing after the network sharing function of the first mobile device is started;

网络请求处理模块530,用于截获并重定向所述第二移动设备发送的基于浏览器的网络请求;A network request processing module 530, configured to intercept and redirect the browser-based network request sent by the second mobile device;

待共享文件处理模块540,用于将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。The to-be-shared file processing module 540 is configured to send the to-be-shared file to the second mobile device as a request result corresponding to the network request.

本方案中,第二移动设备在共享文件之前无需安装任何具备文件共享功能的软件或插件,而第一移动设备可以截获第二移动设备发送的基于浏览器的网络请求并重定向,进而将待共享文件作为网络请求对应的请求结果发送至第二移动设备,实现了在共享文件接收端无需安装任何具备文件共享功能的软件或插件的前提下,通过不产生网络流量的方式快速共享文件,从而提高了用户的使用体验。In this solution, the second mobile device does not need to install any software or plug-in with file sharing function before sharing files, and the first mobile device can intercept and redirect the browser-based network request sent by the second mobile device, and then transfer the file to be shared The file is sent to the second mobile device as the request result corresponding to the network request, realizing the rapid file sharing without generating network traffic on the premise that the receiving end of the shared file does not need to install any software or plug-in with file sharing function, thereby improving user experience.

其中,基于本发明实施例一所提供的文件共享装置,本发明实施例二所提供的文件共享装置还可以包括:网络共享功能启动模块,用于在与请求网络共享的第二移动设备进行网络连接之前,启动所述第一移动设备的网络共享功能。Wherein, based on the file sharing device provided in Embodiment 1 of the present invention, the file sharing device provided in Embodiment 2 of the present invention may further include: a network sharing function activation module, configured to perform network sharing with the second mobile device requesting network sharing Before connecting, a tethering function of the first mobile device is activated.

其中,针对于实施例一或实施例二所提供的文件共享装置,所述共享指令获取模块510,可以包括:Wherein, for the file sharing device provided in Embodiment 1 or Embodiment 2, the sharing instruction acquisition module 510 may include:

第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件。A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application.

其中,针对于实施例一或实施例二所提供的文件共享装置,所述共享指令获取模块510,可以包括:Wherein, for the file sharing device provided in Embodiment 1 or Embodiment 2, the sharing instruction acquisition module 510 may include:

第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected;

所述装置还可以包括:The device may also include:

待共享文件确定模块,用于在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备之前,展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;将所述用户所选择的需要共享的文件作为待共享文件。The file-to-be-shared determining module is configured to display a file selection interface to instruct the user to select a file to be shared before sending the file to be shared as a request result corresponding to the network request to the second mobile device, wherein the The file selection page includes the shareable files stored in the first mobile device; and the file selected by the user to be shared is taken as the file to be shared.

更进一步的,在实施例一或实施例二的基础上,本发明所提供实施例三中,所述文件共享装置还可以包括:Furthermore, on the basis of Embodiment 1 or Embodiment 2, in Embodiment 3 provided by the present invention, the file sharing device may further include:

共享安装网页获取模块,用于在获取针对待共享文件的共享指令之后,获取待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接;A shared installation web page obtaining module, configured to obtain a shared installation web page of the file to be shared after obtaining the sharing instruction for the file to be shared; wherein, the shared installation web page includes a download link pointing to the file to be shared;

相应的,所述待共享文件处理模块540,可以包括:Correspondingly, 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 request result corresponding to the network request to the second mobile device;

待共享文件处理单元,用于在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所形成的下载请求后,向所述第二移动设备发送所述下载请求对应的待共享文件。The to-be-shared file processing unit is configured to, after receiving the download request based on the download link of the shared installation webpage sent by the second mobile device, send the to-be-shared file corresponding to the download request to the second mobile device. shared documents.

其中,针对于实施例三所提供的文件共享装置,所述共享指令获取模块,可以包括:Wherein, for the file sharing device provided in Embodiment 3, the sharing instruction acquisition module may include:

第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件;A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application;

相应的,所述共享安装网页获取模块,可以包括:Correspondingly, the shared installation web page acquisition module may include:

第一共享安装网页获取单元,用于在获取针对待共享文件的共享指令之后,获取所述应用中预先内置的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The first shared installation webpage acquisition unit is configured to acquire a pre-built shared installation webpage in the application after acquiring the sharing instruction for the file to be shared; wherein, the shared installation webpage includes a download pointing to the file to be shared Link.

其中,针对于实施例三所提供的文件共享装置,所述共享指令获取模块510,可以包括:Wherein, for the file sharing device provided in Embodiment 3, the sharing instruction acquisition module 510 may include:

第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected;

相应的,所述共享安装网页获取模块,可以包括:Correspondingly, the shared installation web page acquisition module may include:

第二共享安装网页获取单元,用于获得针对待共享文件的共享指令之后,展示文件选择界面,以指示用户选择待共享文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;在待共享文件被选择完毕后,生成针对所述待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The second shared installation web page acquisition unit is configured to display a file selection interface to instruct the user to select a file to be shared after obtaining a sharing instruction for the file to be shared, wherein the file selection page includes the files stored in 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 pointing to the file to be shared.

其中,针对于实施例一、实施例二或实施例三所提供的文件共享装置,所述网络请求处理模块530,可以包括:Wherein, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, 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 judging unit, configured to judge whether the network request is a preset first network request;

网络请求重定向单元,用于当判断出所述网络请求为预先设定的第一网络请求时,将所述网络请求进行重定向处理。The network request redirecting unit is configured to redirect the network request when it is determined that the network request is a preset first network request.

其中,针对于实施例一、实施例二或实施例三所提供的文件共享装置,所述网络请 求处理模块530用于当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通 过设置所述第一移动设备的操作系统中的iptables的规则的方式,截获并重定向所述第二 移动设备发送的基于浏览器的网络请求。 Wherein, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, the network request The request processing module 530 is used for when the current user name of the operating system of the first mobile device has administrator authority, by By setting the iptables rules in the operating system of the first mobile device, intercept and redirect the second A browser-based network request sent by a mobile device.

其中,针对于实施例一、实施例二或实施例三所提供的文件共享装置,所述网络请求处理模块530可以通过挂载所编写内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。Wherein, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, the network request processing module 530 can intercept and redirect the second mobile device to send browser-based network requests for .

其中,针对于实施例一、实施例二或实施例三所提供的文件共享装置,还可以包括:Wherein, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, it may also include:

页面展示模块,用于在获取针对待共享文件的共享指令后,展示包含所述第一移动设备自身的IP地址和访问方式的页面,以指示所述第二移动设备所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设备的IP地址;The page display module is configured to display a page containing the IP address and access method of the first mobile device itself after obtaining the sharing instruction for the file to be shared, so as to indicate that the user corresponding to the second mobile device is on the second mobile device. Enter the IP address of the first mobile device in the address bar of the browser of the second mobile device;

所述网络请求处理模块530用于当所述第一移动设备的操作系统的当前用户名未具有管理员权限时,通过所述第一移动设备中内置的WEB模块获得所述第二移动设备的基于浏览器的网络请求。The network request processing module 530 is configured to, when the current user name of the operating system of the first mobile device does not have administrator authority, obtain the WEB module of the second mobile device through the built-in WEB module of the first mobile device. Browser-based network requests.

其中,针对于实施例一、实施例二或实施例三所提供的文件共享装置,所述网络连接模块520,可以包括:Wherein, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, the network connection module 520 may include:

选择单元,用于指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;a selection unit, configured to instruct the user to select a shareable second mobile device from the second mobile devices requesting network sharing;

网络连接单元,用于与所选择的可共享的第二移动设备进行网络连接。The network connection unit is used for network connection with the selected second mobile device that can be shared.

更进一步的,针对于实施例一、实施例二或实施例三所提供的文件共享装置,还可以包括:Furthermore, for the file sharing device provided in Embodiment 1, Embodiment 2 or Embodiment 3, it may further include:

选择模块,用于与请求网络共享的第二移动设备进行网络连接之后,指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;The selection module is configured to instruct the user to select a shareable second mobile device from the second devices in the network connection state after network connection with the second mobile device requesting network sharing;

所述网络请求处理模块530,可以包括: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 shareable second mobile device, and if yes, redirect the browser-based network request sent by the second mobile device.

其中,针对于实施例二所提供的文件共享装置,所述第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。Wherein, for the file sharing apparatus provided in Embodiment 2, 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.

其中,所述网络共享功能启动模块,用于判断是否存在WLAN热点功能,如果是,启动所述WLAN热点功能;否则,Wherein, the network sharing function activation module is used to judge whether there is a WLAN hotspot function, and if so, start the WLAN hotspot function; otherwise,

判断是否存在蓝牙网络共享功能,如果是,启动所述蓝牙网络共享功能;否则,启动所述USB网络共享功能。Judging whether there is a Bluetooth network sharing function, if yes, starting the Bluetooth network sharing function; otherwise, starting the USB network sharing function.

其中,针对于实施例三所提供的文件共享装置,所述待共享文件对应一个共享安装网页,其中,所述共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,且每一下载链接指向针对于一种操作系统的待共享文件;Wherein, for the file sharing device provided in Embodiment 3, the file to be shared corresponds to a shared installation web page, wherein the shared installation web page includes a download link for at least one operating system pointing to the file to be shared, and each A download link points to a file to be shared specific to an operating system;

所述待共享文件处理单元,可以包括:The file processing unit to be shared may include:

操作系统确定子单元,用于在接收到所述第二移动设备通过所述共享安装网页的下载链接发送的下载请求后,依据所述下载请求,确定所述第二移动设备所运行的第一操作系统;The operating system determination subunit is configured to, after receiving the download request sent by the second mobile device through the download link of the shared installation web page, determine the first operating system run by the second mobile device according to the download request. operating system;

待共享文件发送子单元,用于向所述第二移动设备发送所述下载请求对应的、针对于所述第一操作系统的待共享文件;The subunit for sending the file to be shared is configured to send the file to be shared corresponding to the download request and specific to the first operating system to the second mobile device;

或者,所述待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;Alternatively, 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 pointing to the file to be shared;

所述共享安装网页发送单元,可以包括:The shared installation web page sending unit may include:

操作系统确定子单元,用于依据所述网络请求,确定所述第二移动设备运行的第一操作系统;an operating system determining subunit, configured to determine the first operating system running on the second mobile device according to the network request;

共享安装网页发送子单元,用于将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备。The shared installation webpage sending subunit is configured to send the shared installation webpage corresponding to the first operating system as a request result corresponding to the network request to the second mobile device.

进一步的,本发明实施例还提供了一种移动设备,所述移动设备为第一移动设备,可以包括:本发明实施例所提供的适用于第一移动设备的任意一种文件共享装置。Further, the embodiment of the present invention also provides a mobile device, the mobile device is the first mobile device, and may include: any file sharing apparatus suitable for the first mobile device provided in the embodiment of the present invention.

对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, referred to herein as Storage media, such as: ROM/RAM, disk, CD, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (34)

1.一种文件共享方法,其特征在于,适用于第一移动设备,所述方法包括:1. A file sharing method, characterized in that being applicable to a first mobile device, said method comprising: 获取针对待共享文件的共享指令;Obtain a sharing instruction for the file to be shared; 在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;After the network sharing function of the first mobile device is started, perform network connection with the second mobile device requesting network sharing; 在第二移动设备检测到用户在浏览器地址栏内输入的任意地址信息,并将生成的相应的基于浏览器的网络请求发送给第一移动设备之后,截获并重定向所述第二移动设备发送的基于浏览器的网络请求,将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。After the second mobile device detects any address information entered by the user in the address bar of the browser, and sends the generated corresponding browser-based network request to the first mobile device, intercept and redirect the second mobile device to send A browser-based network request, sending the file to be shared as a request result corresponding to the network request to the second mobile device. 2.根据权利要求1所述的方法,其特征在于,在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取所述针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件。2. The method according to claim 1, wherein when the application is in the open state, when an operation for instructing to share a file issued based on the application is detected, the sharing information for the file to be shared is obtained. Instructions, wherein the file to be shared is a file corresponding to the application. 3.根据权利要求1所述的方法,其特征在于,在检测到用于指示共享文件的操作时,获取所述针对待共享文件的共享指令;3. The method according to claim 1, wherein when an operation for instructing to share a file is detected, the sharing instruction for the file to be shared is acquired; 在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备之前,所述方法还包括:Before sending the file to be shared as a request result corresponding to the network request to the second mobile device, the method further includes: 展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;displaying a file selection interface to instruct the user to select a file to be shared, wherein the file selection page includes shareable files stored in the first mobile device; 将所述用户所选择的需要共享的文件作为待共享文件。The file to be shared selected by the user is used as the file to be shared. 4.根据权利要求1所述的方法,其特征在于,在获取针对待共享文件的共享指令之后,所述方法还包括:4. The method according to claim 1, wherein after obtaining the sharing instruction for the file to be shared, the method further comprises: 获取待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接;Obtaining a shared installation webpage of the file to be shared; wherein, the shared installation webpage includes a download link pointing to the file to be shared; 相应的,所述将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备,包括:Correspondingly, sending the file to be shared as a request result corresponding to the network request to the second mobile device includes: 将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备;Using the shared installation webpage as a request result corresponding to the network request and sending it to the second mobile device; 在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所形成的下载请求后,向所述第二移动设备发送所述下载请求对应的待共享文件。After receiving the download request sent by the second mobile device based on the download link of the shared installation webpage, sending the file to be shared corresponding to the download request to the second mobile device. 5.根据权利要求4所述的方法,其特征在于,在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取所述针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件;5. The method according to claim 4, wherein when an operation for instructing to share a file issued based on the application is detected while the application is in the open state, the sharing information for the file to be shared is obtained. An instruction, wherein the file to be shared is a file corresponding to the application; 相应的,所述获取待共享文件的共享安装网页,包括:Correspondingly, the acquisition of the shared installation webpage of the file to be shared includes: 获取所述应用中预先内置的共享安装网页,其中,所述共享安装网页中包含指向所述待共享文件的下载链接。Obtaining a shared installation webpage pre-built in the application, wherein the shared installation webpage includes a download link pointing to the file to be shared. 6.根据权利要求4所述的方法,其特征在于,在检测到用于指示共享文件的操作时,获取所述针对待共享文件的共享指令;6. The method according to claim 4, wherein when an operation for instructing to share a file is detected, the sharing instruction for the file to be shared is acquired; 相应的,所述获取待共享文件的共享安装网页,包括:Correspondingly, the acquisition of the shared installation webpage of the file to be shared includes: 展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;displaying a file selection interface to instruct the user to select a file to be shared, wherein the file selection page includes shareable files stored in the first mobile device; 将所述用户所选择的需要共享的文件作为待共享文件,并生成针对所述待共享文件的共享安装网页,其中,所述共享安装网页中包含指向所述待共享文件的下载链接。Taking the file to be shared selected by the user as the file to be shared, and generating a shared installation webpage for the file to be shared, wherein the shared installation webpage includes a download link pointing to the file to be shared. 7.根据权利要求1-6任意一项所述的方法,其特征在于,所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:7. The method according to any one of claims 1-6, wherein the intercepting and redirecting the browser-based network request sent by the second mobile device comprises: 截获所述第二移动设备发送的基于浏览器的网络请求;intercepting a browser-based network request sent by the second mobile device; 判断所述网络请求是否为预先设定的第一网络请求;judging whether the network request is a preset first network request; 当判断出所述网络请求为预先设定的第一网络请求时,将所述网络请求进行重定向处理。When it is determined that the network request is the preset first network request, the network request is redirected. 8.根据权利要求1-6任意一项所述的方法,其特征在于,当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过设置所述第一移动设备的操作系统中的iptables的规则的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。8. The method according to any one of claims 1-6, wherein when the current user name of the operating system of the first mobile device has administrator authority, by setting the operation of the first mobile device By way of iptables rules in the system, intercept and redirect the browser-based network request sent by the second mobile device. 9.根据权利要求8所述的方法,其特征在于,设置所述第一移动设备的操作系统中的iptables的规则的过程,包括:9. The method according to claim 8, wherein the process of setting the rules of the iptables in the operating system of the first mobile device comprises: 在所述第一移动设备的iptables中增加对所述第二移动设备的基于浏览器的网络请求的目标第一端口进行监听、以及将所截获到的经过所述第一移动设备的所述第二移动设备发送的基于浏览器的网络请求重定向至所述第一移动设备的预定的第二端口的规则;Adding in the iptables of the first mobile device the monitoring of the target first port of the browser-based network request of the second mobile device, and the intercepted first port passing through the first mobile device A rule for redirecting a browser-based network request sent by a mobile device to a 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: 监听所述第二移动设备的基于浏览器的网络请求的所述目标第一端口,并截获经过所述第一移动设备的所述第二移动设备发送的基于浏览器的网络请求,进而将所截获到的网络请求重定向至所述第一移动设备的第二端口,以通过所述第二端口将所述网络请求对应的请求结果并发送至所述第二移动设备。Listening to the target first port of the browser-based network request of the second mobile device, and intercepting the browser-based network request sent by the second mobile device passing through the first mobile device, and then converting the The intercepted network request is redirected to the second port of the first mobile device, so as to send a request result corresponding to the network request to the second mobile device through the second port. 10.根据权利要求1-6任意一项所述的方法,其特征在于,当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过挂载所编写的内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。10. The method according to any one of claims 1-6, characterized in that, when the current user name of the operating system of the first mobile device has administrator authority, by loading the written kernel module , intercepting and redirecting the browser-based network request sent by the second mobile device. 11.根据权利要求10所述的方法,其特征在于,所述挂载所编写的内核模块的过程包括:11. The method according to claim 10, wherein the process of loading the written kernel module comprises: 将采用netfilter框架所编写的内核模块挂载到所述第一移动设备的操作系统内核中,以实现在网络架构中的IP层中增设一hook点,其中,通过所述hook点拦截经过所述第一移动设备的目标端口为预定的第一端口的所述第二移动设备的网络请求,且能够将所述网络请求中的目的IP修改为所述第一移动设备的IP地址且将目的端口修改为所述第一移动设备的预定的第二端口;Mount the kernel module written by the netfilter framework 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, wherein, the hook point intercepts passing through the The target port of the first mobile device is the 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 modifying to a 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: 通过所述hook点拦截经过所述第一移动设备的目标端口为所述第一端口的所述第二移动设备发送的基于浏览器的网络请求,并将所述网络请求中的目的IP地址修改为所述第一移动设备的IP地址,目的端口修改为所述第一移动设备的所述第二端口,以通过所述第二端口将所述网络请求对应的请求结果发送至所述第二移动设备。The browser-based network request sent by the second mobile device that is the first port through the target port of the first mobile device is intercepted through the hook point, and the destination IP address in the network request is modified. is the IP address of the first mobile device, and the destination port is modified to the second port of the first mobile device, so as to send the request result corresponding to the network request to the second port through the second port. Mobile devices. 12.根据权利要求1-6任意一项所述的方法,其特征在于,当所述第一移动设备的操作系统的当前用户名未具有管理员权限时,所述方法还包括:12. The method according to any one of claims 1-6, wherein when the current user name of the operating system of the first mobile device does not have administrator authority, the method further comprises: 在获取针对待共享文件的共享指令后,展示包含所述第一移动设备自身的IP地址和访问方式的页面,以指示所述第二移动设备所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设备的IP地址;相应的,所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:After obtaining the sharing instruction for the file to be shared, a page containing the IP address and access method of the first mobile device itself is displayed, so as to indicate that the user corresponding to the second mobile device is in the browser of the second mobile device Enter the IP address of the first mobile device in the address bar in the input; correspondingly, the interception and redirection of the browser-based network request sent by the second mobile device include: 通过所述第一移动设备中内置的WEB模块获得所述第二移动设备的基于浏览器的网络请求。The browser-based network request of the second mobile device is obtained through the built-in WEB module in the first mobile device. 13.根据权利要求1-6任意一项所述的方法,其特征在于,所述与请求网络共享的第二移动设备进行网络连接,包括:13. The method according to any one of claims 1-6, wherein the performing network connection with the second mobile device requesting network sharing comprises: 指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;instructing the user to select a shareable second mobile device from among the second mobile devices requesting tethering; 与所选择的可共享的第二移动设备进行网络连接。A network connection is made with the selected shareable second mobile device. 14.根据权利要求1-6任意一项所述的方法,其特征在于,所述与请求网络共享的第二移动设备进行网络连接之后,所述方法还包括:14. The method according to any one of claims 1-6, characterized in that, after performing network connection with the second mobile device requesting network sharing, the method further comprises: 指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;instructing the user to select a sharable second mobile device from among the second devices in the network connection state; 所述截获并重定向所述第二移动设备发送的基于浏览器的网络请求,包括:The intercepting and redirecting the browser-based network request sent by the second mobile device includes: 截获所述第二移动设备发送的基于浏览器的网络请求;intercepting a browser-based network request sent by the second mobile device; 判断所述第二移动设备是否为可共享的第二移动设备,如果是,重定向所述第二移动设备发送的基于浏览器的网络请求。Judging whether the second mobile device is a shareable second mobile device, if yes, redirecting a browser-based network request sent by the second mobile device. 15.根据权利要求1所述的方法,其特征在于,所述第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。15. The method according to claim 1, wherein the network sharing function of the first mobile device comprises: at least one of a WLAN hotspot function, a Bluetooth network sharing function and a USB network sharing function. 16.根据权利要求15所述的方法,其特征在于,所述启动所述第一移动设备中的网络共享功能,包括:16. The method according to claim 15, wherein the starting the network sharing function in the first mobile device comprises: 判断是否存在WLAN热点功能,如果是,启动所述WLAN热点功能;否则,Determine whether there is a WLAN hotspot function, if yes, start the WLAN hotspot function; otherwise, 判断是否存在蓝牙网络共享功能,如果是,启动所述蓝牙网络共享功能;否则,启动所述USB网络共享功能。Judging whether there is a Bluetooth network sharing function, if yes, starting the Bluetooth network sharing function; otherwise, starting the USB network sharing function. 17.根据权利要求4所述的方法,其特征在于,所述待共享文件对应一个共享安装网页,其中,所述共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,每一下载链接指向针对于一种操作系统的待共享文件;17. The method according to claim 4, wherein the file to be shared corresponds to a shared installation webpage, wherein the shared installation webpage includes a download link for at least one operating system pointing to the file to be shared, and each A download link points to a file to be shared specific to an operating system; 相应的,corresponding, 所述向所述第二移动设备发送所述下载请求对应的待共享文件,包括:The sending the file to be shared corresponding to the download request to the second mobile device includes: 依据所述下载请求,确定所述第二移动设备所运行的第一操作系统;determining the first operating system run by the second mobile device according to the download request; 向所述第二移动设备发送所述下载请求对应的、针对于所述第一操作系统的待共享文件;Sending the file to be shared corresponding to the download request and specific to the first operating system to the second mobile device; 或者,or, 所述待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;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 pointing to the file to be shared; 相应的,所述将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备,包括:Correspondingly, sending the shared installation webpage as the request result corresponding to the network request to the second mobile device includes: 依据所述网络请求,确定所述第二移动设备运行的第一操作系统;determining a first operating system running on the second mobile device according to the network request; 将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备。Sending the shared installation web page corresponding to the first operating system as a request result corresponding to the network request to the second mobile device. 18.一种文件共享装置,其特征在于,适用于第一移动设备,所述文件共享装置包括:18. A file sharing device, characterized in that it is suitable for a first mobile device, and the file sharing device comprises: 共享指令获取模块,用于获取针对待共享文件的共享指令;A sharing instruction acquisition module, configured to acquire a sharing instruction for the file to be shared; 网络连接模块,用于在所述第一移动设备的网络共享功能启动之后,与请求网络共享的第二移动设备进行网络连接;A network connection module, configured to perform a network connection with a second mobile device requesting network sharing after the network sharing function of the first mobile device is started; 网络请求处理模块,用于在第二移动设备检测到用户在浏览器地址栏内输入的任意地址信息,并将生成的相应的基于浏览器的网络请求发送给第一移动设备之后,截获并重定向所述第二移动设备发送的基于浏览器的网络请求;The network request processing module is used for intercepting and redirecting after the second mobile device detects any address information input by the user in the browser address bar, and sends the generated corresponding browser-based network request to the first mobile device A browser-based network request sent by the second mobile device; 待共享文件处理模块,用于将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备。The to-be-shared file processing module is configured to send the to-be-shared file to the second mobile device as a request result corresponding to the network request. 19.根据权利要求18所述的装置,其特征在于,还包括:19. The apparatus of claim 18, further comprising: 网络共享功能启动模块,用于在与请求网络共享的第二移动设备进行网络连接之前,启动所述第一移动设备的网络共享功能。The network sharing function starting module is used for starting the network sharing function of the first mobile device before making a network connection with the second mobile device requesting network sharing. 20.根据权利要求18所述的装置,其特征在于,所述共享指令获取模块,包括:20. The device according to claim 18, wherein the shared instruction acquisition module comprises: 第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件。A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application. 21.根据权利要求18所述的装置,其特征在于,所述共享指令获取模块,包括:21. The device according to claim 18, wherein the shared instruction acquisition module comprises: 第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected; 所述装置还包括:The device also includes: 待共享文件确定模块,用于在将待共享文件作为所述网络请求对应的请求结果并发送至所述第二移动设备之前,展示文件选择界面,以指示用户选择需要共享的文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;将所述用户所选择的需要共享的文件作为待共享文件。The file-to-be-shared determining module is configured to display a file selection interface to instruct the user to select a file to be shared before sending the file to be shared as a request result corresponding to the network request to the second mobile device, wherein the The file selection page includes the shareable files stored in the first mobile device; and the file selected by the user to be shared is taken as the file to be shared. 22.根据权利要求18所述的装置,其特征在于,还包括:22. The apparatus of claim 18, further comprising: 共享安装网页获取模块,用于在获取针对待共享文件的共享指令之后,获取待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接;A shared installation web page obtaining module, configured to obtain a shared installation web page of the file to be shared after obtaining the sharing instruction for the file to be shared; wherein, the shared installation web page includes a download link pointing to the file to be shared; 相应的,所述待共享文件处理模块,包括:Correspondingly, the file processing module to be shared includes: 共享安装网页发送单元,用于将所述共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备;A shared installation webpage sending unit, configured to send the shared installation webpage as a request result corresponding to the network request to the second mobile device; 待共享文件处理单元,用于在接收到所述第二移动设备发送的基于所述共享安装网页的下载链接所形成的下载请求后,向所述第二移动设备发送所述下载请求对应的待共享文件。The to-be-shared file processing unit is configured to, after receiving the download request based on the download link of the shared installation webpage sent by the second mobile device, send the to-be-shared file corresponding to the download request to the second mobile device. shared documents. 23.根据权利要求22所述的装置,其特征在于,所述共享指令获取模块,包括:23. The device according to claim 22, wherein the shared instruction acquisition module comprises: 第一共享指令获取单元,用于在应用处于开启状态过程中,当检测到基于所述应用发出的用于指示共享文件的操作时,获取针对待共享文件的共享指令,其中,所述待共享文件为所述应用对应的文件;A first sharing instruction acquiring unit, configured to acquire a sharing instruction for a file to be shared when an operation for instructing to share a file issued based on the application is detected when the application is in the open state, wherein the file to be shared The file is a file corresponding to the application; 相应的,所述共享安装网页获取模块,包括:Correspondingly, the shared installation web page acquisition module includes: 第一共享安装网页获取单元,用于在获取针对待共享文件的共享指令之后,获取所述应用中预先内置的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The first shared installation webpage acquisition unit is configured to acquire a pre-built shared installation webpage in the application after acquiring the sharing instruction for the file to be shared; wherein, the shared installation webpage includes a download pointing to the file to be shared Link. 24.根据权利要求22所述的装置,其特征在于,所述共享指令获取模块,包括:24. The device according to claim 22, wherein the shared instruction acquisition module comprises: 第二共享指令获取单元,用于在检测到用于指示共享文件的操作时,获取针对待共享文件的共享指令;A second sharing instruction acquiring unit, configured to acquire a sharing instruction for the file to be shared when an operation for instructing to share the file is detected; 相应的,所述共享安装网页获取模块,包括:Correspondingly, the shared installation web page acquisition module includes: 第二共享安装网页获取单元,用于获取针对待共享文件的共享指令之后,展示文件选择界面,以指示用户选择待共享文件,其中,所述文件选择页面中包含所述第一移动设备所存储的可共享的文件;在待共享文件被选择完毕后,生成针对所述待共享文件的共享安装网页;其中,所述共享安装网页中包含指向所述待共享文件的下载链接。The second shared installation web page obtaining unit is used to display a file selection interface after obtaining the sharing instruction for the file to be shared, so as to instruct the user to select the file to be shared, wherein the file selection page includes the files stored in 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 pointing to the file to be shared. 25.根据权利要求18-24任意一项所述的装置,其特征在于,所述网络请求处理模块,包括:25. The device according to any one of claims 18-24, wherein 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 judging unit, configured to judge whether the network request is a preset first network request; 网络请求重定向单元,用于当判断出所述网络请求为预先设定的第一网络请求时,将所述网络请求进行重定向处理。The network request redirecting unit is configured to redirect the network request when it is determined that the network request is a preset first network request. 26.根据权利要求18-24任意一项所述的装置,其特征在于,所述网络请求处理模块,用于当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过设置所述第一移动设备的操作系统中的iptables的规则的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。26. The device according to any one of claims 18-24, wherein the network request processing module is configured to, when the current user name of the operating system of the first mobile device has administrator authority, pass The mode of setting the iptables rule in the operating system of the first mobile device intercepts and redirects the browser-based network request sent by the second mobile device. 27.根据权利要求18-24任意一项所述的装置,其特征在于,所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户名具有管理员权限时,通过挂载所编写的内核模块的方式,截获并重定向所述第二移动设备发送的基于浏览器的网络请求。27. The device according to any one of claims 18-24, wherein the network request processing module is configured to, when the current user name of the operating system of the first mobile device has administrator authority, by hanging By loading the written kernel module, the browser-based network request sent by the second mobile device is intercepted and redirected. 28.根据权利要求18-24任意一项所述的装置,其特征在于,还包括:28. The device according to any one of claims 18-24, further comprising: 页面展示模块,用于在获取针对待共享文件的共享指令后,展示包含所述第一移动设备自身的IP地址和访问方式的页面,以指示所述第二移动设备所对应用户在所述第二移动设备的浏览器内的地址栏内输入所述第一移动设备的IP地址;The page display module is configured to display a page containing the IP address and access method of the first mobile device itself after obtaining the sharing instruction for the file to be shared, so as to indicate that the user corresponding to the second mobile device is on the second mobile device. Enter the IP address of the first mobile device in the address bar of the browser of the second mobile device; 所述网络请求处理模块用于当所述第一移动设备的操作系统的当前用户名未具有管理员权限时,通过所述第一移动设备中内置的WEB模块获得所述第二移动设备的基于浏览器的网络请求。The network request processing module is used to obtain, through the built-in WEB module in the first mobile device, the information based on The browser's network request. 29.根据权利要求18-24任意一项所述的装置,其特征在于,所述网络连接模块,包括:29. The device according to any one of claims 18-24, wherein the network connection module includes: 选择单元,用于指示用户从请求网络共享的第二移动设备中选择可共享的第二移动设备;a selection unit, configured to instruct the user to select a shareable second mobile device from the second mobile devices requesting network sharing; 网络连接单元,用于与所选择的可共享的第二移动设备进行网络连接。The network connection unit is used for network connection with the selected second mobile device that can be shared. 30.根据权利要求18-24任意一项所述的装置,其特征在于,还包括:30. The device according to any one of claims 18-24, further comprising: 选择模块,用于与请求网络共享的第二移动设备进行网络连接之后,指示用户从处于网络连接状态的第二设备中选择可共享的第二移动设备;The selection module is configured to instruct the user to select a shareable second mobile device from the second devices in the network connection state after network connection with the second mobile device requesting network sharing; 所述网络请求处理模块,包括: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 shareable second mobile device, and if yes, redirect the browser-based network request sent by the second mobile device. 31.根据权利要求19所述的装置,其特征在于,所述第一移动设备所具有的网络共享功能包括:WLAN热点功能、蓝牙网络共享功能和USB网络共享功能中的至少一种。31. The apparatus according to claim 19, wherein the network sharing function of the first mobile device comprises: at least one of a WLAN hotspot function, a Bluetooth network sharing function and a USB network sharing function. 32.根据权利要求31所述的装置,其特征在于,所述网络共享功能启动模块用于判断是否存在WLAN热点功能,如果是,启动所述WLAN热点功能;否则,判断是否存在蓝牙网络共享功能,如果是,启动所述蓝牙网络共享功能;否则,启动所述USB网络共享功能。32. The device according to claim 31, wherein the network sharing function activation module is used to determine whether there is a WLAN hotspot function, and if so, start the WLAN hotspot function; otherwise, determine whether there is a Bluetooth network sharing function , if yes, start the bluetooth network sharing function; otherwise, start the USB network sharing function. 33.根据权利要求22所述的装置,其特征在于,所述待共享文件对应一个共享安装网页,其中,所述共享安装网页包含指向待共享文件的针对至少一种操作系统的下载链接,且每一下载链接指向针对于一种操作系统的待共享文件;33. The device according to claim 22, wherein the file to be shared corresponds to a shared installation webpage, wherein the shared installation webpage includes a download link for at least one operating system pointing to the file to be shared, and Each download link points to a file to be shared specific to an operating system; 所述待共享文件处理单元,包括:The file processing unit to be shared includes: 操作系统确定子单元,用于在接收到所述第二移动设备通过所述共享安装网页的下载链接发送的下载请求后,依据所述下载请求,确定所述第二移动设备所运行的第一操作系统;The operating system determination subunit is configured to, after receiving the download request sent by the second mobile device through the download link of the shared installation web page, determine the first operating system run by the second mobile device according to the download request. operating system; 待共享文件发送子单元,用于向所述第二移动设备发送所述下载请求对应的、针对于所述第一操作系统的待共享文件;The subunit for sending the file to be shared is configured to send the file to be shared corresponding to the download request and specific to the first operating system to the second mobile device; 或者,or, 所述待共享文件对应至少一个共享安装网页,其中,每一共享安装网页包含指向待共享文件的针对于一种操作系统的下载链接;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 pointing to the file to be shared; 所述共享安装网页发送单元,包括:The shared installation web page sending unit includes: 操作系统确定子单元,用于依据所述网络请求,确定所述第二移动设备运行的第一操作系统;An operating system determining subunit, configured to determine the first operating system running on the second mobile device according to the network request; 共享安装网页发送子单元,用于将所述第一操作系统对应的共享安装网页作为所述网络请求对应的请求结果并发送至所述第二移动设备。The shared installation webpage sending subunit is configured to send the shared installation webpage corresponding to the first operating system as a request result corresponding to the network request to the second mobile device. 34.一种移动设备,其特征在于,包括:权利要求18-33任意一项所述的文件共享装置。34. A mobile device, comprising: the file sharing device according to any one of claims 18-33.
CN201310577442.8A 2013-11-18 2013-11-18 File sharing method, device and mobile device Active CN104660624B (en)

Priority Applications (10)

Application Number Priority Date Filing Date Title
CN201310577442.8A CN104660624B (en) 2013-11-18 File sharing method, device and mobile device
US14/442,486 US10089094B2 (en) 2013-11-18 2014-05-20 File sharing method, device and mobile equipment
EP14853130.4A EP2922276B1 (en) 2013-11-18 2014-05-20 File sharing method, apparatus, and mobile device
KR1020157013581A KR101777305B1 (en) 2013-11-18 2014-05-20 File sharing method, device and mobile equipment
PT14853130T PT2922276T (en) 2013-11-18 2014-05-20 File sharing method, apparatus, and mobile device
DK14853130.4T DK2922276T3 (en) 2013-11-18 2014-05-20 FILE SHARING PROCEDURE, DEVICE, AND MOBILE DEVICE
ES14853130.4T ES2687920T3 (en) 2013-11-18 2014-05-20 Procedure, device and mobile device for file sharing
PCT/CN2014/077872 WO2015070582A1 (en) 2013-11-18 2014-05-20 File sharing method, apparatus, and mobile device
JP2015548186A JP6306606B2 (en) 2013-11-18 2014-05-20 File sharing method, apparatus and mobile device
TW103139972A TWI614614B (en) 2013-11-18 2014-11-18 File sharing method, device and mobile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310577442.8A CN104660624B (en) 2013-11-18 File sharing method, device and mobile device

Publications (2)

Publication Number Publication Date
CN104660624A CN104660624A (en) 2015-05-27
CN104660624B true CN104660624B (en) 2018-02-09

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135986A1 (en) * 2008-05-09 2009-11-12 Joikusoft Oy Ltd. Scalable wlan gateway
CN102064855A (en) * 2009-11-16 2011-05-18 龙旗科技(上海)有限公司 Human-computer interaction mode for supporting Bluetooth to share files by mobile terminal
WO2012129468A1 (en) * 2011-03-23 2012-09-27 Tappin Inc. System and method for sharing data from a local network to a remote device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009135986A1 (en) * 2008-05-09 2009-11-12 Joikusoft Oy Ltd. Scalable wlan gateway
CN102064855A (en) * 2009-11-16 2011-05-18 龙旗科技(上海)有限公司 Human-computer interaction mode for supporting Bluetooth to share files by mobile terminal
WO2012129468A1 (en) * 2011-03-23 2012-09-27 Tappin Inc. System and method for sharing data from a local network to a remote device

Similar Documents

Publication Publication Date Title
TWI614614B (en) File sharing method, device and mobile equipment
US11921996B2 (en) Information processing terminal and control method
EP2901659B1 (en) Systems and methods for sharing files among multiple terminals
US9104519B1 (en) Provisioning partner aware apps on sandboxed operating systems
WO2014194798A1 (en) Application sharing method and apparatus
JP2017501517A (en) Method, apparatus, and system for pushing an application program, and device
CN107040965B (en) Flow control method and device and mobile terminal
EP2901660A1 (en) Termininal interaction methods and related devices and systems
WO2014008864A1 (en) Method, apparatus, and system for sharing software among terminals
CN103838799A (en) Method, terminal device, cloud server and system for recommending installing software
US11502925B2 (en) Information processing terminal and control method
CN104468813A (en) Application program recommending method, device and system
US20140123277A1 (en) Mobile terminal apparatus, non-transitory computer readable mediums, signal processing method, document storage server, and document management system
CN107979577B (en) Method and device for terminal authentication
WO2016029639A1 (en) Method and device for downloading and pushing online resource to mobile terminal
WO2015070559A1 (en) Pushing method and device for application program
CA2930262C (en) Techniques to rate-adjust data usage with a virtual private network
CN108370500B (en) Optimized settings for wireless devices
KR20150057328A (en) Method for updating of application and apparatus for the same
CN104660624B (en) File sharing method, device and mobile device
EP2928158B1 (en) Distribution apparatus and distribution method
KR20130123149A (en) Method for data network access authentication and an electronic device thereof
CN103955472A (en) Downloaded file transmission method and device, and browser
CN104468475A (en) Information processing method and electronic equipment
WO2018014555A1 (en) Data transmission control method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Patentee after: CHENGDU KINGSOFT DIGITAL ENTERTAINMENT Co.,Ltd.

Address before: Unit 603E, 6th Floor, Main Building, No. 10, Keji 1st Road, Gangwan Avenue, Tangjiawan Town, Zhuhai City, Guangdong Province, 519015

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee before: CHENGDU KINGSOFT DIGITAL ENTERTAINMENT Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20241213

Address after: Room 201, No. 325 Qiandao Ring Road, Tangjiawan Town, High tech Zone, Zhuhai City, Guangdong Province 519080

Patentee after: Zhuhai Xishan Jushiyou Technology Co.,Ltd.

Country or region after: China

Patentee after: BEIJING KINGSOFT SOFTWARE Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee before: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Country or region before: China

Patentee before: CHENGDU KINGSOFT DIGITAL ENTERTAINMENT Co.,Ltd.