CN114465999A - File pulling method and device, electronic equipment and storage medium - Google Patents
File pulling method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114465999A CN114465999A CN202111577744.6A CN202111577744A CN114465999A CN 114465999 A CN114465999 A CN 114465999A CN 202111577744 A CN202111577744 A CN 202111577744A CN 114465999 A CN114465999 A CN 114465999A
- Authority
- CN
- China
- Prior art keywords
- application file
- file
- equipment
- information
- communication connection
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种文件拉取方法、装置、电子设备及存储介质。The present invention relates to the field of communication technologies, and in particular, to a file pulling method, device, electronic device and storage medium.
背景技术Background technique
目前,为了获取应用文件,最常用的方式是去官方网站进行下载,或是其他软件平台进行下载,但是通过官方网站下载或是其他软件平台下载,会存在安全漏洞插件或是版本不对应而导致文件下载出错的问题。At present, in order to obtain application files, the most common way is to go to the official website to download or download from other software platforms, but downloading through the official website or other software platforms will cause security vulnerabilities, plug-ins or incompatible versions. File download error.
在一情景中,一用户急需在当前系统设备中安装一个应用文件,然而用户并未找到对应版本的压缩包或者版本对应的应用文件,而正好有一设备中存有相关的应用文件,然而,在现有技术中尚无可将具有应用文件设备中的应用文件拉取至另一不具有应用文件设备中的方案。In a scenario, a user urgently needs to install an application file in the current system device, but the user does not find the compressed package of the corresponding version or the application file corresponding to the version, and happens to have a related application file in a device, however, in the In the prior art, there is no solution for pulling an application file from a device with an application file to another device without an application file.
发明内容SUMMARY OF THE INVENTION
本发明提供一种文件拉取方法、装置、电子设备及存储介质,用以解决现有技术中尚无可将存有应用文件设备中的应用文件拉取至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接传输至另一不具有应用文件的设备,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。The present invention provides a file pulling method, device, electronic device and storage medium, which are used to solve the problem that there is no problem in the prior art that an application file in a device that stores an application file can be pulled to another device that does not have an application file. Solution, as well as the trouble of downloading application files on the official website and the problem of downloading wrong files on other software platforms, so that the application files in the device with the application files can be directly transferred to another device without the application files, which is faster and more effective. Pull the application files to improve the user experience.
第一方面,本发明提供一种文件拉取方法,应用于作为文件拉取方的第一设备,包括:In a first aspect, the present invention provides a file pulling method, which is applied to a first device serving as a file pulling party, including:
与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;establishing a communication connection with a second device; wherein, the second device is a device that saves the file to be pulled;
生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;generating access request information and sending it to the second device; wherein the access request is used to request to obtain application file description information;
接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;receiving application file description information of the second device; wherein the application file description information of the second device is used to describe the identification information of the application file installed in the second device;
基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。A target application file is determined based on the application file description information of the second device, and the target application file is pulled from the second device.
进一步,所述与第二设备之间建立通信连接,包括:Further, establishing a communication connection with the second device includes:
与第二设备之间建立物理连接,确定与所述第二设备之间的通信链路连通;establishing a physical connection with the second device, and determining that the communication link with the second device is connected;
基于第一设备的标识信息与第二设备的标识信息,建立与所述第二设备之间的通信连接。A communication connection with the second device is established based on the identification information of the first device and the identification information of the second device.
进一步,所述基于第一设备的标识信息与第二设备的标识信息,建立与所述第二设备之间的通信连接,包括:Further, establishing a communication connection with the second device based on the identification information of the first device and the identification information of the second device includes:
基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;A two-dimensional code is generated and displayed based on the identification information of the first device, so that the second device acquires the identification information of the first device based on the two-dimensional code, and sends the first device to the first device based on the two-dimensional code. sending the identification information of the second device;
基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;Send a first communication connection establishment request to the second device based on the identification information of the second device;
接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;receiving a second communication connection establishment request sent by the second device; wherein the second communication connection establishment request is initiated by the second device based on the identification information of the first device;
在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。On the premise that both the first communication connection establishment request and the second communication connection establishment request are set successfully, a bidirectional communication connection with the second device is established.
进一步,应用于保存有待拉取文件的第二设备,方法包括:Further, applied to the second device for saving the file to be pulled, the method includes:
与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;establishing a communication connection with a first device; wherein, the first device is a file puller device;
从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;Receive access request information from the first device; wherein, the access request is used to request to obtain application file description information;
基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;Generate application file description information based on the access request information and send it to the first device; wherein the application file description information is used to describe the identification information of the application file installed in the second device;
接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。A pull request from the first device is received, a location of a target application file is determined based on the pull request, and the target application file is transmitted to the first device.
第二方面,本发明还提供了一种文件拉取装置,包括作为文件拉取方的第一设备,所述第一设备包括:第一连接模块、第一发送模块、第一接收模块、确定模块,其中:In a second aspect, the present invention also provides a file pulling device, including a first device serving as a file pulling party, the first device including: a first connection module, a first sending module, a first receiving module, a module, where:
第一连接模块,用于与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;a first connection module, configured to establish a communication connection with a second device; wherein, the second device is a device that saves a file to be pulled;
第一发送模块,用于生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;a first sending module, configured to generate access request information and send it to the second device; wherein, the access request is used to request to obtain application file description information;
第一接收模块,用于接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;a first receiving module, configured to receive the application file description information of the second device; wherein, the application file description information of the second device is used to describe the identification information of the application file installed in the second device;
确定模块,用于基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件;a determining module, configured to determine a target application file based on the application file description information of the second device, and pull the target application file from the second device;
进一步,所述文件拉取装置包括保存有待拉取文件的第二设备,所述第二设备包括:第二连接模块、第二接收模块、第二发送模块、传输模块,其中:Further, the file pulling device includes a second device that stores the file to be pulled, and the second device includes: a second connection module, a second receiving module, a second sending module, and a transmission module, wherein:
第二连接模块,用于与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;a second connection module, configured to establish a communication connection with a first device; wherein, the first device is a file puller device;
第二接收模块,用于从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;a second receiving module, configured to receive access request information from the first device; wherein, the access request is used to request to obtain application file description information;
第二发送模块,用于基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;A second sending module, configured to generate application file description information based on the access request information and send it to the first device; wherein the application file description information is used to describe the identification information of the application file installed in the second device ;
传输模块,用于接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。A transmission module, configured to receive a pull request from the first device, determine a location of a target application file based on the pull request, and transmit the target application file to the first device.
进一步,所述文件拉取装置包括作为文件拉取方的第一设备与保存有待拉取文件的第二设备,所述第一设备与所述第二设备之间通信连接;Further, the file pulling device includes a first device serving as a file pulling party and a second device storing the file to be pulled, and the first device and the second device are in communication connection;
所述第一设备,用于实现与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;The first device is used to establish a communication connection with a second device; wherein, the second device is a device that saves the file to be pulled;
生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;generating access request information and sending it to the second device; wherein the access request is used to request to obtain application file description information;
接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;receiving application file description information of the second device; wherein the application file description information of the second device is used to describe the identification information of the application file installed in the second device;
基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件;Determine a target application file based on the application file description information of the second device, and pull the target application file from the second device;
所述第二设备,用于实现与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;The second device is configured to establish a communication connection with the first device; wherein, the first device is a file puller device;
从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;Receive access request information from the first device; wherein, the access request is used to request to obtain application file description information;
基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;Generate application file description information based on the access request information and send it to the first device; wherein the application file description information is used to describe the identification information of the application file installed in the second device;
接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。A pull request from the first device is received, a location of a target application file is determined based on the pull request, and the target application file is transmitted to the first device.
第三方面,本发明还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述文件拉取方法的步骤。In a third aspect, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, when the processor executes the program, the processor implements any of the above Describe the steps of the file pull method.
第四方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述文件拉取方法的步骤。In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of any one of the above file pulling methods.
第五方面,本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述文件拉取方法的步骤。In a fifth aspect, the present invention further provides a computer program product, including a computer program, which implements the steps of any one of the above file pulling methods when the computer program is executed by a processor.
本发明提供的一种文件拉取方法、装置、电子设备及存储介质,应用于作为文件拉取方的第一设备,与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件,解决了现有技术中尚无可将存有应用文件设备中的应用文件传输至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接拉取至另一不具有应用文件设备中,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。A file pulling method, device, electronic device and storage medium provided by the present invention are applied to a first device serving as a file pulling party to establish a communication connection with a second device; wherein, the second device is a storage A device for which a file is to be pulled; generating access request information and sending it to the second device; wherein, the access request is used to request to obtain application file description information; receiving application file description information of the second device; wherein, the first The application file description information of the second device is used to describe the identification information of the application file installed in the second device; the target application file is determined based on the application file description information of the second device, and the target application file is pulled from the second device. The target application file solves the problem that there is no solution in the prior art to transfer the application file in the device with the application file to another device that does not have the application file, and the trouble of downloading the application file on the official website and other software platforms. The problem of downloading the wrong file allows the application file in the device with the application file to be directly pulled to another device that does not have the application file, so that the application file can be pulled more quickly and effectively, and the user experience is improved.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the accompanying 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 the For some embodiments of the invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明一个实施例提供的一种文件拉取方法的流程示意图;1 is a schematic flowchart of a file pulling method provided by an embodiment of the present invention;
图2是本发明另一个实施例提供的一种文件拉取方法的流程示意图;2 is a schematic flowchart of a file pulling method provided by another embodiment of the present invention;
图3是本发明另一个实施例提供的一种文件拉取方法的流程示意图;3 is a schematic flowchart of a file pulling method provided by another embodiment of the present invention;
图4是本发明另一个实施例提供的一种文件拉取方法的检测效果图;4 is a detection effect diagram of a file pulling method provided by another embodiment of the present invention;
图5是本发明另一个实施例提供的一种文件拉取方法的效果展示图;5 is an effect display diagram of a file pulling method provided by another embodiment of the present invention;
图6是本发明另一个实施例提供的一种文件拉取方法的效果展示图;6 is an effect display diagram of a file pulling method provided by another embodiment of the present invention;
图7是本发明又一个实施例提供的一种文件拉取方法的流程示意图;7 is a schematic flowchart of a file pulling method provided by another embodiment of the present invention;
图8是本发明另一个实施例提供的一种文件拉取装置的结构框图;8 is a structural block diagram of a file pulling device provided by another embodiment of the present invention;
图9是本发明另一个实施例提供的一种文件拉取装置的结构框图;9 is a structural block diagram of a file pulling device provided by another embodiment of the present invention;
图10是本发明另一个实施例提供的一种文件拉取电子设备的结构框图。FIG. 10 is a structural block diagram of an electronic device for pulling files according to another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
图1是本实施例提供的一种文件拉取方法的流程示意图,参见图1,应用于作为文件拉取方的第一设备,方法包括:FIG. 1 is a schematic flowchart of a file pulling method provided by this embodiment. Referring to FIG. 1 , the method is applied to a first device serving as a file pulling party. The method includes:
步骤101:与第二设备之间建立通信连接;Step 101: establish a communication connection with the second device;
其中,所述第二设备为保存有待拉取文件的设备,为不同于第一设备的其他任意具有显示屏并且支持网页浏览的电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机、笔记本电脑等,其中,电子设备可以是ios系统,也可以是Android系统,在此,不对电子设备的系统作任何限定。Wherein, the second device is a device that saves files to be pulled, and is any other electronic device different from the first device that has a display screen and supports web browsing, including but not limited to smart phones, tablet computers, laptop portable devices A computer, a desktop computer, a notebook computer, etc., wherein the electronic device may be an ios system or an Android system. Here, no limitation is imposed on the system of the electronic device.
可以理解的是,第一设备为不存在有待拉取文件的设备,作为文件拉取的执行主体,需要与保存有待拉取文件的第二设备之间建立通信连接,并从第二设备中拉取待拉取文件,待拉取文件具体为应用文件;第一设备可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于台式计算机、笔记本电脑、平板电脑、智能手机、膝上型便携计算机等,其中,电子设备可以是ios系统,也可以是Android系统,在此,不对电子设备的系统作任何限定。It can be understood that the first device is a device that does not have the file to be pulled. As the execution body of the file pulling, it needs to establish a communication connection with the second device that saves the file to be pulled, and pull the file from the second device. Get the file to be pulled, and the file to be pulled is specifically an application file; the first device may be various electronic devices that have a display screen and support web browsing, including but not limited to desktop computers, notebook computers, tablet computers, smart phones, laptops, etc. For upper-type portable computers, etc., the electronic device may be an ios system or an Android system. Here, the system of the electronic device is not limited in any way.
具体地,第一设备与第二设备之间建立物理连接,确定与所述第二设备之间的通信链路连通;基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。Specifically, a physical connection is established between the first device and the second device, and the communication link with the second device is determined to be connected; a two-dimensional code is generated and displayed based on the identification information of the first device, so that the first device is The second device obtains the identification information of the first device based on the two-dimensional code, and sends the identification information of the second device to the first device based on the two-dimensional code; and sends the identification information of the second device to the first device based on the identification information of the second device. The second device sends a first communication connection establishment request; receives a second communication connection establishment request sent by the second device; wherein, the second communication connection establishment request is based on the second device based on the first device. The identification information is initiated; on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, a two-way communication connection with the second device is established.
例如,电脑端不存在名为A的应用文件,而手机端已下载名为A的应用文件并存储于手机默认存储文件夹中。电脑端为了获取手机端中名为A的应用文件,需与手机端之间建立通信连接,将电脑端与手机端之间建立物理连接,确保电脑与手机端之间的通信链路连通,电脑端根据自身的标识信息生成二维码并于显示屏上展示,手机端使用扫描功能对电脑端生成的二维码进行识别,获取电脑端的标识信息,在确定电脑端的标识信息后,手机端基于二维码向电脑端发送手机端的标识信息;基于手机端标识信息,电脑端向手机端发送第一通信连接建立请求,手机端接收第一通信连接建立请求,并基于电脑端的标识信息发送第二通信连接建立请求至电脑端,电脑端接收手机端发送的第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下电脑端建立与手机端之间的双向通信连接。For example, the application file named A does not exist on the computer, but the application file named A has been downloaded on the mobile phone and stored in the default storage folder of the mobile phone. In order to obtain the application file named A in the mobile terminal, the computer terminal needs to establish a communication connection with the mobile terminal, establish a physical connection between the computer terminal and the mobile terminal, and ensure that the communication link between the computer and the mobile terminal is connected. The terminal generates a two-dimensional code according to its own identification information and displays it on the display screen. The mobile terminal uses the scanning function to identify the two-dimensional code generated by the computer terminal, and obtains the identification information of the computer terminal. After determining the identification information of the computer terminal, the mobile terminal based on The two-dimensional code sends the identification information of the mobile phone to the computer; based on the identification information of the mobile, the computer sends the first communication connection establishment request to the mobile phone, the mobile phone receives the first communication connection establishment request, and sends a second communication connection establishment request based on the identification information of the computer. The communication connection establishment request is sent to the computer, and the computer receives the second communication connection establishment request sent by the mobile phone. On the premise that both the first communication connection establishment request and the second communication connection establishment request are set successfully Two-way communication connection between.
步骤102:生成访问请求信息并发送给所述第二设备;Step 102: generate access request information and send it to the second device;
其中,所述访问请求用于请求获取应用文件描述信息。Wherein, the access request is used for requesting to obtain application file description information.
可以理解的是,针对于不同系统的电子设备,应用文件的格式是不一样的,例如,IPA文件为ios操作系统使用的一种应用程序包文件格式,IPA文件实质是一个zip压缩包,包含3个组件:payload目录下的app目录,这个是软件的主程序;iTunesArtwork,实质是一个无后缀名的png图片,用来在iTunes中显示图标;iTunesMetadata.plist,记录购买者信息、售价等数据。IPA解包后并非直接放置于Applications目录下,而是放在一串由随机码构成的目录下,其作用在于,只允许这个软件运行在一个特定的沙盒中,不能干扰其他软件。因此,那串随机码目录下,除了IPA本身的三个组件之外,还有三个目录:Library,一般用于储存设置文件等数据;Documents,存储数据,多用于保存存档;tmp,临时文件夹;又如,APK文件为Android操作系统使用的一种应用程序包文件格式,用于分发和安装移动应用及中间件,apk文件其实是一个zip文件,只是后缀改变了而已。一个apk文件中包含:META-INF文件夹,用于存储应用的证书和签名信息;res文件夹用于存放不能打包进resources.arsc的一些资源文件;AndroidManifest.xml文件,为一个传统的Android清单文件,用于描述该应用程序的名字、版本号、所需权限、API版本、组件等等信息;classes.dex文件,为应用的整个代码逻辑;其中,resources.arsc为程序的语言文件。It can be understood that the format of the application file is different for electronic devices of different systems. For example, the IPA file is an application package file format used by the ios operating system. The IPA file is essentially a zip compressed package containing 3 components: the app directory under the payload directory, which is the main program of the software; iTunesArtwork, which is essentially a png image without a suffix, used to display icons in iTunes; iTunesMetadata.plist, which records buyer information, selling price, etc. data. After the IPA is unpacked, it is not directly placed in the Applications directory, but in a directory composed of random codes. Its function is to only allow this software to run in a specific sandbox and not interfere with other software. Therefore, in the random code directory, in addition to the three components of IPA itself, there are three directories: Library, generally used to store data such as setting files; Documents, to store data, mostly used to save archives; tmp, temporary folder ; Another example, the APK file is an application package file format used by the Android operating system to distribute and install mobile applications and middleware. The apk file is actually a zip file, but the suffix is changed. An apk file contains: META-INF folder, which is used to store the certificate and signature information of the application; res folder is used to store some resource files that cannot be packaged into resources.arsc; AndroidManifest.xml file, which is a traditional Android manifest The file is used to describe the name, version number, required permissions, API version, components and other information of the application; the classes.dex file is the entire code logic of the application; among them, resources.arsc is the language file of the program.
需要进一步说明的是,应用文件描述信息为描述应用文件的标识信息,即应用文件的身份信息,可以是应用文件名称信息、图标信息等,在此不作具体限定。It should be further noted that the application file description information is identification information describing the application file, that is, the identity information of the application file, which may be application file name information, icon information, etc., which is not specifically limited here.
具体地,第一设备在与第二设备建立通信连接之后,生成用于获取应用文件描述信息的访问请求信息,并发送给所述第二设备。Specifically, after the first device establishes a communication connection with the second device, the access request information for acquiring the description information of the application file is generated and sent to the second device.
例如,在电脑端与手机端之间建立通信连接之后,电脑端为了获取手机端中名为A的应用文件,生成用于请求获取应用文件A描述信息的访问请求信息,并将访问请求信息发送给手机端。For example, after establishing a communication connection between the computer and the mobile phone, in order to obtain the application file named A in the mobile phone, the computer generates access request information for requesting the description information of the application file A, and sends the access request information to the mobile terminal.
步骤103:接收第二设备的应用文件描述信息;Step 103: Receive application file description information of the second device;
其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息,应用文件的标识信息为应用文件的身份信息,可以是应用文件对应的名称,图标以及身份代码等,在此不作具体限定。Wherein, the application file description information of the second device is used to describe the identification information of the application file installed in the second device, and the identification information of the application file is the identification information of the application file, which can be the name, icon and Identity codes, etc., are not specifically limited here.
具体地,在第一设备生成用于获取应用文件描述信息的访问请求信息,并发送给第二设备之后,第二设备基于第一设备发送的访问请求信息生成应用文件描述信息并发送给第一设备,第一设备接收第二设备发送的应用文件描述信息。Specifically, after the first device generates the access request information for acquiring the application file description information and sends it to the second device, the second device generates the application file description information based on the access request information sent by the first device and sends it to the first device device, the first device receives the application file description information sent by the second device.
例如,电脑端生成用于获取应用文件A描述信息的访问请求信息,并发送给手机端之后,手机端基于电脑端发送的访问请求信息生成应用文件A描述信息,即应用文件A的名称或是其图标,发送给电脑端,电脑端接收手机端发送的应用文件A名称或其图标等应用文件A的描述信息。For example, after the computer terminal generates the access request information for obtaining the description information of the application file A, and sends it to the mobile terminal, the mobile terminal generates the application file A description information based on the access request information sent by the computer terminal, that is, the name of the application file A or Its icon is sent to the computer terminal, and the computer terminal receives the description information of the application file A such as the name of the application file A or its icon sent by the mobile terminal.
步骤104:基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。Step 104: Determine a target application file based on the application file description information of the second device, and pull the target application file from the second device.
其中,目标应用文件为用户所需的应用文件,是第一设备中不存在,而第二设备中所存在的应用文件。The target application file is an application file required by the user, which is an application file that does not exist in the first device but exists in the second device.
需要进一步说明的是,从所述第二设备拉取所述目标应用文件的方式为,第一设备将第二设备的应用文件描述信息,即应用文件的名称、图标或者其身份代码呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,即可从第二设备中拉取目标应用文件。It should be further explained that the method of pulling the target application file from the second device is that the first device presents the application file description information of the second device, that is, the name, icon or identity code of the application file in the first device. On the display screen of one device, the target application file can be pulled from the second device by manually clicking, clicking with a mouse, or clicking on the description information of the target application file with a stylus pen.
此处,拉取这一执行动作,是将第二设备中的应用文件以原有版本的形式复制到第一设备中,并非是将第二设备中的应用文件拉取至第一设备中后,而第二设备中的应用文件就不复存在了。Here, the execution action of pulling is to copy the application file in the second device to the first device in the form of the original version, not to pull the application file in the second device to the first device. , and the application file in the second device no longer exists.
具体地,在第一设备接收到第二设备的应用文件描述信息之后,将应用文件描述信息呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,从而实现从第二设备中拉取所述目标应用文件至第一设备中。Specifically, after the first device receives the application file description information of the second device, the application file description information is presented on the display screen of the first device, and the target application file is clicked manually, mouse click, or touch screen pen. description information, so as to pull the target application file from the second device to the first device.
例如,在电脑端接收到手机端的应用文件描述信息之后,将应用文件描述信息呈现在电脑端的显示屏幕上,通过手动点击、鼠标点击或者触屏笔点击应用文件A的描述信息,如应用文件A的名称、图标或是身份代码,从而实现从手机端中拉取应用文件A至电脑端。For example, after the computer terminal receives the application file description information of the mobile phone terminal, the application file description information is presented on the display screen of the computer terminal, and the description information of application file A is clicked by manual click, mouse click or touch screen pen, such as application file A. name, icon or identity code, so as to pull the application file A from the mobile phone to the computer.
本实施例提供了一种文件拉取方法,应用于作为文件拉取方的第一设备,通过与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件,解决了现有技术中尚无可将存有应用文件设备中的应用文件传输至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接拉取至另一不具有应用文件设备中,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。This embodiment provides a file pulling method, which is applied to a first device as a file pulling party, and establishes a communication connection with a second device; wherein the second device is a device that saves a file to be pulled. ; Generate access request information and send it to the second device; wherein, the access request is used to request to obtain application file description information; Receive the application file description information of the second device; wherein, the application file description of the second device The information is used to describe the identification information of the application file installed in the second device; the target application file is determined based on the application file description information of the second device, and the target application file is pulled from the second device, solving the problem of There is no solution in the prior art to transfer the application file in the device with the application file to another device without the application file, and the trouble of downloading the application file on the official website and the problem of downloading the wrong file on other software platforms, The application file in the device with the application file can be directly pulled to another device without the application file, so that the application file can be pulled more quickly and effectively, and the user experience is improved.
基于上述实施例的内容,在本实施例中,所述步骤101,应用于作为文件拉取方的第一设备,与第二设备之间建立通信连接,具体可通过如下方式实现:Based on the content of the foregoing embodiment, in this embodiment, the
与第二设备之间建立物理连接,确定与所述第二设备之间的通信链路连通;establishing a physical connection with the second device, and determining that the communication link with the second device is connected;
基于第一设备的标识信息与第二设备的标识信息,建立与所述第二设备之间的通信连接。A communication connection with the second device is established based on the identification information of the first device and the identification information of the second device.
其中,第一设备的标识信息为登录第一设备的用户的身份信息,以及第一设备的IP信息,第二设备的标识信息为第二设备的身份信息。Wherein, the identification information of the first device is the identification information of the user logging in to the first device, and the IP information of the first device, and the identification information of the second device is the identification information of the second device.
可以理解的是,物理连接为利用物体的物理特性对相关物体进行连接的手段,一般指用介质将两个单位的物体进行连接,如用电线、电波等方式;通信连接则是通过信号的传输交互,在连接的设备之间构成通讯,通信连接包括有线连接和无线连接。It can be understood that physical connection is a means of using the physical characteristics of objects to connect related objects, generally referring to the use of media to connect two units of objects, such as wires, radio waves, etc.; communication connection is through the transmission of signals. Interaction constitutes communication between connected devices, and communication connections include wired connections and wireless connections.
具体地,在第一设备与第二设备建立物理连接之前,在第一设备上安装中转程序,中转程序安装完成后,在第一设备与第二设备之间通过USB建立物理连接,并使用第一设备上的中转程序检测第一设备与第二设备之间的通信链路是否连通,在第一设备与第二设备之间的通信链路连通的情况下,基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。Specifically, before the physical connection between the first device and the second device is established, a transfer program is installed on the first device. After the installation of the transfer program is completed, a physical connection is established between the first device and the second device through USB, and the first device is used A relay program on a device detects whether the communication link between the first device and the second device is connected. and displaying the two-dimensional code, so that the second device obtains the identification information of the first device based on the two-dimensional code, and sends the identification information of the second device to the first device based on the two-dimensional code; Send a first communication connection establishment request to the second device based on the identification information of the second device; receive a second communication connection establishment request sent by the second device; wherein the second communication connection establishment request is the The second device is initiated based on the identification information of the first device; on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, establish a connection between the second device and the second device. two-way communication connection.
其中,中转程序为应用安装包,是一个可执行文件,类似安卓的exe文件或者ios的dmg文件。The transfer program is an application installation package, which is an executable file, similar to an Android exe file or an ios dmg file.
举例来说,在电脑端与手机端之间建立物理连接之前,在电脑端上安装中转程序,中转程序安装完成后,在电脑端与手机端之间通过USB建立物理连接,并使用中转程序检测电脑与手机端之间的通信链路是否连通,在电脑端与手机端之间的通信链路连通的情况下,中转程序执行过程中会出现手机端的设备id,在此基础上,基于电脑端的用户信息和IP生成二维码并展示,以使得手机端基于二维码获取电脑端的用户信息和IP,并基于所述二维码向电脑端发送手机端的身份信息,譬如手机号、手机ID等;电脑端基于手机端的身份信息向手机端发送第一通信连接建立请求;手机端接收电脑端发送的第一通信连接建立请求,手机端基于电脑端的用户信息和IP向电脑端发送第二通信连接建立请求,电脑端接收手机端发送的第二通信连接建立请求;在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立电脑端与手机端之间的双向通信连接。For example, before establishing a physical connection between the computer and the mobile phone, install the transfer program on the computer. After the transfer program is installed, establish a physical connection between the computer and the mobile phone through USB, and use the transfer program to detect Whether the communication link between the computer and the mobile phone is connected, if the communication link between the computer and the mobile phone is connected, the device id of the mobile phone will appear during the execution of the transfer program. The user information and IP generate a QR code and display it, so that the mobile terminal can obtain the user information and IP of the computer terminal based on the QR code, and send the identity information of the mobile terminal to the computer terminal based on the QR code, such as mobile phone number, mobile phone ID, etc. The computer terminal sends a first communication connection establishment request to the mobile terminal based on the identity information of the mobile terminal; the mobile terminal receives the first communication connection establishment request sent by the computer terminal, and the mobile terminal sends a second communication connection to the computer terminal based on the user information and IP of the computer terminal. To establish a request, the computer terminal receives the second communication connection establishment request sent by the mobile terminal; on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, a connection between the computer terminal and the mobile terminal is established. two-way communication connection.
本实施例提供了一种文件拉取方法,应用于作为文件拉取方的第一设备,与第二设备之间建立物理连接,确定与所述第二设备之间的通信链路连通;基于第一设备的标识信息与第二设备的标识信息,建立与所述第二设备之间的通信连接,通过建立物理连接以及中转程序检测,保证第一设备与第二设备连接的有效性,并通过两设备之间相互提供标识信息,确保连接的安全性,防止两设备或是两设备之一存在安全漏洞而导致后续进行文件拉取的不安全或是文件拉取出错导致的文件拉取不成功的问题,实现更有效、更安全地进行文件的拉取,提升了用户体验感。This embodiment provides a file pulling method, which is applied to a first device as a file pulling party, establishes a physical connection with a second device, and determines that the communication link with the second device is connected; based on The identification information of the first device and the identification information of the second device, establish a communication connection with the second device, and ensure the validity of the connection between the first device and the second device by establishing a physical connection and relaying program detection, and By providing identification information between the two devices, the security of the connection is ensured, and the security loopholes in the two devices or one of the two devices are prevented, which may lead to the insecurity of subsequent file pulling or the failure of file pulling caused by the wrong file pulling. The successful problem realizes more efficient and safer file pulling, and improves the user experience.
基于上述实施例的内容,在本实施例中,所述基于第一设备的标识信息与第二设备的标识信息,建立与所述第二设备之间的通信连接,具体包括:Based on the content of the foregoing embodiment, in this embodiment, establishing a communication connection with the second device based on the identification information of the first device and the identification information of the second device specifically includes:
基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;A two-dimensional code is generated and displayed based on the identification information of the first device, so that the second device acquires the identification information of the first device based on the two-dimensional code, and sends the first device to the first device based on the two-dimensional code. sending the identification information of the second device;
基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;Send a first communication connection establishment request to the second device based on the identification information of the second device;
接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;receiving a second communication connection establishment request sent by the second device; wherein the second communication connection establishment request is initiated by the second device based on the identification information of the first device;
在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。On the premise that both the first communication connection establishment request and the second communication connection establishment request are set successfully, a bidirectional communication connection with the second device is established.
具体地,第二设备通过自带的扫描设备对第一设备的标识信息生成的二维码进行扫描,可识别到第一设备的标识信息,同时第一设备能够在第二设备扫描二维码时获取第二设备的标识信息,根据相互获取对方设备的标识信息,判断对方设备的安全性,在确认第二设备的标识信息为安全后,第一设备向所述第二设备发送第一通信连接建立请求,第二设备接收第一设备发送的第一通信连接请求之后,且第二设备确认了第一设备的标识信息为安全之后,第二设备向第一设备发送第二通信连接建立请求,第一设备接收第二设备发送的第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。Specifically, the second device scans the two-dimensional code generated by the identification information of the first device through its own scanning device, and can identify the identification information of the first device, and at the same time, the first device can scan the two-dimensional code on the second device. When the identification information of the second device is obtained, the security of the other device is determined according to the identification information of the other device obtained from each other. After confirming that the identification information of the second device is safe, the first device sends the first communication to the second device. A connection establishment request, after the second device receives the first communication connection request sent by the first device, and after the second device confirms that the identification information of the first device is safe, the second device sends a second communication connection establishment request to the first device , the first device receives the second communication connection establishment request sent by the second device, and on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, establishes a communication connection with the second device. Two-way communication connection.
举例来说,手机端通过自带的摄像头扫描电脑端根据用户信息和IP生成的二维码,识别出电脑端的用户信息和IP,在手机端扫描二维码的同时,电脑端也会接收到手机端的身份信息,譬如手机号、手机ID等,手机端和电脑端通过相互获取对方的标识信息即可判断对方设备是否安全并进行通信连接的建立,电脑端在确定手机端的身份信息为安全后,电脑端向手机端发送第一通信连接建立请求,手机端接收到电脑端发送的第一连接建立请求,且手机端确认了电脑端用户信息和IP为安全之后,手机端向电脑端发送第二通信连接建立请求,电脑端接收到手机端发送的第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立电脑端与手机端之间的双向通信连接。For example, the mobile phone scans the QR code generated by the computer based on the user information and IP through the built-in camera to identify the user information and IP on the computer. When the mobile phone scans the QR code, the computer will also receive The identity information of the mobile terminal, such as mobile phone number, mobile ID, etc., the mobile terminal and the computer terminal can determine whether the other party's device is safe and establish a communication connection by obtaining each other's identification information. After the computer terminal determines that the identity information of the mobile terminal is safe , the computer terminal sends the first communication connection establishment request to the mobile terminal, the mobile terminal receives the first connection establishment request sent by the computer terminal, and after the mobile terminal confirms that the user information and IP of the computer terminal are safe, the mobile terminal sends the first connection establishment request to the computer terminal. Two communication connection establishment requests, the computer terminal receives the second communication connection establishment request sent by the mobile terminal, and on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, the computer terminal and the mobile terminal are established. Two-way communication connection between.
本实施例提供了一种文件拉取方法,应用于作为文件拉取方的第一设备,基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接,保证第一设备与第二设备连接的有效性,并通过两设备之间相互提供标识信息,确保连接的安全性,防止两设备或是两设备之一存在安全漏洞而导致后续进行文件拉取的不安全或是文件拉取出错导致的文件拉取不成功的问题,实现更有效、更安全地进行文件的拉取,提升了用户体验感。This embodiment provides a file pulling method, which is applied to a first device as a file pulling party, and generates and displays a two-dimensional code based on identification information of the first device, so that the second device is based on the two-dimensional code. code to obtain the identification information of the first device, and send the identification information of the second device to the first device based on the two-dimensional code; send the first device to the second device based on the identification information of the second device a communication connection establishment request; receiving a second communication connection establishment request sent by the second device; wherein the second communication connection establishment request is initiated by the second device based on the identification information of the first device; On the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, establish a two-way communication connection with the second device to ensure the validity of the connection between the first device and the second device, And the identification information is provided between the two devices to ensure the security of the connection, and prevent the security loopholes in the two devices or one of the two devices, which may lead to the insecurity of the subsequent file pulling or the file pulling caused by the wrong file pulling. Unsuccessful problems, pull files more effectively and safely, and improve the user experience.
图2是另一个实施例提供的一种文件拉取方法的流程示意图,参见图2,应用于保存有待拉取文件的第二设备,方法包括:FIG. 2 is a schematic flowchart of a file pulling method provided by another embodiment. Referring to FIG. 2 , the method is applied to a second device that saves a file to be pulled, and the method includes:
步骤201:与第一设备之间建立通信连接;Step 201: establish a communication connection with the first device;
其中,所述第一设备为文件拉取方设备;Wherein, the first device is a file puller device;
具体地,保存有待拉取文件的第二设备与第一设备之间建立物理连接,确定与所述第一设备之间的通信链路连通;第二设备扫描第一设备生成的二维码,获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送自身的标识信息;第一设备基于第二设备的标识信息向所述第二设备发送第一通信连接建立请求,第二设备接收第一设备发送的第一通信连接建立请求,之后,第二设备根据第一设备的标识信息向第一设备发送第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立第二设备与第一设备之间的双向通信连接。Specifically, a physical connection is established between the second device that stores the file to be pulled and the first device, and the communication link with the first device is determined to be connected; the second device scans the two-dimensional code generated by the first device, Acquire the identification information of the first device, and send its own identification information to the first device based on the two-dimensional code; the first device sends the first communication connection to the second device based on the identification information of the second device To establish a request, the second device receives the first communication connection establishment request sent by the first device, and then the second device sends a second communication connection establishment request to the first device according to the identification information of the first device. After the first communication connection establishment request On the premise that the second communication connection establishment request is successfully set, a bidirectional communication connection between the second device and the first device is established.
举例来说,手机端与电脑端之间通过usb建立物理连接,确定与电脑端之间的通信链路连通;手机端扫描电脑端生成的二维码,获取电脑端的用户信息和IP,并基于所述二维码向电脑端发送自身的身份信息;电脑端基于手机端的身份信息向手机端发送第一通信连接建立请求,手机端接收电脑端发送的第一通信连接建立请求之后,手机端根据电脑端的用户信息和IP向电脑端发送第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立手机端与电脑端之间的双向通信连接。For example, a physical connection is established between the mobile phone and the computer through usb, and the communication link with the computer is determined; the mobile phone scans the QR code generated by the computer to obtain the user information and IP of the computer. The two-dimensional code sends its own identity information to the computer; the computer sends a first communication connection establishment request to the mobile phone based on the identity information of the mobile phone, and after the mobile phone receives the first communication connection establishment request sent by the computer, the mobile phone The user information and IP of the computer end send a second communication connection establishment request to the computer end, and on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, a two-way communication between the mobile phone end and the computer end is established. communication connection.
步骤202:从所述第一设备接收访问请求信息;Step 202: Receive access request information from the first device;
其中,所述访问请求用于请求获取应用文件描述信息;Wherein, the access request is used to request to obtain application file description information;
需要进一步说明的是,应用文件描述信息为描述应用文件的标识信息,即应用文件的身份信息,可以是应用文件名称信息、图标信息等,在此不作具体限定。It should be further noted that the application file description information is identification information describing the application file, that is, the identity information of the application file, which may be application file name information, icon information, etc., which is not specifically limited here.
具体地,保存有待拉取文件的第二设备与第一设备建立通信连接之后,接收第一设备发送的用于获取应用文件描述信息的访问请求信息。Specifically, after the second device storing the to-be-pulled file establishes a communication connection with the first device, it receives the access request information sent by the first device for acquiring the description information of the application file.
举例来说,在手机端与电脑端建立通信连接之后,电脑端为了获取手机端上的名为A的应用文件,就需要生成用于请求获取应用文件A的描述信息的访问请求信息,即请求获取应用文件A的描述信息这一访问请求信息,并将访问请求信息发送给手机端,手机端接收电脑端发送的访问请求信息。For example, after the mobile terminal and the computer terminal establish a communication connection, in order to obtain the application file named A on the mobile terminal, the computer terminal needs to generate access request information for requesting to obtain the description information of the application file A, that is, the request The access request information of the description information of the application file A is obtained, and the access request information is sent to the mobile terminal, and the mobile terminal receives the access request information sent by the computer terminal.
步骤203:基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;Step 203: Generate application file description information based on the access request information and send it to the first device;
其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;应用文件的标识信息为应用文件的身份信息,可以是应用文件对应的名称,图标以及身份代码等,在此不作具体限定。Wherein, the application file description information is used to describe the identification information of the application file installed in the second device; the identification information of the application file is the identity information of the application file, which can be the name, icon and identity code corresponding to the application file, etc., There is no specific limitation here.
需要进一步说明的是,第二设备基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备中,访问请求信息可以是对第二设备中单个应用文件信息的访问,也可以是第二设备中部分或全部应用文件信息的访问,在此不作具体限定,对应地,第二设备生成的应用文件描述信息可以是单个应用文件描述信息,也可以是第二设备中部分或全部应用文件信息的访问,在此不作具体限定。It should be further noted that the second device generates application file description information based on the access request information and sends it to the first device. The access request information may be an access to single application file information in the second device, or it may be The access to part or all of the application file information in the second device is not specifically limited here. Correspondingly, the application file description information generated by the second device may be the description information of a single application file, or part or all of the application files in the second device. The access to file information is not specifically limited here.
具体地,在第一设备生成用于获取应用文件描述信息的访问请求信息,并发送给第二设备之后,第二设备基于第一设备发送的访问请求信息生成应用文件描述信息并发送给第一设备,第一设备接收第二设备发送的应用文件描述信息。Specifically, after the first device generates the access request information for acquiring the application file description information and sends it to the second device, the second device generates the application file description information based on the access request information sent by the first device and sends it to the first device device, the first device receives the application file description information sent by the second device.
举例来说,电脑端生成用于获取手机端中全部应用文件描述信息的访问请求信息,并发送给手机端之后,手机端基于电脑端发送的访问请求信息生成全部应用文件描述信息,即全部应用文件名称或是全部应用文件图标,发送给电脑端,电脑端接收手机端发送的应用文件名称或是图标等应用文件的描述信息。For example, after the computer generates the access request information for obtaining the description information of all application files in the mobile phone, and sends it to the mobile phone, the mobile phone generates all the application file description information based on the access request information sent by the computer, that is, all the application files. The file name or all application file icons are sent to the computer, and the computer receives the application file name or icon and other description information of the application file sent by the mobile phone.
步骤204:接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。Step 204: Receive a pull request from the first device, determine the location of the target application file based on the pull request, and transmit the target application file to the first device.
其中,目标应用文件为用户所需的应用文件,存储于第二设备中。The target application file is an application file required by the user and is stored in the second device.
具体地,第一设备接收到第二设备的应用文件描述信息之后,将第二设备的应用文件描述信息,即应用文件的名称、图标或者其身份代码呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,第二设备接收到所述第一设备的拉取请求,并基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。Specifically, after receiving the application file description information of the second device, the first device presents the application file description information of the second device, that is, the name, icon or identity code of the application file on the display screen of the first device, and the Manually click, click with a mouse, or click on the description information of the target application file with a touch screen pen, the second device receives the pull request from the first device, and determines the location of the target application file based on the pull request. The target application file is transferred to the first device.
举例来说,在电脑端接收到手机端的应用文件描述信息之后,将应用文件描述信息呈现在电脑端的显示屏幕上,通过手动点击、鼠标点击或者触屏笔点击应用文件的描述信息,如应用文件A、应用文件B、应用文件C等应用文件的名称、图标或是身份代码,从而实现从手机端中拉取应用文件至电脑端。For example, after the computer terminal receives the application file description information from the mobile phone terminal, the application file description information is presented on the display screen of the computer terminal. A. The name, icon or identity code of application files such as application file B and application file C, so as to pull the application file from the mobile phone to the computer.
本实施例提供了一种文件拉取方法,应用于保存有待拉取文件的第二设备,与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备,解决了现有技术中尚无可将存有应用文件设备中的应用文件传输至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接拉取至另一不具有应用文件设备中,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。This embodiment provides a file pulling method, which is applied to a second device that saves a file to be pulled, and establishes a communication connection with the first device; wherein, the first device is a file pulling device; The first device receives access request information; wherein, the access request is used to request to obtain application file description information; based on the access request information, application file description information is generated and sent to the first device; wherein, the application file The description information is used to describe the identification information of the application file installed in the second device; receive a pull request from the first device, determine the location of the target application file based on the pull request, and transmit the target application file to The first device solves the problem that there is no solution in the prior art to transfer the application file in the device with the application file to another device without the application file, and the trouble of downloading the application file on the official website and other problems. The software platform downloads the wrong file, so that the application file in the device with the application file can be directly pulled to another device that does not have the application file, so that the application file can be pulled more quickly and effectively, and the user experience is improved. sense.
图3是本申请另一个实施例提供的一种文件拉取方法的流程示意图,参考图3。电脑端安装中转程序,手机端通过usb插在相应的电脑设备上;使用中转程序检测当前手机端设备,确保手机和中转程序连接正常,图4为中转程序检测手机设备的效果图,如图4所示,手机端设备的id能够进行显示即为手机和中转程序连接正常;图5为本实施例文件拉取方法的效果展示图,参考图5,根据当前的用户信息和IP生成对应的二维码信息返回给电脑前端并展示;手机端扫码电脑前端的二维码信息,手机会获取当前电脑端用户和IP信息,后台会获取当前的手机设备号,通过frida连接手机进行Dumping手机中应用列表,返回给电脑前端应用文件的应用名和包名;图6为本实施例文件拉取方法的效果展示图,参考图6,电脑前端展示相应的ipa应用名称,点击ipa名称从手机中拉取相应的应用文件。其中,frida连接的是手机端和电脑后台的服务器,后台服务器会进行dump脚本,进而获得手机上的所有ipa应用列表,然后把ipa应用名返回给电脑前端展示。FIG. 3 is a schematic flowchart of a file pulling method provided by another embodiment of the present application, with reference to FIG. 3 . Install the transfer program on the computer, and plug the mobile phone into the corresponding computer device through usb; use the transfer program to detect the current mobile phone device to ensure that the mobile phone and the transfer program are connected normally. Figure 4 is the rendering of the transfer program to detect the mobile device, as shown in Figure 4 As shown, the id of the mobile terminal device can be displayed, that is, the connection between the mobile phone and the transfer program is normal; FIG. 5 is the effect display diagram of the file pulling method of this embodiment, with reference to FIG. 5, according to the current user information and IP generate corresponding two The QR code information is returned to the front end of the computer and displayed; the mobile phone scans the QR code information on the front end of the computer, the mobile phone will obtain the current computer user and IP information, the background will obtain the current mobile device number, and connect the mobile phone through frida for Dumping on the mobile phone The application list is returned to the application name and package name of the front-end application file of the computer; Figure 6 is a display diagram of the effect of the file pulling method in this embodiment. Referring to Figure 6, the front-end of the computer displays the corresponding ipa application name, click the ipa name to pull from the mobile phone Get the corresponding application file. Among them, frida is connected to the mobile phone and the server in the background of the computer. The background server will perform a dump script to obtain a list of all ipa applications on the mobile phone, and then return the ipa application name to the front end of the computer for display.
图7为本申请又一个实施例提供的一种文件拉取方法的流程示意图,参考图7。电脑端安装中转程序,手机通过usb插在相应的电脑设备上;使用中转程序检测当前手机设备,确保手机和中转程序连接正常;根据当前的用户信息和IP生成对应的二维码信息返回给前端并展示;手机扫码前端的二维码信息,首先判断当前手机设备是否连接正常,在通过adb命令读取手机内所有apk安装包的信息,包括apk的应用名和包名并返回给前端;前端展示相应的apk应用名称,点击apk名称从手机中获取相应的apk文件。FIG. 7 is a schematic flowchart of a method for pulling files according to another embodiment of the present application. Referring to FIG. 7 . Install the transfer program on the computer, and the mobile phone is plugged into the corresponding computer device through the usb; use the transfer program to detect the current mobile phone device to ensure that the mobile phone and the transfer program are connected normally; generate the corresponding QR code information according to the current user information and IP and return it to the front end And display; the QR code information on the front end of the mobile phone scan code, first determine whether the current mobile phone device is connected normally, and then read the information of all apk installation packages in the mobile phone through the adb command, including the application name and package name of the apk, and return it to the front end; front end; Display the corresponding apk application name, click the apk name to obtain the corresponding apk file from the mobile phone.
图8为本实施例提供的文件拉取装置的结构框图,该装置包括作为文件拉取方的第一设备,所述第一设备包括:第一连接模块801、第一发送模块802、第一接收模块803、确定模块804,其中:FIG. 8 is a structural block diagram of a file pulling device provided in this embodiment, the device includes a first device serving as a file pulling party, and the first device includes: a
第一连接模块801,用于与第二设备之间建立通信连接;a
其中,所述第二设备为保存有待拉取文件的设备,为不同于第一设备的其他任意具有显示屏并且支持网页浏览的电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机、台式计算机、笔记本电脑等,其中,电子设备可以是ios系统,也可以是Android系统,在此,不对电子设备的系统作任何限定。。Wherein, the second device is a device that saves files to be pulled, and is any other electronic device different from the first device that has a display screen and supports web browsing, including but not limited to smart phones, tablet computers, laptop portable devices A computer, a desktop computer, a notebook computer, etc., wherein the electronic device may be an ios system or an Android system, and no limitation is imposed on the system of the electronic device here. .
可以理解的是,第一设备为不存在有待拉取文件的设备,作为文件拉取的执行主体,需要与保存有待拉取文件的第二设备之间建立通信连接,并从第二设备中拉取待拉取文件,待拉取文件具体为应用文件;第一设备可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于台式计算机、笔记本电脑、平板电脑、智能手机、膝上型便携计算机等,其中,电子设备可以是ios系统,也可以是Android系统,在此,不对电子设备的系统作任何限定。。It can be understood that the first device is a device that does not have the file to be pulled. As the execution body of the file pulling, it needs to establish a communication connection with the second device that saves the file to be pulled, and pull the file from the second device. Get the file to be pulled, and the file to be pulled is specifically an application file; the first device may be various electronic devices that have a display screen and support web browsing, including but not limited to desktop computers, notebook computers, tablet computers, smart phones, laptops, etc. For upper-type portable computers, etc., the electronic device may be an ios system or an Android system. Here, the system of the electronic device is not limited in any way. .
具体地,第一设备与第二设备之间建立物理连接,确定与所述第二设备之间的通信链路连通;基于第一设备的标识信息生成二维码并展示,以使得所述第二设备基于所述二维码获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送第二设备的标识信息;基于所述第二设备的标识信息向所述第二设备发送第一通信连接建立请求;接收所述第二设备发送的第二通信连接建立请求;其中,所述第二通信连接建立请求是所述第二设备基于所述第一设备的标识信息发起的;在所述第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立与所述第二设备之间的双向通信连接。Specifically, a physical connection is established between the first device and the second device, and the communication link with the second device is determined to be connected; a two-dimensional code is generated and displayed based on the identification information of the first device, so that the first device is The second device obtains the identification information of the first device based on the two-dimensional code, and sends the identification information of the second device to the first device based on the two-dimensional code; and sends the identification information of the second device to the first device based on the identification information of the second device. The second device sends a first communication connection establishment request; receives a second communication connection establishment request sent by the second device; wherein, the second communication connection establishment request is based on the second device based on the first device. The identification information is initiated; on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, a bidirectional communication connection with the second device is established.
例如,电脑端不存在名为A的应用文件,而手机端是已下载名为A的应用文件并存储于手机默认存储文件夹中,电脑端为了获取手机端的应用文件A,需与手机端之间建立通信连接,将电脑端与手机端之间建立物理连接,确保电脑与手机端之间的通信链路连通,电脑端根据自身的标识信息生成二维码并于显示屏上展示,手机端使用扫描功能对电脑端生成的二维码进行识别,获取电脑端的标识信息,在确定电脑端的标识信息后,手机端基于二维码向电脑端发送手机端的标识信息;基于手机端标识信息,电脑端向手机端发送第一通信连接建立请求,手机端接收第一通信连接建立请求,并基于电脑端的标识信息发送第二通信连接建立请求至电脑端,电脑端接收手机端发送的第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下电脑端建立与手机端之间的双向通信连接。For example, there is no application file named A on the computer, but the application file named A has been downloaded on the mobile phone and stored in the default storage folder of the mobile phone. Establish a communication connection between the computer and the mobile phone to establish a physical connection between the computer and the mobile phone to ensure that the communication link between the computer and the mobile phone is connected. The computer generates a QR code according to its own identification information and displays it on the display screen. Use the scanning function to identify the QR code generated by the computer, and obtain the identification information of the computer. After determining the identification information of the computer, the mobile phone sends the identification information of the mobile phone to the computer based on the two-dimensional code; based on the identification information of the mobile phone, the computer The terminal sends a first communication connection establishment request to the mobile terminal, the mobile terminal receives the first communication connection establishment request, and sends a second communication connection establishment request to the computer terminal based on the identification information of the computer terminal, and the computer terminal receives the second communication connection sent by the mobile terminal. Establishing a request, on the premise that both the first communication connection establishment request and the second communication connection establishment request are set successfully, the computer terminal establishes a two-way communication connection with the mobile terminal.
第一发送模块802,用于生成访问请求信息并发送给所述第二设备;a
其中,所述访问请求用于请求获取应用文件描述信息;Wherein, the access request is used to request to obtain application file description information;
需要进一步说明的是,应用文件描述信息为描述应用文件的标识信息,即应用文件的身份信息,可以是应用文件名称信息、图标信息等,在此不作具体限定。It should be further noted that the application file description information is identification information describing the application file, that is, the identity information of the application file, which may be application file name information, icon information, etc., which is not specifically limited here.
具体地,第一设备在与第二设备建立通信连接之后,生成用于获取应用文件描述信息的访问请求信息,并发送给所述第二设备。Specifically, after the first device establishes a communication connection with the second device, the access request information for acquiring the description information of the application file is generated and sent to the second device.
举例来说,在电脑端与手机端之间建立通信连接之后,电脑端为了获取手机端的名为A的应用文件,生成用于请求获取名为A的应用文件描述信息的访问请求信息,并将访问请求信息发送给手机端。For example, after a communication connection is established between the computer and the mobile phone, in order to obtain the application file named A on the mobile phone, the computer generates access request information for requesting the description information of the application file named A, and sends the access request information. The access request information is sent to the mobile terminal.
第一接收模块803,用于接收第二设备的应用文件描述信息;a
其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息,应用文件的标识信息为应用文件的身份信息,可以是应用文件对应的名称,图标以及身份代码等,在此不作具体限定。Wherein, the application file description information of the second device is used to describe the identification information of the application file installed in the second device, and the identification information of the application file is the identification information of the application file, which can be the name, icon and Identity codes, etc., are not specifically limited here.
具体地,在第一设备生成用于获取应用文件描述信息的访问请求信息,并发送给第二设备之后,第二设备基于第一设备发送的访问请求信息生成应用文件描述信息并发送给第一设备,第一设备接收第二设备发送的应用文件描述信息。Specifically, after the first device generates the access request information for acquiring the application file description information and sends it to the second device, the second device generates the application file description information based on the access request information sent by the first device and sends it to the first device device, the first device receives the application file description information sent by the second device.
举例来说,电脑端生成用于获取应用文件A描述信息的访问请求信息,并发送给手机端之后,手机端基于电脑端发送的访问请求信息生成应用文件A描述信息,即应用文件A的名称或是其图标,发送给电脑端,电脑端接收手机端发送的应用文件A的名称或其图标等应用文件A的描述信息。For example, after the computer terminal generates the access request information for obtaining the description information of the application file A, and sends it to the mobile terminal, the mobile terminal generates the application file A description information based on the access request information sent by the computer terminal, that is, the name of the application file A. Or its icon is sent to the computer, and the computer receives the name of the application file A or its icon and other description information of the application file A sent by the mobile phone.
确定模块804,用于基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。The determining
其中,目标应用文件为用户所需的应用文件,是第一设备中不存在,而第二设备中所存在的应用文件。The target application file is an application file required by the user, which is an application file that does not exist in the first device but exists in the second device.
需要进一步说明的是,从所述第二设备拉取所述目标应用文件的方式为,将第二设备的应用文件描述信息,即应用文件的名称、图标或者其身份代码呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,即可从第二设备中拉取目标应用文件。It should be further explained that the method of pulling the target application file from the second device is to present the application file description information of the second device, that is, the name, icon or its identity code of the application file on the first device. On the display screen, the target application file can be pulled from the second device by manually clicking, clicking with a mouse, or clicking on the description information of the target application file with a stylus pen.
具体地,在第一设备接收到第二设备的应用文件描述信息之后,将应用文件描述信息呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,从而实现从第二设备中拉取所述目标应用文件至第一设备中。Specifically, after the first device receives the application file description information of the second device, the application file description information is presented on the display screen of the first device, and the target application file is clicked manually, mouse click, or touch screen pen. description information, so as to pull the target application file from the second device to the first device.
举例来说,在电脑端接收到手机端的应用文件描述信息之后,将应用文件描述信息呈现在电脑端的显示屏幕上,通过手动点击、鼠标点击或者触屏笔点击应用文件A的描述信息,如应用文件A的名称、图标或是身份代码,从而实现从手机端中拉取应用文件A至电脑端。For example, after the computer terminal receives the application file description information of the mobile phone terminal, the application file description information is presented on the display screen of the computer terminal, and the description information of application file A is clicked by manual click, mouse click or touch screen pen. The name, icon or identity code of file A, so that application file A can be pulled from the mobile phone to the computer.
本实施例提供了一种文件拉取装置,应用于作为文件拉取方的第一设备,通过第一连接模块801用于与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;第一发送模块802用于生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;第一接收模块803用于接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;确定模块804用于基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件,解决了现有技术中尚无可将存有应用文件设备中的应用文件传输至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接拉取至另一不具有应用文件设备中,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。This embodiment provides a file pulling device, which is applied to a first device as a file pulling party, and is used to establish a communication connection with a second device through the
图9为本发明另一个实施例提供的文件拉取装置的结构框图,该装置包括保存有待拉取文件的第二设备,所述第二设备包括:第二连接模块901、第二接收模块902、第二发送模块903、传输模块904,其中:FIG. 9 is a structural block diagram of a file pulling apparatus provided by another embodiment of the present invention. The apparatus includes a second device that stores a file to be pulled, and the second device includes: a
第二连接模块901,用于与第一设备之间建立通信连接;A
其中,所述第一设备为文件拉取方设备;Wherein, the first device is a file puller device;
具体地,保存有待拉取文件的第二设备与第一设备之间建立物理连接,确定与所述第一设备之间的通信链路连通;第二设备扫描第一设备生成的二维码,获取所述第一设备的标识信息,并基于所述二维码向所述第一设备发送自身的标识信息;第一设备基于第二设备的标识信息向所述第二设备发送第一通信连接建立请求,第二设备接收第一设备发送的第一通信连接建立请求,并根据第一设备的标识信息向第一设备发送第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立第二设备与第一设备之间的双向通信连接。Specifically, a physical connection is established between the second device that stores the file to be pulled and the first device, and the communication link with the first device is determined to be connected; the second device scans the two-dimensional code generated by the first device, Acquire the identification information of the first device, and send its own identification information to the first device based on the two-dimensional code; the first device sends the first communication connection to the second device based on the identification information of the second device To establish a request, the second device receives the first communication connection establishment request sent by the first device, and sends a second communication connection establishment request to the first device according to the identification information of the first device. On the premise that the two communication connection establishment requests are both successfully set, a bidirectional communication connection between the second device and the first device is established.
举例来说,手机端与电脑端之间通过usb建立物理连接,确定与电脑端之间的通信链路连通;手机端扫描电脑端生成的二维码,获取电脑端的用户信息和IP,并基于所述二维码向电脑端发送自身的身份信息;电脑端基于手机端的身份信息向手机端发送第一通信连接建立请求,手机端接收电脑端发送的第一通信连接建立请求,并根据电脑端的用户信息和IP向电脑端发送第二通信连接建立请求,在第一通信连接建立请求与所述第二通信连接建立请求均设置成功的前提下,建立手机端与电脑端之间的双向通信连接。For example, a physical connection is established between the mobile phone and the computer through usb, and the communication link with the computer is determined; the mobile phone scans the QR code generated by the computer to obtain the user information and IP of the computer. The two-dimensional code sends its own identity information to the computer terminal; the computer terminal sends a first communication connection establishment request to the mobile terminal based on the identity information of the mobile terminal, and the mobile terminal receives the first communication connection establishment request sent by the computer terminal, and according to the computer terminal. The user information and IP send a second communication connection establishment request to the computer, and on the premise that the first communication connection establishment request and the second communication connection establishment request are both successfully set, a two-way communication connection between the mobile phone and the computer is established. .
第二接收模块902,用于从所述第一设备接收访问请求信息;a
其中,所述访问请求用于请求获取应用文件描述信息;Wherein, the access request is used to request to obtain application file description information;
需要进一步说明的是,应用文件描述信息为描述应用文件的标识信息,即应用文件的身份信息,可以是应用文件名称信息、图标信息等,在此不作具体限定。It should be further noted that the application file description information is identification information describing the application file, that is, the identity information of the application file, which may be application file name information, icon information, etc., which is not specifically limited here.
具体地,保存有待拉取文件的第二设备与第一设备建立通信连接之后,接收第一设备发送的用于获取应用文件描述信息的访问请求信息。Specifically, after the second device storing the to-be-pulled file establishes a communication connection with the first device, it receives the access request information sent by the first device for acquiring the description information of the application file.
举例来说,在手机端与电脑端建立通信连接之后,电脑端为了获取手机端上的名为A的应用文件,就需要生成用于请求获取应用文件A的描述信息的访问请求信息,并将访问请求信息发送给手机端,手机端接收电脑端发送的访问请求信息。For example, after the mobile terminal and the computer terminal establish a communication connection, in order to obtain the application file named A on the mobile terminal, the computer terminal needs to generate the access request information for requesting to obtain the description information of the application file A, and to The access request information is sent to the mobile terminal, and the mobile terminal receives the access request information sent by the computer terminal.
第二发送模块903,用于基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;A
其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;应用文件的标识信息为应用文件的身份信息,可以是应用文件对应的名称,图标以及身份代码等,在此不作具体限定。Wherein, the application file description information is used to describe the identification information of the application file installed in the second device; the identification information of the application file is the identity information of the application file, which can be the name, icon and identity code corresponding to the application file, etc., There is no specific limitation here.
需要进一步说明的是,第二设备基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备中,访问请求信息可以是对第二设备中单个应用文件信息的访问,也可以是第二设备中部分或全部应用文件信息的访问,在此不作具体限定,对应地,第二设备生成的应用文件描述信息可以是单个应用文件描述信息,也可以是第二设备中部分或全部应用文件信息的访问,在此不作具体限定。It should be further noted that the second device generates application file description information based on the access request information and sends it to the first device. The access request information may be an access to single application file information in the second device, or it may be The access to part or all of the application file information in the second device is not specifically limited here. Correspondingly, the application file description information generated by the second device may be the description information of a single application file, or part or all of the application files in the second device. The access to file information is not specifically limited here.
具体地,在第一设备生成用于获取应用文件描述信息的访问请求信息,并发送给第二设备之后,第二设备基于第一设备发送的访问请求信息生成应用文件描述信息并发送给第一设备,第一设备接收第二设备发送的应用文件描述信息。Specifically, after the first device generates the access request information for acquiring the application file description information and sends it to the second device, the second device generates the application file description information based on the access request information sent by the first device and sends it to the first device device, the first device receives the application file description information sent by the second device.
举例来说,电脑端生成用于获取手机端中全部应用文件描述信息的访问请求信息,并发送给手机端之后,手机端基于电脑端发送的访问请求信息生成全部应用文件描述信息,即全部应用文件名称或是全部应用文件图标,发送给电脑端,电脑端接收手机端发送的应用文件名称或是图标等应用文件的描述信息。For example, after the computer generates the access request information for obtaining the description information of all the application files in the mobile phone, and sends it to the mobile phone, the mobile phone generates all the application file description information based on the access request information sent by the computer, that is, all the application files. The file name or all application file icons are sent to the computer, and the computer receives the application file name or icon and other description information of the application file sent by the mobile phone.
传输模块904,用于接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。The
具体地,第一设备接收到第二设备的应用文件描述信息之后,将第二设备的应用文件描述信息,即应用文件的名称、图标或者其身份代码呈现在第一设备的显示屏幕上,通过手动点击、鼠标点击、或者触屏笔点击目标应用文件的描述信息,第二设备接收到所述第一设备的拉取请求,并基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。Specifically, after receiving the application file description information of the second device, the first device presents the application file description information of the second device, that is, the name, icon or identity code of the application file on the display screen of the first device, and the Manually click, click with a mouse, or click on the description information of the target application file with a touch screen pen, the second device receives the pull request from the first device, and determines the location of the target application file based on the pull request. The target application file is transferred to the first device.
举例来说,在电脑端接收到手机端的应用文件描述信息之后,将应用文件描述信息呈现在电脑端的显示屏幕上,通过手动点击、鼠标点击或者触屏笔点击应用文件的描述信息,如应用文件A、应用文件B、应用文件C等应用文件的名称、图标或是身份代码,从而实现从手机端中拉取应用文件至电脑端。For example, after the computer terminal receives the application file description information of the mobile phone terminal, the application file description information is presented on the display screen of the computer terminal, and the description information of the application file is clicked by manual click, mouse click or touch screen pen, such as application file. A. The name, icon or identity code of application files such as application file B and application file C, so as to pull the application file from the mobile phone to the computer.
本实施例提供了一种文件拉取装置,应用于保存有待拉取文件的第二设备,第二连接模块901用于与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;第二接收模块902用于从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;第二发送模块903用于基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;传输模块804用于接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备,解决了现有技术中尚无可将存有应用文件设备中的应用文件传输至另一不具有应用文件设备中的方案,以及需要在官网下载应用文件的麻烦和在其他软件平台下载错误文件的问题,使得存有应用文件设备中的应用文件可直接拉取至另一不具有应用文件设备中,实现更快捷、有效地对应用文件进行拉取,提升了用户的体验感。This embodiment provides a file pulling device, which is applied to a second device that stores a file to be pulled, and the
本实施例还提供了一种文件拉取装置,包括作为文件拉取方的第一设备与保存有待拉取文件的第二设备,所述第一设备与所述第二设备之间通信连接;所述第一设备,用于实现如下文件拉取方法:与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件;所述第二设备,用于实现如下文件拉取方法:与第一设备之间建立通信连接;其中,所述第一设备为文件拉取方设备;从所述第一设备接收访问请求信息;其中,所述访问请求用于请求获取应用文件描述信息;基于所述访问请求信息生成应用文件描述信息并发送给所述第一设备;其中,所述应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;接收所述第一设备的拉取请求,基于所述拉取请求确定目标应用文件的位置,将所述目标应用文件传输至所述第一设备。This embodiment also provides a file pulling device, including a first device serving as a file pulling party and a second device storing the file to be pulled, and the first device and the second device are in communication connection; The first device is configured to implement the following method for pulling files: establishing a communication connection with a second device; wherein the second device is a device that saves files to be pulled; generating access request information and sending it to the a second device; wherein the access request is used for requesting to obtain application file description information; receiving application file description information of the second device; wherein, the application file description information of the second device is used to describe the application file description information installed in the second device The identification information of the application file; the target application file is determined based on the application file description information of the second device, and the target application file is pulled from the second device; the second device is used to implement the following file pulling The retrieval method: establishing a communication connection with a first device; wherein, the first device is a file puller device; receiving access request information from the first device; wherein, the access request is used to request to obtain an application file description information; generate application file description information based on the access request information and send it to the first device; wherein the application file description information is used to describe the identification information of the application file installed in the second device; receive the The pull request of the first device determines the location of the target application file based on the pull request, and transmits the target application file to the first device.
图10为本发明实施例提供的一种电子设备的实体结构示意图,如图10所示,该电子设备可以包括:处理器(processor)1010、通信接口(Communications Interface)1020、存储器(memory)1030和总线1040,其中,处理器1010,通信接口1020,存储器1030通过总线1040完成相互间的通信。总线1040可以用于电子设备与传感器之间的信息传输。处理器1010可以调用存储器1030中的逻辑指令,以执行如下方法:应用于作为文件拉取方的第一设备,与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。FIG. 10 is a schematic diagram of the physical structure of an electronic device according to an embodiment of the present invention. As shown in FIG. 10 , the electronic device may include: a processor (processor) 1010 , a communications interface (Communications Interface) 1020 , and a memory (memory) 1030 and
此外,上述的存储器1030中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the
另一方面,本发明实施例提供一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令使计算机执行上述实施例所提供的一种文件拉取方法,例如包括:应用于作为文件拉取方的第一设备,与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。On the other hand, an embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause a computer to execute a file pulling provided by the foregoing embodiments The method, for example, includes: applying to a first device serving as a file puller, establishing a communication connection with a second device; wherein, the second device is a device that saves a file to be pulled; generating access request information and sending it to the second device; wherein, the access request is used to request to obtain application file description information; receive application file description information of the second device; wherein, the application file description information of the second device is used to describe the application file description information of the second device Identification information of the installed application file; determining a target application file based on the application file description information of the second device, and pulling the target application file from the second device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments or some parts of the embodiments.
又一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法所提供的一种表格文件分割方法,该方法包括:应用于作为文件拉取方的第一设备,与第二设备之间建立通信连接;其中,所述第二设备为保存有待拉取文件的设备;生成访问请求信息并发送给所述第二设备;其中,所述访问请求用于请求获取应用文件描述信息;接收第二设备的应用文件描述信息;其中,所述第二设备的应用文件描述信息用于描述第二设备中所安装的应用文件的标识信息;基于所述第二设备的应用文件描述信息确定目标应用文件,并从所述第二设备拉取所述目标应用文件。In yet another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer During execution, the computer can execute a table file splitting method provided by the above methods. The method includes: applying to a first device serving as a file puller and establishing a communication connection with the second device; wherein the first device The second device is a device that saves the file to be pulled; generates access request information and sends it to the second device; wherein, the access request is used to request to obtain application file description information; receive application file description information of the second device; wherein , the application file description information of the second device is used to describe the identification information of the application file installed in the second device; the target application file is determined based on the application file description information of the second device, and the target application file is obtained from the second device. Pull the target application file.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still be used for The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111577744.6A CN114465999A (en) | 2021-12-22 | 2021-12-22 | File pulling method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111577744.6A CN114465999A (en) | 2021-12-22 | 2021-12-22 | File pulling method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114465999A true CN114465999A (en) | 2022-05-10 |
Family
ID=81406395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111577744.6A Pending CN114465999A (en) | 2021-12-22 | 2021-12-22 | File pulling method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114465999A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634389A (en) * | 2013-11-25 | 2014-03-12 | 北京奇虎科技有限公司 | File transfer method, device and system between calculation device and mobile device |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN111294396A (en) * | 2020-01-20 | 2020-06-16 | 咪咕数字传媒有限公司 | File transmission method, device, electronic device and storage medium |
CN111368173A (en) * | 2020-03-05 | 2020-07-03 | 五八有限公司 | File transmission method, device, electronic device and readable storage medium |
CN112291758A (en) * | 2020-10-29 | 2021-01-29 | 维沃移动通信有限公司 | File sharing method, file sharing device and electronic equipment |
CN112346751A (en) * | 2020-11-20 | 2021-02-09 | 腾讯科技(深圳)有限公司 | Application program installation method and device, electronic equipment and storage medium |
-
2021
- 2021-12-22 CN CN202111577744.6A patent/CN114465999A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103634389A (en) * | 2013-11-25 | 2014-03-12 | 北京奇虎科技有限公司 | File transfer method, device and system between calculation device and mobile device |
CN107248946A (en) * | 2017-05-11 | 2017-10-13 | 北京潘达互娱科技有限公司 | Application installation package sending method and device |
CN111294396A (en) * | 2020-01-20 | 2020-06-16 | 咪咕数字传媒有限公司 | File transmission method, device, electronic device and storage medium |
CN111368173A (en) * | 2020-03-05 | 2020-07-03 | 五八有限公司 | File transmission method, device, electronic device and readable storage medium |
CN112291758A (en) * | 2020-10-29 | 2021-01-29 | 维沃移动通信有限公司 | File sharing method, file sharing device and electronic equipment |
CN112346751A (en) * | 2020-11-20 | 2021-02-09 | 腾讯科技(深圳)有限公司 | Application program installation method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10601633B2 (en) | Virtual window screen renderings using application connectors | |
US9342329B2 (en) | Method and system for cross-operating systems execution of software applications | |
EP2806357A1 (en) | Method and communication device for updating a web application | |
US9690761B1 (en) | Systems and methods for providing mobile browser access to mobile device functionalities | |
JP5884542B2 (en) | Apparatus, information processing system, information processing method, and information processing program | |
EP1950656A1 (en) | Method of loading software in mobile and desktop environments | |
CN103634389A (en) | File transfer method, device and system between calculation device and mobile device | |
US9342333B2 (en) | Backend custom code extensibility | |
CN110389936A (en) | Method, device and computer storage medium for starting applet | |
WO2019015272A1 (en) | Information processing method and device | |
US10044720B2 (en) | Mashup method, computer-readable recording medium, and terminal | |
EP3220293A1 (en) | Information processing apparatus, information processing system, method for processing information, and program | |
WO2015049825A1 (en) | Terminal authentication and registration system, method for authenticating and registering terminal, and storage medium | |
CN109933442A (en) | Communication method, device and computer storage medium between applet platforms | |
CN103873491B (en) | VPN safety browser system and setting method | |
WO2019141192A1 (en) | Wi-fi connection method, computer device and storage medium | |
CN107203576B (en) | Information synchronization method and device | |
US20160205277A1 (en) | Apparatus, information processing system, information processing method, and information processing program | |
CN103838799A (en) | Method, terminal device, cloud server and system for recommending installing software | |
WO2015067189A1 (en) | Method and apparatus for installing application | |
CN112948164A (en) | Conditional saving of input data | |
CN109976922A (en) | Discovery method, device and computer storage medium between applet platforms | |
CN104809011A (en) | Application program management method | |
US10193737B2 (en) | Method for performing communication between browser and mobile terminal, and browser apparatus | |
CN105871976A (en) | Data cross-domain request method and system, and devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220510 |