CN115080151A - APP starting process control method, computer readable storage medium and terminal - Google Patents

APP starting process control method, computer readable storage medium and terminal Download PDF

Info

Publication number
CN115080151A
CN115080151A CN202210864746.1A CN202210864746A CN115080151A CN 115080151 A CN115080151 A CN 115080151A CN 202210864746 A CN202210864746 A CN 202210864746A CN 115080151 A CN115080151 A CN 115080151A
Authority
CN
China
Prior art keywords
app
task list
starting
task
stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210864746.1A
Other languages
Chinese (zh)
Other versions
CN115080151B (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210864746.1A priority Critical patent/CN115080151B/en
Publication of CN115080151A publication Critical patent/CN115080151A/en
Application granted granted Critical
Publication of CN115080151B publication Critical patent/CN115080151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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
    • G06F9/4451User profiles; Roaming
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching

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 application provides an APP starting process control method, which specifically comprises the following steps: the method comprises the steps that a client detects a starting instruction of an APP; if a starting instruction of the APP is detected, compiling the APP; acquiring a preset task list, wherein the preset task list is a task list at each stage in the starting process; when the APP compiling is completed, reading a task with a stage identifier in a code compiling file to obtain a compiling task list, wherein the code compiling file is formed after the code of the APP is compiled; eliminating tasks in the compiling task list which are not in the preset task list to form a starting task list; and executing the starting task list, wherein the tasks in the starting task list are executed according to the sequence of the stage identifications. According to the technical scheme, the starting task can be controlled more flexibly and efficiently on the basis of not modifying the original code.

Description

APP starting process control method, computer readable storage medium and terminal
Technical Field
The application relates to the technical field of mobile internet, in particular to a computer readable storage medium and a terminal for controlling an APP starting process.
Background
The APP is an entrance of a large number of scenes in the era of mobile internet, various supports of the APP by the current industry are established on the basis of the native standard template APP, the mode can only provide the most basic guidance for the user, and if the user wants to know the whole life cycle of the APP more deeply, the APP starting process is monitored or managed, and the current support cannot be achieved.
In addition, the excessive attention on the life cycle after the APP is started is shallow in natural cycle management research under the native state and cannot be well controlled, so that the optimization of the APP can only stay in the business process. Through measurement and calculation, the consumed time in the APP starting process also occupies a large share, a huge optimization space exists, and the resource utilization rate can be effectively improved by managing the starting process of the control number APP. The scheme can carry out more comprehensive analysis and control in the APP starting process.
Disclosure of Invention
In view of the foregoing, there is a need to provide a more efficient APP start-up procedure control method, a computer-readable storage medium, and a terminal.
In a first aspect, an embodiment of the present application provides an APP start-up process control method, where the APP start-up process control method includes the following steps:
the method comprises the steps that a client detects a starting instruction of an APP, the APP has a starting process, the starting process is divided into a plurality of starting stages, each starting stage corresponds to different stage identifiers, and the APP comprises each stage task in the APP starting process and a configuration file configured with the stage identifier corresponding to each stage task;
if a starting instruction of the APP is detected, compiling the APP, wherein when the APP is compiled, corresponding stage identifiers are injected into the inlets of the stage tasks;
acquiring a preset task list, wherein the preset task list is a task list at each stage in the starting process;
when the APP compiling is completed, reading a task with a stage identifier in a code compiling file to obtain a compiling task list, wherein the code compiling file is formed after the code of the APP is compiled;
eliminating tasks in the compiling task list which are not in the preset task list to form a starting task list; and
and executing the starting task list, wherein the tasks in the starting task list are executed according to the sequence of the stage identifications.
In a second aspect, an embodiment of the present application provides a computer-readable storage medium for storing program instructions, where the program instructions are executable by a processor to implement an APP start-up flow control method as described above.
In a third aspect, an embodiment of the present application provides a terminal, where the terminal device includes:
a computer readable storage medium for storing program instructions;
the processor and the bus execute the program instructions to implement the APP starting process control method described above.
According to the APP starting process control method, the computer readable storage medium and the terminal, the starting task in the starting process can be dynamically adjusted in real time by using the built-in task list and the external task list. The built-in task list and the external task list can be customized, so that the starting task in the starting process can be changed more flexibly, the external task list can be used without changing the code, the invasion to the service code is reduced, and the external task list can be directly modified when the external task list needs to be modified, so that the code expansibility can be increased.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments 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 present application, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a flowchart of an APP start-up process control method provided in an embodiment of the present application.
Fig. 2 is a flowchart of a second embodiment of an APP start-up process control method according to an embodiment of the present application.
Fig. 3 is a first sub-flowchart of an APP start-up process control method provided in the embodiment of the present application.
Fig. 4 is a schematic diagram of generating a compiled file according to an embodiment of the present application.
Fig. 5 is a schematic diagram of an APP start instruction according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a client access server of an APP according to an embodiment of the present application.
Fig. 7 is a schematic internal structure diagram of a terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar items 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, in other words that the embodiments described are to be practiced in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, may also include other things, such as processes, methods, systems, articles, or apparatus that comprise a list of steps or elements is not necessarily limited to only those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such processes, methods, articles, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Referring to fig. 1, fig. 2, fig. 4, fig. 5, and fig. 6 in combination, fig. 1 is a flowchart of an APP start-up flow control method provided in an embodiment of the present application, fig. 2 is a flowchart of a second embodiment of the flowchart of the APP start-up flow control method provided in the embodiment of the present application, fig. 4 is a schematic diagram of generating a compiled file provided in the embodiment of the present application, fig. 5 is a schematic diagram of an APP start-up instruction provided in the embodiment of the present application, and fig. 6 is a schematic diagram of a client 300 of an APP accessing a server 400 provided in the embodiment of the present application. The APP starting process control method specifically comprises steps S102-S114.
In step S102, the client 300 detects a start instruction of the APP. It can be understood that the client 300 waits for the user to start the APP and issues a start instruction of the APP.
And step S104, if the starting instruction of the APP is detected, compiling the APP, wherein when the APP is compiled, corresponding stage identifiers are injected into the inlets of the stage tasks. It can be understood that, in the development phase, a developer separately encapsulates the initialization method in each initialization start task into a start task, and when a user starts the APP, the client 300 compiles the code of the APP after detecting a start instruction of the APP. The APP starting process is divided into a plurality of starting stages, and each stage corresponds to one or more starting nodes. In order not to change the original code, when the code of the APP is compiled to the starting task of the corresponding stage, corresponding stage identification is injected at the entry function of the starting task of each stage through an aspect-oriented programming (AOP) technology. As shown in fig. 4, when compiling the start task, the start task code of the initialization method for each initialization start task and the phase identifier injected by using the facet-oriented programming (AOP) technique are used to obtain the object code of the start task with the phase identifier, and during the process of compiling the object code, a compiled file of the start task with the phase identifier can be generated.
For example, the startup phase set by the developer in the development phase includes a first startup phase, a second startup phase, and a third startup phase. Wherein the first start-up phase uses Pre as the phase identifier. The second start phase uses load as the phase identifier. The third boot phase is identified with Display. The first starting stage, the second starting stage and the third starting stage are sequenced in time according to the sequence. In this embodiment, the developer sets a monitoring initialization method in the monitoring software development kit (monitoring SDK) and an environment initialization method in the environment software development kit (environment SDK) in the first boot stage. The monitoring initialization method in the monitoring software development kit (monitoring SDK) and the environment initialization method in the environment software development kit (environment SDK) are independently packaged by developers to form a corresponding monitoring starting task packaging package and an environment starting task packaging package. The developer sets a monitoring initialization method in the monitoring software development kit (monitoring SDK) and a network initialization method in the network software development kit (network SDK) at the second startup stage. The method comprises the following steps that a developer independently encapsulates a monitoring initialization method in a monitoring software development kit (monitoring SDK) and a network initialization method in a network software development kit (network SDK) to form a corresponding monitoring start task encapsulation package and a corresponding network start task encapsulation package; the developer sets a positioning initialization method in the positioning software development kit (positioning SDK), a camera initialization method in the camera software development kit (camera SDK), and a gallery initialization method in the gallery software development kit (gallery SDK) at the third startup stage. The method comprises the steps that a developer independently packages a positioning initialization method in a positioning software development kit (positioning SDK), a camera initialization method in a camera software development kit (camera SDK) and a gallery initialization method in a gallery software development kit (gallery SDK) to form a corresponding positioning starting task package, a camera starting task package and a gallery starting task package.
When the APP starts, the code of the APP starts to be compiled, when the code of the APP is compiled to the first stage of the starting stage, the monitoring starting task and the environment starting task of the first stage start to be compiled, and the mark Pre of the first stage is injected into the entry functions of the monitoring starting task and the environment starting task of the first stage by adopting an Aspect Oriented Programming (AOP) technology in the compiling process; when the code of the APP is compiled to the second stage of the starting stage, the monitoring starting task and the network starting task of the second stage are compiled, and the identification load of the second stage is injected into the entry functions of the monitoring starting task and the network starting task of the second stage by adopting an Aspect Oriented Programming (AOP) technology in the compiling process; when the APP code is compiled to the third stage of the starting stage, the positioning starting task, the camera starting task and the gallery starting task of the third stage are compiled, and the identification Display of the third stage is injected into the entry functions of the positioning starting task, the camera starting task and the gallery starting task of the third stage by adopting an Aspect Oriented Programming (AOP) technology in the compiling process; and when the stage mark of the start task of each stage in the APP code is injected, the APP code forms a compiling file and the code compiling is completed.
Step S106, a preset task list is obtained, wherein the preset task list is a task list at each stage in the starting process. In some possible embodiments, the preset task list includes a preset internal task list 100 and a preset external task list 200, and the preset internal task list 100 and the preset external task list 200 are the same in an initial state. It is understood that, in some possible embodiments, the preset task list may further include one of the preset built-in task list 100 and the preset external task list 200. Specifically, in this embodiment, the preset built-in manifest is set in the APP by the developer in the development stage, and is not changeable after the APP is released. The external task list 200 is stored in a server 400 communicatively coupled to the client 300. The external task list 200 may be reset for updating after the APP is released. Hereinafter, how to obtain the preset task list will be described by taking the preset task list including the preset internal task list 100 and the preset external task list 200 as an example.
And S108, when the APP is compiled, reading a task with a stage identifier in a code compiling file to obtain a compiling task list, wherein the code compiling file is formed after the code of the APP is compiled. It can be understood that, after the code compilation of the APP is completed, the client 300 reads the start task in the compilation file into which the phase identifier has been injected to form a compilation task list.
For example, if the code is compiled in the APP, the start task and the environment start task are monitored according to the first stage set in the APP code by the developer; a monitoring starting task and a network starting task at the second stage; and a positioning starting task, a camera starting task and a gallery starting task in the third stage, and injecting corresponding stage identifiers into each starting task respectively. After the APP code is compiled, the client 300 reads the start task with the phase identifier together to form a task list of the compiled file according to the compiled APP code, or the client 300 reads according to the phase, specifically, the start task with the first phase identifier in the APP code is read first, after the reading is finished, the start task with the second phase identifier is read, and so on, until all the start tasks with the phase identifier in the APP code are read.
And step S110, eliminating the tasks which are not in the preset task list in the compiling task list to form a starting task list. It can be understood that after the client 300 reads the task list in the compiled file, it starts to read the corresponding preset task list. Comparing the task list in the compiled file with each stage in a corresponding preset task list and the starting task corresponding to each stage, and if the client 300 compares the task list of the compiled file with the built-in task list 100, the client 300 takes the built-in task list 100 as the standard; when the built-in task list 100 does not exist in the startup task at a certain stage in the startup task in the compiled file, the client 300 rejects the startup task at the stage in the compiled file. If the client 300 compares the task list of the compiled file with the external task list 200, the client 300 will be qualified by the external task list 200. When the external task list 200 does not exist in a certain stage of the startup tasks in the compiled file, the client 300 eliminates the startup task in the stage in the compiled file.
For example, if the client 300 compares the task list of the compiled file with the built-in task list 100. Specifically, if the first stage in the compiled file includes: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task and a network starting task; the third stage comprises: positioning starting task, camera starting task and gallery starting task. The client 300 reads the built-in task list 100 as a first stage including: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task; the third stage comprises: and positioning a starting task, and starting a gallery starting task. The client 300 compares the start task in the compiled file with the start task of the built-in task list 100, and obtains that the task list of the compiled file has more network start tasks in the second stage and more camera start tasks in the third stage than the built-in task list 100. The client 300 eliminates the second stage network start task in the compiled file, and the camera start task in the third stage in the compiled file. The first stage of obtaining the start task in the final compiled file comprises: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task; the third stage comprises: and positioning a starting task, and starting a gallery starting task.
For example, if the client 300 compares the task list of the compiled file with the external task list 200. Specifically, if the first stage in the compiled file includes: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task and a network starting task; the third stage comprises: positioning starting task, camera starting task and gallery starting task. The first stage of reading the external task list 200 by the client 300 includes: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task and a network starting task; the third stage comprises: and positioning starting tasks, camera starting tasks and gallery starting tasks. The client 300 compares the start task in the compiled file with the start task in the external task list 200 to obtain that the task list of the compiled file is the same as the start task in the external task list 200, and the client 300 does not need to remove the start task in the compiled file. And if the external task list 200 is different from the starting task in the compiled file, removing the starting task in the compiled file according to the example of the internal task list 100.
And step S112, executing a starting task list, wherein the tasks in the starting task list are executed according to the sequence of the stage identifications. It can be understood that if the client 300 of the APP compares the task list of the compiled file with the built-in task list 100, the APP sequentially executes the start task corresponding to the corresponding stage at the corresponding stage according to the task list in the compiled file after the comparison between the compiled file and the built-in task list 100100. If the APP client 300 compares the task list of the compiled file with the built-in task list 100. Then the APP will sequentially execute the start task corresponding to the corresponding stage at the corresponding stage according to the task list in the compiled file after the compiled file is compared with the external task list 200.
For example, if the client 300 of the APP compares the task list of the compiled file with the built-in task list 100, and after the compiled file task list is compared with the built-in task list 100 in step S110, and a start task list in which the compiled file task list is consistent with the built-in task list 100 is obtained, the client 300 sequentially executes start tasks in the compiled file according to the stage identifier, and the execution sequence of the APP is that when the APP runs to the first stage, the APP executes the environment start task with the first stage identifier after executing the monitoring start task with the first stage identifier; after the execution is finished; when the APP runs to the second stage, the APP starts to execute a monitoring starting task with a second stage identifier; when the APP runs to the third stage, the APP starts to execute the positioning starting task with the third stage identification, and then executes the gallery starting task with the third stage identification.
For example, if the client 300 of the APP compares the task list of the compiled file with the built-in task list 100. After comparing the compiled file task list with the external task list 200 in step S110 to obtain a start task list in which the compiled file task list is consistent with the internal task list 100, the client 300 sequentially executes start tasks in the compiled file according to the stage identifiers. When the APP runs to the first stage, the APP executes the monitoring start task with the first stage identifier and then executes the environment start task with the first stage identifier; after the execution is finished; when the APP runs to the second stage, after the APP starts to execute the monitoring starting task with the second stage identification, the APP executes the network starting task with the second stage identification; when the APP runs to the third stage, after the APP starts to execute the positioning starting task with the third-stage identifier, and then executes the camera starting task with the third stage, the APP executes the gallery starting task with the third-stage identifier.
In the above embodiment, the start task in the start flow may be dynamically adjusted in real time by setting a manner of using the built-in task list 100 and/or using the external task list 200. The built-in task list 100 and the external task list 200 can be customized, so that the starting task in the starting process can be changed more flexibly, and the mode of using the external task list 200 can be realized without changing the code, so that the invasion to the service code is reduced, and the external task list 200 can be directly modified when the external task list is required to be modified, so that the code expansibility can be increased.
Step S114, when the start instruction of the APP is the restart 2 instruction, reading the updated external task list 200 to obtain the preset task list. It can be understood that, when it is monitored that a start-up failure occurs in a start-up task at a certain start-up stage, and an operation and maintenance worker changes the start-up task having the failure and needs to modify the start-up task in the compiled file during the start-up process, the operation and maintenance worker may modify the start-up task in the configuration file storing the external task list 200, and may update the start-up task in the configuration file storing the external task list 200 without restarting the server 400.
For example, when the second stage of the start task in the configuration file of the external task list 200 includes: when the monitoring starts the task and the network starts the task, the second stage network task breaks down in the APP start-up process, lead to APP to start failure, the operation and maintenance personnel delete the network start task in the configuration file of external task list 200, after deleting the network start task in the configuration file of external task list 200, need not to restart server 400, and the start task of the second stage in the configuration file of external task list 200 only has the monitoring start task this moment, when APP restarts and visits the configuration file of external task list 200 of storage in server 400, the start task of the second stage only has the monitoring start task.
The operation and maintenance personnel can customize the starting task of the external task list 200 in the configuration file to change, and the server 400 of the external task list 200 does not need to be restarted after the change, so that the starting task can be changed more flexibly and efficiently, and the hot updating starting task is realized.
It can be understood that step S114 is that the APP starts to be abnormal or the operation and maintenance staff need to change the start task in the configuration file storing the external task list 200, and the server 400 does not need to be changed after the change, so that the start task can be changed more flexibly and efficiently, the hot-update start task is realized, and when step S114 is omitted, the effect of controlling the APP start process can also be achieved. That is, in some possible embodiments, step S114 may be omitted
Please refer to fig. 3, which is a first sub-flowchart of an APP start-up flow control method according to an embodiment of the present application, and fig. 5 is a schematic diagram of an APP start-up instruction according to an embodiment of the present application. Step S104 specifically includes steps S302-S306.
Step S302, judging whether the detected instruction is an initial starting 1 instruction or a secondary starting 2 instruction. After the APP is issued, when the user starts the APP, the APP judges whether the starting is the first starting 1 instruction or the second starting 2 instruction according to the APP running log record. Or the developer writes a code segment for judging whether the code is the initial starting 1 or not in the code to judge whether the starting is the initial starting 1 instruction or the secondary starting 2 instruction.
For example, after the APP is released, when the user starts the APP, the APP starts to compile the code of the APP, after the APP code is compiled, the client 300 checks the running log of the APP, and if the running log does not exist, it is determined that the start instruction of the APP is the initial start 1 instruction; and if the running log exists, judging that the starting instruction of the APP is a secondary starting 2 instruction.
For example, after the APP is released, when the user starts the APP, the APP starts to compile the code of the APP, and after the APP code is compiled. The APP starts to judge whether the starting is the initial starting instruction 1 according to the judgment starting instruction written in the APP code by the developer.
Step S304, when the starting instruction of the APP is an initial starting 1 instruction, reading the built-in task list 100 to obtain the preset task list. It can be understood that, in this embodiment, a developer sets the built-in task list 100 by using a configuration file, and is used for controlling the start process of the APP when executing the initial start-up 1 instruction after being issued, and the preset built-in task list 100 is different from the compiled file, in some feasible embodiments, the start task in the compiled file may also be set to be the same as the built-in start task, when the client 300 determines that the APP is the initial start-up 1, after compiling the code of the APP, the built-in task list 100 set by the developer starts to be read, and when reading the built-in task list 100 set by the developer to obtain the initial start-up 1 instruction executed by the APP, the task lists of which start tasks should be executed at each stage.
For example, before release, a developer writes a started task list in a built-in configuration file, where the first stage is: monitoring a starting task and an environment starting task; and a second stage: monitoring a starting task; and a third stage: and positioning a starting task, and starting a gallery starting task. When the client 300 knows that the start instruction executed by the APP is the initial start 1 instruction through the operation log, after compiling the code of the APP, the client starts to read the built-in task list 100 set by the developer. The final acquisition of the built-in task list 100 is the first stage: monitoring a starting task and an environment starting task; and a second stage: monitoring a starting task; and a third stage: and positioning a starting task, and starting a gallery starting task.
Step S306, when the start instruction of the APP is the restart 2 instruction, reading the external task list 200 to obtain the preset task list. It can be understood that, in this embodiment, the operation and maintenance staff sets the external task list 200 by using the configuration file, so as to control the start process of the APP when the APP executes the restart 2 instruction, and the preset external task list 200 is different from the start task of the compiled file and is also different from the internal start task, and in some embodiments, the preset external task list 200 may be the same as the start task in the compiled file and the internal task list 100 or one of the two. When the client 300 judges that the APP is the restart 2, after the code of the APP is compiled, the external task list 200 set by the operation and maintenance personnel is read, and when the external task list 200 set by the operation and maintenance personnel is read to obtain an instruction of executing the restart 2 by the APP, the task list of which start tasks should be executed at each stage.
For example, the first stage of writing the start task list in the external task list 200 by the operation and maintenance staff includes: monitoring a starting task and an environment starting task; the second stage comprises: monitoring a starting task; the third stage comprises: and positioning starting tasks, camera starting tasks and gallery starting tasks. When the client 300 knows that the start instruction executed by the APP is not the initial start 1 instruction through the operation log, after compiling the code of the APP, the external task list 200 set by the operation and maintenance personnel is read. The final external task list 200 is obtained as a first stage: monitoring a starting task and an environment starting task; and a second stage: monitoring a starting task; and a third stage: and positioning starting tasks, camera starting tasks and gallery starting tasks.
In the above embodiment, whether the start instruction executed by the APP is the initial start 1 instruction is judged, and then different task lists can be called according to different situations, so that the start task of each stage can be set for the start process more flexibly, and intrusion to the service code is reduced.
Embodiments of the present application provide a computer-readable storage medium for storing a computer program, where the computer program is executed by a processor to implement part or all of the steps of any one of the methods described in the above embodiments.
Please refer to fig. 7 in combination, which is a schematic diagram of an internal structure of a terminal according to an embodiment of the present application. The terminal 10 includes a computer-readable storage medium 11, a processor 12, and a bus 13. The computer-readable storage medium 11 includes at least one type of readable storage medium, including flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, and the like. The computer readable storage medium 11 may in some embodiments be an internal storage unit of the terminal 10, such as a hard disk of the terminal 10. The computer readable storage medium 11 may in other embodiments be an external terminal 10 storage device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the terminal 10. Further, the computer-readable storage medium 11 may also include both an internal storage unit and an external storage device of the terminal 10. The computer-readable storage medium 11 may be used not only to store application software and various types of data installed in the terminal 10 but also to temporarily store data that has been output or will be output.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Further, the terminal 10 may also include a display assembly 14. The display component 14 may be a Light Emitting Diode (LED) display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch panel, or the like. The display component 14 may also be referred to as a display device or display unit, as appropriate, for displaying information processed in the terminal 10 and for displaying a visual user interface, among other things.
Further, the terminal 10 may also include a communication component 15. The communication component 15 may optionally include a wired communication component and/or a wireless communication component, such as a WI-FI communication component, a bluetooth communication component, etc., typically used to establish communication connections between the terminal 10 and other intelligent control devices.
The processor 12 may be, in some embodiments, a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip for executing program codes stored in the computer-readable storage medium 11 or Processing data. In particular, the processor 12 executes programs to control the terminal 10APP to start the flow control method.
It is understood that fig. 7 only shows the terminal 10 with the components 11-15 and implementing the APP start-up flow control method, and those skilled in the art will appreciate that the structure shown in fig. 7 does not constitute a limitation of the terminal 10, and may include fewer or more components than those shown, or combine certain components, or a different arrangement of components.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, to the extent that such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, it is intended that the present application also encompass such modifications and variations.
The above-mentioned embodiments are only examples of the present invention, and the scope of the claims of the present invention should not be limited by these examples, so that the claims of the present invention should be construed as equivalent and still fall within the scope of the present invention.

Claims (10)

1. An APP starting process control method is characterized by comprising the following steps:
the method comprises the steps that a client detects a starting instruction of an APP, the APP has a starting process, the starting process is divided into a plurality of starting stages, each starting stage corresponds to different stage identifiers, and the APP comprises each stage task in the APP starting process and a configuration file configured with the stage identifier corresponding to each stage task;
if a starting instruction of the APP is detected, compiling the APP, wherein when the APP is compiled, corresponding stage identifiers are injected into the inlets of the stage tasks;
acquiring a preset task list, wherein the preset task list is a task list at each stage in the starting process;
when the APP compiling is completed, reading a task with a stage identifier in a code compiling file to obtain a compiling task list, wherein the code compiling file is formed after the code of the APP is compiled;
eliminating tasks in the compiling task list which are not in the preset task list to form a starting task list; and
and executing the starting task list, wherein the tasks in the starting task list are executed according to the sequence of the stage identifications.
2. The APP start-up process control method of claim 1, wherein the preset task list is a built-in task list built in the APP.
3. The APP startup process control method of claim 1, wherein the preset task list is an external task list that is externally disposed in the APP.
4. The APP start-up process control method of claim 1, wherein the preset task list is an internal task list or an external task list, the internal task list is internally installed in the APP, the external task list is externally installed on a server in communication connection with the client, and acquiring the preset task list comprises:
judging whether the detected instruction is an initial starting instruction or a restart instruction, and when the instruction is the initial starting instruction, the initial starting instruction is a starting instruction for firstly requesting to start the APP; the restart instruction is a start instruction which does not request for starting the APP for the first time; the acquiring of the preset task list specifically includes:
when the starting instruction of the APP is a primary starting instruction, reading the built-in task list to obtain the preset task list; and
and when the starting instruction of the APP is a restarting instruction, reading the external task list to obtain the preset task list.
5. The APP startup procedure control method of claim 4, wherein the external task list is externally disposed on a server communicatively connected to the client, and when the external task list changes, the server communicatively connected to the client performs a hot update on the external task list.
6. The APP startup procedure control method of claim 4, wherein the external task list comprises an initial external task list and an updated external task list, the initial external task list being the same as the internal task list; the external task list updating method comprises the following steps that the external task list updating is different from the initial external task list, when a starting instruction of the APP is a restarting instruction, the external task list is read to obtain the preset task list, and specifically:
and when the starting instruction of the APP is a restart instruction, reading the updated external task list to obtain the preset task list.
7. The APP startup procedure control method of claim 1, wherein each stage task and the corresponding stage identifier in the APP startup process are stored in an array manner.
8. The APP startup procedure control method of claim 7, wherein the configuration file is a Plist file or a json file.
9. A computer readable storage medium for storing program instructions executable by a processor to implement the APP start-up flow control method of any one of claims 1 to 8.
10. A terminal, characterized in that the terminal comprises:
a computer readable storage medium for storing program instructions; and
a processor for executing said program instructions to implement the APP start-up flow control method of any one of claims 1 to 8.
CN202210864746.1A 2022-07-22 2022-07-22 APP starting flow control method, computer readable storage medium and terminal Active CN115080151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210864746.1A CN115080151B (en) 2022-07-22 2022-07-22 APP starting flow control method, computer readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210864746.1A CN115080151B (en) 2022-07-22 2022-07-22 APP starting flow control method, computer readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN115080151A true CN115080151A (en) 2022-09-20
CN115080151B CN115080151B (en) 2023-07-14

Family

ID=83242344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210864746.1A Active CN115080151B (en) 2022-07-22 2022-07-22 APP starting flow control method, computer readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN115080151B (en)

Citations (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246731A1 (en) * 2011-03-21 2012-09-27 Mocana Corporation Secure execution of unsecured apps on a device
CN103218416A (en) * 2013-03-27 2013-07-24 华为技术有限公司 Method, device and system for loading database
US20150347103A1 (en) * 2014-05-30 2015-12-03 Microsoft Corporation Multiphased profile guided optimization
CN105468407A (en) * 2015-11-19 2016-04-06 国云科技股份有限公司 Method for automatic discovery and sequential running of startup classes
CN105847178A (en) * 2016-03-21 2016-08-10 珠海迈科智能科技股份有限公司 Network data request method and system for application program
CN106293811A (en) * 2016-07-28 2017-01-04 北京中电普华信息技术有限公司 A kind of packing and issuing method and device automatically
CN106485375A (en) * 2015-08-25 2017-03-08 上海玑智自动化科技有限公司 The processing method of task list and system
CN106528231A (en) * 2016-11-07 2017-03-22 青岛海信移动通信技术股份有限公司 Method and apparatus for starting application
EP3207968A1 (en) * 2016-02-18 2017-08-23 Jr. William Knecht Interactive social real time movie trivia app
CN107341094A (en) * 2016-04-29 2017-11-10 腾讯科技(深圳)有限公司 The time-consuming measuring method of startup item and device
CN107357605A (en) * 2017-06-01 2017-11-17 北京趣拿软件科技有限公司 The method and apparatus for running installation file
CN107656739A (en) * 2017-11-07 2018-02-02 北京奇安信科技有限公司 code compiling method and device based on windows systems
CN107766101A (en) * 2017-09-30 2018-03-06 五八有限公司 App starts processing method, device and the equipment of event
US20180113684A1 (en) * 2016-10-24 2018-04-26 International Business Machines Corporation Dynamically compiled artifact sharing on paas clouds
CN108984395A (en) * 2018-06-21 2018-12-11 腾讯科技(北京)有限公司 A kind of application program launching time-consuming test method, device and storage medium
US20190018709A1 (en) * 2017-07-14 2019-01-17 Sap Se Scheduling of Micro-Service Instances
US20190018610A1 (en) * 2017-07-17 2019-01-17 Hewlett Packard Enterprise Development Lp Storing memory profile data of an application in non-volatile memory
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN109445807A (en) * 2017-08-28 2019-03-08 腾讯科技(深圳)有限公司 Realize the method, apparatus and computer readable storage medium of application program update
CN109558231A (en) * 2018-11-26 2019-04-02 广州虎牙信息科技有限公司 Distributed task dispatching method and computer equipment
CN109582385A (en) * 2018-11-07 2019-04-05 Oppo广东移动通信有限公司 Application program launching method and device, storage medium and electronic equipment
CN109597655A (en) * 2017-09-28 2019-04-09 华为技术有限公司 Configure the method and device of application program
CN109901976A (en) * 2019-03-15 2019-06-18 维沃移动通信有限公司 A kind of management method and terminal device of application program
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110086668A (en) * 2019-04-28 2019-08-02 杭州迪普科技股份有限公司 A kind of configuration file switching method and system
CN110138571A (en) * 2019-02-28 2019-08-16 上海愚境科技有限公司 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN110262842A (en) * 2018-03-12 2019-09-20 福建天泉教育科技有限公司 A kind of method and terminal starting component
US10467027B1 (en) * 2018-08-24 2019-11-05 Sap Se Dynamic script loading resource files
CN110413368A (en) * 2019-08-07 2019-11-05 上海千杉网络技术发展有限公司 Page switching method, device, electronic equipment and machine readable storage medium
CN110515665A (en) * 2019-08-02 2019-11-29 苏州浪潮智能科技有限公司 A kind of starting method, system and device of processor system
CN110618822A (en) * 2019-08-26 2019-12-27 杭州顺网科技股份有限公司 Method for pre-installing network card drive in starting stage of diskless workstation
CN110648514A (en) * 2019-08-12 2020-01-03 珠海格力电器股份有限公司 Remote controller and configuration method and control method thereof
CN110825378A (en) * 2019-09-17 2020-02-21 秦皇岛米格教育科技有限公司 Programming system and control system based on program building blocks
CN110955888A (en) * 2019-12-18 2020-04-03 海光信息技术有限公司 Application program data protection method, device, equipment and storage medium
CN111142976A (en) * 2019-12-25 2020-05-12 上海米哈游网络科技股份有限公司 Logic code execution method, device, server and medium
CN111222153A (en) * 2020-01-07 2020-06-02 腾讯科技(深圳)有限公司 Application program authority management method and device and storage medium
US20200225968A1 (en) * 2019-01-10 2020-07-16 Red Hat, Inc. Combining ahead-of-time compilation and just-in-time compilation to improve application deployment
CN111736923A (en) * 2020-07-27 2020-10-02 腾讯科技(深圳)有限公司 Data processing method and device, electronic equipment and readable storage medium
CN111880853A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Starting method, system and related device of clustered service
CN112148386A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application loading method and device and computer readable storage medium
CN112667313A (en) * 2020-12-23 2021-04-16 广州三七互娱科技有限公司 Process starting method, device and system
CN112698888A (en) * 2020-12-28 2021-04-23 广州虎牙科技有限公司 Application modularization, component calling and component initialization method and device
CN112882804A (en) * 2016-08-17 2021-06-01 华为技术有限公司 Method and device for starting application
CN112948026A (en) * 2019-11-26 2021-06-11 Oppo广东移动通信有限公司 Hotspot code processing method and device, server, electronic equipment and storage medium
CN112988284A (en) * 2021-05-13 2021-06-18 太平金融科技服务(上海)有限公司 Application program starting method and device, computer equipment and storage medium
CN113626099A (en) * 2021-07-26 2021-11-09 北京达佳互联信息技术有限公司 Application program starting method and device and electronic equipment
CN114238943A (en) * 2021-12-21 2022-03-25 平安壹钱包电子商务有限公司 Application program protection method, device, equipment and storage medium
CN114265783A (en) * 2021-12-28 2022-04-01 上海淇玥信息技术有限公司 Method and device for generating coverage rate data and electronic equipment

Patent Citations (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246731A1 (en) * 2011-03-21 2012-09-27 Mocana Corporation Secure execution of unsecured apps on a device
CN103218416A (en) * 2013-03-27 2013-07-24 华为技术有限公司 Method, device and system for loading database
US20150347103A1 (en) * 2014-05-30 2015-12-03 Microsoft Corporation Multiphased profile guided optimization
CN106485375A (en) * 2015-08-25 2017-03-08 上海玑智自动化科技有限公司 The processing method of task list and system
CN105468407A (en) * 2015-11-19 2016-04-06 国云科技股份有限公司 Method for automatic discovery and sequential running of startup classes
EP3207968A1 (en) * 2016-02-18 2017-08-23 Jr. William Knecht Interactive social real time movie trivia app
CN105847178A (en) * 2016-03-21 2016-08-10 珠海迈科智能科技股份有限公司 Network data request method and system for application program
CN107341094A (en) * 2016-04-29 2017-11-10 腾讯科技(深圳)有限公司 The time-consuming measuring method of startup item and device
CN106293811A (en) * 2016-07-28 2017-01-04 北京中电普华信息技术有限公司 A kind of packing and issuing method and device automatically
CN112882804A (en) * 2016-08-17 2021-06-01 华为技术有限公司 Method and device for starting application
US20180113684A1 (en) * 2016-10-24 2018-04-26 International Business Machines Corporation Dynamically compiled artifact sharing on paas clouds
CN106528231A (en) * 2016-11-07 2017-03-22 青岛海信移动通信技术股份有限公司 Method and apparatus for starting application
CN107357605A (en) * 2017-06-01 2017-11-17 北京趣拿软件科技有限公司 The method and apparatus for running installation file
US20190018709A1 (en) * 2017-07-14 2019-01-17 Sap Se Scheduling of Micro-Service Instances
US20190018610A1 (en) * 2017-07-17 2019-01-17 Hewlett Packard Enterprise Development Lp Storing memory profile data of an application in non-volatile memory
CN109445807A (en) * 2017-08-28 2019-03-08 腾讯科技(深圳)有限公司 Realize the method, apparatus and computer readable storage medium of application program update
CN109597655A (en) * 2017-09-28 2019-04-09 华为技术有限公司 Configure the method and device of application program
CN107766101A (en) * 2017-09-30 2018-03-06 五八有限公司 App starts processing method, device and the equipment of event
CN107656739A (en) * 2017-11-07 2018-02-02 北京奇安信科技有限公司 code compiling method and device based on windows systems
CN110262842A (en) * 2018-03-12 2019-09-20 福建天泉教育科技有限公司 A kind of method and terminal starting component
CN108984395A (en) * 2018-06-21 2018-12-11 腾讯科技(北京)有限公司 A kind of application program launching time-consuming test method, device and storage medium
US10467027B1 (en) * 2018-08-24 2019-11-05 Sap Se Dynamic script loading resource files
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium
CN109582385A (en) * 2018-11-07 2019-04-05 Oppo广东移动通信有限公司 Application program launching method and device, storage medium and electronic equipment
CN109558231A (en) * 2018-11-26 2019-04-02 广州虎牙信息科技有限公司 Distributed task dispatching method and computer equipment
US20200225968A1 (en) * 2019-01-10 2020-07-16 Red Hat, Inc. Combining ahead-of-time compilation and just-in-time compilation to improve application deployment
CN110138571A (en) * 2019-02-28 2019-08-16 上海愚境科技有限公司 A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN109901976A (en) * 2019-03-15 2019-06-18 维沃移动通信有限公司 A kind of management method and terminal device of application program
CN110018856A (en) * 2019-04-03 2019-07-16 中电科技(北京)有限公司 The method that dynamic modifies UEFI boot sequence
CN110086668A (en) * 2019-04-28 2019-08-02 杭州迪普科技股份有限公司 A kind of configuration file switching method and system
CN110515665A (en) * 2019-08-02 2019-11-29 苏州浪潮智能科技有限公司 A kind of starting method, system and device of processor system
CN110413368A (en) * 2019-08-07 2019-11-05 上海千杉网络技术发展有限公司 Page switching method, device, electronic equipment and machine readable storage medium
CN110648514A (en) * 2019-08-12 2020-01-03 珠海格力电器股份有限公司 Remote controller and configuration method and control method thereof
CN110618822A (en) * 2019-08-26 2019-12-27 杭州顺网科技股份有限公司 Method for pre-installing network card drive in starting stage of diskless workstation
CN110825378A (en) * 2019-09-17 2020-02-21 秦皇岛米格教育科技有限公司 Programming system and control system based on program building blocks
CN112948026A (en) * 2019-11-26 2021-06-11 Oppo广东移动通信有限公司 Hotspot code processing method and device, server, electronic equipment and storage medium
CN110955888A (en) * 2019-12-18 2020-04-03 海光信息技术有限公司 Application program data protection method, device, equipment and storage medium
CN111142976A (en) * 2019-12-25 2020-05-12 上海米哈游网络科技股份有限公司 Logic code execution method, device, server and medium
CN111222153A (en) * 2020-01-07 2020-06-02 腾讯科技(深圳)有限公司 Application program authority management method and device and storage medium
CN111736923A (en) * 2020-07-27 2020-10-02 腾讯科技(深圳)有限公司 Data processing method and device, electronic equipment and readable storage medium
CN111880853A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Starting method, system and related device of clustered service
CN112148386A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application loading method and device and computer readable storage medium
CN112667313A (en) * 2020-12-23 2021-04-16 广州三七互娱科技有限公司 Process starting method, device and system
CN112698888A (en) * 2020-12-28 2021-04-23 广州虎牙科技有限公司 Application modularization, component calling and component initialization method and device
CN112988284A (en) * 2021-05-13 2021-06-18 太平金融科技服务(上海)有限公司 Application program starting method and device, computer equipment and storage medium
CN113626099A (en) * 2021-07-26 2021-11-09 北京达佳互联信息技术有限公司 Application program starting method and device and electronic equipment
CN114238943A (en) * 2021-12-21 2022-03-25 平安壹钱包电子商务有限公司 Application program protection method, device, equipment and storage medium
CN114265783A (en) * 2021-12-28 2022-04-01 上海淇玥信息技术有限公司 Method and device for generating coverage rate data and electronic equipment

Also Published As

Publication number Publication date
CN115080151B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
TWI581188B (en) The way to load the driver and the embedded device
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
US20060265469A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
CN110990019B (en) Java class analysis method and device, storage medium and electronic equipment
JP2021002317A (en) Method, apparatus, device and storage medium for upgrading application
CN108874464B (en) Automatic scanning assembly method and device for middleware and storage medium
CN107783766B (en) Method and device for cleaning files of application program
US11435985B2 (en) Electronic device and operation method thereof
WO2020010725A1 (en) Method and apparatus for automatically synchronously refreshing browser, and computer device
CN111949529B (en) System debugging method, device, computer equipment and storage medium
CN110046094B (en) Operating environment switching method and operating environment switching device
CN111857777A (en) System updating method and device based on double-core intelligent electric meter and computer equipment
CN110825409B (en) Parameter management method, electronic device and computer storage medium
CN113238795A (en) Component distribution method, device, electronic equipment, storage medium and program product
CN112748946A (en) Application program installation file generation method and device, computing equipment and storage medium
KR100834676B1 (en) Method for building software project
CN114327574A (en) Differential upgrading method, electronic device and storage medium
CN115080151B (en) APP starting flow control method, computer readable storage medium and terminal
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN116719670B (en) Data processing method, electronic device and readable storage medium
CN109426546B (en) Application starting method and device, computer storage medium and equipment
CN115309421A (en) Static variable synchronization method, device, equipment and storage medium of single-point system
CN110740382B (en) Method, device, television and medium for avoiding undesired automatic restart of television
CN112148301A (en) Method, system and storage medium for integrated production of customized version of non-compiled Android system
CN112463262A (en) Android system GPS module self-adaption method and terminal

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