CN112346751A - Application program installation method and device, electronic equipment and storage medium - Google Patents

Application program installation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112346751A
CN112346751A CN202011312565.5A CN202011312565A CN112346751A CN 112346751 A CN112346751 A CN 112346751A CN 202011312565 A CN202011312565 A CN 202011312565A CN 112346751 A CN112346751 A CN 112346751A
Authority
CN
China
Prior art keywords
terminal
near field
field communication
application program
installation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011312565.5A
Other languages
Chinese (zh)
Other versions
CN112346751B (en
Inventor
徐士立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011312565.5A priority Critical patent/CN112346751B/en
Publication of CN112346751A publication Critical patent/CN112346751A/en
Application granted granted Critical
Publication of CN112346751B publication Critical patent/CN112346751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses an installation method and device of an application program, electronic equipment and a storage medium; the application program sharing page of the first terminal can be displayed, the application program sharing page comprises a sharing control of a target application program, then, the sharing control is responded to, the sharing identification code of the first terminal is generated through triggering operation of the sharing control, the sharing identification code comprises first near field communication information, then, identification operation of the sharing identification code is responded to a second terminal, connection is established through a target near field communication mode and the second terminal, and then the second terminal sends an installation file package of the target application program based on the established connection, so that the second terminal installs the target application program. The scheme can effectively improve the installation efficiency of the application program.

Description

Application program installation method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of live broadcasting, in particular to an installation method and device of an application program, electronic equipment and a storage medium.
Background
With the development of mobile games, game pictures are more and more exquisite, and accordingly, application programs of the games are larger and larger, and time required for downloading by users is longer and longer. When users meet a game, if some users do not have the latest version of the game application program, the users need to wait for the downloading and installation of the game application program. The traditional downloading and installation need to pass through a network, so that the downloading speed of a user is very limited, and the quick installation is not facilitated.
Disclosure of Invention
The embodiment of the application provides an installation method and device of an application program, an electronic device and a storage medium, and installation efficiency of the application program can be effectively improved.
The embodiment of the application provides an installation method of an application program, which comprises the following steps:
displaying an application program sharing page of a first terminal, wherein the application program sharing page comprises a sharing control of a target application program;
responding to a triggering operation aiming at the sharing control, and generating a sharing identification code of the first terminal, wherein the sharing identification code comprises first near field communication information, and the first near field communication information is communication information of a near field communication mode supported by the first terminal;
responding to the identification operation of the second terminal for identifying the sharing identification code, and establishing connection with the second terminal through a target near field communication mode, wherein the target near field communication mode is determined according to first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal;
and sending an installation file package of the target application program to the second terminal based on the established connection so as to enable the second terminal to install the target application program.
Correspondingly, an embodiment of the present application further provides an installation apparatus for an application, including:
the display unit is used for displaying an application program sharing page of the first terminal, and the application program sharing page comprises a sharing control of a target application program;
the generating unit is used for responding to a triggering operation aiming at the sharing control, and generating a sharing identification code of the first terminal, wherein the sharing identification code comprises first near field communication information, and the first near field communication information is communication information of a near field communication mode supported by the first terminal;
the connection unit is used for responding to the identification operation of the second terminal for identifying the sharing identification code and establishing connection with the second terminal through a target near field communication mode, wherein the target near field communication mode is determined according to first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal;
a sending unit, configured to send an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application.
Optionally, in some embodiments, the generating unit may be specifically configured to obtain first near field communication information in response to a trigger operation for the sharing control; and encoding the first near field communication information to generate a sharing identification code of the first terminal.
Optionally, in some embodiments, the connection unit may be specifically configured to send the first near field communication information to the second terminal in response to an identification operation of the second terminal for identifying the sharing identification code, so that the second terminal determines a target near field communication mode according to the first near field communication information and the second near field communication information; and establishing connection with the second terminal through the determined target near field communication mode.
Optionally, in some embodiments, the installation apparatus of the application program may further include an obtaining unit, and the obtaining unit may include an obtaining subunit and a generating subunit, as follows:
the acquiring subunit is configured to acquire a resource file of the target application program in the first terminal;
the generating subunit is configured to generate an installation file package of the target application program based on the resource file of the target application program.
Optionally, in some embodiments, the generating subunit may be specifically configured to classify the resource files of the target application program, and exclude a preset category of files in the resource files according to a classification result to obtain excluded files; and generating the installation file package of the target application program from the excluded files.
Optionally, in some embodiments, the sending unit may be specifically configured to create a file transfer list of the target application based on an installation file package of the target application, where the file transfer list includes file information of the installation file package; sending the file transmission list to a second terminal based on the established connection so that the second terminal can perform transmission detection based on the file information of the installation file package; and sending the installation file package of the target application program to the second terminal according to the detection result returned by the second terminal.
The embodiment of the application provides an installation method of an application program, which comprises the following steps:
displaying an application program receiving page of the second terminal, wherein the application program receiving page comprises an identification control;
the identification control is used for identifying the sharing identification code of the first terminal, and first near field communication information is obtained based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal;
determining a target near field communication mode based on first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal;
and establishing connection with a first terminal in the target near field communication mode, and receiving an installation file package of a target application program from the first terminal based on the established connection so as to install the target application program.
Correspondingly, an embodiment of the present application further provides an installation apparatus for an application, including:
the display module is used for displaying an application program receiving page of the second terminal, and the application program receiving page comprises an identification control;
the identification module is used for identifying the sharing identification code of the first terminal by using the identification control and acquiring first near field communication information based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal;
the determining module is used for determining a target near field communication mode based on first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal;
and the receiving module is used for establishing connection with the first terminal in the target near field communication mode, and receiving an installation file package of a target application program from the first terminal based on the established connection so as to install the target application program.
Optionally, in some embodiments, the determining module may be specifically configured to analyze the first nfc information, and determine, according to an analysis result, a nfc mode supported by the first terminal; determining a near field communication mode supported by the second terminal based on the second near field communication information; determining at least one candidate near field communication mode according to a near field communication mode supported by a first terminal and a near field communication mode supported by a second terminal, wherein the candidate near field communication mode is a near field communication mode supported by both the first terminal and the second terminal; and determining a target near field communication mode based on the candidate near field communication modes.
Optionally, in some embodiments, the determining module may be specifically configured to obtain a communication parameter of each candidate near field communication mode; ranking the candidate near field communication modes based on the communication parameters; and determining a target near field communication mode according to the sequencing result.
Optionally, in some embodiments, the receiving module may include a detection sub-module and a receiving sub-module, as follows:
the detection submodule is used for acquiring a file transmission list of a target application program from a first terminal based on the established connection, the file transmission list is established based on an installation file package of the target application program, and the file transmission list comprises file information of the installation file package; carrying out transmission detection on the second terminal according to the file information of the installation file package;
and the receiving submodule is used for receiving an installation file package of a target application program from the first terminal based on the detection result so as to install the target application program.
Optionally, in some embodiments, the receiving sub-module may be specifically configured to receive an installation file package of a target application from the first terminal based on a detection result; when the installation file package is received, carrying out integrity check on the installation file package based on the file transmission list; and when the installation file package passes the inspection, installing the target application program by using the installation file package.
Optionally, in some embodiments, the installation file package includes a plurality of installation files, and the receiving sub-module is specifically configured to determine, according to the file transmission list, an installation file that is not received in the installation file package when transmission of the installation file package is interrupted; updating the file transmission list based on the unreceived installation files to obtain an updated file transmission list; and receiving the installation files which are not received from the first terminal based on the updated file transmission list.
Optionally, in some embodiments, the installation apparatus of the application further includes an exception handling module, where the exception handling module is specifically configured to generate a notification of receiving an exception at the second terminal when the installation file package of the target application receives an exception; identifying the sharing identification code of the first terminal by using the identification control, sending the abnormal receiving notification to the first terminal, and determining a candidate near field communication mode; and establishing a candidate connection with the first terminal through the candidate near field communication mode, and receiving an installation file package of the target application program from the first terminal based on the candidate connection.
In addition, a computer-readable storage medium is provided, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the methods for installing an application program provided in the embodiments of the present application.
In addition, an electronic device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the steps in the method for installing any application program provided in the embodiments of the present application are implemented.
According to an aspect of the application, there is provided a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of a computer device from the computer-readable storage medium, the computer instructions being executable by the processor to cause the computer device to perform the method provided in the various alternative implementations of the installation aspect of the application program.
The embodiment may display an application sharing page of a first terminal, where the application sharing page includes a sharing control of a target application, generates, in response to a trigger operation for the sharing control, a sharing identification code of the first terminal, where the sharing identification code includes first near field communication information, where the first near field communication information is communication information in a near field communication mode supported by the first terminal, then, in response to an identification operation for identifying the sharing identification code by a second terminal, establishes a connection with the second terminal in a target near field communication mode, where the target near field communication mode is determined according to the first near field communication information and second near field communication information, where the second near field communication information is communication information in a near field communication mode supported by the second terminal, and then, sends an installation package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application program. The scheme can effectively improve the installation efficiency of the application program.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of a live broadcast system provided in an embodiment of the present application;
FIG. 1b is a first flowchart of an installation method of an application provided by an embodiment of the present application;
FIG. 1c is a second flowchart of an installation method of an application provided by an embodiment of the present application;
FIG. 2a is a third flowchart of an installation method of an application provided by an embodiment of the present application;
fig. 2b is a fourth flowchart of an installation method of an application program according to an embodiment of the present application;
fig. 2c is a first schematic diagram of an application sharing page according to an embodiment of the present disclosure;
fig. 2d is a first schematic diagram of an application sharing page according to an embodiment of the present disclosure;
FIG. 2e is a schematic diagram of an application receiving page provided in the embodiment of the present application;
fig. 3a is a first structural diagram of an installation apparatus of an application program according to an embodiment of the present application;
fig. 3b is a second schematic structural diagram of an installation apparatus of an application program according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The principles of the present application are illustrated as being implemented in a suitable computing environment. In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term "unit" as used herein may be considered a software object executing on the computing system. The various components, units, engines, and services described herein may be viewed as objects of implementation on the computing system. The apparatus and method described herein may be implemented in software, or may be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but rather, some embodiments may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides an installation method and device of an application program, electronic equipment and a storage medium. The installation apparatus of the application program may be integrated into an electronic device, and the electronic device may be a server or a terminal.
Specifically, the embodiment of the application can be integrated in an installation system of the application program. The installation system of the application program can be integrated in electronic equipment, the electronic equipment can comprise a terminal or a server and the like, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
For example, as shown in fig. 1a, fig. 1a is a schematic view of a scenario of an installation system of an application, which may be integrated on at least two terminals, where a first terminal may provide an installation file package of the application, and a second terminal may receive the installation file package of the application provided by the first terminal, so as to install the application by using the installation file package. The number of the first terminals may be one, and the number of the second terminals may be at least one.
The first terminal can display an application sharing page, the application sharing page comprises a sharing control of a target application, a sharing identification code of the first terminal is generated in response to a triggering operation aiming at the sharing control, the sharing identification code comprises first near field communication information, the first near field communication information is communication information of a near field communication mode supported by the first terminal, then, in response to an identification operation of a second terminal for identifying the sharing identification code, a connection is established with the second terminal in a target near field communication mode, the target near field communication mode is determined according to the first near field communication information and second near field communication information, the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, an installation file package of the target application is sent to the second terminal based on the established connection, so that the second terminal installs the target application program.
The second terminal can display an application receiving page, the application receiving page comprises an identification control, then the identification control is utilized to identify a sharing identification code of the first terminal, first near field communication information is obtained based on an identification result, the first near field communication information is communication information of a near field communication mode supported by the first terminal, then a target near field communication mode is determined based on the first near field communication information and second near field communication information, the second near field communication information is communication information of a near field communication mode supported by the second terminal, then connection is established with the first terminal through the target near field communication mode, an installation file package of a target application is received from the first terminal based on the established connection, and the target application is installed.
It should be noted that the scenario diagram of the installation system of the application shown in fig. 1a is merely an example, and the installation system and the scenario of the application described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application. For example, the installation system of the application program may include a terminal and a server, the terminal may include a first terminal and a second terminal, the server may include a first server and a second server, and the like.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment will be described from the perspective of an installation apparatus of an application, where the installation apparatus of the application may be specifically integrated in an electronic device, and the electronic device may be a server, or may be a terminal or other devices; the terminal may include a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), and other devices.
An installation method of an application program comprises the following steps: displaying an application sharing page of a first terminal, wherein the application sharing page comprises a sharing control of a target application, generating a sharing identification code of the first terminal in response to a triggering operation aiming at the sharing control, the sharing identification code comprises first near field communication information, the first near field communication information is communication information of a near field communication mode supported by the first terminal, then, in response to an identification operation of a second terminal for identifying the sharing identification code, establishing connection with the second terminal in a target near field communication mode, the target near field communication mode is determined according to the first near field communication information and second near field communication information, the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, sending an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application program.
The following will be described in further detail by way of example in which the installation apparatus of the application is specifically integrated in the first terminal.
As shown in fig. 1b, the specific flow of the installation method of the application program may be as follows:
101. and displaying the application program sharing page of the first terminal.
The application sharing page may include a sharing control of a target application. The control can have a variety of representations, such as an icon, an input box, a button, a selection box, and the like. The first terminal may refer to a terminal in which the target application has been installed. The second terminal may refer to a terminal in which the target application is not installed.
For example, when the user a and the user B are in a close space, the target application X is installed on a first terminal of the user a, and the target application X is not installed on a second terminal of the user B, the user a may operate on a user operation interface of the first terminal, and then an application sharing page is displayed, where the application sharing page includes a sharing control of the target application X, and the user a may operate the sharing control to share the target application X with the user B, so that the user B may also use the target application X on the second terminal.
The application sharing page may be set on a client of the target application, or may be set on an applet, or the like. The client may refer to a program for providing a local service to the client, for example, Application software (APP) installed in a terminal, corresponding to the server. An applet may refer to an application that can be used without downloading and installing, and the user can open the application by scanning or searching.
102. And responding to the triggering operation aiming at the sharing control, and generating the sharing identification code of the first terminal.
The sharing identification code may include first near field communication information, and the first near field communication information may be communication information of a near field communication mode supported by the first terminal.
For example, when the user a clicks the sharing control, the first terminal may determine the near field communication mode supported by the local terminal, and acquire the related communication information of the supported near field communication mode, thereby generating the sharing identification code. For example, specifically, in response to a trigger operation for the sharing control, first near field communication information may be acquired, the first near field communication information is encoded, the sharing identification code of the first terminal is generated, and then the sharing identification code of the first terminal is displayed, so that a second terminal is identified.
Near field communication may also be referred to as "near field communication," which means that two electronic devices can communicate within a preset near field. The near field communication mode may refer to a mode in which two electronic devices communicate within a preset short distance, for example, the near field communication mode may include a WIFI (wireless network), a WIFI hotspot, a bluetooth mode, and other near field communication modes. The sharing identification code may include a sharing two-dimensional code, a sharing barcode, or a sharing symbol code.
For example, the near field communication mode supported by the first terminal may include WIFI, a WIFI hotspot, bluetooth and other near field communication modes, and the first near field communication information may include WIFI information that the first terminal is currently connected to, WIFI hotspot information of the first terminal itself, bluetooth information of the first terminal, and other near field communication information of the first terminal.
The current connected WIFI information of the first terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the first terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the first terminal may include: (1) whether the first terminal starts Bluetooth or not; (2) the first terminal supports the version number of the Bluetooth; (3) the number of connected users of the first terminal Bluetooth is reduced; (4) the maximum uplink speed of the first terminal Bluetooth; (5) the maximum downlink speed of the first terminal Bluetooth; (6) the first terminal Bluetooth can use the uplink bandwidth; (7) the first terminal Bluetooth can use the downlink bandwidth; (8) a first terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the first terminal; (10) a first terminal Bluetooth device identifier; and so on.
Other near field communication information of the first terminal may include: (1) a communication equipment identifier; (2) a communication protocol; (3) occupied case: the number of connected users; (4) a maximum uplink speed; (5) a maximum downlink speed; (6) a current available uplink bandwidth; (7) a current available downlink bandwidth; (8) a current network delay; (9) the current packet loss rate; (10) authentication information, such as a user name and password; and so on.
103. And responding to the identification operation of the second terminal for identifying the sharing identification code, and establishing connection with the second terminal in a target near field communication mode.
The target near field communication mode may be determined according to first near field communication information and second near field communication information, and the second near field communication information may be communication information of a near field communication mode supported by a second terminal.
For example, specifically, in response to an identification operation of the second terminal identifying the sharing identification code, the first near field communication information may be sent to the second terminal, so that the second terminal determines a target near field communication mode according to the first near field communication information and the second near field communication information, and establishes a connection with the second terminal through the determined target near field communication mode.
For example, the near field communication mode supported by the second terminal may include WIFI, a WIFI hotspot, bluetooth and other near field communication modes, and the second near field communication information may include WIFI information currently connected to the second terminal, WIFI hotspot information of the second terminal itself, bluetooth information of the second terminal, and other near field communication information of the second terminal.
The current connected WIFI information of the second terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the second terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the second terminal may include: (1) whether the second terminal starts Bluetooth or not; (2) the second terminal supports the version number of the Bluetooth; (3) the number of connected users of the second terminal Bluetooth is reduced; (4) the maximum uplink speed of the second terminal Bluetooth; (5) the maximum downlink speed of the second terminal Bluetooth; (6) the second terminal Bluetooth can use the uplink bandwidth; (7) the second terminal Bluetooth can use the downlink bandwidth; (8) a second terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the second terminal; (10) a second terminal Bluetooth device identifier; and so on.
Other near field communication information of the second terminal may include: (1) a communication equipment identifier; (2) a communication protocol; (3) occupied case: the number of connected users; (4) a maximum uplink speed; (5) a maximum downlink speed; (6) a current available uplink bandwidth; (7) a current available downlink bandwidth; (8) a current network delay; (9) the current packet loss rate; (10) authentication information, such as a user name and password; and so on.
Because the existing near field communication mode can only realize the transmission of fixed files, and after the application program is installed in the terminal, thousands of files exist, and after the installation is finished, because the installation package occupies a large space, the installation package can be generally cleaned up, therefore, in order to enable the first terminal to have no installation package of the target application program, the second terminal can realize the quick installation of the target application program, a file copy (namely, an installation file package) of an installation initial state can be established according to the resource files of the target application program, and then the file copy is sent to the second terminal, so that the second terminal can quickly install the target application program. For example, the resource file of the target application program in the first terminal may be specifically acquired; and generating an installation file package of the target application program based on the resource file of the target application program.
The resource file of the application program may refer to all files generated after the application program is installed in the electronic device. Since some files in all files generated after installation relate to the privacy of the user (such as account information of the user, etc.), and some devices adapt to different terminals of the related files differently, if all files are transmitted indiscriminately, the privacy of the user is not only leaked, but also abnormal adaptation may be caused, so that, in order to protect the data security of the user and install power, a file copy of the initial state (i.e., the state that the user privacy data is not included) of installation of the files related to the privacy of the user in the resource files can be excluded or established. For example, the resource files of the target application program may be specifically classified, and files of preset categories in the resource files are excluded according to the classification result, so as to obtain excluded files; and generating the installation file package of the target application program from the excluded files.
The preset type may be set in various manners, for example, the preset type may be set according to requirements of actual applications, or may be preset and stored in the electronic device. In addition, the preset category may be built in the electronic device, or may be saved in a memory and transmitted to the electronic device, and so on. For example, the file of the preset category may be a file containing user account information, and the like.
In order to improve the transmission speed and improve the transmission efficiency, the target near field communication mode may be at least one of near field communication modes supported by the first terminal and the first and second terminals, for example, the near field communication mode supported by the first terminal is WIFI, a WIFI hotspot and bluetooth, the near field communication mode supported by the second terminal is WIFI, a WIFI hotspot and bluetooth, and then the target near field communication mode may be WIFI, a WIFI hotspot and/or bluetooth, for example, when each communication parameter of the WIFI and bluetooth transmission channels is good, the WIFI can be simultaneously turned on, and the bluetooth performs multilink simultaneous transmission, so that the transmission speed of the installation file package is faster.
104. And sending an installation file package of the target application program to the second terminal based on the established connection so as to enable the second terminal to install the target application program.
For example, a file transfer list of the target application program may be specifically created based on an installation file package of the target application program, where the file transfer list includes file information of the installation file package; sending the file transmission list to a second terminal based on the established connection so that the second terminal can perform transmission detection based on the file information of the installation file package; and sending an installation file package of the target application program to the second terminal according to a detection result returned by the second terminal so that the second terminal can install the target application program.
The file information of the installation file package may include a file name, a file size, a file HASH (HASH) value, and the like, and may be used for the receiving end to perform file integrity check. The hash values (hash values) may refer to values calculated using a hash function (hash function). A hash function is a method of creating a small digital "fingerprint" from any kind of data. The hash function compresses a message or data into a digest so that the amount of data becomes small, fixing the format of the data. It is calculated from the data content to obtain a corresponding summary from which the data can be distinguished from other data.
For example, a file transfer list of the target application program may be created based on an installation file package of the target application program, the file transfer list includes file information of the installation file package, the file information includes a file size, and the file transfer list is sent to the second terminal based on the established connection, so that the second terminal performs storage space detection based on the file size; and if the storage space of the second terminal is larger than or equal to the file size, sending an installation file package of the target application program to the second terminal so that the second terminal installs the target application program.
According to the application, only one user needs to have the application program of the latest version in a near-field communication mode, and other users on the site can quickly finish downloading and installing the application program in the near-field communication mode. For example, when multiple users perform a offline party, if a user has downloaded the application program of the latest version, other users can quickly complete the downloading and installation of the application program of the latest version through the scheme. For another example, when an electronic competition is held offline, especially for a scene of field registration, a user participating in the competition needs to download a client on the field, and a competition host can enable the user to complete quick downloading and installation through the scheme. For another example, in some off-line stores, when the network environment is poor, downloading of the application program (such as a cell phone store) can be provided, the existing scheme generally uses wired connection, the operation is complex, the threshold is high, when the file is large, the transmission is slow, and the user experience is not facilitated, and by using the scheme, the operation threshold can be reduced, and the fast downloading can be realized.
Optionally, the near field communication connection may be established by sharing the identification code, or may be established by "bump-and-bump" or "shake-and-shake" instead of the near field communication connection. And the near field communication protocols such as WIFI and Bluetooth can also be realized through a physical line or other near field wireless communication protocols.
As can be seen from the above, this embodiment may display an application sharing page of a first terminal, where the application sharing page includes a sharing control of a target application, and in response to a trigger operation for the sharing control, a sharing identification code of the first terminal is generated, where the sharing identification code includes first near field communication information, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, and then, in response to an identification operation for identifying the sharing identification code by a second terminal, a connection is established with the second terminal in a target near field communication mode, where the target near field communication mode is determined according to the first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, an installation package of the target application is sent to the second terminal based on the established connection, so that the second terminal installs the target application program. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the first terminal only needs to display the sharing identification code, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package by identifying the sharing identification code, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
The following are detailed below. In this embodiment, a description will be given from the perspective of an installation apparatus of an application, where the installation apparatus of the application may be specifically integrated in an electronic device, and the electronic device may be a server or a terminal; the terminal can comprise a mobile phone, a tablet computer, a notebook computer, a personal computer and other devices.
An installation method of an application program comprises the following steps: the method comprises the steps of displaying an application program receiving page of a second terminal, wherein the application program receiving page comprises an identification control, identifying a sharing identification code of a first terminal by using the identification control, acquiring first near field communication information based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal, then determining a target near field communication mode based on the first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal, then establishing connection with the first terminal through the target near field communication mode, receiving an installation file package of a target application program from the first terminal based on the established connection, and installing the target application program.
The following will be described in further detail by way of example in which the installation apparatus of the application is specifically integrated in the participant terminal.
As shown in fig. 1c, a specific flow of the installation method of the application program according to the embodiment of the present invention is as follows:
111. and displaying the application program receiving page of the second terminal.
Wherein the application receiving page may include an identification control. The control can have a variety of representations, such as an icon, an input box, a button, a selection box, and the like. The first terminal may refer to a terminal in which the target application has been installed. The second terminal may refer to a terminal in which the target application is not installed.
For example, when the user a and the user B are in a close space, the application X is installed on a first terminal of the user a, and the application X is not installed on a second terminal of the user B, the user B may quickly acquire an installation file package of the target application X from the user a through the identification control to install the target application X. For example, the user B may operate with respect to a user operation interface of the second terminal, and then display an application receiving page, where the application receiving page includes an identification control, and the user B may operate the identification control, so as to quickly obtain an installation file package of the target application X from the user a, and then use the target application X on the second terminal.
The application receiving page may be set on a client that receives the application, or on an applet, or the like. The client may refer to a program for providing a local service to the client, for example, Application software (APP) installed in a terminal, corresponding to the server. An applet may refer to an application that can be used without downloading and installing, and the user can open the application by scanning or searching.
112. And identifying the sharing identification code of the first terminal by using the identification control, and acquiring first near field communication information based on an identification result.
The first near field communication information may be communication information of a near field communication mode supported by the first terminal. For example, the near field communication mode supported by the first terminal may include WIFI, a WIFI hotspot, bluetooth and other near field communication modes, and the first near field communication information may include WIFI information that the first terminal is currently connected to, WIFI hotspot information of the first terminal itself, bluetooth information of the first terminal, and other near field communication information of the first terminal.
The current connected WIFI information of the first terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the first terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the first terminal may include: (1) whether the first terminal starts Bluetooth or not; (2) the first terminal supports the version number of the Bluetooth; (3) the number of connected users of the first terminal Bluetooth is reduced; (4) the maximum uplink speed of the first terminal Bluetooth; (5) the maximum downlink speed of the first terminal Bluetooth; (6) the first terminal Bluetooth can use the uplink bandwidth; (7) the first terminal Bluetooth can use the downlink bandwidth; (8) a first terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the first terminal; (10) a first terminal Bluetooth device identifier; and so on.
Other near field communication information of the first terminal may include: (1) a communication equipment identifier; (2) a communication protocol; (3) occupied case: the number of connected users; (4) a maximum uplink speed; (5) a maximum downlink speed; (6) a current available uplink bandwidth; (7) a current available downlink bandwidth; (8) a current network delay; (9) the current packet loss rate; (10) authentication information, such as a user name and password; and so on.
For example, the identification control may be a scanning control, the sharing identification code may be a sharing two-dimensional code, and the user B may identify the sharing two-dimensional code of the first terminal by using the scanning control of the second terminal, and obtain the first near field communication information based on the identification result.
113. And determining a target near field communication mode based on the first near field communication information and the second near field communication information.
The second near field communication information may be communication information of a near field communication mode supported by the second terminal. For example, the near field communication mode supported by the second terminal may include WIFI, a WIFI hotspot, bluetooth and other near field communication modes, and the second near field communication information may include WIFI information currently connected to the second terminal, WIFI hotspot information of the second terminal itself, bluetooth information of the second terminal, and other near field communication information of the second terminal.
The current connected WIFI information of the second terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the second terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the second terminal may include: (1) whether the second terminal starts Bluetooth or not; (2) the second terminal supports the version number of the Bluetooth; (3) the number of connected users of the second terminal Bluetooth is reduced; (4) the maximum uplink speed of the second terminal Bluetooth; (5) the maximum downlink speed of the second terminal Bluetooth; (6) the second terminal Bluetooth can use the uplink bandwidth; (7) the second terminal Bluetooth can use the downlink bandwidth; (8) a second terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the second terminal; (10) a second terminal Bluetooth device identifier; and so on.
Other near field communication information of the second terminal may include: (1) a communication equipment identifier; (2) a communication protocol; (3) occupied case: the number of connected users; (4) a maximum uplink speed; (5) a maximum downlink speed; (6) a current available uplink bandwidth; (7) a current available downlink bandwidth; (8) a current network delay; (9) the current packet loss rate; (10) authentication information, such as a user name and password; and so on.
For example, the first near field communication information may be specifically analyzed, and a near field communication mode supported by the first terminal is determined according to an analysis result; determining a near field communication mode supported by the second terminal based on the second near field communication information; determining at least one candidate near field communication mode according to a near field communication mode supported by a first terminal and a near field communication mode supported by a second terminal, wherein the candidate near field communication mode is a near field communication mode supported by both the first terminal and the second terminal; and determining a target near field communication mode based on the candidate near field communication modes.
For example, the first near field communication information is analyzed to obtain that the near field communication modes supported by the first terminal include WIFI, WIFI hotspots and bluetooth, and it is determined that the near field communication modes supported by the second terminal include WIFI, WIFI hotspots and bluetooth, then the candidate near field communication modes may include WIFI, WIFI hotspots and bluetooth, and then the optimal near field communication mode can be selected from the candidate near field communication modes to determine the optimal near field communication mode as the target near field communication mode.
The method for selecting the optimal near field communication mode may be various, for example, the communication parameters of each candidate near field communication mode may be specifically obtained; ranking the candidate near field communication modes based on the communication parameters; and determining a target near field communication mode according to the sequencing result.
The communication parameters may include a current available bandwidth, a current packet loss rate, a theoretical maximum rate, a current delay, a current number of connected users, and the like. For example, (1) the current available bandwidth may be set as a most core indicator, and the current available bandwidth may be determined by a smaller value of the uplink available bandwidth of the first terminal and the downlink available bandwidth of the second terminal; (2) the current packet loss rate can be set as an important index, the sum of the packet loss rate of the first terminal and the downlink packet loss rate of the second terminal is taken, when the packet loss rate is too large, even if the download bandwidth is large, the actual effective load becomes very low due to frequent retransmission, so a threshold value is generally set, and a channel lower than the threshold value is not suitable for selective use; (3) a theoretical maximum rate can be set as a reference index, the theoretical maximum rate determines the upper limit of the transmission speed, the lower value of two values of the theoretical maximum uplink speed of the first terminal and the theoretical maximum downlink speed of the second terminal is taken for determination, and when the difference between other indexes is not large, the index can be referred to; (4) the current delay reference index can be set, the value of the uplink delay of the first terminal and the value of the downlink delay of the second terminal are larger, the delay does not obviously influence the downloading speed, and the reference can be made when other indexes are not greatly different. (5) The number of currently connected users can be set as a reference index, the number of currently connected data does not directly affect the downloading of the users (the actual effect is reflected in the previous index), but other connections may perform some uncontrollable network transmission in the downloading process, so that the downloading speed is affected, therefore, channels with a small number of connections are preferentially selected under the same condition, and even under the condition that other indexes have no great difference, channels which can be monopolized need to be preferentially selected.
In order to improve the transmission speed and the transmission efficiency, the target near field communication mode may be at least one of the candidate near field communication modes, for example, when the communication parameters of the WIFI and bluetooth transmission channels are all excellent, the WIFI and bluetooth may be simultaneously turned on to perform multilink simultaneous transmission, so that the transmission speed of the installation file package is faster.
114. And establishing connection with a first terminal in the target near field communication mode, and receiving an installation file package of a target application program from the first terminal based on the established connection so as to install the target application program.
In order to guarantee the information security of the user, after the near field communication connection is established in the target near field communication mode, encryption processing can be performed on the interaction related to the password and the like.
In order to ensure smooth transmission and user experience, after the connection is established, it may be determined whether a storage space of the second terminal is sufficient to receive an installation file package of the target application program, for example, a file transmission list of the target application program may be obtained from the first terminal based on the established connection, where the file transmission list is created based on the installation file package of the target application program, the file transmission list includes file information of the installation file package, transmission detection is performed on the second terminal according to the file information of the installation file package, and the installation file package of the target application program is received from the first terminal based on a detection result, so as to install the target application program. The method comprises the steps of obtaining a file transmission list of a target application program from a first terminal based on established connection, wherein the file transmission list is created based on an installation file package of the target application program, the file transmission list comprises file information of the installation file package, the file information comprises the file size of the installation file package, detecting a storage space of a second terminal according to the file size of the installation file package, and receiving the installation file package of the target application program from the first terminal to install the target application program when the storage space is larger than or equal to the file size of the installation file package.
In order to ensure the integrity of the installation file package and ensure that the received installation file package is consistent with the source installation file package, the integrity of the received installation file package may be checked, for example, the integrity may be checked according to information such as the file size and the file HASH value. For example, an installation file package of a target application program may be received from the first terminal based on the detection result, when the reception of the installation file package is completed, integrity check may be performed on the installation file package based on the file transfer list, and when the verification of the installation file package passes, the target application program may be installed by using the installation file package.
When the downloading is interrupted due to network anomaly or other reasons, in order to improve the file transmission efficiency and ensure that the previously received files do not need to be repeatedly received, breakpoint transmission can be supported, for example, after the second terminal receives the file transmission list sent by the first terminal, the file transmission list can be compared with the files in the second terminal, if the installation files exist in the second terminal and the content of the installation files is ensured to be consistent through HASH check, the installation files existing in the second terminal can be excluded from the file transmission list, a new file transmission list is generated and transmitted back to the first terminal, so that the first terminal transmits the installation files according to the new file transmission list. For example, the installation file package may include a plurality of installation files, and specifically may include: when the transmission of the installation file package is interrupted, determining the installation files which are not received in the installation file package according to the file transmission list; updating the file transmission list based on the unreceived installation files to obtain an updated file transmission list; and receiving the installation files which are not received from the first terminal based on the updated file transmission list.
In order to quickly process the abnormal situation and improve user experience, the transmission can be subjected to abnormal processing, for example, when the connection is abnormally interrupted and reconnection still cannot be recovered, the user B can be prompted to rescan the sharing identification code of the first terminal and send related abnormal information to the first terminal, so that an abnormal download channel is avoided. For example, specifically, when the installation package of the target application is received abnormally, a notification of reception abnormality may be generated at the second terminal. And identifying the sharing identification code of the first terminal by using the identification control, sending the abnormal receiving notice to the first terminal, and determining a candidate near field communication mode. And establishing a candidate connection with the first terminal through the candidate near field communication mode, and receiving an installation file package of the target application program from the first terminal based on the candidate connection.
According to the application, only one user A needs to have the application program with the latest version in a near-field communication mode, and the user B can quickly acquire the installation file package of the application program with the latest version from the user A in the near-field communication mode to quickly finish the downloading and installation of the application program. For example, when multiple users perform offline meeting, if user a has downloaded the application program of the latest version, other users B and C can quickly complete the downloading and installation of the application program of the latest version by the scheme. For another example, when an electronic competition is held offline, especially in a scene of field registration, a user participating in the competition needs to download a client on the field, and an installation file package of an application program can be quickly obtained from a competition host, so that downloading and installation can be quickly completed. For another example, in some off-line stores, when the network environment is poor, and the store provides downloading of the application program (such as a mobile phone store), the user can quickly obtain the installation file package of the application program through the scheme, so that the downloading and installation can be quickly completed, the operation threshold can be reduced, and the quick downloading can be realized.
Optionally, the near field communication connection may be established by identifying the sharing identification code, or by replacing the near field communication connection with another manner such as "bump on bump" or "shake on bump". And the near field communication protocols such as WIFI and Bluetooth can also be realized through a physical line or other near field wireless communication protocols.
As can be seen from the above, the embodiment may display an application receiving page of a second terminal, where the application receiving page includes an identification control, and then identifies a sharing identification code of a first terminal by using the identification control, and obtains first near field communication information based on an identification result, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, and then determines a target near field communication mode based on the first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then establishes a connection with the first terminal through the target near field communication mode, and receives an installation package of a target application from the first terminal based on the established connection, so as to install the target application. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package only by identifying the sharing identification code displayed by the first terminal through the identification control, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
The method described in the previous embodiment is further detailed by way of example.
In this embodiment, as shown in fig. 1a, there is provided an installation system of an application, and the installation of the application may include a first terminal and a second terminal. The number of the first terminals may be one, and the number of the second terminals may be at least one. The first terminal may refer to a terminal in which the target application has been installed. The second terminal may refer to a terminal in which the target application is not installed.
In this embodiment, an installation apparatus of the application program is specifically integrated in the electronic device, a target application program may specifically be a game application, a near field communication mode supported by the first terminal may include a WIFI hotspot, and a bluetooth, and a near field communication mode supported by the second terminal may include a WIFI hotspot, and a bluetooth, which is described as an example. The specific implementation process will be described in detail below.
As shown in fig. 2a and 2b, a specific flow of an installation method of an application program may be as follows:
201. the first terminal displays an application sharing page.
For example, as shown in fig. 2c, the application sharing page may be set at a client of the game application, and the application sharing page may include a sharing button of the game application, and based on the sharing button, the user a may share the downloaded client with another user, such as the user B. The application sharing page entry may prompt the user that settings such as WIFI, bluetooth, etc. need to be used. The first terminal may refer to a terminal in which a game application has been installed. The second terminal may refer to a terminal in which the game application is not installed.
For example, when the user a and the user B are in a close space, the first terminal of the user a has a game application installed thereon, and the second terminal of the user B has no game application installed thereon, the user a may operate with respect to the user operation interface of the first terminal, and then display an application sharing page, where the application sharing page includes a sharing button of the game application, and the user a may click the sharing button to share the game application with the user B, so that the user B may also use the game application on the second terminal.
202. And the first terminal responds to the triggering operation aiming at the sharing control, generates a sharing identification code and displays the sharing identification code.
The sharing identification code may include first near field communication information, and the first near field communication information may be communication information of a near field communication mode supported by the first terminal.
For example, when the user a clicks the sharing button, the first terminal may determine the nfc mode supported by the local terminal, and acquire the related communication information of the supported nfc mode, so as to generate a sharing identifier, such as a sharing two-dimensional code, as shown in fig. 2 d. For example, the first terminal may specifically respond to a trigger operation for the sharing control, acquire first near field communication information, encode the first near field communication information, and generate a sharing identification code of the first terminal.
The near field communication mode supported by the first terminal may include WIFI, a WIFI hotspot, and bluetooth, and the first near field communication information may include WIFI information that the first terminal is currently connected to, WIFI hotspot information of the first terminal itself, and bluetooth information of the first terminal. For example, after the user a opens the sharing function, the two-dimensional code can be displayed on the first terminal, so that other users can scan the two-dimensional code, and the user is clearly informed that the mobile network is not used, and no extra traffic cost is generated. The data transmission can preferentially use WIFI, if the first terminal is connected with WIFI, the first terminal can simultaneously carry a WIFI account and a password in the shared two-dimensional code for selection of a user, and the first terminal opens a WIFI hotspot or establishes Bluetooth connection and the like.
The current connected WIFI information of the first terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the first terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the first terminal may include: (1) whether the first terminal starts Bluetooth or not; (2) the first terminal supports the version number of the Bluetooth; (3) the number of connected users of the first terminal Bluetooth is reduced; (4) the maximum uplink speed of the first terminal Bluetooth; (5) the maximum downlink speed of the first terminal Bluetooth; (6) the first terminal Bluetooth can use the uplink bandwidth; (7) the first terminal Bluetooth can use the downlink bandwidth; (8) a first terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the first terminal; (10) a first terminal Bluetooth device identifier; and so on.
203. The first terminal generates an installation file package of the game application based on the resource file of the game application.
Because the existing near field communication mode can only realize the transmission of fixed files, and after the game application is installed on the terminal, thousands of files exist, and after the installation is finished, because the installation package occupies a large space, the installation package can be cleaned up generally, therefore, in order to enable the first terminal to realize the rapid installation of the game application on the second terminal when the installation package of the game application does not exist, a file copy (namely, an installation file package) of an installation initial state can be established according to the resource files of the game application, and then the file copy is sent to the second terminal, so that the game application can be rapidly installed on the second terminal. For example, the first terminal may specifically obtain the resource file of the game application, and generate the installation file package of the game application based on the resource file of the game application.
The resource file of the game application may refer to all files generated after the game application is installed in the first terminal. Since some files in all files generated after installation relate to the privacy of the user (such as game progress information, account information of the user, and the like), and some devices adapt to different terminals of the related files differently, if all files are transmitted indiscriminately, the privacy of the user is leaked, and adaptation abnormality may be caused, so that in order to protect the data security of the user and install power, a copy of the file in an initial state (i.e., a state that the user privacy data is not included) can be excluded from or established for files related to the privacy of the user in the resource files (such as the account information of the user, and the like). For example, the first terminal may specifically classify the resource files of the game application, and exclude a preset class of files in the resource files according to a classification result to obtain excluded files; and generating the installation file package of the game application from the excluded files.
The preset type may be set in various manners, for example, the preset type may be set according to requirements of actual applications, or may be preset and stored in the electronic device. In addition, the preset category may be built in the electronic device, or may be saved in a memory and transmitted to the electronic device, and so on. For example, the files of the preset category may be files containing user account information, files containing user game progress information, and the like.
204. The second terminal displays the application reception page.
For implementation convenience and implementation cost reduction, the application receiving page may be disposed on an applet, and the application receiving page may include an identification control. As shown in fig. 2e, for example, the recognition control can be a sweep control,
for example, the user B may operate with respect to the user operation interface of the second terminal, and further display an application reception page, where the application reception page includes the identification control.
205. And the second terminal identifies the sharing identification code of the first terminal by using the identification control, and acquires the first near field communication information based on the identification result.
For example, the identification control may be a scanning control, the sharing identification code may be a sharing two-dimensional code, and the user B may identify the sharing two-dimensional code of the first terminal by using the scanning control of the second terminal, and obtain the first near field communication information based on the identification result. Wherein the first near field communication information is as described in step 202. For example, the user B may scan the shared two-dimensional code displayed by the first terminal by using a "scan" function of the applet, pull up the applet, so that the applet and the client of the first terminal perform a communication protocol negotiation, establish a connection to implement game file transmission, and automatically help the user to complete the installation of the game application after the transmission is completed, where the specific process may be as described in the following step 206, step 207, and step 208.
206. The second terminal determines a target near field communication mode based on the first near field communication information and the second near field communication information.
And the second near field communication information is communication information of a near field communication mode supported by the second terminal. For example, the near field communication mode supported by the second terminal may include WIFI, a WIFI hotspot, bluetooth and other near field communication modes, and the second near field communication information may include WIFI information currently connected to the second terminal, WIFI hotspot information of the second terminal itself, bluetooth information of the second terminal, and other near field communication information of the second terminal.
The current connected WIFI information of the second terminal may include: (1) whether WIFI is connected currently; (2) current WIFI hot roll names; (3) whether the current WIFI has a password or not; (4) the current WIFI password is transmitted if the current WIFI password can be shared, and is null if the current WIFI password can be shared; (5) the current WIFI uplink speed comprises the downlink speed in the local area network, the uplink speed to the game download server and the theoretical maximum uplink speed which can be achieved currently; (6) the current WIFI downlink speed comprises the current downlink speed in the local area network, the downlink speed to the game download server and the theoretical maximum downlink speed; (7) current WIFI network latency; (8) the current WIFI packet loss rate; and so on.
The WIFI hotspot information of the second terminal itself may include: (1) whether a hotspot has been opened; (2) the number of connected users of the current hotspot; (3) the maximum uplink speed of the current hotspot; (4) the maximum downlink speed of the current hotspot; (5) the current hotspot available uplink bandwidth; (6) the current hotspot available downlink bandwidth; (7) current hotspot network latency; (8) the current hot spot packet loss rate; (9) a current hotspot user name; (10) a current hotspot password; and so on.
The bluetooth information of the second terminal may include: (1) whether the second terminal starts Bluetooth or not; (2) the second terminal supports the version number of the Bluetooth; (3) the number of connected users of the second terminal Bluetooth is reduced; (4) the maximum uplink speed of the second terminal Bluetooth; (5) the maximum downlink speed of the second terminal Bluetooth; (6) the second terminal Bluetooth can use the uplink bandwidth; (7) the second terminal Bluetooth can use the downlink bandwidth; (8) a second terminal bluetooth network delay; (9) the Bluetooth packet loss rate of the second terminal; (10) a second terminal Bluetooth device identifier; and so on.
For example, the second terminal may specifically analyze the first nfc information, determine, according to an analysis result, a nfc mode supported by the first terminal, determine, based on the second nfc information, a nfc mode supported by the second terminal, determine, according to the nfc mode supported by the first terminal and the nfc mode supported by the second terminal, at least one candidate nfc mode, where the candidate nfc mode is a nfc mode supported by both the first terminal and the second terminal, and determine, based on the candidate nfc mode, a target nfc mode.
For example, the first near field communication information is analyzed to obtain that the near field communication modes supported by the first terminal include WIFI, WIFI hotspots and bluetooth, and it is determined that the near field communication modes supported by the second terminal include WIFI, WIFI hotspots and bluetooth, then the candidate near field communication modes may include WIFI, WIFI hotspots and bluetooth, and then an optimal near field communication mode can be selected from the candidate near field communication modes to determine the optimal near field communication mode as a target near field communication mode, for example, the target near field communication mode may be WIFI. For another example, when the communication parameters of the WIFI and bluetooth transmission channels are excellent, the WIFI and bluetooth can be simultaneously used for establishing connection, and multi-link simultaneous transmission is performed, so that the transmission speed of the installation file package is higher, the transmission speed can be effectively improved, and the transmission efficiency is improved.
The method for selecting the optimal near field communication mode may be various, for example, the second terminal may specifically obtain the communication parameter of each candidate near field communication mode; ranking the candidate near field communication modes based on the communication parameters; and determining a target near field communication mode according to the sequencing result.
The communication parameters may include a current available bandwidth, a current packet loss rate, a theoretical maximum rate, a current delay, a current number of connected users, and the like. For example, (1) the current available bandwidth may be set as a most core indicator, and the current available bandwidth may be determined by a smaller value of the uplink available bandwidth of the first terminal and the downlink available bandwidth of the second terminal; (2) the current packet loss rate can be set as an important index, the sum of the packet loss rate of the first terminal and the downlink packet loss rate of the second terminal is taken, when the packet loss rate is too large, even if the download bandwidth is large, the actual effective load becomes very low due to frequent retransmission, so a threshold value is generally set, and a channel lower than the threshold value is not suitable for selective use; (3) a theoretical maximum rate can be set as a reference index, the theoretical maximum rate determines the upper limit of the transmission speed, the lower value of two values of the theoretical maximum uplink speed of the first terminal and the theoretical maximum downlink speed of the second terminal is taken for determination, and when the difference between other indexes is not large, the index can be referred to; (4) the current delay reference index can be set, the value of the uplink delay of the first terminal and the value of the downlink delay of the second terminal are larger, the delay does not obviously influence the downloading speed, and the reference can be made when other indexes are not greatly different. (5) The number of currently connected users can be set as a reference index, the number of currently connected data does not directly affect the downloading of the users (the actual effect is reflected in the previous index), but other connections may perform some uncontrollable network transmission in the downloading process, so that the downloading speed is affected, therefore, channels with a small number of connections are preferentially selected under the same condition, and even under the condition that other indexes have no great difference, channels which can be monopolized need to be preferentially selected.
207. And the second terminal establishes connection with the first terminal in the target near field communication mode and receives the installation file package of the game application from the first terminal based on the established connection.
For example, after the second terminal establishes a connection with the first terminal through the target near field communication mode, for example, WIFI, the second terminal may receive the installation file package of the game application from the first terminal through WIFI.
In order to guarantee the information security of the user, after the near field communication connection is established in the target near field communication mode, encryption processing can be performed on the interaction related to the password and the like.
In order to ensure smooth transmission and user experience, after the connection is established, it may be determined whether a storage space of the second terminal is sufficient to receive an installation file package of the game application, for example, the second terminal may specifically obtain a file transmission list of the game application from the first terminal based on the established connection, where the file transmission list is created based on the installation file package of the game application, the file transmission list includes file information of the installation file package, perform transmission detection on the second terminal according to the file information of the installation file package, and receive the installation file package of the game application from the first terminal based on a detection result, so as to install the game application. The method comprises the steps of obtaining a file transmission list of a game application from a first terminal based on established connection, wherein the file transmission list is created based on an installation file package of the game application, the file transmission list comprises file information of the installation file package, the file information comprises the file size of the installation file package, detecting a storage space of a second terminal according to the file size of the installation file package, and receiving the installation file package of the game application from the first terminal to install the game application when the storage space is larger than or equal to the file size of the installation file package.
The file information of the installation file package may include a file name, a file size, a file HASH value, and the like, and may be used for the receiving end to perform file integrity check.
208. And the second terminal installs the game application by using the installation file package.
In order to ensure the integrity of the installation file package and ensure that the received installation file package is consistent with the source installation file package, the integrity of the received installation file package may be checked, for example, the integrity may be checked according to information such as the file size and the file HASH value. For example, the second terminal may specifically receive an installation file package of the game application from the first terminal based on the detection result, perform integrity check on the installation file package based on the file transfer list when the installation file package is received, and install the game application by using the installation file package when the installation file package passes the check.
When the downloading is interrupted due to network anomaly or other reasons, in order to improve the file transmission efficiency and ensure that the previously received files do not need to be repeatedly received, breakpoint transmission can be supported, for example, after the second terminal receives the file transmission list sent by the first terminal, the file transmission list can be compared with the files in the second terminal, if the installation files exist in the second terminal and the content of the installation files is ensured to be consistent through HASH check, the installation files existing in the second terminal can be excluded from the file transmission list, a new file transmission list is generated and transmitted back to the first terminal, so that the first terminal transmits the installation files according to the new file transmission list. For example, the installation file package may include a plurality of installation files, and specifically may include: when the transmission of the installation file package is interrupted, determining the installation files which are not received in the installation file package according to the file transmission list; updating the file transmission list based on the unreceived installation files to obtain an updated file transmission list; and receiving the installation files which are not received from the first terminal based on the updated file transmission list.
In order to quickly process the abnormal situation and improve user experience, the transmission can be subjected to abnormal processing, for example, when the connection is abnormally interrupted and reconnection still cannot be recovered, the user B can be prompted to rescan the sharing identification code of the first terminal and send related abnormal information to the first terminal, so that an abnormal download channel is avoided. For example, the second terminal may specifically generate a reception abnormality notification when the installation package of the game application is received abnormally, recognize the sharing identification code of the first terminal by using the recognition control, transmit the reception abnormality notification to the first terminal, determine a candidate near field communication scheme, reestablish a candidate connection with the first terminal by using the candidate near field communication scheme, and receive the installation package of the game application from the first terminal based on the candidate connection. If a part of installation file packages are received before exception, the installation file packages which are not received can be continuously received through the established alternate connection, and the receiving efficiency is improved.
After the second terminal completes installation of the game application by using the installation file package, an installation completion notification can be displayed at the second terminal to notify a user that installation of the game application is completed.
According to the method and the system, only one user needs to have the latest version of the game application in a near-field communication mode, and other users on site can quickly finish downloading and installing the game application in the near-field communication mode. For example, when multiple users are in a offline party, if the users have downloaded the latest version of the game application, other users can quickly complete the downloading and installation of the latest version of the game application through the scheme. For another example, when an electronic competition is held offline, especially for a scene of on-site registration, a user participating in the competition needs to download a client of a game application on the site, and a competition host can enable the user to quickly complete downloading and installation of the game application through the scheme, so that the time of the user is saved. For another example, in some off-line stores, when the network environment is poor, downloading of game applications or other applications (such as mobile phone stores and the like) can be provided, so that when some users have a tight network charge, downloading and installation of some applications can be completed in the manner.
Optionally, the method of establishing the nfc connection by scanning the two-dimensional code may be implemented by replacing other near field communication methods such as "bump to bump", "shake" and the like. And the near field communication modes such as WIFI and Bluetooth can also be realized through an entity data line or other near field wireless communication protocols, and the like.
As can be seen from the above, this embodiment may display an application sharing page of a first terminal, where the application sharing page includes a sharing control of a target application, and in response to a trigger operation for the sharing control, a sharing identification code of the first terminal is generated, where the sharing identification code includes first near field communication information, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, and then, in response to an identification operation for identifying the sharing identification code by a second terminal, a connection is established with the second terminal in a target near field communication mode, where the target near field communication mode is determined according to the first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, an installation package of the target application is sent to the second terminal based on the established connection, so that the second terminal installs the target application program. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package only by identifying the sharing identification code displayed by the first terminal through the identification control, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
In order to better implement the method, correspondingly, an embodiment of the present application further provides an installation apparatus of an application, where the installation apparatus of the application may be specifically integrated in an electronic device, and the electronic device may be a server or a terminal. For example, the installation means of the application may be integrated in a live terminal.
For example, as shown in fig. 3a, the installation apparatus of the application may include a display unit 301, a generation unit 302, a connection unit 303, and a transmission unit 304, as follows:
the display unit 301 is configured to display an application sharing page of a first terminal, where the application sharing page includes a sharing control of a target application;
a generating unit 302, configured to generate a sharing identification code of the first terminal in response to a triggering operation for the sharing control, where the sharing identification code includes first near field communication information, and the first near field communication information is communication information of a near field communication mode supported by the first terminal;
a connection unit 303, configured to, in response to an identification operation of identifying the sharing identification code by the second terminal, establish connection with the second terminal in a target near field communication manner, where the target near field communication manner is determined according to first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication manner supported by the second terminal;
a sending unit 304, configured to send an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application.
Optionally, in some embodiments, the generating unit 302 may be specifically configured to, in response to a triggering operation for the sharing control, acquire first near field communication information; and encoding the first near field communication information to generate a sharing identification code of the first terminal.
Optionally, in some embodiments, the connection unit 303 is specifically configured to send the first near field communication information to the second terminal in response to an identification operation of the second terminal for identifying the sharing identification code, so that the second terminal determines a target near field communication mode according to the first near field communication information and the second near field communication information; and establishing connection with the second terminal through the determined target near field communication mode.
Optionally, in some embodiments, the installation apparatus of the application program may further include an obtaining unit 305, and the obtaining unit 305 may include an obtaining sub-unit and a generating sub-unit, as follows:
the acquiring subunit is configured to acquire a resource file of the target application program in the first terminal;
the generating subunit is configured to generate an installation file package of the target application program based on the resource file of the target application program.
Optionally, in some embodiments, the generating subunit may be specifically configured to classify the resource files of the target application program, and exclude a preset category of files in the resource files according to a classification result to obtain excluded files; and generating the installation file package of the target application program from the excluded files.
Optionally, in some embodiments, the sending unit 304 may be specifically configured to create a file transfer list of the target application based on an installation file package of the target application, where the file transfer list includes file information of the installation file package; sending the file transmission list to a second terminal based on the established connection so that the second terminal can perform transmission detection based on the file information of the installation file package; and sending the installation file package of the target application program to the second terminal according to the detection result returned by the second terminal.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in this embodiment, the display unit 301 may display an application sharing page of the first terminal, where the application sharing page includes a sharing control of the target application, the generation unit 302 generates, in response to a trigger operation for the sharing control, a sharing identification code of the first terminal, where the sharing identification code includes first near field communication information, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, and then, the connection unit 303 establishes, in response to an identification operation for identifying the sharing identification code by the second terminal, a connection with the second terminal in a target near field communication mode, where the target near field communication mode is determined according to the first near field communication information and the second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal, then, the transmitting unit 304 transmits the installation package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the first terminal only needs to display the sharing identification code, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package by identifying the sharing identification code, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
In order to better implement the method, correspondingly, an embodiment of the present application further provides an installation apparatus of an application, where the installation apparatus of the application may be specifically integrated in an electronic device, and the electronic device may be a server or a terminal. For example, the installation means of the application may be integrated in the participant terminal.
For example, as shown in fig. 3b, the installation apparatus of the application may include a display module 311, a recognition module 312, a determination module 313, and a reception module 314, as follows:
a display module 311, configured to display an application receiving page of the second terminal, where the application receiving page includes an identification control;
the identification module 312 is configured to identify the sharing identification code of the first terminal by using the identification control, and obtain first near field communication information based on an identification result, where the first near field communication information is communication information of a near field communication mode supported by the first terminal;
a determining module 313, configured to determine a target near field communication scheme based on first near field communication information and second near field communication information, where the second near field communication information is communication information of a near field communication scheme supported by a second terminal;
a receiving module 314, configured to establish a connection with the first terminal in the target near field communication manner, and receive an installation package of a target application from the first terminal based on the established connection, so as to install the target application.
Optionally, in some embodiments, the determining module 313 may be specifically configured to analyze the first nfc information, and determine, according to an analysis result, a nfc mode supported by the first terminal; determining a near field communication mode supported by the second terminal based on the second near field communication information; determining at least one candidate near field communication mode according to a near field communication mode supported by a first terminal and a near field communication mode supported by a second terminal, wherein the candidate near field communication mode is a near field communication mode supported by both the first terminal and the second terminal; and determining a target near field communication mode based on the candidate near field communication modes.
Optionally, in some embodiments, the determining module 313 may be specifically configured to obtain a communication parameter of each candidate near field communication mode; ranking the candidate near field communication modes based on the communication parameters; and determining a target near field communication mode according to the sequencing result.
Optionally, in some embodiments, the receiving module 314 may include a detecting sub-module and a receiving sub-module, as follows:
the detection submodule is used for acquiring a file transmission list of a target application program from a first terminal based on the established connection, the file transmission list is established based on an installation file package of the target application program, and the file transmission list comprises file information of the installation file package; carrying out transmission detection on the second terminal according to the file information of the installation file package;
and the receiving submodule is used for receiving an installation file package of a target application program from the first terminal based on the detection result so as to install the target application program.
Optionally, in some embodiments, the receiving sub-module may be specifically configured to receive an installation file package of a target application from the first terminal based on a detection result; when the installation file package is received, carrying out integrity check on the installation file package based on the file transmission list; and when the installation file package passes the inspection, installing the target application program by using the installation file package.
Optionally, in some embodiments, the installation file package includes a plurality of installation files, and the receiving sub-module is specifically configured to determine, according to the file transmission list, an installation file that is not received in the installation file package when transmission of the installation file package is interrupted; updating the file transmission list based on the unreceived installation files to obtain an updated file transmission list; and receiving the installation files which are not received from the first terminal based on the updated file transmission list.
Optionally, in some embodiments, the installation apparatus of the application further includes an exception handling module 315, as follows:
the exception handling module 315 may be specifically configured to generate a notification of receiving an exception at the second terminal when the installation file package of the target application program receives an exception; identifying the sharing identification code of the first terminal by using the identification control, sending the abnormal receiving notification to the first terminal, and determining a candidate near field communication mode; and establishing a candidate connection with the first terminal through the candidate near field communication mode, and receiving an installation file package of the target application program from the first terminal based on the candidate connection.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in this embodiment, the display module 311 may display an application receiving page of the second terminal, where the application receiving page includes an identification control, the identification module 312 identifies the shared identification code of the first terminal by using the identification control, and obtains first near field communication information based on the identification result, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, then the determination module 313 determines a target near field communication mode based on the first near field communication information and second near field communication information, where the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then the receiving module 314 establishes a connection with the first terminal through the target near field communication mode and receives an installation package of a target application from the first terminal based on the established connection, to install the target application. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package only by identifying the sharing identification code displayed by the first terminal through the identification control, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
In addition, an electronic device according to an embodiment of the present application is further provided, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to an embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
displaying an application sharing page of a first terminal, wherein the application sharing page comprises a sharing control of a target application, generating a sharing identification code of the first terminal in response to a triggering operation aiming at the sharing control, the sharing identification code comprises first near field communication information, the first near field communication information is communication information of a near field communication mode supported by the first terminal, then, in response to an identification operation of a second terminal for identifying the sharing identification code, establishing connection with the second terminal in a target near field communication mode, the target near field communication mode is determined according to the first near field communication information and second near field communication information, the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, sending an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application program.
Or
The method comprises the steps of displaying an application program receiving page of a second terminal, wherein the application program receiving page comprises an identification control, identifying a sharing identification code of a first terminal by using the identification control, acquiring first near field communication information based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal, then determining a target near field communication mode based on the first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal, then establishing connection with the first terminal through the target near field communication mode, receiving an installation file package of a target application program from the first terminal based on the established connection, and installing the target application program.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, this embodiment may display an application sharing page of a first terminal, where the application sharing page includes a sharing control of a target application, and in response to a trigger operation for the sharing control, a sharing identification code of the first terminal is generated, where the sharing identification code includes first near field communication information, where the first near field communication information is communication information of a near field communication mode supported by the first terminal, and then, in response to an identification operation for identifying the sharing identification code by a second terminal, a connection is established with the second terminal in a target near field communication mode, where the target near field communication mode is determined according to the first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, an installation package of the target application is sent to the second terminal based on the established connection, so that the second terminal installs the target application program. The scheme can help the user to quickly complete the transmission of the large file in the scene that the large file needs to be transmitted face to face. According to the scheme, the application program is installed, the second terminal can automatically select the optimal near field communication mode to transmit the installation file package only by identifying the sharing identification code displayed by the first terminal through the identification control, the user operation is simple, and the operation threshold of the user is greatly reduced. Moreover, user traffic is saved, the near field communication mode is realized through WIFI, WIFI hot spots or Bluetooth of the main terminal, network traffic of users does not need to be consumed, and user cost is greatly saved. Moreover, the transmission time for installing the file package is greatly saved, the downloading speed of the near field communication mode is higher than that of the user directly downloading or transferring through the server, the transmission time of the user can be effectively shortened, the experience of user data transmission is greatly improved, and the rapid installation of the application program is effectively realized.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application further provide a storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the installation methods of the application program provided in the embodiments of the present application. For example, the instructions may perform the steps of:
displaying an application sharing page of a first terminal, wherein the application sharing page comprises a sharing control of a target application, generating a sharing identification code of the first terminal in response to a triggering operation aiming at the sharing control, the sharing identification code comprises first near field communication information, the first near field communication information is communication information of a near field communication mode supported by the first terminal, then, in response to an identification operation of a second terminal for identifying the sharing identification code, establishing connection with the second terminal in a target near field communication mode, the target near field communication mode is determined according to the first near field communication information and second near field communication information, the second near field communication information is communication information of a near field communication mode supported by the second terminal, and then, sending an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application program.
Or
The method comprises the steps of displaying an application program receiving page of a second terminal, wherein the application program receiving page comprises an identification control, identifying a sharing identification code of a first terminal by using the identification control, acquiring first near field communication information based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal, then determining a target near field communication mode based on the first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal, then establishing connection with the first terminal through the target near field communication mode, receiving an installation file package of a target application program from the first terminal based on the established connection, and installing the target application program.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in the method for installing any application program provided in the embodiment of the present application, the beneficial effects that can be achieved by the method for installing any application program provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The foregoing describes in detail an installation method, an installation apparatus, an electronic device, and a storage medium of an application program provided in an embodiment of the present application, and a specific example is applied in the present application to explain principles and implementations of the present application, and the description of the foregoing embodiment is only used to help understand a method and a core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. An installation method of an application program, comprising:
displaying an application program sharing page of a first terminal, wherein the application program sharing page comprises a sharing control of a target application program;
responding to a triggering operation aiming at the sharing control, and generating a sharing identification code of the first terminal, wherein the sharing identification code comprises first near field communication information, and the first near field communication information is communication information of a near field communication mode supported by the first terminal;
responding to the identification operation of the second terminal for identifying the sharing identification code, and establishing connection with the second terminal through a target near field communication mode, wherein the target near field communication mode is determined according to first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal;
and sending an installation file package of the target application program to the second terminal based on the established connection so as to enable the second terminal to install the target application program.
2. The method according to claim 1, wherein the generating the sharing identification code of the first terminal in response to the triggering operation for the sharing control includes:
responding to the triggering operation aiming at the sharing control, and acquiring first near field communication information;
and encoding the first near field communication information to generate a sharing identification code of the first terminal.
3. The method according to claim 1, wherein the establishing a connection with the second terminal in a target near field communication manner in response to the identification operation of the second terminal identifying the shared identification code comprises:
responding to the identification operation of the second terminal for identifying the sharing identification code, and sending the first near field communication information to the second terminal so that the second terminal determines a target near field communication mode according to the first near field communication information and the second near field communication information;
and establishing connection with the second terminal through the determined target near field communication mode.
4. The method of claim 1, wherein before sending the installation package of the target application to the second terminal based on the established connection, the method further comprises:
acquiring a resource file of the target application program in the first terminal;
and generating an installation file package of the target application program based on the resource file of the target application program.
5. The method of claim 4, wherein the generating the installation file package of the target application based on the resource file of the target application comprises:
classifying the resource files of the target application program, and excluding files of preset classes in the resource files according to classification results to obtain excluded files;
and generating the installation file package of the target application program from the excluded files.
6. The method according to any one of claims 1 to 5, wherein the sending the installation package of the target application to the second terminal based on the established connection comprises:
creating a file transmission list of the target application program based on an installation file package of the target application program, wherein the file transmission list comprises file information of the installation file package;
sending the file transmission list to a second terminal based on the established connection so that the second terminal can perform transmission detection based on the file information of the installation file package;
and sending the installation file package of the target application program to the second terminal according to the detection result returned by the second terminal.
7. An installation method of an application program, comprising:
displaying an application program receiving page of the second terminal, wherein the application program receiving page comprises an identification control;
the identification control is used for identifying the sharing identification code of the first terminal, and first near field communication information is obtained based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal;
determining a target near field communication mode based on first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal;
and establishing connection with a first terminal in the target near field communication mode, and receiving an installation file package of a target application program from the first terminal based on the established connection so as to install the target application program.
8. The method of claim 7, wherein determining the target near field communication mode based on the first near field communication information and the second near field communication information comprises:
analyzing the first near field communication information, and determining a near field communication mode supported by the first terminal according to an analysis result;
determining a near field communication mode supported by the second terminal based on the second near field communication information;
determining at least one candidate near field communication mode according to a near field communication mode supported by a first terminal and a near field communication mode supported by a second terminal, wherein the candidate near field communication mode is a near field communication mode supported by both the first terminal and the second terminal;
and determining a target near field communication mode based on the candidate near field communication modes.
9. The method of claim 8, wherein determining a target near field communication mode based on the candidate near field communication modes comprises:
acquiring communication parameters of each candidate near field communication mode;
ranking the candidate near field communication modes based on the communication parameters;
and determining a target near field communication mode according to the sequencing result.
10. The method of claim 7, wherein receiving an installation package of a target application from the first terminal based on the established connection to install the target application comprises:
acquiring a file transmission list of a target application program from a first terminal based on the established connection, wherein the file transmission list is created based on an installation file package of the target application program and comprises file information of the installation file package;
carrying out transmission detection on the second terminal according to the file information of the installation file package;
and receiving an installation file package of a target application program from the first terminal based on the detection result so as to install the target application program.
11. The method according to claim 10, wherein the receiving an installation file package of a target application from the first terminal based on the detection result to install the target application comprises:
receiving an installation file package of a target application program from the first terminal based on the detection result;
when the installation file package is received, carrying out integrity check on the installation file package based on the file transmission list;
and when the installation file package passes the inspection, installing the target application program by using the installation file package.
12. The method of claim 11, wherein the installation file package comprises a plurality of installation files, and wherein when the installation file package is received, before performing integrity check on the installation file package based on the file transfer list, the method further comprises:
when the transmission of the installation file package is interrupted, determining the installation files which are not received in the installation file package according to the file transmission list;
updating the file transmission list based on the unreceived installation files to obtain an updated file transmission list;
and receiving the installation files which are not received from the first terminal based on the updated file transmission list.
13. The method of claim 7, wherein after receiving the installation package of the target application from the first terminal based on the established connection, further comprising:
when the installation file package of the target application program is received abnormally, generating a notification of receiving the abnormality at the second terminal;
identifying the sharing identification code of the first terminal by using the identification control, sending the abnormal receiving notification to the first terminal, and determining a candidate near field communication mode;
and establishing a candidate connection with the first terminal through the candidate near field communication mode, and receiving an installation file package of the target application program from the first terminal based on the candidate connection.
14. An apparatus for installing an application program, comprising:
the display unit is used for displaying an application program sharing page of the first terminal, and the application program sharing page comprises a sharing control of a target application program;
the generating unit is used for responding to a triggering operation aiming at the sharing control, and generating a sharing identification code of the first terminal, wherein the sharing identification code comprises first near field communication information, and the first near field communication information is communication information of a near field communication mode supported by the first terminal;
the connection unit is used for responding to the identification operation of the second terminal for identifying the sharing identification code and establishing connection with the second terminal through a target near field communication mode, wherein the target near field communication mode is determined according to first near field communication information and second near field communication information, and the second near field communication information is communication information of a near field communication mode supported by the second terminal;
a sending unit, configured to send an installation file package of the target application to the second terminal based on the established connection, so that the second terminal installs the target application.
15. An apparatus for installing an application program, comprising:
the display module is used for displaying an application program receiving page of the second terminal, and the application program receiving page comprises an identification control;
the identification module is used for identifying the sharing identification code of the first terminal by using the identification control and acquiring first near field communication information based on an identification result, wherein the first near field communication information is communication information of a near field communication mode supported by the first terminal;
the determining module is used for determining a target near field communication mode based on first near field communication information and second near field communication information, wherein the second near field communication information is communication information of a near field communication mode supported by a second terminal;
and the receiving module is used for establishing connection with the first terminal in the target near field communication mode, and receiving an installation file package of a target application program from the first terminal based on the established connection so as to install the target application program.
CN202011312565.5A 2020-11-20 2020-11-20 Application program installation method and device, electronic equipment and storage medium Active CN112346751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011312565.5A CN112346751B (en) 2020-11-20 2020-11-20 Application program installation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011312565.5A CN112346751B (en) 2020-11-20 2020-11-20 Application program installation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112346751A true CN112346751A (en) 2021-02-09
CN112346751B CN112346751B (en) 2022-06-07

Family

ID=74365252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011312565.5A Active CN112346751B (en) 2020-11-20 2020-11-20 Application program installation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112346751B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887955A (en) * 2021-03-22 2021-06-01 北京安奇智联科技有限公司 Application recommendation method and system in near field transmission between android mobile phones
CN114465999A (en) * 2021-12-22 2022-05-10 奇安盘古(上海)信息技术有限公司 File pulling method and device, electronic equipment and storage medium
CN116709549A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105119991A (en) * 2015-08-20 2015-12-02 深圳市金立通信设备有限公司 Application sharing method and terminal
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system
CN105656991A (en) * 2015-12-21 2016-06-08 北京金山安全软件有限公司 File sharing method and device
US20160277496A1 (en) * 2013-11-28 2016-09-22 Tencent Technology (Shenzhen) Company Limited Method, server and system for application synchronization
CN106375461A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Configuration resource near-field transmission method and device
CN106888498A (en) * 2017-01-25 2017-06-23 北京奇虎科技有限公司 A kind of inter-terminal data transmission method, device and mobile terminal
CN108712482A (en) * 2018-05-06 2018-10-26 深圳市保千里电子有限公司 Based on mobile terminal Quick Response Code rapid file sharing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160277496A1 (en) * 2013-11-28 2016-09-22 Tencent Technology (Shenzhen) Company Limited Method, server and system for application synchronization
CN105138420A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Data backup method, apparatus and system and data recovery method, apparatus and system
CN105119991A (en) * 2015-08-20 2015-12-02 深圳市金立通信设备有限公司 Application sharing method and terminal
CN105656991A (en) * 2015-12-21 2016-06-08 北京金山安全软件有限公司 File sharing method and device
CN106375461A (en) * 2016-09-13 2017-02-01 乐视控股(北京)有限公司 Configuration resource near-field transmission method and device
CN106888498A (en) * 2017-01-25 2017-06-23 北京奇虎科技有限公司 A kind of inter-terminal data transmission method, device and mobile terminal
CN108712482A (en) * 2018-05-06 2018-10-26 深圳市保千里电子有限公司 Based on mobile terminal Quick Response Code rapid file sharing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
剪切图片: ""快牙扫码传输怎么用?文件传输的技巧"", 《百度经验 公开网址:HTTPS://JINGYAN.BAIDU.COM/ARTICLE/C35DBCB0F88C5F8916FCBCFA.HTML》 *
剪切图片: ""快牙扫码传输怎么用?文件传输的技巧"", 《百度经验 公开网址:HTTPS://JINGYAN.BAIDU.COM/ARTICLE/C35DBCB0F88C5F8916FCBCFA.HTML》, 15 January 2016 (2016-01-15), pages 1 - 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887955A (en) * 2021-03-22 2021-06-01 北京安奇智联科技有限公司 Application recommendation method and system in near field transmission between android mobile phones
CN112887955B (en) * 2021-03-22 2023-01-10 北京安奇智联科技有限公司 Application recommendation method and system in near field transmission between android mobile phones
CN114465999A (en) * 2021-12-22 2022-05-10 奇安盘古(上海)信息技术有限公司 File pulling method and device, electronic equipment and storage medium
CN116709549A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium
CN116709549B (en) * 2023-08-04 2023-10-20 腾讯科技(深圳)有限公司 Resource sharing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112346751B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN109152095B (en) Wireless network connection method for terminal
CN105391803B (en) Message pushing method, device, equipment and computer readable storage medium
EP3100437B1 (en) Actionable notifications
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
CN110035004B (en) User name card sharing method, friend adding method and related device
US20120315846A1 (en) Method and system for proximity-based content sharing
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
WO2020168561A1 (en) Device network distribution method and apparatus, electronic device, and storage medium
CN107995247A (en) A kind of document transmission method, server and system
KR20130058579A (en) Method for authentication and service providing in wireless local network system and apparatus for providing service using the method
CN112351070A (en) File transmission method and device, storage medium and electronic equipment
CN111542033A (en) Near-field data transmission method and device and computer readable storage medium
CN111371896A (en) Network acceleration method, terminal and storage medium
CN114390574B (en) Wireless network throughput test method, device and computer readable storage medium
CN110995780A (en) API calling method and device, storage medium and electronic equipment
CN112395204B (en) Method, system, related device and medium for obtaining test coverage rate
CN114417201A (en) Message processing method and device, computer equipment and storage medium
CN115098052A (en) Screen projection method, device, equipment and storage medium
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN107360634B (en) Data transmission method and device and mobile terminal
CN112640533A (en) Electronic device for providing AP list and method for operating electronic device
CN104580070A (en) Method, device and system for confirming network conversations
CN112287373B (en) Data processing method, device, storage medium and network access point equipment
CN112437479B (en) Hotspot connection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038732

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant