WO2023226720A1 - Resource file transmission method and apparatus, and device and storage medium - Google Patents

Resource file transmission method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2023226720A1
WO2023226720A1 PCT/CN2023/092392 CN2023092392W WO2023226720A1 WO 2023226720 A1 WO2023226720 A1 WO 2023226720A1 CN 2023092392 W CN2023092392 W CN 2023092392W WO 2023226720 A1 WO2023226720 A1 WO 2023226720A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal
resource file
information
resource
Prior art date
Application number
PCT/CN2023/092392
Other languages
French (fr)
Chinese (zh)
Inventor
唐彬
崔国珍
刘峰松
马晓宇
池源
Original Assignee
北京快乐茄信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京快乐茄信息技术有限公司 filed Critical 北京快乐茄信息技术有限公司
Publication of WO2023226720A1 publication Critical patent/WO2023226720A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present disclosure relates to the field of data transmission technology, and in particular, to a resource file transmission method, device, equipment and storage medium.
  • terminal devices With the development of electronic technology, the functions of terminal devices are becoming more and more powerful.
  • the terminal devices can perform their powerful functions by installing applications (also called applications).
  • the present disclosure provides a resource file transmission method, device, equipment and storage medium to simplify the resource file transmission process and improve transmission efficiency.
  • the present disclosure provides a resource file transmission method, which includes: a first terminal obtains application information of a first application, and the first application is an application in a second terminal that needs to obtain resource files; the first terminal obtains the resource file according to the first application.
  • the application information of the first application is obtained, and the resource file associated with the first application is obtained locally.
  • the resource file is a necessary file when the first application is running; the first terminal sends at least the resource file of the first application to the second terminal.
  • the first terminal obtaining the application information of the first application may include: the first terminal receives a file request message sent by the second terminal, the file request message includes first indication information, and the first indication information is Instructing the first application; the first terminal obtains application information of the first application according to the first instruction information.
  • the file request message contains an explicit request instruction
  • the first instruction message includes an identifier indicating the first application.
  • the method may also include: the first terminal obtains resource files of multiple locally installed applications; the first terminal device obtains the resources in the multiple applications The application whose files meet the preset requirements is determined as the first application.
  • the first terminal sends at least the resource file of the first application to the second terminal, which may include: the first terminal determines that the second terminal does not install the first application; the first terminal sends the first application to the second terminal. - Application and resource files.
  • the first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application, which may include: the first terminal determines that the locally installed resource file of the first application is locally installed based on the application information of the first application. An application; the first terminal obtains the resource file associated with the first application from the local installation directory of the first application.
  • the application information includes: at least one of an application name, a version number, an associated resource file, and a resource file version number.
  • the present disclosure provides another method for transmitting resource files, including: a second terminal receiving at least a resource file associated with a first application sent by a first terminal, and the first application is a resource file in the second terminal that needs to be obtained. application; the second terminal adds the resource file to the installation directory of the first application.
  • the method may further include: the second terminal sends a file request message to the first terminal, where the file request message includes The first indication information is used to indicate the first application.
  • the second terminal receives at least the resource file associated with the first application sent by the first terminal, which may include: the second terminal receives the first application and resource file sent by the first terminal.
  • the method may further include: the second terminal obtains the application information of the first application; the second terminal obtains the application information of the first application according to the application information of the first application. information, it is determined that the first application is not installed; the second terminal installs the first application.
  • the present disclosure provides another resource file transmission method, which includes the second terminal sending a file request message to the first terminal; the first terminal obtaining the application information of the first application according to the sent file request message; and the first terminal obtaining the application information of the first application according to the sent file request message.
  • the application information of the first application determines to send the resource file corresponding to the first application; the first terminal sends the resource file corresponding to the first application to the second terminal; the second terminal receives the resource file corresponding to the first application and adds the resource file to the second terminal.
  • An application's installation directory includes the second terminal sending a file request message to the first terminal; the first terminal obtaining the application information of the first application according to the sent file request message; and the first terminal obtaining the application information of the first application according to the sent file request message.
  • the present disclosure provides yet another resource file transmission method, including: the first terminal obtains the application information of the first application based on the locally installed application; the first terminal obtains the locally saved third application based on the application information of the first application.
  • An application-associated resource file including: the first terminal obtains the application information of the first application based on the locally installed application; the first terminal obtains the locally saved third application based on the application information of the first application.
  • An application-associated resource file; the first terminal simultaneously sends the first application and the resource file corresponding to the first application to the second terminal; the second terminal determines that the first application is not installed locally; the second terminal receives the first application and installs it;
  • the second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
  • the present disclosure provides a device for transmitting resource files.
  • the device may be a chip or a system-on-chip in a first terminal. It may also be used in the first terminal to implement the first aspect and any possible implementation thereof. function module.
  • the resource file transmission device can implement the first aspect and any possible implementation manner thereof performed by the first terminal.
  • the functions of the line can be realized by hardware execution and corresponding software.
  • Hardware or software includes one or more modules corresponding to the above functions.
  • the resource file transmission device includes: an acquisition module configured to obtain application information of a first application, and the first application is an application in the second terminal that needs to obtain resource files; and an execution module configured to obtain the resource file according to the first application.
  • Application information obtain locally saved resource files associated with the first application.
  • the resource files are necessary files for the first application when running; the output module is configured to send at least the resource files of the first application to the second terminal.
  • the obtaining module may also be configured to: receive a file request message sent by the second terminal, where the file request message includes first indication information, and the first indication information is used to indicate the first application; according to The first instruction information is to obtain the application information of the first application.
  • the obtaining module may also be configured to obtain resource files of multiple locally installed applications before obtaining the application information of the first application; and configure the resource files in the multiple applications to meet preset requirements.
  • the application is determined as the first application.
  • the output module may also be configured to: determine that the second terminal does not install the first application; and send the first application and resource files to the second terminal.
  • the execution module may also be configured to: determine that the first application is locally installed according to the application information of the first application; and obtain resources associated with the first application from the local installation directory of the first application. document.
  • the present disclosure provides a device for transmitting resource files.
  • the device can be a chip or a system-on-chip in a second terminal. It can also be used in the second terminal to implement the first aspect and any possible implementation thereof. function module.
  • the resource file transmission device can realize the function performed by the second terminal of the second aspect and any of its possible implementations, and the function can be realized by hardware executing corresponding software. Hardware or software includes one or more modules corresponding to the above functions.
  • the resource file transmission device includes: a receiving module configured to receive at least a resource file associated with a first application sent by the first terminal, where the first application is an application in the second terminal that needs to obtain the resource file; an installation module configured Used to add resource files to the installation directory of the first application.
  • the receiving module may also be configured to: before receiving at least the resource file associated with the first application sent by the first terminal, send a file request message to the first terminal, where the file request message includes the first One indication information, the first indication information is used to indicate the first application.
  • the receiving module may also be configured to: receive the first application and resource files sent by the first terminal.
  • the receiving module may also be configured to: after receiving the first application and resource file sent by the first terminal, obtain the application information of the first application; and determine whether to Install the first application; install the first application.
  • the present disclosure provides a terminal, including: a memory for storing processor-executable instructions; a processor; wherein the processor is configured to: execute the executable instructions to implement the first aspect, The second aspect, the The method described in the third aspect, the fourth aspect and any possible implementation thereof.
  • the present disclosure provides a computer-readable storage medium that stores computer-executable instructions. After the computer-executable instructions are executed by a processor, the computer-readable storage medium can implement the first aspect, the second aspect, and the third aspect. The method described in the aspect, the fourth aspect and any possible implementation manner thereof.
  • the application information of the first application is obtained through the first terminal
  • the locally saved resource file associated with the first application is sent to the second terminal
  • the second terminal receives the resource file sent by the first terminal and stores it.
  • Figure 1 is a schematic flowchart of an implementation of a resource file transmission method in an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of another implementation of a resource file transmission method in an embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure
  • Figure 4 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a resource file transmission device in an embodiment of the present disclosure.
  • Figure 6 is another structural schematic diagram of a resource file transmission device in an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • 500, 600 - resource file transmission device 501 - acquisition module; 502 - execution module; 503 - output module; 601 - receiving module; 602 - installation module; 700 - terminal; 701 - processor; 702 - memory .
  • smart terminals have also become popular.
  • Common smart terminals include smartphones, smart watches, PDAs, wearable devices, etc.
  • various applications usually need to be installed on terminals (such as smartphones, tablets, laptops, etc.).
  • Use the application store recommended by the terminal also known as the application market) to obtain the application and implement the installation package installation of the application.
  • app stores provide application packages (such as installation files (.apk) in Android systems, installation files (.ios) in IOS systems, installation files (.exe) in Windows systems, etc.) provided by application developers.
  • application packages such as installation files (.apk) in Android systems, installation files (.ios) in IOS systems, installation files (.exe) in Windows systems, etc.
  • the Android app store requires that the size of the compressed installation program (also known as installation package, installation file, etc.) provided for users to download does not exceed 100MB.
  • this requirement from the App Store will not affect the download of the app because the space required is sufficient to store all of the app's code and resources.
  • some apps require more space for high-fidelity graphics, media files, and other large resources and may not meet App Store requirements.
  • the app store proposes a resource file to supplement the resources of the installation file, for example, the universal data package (.obb) for game applications in Android systems.
  • the running of the application depends on the corresponding resource files.
  • the installer and resource files of the same application are often independent. Therefore, when the user completes the installation of the installer and runs the application, he or she needs to additionally download the corresponding resource files to trigger certain functions in the application. In other words, the application can be considered official only after downloading the resource files. run. It can be seen that in this case, there are problems such as low resource file transmission efficiency and complicated transmission operations. Especially when the network condition is poor, resource files may not be downloaded or may take too long to download, which seriously affects the use of the application and results in poor user experience.
  • a data transmission system including: a first terminal and a second terminal.
  • the first terminal and the second terminal can be a smartphone, a tablet computer, a desktop computer, a personal digital assistant, etc.
  • the first terminal can implement transmission with the second terminal.
  • the first terminal may be a transmission sending terminal, and the second terminal may be a transmission receiving terminal; or the second terminal may be a transmission sending terminal, and the first terminal may be a transmission receiving terminal.
  • the embodiments of this disclosure are suitable for sending large resource files or resource files whose data volume exceeds a certain threshold between two terminals.
  • the first terminal when the second terminal wants to implement a game function, the first terminal can transfer the resource file of the game to the second terminal, and the second terminal receives the resource file and stores it, so that the original game application of the second terminal can be run.
  • the first terminal may be a smartphone, and the second terminal may also be a smartphone.
  • the second terminal wants to implement the function of receiving resource file data
  • the first terminal can transmit the stored resource file data to the second terminal, so that the second terminal can complete the reception of the resource file data.
  • the first terminal may be a router with storage function, and the second terminal may be a smartphone.
  • Embodiments of the present disclosure also provide a resource file transmission method to realize resource file transmission, improve transmission efficiency, and avoid complicated transmission operations, thereby improving user experience.
  • Figure 1 is a schematic flowchart of an implementation of a resource file transmission method in an embodiment of the present disclosure.
  • the resource file transmission method may include S101 to S103.
  • the first terminal obtains application information of the first application.
  • the application information may include: at least one of an application name, a version number, an associated resource file, and a resource file version number.
  • the first application may be an application in the second terminal that needs to obtain resource files.
  • the application to be installed in the second terminal may be the first application; or, the application is installed on the second terminal but is not searched in the corresponding storage directory. If the resource file corresponding to the application program is found, the application program may be the first application; or, if the application program is installed on the second terminal but the version number of the resource file corresponding to the application program is lower, the application program may Can be the first application.
  • the first terminal can obtain the first application in the second terminal that needs to obtain the resource file, and then obtain the application information of the first application.
  • S101 may be, but is not limited to, the following situations.
  • the first possible situation is that the first terminal receives a file request message sent by the second terminal.
  • the file request message includes first indication information, and the first indication information is used to instruct the first application; the first terminal, according to the first indication information, Get the application information of the first application.
  • the file request message includes a clear request instruction
  • the first instruction message includes an identifier indicating the first application.
  • the second terminal may use the application name of the first application as a first instruction message, and send the first instruction message to the first terminal through a file request message.
  • the first terminal may determine the first application indicated by the second terminal according to the application name.
  • the file request message sent by the second terminal to the first terminal clearly indicates that the second terminal needs the resource file of the first application.
  • the first terminal can obtain the first application according to the instruction of the file request message.
  • the application information of the first application may also be sent to the first terminal, so that the first terminal obtains the application information of the first application.
  • the second terminal can obtain the application information (application name, version number, etc.) of the first application and send the application information to the first terminal.
  • the second terminal can obtain the application information of the first application (since the second terminal does not save the application, the obtained application information only includes the application name), and sends the application information to the second terminal. a terminal.
  • the second terminal stores three applications, recorded as application A, application B and application C respectively.
  • the second terminal if the second terminal needs to obtain the resource file of application A (i.e. the first application), the second terminal will obtain the resource file of application A.
  • the application information is sent to the first terminal together with the message requesting to obtain the resource file of application A.
  • the first terminal obtains the application information (application name, version number, etc.) of application A by obtaining the message from the second terminal.
  • the second terminal if the second terminal needs to obtain the resource file of application D (that is, the first application), the second terminal will send a message that application D is not saved together with a message requesting to obtain the resource file of application D.
  • the first terminal obtains the application message (only the application name) of the application D by obtaining the message of the second terminal.
  • the first terminal can also update the installation file information and send it to the second terminal, so that the second terminal can use the application sent by the first terminal.
  • Select the first application for installation file information may also include: the first terminal may determine at least one second application from a plurality of locally installed applications; the first terminal sends the second application to the second terminal. The application information of the second application is used by the second terminal to determine the first application from the second application.
  • the second application is any one or more applications installed in the first terminal, and the second application has associated resource files.
  • the first terminal sends the application information of the second application to the second terminal, so that the second terminal can select the first application that needs to obtain the resource file based on the application information of the second application.
  • the first application is one or more applications in the second application.
  • the second terminal can obtain the application information of the second application, compare it with the application information of the application saved by the second terminal, and determine that the application not saved in the second terminal is the first application that needs to obtain the resource file.
  • the second terminal may obtain the application information of the second application, compare it with the application information of the application saved by the second terminal, and determine that the application with a lower version of the resource file is the first application that needs to obtain the resource file.
  • the first terminal can obtain the resource files of multiple locally installed applications; the first terminal device determines the application whose resource files meet the preset requirements among the multiple applications as the first application. Afterwards, the first terminal obtains the application information of the first application.
  • the preset requirements are conditions that can be set according to actual needs. For example, when you need to ensure that the sent application and resource files are of the same version, you can set the default requirement that the version number of the resource file matches the version number of the application; or, when you need to ensure that the sent resource file version is newer In this case, you can set a preset requirement so that the update time of the resource file matches the latest update, and the latest update can be the update in the last week or the update in the last month, etc. In addition to the above, there are other ways to set the preset conditions, which are not specifically limited in the embodiments of the present disclosure.
  • setting the preset requirements by the first terminal can enable the first terminal to fully understand the situation of locally installed resource files, and then determine the application corresponding to the resource file that meets the preset requirements as the first application. In this process, the first terminal can determine the locally installed application as the first application.
  • the first terminal will obtain a list of installed applications and automatically check the applications in the application list according to the list. resource files.
  • the obb type resource file is usually stored in the "memory card/Android/obb/[package name]" directory.
  • the first terminal can search whether the application has an obb resource file in the directory according to the name of the application (package name). That is, if "Memory Card/Android/obb/[A]" exists, it means that application A has an obb resource file.
  • the naming rules for obb resource files are: the main obb resource file is "main.version number.com.xxx.xxx.obb", and the patch obb resource file is "patch.version number.com.xxx.xxx.obb” . Therefore, the version and type of the obb resource file are obtained through the name of the obb resource file, and the application corresponding to the obb resource file that meets the preset condition requirements is determined as the first application.
  • the first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application.
  • the first terminal can obtain the application information of the first application. Then, the first terminal can obtain the resource file associated with the first application from the locally saved file according to the application information of the first application. Optionally, the first terminal can also obtain the storage directory of the resource file.
  • the second terminal indicates the first application A from the second application information sent by the first terminal. Then, the application A installed by the first terminal will be confirmed by the first terminal as the first application, and then the first terminal obtains the application information of application A. Since application A is installed on the first terminal, the application information of application A that the first terminal can obtain includes application name (A), version number (3.30), and resource file version number (3.30). The first terminal obtains the resource file of application A and the storage directory of the resource file based on the above application information (such as application name).
  • the second terminal after the second terminal determines the first application, it will send the application information of the first application to the first terminal, and the first terminal determines the application information of the first application by receiving the application information sent by the second terminal. . Because the first application is determined by the second terminal, the first terminal may or may not have the first application installed. In this case, the first terminal may determine that the first application is locally installed based on the application information of the first application, and then obtain the resource file associated with the first application from the local installation directory of the first application.
  • the first terminal can correspondingly determine whether the first application is installed locally. If the first application is installed, the first terminal can obtain the associated resource file of the first application according to the installation directory of the first application.
  • the second terminal After receiving and acquiring the application information of the first application, the first terminal first determines whether application A is installed on the first terminal based on the application information. Secondly, if application A is installed, the first terminal determines whether application A is installed. Information, obtain the resource files of application A and the storage directory of the resource files.
  • S103 The first terminal sends at least the resource file of the first application to the second terminal.
  • the first terminal can obtain the resource file of the first application. Then, the first terminal executes S102 and may send the resource file to the second terminal. Optionally, the first terminal can also send the installation directory of the resource file to the second terminal at the same time.
  • the first terminal may also determine that the second terminal does not install the first application; the first terminal sends the first application and the resource file to the second terminal.
  • the first terminal can obtain the application message of the first application. Then, the first terminal executes S103, and can determine whether the first application is installed on the second terminal through the obtained application message of the first application. Optionally, if the second terminal does not install the first application, the first terminal may send the first application and the resource file to the second terminal at the same time.
  • the first terminal determines the application information of the first application through the file request message sent by the second terminal.
  • the file request message sent by the second terminal only indicates the application name of the first application without the first application. of other information. Then, the first terminal can confirm that the first application is not installed in the second terminal in the above situation. It should be understood that the first terminal can also obtain whether the first application is installed in the second terminal through other methods, and this is not specifically limited in the embodiments of the present disclosure.
  • the first terminal executes S101 to S103 to obtain the application information of the first application, then obtains the locally saved resource file of the first application, and finally transmits the resource file of the first application to the second terminal.
  • the above process realizes resource file transmission between the first terminal and the second terminal, avoids cumbersome operations of transmitting resource files, and improves resource file transmission efficiency.
  • the two terminals can be connected in a variety of ways. Even if there is no network, file transfer can still be performed, which increases the transmission path of resource files and improves the transmission efficiency of resource files.
  • an embodiment of the disclosure also provides a resource file transmission method.
  • Figure 2 is a schematic flowchart of another implementation of the resource file transmission method in the embodiment of the disclosure. Refer to Figure 2.
  • the resource The file transmission method may include S201 to S202.
  • S201 The second terminal receives at least the resource file associated with the first application sent by the first terminal.
  • the first application is an application in the second terminal that needs to obtain resource files.
  • the application to be installed in the second terminal may be the first application; or, the application is installed on the second terminal but is not searched in the corresponding storage directory. If the resource file corresponding to the application program is found, the application program may be the first application; or, if the application program is installed on the second terminal but the version number of the resource file corresponding to the application program is lower, the application program may Can be the first application.
  • the second terminal can at least receive the resource file and store it.
  • the following situations may exist before S201 but are not limited to.
  • the second terminal when the second terminal can actively request to obtain the resource file of the first application, the second terminal can send a file request message to the first terminal.
  • the file request message includes first indication information, and the first indication information is used to indicate the first application.
  • the second terminal can determine an application in the second terminal that requires a resource file, determine it as the first application, and then send a file request message to the first terminal, clearly indicating that the second terminal needs the resources of the first application. document.
  • the second possible situation is that when the second terminal cannot actively request to obtain the resource file of the first application, the second terminal can receive the application information of the second application sent by the first terminal.
  • the second application is installed locally by the first terminal. At least one of multiple applications.
  • the second terminal determines the first application from the application information of the second application.
  • the first terminal can send the application information of any one or multiple applications (ie, the second application) stored locally to the second terminal, and the second terminal determines the second application through the application information.
  • Applications in the terminal that require resource files i.e., the first application.
  • the second terminal may determine the first application through a comparison method. It is assumed that the application information of the second application received by the second terminal includes application name (A), version number (3.30), and resource file version number (3.30). The second terminal obtains the application information of the locally saved application, including the application name (A) and version number (3.30). By comparing the above application information, the second terminal can learn that the second application contains resource files that are not available locally. When the second terminal needs to obtain the resource file, the application corresponding to the resource file can be determined as the first application, that is, application A.
  • the second terminal may also receive the first application and resource files sent by the first terminal.
  • the second terminal determines that the first application is not installed according to the application information of the first application; the second terminal installs the first application.
  • the second terminal when the second terminal obtains the application name of the first application through the message sent by the first terminal, the second terminal may determine that the first application is not installed based on the application name. Alternatively, when the second terminal scans the resource file sent by the first terminal, the second terminal determines that the first application is not installed based on the name of the resource file.
  • the second terminal may also receive the first application and the resource file corresponding to the first application at the same time.
  • the second terminal may install the first application after determining that the first application is not installed.
  • the second terminal adds the resource file to the installation directory of the first application.
  • the second terminal executes S201, it can at least obtain the resource file associated with the first application. Then, the second terminal can store the resource file in the installation directory of the first application, so that the first application can successfully load the resource file when used.
  • S202 may be, but is not limited to, the following situations.
  • the second terminal can store the resource file in the corresponding directory of the second terminal through the original directory of the resource file transmitted by the first terminal.
  • the resource file can be stored in the "memory card/Android/obb/[packagename]/" directory of the second terminal.
  • the second terminal can also store the resource files in the corresponding directory through a preset storage method.
  • the preset storage method can be a common storage method for related resource files.
  • the second terminal can also store the resource files in the corresponding directory through a preset storage method. study Xi shared storage method to achieve accurate storage of resource files.
  • the second terminal executes S201 to S202 to obtain the required resource files by at least receiving the resource files associated with the first application sent by the first terminal, and then installs and stores the resource files to obtain successful loading.
  • the first application of resource files The above process realizes resource file transmission between the first terminal and the second terminal, avoids cumbersome operations of transmitting resource files, and improves resource file transmission efficiency.
  • FIG. 3 is a schematic flowchart of another implementation of a resource file transmission method in an embodiment of the present disclosure. As shown in Figure 3, it includes:
  • the second terminal sends a file request message to the first terminal, and enters S302;
  • S302 The first terminal obtains the application information of the first application according to sending the file request message, and enters S303;
  • the first terminal determines to send the resource file corresponding to the first application according to the application information of the first application, and enters S304;
  • S304 The first terminal sends the resource file corresponding to the first application to the second terminal, and enters S305;
  • S305 The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
  • the first terminal can determine the information of the first application required by the second terminal according to the file request message sent by the second terminal, and then send the resource file corresponding to the first application to the second terminal.
  • the second terminal can receive the resource file and store it. Resource file transmission between the first terminal and the second terminal is realized, cumbersome operations of transmitting resource files are avoided, and resource file transmission efficiency is improved.
  • Figure 4 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure. As shown in Figure 4, it includes:
  • the first terminal obtains the application information of the first application based on the locally installed application and enters S402;
  • S402 The first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application, and enters S403;
  • S403 The first terminal sends the first application and the resource file corresponding to the first application to the second terminal at the same time, and enters S404;
  • S404 The second terminal determines that the first application is not installed locally and enters S405;
  • the second terminal receives the first application and installs it, and enters S406;
  • the second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
  • the first terminal can obtain the application information of the first application based on the locally installed application, and determine based on the application information of the first application that the first application and the resource file corresponding to the first application can be externally transmitted. After determining that the first application is not installed locally, the second terminal receives the first application and the resource file corresponding to the first application. Realizes resource file transmission between the first terminal and the second terminal, avoids the cumbersome operation of transmitting resource files, and improves resource file transmission. Transmission efficiency.
  • embodiments of the present disclosure also provide a resource file transmission device.
  • the transmission device can be a chip or an on-chip system in the first terminal, and can also be used in the first terminal to implement the above-mentioned embodiments.
  • the transmission of the resource file can realize the functions performed by the electronic devices in the above embodiments, and these functions can be realized by hardware executing corresponding software.
  • These hardware or software include one or more modules corresponding to the above functions.
  • FIG. 5 is a schematic structural diagram of a resource file transmission device in an embodiment of the present disclosure.
  • the resource file transmission device 500 includes: an acquisition module 501 configured to obtain application information of the first application.
  • the first application is an application in the second terminal that needs to obtain a resource file;
  • the execution module 502 is configured to obtain a locally saved resource file associated with the first application according to the application information of the first application, and the resource file is the first application.
  • the output module 503 is configured to send at least the resource file of the first application to the second terminal.
  • the obtaining module 501 is further configured to: receive a file request message sent by the second terminal, the file request message includes first indication information, and the first indication information is used to indicate the first application; according to The first instruction information is to obtain the application information of the first application.
  • the obtaining module 501 is also configured to: before obtaining the application information of the first application, obtain the resource files of multiple locally installed applications; and configure the resource files in the multiple applications to meet preset requirements.
  • the application is determined as the first application.
  • the output module 503 is also configured to: determine that the second terminal does not install the first application; and send the first application and resource files to the second terminal.
  • the execution module 502 is also configured to: determine that the first application is locally installed according to the application information of the first application; and obtain the resources associated with the first application from the local installation directory of the first application. document.
  • embodiments of the present disclosure also provide a resource file transmission device.
  • the transmission device can be a chip or an on-chip system in the second terminal, and can also be used in the second terminal to implement the above-mentioned embodiments. function module of the method described above.
  • the resource file transmission device can realize the functions performed by the electronic devices in the above embodiments, and these functions can be realized by hardware executing corresponding software. These hardware or software include one or more modules corresponding to the above functions.
  • FIG. 6 is a schematic structural diagram of another resource file transmission device in an embodiment of the present disclosure.
  • the resource file transmission device 600 includes: a receiving module 601 configured to receive at least a message sent by a first terminal
  • the resource file associated with the first application is an application in the second terminal that needs to obtain the resource file
  • the installation module 602 is configured to add the resource file to the installation directory of the first application.
  • the receiving module 601 is further configured to: before receiving at least the resource file associated with the first application sent by the first terminal, send a file request message to the first terminal, where the file request message includes the first One indication information, the first indication information is used to indicate the first application.
  • the receiving module 601 is further configured to: receive the first application and resource files sent by the first terminal.
  • the receiving module 601 is further configured to: after receiving the first application and resource file sent by the first terminal, obtain the application information of the first application; and determine whether to Install the first application; install the first application.
  • FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. As shown in FIG. 7 , the terminal 700 can use general computer hardware, including a processor 701 and a memory 702 .
  • the at least one processor may constitute any physical device having circuitry that performs logical operations on one or more inputs.
  • at least one processor may include one or more integrated circuits (ICs), including application specific integrated circuits (ASICs), microchips, microcontrollers, microprocessors, all or part of a central processing unit (CPU), graphics processing unit unit (GPU), digital signal processor (DSP), field programmable gate array (FPGA), or other circuitry suitable for executing instructions or performing logical operations.
  • ICs integrated circuits
  • ASICs application specific integrated circuits
  • microcontrollers microprocessors, all or part of a central processing unit (CPU), graphics processing unit unit (GPU), digital signal processor (DSP), field programmable gate array (FPGA), or other circuitry suitable for executing instructions or performing logical operations.
  • Instructions for execution by the at least one processor may, for example, be preloaded into memory integrated with or embedded in the controller, or may be stored in separate memory.
  • Memory may include random access memory (RAM), read only memory (ROM), hard disk, optical disk, magnetic media, flash memory, other permanent, fixed or volatile memory, or any other mechanism capable of storing instructions.
  • at least one processor may include more than one processor. Each processor may have a similar structure, or the processors may have different configurations that are electrically connected or disconnected from each other. For example, the processor may be a separate circuit or integrated in a single circuit. When more than one processor is used, the processors may be configured to operate independently or cooperatively. Processors may be coupled electrically, magnetically, optically, acoustically, mechanically, or by other means that allow them to interact.
  • the present disclosure also provides a computer-readable storage medium on which computer instructions are stored, and the instructions are used by a processor to execute the steps of the above resource file transmission method.
  • Memory 702 may include computer storage media in the form of volatile and/or non-volatile memory, such as read-only memory and/or random access memory. Memory 702 may store an operating system, application programs, other program modules, executable code, program data, user data, and the like.
  • the above-mentioned memory 702 stores computer execution instructions for realizing the functions of each module in FIG. 5 and FIG. 6 .
  • the functions/implementation processes of each module in Figures 5 and 6 can be called into the memory 702 through the processor 701 in Figure 7 This is implemented by executing instructions stored in the computer.
  • specific implementation processes and functions please refer to the above-mentioned related embodiments.
  • the present disclosure provides a resource file transmission method, device, equipment and storage medium.
  • the first terminal obtains the application information of the first application
  • the locally saved resource file associated with the first application is sent to the second terminal.
  • the second terminal The resource file sent by the first terminal is received and stored. In this way, the resource file transmission between the first terminal and the second terminal is realized, cumbersome operations of transmitting the resource file are avoided, and the transmission efficiency of the resource file is improved.
  • the resource file transmission method, device, equipment and storage medium provided by the present disclosure are reproducible and can be used in a variety of industrial applications.
  • the resource file transmission method, device, equipment and storage medium of the present disclosure can be used in the field of data transmission technology.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Provided in the present disclosure are a resource file transmission method and apparatus, and a device and a storage medium, which can be applied to the field of data transmission. The resource file transmission method comprises: a first terminal obtaining application information of a first application, wherein the first application is an application in a second terminal that needs to acquire a resource file; the first terminal obtaining, according to the application information of the first application, a locally stored resource file that is associated with the first application, wherein the resource file is a necessary file of the first application during operation; and the first terminal at least sending to the second terminal the resource file of the first application. By means of the present disclosure, when a first terminal obtains application information of a first application, a locally stored resource file that is associated with the first application is sent to a second terminal, such that resource file transmission between the first terminal and the second terminal is realized, thereby avoiding a tedious operation of acquiring the resource file performed by a user, and improving the transmission efficiency of the resource file.

Description

资源文件的传输方法、装置、设备及存储介质Resource file transmission methods, devices, equipment and storage media
相关申请的交叉引用Cross-references to related applications
本公开要求于2022年05月24日提交中国国家知识产权局的申请号为202210570260.7、名称为“资源文件的传输方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This disclosure requires the priority of the Chinese patent application with application number 202210570260.7 and titled "Resource File Transmission Method, Device, Equipment and Storage Medium" submitted to the State Intellectual Property Office of China on May 24, 2022. The entire content of it is approved by This reference is incorporated into this application.
技术领域Technical field
本公开涉及数据传输技术领域,尤其涉及一种资源文件的传输方法、装置、设备及存储介质。The present disclosure relates to the field of data transmission technology, and in particular, to a resource file transmission method, device, equipment and storage medium.
背景技术Background technique
随着电子技术的发展,终端设备的功能也越来越强大,终端设备可以通过安装应用(也可以称为应用程序)执行其强大的功能。With the development of electronic technology, the functions of terminal devices are becoming more and more powerful. The terminal devices can perform their powerful functions by installing applications (also called applications).
应用一般通过应用商店进行下载安装。部分应用为了适配应用商店的要求,会将涉及的代码和资源划分为应用包和资源文件。由于应用包和资源文件分开存储在不同的位置,因此导致用户下载应用包时并不会同时下载资源文件,在用户打开应用发现还需要去获取资源文件才会去下载资源文件,这致使获取资源文件的整个过程非常繁琐。Applications are generally downloaded and installed through the app store. In order to adapt to the requirements of the app store, some applications will divide the code and resources involved into application packages and resource files. Since the application package and resource files are stored in different locations, the resource files are not downloaded at the same time when the user downloads the application package. When the user opens the application, he or she needs to obtain the resource file before downloading the resource file. This results in the difficulty in obtaining the resource. The entire process of filing is very tedious.
所以,相关技术中并不存在一种合适的资源文件的传输方法。Therefore, there is no suitable resource file transmission method in the related technology.
发明内容Contents of the invention
本公开提供了一种资源文件的传输方法、装置、设备及存储介质,以实现简化资源文件的传输过程,并提高传输效率。The present disclosure provides a resource file transmission method, device, equipment and storage medium to simplify the resource file transmission process and improve transmission efficiency.
第一方面,本公开提供一种资源文件的传输方法,包括:第一终端获得第一应用的应用信息,第一应用为第二终端中需要获取资源文件的应用;第一终端根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件,资源文件为第一应用在运行时的必要文件;第一终端至少将第一应用的资源文件发送给第二终端。In a first aspect, the present disclosure provides a resource file transmission method, which includes: a first terminal obtains application information of a first application, and the first application is an application in a second terminal that needs to obtain resource files; the first terminal obtains the resource file according to the first application. The application information of the first application is obtained, and the resource file associated with the first application is obtained locally. The resource file is a necessary file when the first application is running; the first terminal sends at least the resource file of the first application to the second terminal.
在一些可能的实施方式中,第一终端获得第一应用的应用信息,可以包括:第一终端接收第二终端发送的文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用;第一终端根据第一指示信息,获得第一应用的应用信息。In some possible implementations, the first terminal obtaining the application information of the first application may include: the first terminal receives a file request message sent by the second terminal, the file request message includes first indication information, and the first indication information is Instructing the first application; the first terminal obtains application information of the first application according to the first instruction information.
在一些可能的实施方式中,文件请求消息中包含有明确的请求指令,第一指示消息包含指示第一应用的标识符。In some possible implementations, the file request message contains an explicit request instruction, and the first instruction message includes an identifier indicating the first application.
在一些可能的实施方式中,在第一终端获得第一应用的应用信息之前,方法还可以包括:第一终端获取本地安装的多个应用的资源文件;第一终端设备将多个应用中资源文件满足预设要求的应用确定为第一应用。 In some possible implementations, before the first terminal obtains the application information of the first application, the method may also include: the first terminal obtains resource files of multiple locally installed applications; the first terminal device obtains the resources in the multiple applications The application whose files meet the preset requirements is determined as the first application.
在一些可能的实施方式中,第一终端至少将第一应用的资源文件发送给第二终端,可以包括:第一终端确定第二终端未安装第一应用;第一终端向第二终端发送第一应用和资源文件。In some possible implementations, the first terminal sends at least the resource file of the first application to the second terminal, which may include: the first terminal determines that the second terminal does not install the first application; the first terminal sends the first application to the second terminal. - Application and resource files.
在一些可能的实施方式中,第一终端根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件,可以包括:第一终端根据第一应用的应用信息,确定本地安装有第一应用;第一终端从第一应用的本地安装目录中获取第一应用关联的资源文件。In some possible implementations, the first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application, which may include: the first terminal determines that the locally installed resource file of the first application is locally installed based on the application information of the first application. An application; the first terminal obtains the resource file associated with the first application from the local installation directory of the first application.
在一些可能的实施方式中,应用信息包括:应用名称、版本号、关联资源文件和资源文件版本号中的至少一个。In some possible implementations, the application information includes: at least one of an application name, a version number, an associated resource file, and a resource file version number.
第二方面,本公开提供另一种资源文件的传输的方法,包括:第二终端至少接收第一终端发送的第一应用关联的资源文件,第一应用为第二终端中需要获取资源文件的应用;第二终端将资源文件添加至第一应用的安装目录下。In a second aspect, the present disclosure provides another method for transmitting resource files, including: a second terminal receiving at least a resource file associated with a first application sent by a first terminal, and the first application is a resource file in the second terminal that needs to be obtained. application; the second terminal adds the resource file to the installation directory of the first application.
在一些可能的实施方式中,在第二终端至少接收第一终端发送的第一应用关联的资源文件之前,方法还可以包括:第二终端向第一终端发送文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用。In some possible implementations, before the second terminal receives at least the resource file associated with the first application sent by the first terminal, the method may further include: the second terminal sends a file request message to the first terminal, where the file request message includes The first indication information is used to indicate the first application.
在一些可能的实施方式中,第二终端至少接收第一终端发送的第一应用关联的资源文件,可以包括:第二终端接收第一终端发送第一应用和资源文件。In some possible implementations, the second terminal receives at least the resource file associated with the first application sent by the first terminal, which may include: the second terminal receives the first application and resource file sent by the first terminal.
在一些可能的实施方式中,在第二终端接收第一终端发送第一应用和资源文件之后,方法还可以包括:第二终端获得第一应用的应用信息;第二终端根据第一应用的应用信息,确定未安装第一应用;第二终端安装第一应用。In some possible implementations, after the second terminal receives the first application and resource file sent by the first terminal, the method may further include: the second terminal obtains the application information of the first application; the second terminal obtains the application information of the first application according to the application information of the first application. information, it is determined that the first application is not installed; the second terminal installs the first application.
第三方面,本公开提供又一种资源文件的传输方法,包括第二终端向第一终端发送文件请求消息;第一终端根据发送的文件请求消息获得第一应用的应用信息;第一终端根据第一应用的应用信息确定发送第一应用对应的资源文件;第一终端向第二终端发送第一应用对应的资源文件;第二终端接收第一应用对应的资源文件并将资源文件添加至第一应用的安装目录下。In a third aspect, the present disclosure provides another resource file transmission method, which includes the second terminal sending a file request message to the first terminal; the first terminal obtaining the application information of the first application according to the sent file request message; and the first terminal obtaining the application information of the first application according to the sent file request message. The application information of the first application determines to send the resource file corresponding to the first application; the first terminal sends the resource file corresponding to the first application to the second terminal; the second terminal receives the resource file corresponding to the first application and adds the resource file to the second terminal. An application's installation directory.
第四方面,本公开提供再一种资源文件的传输方法,包括:第一终端根据本地安装的应用获得第一应用的应用信息;第一终端根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件;第一终端向第二终端同时发送第一应用和第一应用对应的资源文件;第二终端确定本地未安装第一应用;第二终端接收第一应用并安装;第二终端接收第一应用对应的资源文件并将资源文件添加至第一应用的安装目录下。In a fourth aspect, the present disclosure provides yet another resource file transmission method, including: the first terminal obtains the application information of the first application based on the locally installed application; the first terminal obtains the locally saved third application based on the application information of the first application. An application-associated resource file; the first terminal simultaneously sends the first application and the resource file corresponding to the first application to the second terminal; the second terminal determines that the first application is not installed locally; the second terminal receives the first application and installs it; The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
第五方面,本公开提供一种资源文件的传输装置,该装置可以为第一终端中的芯片或者片上系统,还可以为第一终端中用于实现第一方面及其任一种可能的实施方式的功能模块。该资源文件的传输装置可以实现第一方面及其任一种可能的实施方式中第一终端所执 行的功能,功能可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。该资源文件的传输装置包括:获得模块,被配置用于获得第一应用的应用信息,第一应用为第二终端中需要获取资源文件的应用;执行模块,被配置用于根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件,资源文件为第一应用在运行时的必要文件;输出模块,被配置用于至少将第一应用的资源文件发送给第二终端。In a fifth aspect, the present disclosure provides a device for transmitting resource files. The device may be a chip or a system-on-chip in a first terminal. It may also be used in the first terminal to implement the first aspect and any possible implementation thereof. function module. The resource file transmission device can implement the first aspect and any possible implementation manner thereof performed by the first terminal. The functions of the line can be realized by hardware execution and corresponding software. Hardware or software includes one or more modules corresponding to the above functions. The resource file transmission device includes: an acquisition module configured to obtain application information of a first application, and the first application is an application in the second terminal that needs to obtain resource files; and an execution module configured to obtain the resource file according to the first application. Application information: obtain locally saved resource files associated with the first application. The resource files are necessary files for the first application when running; the output module is configured to send at least the resource files of the first application to the second terminal.
在一些可能的实施方式中,获得模块,还可以被配置用于:接收第二终端发送的文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用;根据第一指示信息,获得第一应用的应用信息。In some possible implementations, the obtaining module may also be configured to: receive a file request message sent by the second terminal, where the file request message includes first indication information, and the first indication information is used to indicate the first application; according to The first instruction information is to obtain the application information of the first application.
在一些可能的实施方式中,获得模块,还可以被配置用于,在获得第一应用的应用信息之前,获取本地安装的多个应用的资源文件;将多个应用中资源文件满足预设要求的应用确定为第一应用。In some possible implementations, the obtaining module may also be configured to obtain resource files of multiple locally installed applications before obtaining the application information of the first application; and configure the resource files in the multiple applications to meet preset requirements. The application is determined as the first application.
在一些可能的实施方式中,输出模块,还可以被配置用于:确定第二终端未安装第一应用;向第二终端发送第一应用和资源文件。In some possible implementations, the output module may also be configured to: determine that the second terminal does not install the first application; and send the first application and resource files to the second terminal.
在一些可能的实施方式中,执行模块,还可以被配置用于:根据第一应用的应用信息,确定本地安装有第一应用;从第一应用的本地安装目录中获取第一应用关联的资源文件。In some possible implementations, the execution module may also be configured to: determine that the first application is locally installed according to the application information of the first application; and obtain resources associated with the first application from the local installation directory of the first application. document.
第六方面,本公开提供一种资源文件的传输装置,该装置可以为第二终端中的芯片或者片上系统,还可以为第二终端中用于实现第一方面及其任一种可能的实施方式的功能模块。该资源文件的传输装置可以实现第二方面及其任一种可能的实施方式第二终端所执行的功能,功能可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个上述功能相应的模块。该资源文件的传输装置包括:接收模块,被配置用于至少接收第一终端发送的第一应用关联的资源文件,第一应用为第二终端中需要获取资源文件的应用;安装模块,被配置用于将资源文件添加至第一应用的安装目录下。In a sixth aspect, the present disclosure provides a device for transmitting resource files. The device can be a chip or a system-on-chip in a second terminal. It can also be used in the second terminal to implement the first aspect and any possible implementation thereof. function module. The resource file transmission device can realize the function performed by the second terminal of the second aspect and any of its possible implementations, and the function can be realized by hardware executing corresponding software. Hardware or software includes one or more modules corresponding to the above functions. The resource file transmission device includes: a receiving module configured to receive at least a resource file associated with a first application sent by the first terminal, where the first application is an application in the second terminal that needs to obtain the resource file; an installation module configured Used to add resource files to the installation directory of the first application.
在一些可能的实施方式中,接收模块,还可以被配置用于:在至少接收第一终端发送的第一应用关联的资源文件之前,向第一终端发送文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用。In some possible implementations, the receiving module may also be configured to: before receiving at least the resource file associated with the first application sent by the first terminal, send a file request message to the first terminal, where the file request message includes the first One indication information, the first indication information is used to indicate the first application.
在一些可能的实施方式中,接收模块,还可以被配置用于:接收第一终端发送第一应用和资源文件。In some possible implementations, the receiving module may also be configured to: receive the first application and resource files sent by the first terminal.
在一些可能的实施方式中,接收模块,还可以被配置用于:在接收第一终端发送第一应用和资源文件之后,获得第一应用的应用信息;根据第一应用的应用信息,确定未安装第一应用;安装第一应用。In some possible implementations, the receiving module may also be configured to: after receiving the first application and resource file sent by the first terminal, obtain the application information of the first application; and determine whether to Install the first application; install the first application.
第七方面,本公开提供一种终端,包括:用于存储处理器可执行指令的存储器;处理器;其中,处理器被配置为:用于执行可执行指令时,以实现如第一方面、第二方面、第 三方面、第四方面及其任一可能的实施方式所述的方法。In a seventh aspect, the present disclosure provides a terminal, including: a memory for storing processor-executable instructions; a processor; wherein the processor is configured to: execute the executable instructions to implement the first aspect, The second aspect, the The method described in the third aspect, the fourth aspect and any possible implementation thereof.
第八方面,本公开提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,计算机可执行指令被处理器执行后能够实现如第一方面、第二方面、第三方面、第四方面及其任一种可能的实施方式所述的方法。In an eighth aspect, the present disclosure provides a computer-readable storage medium that stores computer-executable instructions. After the computer-executable instructions are executed by a processor, the computer-readable storage medium can implement the first aspect, the second aspect, and the third aspect. The method described in the aspect, the fourth aspect and any possible implementation manner thereof.
本公开提供的技术方案与相关技术相比存在的有益效果是:Compared with related technologies, the beneficial effects of the technical solutions provided by this disclosure are:
在本公开中,通过第一终端获得第一应用的应用信息时,将本地保存的第一应用关联的资源文件发送给第二终端,第二终端接收第一终端发送的资源文件,并进行存储,如此,实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传输效率。In the present disclosure, when the application information of the first application is obtained through the first terminal, the locally saved resource file associated with the first application is sent to the second terminal, and the second terminal receives the resource file sent by the first terminal and stores it. , In this way, the resource file transmission between the first terminal and the second terminal is realized, the cumbersome operation of transmitting the resource file is avoided, and the transmission efficiency of the resource file is improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开的保护范围。It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit the scope of the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是本公开实施例中的资源文件的传输方法的一种实施流程示意图;Figure 1 is a schematic flowchart of an implementation of a resource file transmission method in an embodiment of the present disclosure;
图2是本公开实施例中的资源文件的传输方法的另一种实施流程示意图;Figure 2 is a schematic flowchart of another implementation of a resource file transmission method in an embodiment of the present disclosure;
图3是本公开实施例中的资源文件的传输方法的又一种实施流程示意图;Figure 3 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure;
图4是本公开实施例中的资源文件的传输方法的再一种实施流程示意图;Figure 4 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure;
图5是本公开实施例中的一种资源文件的传输装置的结构示意图;Figure 5 is a schematic structural diagram of a resource file transmission device in an embodiment of the present disclosure;
图6是本公开实施例中的一种资源文件的传输装置的另一结构示意图;Figure 6 is another structural schematic diagram of a resource file transmission device in an embodiment of the present disclosure;
图7是本公开实施例中的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
图中:500、600-资源文件的传输装置;501-获得模块;502-执行模块;503-输出模块;601-接收模块;602-安装模块;700-终端;701-处理器;702-存储器。In the figure: 500, 600 - resource file transmission device; 501 - acquisition module; 502 - execution module; 503 - output module; 601 - receiving module; 602 - installation module; 700 - terminal; 701 - processor; 702 - memory .
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,否则不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of means consistent with aspects of the disclosure as detailed in the appended claims.
为了说明本公开所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present disclosure, specific examples will be described below.
随着互联网技术的飞速发展,智能终端也被普及开来。常见的智能终端包括智能手机、智能手表、掌上电脑、可穿戴设备等。为了满足用户的需求,例如,社交、游戏等需求,终端(如智能手机、平板电脑、笔记本电脑等)上通常需要安装各种应用程序。一般通过 终端推荐的应用商店(也可以称为应用市场)来获取应用程序,实现应用程序的安装包安装。With the rapid development of Internet technology, smart terminals have also become popular. Common smart terminals include smartphones, smart watches, PDAs, wearable devices, etc. In order to meet user needs, such as social networking, gaming, etc., various applications usually need to be installed on terminals (such as smartphones, tablets, laptops, etc.). generally passed Use the application store recommended by the terminal (also known as the application market) to obtain the application and implement the installation package installation of the application.
通常,应用商店对应用程序开发人员提供的应用程序包(如安卓系统中的安装文件(.apk)、IOS系统中的安装文件(.ios)、windows系统中的安装文件(.exe)等)的大小存在要求。例如,安卓系统的应用商店要求提供给用户下载的压缩后安装程序(或称为安装包、安装文件等)的大小不超过100MB。对于大多数应用程序而言,应用商店提出的这个要求不会对应用程序的下载产生影响,这是因为符合要求的空间足够存放应用程序的所有代码和资源。然而,有些应用程序需要更多空间存放高保真图形、媒体文件及其他大型资源,就存在不能够符合应用商店的要求的情况。为此,应用商店提出了一种资源文件以补充安装文件的资源,例如,安卓系统中游戏应用的通用数据包(.obb)。应用的运行依赖于相应的资源文件。Usually, app stores provide application packages (such as installation files (.apk) in Android systems, installation files (.ios) in IOS systems, installation files (.exe) in Windows systems, etc.) provided by application developers. There are size requirements. For example, the Android app store requires that the size of the compressed installation program (also known as installation package, installation file, etc.) provided for users to download does not exceed 100MB. For most apps, this requirement from the App Store will not affect the download of the app because the space required is sufficient to store all of the app's code and resources. However, some apps require more space for high-fidelity graphics, media files, and other large resources and may not meet App Store requirements. To this end, the app store proposes a resource file to supplement the resources of the installation file, for example, the universal data package (.obb) for game applications in Android systems. The running of the application depends on the corresponding resource files.
需要说明的是,上述“.apk”表示扩展名为apk的应用程序,“.ios”表示扩展名为ios的应用程序,“.exe”表示扩展名为exe的应用程序,“.obb”表示扩展名为obb的资源文件。It should be noted that the above ".apk" represents an application with the extension apk, ".ios" represents an application with the extension ios, ".exe" represents an application with the extension exe, and ".obb" represents Resource files with the extension obb.
在实际应用中,同一应用的安装程序和资源文件往往是独立的。所以,当用户在安装程序完成安装,并运行应用之后,需要额外下载相应的资源文件,才能够触发应用中的某些功能,也就是说,只有在下载资源文件之后,该应用才能视为正式运行。可见,在这种情况下,存在资源文件传输效率低、传输操作复杂等问题。尤其是在网络状况比较差的情况下,资源文件可能会无法下载或者下载时间过长,从而严重影响应用程序的使用,进而导致用户体验较差。In actual applications, the installer and resource files of the same application are often independent. Therefore, when the user completes the installation of the installer and runs the application, he or she needs to additionally download the corresponding resource files to trigger certain functions in the application. In other words, the application can be considered official only after downloading the resource files. run. It can be seen that in this case, there are problems such as low resource file transmission efficiency and complicated transmission operations. Especially when the network condition is poor, resource files may not be downloaded or may take too long to download, which seriously affects the use of the application and results in poor user experience.
所以,并不存在一种合适的资源文件的传输方法。Therefore, there is no suitable method for transmitting resource files.
为了解决上述问题,本公开实施例提供一种数据传输系统,包括:第一终端和第二终端。其中,第一终端和第二终端可以为智能手机、平板电脑、台式电脑、个人数字助理等。第一终端可以实现与第二终端的传输。其中,第一终端可为传输的发送终端,第二终端可为传输的接收终端;或者,第二终端可为传输的发送终端,第一终端可为传输的接收终端。In order to solve the above problem, embodiments of the present disclosure provide a data transmission system, including: a first terminal and a second terminal. Among them, the first terminal and the second terminal can be a smartphone, a tablet computer, a desktop computer, a personal digital assistant, etc. The first terminal can implement transmission with the second terminal. The first terminal may be a transmission sending terminal, and the second terminal may be a transmission receiving terminal; or the second terminal may be a transmission sending terminal, and the first terminal may be a transmission receiving terminal.
本公开实施例适用于两个终端之间发送大型的资源文件或数据量超过一定阈值的资源文件。例如,在第二终端想要实现游戏功能时,第一终端可以将游戏的资源文件传输给第二终端,第二终端接收资源文件并进行存储,使第二终端原有的游戏应用得以运行。这种情况下,第一终端可以为智能手机,第二终端也可以为智能手机。或者,在第二终端想要实现接收资源文件数据的功能时,第一终端可以将存储的资源文件数据传输给第二终端,使第二终端完成资源文件数据的接收。这种情况下,第一终端可以为带存储功能的路由器,第二终端可以为智能手机。The embodiments of this disclosure are suitable for sending large resource files or resource files whose data volume exceeds a certain threshold between two terminals. For example, when the second terminal wants to implement a game function, the first terminal can transfer the resource file of the game to the second terminal, and the second terminal receives the resource file and stores it, so that the original game application of the second terminal can be run. In this case, the first terminal may be a smartphone, and the second terminal may also be a smartphone. Or, when the second terminal wants to implement the function of receiving resource file data, the first terminal can transmit the stored resource file data to the second terminal, so that the second terminal can complete the reception of the resource file data. In this case, the first terminal may be a router with storage function, and the second terminal may be a smartphone.
结合上述数据传输系统的结构,以及,以第一终端和第二终端之间进行游戏资源文件 传输的场景为例,对本公开实施例进行描述。本公开实施例还提供一种资源文件的传输方法,以实现资源文件的传输,提高传输效率,并避免繁复的传输操作,进而提升用户体验。Combined with the structure of the above data transmission system, and the game resource file is transferred between the first terminal and the second terminal The transmission scenario is taken as an example to describe the embodiments of the present disclosure. Embodiments of the present disclosure also provide a resource file transmission method to realize resource file transmission, improve transmission efficiency, and avoid complicated transmission operations, thereby improving user experience.
图1为本公开实施例中的资源文件的传输方法的一种实施流程示意图,参见图1所示,该资源文件的传输方法可以包括S101至S103。Figure 1 is a schematic flowchart of an implementation of a resource file transmission method in an embodiment of the present disclosure. Referring to Figure 1, the resource file transmission method may include S101 to S103.
S101,第一终端获得第一应用的应用信息。S101. The first terminal obtains application information of the first application.
其中,应用信息可以包括:应用名称、版本号、关联资源文件和资源文件版本号中的至少一个。The application information may include: at least one of an application name, a version number, an associated resource file, and a resource file version number.
可选地,第一应用可以为第二终端中需要获取资源文件的应用程序。例如,在第二终端未安装有任一应用程序的情况下,第二终端中想要安装的应用可以为第一应用;或者,在第二终端安装有应用程序而未在相应存储目录中查找到该应用程序对应的资源文件的情况下,该应用程序可以为第一应用;或者,在第二终端安装有应用程序但该应用程序对应资源文件的版本号较低的情况下,该应用程序可以为第一应用。Optionally, the first application may be an application in the second terminal that needs to obtain resource files. For example, when no application is installed on the second terminal, the application to be installed in the second terminal may be the first application; or, the application is installed on the second terminal but is not searched in the corresponding storage directory. If the resource file corresponding to the application program is found, the application program may be the first application; or, if the application program is installed on the second terminal but the version number of the resource file corresponding to the application program is lower, the application program may Can be the first application.
应理解的,第一终端执行S101,第一终端可以获得第二终端中需要获取资源文件的第一应用,进而获得第一应用的应用信息。It should be understood that when the first terminal executes S101, the first terminal can obtain the first application in the second terminal that needs to obtain the resource file, and then obtain the application information of the first application.
在一些可能的实施方式中,S101可以且不限存在以下情况。In some possible implementations, S101 may be, but is not limited to, the following situations.
第一种可能的情况,第一终端接收第二终端发送的文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用;第一终端根据第一指示信息,获得第一应用的应用信息。The first possible situation is that the first terminal receives a file request message sent by the second terminal. The file request message includes first indication information, and the first indication information is used to instruct the first application; the first terminal, according to the first indication information, Get the application information of the first application.
其中,文件请求消息中包含有明确的请求指令,第一指示消息包含指示第一应用的标识符。例如,在第二终端需要获取第一应用的资源文件时,第二终端可以将第一应用的应用名称作为第一指示消息,并将该第一指示消息通过文件请求消息发送给第一终端。第一终端获取该第一指示消息后,可以根据应用名称确定第二终端指示的第一应用。The file request message includes a clear request instruction, and the first instruction message includes an identifier indicating the first application. For example, when the second terminal needs to obtain the resource file of the first application, the second terminal may use the application name of the first application as a first instruction message, and send the first instruction message to the first terminal through a file request message. After obtaining the first indication message, the first terminal may determine the first application indicated by the second terminal according to the application name.
应理解的,第二终端向第一终端发送的文件请求消息中,明确指示出第二终端需要第一应用的资源文件。第一终端在接收到上述文件请求消息后,能够根据文件请求消息的指示,获得第一应用。It should be understood that the file request message sent by the second terminal to the first terminal clearly indicates that the second terminal needs the resource file of the first application. After receiving the above file request message, the first terminal can obtain the first application according to the instruction of the file request message.
可选的,第二终端发送的文件请求消息中,还可以将第一应用的应用信息发送给第一终端,进而使第一终端获得第一应用的应用信息。例如,在第二终端安装有第一应用时,第二终端可以获得第一应用的应用信息(应用名称、版本号等),并将该应用信息发送给第一终端。在第二终端未安装有第一应用时,第二终端可以获得第一应用的应用信息(由于第二终端未保存应用,获得的应用信息只包括应用名称),并将该应用信息发送给第一终端。Optionally, in the file request message sent by the second terminal, the application information of the first application may also be sent to the first terminal, so that the first terminal obtains the application information of the first application. For example, when the first application is installed on the second terminal, the second terminal can obtain the application information (application name, version number, etc.) of the first application and send the application information to the first terminal. When the first application is not installed on the second terminal, the second terminal can obtain the application information of the first application (since the second terminal does not save the application, the obtained application information only includes the application name), and sends the application information to the second terminal. a terminal.
示例性的,假设第二终端保存有三个应用,分别记为应用A、应用B和应用C。第一种情况,若第二终端需要获取应用A(即第一应用)的资源文件,则第二终端会将应用A 的应用信息和请求获得应用A的资源文件的消息一同发送到第一终端,第一终端通过获得第二终端的消息获得应用A的应用消息(应用名称、版本号等)。或者,第二种情况,若第二终端需要获取应用D(即第一应用)的资源文件,则第二终端会将未保存应用D的消息和请求获得应用D的资源文件的消息一同发送到第一终端,第一终端通过获得第二终端的消息获得应用D的应用消息(仅应用名称)。For example, it is assumed that the second terminal stores three applications, recorded as application A, application B and application C respectively. In the first case, if the second terminal needs to obtain the resource file of application A (i.e. the first application), the second terminal will obtain the resource file of application A. The application information is sent to the first terminal together with the message requesting to obtain the resource file of application A. The first terminal obtains the application information (application name, version number, etc.) of application A by obtaining the message from the second terminal. Or, in the second case, if the second terminal needs to obtain the resource file of application D (that is, the first application), the second terminal will send a message that application D is not saved together with a message requesting to obtain the resource file of application D. The first terminal obtains the application message (only the application name) of the application D by obtaining the message of the second terminal.
在一些可能的实施方式中,例如,在第一终端安装的应用进行更新后,第一终端也可以将安装文件信息进行更新,发送给第二终端,使第二终端可以通过第一终端发送的安装文件信息选择第一应用。即在第一终端接收第二终端发送的文件请求消息之前,上述方法还可以包括:第一终端可以从本地安装的多个应用中确定至少一个第二应用;第一终端向第二终端发送第二应用的应用信息,第二应用的应用信息用于第二终端从第二应用中确定第一应用。In some possible implementations, for example, after the application installed by the first terminal is updated, the first terminal can also update the installation file information and send it to the second terminal, so that the second terminal can use the application sent by the first terminal. Select the first application for installation file information. That is, before the first terminal receives the file request message sent by the second terminal, the above method may also include: the first terminal may determine at least one second application from a plurality of locally installed applications; the first terminal sends the second application to the second terminal. The application information of the second application is used by the second terminal to determine the first application from the second application.
其中,第二应用为第一终端中安装的任意一个或多个应用,第二应用具有关联的资源文件。The second application is any one or more applications installed in the first terminal, and the second application has associated resource files.
应理解的,第一终端将第二应用的应用信息发送给第二终端,使第二终端能够根据第二应用的应用信息,从中选择需要获取资源文件的第一应用。其中,第一应用为第二应用中的一个或多个应用。It should be understood that the first terminal sends the application information of the second application to the second terminal, so that the second terminal can select the first application that needs to obtain the resource file based on the application information of the second application. The first application is one or more applications in the second application.
示例性的,第二终端可以获取第二应用的应用信息,并将其与第二终端保存的应用的应用信息进行对比,确定出第二终端中没有保存的应用为需要获取资源文件的第一应用。或者,第二终端可以获取第二应用的应用信息,并将其与第二终端保存的应用的应用信息进行对比,确定出资源文件版本较低的应用为需要获取资源文件的第一应用。For example, the second terminal can obtain the application information of the second application, compare it with the application information of the application saved by the second terminal, and determine that the application not saved in the second terminal is the first application that needs to obtain the resource file. application. Alternatively, the second terminal may obtain the application information of the second application, compare it with the application information of the application saved by the second terminal, and determine that the application with a lower version of the resource file is the first application that needs to obtain the resource file.
第二种可能的情况,第一终端可以获取本地安装的多个应用的资源文件;第一终端设备将多个应用中资源文件满足预设要求的应用确定为第一应用。之后,第一终端获得第一应用的应用信息。In the second possible situation, the first terminal can obtain the resource files of multiple locally installed applications; the first terminal device determines the application whose resource files meet the preset requirements among the multiple applications as the first application. Afterwards, the first terminal obtains the application information of the first application.
其中,预设要求为可以根据实际需求进行设定的条件。例如,在需要保证发送的应用程序与资源文件是同一版本的情况下,可以设置预设要求为资源文件的版本号与应用的版本号相符合;或者,在需要保证发送的资源文件版本较新的情况下,可以设置预设要求为资源文件的更新时间符合最近更新,最近更新可以为最近一周更新或最近一月更新等。除上述之外,预设条件的设定还有其他方式,本公开实施例对此不做具体限定。Among them, the preset requirements are conditions that can be set according to actual needs. For example, when you need to ensure that the sent application and resource files are of the same version, you can set the default requirement that the version number of the resource file matches the version number of the application; or, when you need to ensure that the sent resource file version is newer In this case, you can set a preset requirement so that the update time of the resource file matches the latest update, and the latest update can be the update in the last week or the update in the last month, etc. In addition to the above, there are other ways to set the preset conditions, which are not specifically limited in the embodiments of the present disclosure.
应理解的,第一终端设定预设要求,可以使第一终端充分掌握本地安装的资源文件的情况,进而将满足预设要求的资源文件所对应的应用确定为第一应用。这一过程中,第一终端可以实现将本地安装的应用确定为第一应用。It should be understood that setting the preset requirements by the first terminal can enable the first terminal to fully understand the situation of locally installed resource files, and then determine the application corresponding to the resource file that meets the preset requirements as the first application. In this process, the first terminal can determine the locally installed application as the first application.
示例性的,第一终端会获得已安装的应用列表,根据列表自动检查应用列表中的应用 的资源文件。下面,以obb类型的资源文件为例,进行说明。obb资源文件通常存储在“存储卡/Android/obb/[包名]”目录下,第一终端可以根据应用的名称(包名)在该目录下查找应用是否存在obb资源文件。即,若存在“存储卡/Android/obb/[A]”,则表示应用A存在obb资源文件。进一步地,obb资源文件的命名规则为,主obb资源文件是“main.版本号.com.xxx.xxx.obb”,补丁obb资源文件是“patch.版本号.com.xxx.xxx.obb”。因此,通过obb资源文件的名称获取obb资源文件的版本和类型,将满足预设条件要求的obb资源文件对应的应用确定为第一应用。For example, the first terminal will obtain a list of installed applications and automatically check the applications in the application list according to the list. resource files. Next, take the obb type resource file as an example for explanation. The obb resource file is usually stored in the "memory card/Android/obb/[package name]" directory. The first terminal can search whether the application has an obb resource file in the directory according to the name of the application (package name). That is, if "Memory Card/Android/obb/[A]" exists, it means that application A has an obb resource file. Furthermore, the naming rules for obb resource files are: the main obb resource file is "main.version number.com.xxx.xxx.obb", and the patch obb resource file is "patch.version number.com.xxx.xxx.obb" . Therefore, the version and type of the obb resource file are obtained through the name of the obb resource file, and the application corresponding to the obb resource file that meets the preset condition requirements is determined as the first application.
S102,第一终端根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件。S102: The first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application.
应理解的,第一终端在执行S101后,可以获得第一应用的应用信息。然后,第一终端可以根据第一应用的应用信息,在本地保存的文件中获得第一应用关联的资源文件。可选的,第一终端还可以获得该资源文件的存储目录。It should be understood that after executing S101, the first terminal can obtain the application information of the first application. Then, the first terminal can obtain the resource file associated with the first application from the locally saved file according to the application information of the first application. Optionally, the first terminal can also obtain the storage directory of the resource file.
示例性的,假设在S101中,第二终端从第一终端发送的第二应用信息中指示出第一应用A。那么,第一终端安装的应用A就会被第一终端确认为第一应用,随后第一终端获取应用A的应用信息。由于第一终端安装有应用A,因此,第一终端可以获得的应用A的应用信息包括应用名称(A)、版本号(3.30)、资源文件版本号(3.30)。第一终端根据上述应用信息(如应用名称),获得应用A的资源文件以及该资源文件的存储目录。For example, assume that in S101, the second terminal indicates the first application A from the second application information sent by the first terminal. Then, the application A installed by the first terminal will be confirmed by the first terminal as the first application, and then the first terminal obtains the application information of application A. Since application A is installed on the first terminal, the application information of application A that the first terminal can obtain includes application name (A), version number (3.30), and resource file version number (3.30). The first terminal obtains the resource file of application A and the storage directory of the resource file based on the above application information (such as application name).
在一些可能的实施方式中,第二终端确定第一应用后,会将第一应用的应用信息发送给第一终端,第一终端通过接收第二终端发送的应用信息确定第一应用的应用信息。因为第一应用为第二终端确定的,所以第一终端可能安装有第一应用,也可能未安装有第一应用。在这种情况下,第一终端可以根据第一应用的应用信息,确定本地安装有第一应用,然后,第一终端从第一应用的本地安装目录中获取第一应用关联的资源文件。In some possible implementations, after the second terminal determines the first application, it will send the application information of the first application to the first terminal, and the first terminal determines the application information of the first application by receiving the application information sent by the second terminal. . Because the first application is determined by the second terminal, the first terminal may or may not have the first application installed. In this case, the first terminal may determine that the first application is locally installed based on the application information of the first application, and then obtain the resource file associated with the first application from the local installation directory of the first application.
应理解的,第一终端获取到第一应用的应用信息后,能够对应确定出本地是否安装有第一应用。若安装有第一应用,第一终端就可以根据第一应用的安装目录,获取第一应用的关联资源文件。It should be understood that after obtaining the application information of the first application, the first terminal can correspondingly determine whether the first application is installed locally. If the first application is installed, the first terminal can obtain the associated resource file of the first application according to the installation directory of the first application.
示例性的,假设应用A被第二终端确认为第一应用,随后第二终端将应用A的应用信息发送给第一终端。第一终端在接收以及获取第一应用的应用信息后,首先,首先会根据应用信息判断第一终端安装是否安装有应用A,其次,若安装有应用A,则第一终端根据应用A的应用信息,获得应用A的资源文件以及该资源文件的存储目录。For example, it is assumed that application A is confirmed as the first application by the second terminal, and then the second terminal sends the application information of application A to the first terminal. After receiving and acquiring the application information of the first application, the first terminal first determines whether application A is installed on the first terminal based on the application information. Secondly, if application A is installed, the first terminal determines whether application A is installed. Information, obtain the resource files of application A and the storage directory of the resource files.
S103,第一终端至少将第一应用的资源文件发送给第二终端。S103: The first terminal sends at least the resource file of the first application to the second terminal.
应理解的,第一终端在执行S102后,可以获得第一应用的资源文件。然后,第一终端执行S102,可以将资源文件发送给第二终端。可选的,第一终端还可以将资源文件的安装目录同时发送给第二终端。 It should be understood that after executing S102, the first terminal can obtain the resource file of the first application. Then, the first terminal executes S102 and may send the resource file to the second terminal. Optionally, the first terminal can also send the installation directory of the resource file to the second terminal at the same time.
在一些可能的实施方式中,在上述S103中,第一终端还可以确定第二终端未安装第一应用;第一终端向第二终端发送第一应用和资源文件。In some possible implementations, in the above S103, the first terminal may also determine that the second terminal does not install the first application; the first terminal sends the first application and the resource file to the second terminal.
应理解的,第一终端在执行S101后,可以获得第一应用的应用消息。然后,第一终端执行S103,可以通过获得的第一应用的应用消息确定出第二终端是否安装有第一应用。可选的,若第二终端未安装第一应用,则第一终端可以将第一应用和资源文件同时发送给第二终端。It should be understood that after executing S101, the first terminal can obtain the application message of the first application. Then, the first terminal executes S103, and can determine whether the first application is installed on the second terminal through the obtained application message of the first application. Optionally, if the second terminal does not install the first application, the first terminal may send the first application and the resource file to the second terminal at the same time.
示例性的,假设第一终端通过第二终端发送的文件请求消息确定第一应用的应用信息,同时,第二终端发送的文件请求消息中只指示了第一应用的应用名称,没有第一应用的其他信息。那么,第一终端可以确认上述情况下的第二终端中未安装第一应用。应理解的,第一终端还可以通过其他方式获得第二终端中是否安装有第一应用,本公开实施例对此不做具体限定。For example, assume that the first terminal determines the application information of the first application through the file request message sent by the second terminal. At the same time, the file request message sent by the second terminal only indicates the application name of the first application without the first application. of other information. Then, the first terminal can confirm that the first application is not installed in the second terminal in the above situation. It should be understood that the first terminal can also obtain whether the first application is installed in the second terminal through other methods, and this is not specifically limited in the embodiments of the present disclosure.
在上述实施例中,第一终端执行S101至S103,可以获得第一应用的应用信息,进而获得本地保存的第一应用的资源文件,最后将第一应用的资源文件传输给第二终端。上述过程实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传输效率。同时,两个终端可以通过多种方式进行连接,即使是在无网络的状态下,依然能够进行文件传输,增加了资源文件的传输路径,提高了资源文件的传输效率。In the above embodiment, the first terminal executes S101 to S103 to obtain the application information of the first application, then obtains the locally saved resource file of the first application, and finally transmits the resource file of the first application to the second terminal. The above process realizes resource file transmission between the first terminal and the second terminal, avoids cumbersome operations of transmitting resource files, and improves resource file transmission efficiency. At the same time, the two terminals can be connected in a variety of ways. Even if there is no network, file transfer can still be performed, which increases the transmission path of resource files and improves the transmission efficiency of resource files.
基于同样的发明构思,本公开实施例还提供一种资源文件的传输方法,图2为本公开实施例中的资源文件的传输方法的另一种实施流程示意图,参见图2所示,该资源文件的传输方法可以包括S201至S202。Based on the same inventive concept, an embodiment of the disclosure also provides a resource file transmission method. Figure 2 is a schematic flowchart of another implementation of the resource file transmission method in the embodiment of the disclosure. Refer to Figure 2. The resource The file transmission method may include S201 to S202.
S201,第二终端至少接收第一终端发送的第一应用关联的资源文件。S201: The second terminal receives at least the resource file associated with the first application sent by the first terminal.
其中,第一应用为第二终端中需要获取资源文件的应用。例如,在第二终端未安装有任一应用程序的情况下,第二终端中想要安装的应用可以为第一应用;或者,在第二终端安装有应用程序而未在相应存储目录中查找到该应用程序对应的资源文件的情况下,该应用程序可以为第一应用;或者,在第二终端安装有应用程序但该应用程序对应资源文件的版本号较低的情况下,该应用程序可以为第一应用。Wherein, the first application is an application in the second terminal that needs to obtain resource files. For example, when no application is installed on the second terminal, the application to be installed in the second terminal may be the first application; or, the application is installed on the second terminal but is not searched in the corresponding storage directory. If the resource file corresponding to the application program is found, the application program may be the first application; or, if the application program is installed on the second terminal but the version number of the resource file corresponding to the application program is lower, the application program may Can be the first application.
应理解的,在第一终端将第二终端所需的第一应用关联的资源文件进行发送时,第二终端至少能够将该资源文件进行接收并进行存储。It should be understood that when the first terminal sends the resource file associated with the first application required by the second terminal, the second terminal can at least receive the resource file and store it.
在一些可能的实施方式中,S201之前可以且不限存在以下情况。In some possible implementations, the following situations may exist before S201 but are not limited to.
第一种可能的情况,在第二终端可以主动请求获取第一应用的资源文件时,第二终端可以向第一终端发送文件请求消息。其中,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用。 In the first possible situation, when the second terminal can actively request to obtain the resource file of the first application, the second terminal can send a file request message to the first terminal. The file request message includes first indication information, and the first indication information is used to indicate the first application.
应理解的,第二终端可以确定第二终端中需要资源文件的应用,并将其确定为第一应用,进而向第一终端发出文件请求消息,明确指示出第二终端需要第一应用的资源文件。It should be understood that the second terminal can determine an application in the second terminal that requires a resource file, determine it as the first application, and then send a file request message to the first terminal, clearly indicating that the second terminal needs the resources of the first application. document.
第二种可能的情况,在第二终端不能主动请求获取第一应用的资源文件时,第二终端可以接收第一终端发送的第二应用的应用信息,第二应用为第一终端本地安装的多个应用中的至少一个。第二终端从第二应用的应用信息中确定第一应用。The second possible situation is that when the second terminal cannot actively request to obtain the resource file of the first application, the second terminal can receive the application information of the second application sent by the first terminal. The second application is installed locally by the first terminal. At least one of multiple applications. The second terminal determines the first application from the application information of the second application.
应理解的,第一终端可以将本地保存的多个应用中的任意一个或是多个应用(即第二应用)的应用信息发送给第二终端,第二终端通过该应用信息确定出第二终端中需要资源文件的应用(即第一应用)。It should be understood that the first terminal can send the application information of any one or multiple applications (ie, the second application) stored locally to the second terminal, and the second terminal determines the second application through the application information. Applications in the terminal that require resource files (i.e., the first application).
示例性的,第二终端可以通过比对的方法确定出第一应用。假设第二终端接收到的第二应用的应用信息包括应用名称(A),版本号(3.30),资源文件版本号(3.30)。第二终端获得本地保存的应用的应用信息包括应用名称(A),版本号(3.30)。第二终端通过比对上述应用信息,可以获知第二应用中有本地没有的资源文件。当第二终端中需要获取该资源文件时,可以将该资源文件对应的应用确定为第一应用,即应用A。For example, the second terminal may determine the first application through a comparison method. It is assumed that the application information of the second application received by the second terminal includes application name (A), version number (3.30), and resource file version number (3.30). The second terminal obtains the application information of the locally saved application, including the application name (A) and version number (3.30). By comparing the above application information, the second terminal can learn that the second application contains resource files that are not available locally. When the second terminal needs to obtain the resource file, the application corresponding to the resource file can be determined as the first application, that is, application A.
在一些可能的实施方式中,在上述S201中,第二终端还可以接收第一终端发送第一应用和资源文件。第二终端根据第一应用的应用信息,确定未安装第一应用;第二终端安装第一应用。In some possible implementations, in the above S201, the second terminal may also receive the first application and resource files sent by the first terminal. The second terminal determines that the first application is not installed according to the application information of the first application; the second terminal installs the first application.
其中,在第二终端通过第一终端发送的消息获得第一应用的应用名称时,第二终端可以根据应用名称确定未安装该第一应用。或者,在第二终端扫描第一终端发送的资源文件时,第二终端根据资源文件名称确定未安装该第一应用。Wherein, when the second terminal obtains the application name of the first application through the message sent by the first terminal, the second terminal may determine that the first application is not installed based on the application name. Alternatively, when the second terminal scans the resource file sent by the first terminal, the second terminal determines that the first application is not installed based on the name of the resource file.
应理解的,第二终端执行S201,也可以同时接收第一应用和第一应用对应的资源文件。第二终端可以在确定未安装第一应用后,将第一应用进行安装。It should be understood that when the second terminal performs S201, it may also receive the first application and the resource file corresponding to the first application at the same time. The second terminal may install the first application after determining that the first application is not installed.
S202,第二终端将资源文件添加至第一应用的安装目录下。S202. The second terminal adds the resource file to the installation directory of the first application.
应理解的,第二终端执行S201后,至少可以获得第一应用关联的资源文件。然后,第二终端可以将资源文件存储在第一应用的安装目录下,进而使第一应用在使用时能够加载成功资源文件。It should be understood that after the second terminal executes S201, it can at least obtain the resource file associated with the first application. Then, the second terminal can store the resource file in the installation directory of the first application, so that the first application can successfully load the resource file when used.
在一些可能的实施方式中,S202可以且不限存在以下情况。In some possible implementations, S202 may be, but is not limited to, the following situations.
第一种可能的情况,第二终端可以通过第一终端传输的资源文件原有的目录,将资源文件存储于第二终端得对应目录。例如,原资源文件存储在“存储卡/Android/obb/[packagename]/”目录下,就可以将资源文件存储在第二终端的“存储卡/Android/obb/[packagename]/”目录下。In the first possible case, the second terminal can store the resource file in the corresponding directory of the second terminal through the original directory of the resource file transmitted by the first terminal. For example, if the original resource file is stored in the "memory card/Android/obb/[packagename]/" directory, the resource file can be stored in the "memory card/Android/obb/[packagename]/" directory of the second terminal.
第二种可能的情况,第二终端还可以通过预设的存储方式将资源文件存储于相应的目录,其中,预设的的存储方式可以为相关资源文件共有的存储方式,第二终端可以通过学 习共有的存储方式实现资源文件的准确存储。In the second possible situation, the second terminal can also store the resource files in the corresponding directory through a preset storage method. The preset storage method can be a common storage method for related resource files. The second terminal can also store the resource files in the corresponding directory through a preset storage method. study Xi shared storage method to achieve accurate storage of resource files.
在上述实施例中,第二终端执行S201至S202,可以通过至少接收第一终端发送的第一应用关联的资源文件,实现获得所需的资源文件,进而将资源文件进行安装存储,获得成功加载资源文件的第一应用。上述过程实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传输效率。In the above embodiment, the second terminal executes S201 to S202 to obtain the required resource files by at least receiving the resource files associated with the first application sent by the first terminal, and then installs and stores the resource files to obtain successful loading. The first application of resource files. The above process realizes resource file transmission between the first terminal and the second terminal, avoids cumbersome operations of transmitting resource files, and improves resource file transmission efficiency.
下面以实例对本公开实施例中的资源文件的传输过程进行说明。The following uses an example to illustrate the resource file transmission process in the embodiment of the present disclosure.
图3为本公开实施例中的资源文件的传输方法的又一种实施流程示意图。如图3所示,包括:FIG. 3 is a schematic flowchart of another implementation of a resource file transmission method in an embodiment of the present disclosure. As shown in Figure 3, it includes:
S301,第二终端向第一终端发送文件请求消息,进入S302;S301, the second terminal sends a file request message to the first terminal, and enters S302;
S302,第一终端根据发送文件请求消息获得第一应用的应用信息,进入S303;S302: The first terminal obtains the application information of the first application according to sending the file request message, and enters S303;
S303,第一终端根据第一应用的应用信息确定发送第一应用对应的资源文件,进入S304;S303: The first terminal determines to send the resource file corresponding to the first application according to the application information of the first application, and enters S304;
S304,第一终端向第二终端发送第一应用对应的资源文件,进入S305;S304: The first terminal sends the resource file corresponding to the first application to the second terminal, and enters S305;
S305,第二终端接收第一应用对应的资源文件并将资源文件添加至第一应用的安装目录下。S305: The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
在本实施例中,第一终端可以根据第二终端发送的文件请求消息,确定出第二终端需求的第一应用的信息,进而将第一应用对应的资源文件发送给第二终端。第二终端可以接收该资源文件并进行存储。实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传输效率。In this embodiment, the first terminal can determine the information of the first application required by the second terminal according to the file request message sent by the second terminal, and then send the resource file corresponding to the first application to the second terminal. The second terminal can receive the resource file and store it. Resource file transmission between the first terminal and the second terminal is realized, cumbersome operations of transmitting resource files are avoided, and resource file transmission efficiency is improved.
图4为本公开实施例中的资源文件的传输方法的再一种实施流程示意图。如图4所示,包括:Figure 4 is a schematic flowchart of yet another implementation of a resource file transmission method in an embodiment of the present disclosure. As shown in Figure 4, it includes:
S401,第一终端根据本地安装的应用获得第一应用的应用信息,进入S402;S401. The first terminal obtains the application information of the first application based on the locally installed application and enters S402;
S402,第一终端根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件,进入S403;S402: The first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application, and enters S403;
S403,第一终端向第二终端同时发送第一应用和第一应用对应的资源文件,进入S404;S403: The first terminal sends the first application and the resource file corresponding to the first application to the second terminal at the same time, and enters S404;
S404,第二终端确定本地未安装第一应用,进入S405;S404: The second terminal determines that the first application is not installed locally and enters S405;
S405,第二终端接收第一应用并安装,进入S406;S405, the second terminal receives the first application and installs it, and enters S406;
S406,第二终端接收第一应用对应的资源文件并将资源文件添加至第一应用的安装目录下。S406: The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
在本实施例中,第一终端可以根据本地安装的应用获得第一应用的应用信息,并根据第一应用的应用信息确定出可以对外传输第一应用和第一应用对应的资源文件。第二终端确定本地未安装第一应用后,接收第一应用和第一应用对应的资源文件。实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传 输效率。In this embodiment, the first terminal can obtain the application information of the first application based on the locally installed application, and determine based on the application information of the first application that the first application and the resource file corresponding to the first application can be externally transmitted. After determining that the first application is not installed locally, the second terminal receives the first application and the resource file corresponding to the first application. Realizes resource file transmission between the first terminal and the second terminal, avoids the cumbersome operation of transmitting resource files, and improves resource file transmission. Transmission efficiency.
基于相同的发明构思,本公开实施例还提供一种资源文件的传输装置,该传输装置可以为第一终端中的芯片或者片上系统,还可以为第一终端中用于实现上述各个实施例所述的方法的功能模块。该资源文件的传输可以实现上述各实施例中电子设备所执行的功能,这些功能可以通过硬件执行相应的软件实现。这些硬件或软件包括一个或多个上述功能相应的模块。Based on the same inventive concept, embodiments of the present disclosure also provide a resource file transmission device. The transmission device can be a chip or an on-chip system in the first terminal, and can also be used in the first terminal to implement the above-mentioned embodiments. function module of the method described above. The transmission of the resource file can realize the functions performed by the electronic devices in the above embodiments, and these functions can be realized by hardware executing corresponding software. These hardware or software include one or more modules corresponding to the above functions.
图5为本公开实施例中的一种资源文件的传输装置的结构示意图,参见图5所示,该资源文件的传输装置500包括:获得模块501,被配置用于获得第一应用的应用信息,第一应用为第二终端中需要获取资源文件的应用;执行模块502,被配置用于根据第一应用的应用信息,获得本地保存的第一应用关联的资源文件,资源文件为第一应用在运行时的必要文件;输出模块503,被配置用于至少将第一应用的资源文件发送给第二终端。Figure 5 is a schematic structural diagram of a resource file transmission device in an embodiment of the present disclosure. Referring to Figure 5, the resource file transmission device 500 includes: an acquisition module 501 configured to obtain application information of the first application. , the first application is an application in the second terminal that needs to obtain a resource file; the execution module 502 is configured to obtain a locally saved resource file associated with the first application according to the application information of the first application, and the resource file is the first application. Necessary files at runtime; the output module 503 is configured to send at least the resource file of the first application to the second terminal.
在一些可能的实施方式中,获得模块501,还被配置用于:接收第二终端发送的文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用;根据第一指示信息,获得第一应用的应用信息。In some possible implementations, the obtaining module 501 is further configured to: receive a file request message sent by the second terminal, the file request message includes first indication information, and the first indication information is used to indicate the first application; according to The first instruction information is to obtain the application information of the first application.
在一些可能的实施方式中,获得模块501,还被配置用于:在获得第一应用的应用信息之前,获取本地安装的多个应用的资源文件;将多个应用中资源文件满足预设要求的应用确定为第一应用。In some possible implementations, the obtaining module 501 is also configured to: before obtaining the application information of the first application, obtain the resource files of multiple locally installed applications; and configure the resource files in the multiple applications to meet preset requirements. The application is determined as the first application.
在一些可能的实施方式中,输出模块503,还被配置用于:确定第二终端未安装第一应用;向第二终端发送第一应用和资源文件。In some possible implementations, the output module 503 is also configured to: determine that the second terminal does not install the first application; and send the first application and resource files to the second terminal.
在一些可能的实施方式中,执行模块502,还被配置用于:根据第一应用的应用信息,确定本地安装有第一应用;从第一应用的本地安装目录中获取第一应用关联的资源文件。In some possible implementations, the execution module 502 is also configured to: determine that the first application is locally installed according to the application information of the first application; and obtain the resources associated with the first application from the local installation directory of the first application. document.
需要说明的是,获得模块501、执行模块502和输出模块503的具体实现过程可参考图1、图3和图4实施例的详细描述,为了说明书的简洁,这里不再赘述。It should be noted that the specific implementation process of the acquisition module 501, the execution module 502 and the output module 503 can refer to the detailed description of the embodiments in Figure 1, Figure 3 and Figure 4. For the sake of simplicity of the description, they will not be described again here.
基于相同的发明构思,本公开实施例还提供一种资源文件的传输装置,该传输装置可以为第二终端中的芯片或者片上系统,还可以为第二终端中用于实现上述各个实施例所述的方法的功能模块。该资源文件的传输装置可以实现上述各实施例中电子设备所执行的功能,这些功能可以通过硬件执行相应的软件实现。这些硬件或软件包括一个或多个上述功能相应的模块。Based on the same inventive concept, embodiments of the present disclosure also provide a resource file transmission device. The transmission device can be a chip or an on-chip system in the second terminal, and can also be used in the second terminal to implement the above-mentioned embodiments. function module of the method described above. The resource file transmission device can realize the functions performed by the electronic devices in the above embodiments, and these functions can be realized by hardware executing corresponding software. These hardware or software include one or more modules corresponding to the above functions.
图6为本公开实施例中的另一种资源文件的传输装置的结构示意图,参见图6所示,该资源文件的传输装置600包括:接收模块601,被配置用于至少接收第一终端发送的第一应用关联的资源文件,第一应用为第二终端中需要获取资源文件的应用;安装模块602,被配置用于将资源文件添加至第一应用的安装目录下。 FIG. 6 is a schematic structural diagram of another resource file transmission device in an embodiment of the present disclosure. Referring to FIG. 6 , the resource file transmission device 600 includes: a receiving module 601 configured to receive at least a message sent by a first terminal The resource file associated with the first application is an application in the second terminal that needs to obtain the resource file; the installation module 602 is configured to add the resource file to the installation directory of the first application.
在一些可能的实施方式中,接收模块601,还被配置用于:在至少接收第一终端发送的第一应用关联的资源文件之前,向第一终端发送文件请求消息,文件请求消息中包括第一指示信息,第一指示信息用于指示第一应用。In some possible implementations, the receiving module 601 is further configured to: before receiving at least the resource file associated with the first application sent by the first terminal, send a file request message to the first terminal, where the file request message includes the first One indication information, the first indication information is used to indicate the first application.
在一些可能的实施方式中,接收模块601,还被配置用于:接收第一终端发送第一应用和资源文件。In some possible implementations, the receiving module 601 is further configured to: receive the first application and resource files sent by the first terminal.
在一些可能的实施方式中,接收模块601,还被配置用于:在接收第一终端发送第一应用和资源文件之后,获得第一应用的应用信息;根据第一应用的应用信息,确定未安装第一应用;安装第一应用。In some possible implementations, the receiving module 601 is further configured to: after receiving the first application and resource file sent by the first terminal, obtain the application information of the first application; and determine whether to Install the first application; install the first application.
需要说明的是,接收模块601和安装模块602的具体实现过程可参考图2至图4实施例的详细描述,为了说明书的简洁,这里不再赘述。It should be noted that for the specific implementation process of the receiving module 601 and the installation module 602, reference can be made to the detailed description of the embodiments in Figures 2 to 4. For the sake of simplicity of the description, they will not be described again here.
基于相同的发明构思,本公开实施例提供一种终端,该终端可以为上述一个或者多个实施例中所述的第一终端和第二终端。图7为本公开实施例中的一种电子设备的结构示意图,参见图7所示,终端700,可以采用通用的计算机硬件,包括处理器701、存储器702。Based on the same inventive concept, embodiments of the present disclosure provide a terminal, which may be the first terminal and the second terminal described in one or more of the above embodiments. FIG. 7 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. As shown in FIG. 7 , the terminal 700 can use general computer hardware, including a processor 701 and a memory 702 .
在一些可能的实施方式中,至少一个处理器可以构成具有对一个或多个输入执行逻辑运算的电路的任何物理设备。例如,至少一个处理器可以包括一个或多个集成电路(IC),包括专用集成电路(ASIC)、微芯片、微控制器、微处理器、中央处理单元(CPU)的全部或部分、图形处理单元(GPU)、数字信号处理器(DSP)、现场可编程门阵列(FPGA)或者适于执行指令或执行逻辑运算的其它电路。由至少一个处理器执行的指令可以例如被预加载到与控制器集成的或嵌入在控制器中的存储器中,或者可以存储在分离的存储器中。存储器可以包括随机存取存储器(RAM)、只读存储器(ROM)、硬盘、光盘、磁介质、闪存,其它永久、固定或易失性存储器,或者能够存储指令的任何其它机制。在一些实施例中,至少一个处理器可以包括多于一个处理器。每个处理器可以具有相似的结构,或者处理器可以具有彼此电连接或断开的不同构造。例如,处理器可以是分离的电路或集成在单个电路中。当使用多于一个处理器时,处理器可以被配置为独立地或协作地操作。处理器可以以电、磁、光学、声学、机械或通过允许它们交互的其它手段来耦合。In some possible implementations, the at least one processor may constitute any physical device having circuitry that performs logical operations on one or more inputs. For example, at least one processor may include one or more integrated circuits (ICs), including application specific integrated circuits (ASICs), microchips, microcontrollers, microprocessors, all or part of a central processing unit (CPU), graphics processing unit unit (GPU), digital signal processor (DSP), field programmable gate array (FPGA), or other circuitry suitable for executing instructions or performing logical operations. Instructions for execution by the at least one processor may, for example, be preloaded into memory integrated with or embedded in the controller, or may be stored in separate memory. Memory may include random access memory (RAM), read only memory (ROM), hard disk, optical disk, magnetic media, flash memory, other permanent, fixed or volatile memory, or any other mechanism capable of storing instructions. In some embodiments, at least one processor may include more than one processor. Each processor may have a similar structure, or the processors may have different configurations that are electrically connected or disconnected from each other. For example, the processor may be a separate circuit or integrated in a single circuit. When more than one processor is used, the processors may be configured to operate independently or cooperatively. Processors may be coupled electrically, magnetically, optically, acoustically, mechanically, or by other means that allow them to interact.
根据本公开的一个实施例,本公开还提供了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行上述资源文件传输方法的步骤。存储器702可以包括以易失性和/或非易失性存储器形式的计算机存储媒体,如只读存储器和/或随机存取存储器。存储器702可以存储操作系统、应用程序、其他程序模块、可执行代码、程序数据、用户数据等。According to one embodiment of the present disclosure, the present disclosure also provides a computer-readable storage medium on which computer instructions are stored, and the instructions are used by a processor to execute the steps of the above resource file transmission method. Memory 702 may include computer storage media in the form of volatile and/or non-volatile memory, such as read-only memory and/or random access memory. Memory 702 may store an operating system, application programs, other program modules, executable code, program data, user data, and the like.
此外,上述存储器702中存储有用于实现图5和图6中各模块的功能的计算机执行指令。图5和图6中各模块的功能/实现过程均可以通过图7中的处理器701调用存储器702 中存储的计算机执行指令来实现,具体实现过程和功能参考上述相关实施例。In addition, the above-mentioned memory 702 stores computer execution instructions for realizing the functions of each module in FIG. 5 and FIG. 6 . The functions/implementation processes of each module in Figures 5 and 6 can be called into the memory 702 through the processor 701 in Figure 7 This is implemented by executing instructions stored in the computer. For specific implementation processes and functions, please refer to the above-mentioned related embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.
工业实用性Industrial applicability
本公开提供了资源文件的传输方法、装置、设备及存储介质,通过第一终端获得第一应用的应用信息时,将本地保存的第一应用关联的资源文件发送给第二终端,第二终端接收第一终端发送的资源文件,并进行存储,如此,实现了第一终端与第二终端间的资源文件传输,避免了传输资源文件的繁琐操作,并提高了资源文件的传输效率。The present disclosure provides a resource file transmission method, device, equipment and storage medium. When the first terminal obtains the application information of the first application, the locally saved resource file associated with the first application is sent to the second terminal. The second terminal The resource file sent by the first terminal is received and stored. In this way, the resource file transmission between the first terminal and the second terminal is realized, cumbersome operations of transmitting the resource file are avoided, and the transmission efficiency of the resource file is improved.
此外,可以理解的是,本公开提供的资源文件的传输方法、装置、设备及存储介质是可以重现的,并且可以用在多种工业应用中。例如,本公开的资源文件的传输方法、装置、设备及存储介质可以用于数据传输技术领域。 In addition, it can be understood that the resource file transmission method, device, equipment and storage medium provided by the present disclosure are reproducible and can be used in a variety of industrial applications. For example, the resource file transmission method, device, equipment and storage medium of the present disclosure can be used in the field of data transmission technology.

Claims (24)

  1. 一种资源文件的传输方法,所述方法包括:A resource file transmission method, the method includes:
    第一终端获得第一应用的应用信息,所述第一应用为第二终端中需要获取资源文件的应用;The first terminal obtains the application information of the first application, and the first application is an application in the second terminal that needs to obtain resource files;
    所述第一终端根据所述第一应用的应用信息,获得本地保存的所述第一应用关联的资源文件,所述资源文件为所述第一应用在运行时的必要文件;The first terminal obtains a locally saved resource file associated with the first application based on the application information of the first application, where the resource file is a necessary file when the first application is running;
    所述第一终端至少将所述第一应用的资源文件发送给所述第二终端。The first terminal sends at least the resource file of the first application to the second terminal.
  2. 根据权利要求1所述的方法,其中,所述第一终端获得第一应用的应用信息,包括:The method according to claim 1, wherein the first terminal obtains application information of the first application, including:
    所述第一终端接收所述第二终端发送的文件请求消息,所述文件请求消息中包括第一指示信息,所述第一指示信息用于指示所述第一应用;The first terminal receives a file request message sent by the second terminal, where the file request message includes first indication information, and the first indication information is used to indicate the first application;
    所述第一终端根据所述第一指示信息,获得所述第一应用的应用信息。The first terminal obtains application information of the first application according to the first indication information.
  3. 根据权利要求2所述的方法,其中,所述文件请求消息中包含有明确的请求指令,所述第一指示消息包含指示所述第一应用的标识符。The method of claim 2, wherein the file request message contains an explicit request instruction, and the first indication message contains an identifier indicating the first application.
  4. 根据权利要求1至3中任一项所述的方法,其中,在所述第一终端获得第一应用的应用信息之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the first terminal obtains the application information of the first application, the method further includes:
    所述第一终端获取本地安装的多个应用的资源文件;The first terminal obtains resource files of multiple locally installed applications;
    所述第一终端设备将所述多个应用中资源文件满足预设要求的应用确定为所述第一应用。The first terminal device determines the application whose resource files meet the preset requirements among the plurality of applications as the first application.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述第一终端至少将所述第一应用的资源文件发送给所述第二终端,包括:The method according to any one of claims 1 to 4, wherein the first terminal sends at least the resource file of the first application to the second terminal, including:
    所述第一终端确定所述第二终端未安装所述第一应用;The first terminal determines that the first application is not installed on the second terminal;
    所述第一终端向所述第二终端发送所述第一应用和所述资源文件。The first terminal sends the first application and the resource file to the second terminal.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述第一终端根据所述第一应用的应用信息,获得本地保存的所述第一应用关联的资源文件,包括:The method according to any one of claims 1 to 5, characterized in that the first terminal obtains the locally saved resource file associated with the first application according to the application information of the first application, including:
    所述第一终端根据所述第一应用的应用信息,确定本地安装有所述第一应用;The first terminal determines that the first application is locally installed based on the application information of the first application;
    所述第一终端从所述第一应用的本地安装目录中获取所述第一应用关联的资源文件。The first terminal obtains the resource file associated with the first application from the local installation directory of the first application.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述应用信息包括:应用名称、版本号、关联资源文件和资源文件版本号中的至少一个。The method according to any one of claims 1 to 6, characterized in that the application information includes: at least one of an application name, a version number, an associated resource file and a resource file version number.
  8. 一种资源文件的传输方法,所述方法包括:A resource file transmission method, the method includes:
    第二终端至少接收第一终端发送的第一应用关联的资源文件,所述第一应用为所述第二终端中需要获取资源文件的应用; The second terminal at least receives the resource file associated with the first application sent by the first terminal, and the first application is an application in the second terminal that needs to obtain the resource file;
    所述第二终端将所述资源文件添加至所述第一应用的安装目录下。The second terminal adds the resource file to the installation directory of the first application.
  9. 根据权利要求8所述的方法,其中,在所述第二终端至少接收第一终端发送的第一应用关联的资源文件之前,所述方法还包括:The method according to claim 8, wherein before the second terminal receives at least the resource file associated with the first application sent by the first terminal, the method further includes:
    所述第二终端向所述第一终端发送文件请求消息,所述文件请求消息中包括第一指示信息,所述第一指示信息用于指示所述第一应用。The second terminal sends a file request message to the first terminal, where the file request message includes first indication information, and the first indication information is used to instruct the first application.
  10. 根据权利要求8或9所述的方法,其中,所述第二终端至少接收第一终端发送的第一应用关联的资源文件,包括:The method according to claim 8 or 9, wherein the second terminal receives at least the resource file associated with the first application sent by the first terminal, including:
    所述第二终端接收所述第一终端发送所述第一应用和所述资源文件。The second terminal receives the first application and the resource file sent by the first terminal.
  11. 根据权利要求10所述的方法,其中,在所述第二终端接收所述第一终端发送所述第一应用和所述资源文件之后,所述方法还包括:The method of claim 10, wherein after the second terminal receives the first application and the resource file sent by the first terminal, the method further includes:
    所述第二终端获得所述第一应用的应用信息;The second terminal obtains application information of the first application;
    所述第二终端根据所述第一应用的应用信息,确定未安装所述第一应用;The second terminal determines that the first application is not installed based on the application information of the first application;
    所述第二终端安装所述第一应用。The second terminal installs the first application.
  12. 一种资源文件的传输方法,所述方法包括:A resource file transmission method, the method includes:
    第二终端向第一终端发送文件请求消息;The second terminal sends a file request message to the first terminal;
    所述第一终端根据发送的所述文件请求消息获得第一应用的应用信息;The first terminal obtains the application information of the first application according to the sent file request message;
    所述第一终端根据所述第一应用的应用信息确定发送所述第一应用对应的资源文件;The first terminal determines to send the resource file corresponding to the first application according to the application information of the first application;
    所述第一终端向所述第二终端发送所述第一应用对应的资源文件;The first terminal sends the resource file corresponding to the first application to the second terminal;
    所述第二终端接收所述第一应用对应的资源文件并将所述资源文件添加至所述第一应用的安装目录下。The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
  13. 一种资源文件的传输方法,所述方法包括:A resource file transmission method, the method includes:
    第一终端根据本地安装的应用获得第一应用的应用信息;The first terminal obtains the application information of the first application according to the locally installed application;
    所述第一终端根据所述第一应用的应用信息,获得本地保存的所述第一应用关联的资源文件;The first terminal obtains the locally saved resource file associated with the first application based on the application information of the first application;
    所述第一终端向所述第二终端同时发送所述第一应用和所述第一应用对应的资源文件;The first terminal simultaneously sends the first application and the resource file corresponding to the first application to the second terminal;
    所述第二终端确定本地未安装所述第一应用;The second terminal determines that the first application is not installed locally;
    所述第二终端接收所述第一应用并安装;The second terminal receives and installs the first application;
    所述第二终端接收所述第一应用对应的资源文件并将所述资源文件添加至所述第一应用的安装目录下。The second terminal receives the resource file corresponding to the first application and adds the resource file to the installation directory of the first application.
  14. 一种资源文件的传输装置,所述装置包括:A resource file transmission device, the device includes:
    获得模块,被配置用于获得第一应用的应用信息,所述第一应用为第二终端中需要获取资源文件的应用; An obtaining module configured to obtain application information of a first application, where the first application is an application in the second terminal that needs to obtain resource files;
    执行模块,被配置用于根据所述第一应用的应用信息,获得本地保存的所述第一应用关联的资源文件,所述资源文件为所述第一应用在运行时的必要文件;An execution module configured to obtain locally saved resource files associated with the first application based on the application information of the first application, where the resource files are necessary files for the first application when running;
    输出模块,被配置用于至少将所述第一应用的资源文件发送给所述第二终端。and an output module configured to send at least the resource file of the first application to the second terminal.
  15. 根据权利要求14所述的装置,其中,所述获得模块,还被配置用于:接收所述第二终端发送的文件请求消息,所述文件请求消息中包括第一指示信息,所述第一指示信息用于指示所述第一应用;根据所述第一指示信息,获得所述第一应用的应用信息。The device according to claim 14, wherein the obtaining module is further configured to: receive a file request message sent by the second terminal, the file request message includes first indication information, and the first The indication information is used to indicate the first application; and the application information of the first application is obtained according to the first indication information.
  16. 根据权利要求14或15所述的装置,其中,所述获得模块,还被配置用于:在获得第一应用的应用信息之前,获取本地安装的多个应用的资源文件;将所述多个应用中资源文件满足预设要求的应用确定为所述第一应用。The device according to claim 14 or 15, wherein the obtaining module is further configured to: before obtaining the application information of the first application, obtain resource files of multiple locally installed applications; The application whose resource files meet the preset requirements is determined as the first application.
  17. 根据权利要求14至16中任一项所述的装置,其中,所述输出模块,还被配置用于:确定所述第二终端未安装所述第一应用;向所述第二终端发送所述第一应用和所述资源文件。The device according to any one of claims 14 to 16, wherein the output module is further configured to: determine that the second terminal does not install the first application; and send the first application to the second terminal. the first application and the resource file.
  18. 根据权利要求14至17中任一项所述的装置,其中,所述执行模块,还被配置用于:根据所述第一应用的应用信息,确定本地安装有所述第一应用;从所述第一应用的本地安装目录中获取所述第一应用关联的资源文件。The device according to any one of claims 14 to 17, wherein the execution module is further configured to: determine that the first application is installed locally according to the application information of the first application; Obtain the resource file associated with the first application from the local installation directory of the first application.
  19. 一种资源文件的传输装置,所述装置包括:A resource file transmission device, the device includes:
    接收模块,被配置用于至少接收第一终端发送的第一应用关联的资源文件,所述第一应用为第二终端中需要获取资源文件的应用;A receiving module configured to receive at least a resource file associated with a first application sent by the first terminal, where the first application is an application in the second terminal that needs to obtain the resource file;
    安装模块,被配置用于将所述资源文件添加至所述第一应用的安装目录下。An installation module is configured to add the resource file to the installation directory of the first application.
  20. 根据权利要求19所述的装置,其中,所述接收模块,还被配置用于:在至少接收第一终端发送的第一应用关联的资源文件之前,向所述第一终端发送文件请求消息,所述文件请求消息中包括第一指示信息,所述第一指示信息用于指示所述第一应用。The device according to claim 19, wherein the receiving module is further configured to: before receiving at least the resource file associated with the first application sent by the first terminal, send a file request message to the first terminal, The file request message includes first indication information, and the first indication information is used to instruct the first application.
  21. 根据权利要求19或20所述的装置,其中,所述接收模块,还被配置用于:接收所述第一终端发送所述第一应用和所述资源文件。The device according to claim 19 or 20, wherein the receiving module is further configured to: receive the first application and the resource file sent by the first terminal.
  22. 根据权利要求21所述的装置,其中,所述接收模块,还被配置用于:在接收所述第一终端发送所述第一应用和所述资源文件之后,获得所述第一应用的应用信息;根据所述第一应用的应用信息,确定未安装所述第一应用;安装所述第一应用。The device according to claim 21, wherein the receiving module is further configured to: obtain the application of the first application after receiving the first application and the resource file sent by the first terminal. Information; determining that the first application is not installed according to the application information of the first application; installing the first application.
  23. 一种终端,包括:A terminal that includes:
    用于存储处理器可执行指令的存储器;Memory used to store instructions executable by the processor;
    处理器;其中,所述处理器被配置为:用于执行所述可执行指令时,实现如权利要求1至13任一项所述的方法。A processor; wherein the processor is configured to implement the method according to any one of claims 1 to 13 when executing the executable instructions.
  24. 一种计算机可读存储介质,所述可读存储介质存储有可执行程序,其中,所述可 执行程序被处理器执行时实现如权利要求1至13任一项所述的方法。 A computer-readable storage medium stores an executable program, wherein the executable program When the execution program is executed by the processor, the method according to any one of claims 1 to 13 is implemented.
PCT/CN2023/092392 2022-05-24 2023-05-06 Resource file transmission method and apparatus, and device and storage medium WO2023226720A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210570260.7A CN115080068A (en) 2022-05-24 2022-05-24 Resource file transmission method, device, equipment and storage medium
CN202210570260.7 2022-05-24

Publications (1)

Publication Number Publication Date
WO2023226720A1 true WO2023226720A1 (en) 2023-11-30

Family

ID=83250132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/092392 WO2023226720A1 (en) 2022-05-24 2023-05-06 Resource file transmission method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN115080068A (en)
WO (1) WO2023226720A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080068A (en) * 2022-05-24 2022-09-20 北京快乐茄信息技术有限公司 Resource file transmission method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals
CN109391509A (en) * 2018-04-16 2019-02-26 深圳思为科技有限公司 A kind of method, system and the application server of more new application
US20190111340A1 (en) * 2016-03-29 2019-04-18 Netmarble Corporation Device for Transmitting Game Application Program and Resource File Between Smart Devices, Application Program, and Transmission Method Therefor
WO2021248337A1 (en) * 2020-06-09 2021-12-16 深圳市欢太科技有限公司 Application installation method and apparatus, and device and computer-readable storage medium
CN115080068A (en) * 2022-05-24 2022-09-20 北京快乐茄信息技术有限公司 Resource file transmission method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630587A (en) * 2014-10-31 2016-06-01 腾讯科技(深圳)有限公司 Method, device and system for migrating application program data between terminals
US20190111340A1 (en) * 2016-03-29 2019-04-18 Netmarble Corporation Device for Transmitting Game Application Program and Resource File Between Smart Devices, Application Program, and Transmission Method Therefor
CN109391509A (en) * 2018-04-16 2019-02-26 深圳思为科技有限公司 A kind of method, system and the application server of more new application
WO2021248337A1 (en) * 2020-06-09 2021-12-16 深圳市欢太科技有限公司 Application installation method and apparatus, and device and computer-readable storage medium
CN115080068A (en) * 2022-05-24 2022-09-20 北京快乐茄信息技术有限公司 Resource file transmission method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115080068A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
EP2550603B1 (en) Direct scatter loading of executable software image from a primary processor to one or more secondary processors in a multi-processor system
EP2609499B1 (en) Electronics device
US10324874B2 (en) Real-time embedded system
US10698736B2 (en) Method for resource allocation and terminal device
CN107483725A (en) Resource allocation method and Related product
JP2013522803A5 (en)
KR101369428B1 (en) Application management apparatus and method for mobile terminal for supporting different type guest operating system
WO2023226720A1 (en) Resource file transmission method and apparatus, and device and storage medium
CN110968331B (en) Method and device for running application program
US11016769B1 (en) Method and apparatus for processing information
JP2021508880A (en) Terminal application management method, application server and terminal
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
WO2020077487A1 (en) Method and related apparatus for optimizing and running android application
CN109284142A (en) File preloads method, apparatus, electronic equipment and computer readable storage medium
WO2019182335A1 (en) Electronic device and method for controlling update of electronic device
WO2023173954A1 (en) Data acquisition method and apparatus, storage medium, and electronic device
US9477484B2 (en) System and method for boot acceleration of a data processing system wherein a nonvolatile memory is pre-configured before boot time
CN111427617A (en) Data processing method, device and equipment
CN108108203B (en) Method, device and system for downloading and installing process of installation package
WO2019042172A1 (en) Resource allocation method and product related thereto
US11425751B2 (en) System and method for collision handling with cross carrier scheduling
WO2016058188A1 (en) Software upgrading method and apparatus applied to terminal and terminal
CN111736864A (en) Application software content distribution method, device and system and computer equipment
CN112860300A (en) Distributed SDK (software development kit) hot update processing method and application server cluster
US12019489B1 (en) System and method for provisioning free standing modules

Legal Events

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

Ref document number: 23810793

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 11202400406P

Country of ref document: SG