CN113010187B - Application installation method and device and electronic equipment - Google Patents

Application installation method and device and electronic equipment Download PDF

Info

Publication number
CN113010187B
CN113010187B CN202110170307.6A CN202110170307A CN113010187B CN 113010187 B CN113010187 B CN 113010187B CN 202110170307 A CN202110170307 A CN 202110170307A CN 113010187 B CN113010187 B CN 113010187B
Authority
CN
China
Prior art keywords
installation
format
file
data packet
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110170307.6A
Other languages
Chinese (zh)
Other versions
CN113010187A (en
Inventor
徐治钦
谢铖标
柯创浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hard Link Network Technology Co ltd
Original Assignee
Shanghai Hard Link Network Technology 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 Shanghai Hard Link Network Technology Co ltd filed Critical Shanghai Hard Link Network Technology Co ltd
Priority to CN202110170307.6A priority Critical patent/CN113010187B/en
Publication of CN113010187A publication Critical patent/CN113010187A/en
Application granted granted Critical
Publication of CN113010187B publication Critical patent/CN113010187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The application discloses an application installation method, an application installation device and electronic equipment, wherein the method comprises the following steps: receiving an installation request of a target application sent by first terminal equipment; acquiring a data packet with a first format according to the installation request; detecting the first format, and when detecting that the first format is different from the second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format is a data format supported to be directly installed; and sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.

Description

Application installation method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an application installation method and apparatus, and an electronic device.
Background
Currently, to ensure the stability and reliability of the running of an application, the application is often tested before the application is officially released. Typically, during the application testing phase, the developer sends the applied data packets to the publisher, and the publisher installs and tests the received data packets on the terminal device. However, in this stage, since the issuer receives the data packets in various formats sent from the developer, some data packets in different formats cannot be directly installed on the terminal device, so that when the data packet formats of the application are more, the application is difficult to install and the installation efficiency is low.
Disclosure of Invention
The application aims at least solving one of the technical problems in the prior art and providing an application installation method, an application installation device and electronic equipment, so that the installation efficiency of the application is improved.
The embodiment of the application provides an application installation method, which comprises the following steps:
receiving an installation request of a target application sent by first terminal equipment;
acquiring a data packet with a first format according to the installation request;
detecting the first format, and when detecting that the first format is different from the second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format is a data format supported to be directly installed;
and sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
Further, the obtaining, according to the installation request, a data packet having a first format includes:
and identifying the domain name in the installation request, and acquiring the data packet with the first format when the domain name is identified as the local area network domain name.
Further, according to the installation request, acquiring the data packet with the first format includes:
Identifying the equipment type of the first terminal equipment according to the installation request;
and acquiring the data packet with the first format according to the equipment type.
Further, the device type comprises a device type that the operating system is an Android operating system, the first format comprises obb and apk combined file format, and the second format comprises apk file format;
analyzing each file in the data packet to obtain an installation file with the second format, including:
and analyzing each file in the data packet of obb combined with the apk file format to obtain an installation file with the apk file format and a configuration file with the obb file format.
Further, the sending the installation file to the first terminal device for installation, so as to install the target application corresponding to the data packet to the first terminal device, including:
and sending the installation file in the apk file format to the first terminal equipment for installation, and copying the configuration file corresponding to the installation file in the apk file format to a designated installation path after the installation of the installation file in the apk file format on the first terminal equipment is monitored, so as to install the target application corresponding to the data packet to the first terminal equipment.
Further, the device type includes a device type in which the operating system is an IOS operating system, the first format includes an ipa file format, and the second format includes a plist file format;
the step of sending the installation file to the first terminal device for installation, so as to install the target application corresponding to the data packet to the first terminal device, including:
and sending the download address of the installation file in the plist file format to the first terminal equipment so that the first terminal equipment installs the target application corresponding to the data packet according to the download address.
Further, in the embodiment of the present application, the application installation method further includes:
and when the first format is detected to be the same as the second format, sending the data packet to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
Further, in the embodiment of the present application, the application installation method further includes:
and feeding back the installation state of the target application on the first terminal device to a second terminal device.
Further, the installation state includes an installation result of the target application, the installation result includes a text result, the text result is test data generated in the process that the first terminal device executes the installation of the target application, the picture result is an abnormal screenshot of an installation abnormality occurring in the process that the first terminal device executes the installation of the target application, and the installation abnormality includes at least one of an abnormal popup window, an application installation process flashing back, and an application installation katon.
Further, in an embodiment of the present application, there is also provided an application installation apparatus, including:
the request receiving module is used for receiving an installation request of the target application sent by the first terminal equipment;
the data acquisition module is used for acquiring the data packet with the first format according to the installation request;
the data analysis module is used for detecting the first format, analyzing each file in the data packet when detecting that the first format is different from the second format, and obtaining an installation file with the second format, wherein the second format is a data format supported for direct installation;
and the application installation module is used for sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
Further, an embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, which when executed implements the application installation method as described in the above embodiments.
Further, the present embodiment provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the application installation method according to the above embodiment.
Compared with the prior art, the method and the device for installing the target application in the data packet acquire the data packet with the first format according to the installation request of the target application sent by the first terminal device, analyze the file in the data packet with the first format when detecting that the first format is different from the second format, acquire the installation file with the second format and install the installation file in the first terminal device, so that the data packets with different formats can be directly installed on the terminal device, and the application installation can be simplified when the data packet formats of the application are more, and the installation efficiency of the application is improved.
In the above embodiment, when the domain name in the installation request is identified as the domain name of the local area network, the data packet with the first format is obtained, so that the data packet can be ensured to be transmitted in the internal network, the external disclosure in the application test process is avoided, and the security risk can be reduced.
The above embodiment acquires the data packet with the first format according to the identified device type of the first terminal device, so that different device types can acquire the data packet, and further, the application can be installed in devices of different device types.
In the above embodiment, for a device with an Android operating system as a device type, the first format is obb and combines with the file format of apk, the second format is apk file format, the acquiring of the installation file with the second format needs to parse the file in the data packet with obb and combines with the apk file format, the acquiring of the installation file with the apk file format and the configuration file with the obb file format, and the acquiring of the installation file and the configuration file which can be used from the common file formats obb and apk of the Android operating system can be used.
Under the condition that the first format is obb combined with apk, the embodiment installs the installation file in the apk file format in the first terminal device, copies the corresponding configuration file to the appointed installation path after the installation is monitored, and achieves the installation of the target application program in the first terminal device, and avoids the installation failure of the target application corresponding to the data packet in the file format commonly used by the Android operating system.
In the above embodiment, for a device of which the device type is an IOS operating system, when the first format is an ipa file format and the second format is a plist file format, the first terminal device installs a target application corresponding to the data packet according to a download address of an installation file of the received plist file format, so that the device of the IOS operating system can directly download and install the target application corresponding to the data packet on the web side.
According to the embodiment, when the first format and the second format are detected to be the same, the data packet is sent to the first terminal equipment for installation, and the rapid installation of the corresponding target application is realized under the condition that the data packet types are the same when the data packet types are multiple.
The above embodiment feeds back the installation state of the target application in the first terminal device to the second terminal device, so that the installation condition of the target application in the first terminal device can be monitored, and the adjustment can be performed more efficiently.
The installation results in the embodiment comprise the text results and the picture results, the installation results can be reflected from a plurality of different aspects such as test data or screenshot, and the installation results of the target application can be effectively and intuitively displayed under different conditions, so that the application installation is convenient to adjust.
Drawings
The present application is further described below with reference to the drawings and examples;
FIG. 1 is a diagram of an application environment for a game automation test method in one embodiment;
FIG. 2 is a flow diagram of a method of automated game testing in one embodiment;
FIG. 3 is a flow chart of a method of automated game testing in yet another embodiment;
FIG. 4 is a diagram of an application environment for a game automation test method in another embodiment;
FIG. 5 is a flow chart of a method of automated game testing in another embodiment;
FIG. 6 is a block diagram of a game automation testing device in one embodiment;
FIG. 7 is a block diagram of a game automation testing device in another embodiment;
FIG. 8 is a block diagram of a computer device in one embodiment.
Detailed Description
Reference will now be made in detail to the present embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the purpose of the accompanying drawings is to supplement the description of the written description section with figures, so that one can intuitively and intuitively understand each technical feature and overall technical scheme of the present application, but not to limit the scope of protection of the present application.
Currently, to ensure the stability and reliability of the running of an application, the application is often tested before the application is officially released. Typically, during the application testing phase, the developer sends the applied data packets to the publisher, and the publisher installs and tests the received data packets on the terminal device. However, in this stage, since the issuer receives the data packets in various formats sent from the developer, some data packets in different formats cannot be directly installed on the terminal device, so that when the data packet formats of the application are more, the application is difficult to install and the installation efficiency is low. The data packet refers to a file packet with a specific file format corresponding to an installation packet of the target application program, and the file format is a special coding mode of information. Wherein the file formats of the installation packages (executable files) which can be directly installed in different terminal devices are different.
In order to solve the above technical problem, as shown in fig. 1, an application environment diagram of an application installation method in one embodiment is shown. Referring to fig. 1, the application installation system includes a terminal device 110 and a server 120. The terminal device 110 and the server 120 are connected through a network. Terminal device 110 may be implemented as a stand-alone terminal device or as a cluster of terminal devices comprising a plurality of terminal devices. The server 120 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers. The server 120 obtains a data packet with a first format according to an installation request of a target application sent by the terminal device 110, and when detecting that the first format is different from the second format, parses a file in the data packet with the first format, obtains an installation file with the second format, and sends the installation file to the terminal device 110 for installation.
The application installation method provided in the embodiments of the present application will be described and illustrated in detail below by means of several specific embodiments.
As shown in fig. 2, in one embodiment, an application installation method is provided. The embodiment is mainly exemplified by the method applied to computer equipment. The computer device may be specifically the server 120 of fig. 1 described above.
Referring to fig. 2, the application installation method specifically includes the steps of:
s11, receiving an installation request of a target application sent by the first terminal equipment.
In this embodiment, the server receives an installation request of a target application sent by a first terminal device, where the first terminal device is a terminal device in fig. 1, and may be a computer terminal, a mobile phone terminal, or other terminals capable of installing an application program. The installation request refers to a data request sent by the first terminal device to the server according to a target application to be installed, and the request may be in the form of a data packet, a file or an instruction. The first terminal device is connected to the server through a network, and data, file or instruction transmission between network connection devices belongs to the prior art, which is not described herein.
S12, acquiring the data packet with the first format according to the installation request.
In this embodiment, the server obtains the data packet with the first format according to the installation request, where the data packet may be stored in the server, or may be stored in a server other than the server or another terminal. The data packet contains one or more files, the files can realize the installation of the target application in a specific type of terminal, for example, the game data packet contains files in apk format, and the installation of the target game application can be realized on an Android operating system type of terminal. The first format refers to the format of one or more files within the data packet.
In this embodiment, the installation request includes an identifier or a connection or an address of a data packet having the first format, for example, the installation request is "install-qmxz-apk", that is, the installation request is to obtain a data packet having the apk format in which the target application is the game "civil war".
In one embodiment, according to an installation request, obtaining a data packet having a first format includes:
and identifying the domain name in the installation request, and acquiring the data packet with the first format when the domain name is identified as the local area network domain name.
In this embodiment, the server acquires the data packet having the first format when recognizing that the domain name in the installation request is the lan domain name. The installation request comprises a domain name of the first terminal equipment; when the data packet with the first format is stored in the server, the server identifies whether the domain name of the first terminal device is the same as the domain name of the local area network where the server is located, i.e. identifies whether the first terminal device and the server are in the same local area network. When the first terminal device and the server are in the same local area network, the server acquires the data packet with the first format from the area storing the data packet with the first format in the server. When the first terminal device and the server are not in the same local area network, the server does not acquire the data packet with the first format. In addition, when the data packet having the first format is stored in a server or a terminal other than the server, the server identifies whether the domain name of the first terminal device is the same as the domain name of the server or the local area network where the terminal is located, that is, identifies whether the first terminal device is in the same local area network as the server or the terminal where the data packet having the first format is stored. When the first terminal device is in the same local area network as the server or terminal storing the data packet with the first format, the server acquires the data packet with the first format from the server or terminal storing the data packet with the first format. When the first terminal device and the server are not in the same local area network, the server does not acquire the data packet with the first format.
In this embodiment, when the first terminal device is in the wide area network, that is, the first terminal device is not in the same local area network as the server or the terminal storing the data packet having the first format, the first terminal device can only transmit the data packet having the first format to the server or the terminal storing the data packet having the first format.
In this embodiment, when the first terminal device and the server or the terminal storing the data packet with the first format are in the same local area network, after the first terminal device sends an installation request of the target application, the server obtains the data packet with the first format according to the installation request, parses the file in the data packet to obtain an installation file with the data format supported for direct installation, and sends the installation file to the first terminal device for installation. When the first terminal device is in the wide area network, that is, the first terminal device and the server storing the data packet with the first format or the terminal are not in the same local area network, the transmission rate of the download is limited, that is, the download rate is limited to 0, and the transmission rate of the upload is not limited, so that the server cannot transmit the installation file to the first terminal device in the wide area network after acquiring the installation file with the data format supported for direct installation, that is, the first terminal device in the wide area network cannot download the installation file from the server, and only can upload the file to the server.
In this embodiment, when the domain name in the installation request is identified as the domain name of the local area network, the data packet with the first format is obtained, so that the data packet can be ensured to be transmitted in the internal network, the disclosure to the outside in the application test process is avoided, and the security risk can be reduced.
S13, detecting a first format, and when detecting that the first format is different from a second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format is a data format supported to be directly installed.
In this embodiment, the format of the first format of the server detection data packet, the format of the server detection data packet or the file belongs to the prior art, and will not be described herein. When the server detects that the first format is different from the second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format refers to a data format which can be directly operated in the first terminal equipment to install the target application, for example, an exe format in a Windows operating system. The parsing of the files is to convert the data format of each file in the data packet into a data format supported for direct installation, where the data format of each file in the data packet is a data format that can be installed, but not a data format that can be directly installed to the first terminal device, for example, parsing each file, that is, converting the ISO format into the exe format.
S14, sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
In this embodiment, the server sends the installation file obtained after the file is parsed to the first terminal device, and the first terminal device operates the installation file to install the target application. The file transmission of the network connection device and the operation and installation of the installation file in the terminal device belong to the prior art, and are not described herein.
In one embodiment, the application installation method further comprises:
and when the first format and the second format are detected to be the same, sending the data packet to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
In this embodiment, when the server detects that the first format of the data packet is the same as the second format supported for direct installation in the first terminal device, the server does not need to parse each file in the data packet to obtain an installation file with the second format, only needs to directly send the data packet with the first format to the first terminal device, after receiving the data packet with the first format, the first terminal device runs each file in the data packet to install the target application, for example, the Windows operating system directly receives the data packet with the exe format, and runs each file therein to install the target application.
In this embodiment, the data packet having the first format is acquired according to the identified device type of the first terminal device, so that different device types can acquire the data packet, and further, the application can be installed in devices of different device types.
In yet another embodiment, as shown in fig. 3, an application installation method is provided. The embodiment is mainly exemplified by the method applied to computer equipment. The computer device may be specifically the server 120 of fig. 1 described above.
Referring to fig. 3, the application installation method specifically includes the steps of:
s21, receiving an installation request of a target application sent by the first terminal equipment.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
S22, identifying the equipment type of the first terminal equipment according to the installation request.
In this embodiment, the server identifies the device type of the first terminal device according to the installation request, where the server may identify the device type of the first terminal device by including an identifier of the device type of the first terminal device in the installation request, for example, the installation request is "install-Android-qmxz-apk", that is, the installation request is to obtain a data packet in which the target application having the apk format is a game "civil engineering battle", and the first terminal device is a terminal device of the Android operating system. It is also possible to determine the device type of the first terminal device by identifying in the installation request the data format supporting direct installation in the first terminal device, i.e. the second format, by being said data format identified, e.g. the installation request is "install-qmxz-obb-apk", i.e. the installation request is to obtain a data packet with obb format for the target application as game "civil war", and the data format supporting direct installation in the first terminal device is apk format, thus it is possible to determine that the first terminal device is a terminal device of the Android operating system.
S23, acquiring the data packet with the first format according to the equipment type.
In this embodiment, the server acquires the data packet with the first format according to the device type of the first terminal device, where the first format of the data packet acquired according to the device type can be used for installation of the first terminal device, but does not necessarily support direct installation, that is, the data packet with the first format may also need to parse each file included, for example, the data packets with the ob, aab and apk formats can all be used for installing the target application in the terminal device with the device type of the Android operating system, but only the apk format supports direct installation. The server acquires the data packet with the first format according to the acquired device type, namely, the server selects the data packet with the format capable of realizing the installation of the target application in the device type according to the device type. For example, for the device type of the Android operating system, the server selects a data packet in the ob, aab or apk format.
In this embodiment, the server may further acquire the data packet having the first format according to the device type when the domain name in the installation request is identified as the lan domain name. The installation request comprises a domain name of the first terminal equipment; when the data packet with the first format is stored in the server, the server identifies whether the domain name of the first terminal device is the same as the domain name of the local area network where the server is located, i.e. identifies whether the first terminal device and the server are in the same local area network. When the first terminal device and the server are in the same local area network, the server acquires the data packet with the first format from the area storing the data packet with the first format in the server. When the first terminal device and the server are not in the same local area network, the server does not acquire the data packet with the first format. In addition, when the data packet having the first format is stored in a server or a terminal other than the server, the server identifies whether the domain name of the first terminal device is the same as the domain name of the server or the local area network where the terminal is located, that is, identifies whether the first terminal device is in the same local area network as the server or the terminal where the data packet having the first format is stored. When the first terminal device is in the same local area network as the server or terminal storing the data packet with the first format, the server acquires the data packet with the first format from the server or terminal storing the data packet with the first format. When the first terminal device and the server are not in the same local area network, the server does not acquire the data packet with the first format.
In this embodiment, when the first terminal device is in the wide area network, that is, the first terminal device is not in the same local area network as the server or the terminal storing the data packet having the first format, the first terminal device can only transmit the data packet having the first format to the server or the terminal storing the data packet having the first format.
In this embodiment, when the first terminal device and the server or the terminal storing the data packet with the first format are in the same local area network, after the first terminal device sends an installation request of the target application, the server obtains the data packet with the first format according to the installation request, parses the file in the data packet to obtain an installation file with the data format supported for direct installation, and sends the installation file to the first terminal device for installation. When the first terminal device is in the wide area network, that is, the first terminal device and the server storing the data packet with the first format or the terminal are not in the same local area network, the transmission rate of the download is limited, that is, the download rate is limited to 0, and the transmission rate of the upload is not limited, so that the server cannot transmit the installation file to the first terminal device in the wide area network after acquiring the installation file with the data format supported for direct installation, that is, the first terminal device in the wide area network cannot download the installation file from the server, and only can upload the file to the server.
S24, detecting a first format, and when detecting that the first format is different from a second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format is a data format supported to be directly installed.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
In one embodiment, the device type includes a device type in which the operating system is an Android operating system, the first format includes obb in combination with an apk file format, and the second format includes an apk file format.
Analyzing each file in the data packet to obtain an installation file with a second format, wherein the method comprises the following steps:
and analyzing each file in the obb-apk-combined file format data packet to obtain an installation file with an apk file format and a configuration file with a obb file format.
In this embodiment, each file in the data packet of obb and apk file format is parsed, where parsing the file converts the data format of each file in the data packet into a data format supported for direct installation or converts each file into a file format suitable for installation, for example, in this embodiment, obb file format and apk file format are both configuration files, so that installation cannot be performed, and it is necessary to convert the configuration file of apk file format into an installation file, that is, installation can be performed.
In this embodiment, for a device with an Android operating system as a device type, a first format is obb and combines with a file format of apk, a second format is apk file format, acquiring an installation file with the second format needs to parse a file in a data packet with obb and combines with the apk file format, acquiring an installation file with the apk file format and a configuration file with the obb file format, and acquiring the installation file and the configuration file which can be used from common file formats obb and apk of the Android operating system for use.
And S25, sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
In one embodiment, the sending the installation file to the first terminal device for installation, so as to install the target application corresponding to the data packet to the first terminal device, includes:
and sending the installation file in the apk file format to the first terminal equipment for installation, and copying the configuration file corresponding to the installation file in the apk file format to a designated installation path after the installation of the installation file in the apk file format on the first terminal equipment is monitored, so as to install the target application corresponding to the data packet to the first terminal equipment.
In this embodiment, the process that the server sends the data packet including the apk installation file and the obb configuration file to the first terminal device for installation specifically includes that the first terminal device installs the apk installation file first, and copies the obb configuration file to the corresponding installation path after monitoring that the apk installation file is successfully installed. Wherein the installation path of the obb profile is differentiated according to package name, e.g./sdcard/Android/obb/package name/.
In this embodiment, under the condition that the first format is obb and apk is combined, the installation of the target application program in the first terminal device is realized by installing the installation file in the apk file format in the first terminal device and copying the corresponding configuration file to the designated installation path after the completion of the installation is monitored, so that the failure of installing the target application program corresponding to the data packet in the file format commonly used by the Android operating system is avoided.
In one embodiment, the device type comprises a device type in which the operating system is an IOS operating system, the first format comprises an ipa file format, and the second format comprises a plist file format.
The method comprises the steps of sending an installation file to first terminal equipment for installation, so as to install a target application corresponding to a data packet to the first terminal equipment, and the method comprises the following steps:
And sending the download address of the installation file in the plist file format to the first terminal equipment so that the first terminal equipment installs the target application corresponding to the data packet according to the download address.
In this embodiment, after the server sends the installation file to the first terminal device with the device type being the IOS operating system, the first terminal device installs the target application, and the server is required to generate a plist file (xml file written in a certain format) and send the plist file to the first terminal device, where the web end in the first terminal device uses the download address of the plist file, for example, the code < ahref= "itms-services://? action=download-management & url= [ plist file download address ] "> to download install ipa package.
In this embodiment, for a device of which the device type is an IOS operating system, in the case where the first format is an ipa file format and the second format is a plist file format, the first terminal device installs a target application corresponding to the data packet according to a download address of an installation file of the received plist file format, so that the device of the IOS operating system can directly download and install the target application corresponding to the data packet on the web side.
In the above embodiment, the data packet having the first format is acquired according to the identified device type of the first terminal device, so that different device types can each acquire the data packet, and further, the application can be installed in the devices of the different device types.
In another embodiment, as shown in fig. 4, an application environment diagram of the application installation method in this embodiment is shown. Referring to fig. 4, the application installation system includes a second terminal device 130 in addition to the terminal device 110 and the server 120. The terminal device 110, the server 120 and the second terminal device are all connected through a network. Terminal device 110 may be implemented as a stand-alone terminal device or as a cluster of terminal devices comprising a plurality of terminal devices. The server 120 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers. The second terminal device 130 may be implemented as a stand-alone terminal device or as a terminal device cluster comprising a plurality of terminal devices.
As shown in fig. 5, in one embodiment, an application installation method is provided. The embodiment is mainly exemplified by the method applied to computer equipment. The computer device may be specifically the server 120 of fig. 4 described above.
Referring to fig. 5, the application installation method specifically includes the steps of:
s31, receiving an installation request of a target application sent by the first terminal equipment.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
S32, acquiring the data packet with the first format according to the installation request.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
S33, detecting the first format, and when detecting that the first format is different from the second format, analyzing each file in the data packet to obtain an installation file with the second format, wherein the second format is a data format supported to be directly installed.
The steps are the same as those of the above embodiments, and specific analyses may refer to the above embodiments, so that repetition is avoided and details are not repeated here.
And S34, sending the installation file to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
S35, feeding back the installation state of the target application on the first terminal device to the second terminal device.
In this embodiment, the server feeds back the installation status of the target application to the second terminal device, where the second terminal device may be an independent terminal device or a terminal device cluster formed by a plurality of terminal devices, and the second terminal device is configured to monitor and manage the installation status of the target application in the first terminal device. The installation state of the feedback may be a parameter, a code or a file, and the manner in which the server sends the parameter, the code or the file belongs to the prior art, which is not described herein.
In this embodiment, the installation state of the target application in the first terminal device is fed back to the second terminal device, so that the installation situation of the target application in the first terminal device can be monitored, and adjustment can be performed more efficiently.
In one embodiment, the installation state includes an installation result of the target application, the installation result includes a text result, the text result is test data generated in an installation process of the first terminal device executing the target application, the picture result is an abnormal screenshot of an installation abnormality occurring in an installation process of the first terminal device executing the target application, and the installation abnormality includes at least one of an abnormal popup window, an application installation process flashing back, and an application installation katon.
In this embodiment, the server feeds back an installation state of the target application to the first terminal device of the second terminal device, where the installation state includes an installation result of the target application, and the installation result may be a text result or a picture result. The test data generated when the first terminal device executes the installation of the target application can be the time of obtaining the installation process, the analysis of reasons of the installation failure or a part of files which are not responsive in the installation process. The screenshot of the installation abnormality occurring when the first terminal equipment executes the installation of the target application can be obtained in an interface interception mode.
In this embodiment, the installation result includes a text result and a picture result, which can reflect the installation result from a plurality of different aspects such as test data or screenshot, and can effectively and intuitively display the installation result of the target application under different conditions, thereby facilitating adjustment of application installation.
In the above embodiment, according to the installation request of the target application sent by the first terminal device, the data packet with the first format is obtained, when the first format is detected to be different from the second format, the file in the data packet with the first format is analyzed, the installation file with the second format is obtained and is installed in the first terminal device, so that the data packets with different formats can be directly installed on the terminal device, and when the data packet formats of the application are more, the application installation can be simplified, and the installation efficiency of the application is improved.
In one embodiment, as shown in fig. 6, there is provided an application installation apparatus including:
a request receiving module 101, configured to receive an installation request of a target application sent by a first terminal device.
The data acquisition module 102 is configured to acquire a data packet having a first format according to the installation request.
The data parsing module 103 is configured to detect a first format, and parse each file in the data packet to obtain an installation file with a second format when detecting that the first format is different from the second format, where the second format is a data format that is supported for direct installation.
And the application installation module 104 is configured to send the installation file to the first terminal device for installation, so as to install the target application corresponding to the data packet to the first terminal device.
In one embodiment, the request receiving module 101 is further configured to:
and identifying the domain name in the installation request, and acquiring the data packet with the first format when the domain name is identified as the local area network domain name.
In one embodiment, the request receiving module 101 is further configured to:
identifying the equipment type of the first terminal equipment according to the installation request;
and acquiring the data packet with the first format according to the device type.
In one embodiment, the device type includes a device type in which the operating system is an Android operating system, the first format includes obb in combination with an apk file format, and the second format includes an apk file format.
The data parsing module 103 is further configured to:
and analyzing each file in the obb-apk-combined file format data packet to obtain an installation file with an apk file format and a configuration file with a obb file format.
In one embodiment, the application installation module 104 is further configured to:
and sending the installation file in the apk file format to the first terminal equipment for installation, and copying the configuration file corresponding to the installation file in the apk file format to a designated installation path after the installation of the installation file in the apk file format on the first terminal equipment is monitored, so as to install the target application corresponding to the data packet to the first terminal equipment.
In one embodiment, the device type comprises a device type in which the operating system is an IOS operating system, the first format comprises an ipa file format, and the second format comprises a plist file format.
The application installation module 104 is further configured to:
and sending the download address of the installation file in the plist file format to the first terminal equipment so that the first terminal equipment installs the target application corresponding to the data packet according to the download address.
In one embodiment, the application installation module 104 is further configured to:
and feeding back the installation state of the target application on the first terminal device to the second terminal device.
In one embodiment, the installation state includes an installation result of the target application, the installation result includes a text result, the text result is test data generated in an installation process of the first terminal device executing the target application, the picture result is an abnormal screenshot of an installation abnormality occurring in an installation process of the first terminal device executing the target application, and the installation abnormality includes at least one of an abnormal popup window, an application installation process flashing back, and an application installation katon.
In another embodiment, as shown in fig. 7, there is provided an application installation apparatus including:
a request receiving module 101, configured to receive an installation request of a target application sent by a first terminal device.
The data acquisition module 102 is configured to acquire a data packet having a first format according to the installation request.
The data parsing module 103 is configured to detect a first format, and parse each file in the data packet to obtain an installation file with a second format when detecting that the first format is different from the second format, where the second format is a data format that is supported for direct installation.
And the application installation module 104 is configured to send the installation file to the first terminal device for installation, so as to install the target application corresponding to the data packet to the first terminal device.
And the direct installation module 105 is configured to send the data packet to the first terminal device for installation when detecting that the first format is the same as the second format, so as to install the target application corresponding to the data packet to the first terminal device.
In one embodiment, a computer apparatus is provided, as shown in FIG. 8, comprising a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement an application installation method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the application installation method. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the application installation apparatus provided herein may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 8. The memory of the computer device may store the various program modules that make up the application installation apparatus. The computer program constituted by the respective program modules causes the processor to execute the steps in the application installation method of the respective embodiments of the present application described in the present specification.
In one embodiment, there is provided an electronic device including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the steps of the application installation method. The step of the application installation method here may be a step in the application installation method of each of the embodiments described above.
In one embodiment, a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the above-described application installation method is provided. The step of the application installation method here may be a step in the application installation method of each of the embodiments described above.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the present application, such changes and modifications are also intended to be within the scope of the present application.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.

Claims (6)

1. An application installation method, comprising:
receiving an installation request of a target application sent by first terminal equipment;
identifying a domain name in the installation request, identifying the equipment type of the first terminal equipment according to the installation request when the domain name is identified as a local area network domain name, and acquiring a data packet with a first format according to the equipment type;
The device type comprises a device type with an operating system being an Android operating system, the first format comprises a obb apk-combined file format, when the second format comprises an apk file format, each file in the data packet with obb apk-combined file format is analyzed to obtain an installation file with the apk file format and a configuration file with obb file format, the installation file with the apk file format is sent to the first terminal device to be installed, and after the installation of the installation file with the apk file format on the first terminal device is monitored, the configuration file corresponding to the installation file with the apk file format is copied to a designated installation path to install the target application corresponding to the data packet to the first terminal device;
and when the first format comprises an ipa file format and the second format comprises a plist file format, the download address of the installation file of the plist file format is sent to the first terminal equipment, so that the first terminal equipment installs the target application corresponding to the data packet according to the download address, and the second format is a data format supported to be directly installed.
2. The application installation method according to claim 1, characterized by further comprising:
and when the first format is detected to be the same as the second format, sending the data packet to the first terminal equipment for installation so as to install the target application corresponding to the data packet to the first terminal equipment.
3. The application installation method according to claim 1, characterized by further comprising:
and feeding back the installation state of the target application on the first terminal device to a second terminal device.
4. The application installation method according to claim 3, wherein the installation state includes an installation result of the target application, the installation result includes a text result or a picture result, the text result is test data generated in an installation process of the first terminal device executing the target application, the picture result is an abnormal screenshot of an installation abnormality occurring in an installation process of the first terminal device executing the target application, and the installation abnormality includes at least one of an abnormal popup window, an application installation process flashing back, and an application installation click.
5. An application installation apparatus, comprising:
The request receiving module is used for receiving an installation request of the target application sent by the first terminal equipment;
the data acquisition module is used for identifying the domain name in the installation request, identifying the equipment type of the first terminal equipment according to the installation request when the domain name is identified as a local area network domain name, and acquiring a data packet with a first format according to the equipment type;
the data analysis module is used for analyzing each file in the data packet of the obb file format combined with the apk when the first format comprises a file format combined with the apk by obb and the second format comprises an apk file format, obtaining an installation file with the apk file format and a configuration file with the obb file format, wherein the device type comprises a device type of which the operating system is an IOS (input/output) operating system, the first format comprises an ipa file format, the second format comprises a plist file format, and the second format is a data format supported for direct installation;
and the application installation module is used for sending the installation file in the apk file format to the first terminal equipment for installation, copying the configuration file corresponding to the installation file in the apk file format to a designated installation path after the installation of the installation file in the apk file format on the first terminal equipment is monitored, so as to install the target application corresponding to the data packet to the first terminal equipment, and sending the download address of the installation file in the plist file format to the first terminal equipment, so that the first terminal equipment installs the target application corresponding to the data packet according to the download address.
6. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application installation method according to any one of claims 1 to 4 when executing the program.
CN202110170307.6A 2021-02-07 2021-02-07 Application installation method and device and electronic equipment Active CN113010187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110170307.6A CN113010187B (en) 2021-02-07 2021-02-07 Application installation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110170307.6A CN113010187B (en) 2021-02-07 2021-02-07 Application installation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113010187A CN113010187A (en) 2021-06-22
CN113010187B true CN113010187B (en) 2024-04-05

Family

ID=76385096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110170307.6A Active CN113010187B (en) 2021-02-07 2021-02-07 Application installation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113010187B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114707123A (en) * 2022-04-22 2022-07-05 北京时代亿信科技股份有限公司 Verification method and device of software installation package and nonvolatile storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063222A (en) * 2014-06-27 2014-09-24 Tcl通讯(宁波)有限公司 Method and system for downloading software by clicking file name of installation file
WO2017036314A1 (en) * 2015-09-02 2017-03-09 北京金山安全软件有限公司 Method and apparatus for transporting game application program on mobile terminal
CN106502746A (en) * 2016-11-02 2017-03-15 网易(杭州)网络有限公司 The packaging method and device of application program
WO2017084555A1 (en) * 2015-11-18 2017-05-26 中国银联股份有限公司 Method for generating and installing trusted application for use in a trusted execution environment
WO2018086017A1 (en) * 2016-11-09 2018-05-17 达闼科技(北京)有限公司 Application opening method, electronic device, and management server
WO2019093755A1 (en) * 2017-11-13 2019-05-16 (주)위즈데이타 System and method for font copyright protection
WO2019201040A1 (en) * 2018-04-16 2019-10-24 深圳思为科技有限公司 File update management method and system and terminal apparatus
CN110502251A (en) * 2019-08-16 2019-11-26 珠海天燕科技有限公司 Using installation method and device
CN110968331A (en) * 2019-11-29 2020-04-07 广州市百果园信息技术有限公司 Method and device for running application program
CN111756682A (en) * 2019-03-26 2020-10-09 厦门雅基软件有限公司 Game data determining method, game data acquiring method and game data acquiring device
WO2020226566A1 (en) * 2019-05-03 2020-11-12 Zmijewski Peter Marek Method and apparatus for operating a mobile application store

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8171470B2 (en) * 2006-08-29 2012-05-01 Adobe Systems Incorporated Software installation and support
KR101795040B1 (en) * 2011-06-21 2017-11-08 삼성전자주식회사 Method for installing applications in a portable terminal
US8922813B2 (en) * 2011-10-21 2014-12-30 Lantronix, Inc. Print server for a portable device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063222A (en) * 2014-06-27 2014-09-24 Tcl通讯(宁波)有限公司 Method and system for downloading software by clicking file name of installation file
WO2017036314A1 (en) * 2015-09-02 2017-03-09 北京金山安全软件有限公司 Method and apparatus for transporting game application program on mobile terminal
WO2017084555A1 (en) * 2015-11-18 2017-05-26 中国银联股份有限公司 Method for generating and installing trusted application for use in a trusted execution environment
CN106502746A (en) * 2016-11-02 2017-03-15 网易(杭州)网络有限公司 The packaging method and device of application program
WO2018086017A1 (en) * 2016-11-09 2018-05-17 达闼科技(北京)有限公司 Application opening method, electronic device, and management server
WO2019093755A1 (en) * 2017-11-13 2019-05-16 (주)위즈데이타 System and method for font copyright protection
WO2019201040A1 (en) * 2018-04-16 2019-10-24 深圳思为科技有限公司 File update management method and system and terminal apparatus
CN111756682A (en) * 2019-03-26 2020-10-09 厦门雅基软件有限公司 Game data determining method, game data acquiring method and game data acquiring device
WO2020226566A1 (en) * 2019-05-03 2020-11-12 Zmijewski Peter Marek Method and apparatus for operating a mobile application store
CN110502251A (en) * 2019-08-16 2019-11-26 珠海天燕科技有限公司 Using installation method and device
CN110968331A (en) * 2019-11-29 2020-04-07 广州市百果园信息技术有限公司 Method and device for running application program

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
Android Applications Scanning: The Guide;Iman Almomani等;《2019 International Conference on Computer and Information Sciences (ICCIS)》;20190516;1-5 *
Android恶意软件检测研究与进展;彭国军;李晶雯;孙润康;肖云倡;;武汉大学学报(理学版);20150228;61(第01期);24-36 *
Android系统应用软件分析与检测系统的研究;张二江;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20170215(第02期);I138-85 *
基于iOS的移动政务办公系统研究与实现;沈玉丽;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20190215(第02期);I138-1175 *
移动智能终端应用安全研究与实现——APK安全性检测研究与实现;邵东;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20170215(第02期);I138-83 *
移动测试服务平台的设计与实现;何露露;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20190115(第01期);I138-938 *
空中电子商务平台的设计与实现;陶宇宁;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20200615(第06期);I138-347 *

Also Published As

Publication number Publication date
CN113010187A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN108829593B (en) Code coverage rate calculation and analysis method, device, equipment and storage medium
CN111651366B (en) SDK test method, device, equipment and storage medium
CN106294102B (en) Application program testing method, client, server and system
US20050195390A1 (en) Method of testing open services gateway initiative service platform and test tool using the method
CN110955899B (en) Safety test method, device, test equipment and medium
CN112906010B (en) Automatic attack testing method and automatic safety testing method based on same
US9392011B2 (en) Web vulnerability repair apparatus, web server, web vulnerability repair method, and program
CN113778879B (en) Interface fuzzy test method and device
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN113010187B (en) Application installation method and device and electronic equipment
CN109241730B (en) Container risk defense method, device, equipment and readable storage medium
US20200349041A1 (en) Cloud simulation and validation system
CN110012082A (en) Embedded device and its upgrade method, controlling terminal
CN104348578A (en) Data processing method and device
US20160140345A1 (en) Information processing device, filtering system, and filtering method
CN112511386B (en) Vehicle-mounted Ethernet test method and system based on robotframe and Ethernet test equipment
CN114020513A (en) Method and device for processing log information
CN112328267A (en) Multi-server installation method and device, terminal and storage medium
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN117272284B (en) Application program management and control system, method, application server and medium
CN117472756A (en) Application system testing method and device, storage medium and computer equipment
CN117251655A (en) Application page display method, device, terminal and storage medium
CN112732569A (en) Program resource occupation measurement and control and corresponding device, equipment and medium
CN117201351A (en) Communication test method, upper computer, device and storage medium
CN116166554A (en) Automated test system, method and 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
GR01 Patent grant
GR01 Patent grant