CN110333874B - iOS system installation packet data acquisition method, device, equipment and medium - Google Patents

iOS system installation packet data acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN110333874B
CN110333874B CN201910495717.0A CN201910495717A CN110333874B CN 110333874 B CN110333874 B CN 110333874B CN 201910495717 A CN201910495717 A CN 201910495717A CN 110333874 B CN110333874 B CN 110333874B
Authority
CN
China
Prior art keywords
ios
application
instruction
installation
target application
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
CN201910495717.0A
Other languages
Chinese (zh)
Other versions
CN110333874A (en
Inventor
章平
彭斌
张通人
严明
周洪斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Chengdu Co Ltd
Original Assignee
Tencent Technology Chengdu 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 Chengdu Co Ltd filed Critical Tencent Technology Chengdu Co Ltd
Priority to CN201910495717.0A priority Critical patent/CN110333874B/en
Publication of CN110333874A publication Critical patent/CN110333874A/en
Application granted granted Critical
Publication of CN110333874B publication Critical patent/CN110333874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention relates to an iOS system installation package data acquisition method, which comprises the following steps: after the iOS equipment is accessed to computer equipment, detecting whether a target application on the iOS equipment is updated or not; if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device operates the installation package to install the target application according to the first trigger instruction; sending a first acquisition instruction to the iOS equipment through a secure shell protocol, and acquiring file information under an installation directory after the installation returned by the iOS equipment according to the first acquisition instruction is completed; sending a second trigger instruction to the iOS device through the secure shell protocol, so that the iOS device starts the target application according to the second trigger instruction; and sending a second acquisition instruction to the iOS device through the secure shell protocol, and acquiring file information under the installation directory after the iOS device finishes starting and returns according to the second acquisition instruction.

Description

iOS system installation packet data acquisition method, device, equipment and medium
Technical Field
The invention relates to the technical field of application program development, in particular to a method, a device, equipment and a medium for collecting iOS system installation package data.
Background
With the continuous development of internet technology, various application programs with rich functions are developed and applied. When an application program is developed by an application program developer, the application program is developed according to a plurality of periods, and each period can generate a new version of installation package. Thus, as the development cycle grows, the installation packages per cycle will grow, with the growth increasing almost linearly as the versions are iterated. If the application installation package is too large, the downloading success rate and the installation conversion rate of the user can be influenced, and the number of newly-entered users is influenced finally.
In order to solve the problems, a long-term data acquisition mechanism for the size of the installation package needs to be established, the change trend of the size of the installation package is concerned, the problem of overlarge installation package is early warned in time, and meanwhile, research and development personnel can conveniently locate the reason which causes the overlarge installation package and which files are redundant resources capable of being optimized. However, because of the System closure, the mobile Operating System (iOS) of apple inc has difficulties in acquiring, installing and acquiring data after installation of an iPhone Application (ipa) package, and in the prior art, the ipa package is manually downloaded, then manually installed and started, and relevant information after installation and start is acquired by a third-party tool.
In the prior art, more manual operations are needed, and data are obtained by means of a third-party tool, so that the operation is very inconvenient; and moreover, the information of the ipa packet is manually acquired, timeliness cannot be achieved, and after the application update version is applied, the related information of the latest ipa packet cannot be acquired in time.
Disclosure of Invention
In view of the foregoing problems in the prior art, an object of the present invention is to provide a method, an apparatus, a device, and a medium for collecting iOS system installation package data, which can automatically download, install, and start an ipa package, and obtain relevant installation information at each stage before, after, and after installation.
In order to solve the above problems, the present invention provides an iOS system installation package data acquisition method, applied to a computer device, comprising:
after the iOS equipment is accessed to the computer equipment, detecting whether a target application on the iOS equipment is updated or not;
if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device operates the installation package to install the target application according to the first trigger instruction;
sending a first acquisition instruction to the iOS device through a secure shell protocol, and acquiring file information under an installation directory after installation returned by the iOS device according to the first acquisition instruction is completed;
sending a second trigger instruction to the iOS device through the secure shell protocol, so that the iOS device starts the target application according to the second trigger instruction;
and sending a second acquisition instruction to the iOS device through the secure shell protocol, and acquiring file information under the installation directory after the iOS device finishes starting and returns according to the second acquisition instruction.
Another aspect of the present invention provides an iOS system installation package data acquisition apparatus, configured in a computer device, including:
the detection module is used for detecting whether the target application on the iOS equipment is updated or not after the iOS equipment is accessed to the computer equipment;
the installation module is used for sending an installation package of the target application and a first trigger instruction to the iOS device when the target application is updated, so that the iOS device operates the installation package to install the target application according to the first trigger instruction;
the first acquisition module is used for sending a first acquisition instruction to the iOS equipment through a secure shell protocol and acquiring file information under an installation directory after installation returned by the iOS equipment according to the first acquisition instruction is completed;
the starting module is used for sending a second trigger instruction to the iOS device through a secure shell protocol so that the iOS device starts the target application according to the second trigger instruction;
and the second acquisition module is used for sending a second acquisition instruction to the iOS equipment through a secure shell protocol and acquiring file information under the installation directory after the iOS equipment is started according to the second acquisition instruction.
Another aspect of the present invention provides a computer apparatus comprising a processor and a memory, wherein the memory has at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which are loaded and executed by the processor to implement the iOS system installation package data collection method as described above.
Another aspect of the present invention provides a computer readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the iOS system installation package data collection method as described above.
Due to the technical scheme, the invention has the following beneficial effects:
(1) according to the iOS system installation package data acquisition method, device, equipment and medium, the iOS package is automatically downloaded, the iOS package is automatically pushed to the connected iOS equipment, the iOS package is automatically installed, the application program is automatically started after the installation is finished, and the relevant installation information of each stage before, after and after the installation is obtained, so that the iOS equipment is automatically installed and started, the size data of the installation package of each stage of games is automatically obtained, the operation of a user is reduced, and the experience of the user is enhanced.
(2) The iOS system installation package data acquisition method, device, equipment and medium can efficiently acquire the size data of installation packages of a large number of games in real time, monitor the size change trend of the installation packages, provide data support for analyzing the change of the installation packages, timely warn that the installation packages are too large, and help to optimize the size of the installation packages.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description of the embodiment or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the invention;
FIG. 2 is a flowchart of a method for collecting iOS system installation package data according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for collecting iOS system installation package data according to another embodiment of the present invention;
fig. 4 is a flowchart of an iOS system installation package data collection method according to another embodiment of the present invention;
FIG. 5 is a diagram illustrating a list of default applications provided by an embodiment of the present invention;
FIG. 6 is a flowchart of a method for iOS system installation package data collection according to another embodiment of the present invention;
fig. 7 is a block diagram of a data acquisition apparatus for an iOS system installation package according to an embodiment of the present invention;
fig. 8 is a block diagram of an iOS system installation package data acquisition apparatus according to another embodiment of the present invention;
fig. 9 is a block diagram of an iOS system installation package data acquisition apparatus according to another embodiment of the present invention;
fig. 10 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or device that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Referring to fig. 1 of the specification, a schematic diagram of an implementation environment provided by an embodiment of the present invention is shown, and as shown in fig. 1, the implementation environment may include at least a server 110, a computer device 120, and a terminal device 130.
The server 110 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 110 may establish a communication connection with the computer device 120 through a wireless or wired network.
The computer device 120 may be a laptop portable computer or a desktop computer, etc. The computer device 120 may establish a communication connection with the terminal device 130 in a wired or wireless manner.
The terminal device 130 may be a handheld device, and includes a mobile phone, a tablet computer, an e-book reader, a motion Picture Experts Group Audio Layer III (MP 3) player, a motion Picture Experts Group Audio Layer IV (MP 4) player, and so on. The terminal device 130 is installed with an application program provided by a service provider to a user.
In this embodiment of the present invention, the server 110 may be an apple backend server, the terminal device 130 may be an iOS device, such as an apple mobile phone (iPhone), an apple tablet computer (iPad), an apple multifunctional digital multimedia player (iPod), and the like, and the computer device 120 and the terminal device 130 may establish a communication connection through a Universal Serial Bus (usb).
The iOS system installation packet data collection method provided by the embodiment of the present invention is described below, and the method may be applied to a computer device, and for a computer device that needs to perform iOS system installation packet data collection, the iOS system installation packet data collection function provided by the method of the embodiment of the present invention may be integrated on the computer device by a script program, or may be run on the computer device in the form of a Software Development Kit (sdk).
Referring to the specification and fig. 2, a flow of an iOS system installation package data collection method according to an embodiment of the present invention is shown. As shown in fig. 2, the method may include the steps of:
s201: and after the iOS device is accessed into the computer device, detecting whether a target application on the iOS device is updated.
S202: and if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device operates the installation package to install the target application according to the first trigger instruction.
Correspondingly, after the iOS device finishes installing the target application, installation completion information is returned.
S203: and sending a first acquisition instruction to the iOS device through a secure shell protocol, and acquiring file information under an installation directory after the installation returned by the iOS device according to the first acquisition instruction is completed.
S204: and sending a second trigger instruction to the iOS device through the secure shell protocol so that the iOS device starts the target application according to the second trigger instruction.
Correspondingly, after the iOS device finishes starting the target application, starting completion information is returned.
S205: and sending a second acquisition instruction to the iOS device through the secure shell protocol, and acquiring file information under the installation directory after the iOS device finishes starting and returns according to the second acquisition instruction.
In summary, according to the method, the device, the equipment and the medium for collecting the installation package data of the iOS system, the ipa package is automatically installed by automatically pushing the ipa package to the connected iOS equipment, the application program is automatically started after the installation is finished, and the relevant installation information of each stage after the installation and after the start is obtained, so that the automatic installation and the start of the application program of the iOS equipment are realized, the size data of the installation package of each stage of the game is automatically obtained, the operation of a user is reduced, and the experience of the user is enhanced.
Referring to the specification and fig. 3, a flow of an iOS system installation package data collecting method according to another embodiment of the present invention is shown. As shown in fig. 3, the method may include:
s301: and acquiring application updating information based on the iOS system.
In the embodiment of the invention, the uniform resource locator for acquiring the application update information of the iOS system can be found by analyzing the request and response Protocol for acquiring the application update information of the iTunes client, the request of the Hyper Text Transfer Protocol over Secure Socket Layer (https) is sent by simulation, and the returned request result is analyzed, processed and stored to acquire the application update information of the iOS system. Specifically, a time interval may be set in advance, and the application update information is acquired every time the preset time interval elapses. In one possible real-time example, the application update information based on the iOS system may also be obtained when detecting that the iOS device is connected to the computer device.
In a specific embodiment, as shown in fig. 4, the obtaining of the application update information based on the iOS system may include:
s401: and capturing a secure hypertext transfer protocol request sent by the iTunes client to the server, wherein the secure hypertext transfer protocol request is used for acquiring application update information.
S402: and the simulated iTunes client sends the request of the secure hypertext transfer protocol to the server.
Correspondingly, after receiving the secure hypertext transfer protocol request, the server acquires and returns application update information according to the secure hypertext transfer protocol request.
S403: and acquiring application updating information returned by the server.
The application update information may include an updated application name and corresponding ipa package information thereof, and the updated application may include a newly added application and a version-updated application.
S302: and updating the preset application list according to the application updating information.
In this embodiment of the present invention, as shown in fig. 5, the preset application list may include information such as a correspondingly stored application name, a latest version of an ipa package name, and a version number. The preset application list may be stored in a database and may be updated according to the application update information.
Specifically, the preset application list is updated once application update information of the iOS system is obtained. The updating may include: and adding the newly added application information and the corresponding ipa packet information into the preset application list, and modifying the name and the version number of the ipa packet of the application with the updated version into the name and the version number of the latest version. In a possible embodiment, the preset application list may also be generated and returned for the server according to the application update information.
S303: and downloading the installation package of the application according to the application updating information.
In the embodiment of the invention, the apple background server is considered to have authentication processing on a request for downloading hypertext Transfer Protocol (http), and if the authentication is not passed, the ipa packet cannot be downloaded to the local. The downloading authentication of the apple is complicated, and it is generally difficult to construct an effective http request to pass the authentication of the apple background server. While a large number of iOS system applications are available on the apple third-party application assistant platform (such as itools, PP assistant, etc.), the ipa bag on these platforms is the same as that on the apple app store, and there is no authentication limitation. Therefore, the download link of the ipa package of the iOS system can be obtained from the third party application assistant platform, for example, by grabbing an http request of the PP assistant, the download link of the ipa package can be obtained.
In a specific embodiment, as shown in fig. 6, the application update information may include installation package information; the downloading of the installation package of the application according to the application update information may include:
s601: and capturing a hypertext transfer protocol request sent to a server by the application assistant client according to the installation package information, wherein the hypertext transfer protocol request is used for acquiring a download link of the installation package.
The installation package information may include an ipa package name, and the download link of the installation package corresponding to the ipa package name may be acquired by the crawling application assistant client according to the ipa package name.
S602: the simulated application helper client sends the hypertext transfer protocol request to the server.
Correspondingly, after receiving the hypertext transfer protocol request, the server acquires and returns an installation package download link according to the hypertext transfer protocol request.
S603: and acquiring an installation package downloading link returned by the server.
S604: and downloading the installation package of the application according to the installation package downloading link.
In the embodiment of the invention, the installation package of the application can be downloaded according to the download link through a curl command. After the application update information is acquired, all ipa packets with updated applications can be downloaded according to the installation packet information and stored locally. Since there may be more than one application updated in the application update information, the flow of fig. 6 is not usually executed only once. For example, multiple applications may be updated over a period of time, which may correspondingly cause the process to be executed multiple times.
It should be noted that, in a possible embodiment, the step S303: downloading the installation package of the application according to the application update information, and when detecting that the target application on the iOS device is updated after the iOS device is accessed to the computer device, downloading the ipa package of the target application according to the ipa package information of the target application recorded in the preset application list and storing the ipa package of the target application to the local.
S304: and after the iOS device is accessed into the computer device, detecting whether a target application on the iOS device is updated.
It is to be understood that data transfer between the iOS device and the computer device can only take place when the iOS device is normally connected to the computer device.
In this embodiment of the present invention, the iOS device may access the computer device through a usb, the target application is installed on the iOS device, and the target application may be various applications provided by a service provider to a user, including a social contact application, an instant messaging application, a payment application, a game application, a reading application, and the like.
In a possible embodiment, the detecting whether the target application on the iOS device is updated after the iOS device accesses the computer device may include:
establishing communication connection with the iOS equipment by utilizing a third-party open source library;
sending a third acquisition instruction to the iOS device through an interface of the third-party open source library, and acquiring target application information returned by the iOS device according to the third acquisition instruction;
and comparing the target application information with application information in a preset application list to determine whether the target application is updated.
The third-party open source library may be a pymobiledevice library, and the pymobiledevice library is a python implementation of the libmobiledevice library, and may be used to connect the iOS device and provide interfaces for interacting with part of the iOS system, such as installing an ipa package, searching an installed application list, retrieving relevant application information, uninstalling an application, and the like.
In the embodiment of the present invention, the target application may be a specific application, or may be a set of a plurality of predetermined applications. The target application information may include an application name and ipa packet information corresponding to the application name, and whether the target application is updated or not may be determined by comparing the application name and the ipa packet information corresponding to the application name with the application information in the preset application list.
In a specific embodiment, the target application may include all applications installed on the iOS device, and when detecting whether the target application has an update, the target application may first obtain application names of all applications installed on the iOS device by sending an application installation list obtaining instruction to the iOS device, then obtain ipa package information of each application by sending an application ipa package information obtaining instruction to the iOS device, and finally determine whether the target application has an update by comparing the application name of each application and the corresponding ipa package information with the application information in the preset application list. And continuously executing the following steps for the target application with the update, automatically installing and starting the application, and acquiring the file information under the installation directory after the installation and the start are finished.
S305: and if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device operates the installation package to install the target application according to the first trigger instruction.
Correspondingly, after the iOS device finishes installing the target application, installation completion information is returned.
In this embodiment of the present invention, if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device runs the installation package according to the first trigger instruction to install the target application, may include:
and sending the installation package of the target application and a first trigger instruction to the iOS device through an interface of the third-party open source library.
The third-party open source library can be a pymobiledevice library, the first trigger instruction is an installation instruction, the first trigger instruction comprises an ipa package name of the target application, the installation package of the target application is a set of files capable of being automatically decompressed and comprises all files installed by the application, the installation package is operated, all files of the application can be released to a hard disk, and the work of modifying a registry, modifying system settings, creating shortcuts and the like is completed. And after receiving the first trigger instruction, the iOS device runs the ipa package corresponding to the ipa package name and installs the target application.
S306: and sending a first acquisition instruction to the iOS equipment through a secure shell protocol, and acquiring file information under an installation directory after the installation returned by the iOS equipment according to the first acquisition instruction is completed.
In this embodiment of the present invention, after receiving the first obtaining instruction, the iOS device recursively lists sizes of all files/directories under the application installation directory after installation is completed, and displays the sizes in a sequence by using Kilobytes (KB) as a unit. The method can also comprise the step of saving the file information in the installation directory after the installation is finished in a database.
In this embodiment of the present invention, before sending the first obtaining instruction to the iOS device through the secure shell protocol to obtain the file information under the installation directory after the installation returned by the iOS device according to the first obtaining instruction is completed, the method may further include:
and establishing communication connection with the iOS device by using the usbmuxd service deployed on the computer device.
In the embodiment of the invention, because the iOS bottom operating system is a unix-like system, the iOS bottom operating system can be directly connected through a Secure Shell (ssh) protocol, just like a common linux server connected by using an ssh protocol. The ssh protocol is a security protocol established on the basis of an application layer, and is a relatively reliable protocol for providing security for telnet sessions and other network services at present. When the iOS device is connected, shell commands can be easily executed to interact with the iOS underlying operating system.
Since the iOS device system has the usbmux service, the service can realize the conversion from the usb to the Transmission Control Protocol (TCP), and can map the usb port to the native TCP port based on the Unix Domain Socket, so that the application on the iOS device and the application on the computer device can perform TCP communication through the Socket only by realizing one usbmux service on the computer device and specifying the port mapping relationship. Therefore, the usbmuxd service is deployed on the computer device, and after the computer is connected with the iOS device through the usb, the computer device can be connected with the iOS device bottom layer system through the ssh protocol, and interacts with the iOS system by executing the shell command.
S307: and sending a second trigger instruction to the iOS device through the secure shell protocol so that the iOS device starts the target application according to the second trigger instruction.
Correspondingly, after the iOS device finishes starting the target application, the iOS device returns starting completion information.
In this embodiment of the present invention, the second trigger instruction is a start instruction, the second trigger instruction includes an ipa package name of a target application, and the iOS device starts the target application according to the ipa package name after receiving the second trigger instruction.
S308: and sending a second acquisition instruction to the iOS device through the secure shell protocol, and acquiring file information under the installation directory after the iOS device finishes starting and returns according to the second acquisition instruction.
In this embodiment of the present invention, after receiving the second obtaining instruction, the iOS device recursively lists sizes of all files/directories under the application installation directory after the start is completed, and displays the sizes in a sequence by using Kilobytes (KB) as a unit. The method can also comprise the step of saving the file information in the installation directory after the startup is finished in a database.
Referring to fig. 7 in the specification, an iOS system installation package data collecting apparatus 700 provided in a computer device according to an embodiment of the present invention is shown, where the apparatus 700 may include:
a detection module 710, configured to detect whether a target application on the iOS device is updated after the iOS device is accessed to the computer device;
an installation module 720, configured to send an installation package of the target application and a first trigger instruction to the iOS device when the target application is updated, so that the iOS device runs the installation package according to the first trigger instruction to install the target application;
a first obtaining module 730, configured to send a first obtaining instruction to the iOS device through a secure shell protocol, and obtain file information under an installation directory after installation returned by the iOS device according to the first obtaining instruction is completed;
a starting module 740, configured to send a second trigger instruction to the iOS device through the secure shell protocol, so that the iOS device starts the target application according to the second trigger instruction;
and a second obtaining module 750, configured to send a second obtaining instruction to the iOS device through the secure shell protocol, and obtain file information under an installation directory after the iOS device completes starting returned according to the second obtaining instruction.
In one possible embodiment, the apparatus 700 may further include:
a third obtaining module 760, configured to obtain application update information based on the iOS system;
an updating module 770, configured to update the preset application list according to the application update information;
and a downloading module 780, configured to download the installation package of the application according to the application update information.
In one possible embodiment, as shown in fig. 8, the third obtaining module 760 may include:
a first grabbing unit 761, configured to grab a secure hypertext transfer protocol request sent by an iTunes client to a server, where the secure hypertext transfer protocol request is used to obtain application update information;
a first sending unit 762, configured to simulate an iTunes client to send the secure hypertext transfer protocol request to a server;
a first obtaining unit 763, configured to obtain application update information returned by the server.
In one possible embodiment, as shown in fig. 9, the download module 780 may include:
a second grabbing unit 781, configured to grab, according to the installation package information, a hypertext transfer protocol request sent by the application assistant client to the server, where the hypertext transfer protocol request is used to obtain a download link of the installation package;
a second sending unit 782, configured to simulate the application helper client sending the hypertext transfer protocol request to the server;
a second obtaining unit 783, configured to obtain an installation package download link returned by the server;
and a downloading unit 784 configured to download the installation package of the application according to the installation package download link.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The embodiment of the present invention further provides a computer device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the iOS system installation package data collection method provided in the foregoing method embodiment. Alternatively, the at least one instruction, the at least one program, the set of codes, or the set of instructions may be loaded and executed by the processor to implement the functions of the modules/units in the above-described apparatus embodiments.
Optionally, in the embodiment of the present invention, the computer device may be a desktop computer, a notebook, a palm computer, a cloud server, and the like.
In a specific embodiment, as shown in fig. 10, a schematic structural diagram of a computer device provided in an embodiment of the present invention is shown. The computer device 1000 may include components such as memory 1010 including one or more computer-readable storage media, a processor 1020 including one or more processing cores, an input unit 1030, a display unit 1040, and a power supply 1050. Those skilled in the art will appreciate that the terminal architecture shown in fig. 10 is not intended to be limiting of the computer device 1000, and may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components.
The memory 1010 may be used to store software programs and modules, and the processor 1020 executes various functional applications and data processing by operating or executing the software programs and modules stored in the memory 1010 and calling data stored in the memory 1010. The memory 1010 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 1010 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device. Accordingly, the memory 1010 may also include a memory controller to provide the processor 1020 with access to the memory 1010.
The processor 1020 is a control center of the computer device 1000, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device 1000 and processes data by operating or executing software programs and/or modules stored in the memory 1010 and calling data stored in the memory 1010, thereby integrally monitoring the computer device 1000. The Processor 1020 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 1030 may include an image input device 1031 and other input devices 1032. The image input device 1031 may be a camera or a photoelectric scanning device. The input unit 1030 may include other input devices 1032 in addition to the image input device 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by or provided to a user and various graphical user interfaces of a terminal, which may be composed of graphics, text, icons, video, and any combination thereof. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The computer device 1000 further comprises a power supply 1050 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 1020 via a power management system, such that the power management system may manage charging, discharging, and power consumption. Power supply 1050 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
It should be noted that, although not shown, the computer device 1000 may further include a bluetooth module, etc., which is not described herein.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the iOS system installation package data collection method provided in the foregoing method embodiment.
The modules or units integrated by the computer device may be stored in a computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
In summary, according to the method, the device, the equipment and the medium for collecting the installation package data of the iOS system, the ipa package is automatically downloaded, the ipa package is automatically pushed to the connected iOS equipment, the ipa package is automatically installed, the application program is automatically started after the installation is completed, and the relevant installation information of each stage before, after and after the installation is obtained, so that the automatic installation and the starting of the application program of the iOS equipment are realized, the size data of the installation package of the game of each stage is automatically obtained, the operation of a user is reduced, and the experience of the user is enhanced.
By adopting the method, the device, the equipment and the medium for acquiring the iOS system installation package data, the size data of installation packages of a large number of games can be efficiently acquired in real time, the size change trend of the installation packages is monitored, data support is provided for analyzing the change of the installation packages, the oversize installation packages are timely warned, and the optimization of the size of the installation packages is facilitated.
It should be noted that: the sequence of the above embodiments of the present invention is only for description, and does not represent the advantages or disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device, terminal and server embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
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 only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, but rather as the subject matter of the invention is to be construed in all aspects and as broadly as possible, and all changes, equivalents and modifications that fall within the true spirit and scope of the invention are therefore intended to be embraced therein.

Claims (10)

1. An iOS system installation package data acquisition method is applied to computer equipment and is characterized by comprising the following steps:
after the iOS equipment is accessed to the computer equipment, detecting whether a target application on the iOS equipment is updated or not;
if the target application is updated, sending an installation package of the target application and a first trigger instruction to the iOS device, so that the iOS device operates the installation package to install the target application according to the first trigger instruction;
sending a first acquisition instruction to the iOS device through a secure shell protocol, and acquiring file information under an installation directory after installation returned by the iOS device according to the first acquisition instruction is completed;
sending a second trigger instruction to the iOS device through the secure shell protocol, so that the iOS device starts the target application according to the second trigger instruction;
and sending a second acquisition instruction to the iOS device through the secure shell protocol, and acquiring file information under the installation directory after the iOS device finishes starting and returns according to the second acquisition instruction.
2. The method of claim 1, wherein detecting whether a target application on the iOS device is updated after the iOS device is connected to the computer device comprises:
establishing communication connection with the iOS equipment by utilizing a third-party open source library;
sending a third acquisition instruction to the iOS device through an interface of the third-party open source library, and acquiring target application information returned by the iOS device according to the third acquisition instruction;
and comparing the target application information with the application information in a preset application list to determine whether the target application is updated.
3. The method of claim 2, wherein the sending an installation package of the target application and a first trigger instruction to the iOS device if the target application is updated, so that the iOS device runs the installation package according to the first trigger instruction to install the target application comprises:
and sending the installation package of the target application and a first trigger instruction to the iOS device through an interface of the third-party open source library.
4. The method according to any one of claims 1 to 3, wherein before sending the first obtaining instruction to the iOS device through a secure shell protocol and obtaining the file information under the installation directory after the installation returned by the iOS device according to the first obtaining instruction, the method further comprises:
and establishing communication connection with the iOS device by utilizing the usbmux d service deployed on the computer device.
5. The method of claim 2, further comprising:
acquiring application updating information based on the iOS system;
updating the preset application list according to the application updating information;
and downloading the installation package of the application according to the application updating information.
6. The method of claim 5, wherein obtaining the iOS system based application update information comprises:
capturing a secure hypertext transfer protocol request sent by an iTunes client to a server, wherein the secure hypertext transfer protocol request is used for acquiring application update information;
simulating an iTunes client to send the secure hypertext transfer protocol request to a server;
and acquiring application updating information returned by the server.
7. The method according to claim 5 or 6, characterized in that:
the application update information comprises installation package information;
the downloading of the installation package of the application according to the application update information includes:
capturing a hypertext transfer protocol request sent by the application assistant client to a server according to the installation package information, wherein the hypertext transfer protocol request is used for acquiring a download link of an installation package;
the simulation application helper client sends the hypertext transfer protocol request to a server;
acquiring an installation package downloading link returned by a server;
and downloading the installation package of the application according to the installation package downloading link.
8. The utility model provides an iOS system installation package data acquisition device, sets up in computer equipment which characterized in that includes:
the detection module is used for detecting whether the target application on the iOS equipment is updated or not after the iOS equipment is accessed to the computer equipment;
the installation module is used for sending an installation package of the target application and a first trigger instruction to the iOS device when the target application is updated, so that the iOS device operates the installation package to install the target application according to the first trigger instruction;
the first acquisition module is used for sending a first acquisition instruction to the iOS equipment through a secure shell protocol and acquiring file information under an installation directory after installation returned by the iOS equipment according to the first acquisition instruction is completed;
the starting module is used for sending a second trigger instruction to the iOS device through the secure shell protocol so that the iOS device starts the target application according to the second trigger instruction;
and the second acquisition module is used for sending a second acquisition instruction to the iOS equipment through the secure shell protocol and acquiring file information under the installation directory after the iOS equipment is started according to the second acquisition instruction.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the iOS system installation package data collection method of any one of claims 1-7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the iOS system installation package data collection method according to any one of claims 1 to 7.
CN201910495717.0A 2019-06-10 2019-06-10 iOS system installation packet data acquisition method, device, equipment and medium Active CN110333874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910495717.0A CN110333874B (en) 2019-06-10 2019-06-10 iOS system installation packet data acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910495717.0A CN110333874B (en) 2019-06-10 2019-06-10 iOS system installation packet data acquisition method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110333874A CN110333874A (en) 2019-10-15
CN110333874B true CN110333874B (en) 2022-09-23

Family

ID=68140869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910495717.0A Active CN110333874B (en) 2019-06-10 2019-06-10 iOS system installation packet data acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110333874B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142892B (en) * 2019-12-30 2023-06-20 飞天诚信科技股份有限公司 ios application program automatic installation method and communication device
CN114329360B (en) * 2022-01-07 2022-07-15 每日互动股份有限公司 Method, electronic device and medium for fuzzification pkg
CN116541253B (en) * 2023-07-07 2024-03-26 深圳软牛科技有限公司 Application detection method, system, terminal equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133693A (en) * 2014-07-10 2014-11-05 腾讯科技(深圳)有限公司 Installation state detection method, device and terminal
CN104317607A (en) * 2014-09-27 2015-01-28 昆明钢铁集团有限责任公司 Enterprise In-house IOS APP automatic update system and method
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device
CN108399071A (en) * 2018-01-19 2018-08-14 五八有限公司 Processing method, device, equipment and the storage medium of application program installation kit size
CN108563478A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 Skin strategy is changed in a kind of App startup

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516738A (en) * 2014-12-15 2015-04-15 北京金和软件股份有限公司 Integrated implementing method for development and release of APP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133693A (en) * 2014-07-10 2014-11-05 腾讯科技(深圳)有限公司 Installation state detection method, device and terminal
CN104317607A (en) * 2014-09-27 2015-01-28 昆明钢铁集团有限责任公司 Enterprise In-house IOS APP automatic update system and method
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device
CN108399071A (en) * 2018-01-19 2018-08-14 五八有限公司 Processing method, device, equipment and the storage medium of application program installation kit size
CN108563478A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 Skin strategy is changed in a kind of App startup

Also Published As

Publication number Publication date
CN110333874A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110333874B (en) iOS system installation packet data acquisition method, device, equipment and medium
CN105378655B (en) Method for the installation of the driver of target and the equipment being not present
CN102752369B (en) The supplying method of TV applications service and virtual content service platform
CN109857403B (en) Page updating method and device, page processing method and device
CN109308241B (en) Method and device for monitoring starting process of application program, terminal equipment and storage medium
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
EP2323034A2 (en) Information-processing device, communication system, program, and information-processing method
CN102209111A (en) Open cross-platform system for cloud computing mobile network terminal equipment
CN105408863A (en) Endpoint data centers of different tenancy sets
CN108039963B (en) Container configuration method and device and storage medium
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
CN107370804B (en) Software application processing method and device
WO2018077041A1 (en) Method and apparatus for running application
CN105550252A (en) File positioning method and device and electronic equipment
CN106598678A (en) Method and device for supplying application installation packages to terminal equipment
US20150370616A1 (en) Method and system for recommending computer products on the basis of observed usage patterns of a computational device of known configuration
WO2019007016A1 (en) Scaffolding management method and apparatus, and electronic device
US20130054760A1 (en) Data upload method using shortcut
CN103685515A (en) Method and system for downloading application
CN110968331A (en) Method and device for running application program
CN112905209A (en) Application program updating method and device
CN111124612B (en) Container mirror image upgrading method and device, electronic equipment and storage medium
CN112162676A (en) Control method and device of handheld intelligent terminal, electronic equipment and storage medium
CN107741895B (en) Server management method, device and equipment
CN107943687B (en) Equipment sharing method, device, server 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