CN115686542A - Application installation method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN115686542A
CN115686542A CN202110864759.4A CN202110864759A CN115686542A CN 115686542 A CN115686542 A CN 115686542A CN 202110864759 A CN202110864759 A CN 202110864759A CN 115686542 A CN115686542 A CN 115686542A
Authority
CN
China
Prior art keywords
application
terminal
information
identifier
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110864759.4A
Other languages
Chinese (zh)
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 CN202110864759.4A priority Critical patent/CN115686542A/en
Publication of CN115686542A publication Critical patent/CN115686542A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides an application installation method, an application installation device, application installation equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: responding to an application installation instruction, displaying at least one terminal identifier and at least one application identifier, wherein a second terminal corresponding to the at least one terminal identifier and the first terminal are in the same local area network; acquiring a target terminal identifier selected from at least one terminal identifier and a target application identifier selected from at least one application identifier; and sending application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network, wherein the target terminal is used for installing the application based on the application information. The application installation scheme provided by the method only needs the user to execute simple selection operation in the first terminal, so that the application installation operation is greatly simplified, and the application installation efficiency is improved.

Description

Application installation method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application installation method, apparatus, device, and storage medium.
Background
In daily life, applications are often required to be installed in a television, for example, a certain video application is installed in the television, so that a video provided by the video application is played on the television. In the related art, a user is required to download an application to a usb disk (a mobile storage device) in advance, then insert the usb disk into the television, and install the application in the usb disk into the television by using a remote controller, which is cumbersome to operate.
Disclosure of Invention
The embodiment of the application installation method, the application installation device, the application installation equipment and the storage medium can simplify application installation operation and improve application installation efficiency. The technical scheme is as follows:
in one aspect, an application installation method performed by a first terminal is provided, and the method includes:
responding to an application installation instruction, displaying at least one terminal identification and at least one application identification, wherein a second terminal corresponding to the at least one terminal identification and the first terminal are in the same local area network;
acquiring a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier;
and sending application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network, wherein the target terminal is used for installing the application based on the application information.
In a possible implementation manner, the sending an information obtaining request to a first server includes:
sending a second information acquisition request to the first server, wherein the second information acquisition request is used for acquiring application information comprising an application download link, and the target terminal is used for installing the application based on the application download link; alternatively, the first and second electrodes may be,
and sending a third information acquisition request to the first server, wherein the third information acquisition request is used for acquiring application information comprising an application installation package, and the target terminal is used for installing the application based on the application installation package.
In a possible implementation manner, before sending the information acquisition request to the first server, the method further includes:
receiving a unique identifier sent by the target terminal through the local area network;
the information obtaining request also carries the unique identifier, the first server is used for sending the application information including the unique identifier, and the target terminal is used for installing the application based on the application information under the condition that the unique identifier in the application information is the same as the unique identifier sent by the target terminal to the first terminal.
In another aspect, an application installation method performed by a target terminal is provided, the method including:
receiving an application installation service request sent by a first terminal through a local area network, wherein the first terminal and the target terminal are in the local area network;
sending service response information to the first terminal through the local area network, wherein the service response information comprises a target terminal identifier of the target terminal, the first terminal is used for displaying a terminal identifier and at least one application identifier of at least one terminal in the local area network, acquiring the target terminal identifier selected from the at least one terminal identifier and the target application identifier selected from the at least one application identifier, and sending the application information corresponding to the target application identifier to the target terminal corresponding to the target terminal identifier through the local area network;
and installing an application based on the application information when the application information sent by the first terminal is received.
In one possible implementation manner, the installing the application based on the application installation information includes:
sending a verification request to a second server, wherein the verification request carries the first public key;
the second server is used for inquiring the first public key from a blacklist, and sending verification passing information to the target terminal under the condition that the first public key cannot be inquired from the blacklist, wherein the blacklist is used for storing the public key of the server without application installation authority;
and in the case of receiving the verification passing information sent by the second server, installing the application based on the application installation information.
In a possible implementation manner, the application information includes a signature and application installation information, the signature is obtained by encrypting a first hash value of the application installation information based on a first private key of a first server, and the first server is a server providing the application information;
the installing an application based on the application information when receiving the application information sent by the first terminal includes:
under the condition that the application information is received, decrypting the signature based on a first public key to obtain a first hash value of the application installation information, wherein the first public key corresponds to the first private key;
performing hash processing on the application installation information to obtain a second hash value;
installing the application based on the application installation information if the first hash value is the same as the second hash value.
In a possible implementation manner, the installing an application based on the application information when the application information sent by the first terminal is received includes:
under the condition that the application information is received, inquiring an application identifier corresponding to the application information from a white list;
under the condition that an application identifier corresponding to the application information is inquired from the white list, the application is installed based on the application information;
the white list is used for storing application identifications with installation authority.
In a possible implementation manner, after the application is installed based on the application information in a case where the application information sent by the first terminal is received, the method further includes:
synchronizing a state of the installed application with a state of the application in the first terminal based on state synchronization information indicating the state of the application in the first terminal, if the application information includes the state synchronization information.
In a possible implementation manner, in a case that the application information sent by the first terminal is received, installing an application based on the application information includes:
if the application information is received and comprises an application installation package, installing the application based on the application installation package; alternatively, the first and second liquid crystal display panels may be,
and if the application information is received and comprises an application download link, installing the application based on the application download link.
In a possible implementation manner, the service response information further includes a unique identifier randomly generated by the target terminal;
the installing an application based on the application information when the application information sent by the first terminal is received comprises:
and in the case that the application information is received and the unique identifier in the application information is the same as the unique identifier in the service response information, installing the application based on the application information.
In another aspect, an application installation method performed by a first server is provided, the method including:
receiving an information acquisition request sent by a first terminal, wherein the information acquisition request carries a target application identifier;
based on a first private key of the first server, encrypting the application installation information corresponding to the target application identifier to obtain a signature;
sending application information to the first terminal, wherein the application information comprises the signature;
the first terminal is used for sending the application information to a target terminal, the target terminal is used for decrypting the signature based on a first public key corresponding to the first private key to obtain the application installation information, and the application is installed based on the application installation information.
In a possible implementation manner, the application information further includes a certificate, the certificate is obtained by encrypting the first public key based on a second private key of the target terminal, and the target terminal is further configured to decrypt the certificate based on a second public key corresponding to the second private key, so as to obtain the first public key.
In a possible implementation manner, the information obtaining request further carries a unique identifier, the unique identifier is sent to the first terminal by the target terminal, the application information further includes the unique identifier, and the target terminal is configured to decrypt the signature based on the first public key under the condition that the unique identifier in the application information is the same as the unique identifier sent to the first terminal by the target terminal.
In another aspect, an application installation apparatus applied to a first terminal is provided, the apparatus including:
the identifier display module is used for responding to an application installation instruction and displaying at least one terminal identifier and at least one application identifier, wherein a second terminal corresponding to the at least one terminal identifier and the first terminal are in the same local area network;
an identifier obtaining module, configured to obtain a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier;
and the information sending module is used for sending the application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network, and the target terminal is used for installing the application based on the application information.
In a possible implementation manner, the identifier display module is configured to send an application installation service request through the local area network in response to the application installation instruction, and a second terminal in the local area network is configured to send service response information through the local area network when receiving the application installation service request, where the service response information includes a terminal identifier of the second terminal; and under the condition of receiving the service response information, displaying the terminal identification and the at least one application identification in the service response information.
In a possible implementation manner, the service response information further includes an internet protocol IP address of the second terminal and a port number of an application installation service;
the information sending module is configured to send the application information through the local area network, where the application information includes the IP address and the port number; the target terminal is used for receiving the application information through the IP address, sending the application information to an application installation service corresponding to the port number, and installing the application corresponding to the application information through the application installation service.
In one possible implementation, the apparatus further includes:
the request sending module is used for sending an information obtaining request to a first server, wherein the information obtaining request carries the target application identifier;
and the information receiving module is used for receiving the application information which is sent by the first server and corresponds to the target application identifier.
In a possible implementation manner, the request sending module is configured to send a first information obtaining request to the first server, where the first information obtaining request is used to obtain application information including state synchronization information, and the state synchronization information indicates a state of the application in the first terminal; wherein the target terminal is configured to synchronize the installed application with a state of the application in the first terminal based on the state synchronization information.
In a possible implementation manner, the request sending module is configured to send a second information obtaining request to the first server, where the second information obtaining request is used to obtain application information that includes an application download link, and the target terminal is configured to install the application based on the application download link; or sending a third information acquisition request to the first server, where the third information acquisition request is used to acquire application information including an application installation package, and the target terminal is used to install the application based on the application installation package.
In one possible implementation, the apparatus further includes:
the identifier receiving module is used for receiving the unique identifier sent by the target terminal through the local area network; the information obtaining request also carries the unique identifier, the first server is used for sending the application information including the unique identifier, and the target terminal is used for installing the application based on the application information under the condition that the unique identifier in the application information is the same as the unique identifier sent by the target terminal to the first terminal.
In another aspect, an application installation apparatus applied to a target terminal is provided, the apparatus including:
a request receiving module, configured to receive an application installation service request sent by a first terminal through a local area network, where the first terminal and the target terminal are located in the local area network;
an information sending module, configured to send service response information to the first terminal through the local area network, where the service response information includes a target terminal identifier of the target terminal, and the first terminal is configured to display a terminal identifier and at least one application identifier of at least one terminal in the local area network, obtain a target terminal identifier selected from the at least one terminal identifier, and a target application identifier selected from the at least one application identifier, and send application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network;
and the application installation module is used for installing the application based on the application information under the condition of receiving the application information sent by the first terminal.
In a possible implementation manner, the service response information further includes an internet protocol IP address of the target terminal and a port number of an application installation service, and the application information sent by the first terminal includes the IP address and the port number;
the application installation module is used for receiving the application information through the IP address; sending the application information to an application installation service corresponding to the port number; and installing the application corresponding to the application information through the application installation service.
In one possible implementation manner, the application information includes a signature, and the signature is obtained by encrypting the application installation information based on a first private key of a first server, where the first server is a server providing the application information;
the application installation module comprises:
a decryption unit, configured to decrypt the signature based on a first public key to obtain the application installation information when the application information is received, where the first public key corresponds to the first private key;
an installation unit configured to install the application based on the application installation information.
In a possible implementation manner, the application information further includes a certificate, and the certificate is obtained by encrypting the first public key based on a second private key of the target terminal;
the decryption unit is configured to decrypt the certificate based on a second public key corresponding to the second private key under the condition that the application information is received, so as to obtain the first public key; and decrypting the signature based on the first public key to obtain the application installation information.
In a possible implementation manner, the installation unit is configured to send a verification request to a second server, where the verification request carries the first public key; the second server is used for inquiring the first public key from a blacklist, and sending verification passing information to the target terminal under the condition that the first public key cannot be inquired from the blacklist, wherein the blacklist is used for storing the public key of the server without application installation authority; and in the case of receiving the verification passing information sent by the second server, installing the application based on the application installation information.
In one possible implementation manner, the application information includes a signature and application installation information, the signature is obtained by encrypting a first hash value of the application installation information based on a first private key of a first server, and the first server is a server providing the application information;
the application installation module is configured to decrypt the signature based on a first public key under the condition that the application information is received, so as to obtain a first hash value of the application installation information, where the first public key corresponds to the first private key; performing hash processing on the application installation information to obtain a second hash value; installing the application based on the application installation information if the first hash value is the same as the second hash value.
In a possible implementation manner, the application installation module is configured to, when the application information is received, query an application identifier corresponding to the application information from a white list; if the application identification corresponding to the application information is inquired from the white list, the application is installed based on the application information; the white list is used for storing application identifications with installation authority.
In one possible implementation, the apparatus further includes:
a state synchronization module, configured to synchronize, based on state synchronization information that indicates a state of the application in the first terminal, a state of the installed application with a state of the application in the first terminal when the application information includes the state synchronization information.
In a possible implementation manner, the application installation module is configured to, when the application information is received and the application information includes an application installation package, install the application based on the application installation package; or, in the case that the application information is received and includes an application download link, installing the application based on the application download link.
In a possible implementation manner, the service response information further includes a unique identifier randomly generated by the target terminal;
the application installation module is used for installing the application based on the application information under the condition that the application information is received and the unique identifier in the application information is the same as the unique identifier in the service response information.
In another aspect, an application installation apparatus is provided, which is applied to a first server, and includes:
the request receiving module is used for receiving an information acquisition request sent by a first terminal, wherein the information acquisition request carries a target application identifier;
the encryption module is used for encrypting the application installation information corresponding to the target application identifier based on a first private key of the first server to obtain a signature;
an information sending module, configured to send application information to the first terminal, where the application information includes the signature;
the first terminal is used for sending the application information to a target terminal, the target terminal is used for decrypting the signature based on a first public key corresponding to the first private key to obtain the application installation information, and the application is installed based on the application installation information.
In a possible implementation manner, the application information further includes a certificate, the certificate is obtained by encrypting the first public key based on a second private key of the target terminal, and the target terminal is further configured to decrypt the certificate based on a second public key corresponding to the second private key, so as to obtain the first public key.
In a possible implementation manner, the information acquisition request further carries a unique identifier, the unique identifier is sent to the first terminal by the target terminal, the application information further includes the unique identifier, and the target terminal is configured to decrypt the signature based on the first public key under the condition that the unique identifier in the application information is the same as the unique identifier sent to the first terminal by the target terminal.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, where at least one computer program is stored in the memory, and the computer program is loaded by the processor and executed to implement the operations performed in the application installation method in any one of the above possible implementation manners.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, and the computer program is loaded and executed by a processor to implement the operations performed in the application installation method in any one of the above possible implementation manners.
In yet another aspect, a computer program product or a computer program is provided, the computer program product or the computer program comprising a computer program stored in a computer readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and executes the computer program, so that the computer device performs the operations performed in the application installation method in the above-described various alternative implementations.
The beneficial effects that technical scheme that this application embodiment brought include at least:
according to the scheme provided by the embodiment of the application, the terminal identification of at least one terminal in the same local area network with the first terminal is displayed, so that a user can directly select a target terminal needing to install the application from the terminal, and after the target terminal and the target application selected by the user are determined, the application information of the target application is sent to the target terminal through the local area network, and the target application is installed in the target terminal. The application installation scheme only needs the user to execute simple selection operation in the first terminal, so that the application installation operation is greatly simplified, and the application installation efficiency is improved.
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. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of an application installation method provided in an embodiment of the present application;
FIG. 3 is a flowchart of an application installation method provided in an embodiment of the present application;
FIG. 4 is a flowchart of an application installation method provided in an embodiment of the present application;
FIG. 5 is a flowchart of an application installation method provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an application installation control provided by an embodiment of the present application;
fig. 7 is a schematic diagram of a terminal selection interface provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of an application selection interface provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of an information type determination interface provided by an embodiment of the present application;
fig. 10 is a schematic diagram of a format of application information provided in an embodiment of the present application;
fig. 11 is a schematic diagram of a format of application information provided in an embodiment of the present application;
fig. 12 is a schematic diagram of a format of application information provided in an embodiment of the present application;
fig. 13 is a schematic diagram of a format of application information provided in an embodiment of the present application;
fig. 14 is a schematic diagram of a process of finding a terminal with an application installation service according to an embodiment of the present application;
fig. 15 is a schematic content diagram of a service response message provided in an embodiment of the present application;
fig. 16 is a schematic diagram of a data encryption and verification process involved in an application installation process according to an embodiment of the present application;
fig. 17 is a schematic diagram of a process for parsing and verifying application information according to an embodiment of the present application;
fig. 18 is a schematic diagram of a process of installing an application on a television through a mobile phone according to an embodiment of the present application;
fig. 19 is a schematic diagram of a process of performing state synchronization between an application in a television and an application in a mobile phone according to an embodiment of the present application;
fig. 20 is a schematic diagram illustrating an interaction process among a first terminal, a target terminal, a first server, and a second server in an application installation process according to an embodiment of the present application;
fig. 21 is a schematic diagram of an interaction process between a mobile phone and a user in an application installation process according to an embodiment of the present application;
fig. 22 is a schematic structural diagram of a target terminal according to an embodiment of the present application;
fig. 23 is a schematic structural diagram of a first terminal according to an embodiment of the present application;
fig. 24 is a block diagram of an application installation apparatus provided in an embodiment of the present application;
fig. 25 is a block diagram of an application installation apparatus provided in an embodiment of the present application;
fig. 26 is a block diagram of an application installation apparatus provided in an embodiment of the present application;
fig. 27 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 28 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," "third," "fourth," and the like as used herein may be used herein to describe various concepts, but these concepts are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, a first terminal can be termed a terminal, and a second terminal can similarly be termed a first terminal, without departing from the scope of the present application.
As used herein, the terms "at least one," "a plurality," "each," "any," at least one of which includes one, two, or more than two, and a plurality of which includes two or more than two, each of which refers to each of the corresponding plurality, and any of which refers to any of the plurality. For example, the plurality of terminal identifiers includes 3 terminal identifiers, each terminal identifier refers to each of the 3 terminal identifiers, and any one of the 3 terminal identifiers refers to any one of the 3 terminal identifiers, which may be a first one, a second one, or a third one.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a first terminal 101 and at least one second terminal 102 (3 second terminals are taken as an example in fig. 1). The first terminal 101 and the second terminal 102 are in the same local area network, and the first terminal 101 and the second terminal 102 are connected through a wireless or wired network. Optionally, the first terminal 101 and the second terminal 102 are smart phones, tablet computers, notebook computers, desktop computers, smart televisions, game terminals, television boxes, smart speakers, smart watches, vehicle terminals, or other terminals.
The first terminal 101 is configured to display, in response to the application installation instruction, a terminal identifier of at least one second terminal 102 for a user to specify a target terminal for installing the application. The first terminal 101 is further configured to display at least one application identifier for the user to specify the installed application. The first terminal 101 is also configured to send application information of the user-specified application to the target terminal to install the application in the target terminal.
Optionally, the implementation environment further includes a first server 103, and the first server 103 is connected to the first terminal 101 through a wireless or wired network. Optionally, the first server 103 is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like.
The first terminal 101 is further configured to send an information acquisition request to the first server 103 after the user selects the target application identifier, where the information acquisition request carries the target application identifier, and the first server 103 is configured to send application information corresponding to the target application identifier to the first terminal 101 after receiving the information acquisition request.
Optionally, the implementation environment further includes a second server 104, and the second server 104 is connected to the second terminal 102 through a wireless or wired network. Optionally, the second server 104 is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, web service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform, and the like.
The target terminal is configured to send verification information in the application information to the second server 104 after receiving the application information, and the second server 104 is further configured to send verification passing information to the target terminal when determining that the application corresponding to the application information has the installation authority based on the verification information. The target terminal is also used for installing the application based on the application information under the condition of receiving the verification passing information.
Optionally, the first terminal 101 has a first application installed thereon, and the first server 103 provides a service to the first application, and the first terminal 101 can implement functions such as data transmission and message interaction through the first application. Optionally, the first application is an application in an operating system of the first terminal 101 or an application provided by a third party. The first application has an application installation function, that is, the first terminal 101 can obtain application information from the first server 103 through the first application and send the application information to the target terminal to install the application in the target terminal. Optionally, the second terminal 102 has a second application installed thereon, which is served by the second server 104, and the second terminal 102 can implement functions such as data transmission, message interaction, and the like through the second application. Optionally, the second application is an application in an operating system of the second terminal 102, or an application provided by a third party. The second application has an application installation function, that is, the second terminal 102 can receive application information transmitted by the first terminal 101 through the second application, and install the application in the second terminal 102 based on the application information.
The method and the device for installing the application in the terminal can be applied to a scene of installing the application in the terminal. Taking the first terminal as a mobile phone and the second terminal as a television as an example, in the application installation scheme provided by the application installation method, the mobile phone can respond to an application installation instruction of a user and display at least one terminal identifier and at least one application identifier, the user can select a target terminal identifier of a target terminal needing to install an application and a target application identifier of the application needing to be installed, then the mobile phone sends application information corresponding to the target application identifier selected by the user to the television, and the television installs the application based on the application information. Optionally, the application information is stored in the mobile phone, and after the user selects the target application identifier, the mobile phone directly queries the application information from the local, and sends the application information to the television. Or after the user selects the target application identifier, the mobile phone sends an information acquisition request to a server providing application information, receives the application information sent by the server, and forwards the application information to the television.
Fig. 2 is a flowchart of an application installation method according to an embodiment of the present application. The main execution body of the embodiment of the method is the first terminal, and referring to fig. 2, the embodiment includes:
201. the first terminal responds to the application installation instruction and displays at least one terminal identification and at least one application identification, and a second terminal corresponding to the at least one terminal identification and the first terminal are in the same local area network.
The terminal identifier represents the identity of the terminal and is used for distinguishing different terminals.
A local area network is a group of computers formed by interconnecting a plurality of computers in a certain area. The functions of file management, application software sharing, printer sharing, e-mail service and the like can be realized through the local area network. In an embodiment of the present application, a local area network includes a first terminal and at least one second terminal, where the first terminal is configured to install an application in the second terminal.
202. The first terminal acquires a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier.
The target terminal identifier is any one of the at least one terminal identifier, and the target application identifier is any one of the at least one application identifier.
203. The first terminal sends application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through a local area network, and the target terminal is used for installing applications based on the application information.
According to the scheme provided by the embodiment of the application, the terminal identification of at least one terminal in the same local area network with the first terminal is displayed, so that a user can directly select a target terminal needing to install the application from the terminal, and after the target terminal and the target application selected by the user are determined, the application information of the target application is sent to the target terminal through the local area network, and the target application is installed in the target terminal. The application installation scheme only needs the user to execute simple selection operation in the first terminal, so that the application installation operation is greatly simplified, and the application installation efficiency is improved.
Fig. 3 is a flowchart of an application installation method according to an embodiment of the present application. An execution subject of the embodiment of the method is a target terminal, and referring to fig. 3, the embodiment includes:
301. the target terminal receives an application installation service request sent by the first terminal through the local area network, and the first terminal and the target terminal are located in the local area network.
Wherein the application installation service request is used for searching a terminal with the application installation service in the local area network. The first terminal sends the application installation service request through the local area network, and other terminals in the local area network can receive the application installation service request, so that the fact that the terminal in the local area network inquires the terminal with the application installation service is known. In this case, the terminal having the application installation service in the local area network transmits service response information to the first terminal through the local area network to notify the first terminal that it has the application installation service.
302. And the target terminal sends service response information to the first terminal through the local area network, wherein the service response information comprises a target terminal identifier of the target terminal.
The target terminal is a terminal with application installation service. And the target terminal sends the service response information to the first terminal, and the first terminal knows that the target terminal has the application installation service. Then, the first terminal displays a terminal identifier of at least one terminal in the local area network, wherein the at least one terminal is a terminal with application installation service in the local area network, so that a user can specify a target terminal needing to install an application based on the displayed terminal identifier of the at least one terminal. The first terminal is further configured to display at least one application identifier, such that the user can specify an application to be installed in the target terminal based on the displayed at least one application identifier. Then, the first terminal obtains a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier, and sends application information corresponding to the target application identifier to the target terminal through the local area network.
303. And the target terminal installs the application based on the application information under the condition of receiving the application information sent by the first terminal.
According to the scheme provided by the embodiment of the application, the first terminal acquires the terminal identification of at least one terminal capable of providing the application installation service in the local area network in a mode of sending the application installation service request in the local area network, displays the terminal identification of the at least one terminal, so that a user can directly select a target terminal needing to install the application from the terminal identification, and after the target terminal and the target application selected by the user are determined, the application information of the target application is sent to the target terminal through the local area network, so that the target application is installed in the target terminal. The application installation scheme only needs a user to execute simple selection operation in the first terminal, greatly simplifies application installation operation and improves application installation efficiency.
Fig. 4 is a flowchart of an application installation method provided in an embodiment of the present application. The main execution body of the embodiment of the method is the first server, and referring to fig. 4, the embodiment includes:
401. the first server receives an information acquisition request sent by the first terminal, wherein the information acquisition request carries a target application identifier.
The first server is used for storing application information. The information acquisition request sent by the first terminal is used for acquiring application information which is stored in the first server and corresponds to the target application identifier.
402. The first server encrypts application installation information corresponding to the target application identification based on the first private key to obtain a signature.
The first private key is stored in the first server, and since the first private key is only possessed by the first server, the signature generated based on the first private key can indicate the identity of the first server.
403. The first server sends application information to the first terminal, the application information including a signature.
After the first server sends the application information to the first terminal, the first terminal forwards the application information to the target terminal. And after receiving the application information, the target terminal decrypts the signature based on the first public key to obtain application installation information, and installs the application based on the application installation information. Wherein the first public key corresponds to the first private key.
It should be noted that the first public key and the first private key are a pair of keys, the first private key encrypts information, only the first public key can be decrypted, and the first public key encrypts information, only the first private key can be decrypted.
In the embodiment of the application, because the first private key is private to the first server, and the other servers do not have the first private key, the first server encrypts the application installation information based on the first private key to obtain the signature, and sends the application information including the signature, after the target terminal obtains the application information including the signature, once the first public key can unlock the signature, the application information is sent by the first server, so that the security and the validity of an application information source can be ensured, the application information sent by an illegal server is prevented from being installed by the target terminal, and the security of application installation is improved.
Fig. 5 is a flowchart of an application installation method according to an embodiment of the present application. The embodiment of the method is an interaction embodiment among the first terminal, the target terminal and the first server. Referring to fig. 5, the embodiment includes:
501. the first terminal responds to the application installation instruction and sends an application installation service request through the local area network.
Optionally, the first terminal displays an application installation control in the interface, and the first terminal generates an application installation instruction in response to a trigger operation on the application installation control. Optionally, the display interface of the application installation control is an arbitrary interface, for example, the interface is an application interface of the first application. The first application is capable of providing an application installation service. Optionally, the first application is an arbitrary application, for example, a video playing application, a game application, or the like.
FIG. 6 is a schematic diagram of an application installation control. Referring to FIG. 6, an application installation control 601 is displayed in the upper right corner of the interface. The style and the display position of the application installation control 601 are only exemplary illustrations, and the embodiment of the present application does not limit this.
Optionally, the sending, by the first terminal, the application installation service request through the local area network in response to the application installation instruction includes: the first terminal transmits an application installation service request based on an MDNS (Multicast Domain Name System) protocol in response to the application installation instruction. The second terminal in the local area network, which listens to the 5353 port of the UDP (User Datagram Protocol), can receive the application installation service request. After the second terminal with the application installation service in the local area network is started, the second terminal can indicate that the second terminal has the application installation service and monitors a local 5353 port through the MDNS protocol so as to acquire the application installation service request sent by the first terminal.
502. And the target terminal receives the application installation service request sent by the first terminal through the local area network, wherein the target terminal is positioned in the local area network.
Wherein the target terminal is a terminal having an application installation service in the local area network. Optionally, the target terminal receives the application installation service request sent by the first terminal based on the MDNS protocol, that is, the target terminal listens to the local 5353 port and receives the application installation service request sent to the port.
503. And the target terminal sends service response information to the first terminal through the local area network, wherein the service response information comprises a target terminal identifier of the target terminal.
Optionally, the target terminal sends the service response information based on the MDNS protocol in a case of receiving the application installation service request sent by the first terminal.
In a possible implementation manner, the service response information further includes an IP (Internet Protocol) address of the second terminal and a port number of the application installation service, so that the first terminal can obtain an IP address of a target terminal having the application installation service in the local area network and a port number corresponding to the application installation service in the target terminal, and subsequently can send the application information to the target terminal based on the IP address, and can also instruct the application installation service processing the application information in the target terminal based on the port number.
504. The first terminal receives service response information sent by at least one second terminal, the at least one second terminal and the first terminal are in the local area network, and the at least one second terminal comprises a target terminal.
Optionally, the first terminal receives the service response information sent by the at least one second terminal based on the MDNS protocol.
Alternatively, in a case where the first terminal uses Android (an operating system), the first terminal transmits an application installation service request and receives service response information based on nsdmamanager (an interface). In case that the first terminal uses iOS (an operating system), the first terminal transmits an application installation service request and receives service response information based on NWMulticastGroup or NWConnectionGroup.
In the embodiment of the application, because various types of terminals, for example, terminals based on Android and iOS, can support the MDNS protocol, the terminals in the local area network perform data interaction based on the MDNS protocol, and thus the applicability of the application installation scheme is improved.
It should be noted that, in the local area network, in addition to using the MDNS for data interaction, the terminals may also use other multicast-based protocols for data interaction, or use a broadcast protocol for data interaction, which is not limited in this embodiment of the present application.
505. And the first terminal displays the terminal identification and the at least one application identification in the at least one service response message.
Optionally, the first terminal displays at least one terminal identifier and at least one application identifier in the same interface, so that page skipping is not needed, a user can indicate a target terminal needing to install an application and the application needing to be installed in the target terminal based on one interface, and application installation efficiency can be improved.
Optionally, the first terminal displays the terminal identifier and the application identifier in different interfaces. For example, the first terminal displays a terminal selection interface, at least one terminal identifier is displayed in the terminal selection interface, the first terminal displays an application selection interface after acquiring a target terminal identifier selected from the at least one terminal identifier, and at least one application identifier is displayed in the application selection interface. Or the first terminal displays an application selection interface firstly, at least one application identifier is displayed in the application selection interface, and the first terminal displays the terminal selection interface after acquiring the target application identifier selected from the at least one application identifier.
FIG. 7 is a schematic diagram of a terminal selection interface. Referring to fig. 7, 2 terminal identifiers, namely "test tv 1" and "test tv 2", are displayed in the terminal selection interface. In addition, a prompt message of 'scan to supported smart tv, please select' is displayed to prompt the user to select the target terminal identifier from the test tv 1 and the test tv 2. FIG. 8 is a schematic diagram of an application selection interface. Referring to fig. 8, 2 application identifiers, namely "application identifier 1" and "application identifier 2", are displayed in the application selection interface. In addition, a prompt message "please select an application installed to the television" is displayed to prompt the user to select a target application identifier from the application identifiers 1 and 2.
506. The first terminal acquires a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier.
Optionally, the first terminal responds to the selection operation of the terminal identifier, and acquires a target terminal identifier selected from at least one terminal identifier; and responding to the selection operation of the application identifier, and acquiring a target application identifier selected from at least one application identifier.
507. The first terminal sends an information acquisition request to the first server, wherein the information acquisition request carries a target application identifier.
In one possible implementation manner, the sending, by the first terminal, the information acquisition request to the first server includes: the first terminal sends a first information acquisition request to the first server, wherein the first information acquisition request is used for acquiring application information including state synchronization information, and the state synchronization information indicates the state of an application in the first terminal.
Optionally, the state synchronization information includes account synchronization information indicating a login state of an account in the application in the first terminal. Optionally, the state synchronization information includes multimedia playing information, where the multimedia playing information indicates a playing state of multimedia in the application, for example, a playing state of a video, a playing state of music, and the like, which is not limited in this embodiment of the present application.
In the embodiment of the application, the application information including the state synchronization information is acquired from the server, so that the state of the application can be synchronized with the state of the application in the first terminal after the target terminal installs the application based on the application information, a user can use the application in the target terminal conveniently, and the user viscosity is improved.
In a possible implementation manner, the sending, by the first terminal, the information acquisition request to the first server includes: the first terminal sends a second information acquisition request to the first server, wherein the second information acquisition request is used for acquiring application information comprising an application download link. Or, the first terminal sends a third information acquisition request to the first server, where the third information acquisition request is used to acquire application information including the application installation package. Optionally, the application installation Package is APK (Android Package).
Optionally, the type of the information acquisition request sent by the first terminal to the first server is default, in this case, the type of the application information acquired by the first terminal is default, and the user cannot decide the type of the application information acquired by the first terminal. Optionally, the type of the application information acquired by the first terminal is determined by a user, that is, before the first terminal sends the information acquisition request, the first terminal displays an information type determination interface, sends the information acquisition request to the first server in response to an operation of selecting the information type, where the information acquisition request carries the information type and instructs the first server to send the application information matched with the information type to the first terminal, so that the user can freely determine the type of the acquired application information.
Optionally, the first terminal displays the information type determination interface after acquiring the target terminal identifier and the target application identifier, which is not limited in this embodiment of the present application.
Fig. 9 is a schematic diagram of an information type determination interface. Referring to fig. 9, taking the first terminal as a mobile phone and the second terminal as a television as an example, if the user selects the prompt message "whether to synchronize the state information of the mobile phone to the selection control" yes "on the upper side of the television," yes ", it indicates that the first terminal needs to acquire the application information including the state synchronization information. And if the user selects the control to be 'no', the first terminal needs to acquire the application information which does not comprise the state synchronization information. In addition, if the user selects the selection control corresponding to the prompt message "install the application through the application download link", it indicates that the first terminal needs to acquire the application information including the application download link, and if the user selects the selection control corresponding to the prompt message "install the application through the application installation package", it indicates that the first terminal needs to acquire the application information including the application installation package. Taking the example that the user selects the selection control corresponding to "yes" and "install the application through the application installation package", the mobile phone sends an information acquisition request to the first server, and the information type carried by the information acquisition request indicates that the first server returns the application information including the state synchronization information and the application download link to the mobile phone.
In the embodiment of the application, multiple types of application information are provided, so that the first terminal can determine the type of the acquired application information according to actual conditions. Under the condition that the target terminal is connected with the Internet, the first terminal acquires the application information comprising the application download link and sends the application information to the target terminal, and the consumption of communication resources of the first terminal can be reduced due to the small data volume of the application download link. Under the condition that the target terminal is not connected with the Internet, the first terminal acquires application information comprising the application installation package, sends the application information to the target terminal and ensures that the target terminal can install the application under the condition that the target terminal is not connected with the Internet.
508. The first server receives an information acquisition request sent by a first terminal, the information acquisition request carries a target application identifier, and application information corresponding to the target application identifier is sent to the first terminal.
Optionally, the first server stores multiple types of application information of any application. For example, application information including state synchronization information and an application installation package, application information including state synchronization information and an application download link, and the like. After acquiring the information acquisition request, the first server sends application information matched with the information type indicated by the information acquisition request to the first terminal.
In a possible implementation manner, the sending, by the first server, the application information corresponding to the target application identifier to the first terminal includes: the first server encrypts application installation information corresponding to the target application identifier based on a first private key to obtain a signature; the application information including the signature is transmitted to the first terminal. Optionally, the application installation information comprises state synchronization information. Optionally, the application installation information includes an application download link or an application installation package.
In the embodiment of the application, because the first private key is private to the first server, and the other servers do not have the first private key, the first server encrypts the application installation information based on the first private key to obtain the signature, and sends the application information including the signature, after the target terminal obtains the application information including the signature, once the first public key can unlock the signature, the application information is sent by the first server, so that the security and the validity of an application information source can be ensured, the application information sent by an illegal server is prevented from being installed by the target terminal, and the security of application installation is improved.
In a possible implementation manner, the sending, by the first server, the application information corresponding to the target application identifier to the first terminal includes: the first server performs hash processing on the application installation information corresponding to the target application identifier to obtain a hash value; encrypting the hash value based on a first private key to obtain a signature; and transmitting application information including the application installation information and the signature to the first terminal.
In the embodiment of the application, the first server performs hash processing on the application installation information to obtain a hash value, and sends the application information including the application installation information and the hash value, so that the target terminal can determine whether the application installation information is changed in the transmission process based on the hash value, thereby avoiding installation of an application corresponding to the illegally changed application installation information, and improving the safety of application installation.
Fig. 10 is a schematic diagram of the format of the application information. Referring to fig. 10, the application information includes a type field, a length field, a UUID field, an application installation package field, and a signature field. The type field is 1 byte, the length field is 6 bytes, the UUID field is 16 bytes, and the application installation package field is 23 bytes. Wherein, the type field indicates that the type of the application information is type 1, and the length field is used for indicating the length of the information left after the type field of the application information.
Fig. 11 is a schematic diagram of another format of application information. Referring to fig. 11, the application information includes a type field, a length field, a UUID field, an application download link field, and a signature field. The type field is 1 byte, the length field is 6 bytes, the UUID field is 16 bytes, and the application download link field is 23 bytes. Wherein the type field indicates that the type of the application information is type 2.
Fig. 12 is a schematic diagram of the format of the application information. Referring to fig. 12, the application information includes a type field, a length field 1, a UUID field, an application download link field, a signature field, a length field 2, a file path field, a length field 3, and a state synchronization information field. The type field is 1 byte, the length field 1 is 6 bytes, the UUID field is 16 bytes, and the application download link field is 23 bytes. The type field indicates that the type of the application information is type 3, the length field 1 is used for indicating the length of the remaining information after the type field of the application information, the length field 2 is used for indicating the length of the remaining information after the application download link field of the application information, and the length field 3 is used for indicating the length of the remaining information after the file path field of the application information. It should be noted that, after receiving the application information, the target terminal stores the state synchronization information in the application information to the location indicated by the file path field, and after installing the application, directly reads the state synchronization information from the location to implement state synchronization.
Fig. 13 is a schematic diagram of the format of the application information. Referring to fig. 13, the application information includes a type field, a length field 1, a UUID field, an application installation package field, a signature field, a length field 2, a file path field, a length field 3, and a state synchronization information field. The type field is 1 byte, the length field 1 is 6 bytes, the UUID field is 16 bytes, and the application installation package field is 23 bytes. The type field indicates that the type of the application information is type 4, the length field 1 is used for indicating the length of the information remaining after the type field of the application information, the length field 2 is used for indicating the length of the information remaining after the application installation package field of the application information, and the length field 3 is used for indicating the length of the information remaining after the file path field of the application information.
It should be noted that the format of the application information is only an exemplary illustration, and the application embodiment does not limit this.
509. And the first terminal receives the application information sent by the first server and sends the application information to the target terminal through the local area network.
In a possible implementation manner, the service response information sent by the target terminal to the first terminal further includes an IP address of the second terminal and a port number of the application installation service; the first terminal sends the application information to the target terminal through the local area network, and the application information comprises the following steps: and the first terminal sends application information through the local area network, wherein the application information comprises the IP address and the port number. And then, the target terminal can receive the application information through the IP address, issue the application information to the application installation service corresponding to the port number, and install the application corresponding to the application information through the application installation service.
Fig. 14 is a diagram illustrating a process of finding a terminal having an application installation service. Referring to fig. 14, the application installation service is automatically started after the target terminal is started, listening to the 5353 port of the MDNS protocol. The user triggers an application installation control in an interface of the first terminal, the first terminal searches for a terminal with application installation service in a local area network through an MDNS protocol, and the target terminal returns service response information which comprises an IP address of the target terminal and a port number of the application installation service.
In the embodiment of the application, the target terminal adds the IP address of the target terminal in the service response information, so that the first terminal can directly establish connection with the target terminal based on the IP address and send the application information to the target terminal. And the target terminal adds the port number of the application installation service in the service response information, so that the first terminal can acquire the port number corresponding to the application installation service in the target terminal, and further the port number is carried in the application information sent to the target terminal, so that the target terminal determines the application installation service for processing the application information based on the port number.
It should be noted that, in the above steps 507-509, acquiring the application information from the first server is only one implementation manner of acquiring the application information by the first terminal, and in other embodiments, the first terminal may also acquire the application information in other manners, for example, the application information is stored in the terminal in advance, and the application information is directly queried from the local, which is not limited in this embodiment of the present application.
510. The target terminal installs the application based on the application information.
In a possible implementation manner, the service response information sent by the target terminal to the first terminal further includes a unique identifier randomly generated by the target terminal, the information acquisition request sent by the first terminal to the first server further carries the unique identifier, and the application information sent by the first server to the first terminal includes the unique identifier. After receiving the application information, the target terminal installs the application based on the application information when the unique identifier in the application information is the same as the unique identifier sent by the target terminal to the first terminal. In other embodiments, the unique identifier can also be sent to the first terminal in other manners, which is not limited in this application embodiment. Optionally, the Unique Identifier is a UUID (universal Unique Identifier). Fig. 15 is a diagram illustrating the contents of the service response information. Referring to fig. 15, the service response information includes an IP address, a port number, and a unique identifier UUID.
In the embodiment of the application, the target terminal adds the randomly generated unique identifier in the service response information, after receiving the application information, the application is installed based on the application information under the condition that the unique identifier in the application information is determined to be the same as the unique identifier sent by the target terminal to the first terminal, and the unique identifier generated each time is random under the condition that the target terminal installs the application for multiple times, so that the scheme can prevent replay attack, namely, an attacker can be prevented from repeatedly installing the application in the target terminal based on the same identifier after acquiring the service response information sent by the target terminal.
In one possible implementation, the application information includes a signature, and the signature is obtained by encrypting the application installation information based on a first private key of a first server, where the first server is a server providing the application information. Correspondingly, the target terminal installs the application based on the application information when receiving the application information sent by the first terminal, and the method includes the following steps: and the target terminal decrypts the signature based on the first public key under the condition of receiving the application information to obtain application installation information, and installs the application based on the application installation information. Wherein the first public key corresponds to the first private key.
In the embodiment of the application, because the first private key is private to the first server, and the other servers do not have the first private key, the first server encrypts the application installation information based on the first private key to obtain a signature, and sends the application information including the signature, after the target terminal obtains the application information including the signature, once the first public key can unlock the signature, the application information is sent by the first server, so that the application information sent by the target terminal by an illegal server can be prevented from being installed, and the safety of application installation is improved.
In a possible implementation manner, the application information further includes a certificate, and the certificate is obtained by encrypting the first public key based on the second private key of the target terminal. Correspondingly, when the target terminal receives the application information, the signature is decrypted based on the first public key to obtain the application installation information, which includes: the target terminal decrypts the certificate based on a second public key corresponding to the second private key under the condition that the application information is received, and a first public key is obtained; and decrypting the signature based on the first public key to obtain the application installation information. The second private key and the second public key are a pair of keys, only the second public key can unlock information encrypted by the second private key, and only the second private key can unlock information encrypted by the second public key.
In the embodiment of the application, the certificate is generated based on the second private key of the target terminal, the second private key is private to the target terminal, and other terminals do not have the second private key, so that the first server carries the certificate in the application information, after the target terminal acquires the application information including the certificate, once the second public key can unlock the certificate, the certificate is generated by the first private key, and the first public key in the certificate is the public key of a legal server.
In one possible implementation manner, the target terminal installs the application based on the application installation information, including: and the target terminal sends a verification request to the second server, wherein the verification request carries the first public key. And after receiving the verification request, the second server inquires the first public key from the blacklist, and sends verification passing information to the target terminal under the condition that the first public key cannot be inquired from the blacklist. The blacklist is used for storing a public key of a server without application installation authority. And the target terminal installs the application based on the application installation information under the condition of receiving the verification passing information sent by the second server.
In the embodiment of the present application, the setting of the blacklist provides the second server with a server decision right, so that the second server can decide which servers provide applications that are prohibited from being installed in the target terminal. Therefore, when the application provided by a certain server needs to be prohibited from being installed in the target terminal, the public key of the server only needs to be stored in the blacklist, and the method is simple and efficient.
Optionally, the second server itself obtains the first public key from the application information, that is, after receiving the application information, the target terminal forwards the application information to the second server, and the second server decrypts the certificate in the application information based on the second public key to obtain the first public key.
Optionally, after acquiring the application information, the second server records the application information under the condition that the first public key in the certificate is not queried from the blacklist, so that the second server can subsequently count information such as the number of applications installed in the target terminal, the application installation time and the like based on the recorded application information, and thus, the cost that the server providing the application information needs to pay the second server is counted based on the information.
Optionally, in this embodiment of the application, the second public key and the second private key are generated by a second server, and after the second server generates the second public key and the second private key, the second server stores the second private key in the second server to improve the security of the second private key, and sends the second public key to the target terminal, so that the target terminal can verify the validity of the application information based on the second public key.
In one possible implementation manner, the application information includes a signature and application installation information, and the signature is obtained by encrypting a first hash value of the application installation information based on a first private key of the first server. Correspondingly, the target terminal installs the application based on the application information when receiving the application information sent by the first terminal, and the method includes the following steps: and the target terminal decrypts the signature based on the first public key under the condition of receiving the application information to obtain a first hash value of the application installation information. The target terminal performs hash processing on the application installation information to obtain a second hash value; in a case where the first hash value is the same as the second hash value, the application is installed based on the application installation information.
In the embodiment of the application, in consideration of the fact that the application information may be changed by an illegal server in the transmission process, the first hash value of the application installation information is encrypted to obtain a signature, and the application installation information and the signature are carried in the application information. Because the hash values generated by different application information are different, the target terminal only needs to perform hash processing on the application installation information, and compares the obtained second hash value with the first hash value in the signature, so that whether the application information is changed can be determined, thereby avoiding the installation of the application corresponding to the illegally changed application information in the target terminal, and improving the safety of application installation.
Optionally, after receiving the application information, the second terminal does not verify the application information, and directly forwards the application information to the second server, and the second server verifies the validity of the application information, and after receiving verification passing information returned by the second server, the first terminal installs the application based on the application information. This can reduce the consumption of processing resources for the second terminal.
Fig. 16 is a schematic diagram of the data encryption and authentication process involved in the application installation process. Referring to fig. 16, the first server generates a first public key and a first private key, stores the first private key, and transmits the first public key to the second server. The second server generates a second public key and a second private key, stores the second private key, sends the second public key to the target terminal, encrypts the first public key based on the second private key to obtain a certificate, and sends the certificate to the first server. The first server stores the certificate and the target terminal stores the second public key. The first server encrypts a first hash value of the application installation information based on a first private key to obtain a signature before sending the application information to the target terminal through the first terminal, and then sends the application information including the application installation information, the signature and the certificate to the target terminal through the first terminal. And after the target terminal receives the application information, decrypting the certificate based on the second public key to obtain a first public key, and decrypting the signature based on the first public key to obtain a first hash value. And carrying out hash processing on the application installation information to obtain a second hash value, and installing the application based on the installation information under the condition that the first hash value is the same as the second hash value.
Fig. 17 is a schematic diagram of a process of parsing and verifying application information, and referring to fig. 17, after receiving the application information, the target terminal parses application installation information and a signature in the application information, and in a case that the parsing fails, determines that the installation fails. And under the condition of successful analysis, verifying whether the UUID in the application information is the same as the UUID which is sent to the first terminal before the target terminal, and under the condition of different UUIDs, determining that the installation fails. And under the same condition, verifying whether the signature is correct, determining that the installation fails under the condition that the signature is incorrect, and continuing the subsequent installation process under the condition that the signature is correct.
In a possible implementation manner, in a case where the target terminal receives application information sent by the first terminal, installing an application based on the application information includes: under the condition that the target terminal receives the application information, inquiring an application identifier corresponding to the application information from the white list; and under the condition that the application identification corresponding to the application information is inquired from the white list, the application is installed based on the application information. The white list is used for storing the application identification with the installation authority.
In the embodiment of the application, the application identifier with the installation authority is stored in the white list, and whether the application corresponding to the application information is installed or not is determined through the white list under the condition that the application information is received, so that the application without the installation authority can be prevented from being installed in the target terminal, and the safety of application installation is improved.
In a possible implementation manner, in a case that the target terminal receives application information sent by the first terminal, installing an application based on the application information includes: and the target terminal installs the application based on the application installation package under the condition that the application information is received and comprises the application installation package. Or, the target terminal installs the application based on the application download link when the application information is received and the application information includes the application download link. The application installation package is an executable file, and the target terminal can install the application in the target terminal by executing the application installation package, and can install the application based on the application installation package even if the target terminal is not connected with the Internet. If the target terminal installs the application based on the application download link, the target terminal needs to determine whether the target terminal is currently in a connection state with the internet, and if the target terminal is in the connection state, the target terminal directly installs the application based on the application download link. Alternatively, the target terminal stores the application download link in a case where the target terminal is not connected to the internet, and waits until the target terminal is in a connected state with the internet, and then installs the application based on the application download link. Optionally, in a case where the target terminal installs the application based on the application download link, the target terminal uses an HTTPS (hypertext Transfer Protocol over Secure Socket Layer) to obtain information associated with the application download link. To improve the security of application installation.
In a possible implementation manner, the application information includes state synchronization information, and accordingly, after the target terminal installs the application based on the application information, the state of the installed application is synchronized with the state of the application in the first terminal based on the state synchronization information, and the state synchronization information indicates the state of the application in the first terminal. It should be noted that the state of the application in the target terminal and the state of the application in the mobile phone can be synchronized by other methods. For example, after the target terminal installs the application, the two-dimensional code is displayed, the first terminal scans the two-dimensional code of the target terminal, and the character string obtained by scanning the two-dimensional code is sent to the first server. And then, the target terminal sends an acquisition request for state synchronization information to the first server, wherein the acquisition request carries the character string in the two-dimensional code, the first server sends the state synchronization information to the target terminal under the condition that the character string is the same as the character string sent by the first terminal, and then the target terminal synchronizes the state of the installed application with the state of the application in the first terminal based on the state synchronization information.
Fig. 18 is a schematic diagram of a process of installing an application on a television through a mobile phone. Referring to fig. 18, taking the target terminal as a tv and the first terminal as a mobile phone as an example, the process includes the following steps: 181. and after receiving the application installation service request, the television returns service response information, wherein the service response information comprises an IP address, a port number and a UUID. 182. The first application on the mobile phone interacts with the user, determines the application and the television specified by the user, interacts with the first server to acquire application information, and sends the application information to the IP address and the port number of the television. 183. And the television verifies the application information and installs the application after the verification is passed. 184. And the television synchronizes the state of the installed application with the state of the application in the mobile phone.
Fig. 19 is a schematic diagram of a process of status synchronization between an application in a television and an application in a mobile phone. Referring to fig. 19, taking the target terminal as a tv and the first terminal as a mobile phone as an example, the process includes the following steps: 191. the user selects the state of the synchronous application on the mobile phone to the television. 192. And the application on the mobile phone communicates with the first server to acquire application information comprising the state synchronization information. 193. And the mobile phone forwards the application information sent by the first server to the television. 194. The television stores the state synchronization information in a location specified by the application information. 195. And after the television starts the application, reading the state synchronization information from the specified position, and synchronizing with the state of the application in the mobile phone based on the state synchronization information.
Fig. 20 is a schematic diagram illustrating an interaction process among the first terminal, the target terminal, the first server, and the second server during the application installation process. Referring to fig. 20, the application installation process includes the steps of: 1. the first terminal transmits an application installation service request through the MDNS protocol. 2. And the target terminal returns service response information, wherein the service response information comprises the IP address, the port number and the UUID. 3. And the first terminal sends an information acquisition request to the first server, wherein the information acquisition request carries the selected target application identifier. 4. The first server returns application information including the signature and application installation information. 5. The first terminal forwards the application information to the target terminal. 6. And the target terminal forwards the application information to the second server. 7. The second server returns the verification passing information or the verification failure information. 8. And the target terminal installs the application corresponding to the application information or abandons installation of the application and returns an installation result to the first terminal. The target terminal is then also able to synchronize the state of the installed application with the state of the application in the first terminal.
Fig. 21 is a schematic diagram of an interaction process between a mobile phone and a user in an application installation process. Referring to fig. 21, taking an example that the target terminal is a television and the first terminal is a mobile phone, the user triggers an application installation control on the mobile phone, the mobile phone starts to attempt to communicate with the television in the local area network, and if the mobile phone does not find a television with an application installation service in the local area network, the user is prompted that the application installation fails. If the mobile phone finds the television with the application installation service in the local area network, the mobile phone displays a television list with the application installation service in the local area network for the user to select. And if the user selects to cancel the installation, prompting the user that the application installation fails. If the user selects a specific television, the mobile phone lists an installable application list for the user to select. If the user selects to cancel the installation, the user is prompted to fail in the installation of the application, and if the user selects a specific application, the user is requested to click on the television through a remote controller to confirm the installation. And if the user selects to cancel the installation, prompting the user that the application installation fails. And if the user clicks to confirm, starting an actual installation process. And if the installation fails, prompting the user that the application installation fails, and if the installation succeeds, prompting the user that the application installation succeeds.
Fig. 22 is a schematic structural diagram of a target terminal. Referring to fig. 22, the target terminal includes a local area network communication module, an application information verification and installation module, and an internet communication module. The local area network communication module is used for communicating with the first terminal to acquire application information. The application information verification and installation module is used for verifying the application information and installing the application based on the application information. The internet communication module is used for communicating with the second server, forwarding the application information to the second server, and receiving a verification result returned by the second server after the second server verifies the application information.
Fig. 23 is a schematic structural diagram of the first terminal. Referring to fig. 23, the first terminal includes a local area network communication module, an interface display module, and an internet communication module. The local area network communication module is used for communicating with a target terminal and sending application information to the target terminal. The interface display module is used for displaying information and interacting with a user, for example, displaying a terminal list of installable applications for selection by the user, displaying an application list of installable applications for selection by the user, and the like. The internet communication module is used for communicating with the first server and obtaining the application information from the first server.
In the embodiment of the application, the application information including the state synchronization information is acquired from the server, so that the state of the application can be synchronized with the state of the application in the first terminal after the target terminal installs the application based on the application information, a user can use the application in the target terminal conveniently, and the user viscosity is improved.
In the embodiment of the application, multiple types of application information are provided, so that the first terminal can determine the type of the acquired application information according to actual conditions. Under the condition that the target terminal is connected with the Internet, the first terminal acquires the application information comprising the application download link and sends the application information to the target terminal, and the consumption of communication resources of the first terminal can be reduced due to the fact that the data size of the application download link is small. Under the condition that the target terminal is not connected with the Internet, the first terminal acquires application information comprising the application installation package and sends the application information to the target terminal, so that the target terminal can install the application under the condition that the target terminal is not connected with the Internet.
In the embodiment of the application, because the first private key is private to the first server, and the other servers do not have the first private key, the first server encrypts the application installation information based on the first private key to obtain the signature, and sends the application information including the signature, after the target terminal obtains the application information including the signature, once the first public key can unlock the signature, the application information is sent by the first server, so that the security and the validity of an application information source can be ensured, the application information sent by an illegal server is prevented from being installed by the target terminal, and the security of application installation is improved.
In the embodiment of the application, the first server performs hash processing on the application installation information to obtain a hash value, and sends the application information including the application installation information and the hash value, so that the target terminal can determine whether the application installation information is changed in the transmission process based on the hash value, thereby avoiding installation of an application corresponding to the illegally changed application installation information, and improving the safety of application installation.
In the embodiment of the application, the target terminal adds the IP address of the target terminal in the service response information, so that the first terminal can directly establish connection with the target terminal based on the IP address and send the application information to the target terminal. And the target terminal adds the port number of the application installation service in the service response information, so that the first terminal can acquire the port number corresponding to the application installation service in the target terminal, and further the port number is carried in the application information sent to the target terminal, so that the target terminal determines the application installation service for processing the application information based on the port number.
In the embodiment of the application, the target terminal adds the randomly generated unique identifier in the service response information, after receiving the application information, the application is installed based on the application information under the condition that the unique identifier in the application information is determined to be the same as the unique identifier sent by the target terminal to the first terminal, and the unique identifier generated each time is random under the condition that the target terminal installs the application for multiple times, so that the scheme can prevent replay attack, namely, an attacker can be prevented from repeatedly installing the application in the target terminal based on the same identifier after acquiring the service response information sent by the target terminal.
In the embodiment of the application, the certificate is generated based on the second private key of the target terminal, the second private key is private to the target terminal, and other terminals do not have the second private key, so that the first server carries the certificate in the application information, after the target terminal acquires the application information including the certificate, once the second public key can unlock the certificate, the certificate is generated by the first private key, and the first public key in the certificate is the public key of the legal server.
In the embodiment of the present application, the setting of the blacklist provides the second server with a server decision right, so that the second server can decide which servers provide applications that are prohibited from being installed in the target terminal. Therefore, when the application provided by a certain server needs to be prohibited from being installed in the target terminal, the public key of the server only needs to be stored in the blacklist, and the method is simple and efficient.
In the embodiment of the application, in consideration of the fact that the application information may be changed by an illegal server in the transmission process, the first hash value of the application installation information is encrypted to obtain a signature, and the application installation information and the signature are carried in the application information. Because the hash values generated by different application information are different, the target terminal only needs to perform hash processing on the application installation information, and compares the obtained second hash value with the first hash value in the signature, so that whether the application information is changed or not can be determined, thereby avoiding the installation of the application corresponding to the illegally changed application information in the target terminal and improving the safety of application installation.
In the embodiment of the application, the application identifier with the installation authority is stored in the white list, and whether the application corresponding to the application information is installed or not is determined through the white list under the condition that the application information is received, so that the application without the installation authority can be prevented from being installed in the target terminal, and the safety of application installation is improved.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
Fig. 24 is a block diagram of an application installation apparatus provided in an embodiment of the present application, which is applied to a first terminal.
Referring to fig. 24, the apparatus includes:
the identifier display module 2401 is configured to display at least one terminal identifier and at least one application identifier in response to an application installation instruction, where a second terminal corresponding to the at least one terminal identifier is located in the same local area network as the first terminal;
an identifier obtaining module 2402, configured to obtain a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier;
the information sending module 2403 is configured to send, through the local area network, application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier, where the target terminal is configured to install an application based on the application information.
In a possible implementation manner, the identifier display module is configured to send an application installation service request through a local area network in response to an application installation instruction, and a second terminal in the local area network is configured to send service response information through the local area network when receiving the application installation service request, where the service response information includes a terminal identifier of the second terminal; and displaying the terminal identification and the at least one application identification in the service response information under the condition of receiving the service response information.
In a possible implementation manner, the service response information further includes an internet protocol IP address of the second terminal and a port number of the application installation service;
the information sending module is used for sending application information through a local area network, and the application information comprises an IP address and a port number; the target terminal is used for receiving the application information through the IP address, sending the application information to the application installation service corresponding to the port number, and installing the application corresponding to the application information through the application installation service.
In one possible implementation, the apparatus further includes:
the request sending module is used for sending an information obtaining request to the first server, wherein the information obtaining request carries a target application identifier;
and the information receiving module is used for receiving the application information which is sent by the first server and corresponds to the target application identifier.
In a possible implementation manner, the request sending module is configured to send a first information obtaining request to a first server, where the first information obtaining request is used to obtain application information including state synchronization information, and the state synchronization information indicates a state of an application in a first terminal; the target terminal is used for synchronizing the installed application with the state of the application in the first terminal based on the state synchronization information.
In a possible implementation manner, the request sending module is configured to send a second information obtaining request to the first server, where the second information obtaining request is used to obtain application information including an application download link, and the target terminal is used to install an application based on the application download link; or sending a third information acquisition request to the first server, wherein the third information acquisition request is used for acquiring application information including the application installation package, and the target terminal is used for installing the application based on the application installation package.
In one possible implementation, the apparatus further includes:
the identifier receiving module is used for receiving the unique identifier sent by the target terminal through the local area network; the information acquisition request also carries a unique identifier, the first server is used for sending application information comprising the unique identifier, and the target terminal is used for installing the application based on the application information under the condition that the unique identifier in the application information is the same as the unique identifier sent by the target terminal to the first terminal.
According to the scheme provided by the embodiment of the application, the terminal identification of at least one terminal in the same local area network with the first terminal is displayed, so that a user can directly select a target terminal needing to install the application from the terminal, and after the target terminal and the target application selected by the user are determined, the application information of the target application is sent to the target terminal through the local area network, and the target application is installed in the target terminal. The application installation scheme only needs the user to execute simple selection operation in the first terminal, so that the application installation operation is greatly simplified, and the application installation efficiency is improved.
Fig. 25 is a block diagram of an application installation apparatus provided in an embodiment of the present application, which is applied to a target terminal.
Referring to fig. 25, the apparatus includes:
a request receiving module 2501, configured to receive an application installation service request sent by a first terminal through a local area network, where the first terminal and a target terminal are located in the local area network;
an information sending module 2502, configured to send service response information to a first terminal through a local area network, where the service response information includes a target terminal identifier of a target terminal, and the first terminal is configured to display a terminal identifier and at least one application identifier of at least one terminal in the local area network, obtain the target terminal identifier selected from the at least one terminal identifier, and the target application identifier selected from the at least one application identifier, and send application information corresponding to the target application identifier to the target terminal corresponding to the target terminal identifier through the local area network;
an application installation module 2503, configured to install the application based on the application information when the application information sent by the first terminal is received.
In a possible implementation manner, the service response information further includes an internet protocol IP address of the target terminal and a port number of the application installation service, and the application information sent by the first terminal includes the IP address and the port number;
the application installation module is used for receiving application information through the IP address; sending the application information to an application installation service corresponding to the port number; and installing the application corresponding to the application information through the application installation service.
In a possible implementation manner, the application information includes a signature, the signature is obtained by encrypting the application installation information based on a first private key of a first server, and the first server is a server providing the application information;
an application installation module comprising:
the decryption unit is used for decrypting the signature based on the first public key under the condition of receiving the application information to obtain application installation information, and the first public key corresponds to the first private key;
an installation unit for installing the application based on the application installation information.
In a possible implementation manner, the application information further includes a certificate, and the certificate is obtained by encrypting the first public key based on the second private key of the target terminal;
the decryption unit is used for decrypting the certificate based on a second public key corresponding to the second private key under the condition that the application information is received to obtain a first public key; and decrypting the signature based on the first public key to obtain the application installation information.
In a possible implementation manner, the installation unit is configured to send an authentication request to the second server, where the authentication request carries the first public key; the second server is used for inquiring the first public key from the blacklist, and sending verification passing information to the target terminal under the condition that the first public key cannot be inquired from the blacklist, wherein the blacklist is used for storing the public key of the server without application installation authority; and in the case of receiving the verification passing information sent by the second server, installing the application based on the application installation information.
In one possible implementation manner, the application information includes a signature and application installation information, the signature is obtained by encrypting a first hash value of the application installation information based on a first private key of a first server, and the first server is a server providing the application information;
the application installation module is used for decrypting the signature based on the first public key under the condition of receiving the application information to obtain a first hash value of the application installation information, wherein the first public key corresponds to the first private key; carrying out hash processing on the application installation information to obtain a second hash value; in a case where the first hash value is the same as the second hash value, the application is installed based on the application installation information.
In a possible implementation manner, the application installation module is configured to query, in a case that the application information is received, an application identifier corresponding to the application information from a white list; under the condition that an application identifier corresponding to the application information is inquired from the white list, the application is installed based on the application information; the white list is used for storing the application identification with the installation authority.
In one possible implementation, the apparatus further includes:
and the state synchronization module is used for synchronizing the state of the installed application with the state of the application in the first terminal based on the state synchronization information under the condition that the application information comprises the state synchronization information, and the state synchronization information indicates the state of the application in the first terminal.
In a possible implementation manner, the application installation module is configured to install the application based on the application installation package when the application information is received and the application information includes the application installation package; alternatively, in a case where the application information is received and the application information includes the application download link, the application is installed based on the application download link.
In a possible implementation manner, the service response information further includes a unique identifier randomly generated by the target terminal;
and the application installation module is used for installing the application based on the application information under the condition that the application information is received and the unique identifier in the application information is the same as the unique identifier in the service response information.
According to the scheme provided by the embodiment of the application, the first terminal acquires the terminal identification of at least one terminal capable of providing the application installation service in the local area network in a mode of sending the application installation service request in the local area network, displays the terminal identification of the at least one terminal, enables a user to directly select a target terminal needing to install the application from the terminal identification, and sends the application information of the target application to the target terminal through the local area network after determining the target terminal and the target application selected by the user so as to install the target application in the target terminal. The application installation scheme only needs the user to execute simple selection operation in the first terminal, so that the application installation operation is greatly simplified, and the application installation efficiency is improved.
Fig. 26 is a block diagram of an application installation apparatus according to an embodiment of the present application, applied to a first server. Referring to fig. 26, the apparatus includes:
a request receiving module 2601, configured to receive an information acquisition request sent by a first terminal, where the information acquisition request carries a target application identifier;
the encryption module 2602 is configured to encrypt, based on a first private key of the first server, the application installation information corresponding to the target application identifier to obtain a signature;
an information sending module 2603, configured to send application information to the first terminal, where the application information includes a signature;
the first terminal is used for sending application information to the target terminal, the target terminal is used for decrypting the signature based on the first public key corresponding to the first private key to obtain application installation information, and the application is installed based on the application installation information.
In a possible implementation manner, the application information further includes a certificate, the certificate is obtained by encrypting the first public key based on a second private key of the target terminal, and the target terminal is further configured to decrypt the certificate based on a second public key corresponding to the second private key to obtain the first public key.
In a possible implementation manner, the information acquisition request further carries a unique identifier, the unique identifier is sent to the first terminal by the target terminal, the application information further comprises the unique identifier, and the target terminal is configured to decrypt the signature based on the first public key under the condition that the unique identifier in the application information is the same as the unique identifier sent to the first terminal by the target terminal.
In the embodiment of the application, because the first private key is private to the first server, and the other servers do not have the first private key, the first server encrypts the application installation information based on the first private key to obtain the signature, and sends the application information including the signature, after the target terminal obtains the application information including the signature, once the first public key can unlock the signature, the application information is sent by the first server, so that the security and the validity of an application information source can be ensured, the application information sent by an illegal server is prevented from being installed by the target terminal, and the security of application installation is improved.
It should be noted that: in the application installation apparatus provided in the above embodiment, when installing an application, only the division of the above functional modules is used as an example, in an actual application, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the above described functions. In addition, the application installation apparatus and the application installation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The embodiment of the present application further provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor, so as to implement the operations performed in the application installation method of the foregoing embodiment.
Optionally, the computer device is provided as a terminal. Fig. 27 is a block diagram illustrating a terminal 2700 according to an exemplary embodiment of the present application. The terminal 2700 may be: smart phones, tablet computers, laptop computers, desktop computers, mobile devices, smart hardware/homes, VR (Virtual Reality)/AR (Augmented Reality) devices, medical devices, robots, and the like. Terminal 2700 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
The terminal 2700 includes: a processor 2701 and memory 2702.
The processor 2701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 2701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), a Field-Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA). The processor 2701 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 2701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, the processor 2701 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 2702 may include one or more computer-readable storage media, which may be non-transitory. Memory 2702 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 2702 is used to store at least one computer program for execution by the processor 2701 to implement the application installation methods provided by the method embodiments herein.
In some embodiments, the terminal 2700 may further include: a peripheral interface 2703 and at least one peripheral. The processor 2701, the memory 2702, and the peripheral interface 2703 may be connected by a bus or signal lines. Various peripheral devices may be connected to peripheral interface 2703 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 2704, a display 2705, and a power source 2706.
The peripheral interface 2703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 2701 and the memory 2702. In some embodiments, processor 2701, memory 2702, and peripheral interface 2703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2701, the memory 2702, and the peripheral interface 2703 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 2704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 2704 communicates with communications networks and other communications equipment via electromagnetic signals. The radio frequency circuit 2704 converts an electrical signal into an electromagnetic signal to transmit the electromagnetic signal, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 2704 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 2704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 2704 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 2705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 2705 is a touch display, the display 2705 also has the ability to capture touch signals on or over the surface of the display 2705. The touch signal may be input to the processor 2701 as a control signal for processing. At this point, the display 2705 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 2705 may be one, providing a front panel of the terminal 2700; in other embodiments, the display 2705 can be at least two, respectively disposed on different surfaces of the terminal 2700 or in a folded design; in other embodiments, the display 2705 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 2700. Even more, the display 2705 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 2705 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The power supply 2706 is used to power the various components within the terminal 2700. The power source 2706 may be alternating current, direct current, a disposable battery, or a rechargeable battery. When power source 2706 comprises a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 27 does not constitute a limitation of terminal 2700, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
Optionally, the computer device is provided as a server. Fig. 28 is a schematic structural diagram of a server 2800 according to an embodiment of the present application, where the server 2800 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 2801 and one or more memories 2802, where the memory 2802 stores at least one computer program, and the at least one computer program is loaded and executed by the processors 2801 to implement the application installation method provided by each of the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed in the application installation method of the foregoing embodiment.
Embodiments of the present application also provide a computer program product or a computer program, which includes a computer program, stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and executes the computer program, so that the computer device performs the operations performed in the application installation method in the various alternative implementations described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. An application installation method, performed by a first terminal, the method comprising:
responding to an application installation instruction, displaying at least one terminal identification and at least one application identification, wherein a second terminal corresponding to the at least one terminal identification and the first terminal are in the same local area network;
acquiring a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier;
and sending application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network, wherein the target terminal is used for installing an application based on the application information.
2. The method of claim 1, wherein displaying at least one terminal identifier and at least one application identifier in response to an application installation instruction comprises:
responding to the application installation instruction, sending an application installation service request through the local area network, wherein a second terminal in the local area network is used for sending service response information through the local area network under the condition that the application installation service request is received, and the service response information comprises a terminal identifier of the second terminal;
and under the condition of receiving the service response information, displaying the terminal identification and the at least one application identification in the service response information.
3. The method according to claim 2, wherein the service response information further includes an internet protocol IP address of the second terminal and a port number of an application installation service; the sending of the application information corresponding to the target application identifier to the target terminal corresponding to the target terminal identifier through the local area network includes:
sending the application information through the local area network, wherein the application information comprises the IP address and the port number;
the target terminal is used for receiving the application information through the IP address, sending the application information to an application installation service corresponding to the port number, and installing the application corresponding to the application information through the application installation service.
4. The method according to claim 1, wherein before sending the application information corresponding to the target application identifier to the target terminal corresponding to the target terminal identifier through the local area network, the method further comprises:
sending an information acquisition request to a first server, wherein the information acquisition request carries the target application identifier;
and receiving application information which is sent by the first server and corresponds to the target application identification.
5. The method of claim 4, wherein sending the information acquisition request to the first server comprises:
sending a first information acquisition request to the first server, wherein the first information acquisition request is used for acquiring application information including state synchronization information, and the state synchronization information indicates the state of the application in the first terminal;
wherein the target terminal is configured to synchronize the installed application with a state of the application in the first terminal based on the state synchronization information.
6. An application installation method, performed by a target terminal, the method comprising:
receiving an application installation service request sent by a first terminal through a local area network, wherein the first terminal and the target terminal are in the local area network;
sending service response information to the first terminal through the local area network, wherein the service response information comprises a target terminal identifier of the target terminal, the first terminal is used for displaying a terminal identifier and at least one application identifier of at least one terminal in the local area network, acquiring the target terminal identifier selected from the at least one terminal identifier and the target application identifier selected from the at least one application identifier, and sending the application information corresponding to the target application identifier to the target terminal corresponding to the target terminal identifier through the local area network;
and installing an application based on the application information when the application information sent by the first terminal is received.
7. The method according to claim 6, wherein the service response message further includes an Internet Protocol (IP) address of the target terminal and a port number of an application installation service, and the application message sent by the first terminal includes the IP address and the port number;
the installing an application based on the application information when receiving the application information sent by the first terminal includes:
receiving the application information through the IP address;
sending the application information to an application installation service corresponding to the port number;
and installing the application corresponding to the application information through the application installation service.
8. The method of claim 6, wherein the application information comprises a signature, and wherein the signature is obtained by encrypting application installation information based on a first private key of a first server, and wherein the first server is a server that provides the application information;
the installing an application based on the application information when the application information sent by the first terminal is received comprises:
decrypting the signature based on a first public key under the condition of receiving the application information to obtain the application installation information, wherein the first public key corresponds to the first private key;
installing the application based on the application installation information.
9. The method according to claim 8, wherein the application information further comprises a certificate obtained by encrypting the first public key based on a second private key of the target terminal;
the decrypting the signature based on the first public key under the condition that the application information is received to obtain the application installation information includes:
decrypting the certificate based on a second public key corresponding to the second private key under the condition that the application information is received to obtain the first public key;
and decrypting the signature based on the first public key to obtain the application installation information.
10. An application installation method, performed by a first server, the method comprising:
receiving an information acquisition request sent by a first terminal, wherein the information acquisition request carries a target application identifier;
based on a first private key of the first server, encrypting the application installation information corresponding to the target application identifier to obtain a signature;
sending application information to the first terminal, wherein the application information comprises the signature;
the first terminal is used for sending the application information to a target terminal, the target terminal is used for decrypting the signature based on a first public key corresponding to the first private key to obtain the application installation information, and the application is installed based on the application installation information.
11. An application installation apparatus, applied to a first terminal, the apparatus comprising:
the identifier display module is used for responding to an application installation instruction and displaying at least one terminal identifier and at least one application identifier, wherein a second terminal corresponding to the at least one terminal identifier and the first terminal are in the same local area network;
an identifier obtaining module, configured to obtain a target terminal identifier selected from the at least one terminal identifier and a target application identifier selected from the at least one application identifier;
and the information sending module is used for sending the application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network, and the target terminal is used for installing the application based on the application information.
12. An application installation apparatus, applied to a target terminal, the apparatus comprising:
a request receiving module, configured to receive an application installation service request sent by a first terminal through a local area network, where the first terminal and the target terminal are located in the local area network;
an information sending module, configured to send service response information to the first terminal through the local area network, where the service response information includes a target terminal identifier of the target terminal, and the first terminal is configured to display a terminal identifier and at least one application identifier of at least one terminal in the local area network, obtain a target terminal identifier selected from the at least one terminal identifier, and a target application identifier selected from the at least one application identifier, and send application information corresponding to the target application identifier to a target terminal corresponding to the target terminal identifier through the local area network;
and the application installation module is used for installing the application based on the application information under the condition of receiving the application information sent by the first terminal.
13. An application installation apparatus, applied to a first server, the apparatus comprising:
the request receiving module is used for receiving an information acquisition request sent by a first terminal, wherein the information acquisition request carries a target application identifier;
the encryption module is used for encrypting the application installation information corresponding to the target application identifier based on a first private key of the first server to obtain a signature;
an information sending module, configured to send application information to the first terminal, where the application information includes the signature;
the first terminal is used for sending the application information to a target terminal, the target terminal is used for decrypting the signature based on a first public key corresponding to the first private key to obtain the application installation information, and the application is installed based on the application installation information.
14. A computer device comprising a processor and a memory, the memory having stored therein at least one computer program, the computer program being loaded and executed by the processor to perform operations performed by the application installation method of any one of claims 1 to 10.
15. A computer-readable storage medium, in which at least one computer program is stored, the computer program being loaded and executed by a processor to perform the operations performed by the application installation method of any one of claims 1 to 10.
CN202110864759.4A 2021-07-29 2021-07-29 Application installation method, device, equipment and storage medium Pending CN115686542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110864759.4A CN115686542A (en) 2021-07-29 2021-07-29 Application installation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110864759.4A CN115686542A (en) 2021-07-29 2021-07-29 Application installation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115686542A true CN115686542A (en) 2023-02-03

Family

ID=85058792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110864759.4A Pending CN115686542A (en) 2021-07-29 2021-07-29 Application installation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115686542A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708532A (en) * 2023-08-03 2023-09-05 腾讯科技(深圳)有限公司 Local area network connection method, device, computer equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708532A (en) * 2023-08-03 2023-09-05 腾讯科技(深圳)有限公司 Local area network connection method, device, computer equipment and readable storage medium
CN116708532B (en) * 2023-08-03 2023-10-20 腾讯科技(深圳)有限公司 Local area network connection method, device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110266480B (en) Data transmission method, device and storage medium
WO2019120091A1 (en) Identity authentication method and system, and computing device
CN101258505B (en) Secure software updates
CN111741011B (en) Verification method, verification device and storage medium
KR20150017844A (en) Controlling Method For Input Status and Electronic Device supporting the same
US11824854B2 (en) Communication system and computer readable storage medium
US20230125139A1 (en) Account Data Sharing Method and Electronic Device
CN111918274B (en) Code number configuration and management method and device, electronic equipment and readable storage medium
CN107154935B (en) Service request method and device
CN113132091B (en) Method for sharing equipment and electronic equipment
CN111723889B (en) Code scanning login method, graphic code display method, device, equipment and storage medium
CN109995876B (en) File transmission method, device, system and computer storage medium
RU2685975C2 (en) Providing communication security with extended multimedia platforms
EP2713295A1 (en) Cooperative broadcast communication receiver device, resource access control program and cooperative broadcast communication system
CN111726801B (en) Network security control method
CN111787540A (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
KR20210145558A (en) Electronic device for performing edge computing service and a method for the same
CN113905258B (en) Video playing method, network device and storage medium
EP3833153B1 (en) Network connection methods and devices
CN115686542A (en) Application installation method, device, equipment and storage medium
CN112187726A (en) Data transmission method, device, storage medium and terminal
US20230075275A1 (en) Secure pairing and pairing lock for accessory devices
CN108737341B (en) Service processing method, terminal and server
WO2023141876A1 (en) Data transmission method, apparatus and system, electronic device, and readable medium
CN114430343B (en) Data synchronization method and device, electronic equipment and readable storage medium

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: 40081596

Country of ref document: HK