Program startup method, device, system, equipment and storage medium

By detecting and parsing the version update of the target data packet, loading the corresponding target program and host program data to start the target program, solving the abnormal problem when starting the target program from the background after the version update, and achieving stable startup and operation.

CN112698884BActive Publication Date: 2025-02-11BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011615102.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2025-02-11
Estimated Expiration
2041-02-11

AI Technical Summary

Technical Problem

After the package version of the host program or the package version of the target program is updated, when the target program is started from the background, an exception or a direct exit often occurs.

Method used

By detecting the startup instruction, determine whether the target packet version has been updated, parse the target packet to obtain the data of the target program and the host program, and load the corresponding data to start the target program.

Benefits of technology

It resolves the exception or direct exit problem that occurs when starting the target program from the background after the version update, ensuring that the target program can be started and run stably.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112698884B_ABST
    Figure CN112698884B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a program startup method, device, system, equipment and storage medium, which at least solves the problem that after the version of the host program package is updated and / or the version of the target program package is updated, the user starts the target program through the background and prompts an abnormality or directly exits the target program. The method includes: in response to a detected startup instruction, determining that the version of the target data packet has been updated; the startup instruction is used to trigger the startup of the target program from the background; the target data packet includes the data of the target program and the data of the host program of the target program; the operation of the target program does not require the execution of an installation operation; the target data packet is parsed to obtain the data of the target program and the data of the host program; the data of the target program and the data corresponding to the target program in the data of the host program are loaded, and the target program is started.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a program startup method, device, system, equipment and storage medium. Background Art

[0002] The target program is a new form of Internet application that can be opened in the host program and run independently. Users do not need to worry about the installation of the target program, and the target program can be started and run independently through the host program.

[0003] Currently, after a terminal device starts and independently runs a target program through a host program, it switches the target program to background operation in response to a switching instruction. After the version of the host program's program package has been updated and / or the version of the target program's program package has been updated, the terminal device responds to the startup instruction and often encounters an abnormal prompt and / or directly exits the target program during the process of starting the target program in the background. Summary of the invention

[0004] The present disclosure provides a program startup method, apparatus, system, device and storage medium to at least solve the problem of abnormal prompt and / or direct exit of the target program during the process of starting the target program from the background after the version of the host program package has been updated and / or the version of the target program package has been updated.

[0005] The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of the present disclosure, an embodiment of the present disclosure provides a program startup method, the method comprising: in response to a detected startup instruction, determining that the version of a target data packet has been updated; the startup instruction is used to trigger the startup of a target program from the background; the target data packet includes data of the target program and data of a host program of the target program; the target program is run without performing an installation operation; the target data packet is parsed to obtain data of the target program and data of the host program; the data of the target program and the data corresponding to the target program in the data of the host program are loaded, and the target program is started.

[0007] The program startup method provided by the present disclosure, in the process of starting the target program from the background, when it is determined that the target data packet version (such as: the program package version of the host program or the program package of the target program) has been updated, the target data packet update version is parsed to obtain the data of the target program (such as: the applet) and the data of the host program, and the data of the target program and the data corresponding to the target program in the data of the host program are loaded, and the loaded data is used to start the target program. Since the target program is run in the host program and the computer device through the data corresponding to the target program in the data of the host program (such as: the basic library corresponding to the target program), and the basic library encapsulates the functions of the host program, starting the target program with the data of the target program in the updated target data packet can solve the problem of abnormal prompts and / or direct exit of the target program in the process of starting the target program from the background after the version of the program package of the host program has been updated and / or the version of the program package of the target program has been updated.

[0008] In a possible implementation, the above-mentioned determining that the version of the target data packet has been updated includes: in a case where a version update identifier of the target data packet is acquired, determining that the version of the target data packet has been updated.

[0009] In another possible implementation, the above-mentioned obtaining of the version update identifier of the target data packet includes: obtaining the version update identifier of the target data packet from an application manager in a computer device, or obtaining the version update identifier of the target data packet from a server of the target data packet; the updated version of the target data packet originates from the server.

[0010] In another possible implementation, the above determination that the target data packet version has been updated includes: obtaining the creation time of the main process of the target program and the update time of the target data packet; when the creation time is earlier than the update time, determining that the target data packet version has been updated.

[0011] In another possible implementation, the data of the target program includes: at least one of the target program package, the target program's network view component, or the target program's paging display control; the data of the host program corresponding to the target program includes: the basic library corresponding to the target program and / or the interpreter of the target program.

[0012] In another possible implementation, the computer device includes a first storage area and a second storage area; the determining that the target data packet version has been updated includes: determining that the target data packet version stored in the first storage area has been updated; the loading of the target program data and the host program data corresponding to the target program, and starting the target program, includes: loading the target program data and the host program data corresponding to the target program into the second storage area, and starting the target program.

[0013] According to the second aspect of the present disclosure, an embodiment of the present disclosure provides a program startup device, which includes: a determination module, configured to determine that the target data packet version has been updated in response to a detected startup instruction; the startup instruction is used to trigger the startup of the target program from the background; the target data packet includes the data of the target program and the data of the host program of the target program; the target program is run without performing an installation operation; a parsing module, configured to parse the target data packet to obtain the data of the target program and the data of the host program; a startup module, configured to load the data of the target program and the data corresponding to the target program in the data of the host program, and start the target program.

[0014] Optionally, the determination module is specifically configured to: determine that the version of the target data packet has been updated when a version update identifier of the target data packet is obtained.

[0015] Optionally, the program startup device also includes an acquisition module, which is configured to: acquire a version update identifier of the target data packet from an application manager in the computer device, or acquire a version update identifier of the target data packet from a server of the target data packet; the updated version of the target data packet originates from the server.

[0016] Optionally, the acquisition module is configured to: obtain the creation time of the main process of the target program and the update time of the target data packet; the determination module is specifically configured to determine that the target data packet version has been updated when the creation time is earlier than the update time.

[0017] Optionally, the data of the target program include: at least one of the target program package, the target program network view component or the target program paging display control; the data of the host program corresponding to the target program include: the basic library corresponding to the target program and / or the interpreter of the target program.

[0018] Optionally, the device includes a first storage area and a second storage area; the determination module is specifically configured to: determine that the target data packet version stored in the first storage area has been updated; the startup module is specifically configured to: load the data of the target program and the data of the host program corresponding to the target program into the second storage area, and start the target program.

[0019] According to a third aspect of the present disclosure, a computer device is provided, comprising: a processor; and a memory for storing processor executable instructions, wherein the processor is configured to execute the instructions to implement the program startup method shown in any possible implementation of the first aspect.

[0020] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a computer device, the computer device is enabled to execute a program startup method as shown in any possible implementation of the first aspect.

[0021] According to the fifth aspect of the present disclosure, a computer program product is provided, which can be directly loaded into the internal memory of a computer device and contains software code. After being loaded and executed by the computer device, the computer program can implement the program startup method shown in any possible implementation method of the first aspect.

[0022] According to a sixth aspect of the present disclosure, a system is provided, including a terminal device and / or a server. The terminal device can execute the program startup method as shown in any possible implementation of the first aspect.

[0023] Any of the program startup devices, systems, computer equipment, computer-readable storage media or computer program products provided above, used to execute the corresponding methods provided above, can at least solve the problem of abnormal prompts and / or direct exit from the target program during the process of starting the target program from the background after the version of the host program package and / or the version of the target program package have been updated.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0026] Figure 1 is a schematic diagram showing the structure of a system to which the present disclosure is applicable according to an exemplary embodiment;

[0027] Figure 2 is a flowchart of a program startup method according to an exemplary embodiment;

[0028] Figure 3 is a block diagram of a program starting device according to an exemplary embodiment;

[0029] Figure 4 The invention is a block diagram of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0030] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0031] It should be noted that, in the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0033] In the embodiments of the present disclosure, "at least one" means one or more, and "plurality" means two or more.

[0034] In the embodiments of the present disclosure, "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0035] First, the application scenarios of the embodiments of the present disclosure are introduced.

[0036] The program startup method of the embodiment of the present disclosure can be applied to the startup scenario of the target program. The startup steps of the target program include:

[0037] Phase 1: Obtaining the target program package and executing the loading step of the target program.

[0038] In one example, phase one includes: obtaining a program package of a target program, executing data loading steps of the target program (for example, loading a program package of the target program, loading an interpreter, loading a basic library, loading a network view component, or loading a paging display control, etc.), displaying a startup window, creating an application process, etc.

[0039] Phase 2: Starting the target program by loading data.

[0040] In an example, phase 2 includes: creating an application object, starting the main process, creating a main activity, rendering a view, performing layout (such as onLayout), performing drawing (such as onDraw), etc.

[0041] Currently, after a computer device starts and independently runs a target program through a host program, it switches the target program to background operation in response to a switching instruction. After the version of the program package of the host program has been updated and / or the version of the program package of the target program has been updated, the computer device responds to the startup instruction and often prompts an exception and / or directly exits the target program during the process of starting the target program through the background. However, when the computer device starts the target program through the host program, the above problem does not occur. Through testing, it was found that after the version of the program package of the host program has been updated and / or the version of the program package of the target program has been updated, starting the target program through the background will directly skip the above stage one and start execution from the above stage two.

[0042] In order to solve the above problems, the embodiment of the present disclosure provides a program startup method, in which, when a computer device detects a startup instruction for triggering the startup of a target program from the background, if the computer device determines that the version of the target data packet has been updated, the steps of the above-mentioned stage one are executed, wherein the target data packet includes the program package of the target program and the program package of the host program of the target program. Afterwards, the computer device executes the steps of the above-mentioned stage two to start the target program. In this way, at least the problem of abnormal prompt and / or direct exit of the target program during the process of starting the target program from the background after the version of the program package of the host program and / or the version of the program package of the target program has been updated is solved.

[0043] Next, the implementation environment of the embodiment of the present disclosure is introduced.

[0044] like Figure 1 The system architecture diagram applicable to the embodiments of the present disclosure is shown in FIG. Figure 1 The system shown includes a server 10-1 and at least one terminal device 10-2 ( Figure 1 The server 10-1 communicates with the terminal device 10-2 via a network.

[0045] The server 10 - 1 may be a single server, or may be a server cluster consisting of multiple servers, which is not limited in the present disclosure.

[0046] The terminal device 10-2 includes but is not limited to smart mobile terminals, smart home devices, wearable devices, smart medical devices, personal computers (PCs), etc. Among them, smart mobile devices may include mobile phones, tablet computers, laptops, personal digital assistants (PDAs), Internet cars, etc. Smart home devices may include smart home appliances, such as smart TVs, smart speakers, etc. Wearable devices may include smart watches, smart glasses, smart bracelets, virtual reality devices, augmented reality devices, mixed reality devices (i.e., devices that can support virtual reality and augmented reality), etc., and the present disclosure does not limit this.

[0047] In the embodiment of the present disclosure, the server 10-1 includes the latest version of the program package of the host program and the latest version of the program package of the target program, and the terminal device 10-2 includes the program package of the host program and the program package of the target program. The target program runs on the terminal device 10-2 relying on the host program, and the environment in which the target program runs is provided by the host program. The terminal device 10-2 can obtain the latest version of the program package of the host program and the latest version of the program package of the target program from the server 10-1.

[0048] It is understandable that the program package of the host program and the program package of the target program in the embodiments of the present disclosure may be integrated into one data package (such as the above-mentioned target data package), or may be separated into two program packages, which is not limited in the present disclosure. The following embodiments are all described by taking the example that the program package of the host program and the program package of the target program are both included in the target data package.

[0049] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0050] In one embodiment, the terminal device starts the target program while running the host program. Afterwards, the terminal device switches the target program to the background in response to the user's operation. While the target program is running in the background, the terminal device updates the stored target data packet. In this scenario, the embodiment of the present disclosure provides a program startup method, such as Figure 2 As shown, Figure 2 is a flowchart of a program startup method according to an exemplary embodiment, in which the method is applied to Figure 1 The terminal device in is used as an example to illustrate. Figure 2 The method shown may include the following steps:

[0051] S100: The terminal device determines that the target data packet version has been updated in response to the detected startup instruction; the startup instruction is used to trigger the startup of the target program from the background; the target data packet includes data of the target program and data of the host program of the target program; the target program is run without performing an installation operation.

[0052] The target program can be an application form between a traditional hypertext markup language (HTML) page and an application (APP). The target program needs to be attached to the host program to run, and the target program can realize payment functions, game functions, music playback functions, communication functions, etc. This disclosure does not limit this. The target program refers to the target program to be started.

[0053] The target data packet may be stored in a first storage area of ​​the terminal device, and the first storage area may be a storage area indicated by an installation directory of the host program. For example, the first storage area may be a storage area such as a hard disk of the terminal device.

[0054] In a possible implementation manner, the terminal device obtains a version update identifier of the target data packet, and determines that the version of the target data packet has been updated when the version update identifier is obtained.

[0055] It is understandable that the terminal device can obtain the version update identifier of the target data packet from the application manager in the computer device, or obtain the version update identifier of the target data packet from the server of the target data packet; the updated version of the target data packet comes from the server.

[0056] In one example, a computer device obtains a currently running version of a target program through a system command (e.g., an Android debugbridge (adb) command), and obtains a version of a stored target data packet through an application manager. If the two obtained versions are inconsistent, a version update identifier of the target data packet is obtained.

[0057] In another possible implementation, the terminal device obtains the creation time of the main process of the target program and the update time of the target data packet, and determines that the target data packet version has been updated when the creation time of the main process of the target program is earlier than the update time of the target data packet.

[0058] Exemplarily, the creation time of the main process of the target program obtained by the terminal device is 16:45 on November 20, 2020, and the update time of the target data packet obtained by the terminal device is 16:50 on November 20, 2020. The terminal device determines that the version of the target data packet has been updated.

[0059] S101: The terminal device parses the target data packet to obtain the data of the target program and the data of the host program.

[0060] The data of the target program includes: at least one of the program package of the target program, the network view component of the target program or the paging display control of the target program; the data of the host program includes: the basic library corresponding to the target program and / or the interpreter of the target program.

[0061] In one example, the terminal device obtains the program package of the target program from the target data packet, and obtains information in the program package of the host program inherited during the startup process of executing the target program (eg, a basic library corresponding to the target program, etc.).

[0062] S102: The terminal device loads the data of the target program and the data corresponding to the target program in the data of the host program, and starts the target program.

[0063] In one possible implementation, the terminal device loads data such as the program package of the target program, the basic library corresponding to the target program, the interpreter of the target program, the network view component of the target program, or the paging display control of the target program into the second storage area, and starts the target program.

[0064] It should be noted that the terminal device can use different loading steps to load the data of the above-mentioned target program, for example: use the target program package loading step to load the target program package, use the basic library loading step to load the basic library corresponding to the target program, use the interpreter loading step to load the interpreter, use the network view component loading step to initialize the network view component, etc.; the different loading steps used by the terminal device are explained below:

[0065] The target program package loading step is that the terminal device reads the target program package from the first storage area to the second storage area of ​​the terminal device (such as the memory of the terminal device). The target program package may include the web page code of the target program and the logic code of the target program. The web page code of the target program is used to implement the user interface of the target program, and the logic code of the target program is used to implement the business logic of the target program.

[0066] The basic library loading step is used to load the basic library. The target program runs in the host program and the terminal device through the basic library. The basic library encapsulates the capabilities of the host program and the terminal device and provides them to the target program. Generally speaking, the basic library will be built into the host program in advance. The basic library can be injected into the view layer thread and the logic layer thread to run: in the view layer thread, it provides various components to form the elements of the page; in the logic layer thread, it provides various application programming interfaces (APIs) to process various elements. Before the basic library is called or during the calling process, the terminal device reads from the program package of the host program or the program package of the terminal device to the second storage area of ​​the terminal device.

[0067] The interpreter loading step is used to load the interpreter, and the interpreter is used to parse and execute code information, such as parsing and executing the code information of the target program package and the code information of the basic library. Optionally, the code information of the target program package and the code information of the basic library can be written in JavaScript, and the interpreter can be a JavaScript interpreter. The target program package running step refers to running the code information of the target program package and the code information of the basic library through the interpreter. For example, the pageView.js of the basic library and the target program web page code can be run in a JavaScript interpreter to jointly implement the user interface of the target program; the waService.js of the basic library and the target program logic code can be run in a JavaScript interpreter to jointly implement the business logic of the target program.

[0068] The web view component loading step is used to initialize the web view component, which is used to display and render the target program page, such as WebView. The paging display control loading step is used to initialize the paging display control, which is used to display the target program interface in paging, such as PageView.

[0069] In a possible implementation, the terminal device obtains the dependency relationship between the above-mentioned different loading steps, executes the above-mentioned loading steps according to the obtained dependency relationship, and loads the data of the target program into the second storage area.

[0070] In one example, it is assumed that the above-mentioned loading steps include step A and step B. The execution of step A needs to depend on the execution result of step B, so the terminal device executes step A after executing step A.

[0071] The embodiment of the present disclosure does not limit the execution order of the loading steps without dependencies, and the terminal device can also execute the loading steps without dependencies concurrently.

[0072] It is understandable that before executing at least one of the above-mentioned loading steps, the terminal device can determine whether the data loaded in the loading step is updated after the target data packet version is updated. If so, the loading step is executed; if not, the loading step does not need to be executed.

[0073] After the terminal device executes the above loading steps, it starts the target program using the loaded program package, interpreter, basic library, network view component or paging display control of the target program.

[0074] In one example, the terminal device runs the target program's package and code information of the basic library through an interpreter (the process includes creating an application object, starting the target program's main process, creating a main activity, etc.), and then initializes according to the loaded paging display control. When the paging display control is initialized, the loaded network view component and paging display control are used to render the target program's page to start the target program.

[0075] In the disclosed embodiment, during the process of starting the target program from the background, the terminal device, when determining that the version of the target data packet (such as the version of the program package of the host program or the version of the program package of the target program) has been updated, parses the updated version of the target data packet, obtains the data of the target program (such as the applet) and the data of the host program, loads the data of the target program and the data corresponding to the target program in the data of the host program, and uses the loaded data to start the target program. Since the target program is run in the host program and the computer device through the data corresponding to the target program in the data of the host program (such as the basic library corresponding to the target program), and the basic library encapsulates the functions of the host program, starting the target program with the data of the target program in the updated target data packet can solve the problem of abnormal prompts and / or direct exit of the target program during the process of starting the target program from the background after the version of the program package of the host program has been updated and / or the version of the program package of the target program has been updated.

[0076] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the method steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0077] The embodiments of the present disclosure may divide the functional modules of the terminal device according to the above method examples. For example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0078] Figure 3 is a block diagram of a program startup device according to an exemplary embodiment. Figure 3 , the program startup device 30 includes a determination module 301, a parsing module 302 and a startup module 303. Among them: the determination module 301 is configured to determine that the target data package version has been updated in response to the detected startup instruction; the startup instruction is used to trigger the startup of the target program from the background; the target data package includes the data of the target program and the data of the host program of the target program; the operation of the target program does not require the execution of the installation operation; for example, in combination with Figure 2 The determination module 301 can be used to execute S100. The parsing module 302 is configured to parse the target data packet to obtain the data of the target program and the data of the host program. Figure 2 , the acquisition module 302 can be used to execute S101. The startup module 303 is configured to load the data of the target program and the data corresponding to the target program in the data of the host program, and start the target program. Figure 2 , the startup module 303 can be used to execute S102.

[0079] Optionally, the determination module 301 is specifically configured to: determine that the version of the target data packet has been updated when a version update identifier of the target data packet is obtained.

[0080] Optionally, the program startup device 30 also includes an acquisition module 304, which is configured to: acquire a version update identifier of the target data packet from an application manager in the computer device, or acquire a version update identifier of the target data packet from a server of the target data packet; the updated version of the target data packet originates from the server.

[0081] Optionally, the acquisition module 304 is configured to: obtain the creation time of the main process of the target program and the update time of the target data packet; the determination module 301 is specifically configured to determine that the target data packet version has been updated when the creation time is earlier than the update time.

[0082] Optionally, the data of the target program includes: at least one of: a program package of the target program, a network view component of the target program, or a paging display control of the target program; the data of the host program corresponding to the target program includes: a basic library corresponding to the target program and / or an interpreter of the target program.

[0083] Optionally, the program starting device 30 includes a first storage area and a second storage area; the determination module 301 is specifically configured to: determine that the target data packet version stored in the first storage area has been updated; the starting module 303 is specifically configured to: load the data of the target program and the data of the host program corresponding to the target program into the second storage area, and start the target program.

[0084] Regarding the program startup device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated in detail here. In addition, the explanation of any program startup device provided above and the description of the beneficial effects can refer to the corresponding method embodiment above, and will not be repeated.

[0085] Figure 4 FIG. 1 is a block diagram of a computer device according to an exemplary embodiment. Figure 4 As shown, the computer device 40 includes but is not limited to: a processor 401, a memory 402, a display 403, an input unit 404, an interface unit 405, a power supply 406, and the like.

[0086] The processor 401 is a memory for storing instructions executable by the processor. It is understood that the processor 401 is configured to execute the instructions. Figure 2 Any step in the embodiment shown.

[0087] It should be noted that those skilled in the art can understand that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and the computer device may include Figure 4 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0088] The processor 401 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. The processor 401 may include one or more processing units; optionally, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0089] The memory 402 may be used to store software programs and various data. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional unit (such as an acquisition unit, a transceiver unit, or a merging unit, etc.), etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0090] The display 403 is used to display information input by the user or information provided to the user. The display 403 may include a display panel, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0091] The input unit 404 may include a graphics processing unit (GPU), which processes a static picture or image data of a target program obtained by an image capture device (such as a camera) in a target program capture mode or an image capture mode. The processed image frame may be displayed on the display 403. The image frame processed by the graphics processor may be stored in the memory 402 (or other storage medium).

[0092] The interface unit 405 is an interface for connecting an external device to the computer device 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an acquisition module, an audio input / output (I / O) port, a target program I / O port, a headphone port, etc. The interface unit 405 may be used to receive input (e.g., data information, etc.) from an external device and transmit the received input to one or more elements in the computer device 400 or may be used to transmit data between the computer device 400 and an external device.

[0093] The power source 406 (such as a battery) can be used to supply power to various components. Optionally, the power source 406 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.

[0094] In an exemplary embodiment, the present disclosure also provides a storage medium including instructions, such as a memory 402 including instructions, and the instructions can be executed by a processor 401 of a computer device 400 to complete the above method. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0095] In one example, see Figure 3 The above-mentioned determination module 301, analysis module 302, start module 303 and acquisition module 304 can all be composed of Figure 4 The processor 401 in the embodiment calls the computer program stored in the memory 402 for implementation.

[0096] In an exemplary embodiment, the present disclosure also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 401 of the computer device 400 to complete the above method.

[0097] It should be noted that when the instructions in the above-mentioned storage medium or one or more instructions in the computer program product are executed by the processor 401, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they will not be repeated here.

[0098] In an exemplary embodiment, the present disclosure also provides a system, including a terminal device and / or a server. The terminal device can perform the actions performed by the terminal device in the above-mentioned program startup method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0099] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0100] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A program startup method, characterized in that: Applied to a computer device, the computer device includes a first storage area and a second storage area, the method includes: In response to a detected startup instruction, determining that the version of the target data package stored in the first storage area has been updated; the startup instruction is used to trigger the startup of the target program from the background; the target data package includes data of the target program and data of a host program of the target program; the target program is run without performing an installation operation; Parsing the target data packet to obtain data of the target program and data of the host program; Loading the data of the target program and the data of the host program corresponding to the target program into the second storage area, and starting the target program; The data of the target program includes: at least one of a program package of the target program, a network view component of the target program, or a paging display control of the target program; The data of the host program corresponding to the target program includes: a basic library corresponding to the target program and an interpreter of the target program.

2. The method according to claim 1, characterized in that Determining that the target data package version has been updated includes: When the version update identifier of the target data packet is obtained, it is determined that the version of the target data packet has been updated.

3. The method according to claim 2, characterized in that The obtaining of the version update identifier of the target data packet includes: The version update identifier of the target data package is obtained from the application manager in the computer device, or the version update identifier of the target data package is obtained from the server of the target data package; the updated version of the target data package originates from the server.

4. The method according to claim 1, characterized in that: Determining that the target data package version has been updated includes: The creation time of the main process of the target program and the update time of the target data packet are obtained; if the creation time is earlier than the update time, it is determined that the version of the target data packet has been updated.

5. A program starting device, characterized in that: Applied to a computer device, the device comprises a first storage area and a second storage area, and the device comprises: a determination module configured to determine, in response to a detected startup instruction, that the version of the target data packet stored in the first storage area has been updated; the startup instruction is used to trigger the startup of the target program from the background; the target data packet includes data of the target program and data of a host program of the target program; the target program is run without performing an installation operation; A parsing module, configured to parse the target data packet to obtain data of the target program and data of the host program; A startup module, which loads the data of the target program and the data of the host program corresponding to the target program into the second storage area, and starts the target program; The data of the target program includes: at least one of a program package of the target program, a network view component of the target program, or a paging display control of the target program; The data of the host program corresponding to the target program includes: a basic library corresponding to the target program and an interpreter of the target program.

6. The device according to claim 5, characterized in that The determination module is specifically configured as follows: When the version update identifier of the target data packet is obtained, it is determined that the version of the target data packet has been updated.

7. The device according to claim 6, characterized in that The program startup device also includes an acquisition module, which is configured to: acquire a version update identifier of the target data packet from an application manager in the computer device, or acquire a version update identifier of the target data packet from a server of the target data packet; the updated version of the target data packet originates from the server.

8. The device according to claim 5, characterized in that The program startup device also includes an acquisition module, The acquisition module is configured to: acquire the creation time of the main process of the target program and the update time of the target data packet; The determination module is specifically configured to determine that the target data packet version has been updated when the creation time is earlier than the update time.

9. A computer program product, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

10. A computer device, characterized in that: include: A processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the executable instructions to implement the method according to any one of claims 1 to 4.

11. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer device is enabled to execute the method according to any one of claims 1 to 4.

12. A program startup system, characterized in that: The system includes a terminal device and / or a server; the terminal device can execute the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Application program hot update method and device, storage medium and computer equipment

    CN110659057A