CN115080151B - APP starting flow control method, computer readable storage medium and terminal - Google Patents

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

Info

Publication number
CN115080151B
CN115080151B CN202210864746.1A CN202210864746A CN115080151B CN 115080151 B CN115080151 B CN 115080151B CN 202210864746 A CN202210864746 A CN 202210864746A CN 115080151 B CN115080151 B CN 115080151B
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.)
Active
Application number
CN202210864746.1A
Other languages
Chinese (zh)
Other versions
CN115080151A (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

Abstract

The application provides an APP starting flow control method, which specifically comprises the following steps: the client detects an APP starting instruction; 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 of each stage in the starting process; 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 compiling the code of the APP; removing tasks which are not in the preset task list in the compiling 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 identifiers. According to the technical scheme, the starting task can be controlled more flexibly and efficiently on the basis that the original code does not need to be modified.

Description

APP starting flow control method, computer readable storage medium and terminal
Technical Field
The application relates to the technical field of mobile internet, in particular to an APP starting flow control method computer readable storage medium and a terminal.
Background
The time APP of the mobile Internet is an entrance of a large number of scenes, various supports of the APP in the current industry are all built on the basis of the original standard template APP, the mode can only provide the most basic guidance for users, and if the users want to know the whole life cycle of the APP more deeply, the current support cannot be achieved by monitoring or managing the APP starting flow.
In addition, the life cycle after the APP is started is concerned excessively, the natural cycle management under the original state is studied shallowly, and the control cannot be well controlled, so that the optimization of the APP can only be stopped in the business process. According to measurement and calculation, the time consumption in the APP starting process also occupies a large share, a huge optimizing space exists, the starting flow of the control number APP is managed, and the resource utilization rate can be effectively improved. The scheme can perform more comprehensive analysis and control in the APP starting process.
Disclosure of Invention
In view of this, there is a need to provide a more efficient APP start flow control method, computer-readable storage medium and terminal.
In a first aspect, an embodiment of the present application provides an APP start procedure control method, where the APP start procedure control method includes the following steps:
the method comprises the steps that a client detects a starting instruction of an APP, wherein the APP is provided with a starting process, the starting process is divided into a plurality of starting phases, each starting phase corresponds to a different phase identifier, and the APP comprises each phase task in the APP starting process and a configuration file configured with the phase identifier corresponding to each phase task;
if a starting instruction of the APP is detected, compiling the APP, wherein when compiling the APP, the corresponding stage identifiers are injected into the entrance of each stage task;
acquiring a preset task list, wherein the preset task list is a task list of each stage in the starting process;
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 compiling the code of the APP;
removing tasks which are not in the preset task list in the compiling 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 identifiers.
In a second aspect, embodiments of the present application provide a computer readable storage medium for storing program instructions executable by a processor to implement an APP-initiated 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 storing program instructions;
the processor and the bus execute the program instructions to implement the APP start flow control method described above.
According to the APP starting flow control method, the computer-readable storage medium and the terminal, the starting tasks in the starting flow 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 defined by user, so that the starting task in the starting process can be changed more flexibly, the external task list can be used without changing codes, the invasion to service codes is reduced, and the external task list can be modified directly when the business codes need to be modified, so that the expansibility of the codes 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 that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from the structures shown in these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flowchart of an APP start flow control method provided in an embodiment of the present application.
Fig. 2 is a flowchart of a second embodiment of an APP start flow control method provided in an embodiment of the present application.
Fig. 3 is a first sub-flowchart of an APP start-up flow control method provided in an 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 provided in an embodiment of the present application.
Fig. 6 is a schematic diagram of an APP client access server provided in an embodiment of the present application.
Fig. 7 is a schematic diagram of an internal structure of a terminal according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar elements of a plan and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances, or in other words, the described embodiments may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, may also include other items, such as processes, methods, systems, articles, or apparatus that include a series of steps or elements, are not necessarily limited to only those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such processes, methods, articles, or apparatus.
It should be noted that the description herein of "first," "second," etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and 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 procedure 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 procedure control method provided in an embodiment of the present application, fig. 4 is a schematic diagram of generating a compiled file provided in an embodiment of the present application, fig. 5 is a schematic diagram of an APP start instruction provided in an embodiment of the present application, and fig. 6 is a schematic diagram of a client 300 accessing a server 400 of the APP provided in an embodiment of the present application. The APP starting flow control method specifically comprises steps S102-S114.
In step S102, the client 300 detects a start instruction of the APP. It will be appreciated that the client 300 waits for the user to start the APP and issues a start instruction for the APP.
Step S104, if a starting instruction of the APP is detected, compiling the APP, wherein when compiling the APP, the corresponding stage identifiers are injected into the entrance of each stage task. It can be appreciated that, in the development stage, the developer individually encapsulates the initialization method in each initialization start task into a start task, and when the user starts the APP, the client 300 compiles the code of the APP after detecting the start instruction of the APP. The APP starting process is divided into a plurality of starting stages, and each stage corresponds to one or a plurality of starting arbitrary stages. In order not to change the original code, when the code of the APP is compiled to the starting task of the corresponding stage, the corresponding stage identification is injected into the entry function of the starting task of each stage through a tangent plane oriented programming (AOP) technology. As shown in fig. 4, when compiling a boot task, a target code of the boot task with a phase identifier is obtained for each boot task code of an initialization method for initializing the boot task and a phase identifier injected by adopting a tangent plane oriented programming (AOP) technology, and a compiling file of the boot task with the phase identifier can be generated in the process of compiling the target code.
For example, the start-up phases set by the developer in the development phase include a first start-up phase, a second start-up phase, and a third start-up phase. Wherein, the first start-up stage uses Pre as stage identification. The second startup phase uses load as the phase identification. The third startup phase uses Display as an identification. The first starting stage, the second starting stage and the third starting stage are sequentially ordered in time. In the present embodiment, the developer sets a monitoring initialization method in a monitoring software development kit (monitoring SDK) and an environment initialization method in an environment software development kit (environment SDK) in the first start-up phase. The developer individually packages a monitoring initialization method in a monitoring software development kit (monitoring SDK) and an environment initialization method in an environment software development kit (environment SDK) to form a corresponding monitoring start task package and environment start task package. The developer sets 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) in the second start-up phase. The method comprises the steps that a developer independently packages 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 package and a corresponding network start task package; the developer sets 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) in a third start-up phase. The developer individually 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 start task package, a camera start task package and a gallery start task package.
When the APP is started, compiling the APP code, when compiling the APP code to a first stage of a starting stage, compiling a monitoring starting task and an environment starting task of the first stage, and respectively injecting a first stage mark Pre at an entry function of the monitoring starting task and the environment starting task of the first stage by adopting a section-oriented programming (AOP) technology in the compiling process; when the codes of the APP are compiled to a second stage of the starting stage, the monitoring starting task and the network starting task of the second stage are compiled, and identification load of the second stage is respectively injected to the entrance functions of the monitoring starting task and the network starting task of the second stage in the compiling process by adopting a tangent plane programming (AOP) technology; when the codes of the APP are compiled to a third stage of the starting stage, compiling a positioning starting task, a camera starting task and a gallery starting task of the third stage, and respectively injecting an identification Display facing to a section programming (AOP) technology into the entry functions of the positioning starting task, the camera starting task and the gallery starting task of the third stage in the compiling process; after the stage identification injection of the starting task of each stage in the APP code is completed, 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 of 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, where the preset internal task list 100 and the preset external task list 200 are the same in initial state. It will be appreciated that in some possible embodiments, the preset task list may also be one that includes a preset built-in task list 100 and a 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 modifiable 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 published. The following will describe how to obtain the preset task list, taking the preset task list including the preset internal task list 100 and the preset external task list 200 as an example.
And step 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 compiling the code of the APP. It will be appreciated that when the code compilation of the APP is completed, the client 300 will read the start task of the injected stage identifier in the compilation file to form a compilation task list.
For example, if at the code compilation period of the APP, the task is started according to the monitoring of the first stage set in the APP code by the developer and the environment is started; monitoring and starting tasks and network starting tasks in the second stage; and the positioning starting task, the camera starting task and the gallery starting task in the third stage are respectively injected with corresponding stage identifiers for each starting task. After the APP code is compiled, the client 300 reads the start task with the stage identifier together according to the compiled APP code to form a task list of the compiled file, or the client 300 reads the start task with the first stage identifier in the APP code according to the stage, and reads the start task with the second stage identifier after the start task is read, and so on until the start task with the stage identifier in the APP code is completely read.
Step S110, eliminating tasks which are not in a preset task list in the compiled task list to form a starting task list. It can be appreciated 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 the corresponding preset task list and the starting task corresponding to each stage, 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 reference; when the built-in task list 100 does not exist for a start task in a stage of the start tasks in the compiled file, the client 300 rejects the start task in the stage of 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 take the external task list 200 as the reference. When the external task list 200 does not exist for a start task in a stage of the start tasks in the compiled file, the client 300 rejects the start task in the stage of 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 compiling the file includes: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task and starting the task by a network; the third stage comprises: positioning a starting task, starting a camera, and starting a gallery. The client 300 reading the built-in task list 100 as the first stage includes: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task; the third stage comprises: and positioning a starting task and starting the task by the gallery. The client 300 compares the start task in the compiled file with the start task of the built-in task list 100 to obtain the task list of the compiled file, and the task list of the compiled file is more than the built-in task list 100 in the second stage and more than the network start task in the third stage and more than the camera start task. The client 300 performs the second stage network start task in the compiled file, and performs the rejection in the compiled file in the third stage camera start task. The obtaining of the starting task in the final compiled file as the first stage comprises: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task; the third stage comprises: and positioning a starting task and starting the task by the gallery.
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 compiling the file includes: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task and starting the task by a network; the third stage comprises: positioning a starting task, starting a camera, and starting a gallery. The client 300 reading the external task list 200 as the first stage includes: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task and starting the task by a network; the third stage comprises: positioning a starting task, a camera starting task and a gallery starting task. The client 300 compares the starting task in the compiled file with the starting task in the external task list 200 to obtain that the task list of the compiled file is the same as the starting task in the external task list 200, and the client 300 does not need to reject the starting task in the compiled file. If the external task list 200 differs from the starting task in the compiled file, the starting task in the compiled file is removed according to the example of the built-in task list 100.
Step S112, executing a starting task list, wherein the tasks in the starting task list are executed according to the sequence of the stage identifiers. It can be appreciated 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 according to the task list in the compiled file after the comparison of the compiled file with the built-in task list 100100. If the client 300 of the APP compares the task list of the compiled file with the built-in task list 100. The APP will sequentially execute the start task corresponding to the corresponding stage in 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 obtains a start task list consistent with the built-in task list 100 after comparing the task list of the compiled file with the built-in task list 100 according to step S110, the client 300 will sequentially execute the start task in the compiled file according to the stage identifier, and the execution sequence of the APP is that when the APP is running to the first stage, the APP will execute the monitor start task with the first stage identifier and then execute the environment 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 start task with a second stage mark; when the APP runs to the third stage, the APP starts to execute the positioning starting task with the third stage mark, and then executes the gallery starting task with the third stage mark.
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, the client 300 will sequentially execute the start tasks in the compiled file according to the stage identifier after obtaining the start task list consistent with the built-in task list 100. The execution sequence of the APP is that when the APP runs to a first stage, the APP executes the monitoring start task with the first stage mark and then executes the environment start task with the first stage mark; after the execution is finished; when the APP runs to the second stage, after the APP starts to execute the monitoring start task with the second stage mark, executing the network start task with the second stage mark; when the APP runs to the third stage, the APP starts to execute the positioning starting task with the third stage mark, then executes the camera starting task with the third stage, and then executes the gallery starting task with the third stage mark.
In the above embodiment, the starting task in the starting process may be dynamically adjusted in real time by setting the manner of using the built-in task list 100 and/or using the external task list 200. And 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 codes, thereby reducing the invasion to service codes, and the external task list 200 can be modified directly when the modification is needed, so that the expansibility of the codes can be increased.
In step S114, when the APP start instruction is the restart 2 instruction, the external task list 200 is read to obtain the preset task list. It can be appreciated that, when a starting failure occurs in a starting task at a certain starting stage, and when an operation and maintenance person changes the failed starting task and the like needs to modify the starting task in the compiled file in the starting process, the operation and maintenance person can change the starting task in the configuration file of the external task list 200, and can update the starting task in the configuration file of the external task list 200 without restarting the server 400.
For example, the second stage of the start task in the configuration file of the external task list 200 includes: when monitoring the starting task and the network starting task, the network task at the second stage is failed in the APP starting process, so that the APP starting failure is caused, the operation and maintenance personnel delete the network starting task in the configuration file of the external task list 200, after deleting the network starting task in the configuration file of the external task list 200, the server 400 is not required to be restarted, only the starting task at the second stage in the configuration file of the external task list 200 is monitored, and when the APP is restarted and accesses the configuration file of the external task list 200 in the server 400, only the starting task at the second stage is monitored.
The operation and maintenance personnel can self-define to change the starting task of the external task list 200 in the configuration file, 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 update starting task is realized.
It can be understood that, in step S114, when an abnormality occurs in APP start or an operation and maintenance person needs to change a start task in a configuration file storing the external task list 200, and the server 400 does not need to be replaced after the change, so that the start task can be changed more flexibly and efficiently, a hot update start task is realized, and when step S114 is omitted, an effect of controlling an APP start flow can be achieved. That is, in some possible embodiments, step S114 may be omitted
Please refer to fig. 3 in combination, which is a first sub-flowchart of the APP start flow control method provided in the embodiment of the present application, and fig. 5 is a schematic diagram of an APP start instruction provided in the embodiment of the present application. Step S104 specifically includes steps S302-S306.
Step S302, determining whether the detected instruction is a first start 1 instruction or a second start 2 instruction. It can be appreciated that after the APP is issued, when the user starts the APP, the APP determines whether the start is a first start 1 instruction or a second start 2 instruction according to the APP running log record. Or the developer writes a code segment for judging whether the code segment is the initial start 1 or not in the code to judge whether the initial start 1 instruction or the restart 2 instruction is executed at the time of the start.
For example, after the APP is issued, when the user starts the APP, the APP starts compiling the APP code, after the APP code is compiled, the client 300 checks the running log of the APP, and if there is no running log, determines that the start instruction of the APP is the initial start 1 instruction; if the running log exists, judging that the starting instruction of the APP is a restarting 2 instruction.
For example, after an APP is released, when a user starts the APP, the APP starts compiling the APP code, and after the APP code is compiled. And the APP starts to judge whether the starting is the initial starting instruction 1 according to the judging starting instruction written in the APP code by the developer.
In step S304, when the start instruction of the APP is the initial start 1 instruction, the built-in task list 100 is read to obtain the preset task list. It may be understood that, in this embodiment, the developer sets the built-in task list 100 by using the configuration file, so that when the initial start 1 instruction is executed after the execution of the APP is issued, the start flow of the APP may be controlled, and the preset built-in task list 100 is different from the compiled file, and in some possible embodiments, the start task in the compiled file may be set to be the same as the built-in start task when the client 300 determines that the APP is the initial start 1, after the code of the APP is compiled, the built-in task list 100 set by the developer is read, and when the built-in task list 100 set by the developer is read to obtain the task list of which start tasks should be executed at each stage when the APP executes the initial start 1 instruction.
For example, the developer writes the initiated task list in the built-in configuration file before publishing as the first stage: monitoring a starting task and starting the task in the environment; and a second stage: monitoring a starting task; and a third stage: and positioning a starting task and starting the task by the gallery. When the client 300 knows that the start instruction executed by the APP is the initial start 1 instruction through the running log, after compiling the code of the APP, the client starts to read the built-in task list 100 set by the developer. The built-in task list 100 is finally obtained as the first stage: monitoring a starting task and starting the task in the environment; and a second stage: monitoring a starting task; and a third stage: and positioning a starting task and starting the task by the gallery.
In step S306, when the start instruction of the APP is a restart 2 instruction, the external task list 200 is read to obtain the preset task list. It will be appreciated that in this embodiment, the configuration file is used by the operation and maintenance personnel to set the external task list 200, so that when the APP executes the restart 2 instruction, the start flow of the APP can be controlled, and the preset external task list 200 is different from the start task of the compiled file and also different from the built-in start task, and in some embodiments, the preset external task list 200 may be the same as the start task in both the compiled file and the built-in task list 100 or one of them. When the client 300 judges that the APP is restarted 2, after compiling the code of the APP, it starts to read the external task list 200 set by the operation and maintenance personnel, and reads the external task list 200 set by the operation and maintenance personnel to obtain a task list of which starting tasks should be executed at each stage when the APP executes the restart 2 instruction.
For example, the operation and maintenance personnel writing the start task list in the external task list 200 as the first stage includes: monitoring a starting task and starting the task in the environment; the second stage comprises: monitoring a starting task; the third stage comprises: positioning a starting task, a camera starting task and a gallery starting task. When the client 300 knows through the running log that the start instruction executed by the APP is not the initial start 1 instruction, after compiling the code of the APP, the external task list 200 set by the operation and maintenance personnel starts to be read. Finally, the external task list 200 is obtained as the first stage: monitoring a starting task and starting the task in the environment; and a second stage: monitoring a starting task; and a third stage: positioning a starting task, a camera starting task and a gallery starting task.
In the above embodiment, by judging whether the startup instruction executed by the APP is the initial startup 1 instruction, different task lists can be invoked according to different conditions, so that startup tasks of each stage can be set for the startup process more flexibly, and intrusion to service codes is reduced.
The present embodiments provide a computer readable storage medium storing a computer program for execution by a processor to implement some or all of the steps of any of the methods described in the embodiments above.
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, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, 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 also be an external terminal 10 storage device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are 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 for storing application software and various types of data installed in the terminal 10, but also for temporarily storing data that has been output or is to be output.
Bus 13 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 7, but not only one bus or one type of bus.
Further, the terminal 10 may also include a display component 14. The display assembly 14 may be a Light Emitting Diode (Light Emitting Diode) display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch device, 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.
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 a communication connection between the terminal 10 and other intelligent control devices.
The processor 12 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for executing program code or processing data stored in the computer readable storage medium 11. Specifically, the processor 12 executes a program to control the terminal 10APP start-up flow control method.
It will be appreciated that fig. 7 illustrates only a terminal 10 having components 11-15 and implementing an APP start procedure control method, and those skilled in the art will appreciate that the structure illustrated in fig. 7 is not limiting of the terminal 10 and may include fewer or more components than illustrated, or may combine certain components, or a different arrangement of components.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if and when such modifications and variations of the present application fall within the scope of the claims and their equivalents, the present application is intended to cover such modifications and variations.
The foregoing list of preferred embodiments of the present application is, of course, not intended to limit the scope of the claims hereof, and therefore, equivalent changes as set forth in the claims hereof are intended to fall within the scope of the present application.

Claims (10)

1. An APP start flow 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 is provided with a starting process, the starting process is divided into a plurality of starting stages, each starting stage corresponds to a different stage identifier, 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, and the plurality of starting stages are set by a developer in a development stage;
if a starting instruction of the APP is detected, compiling the APP, wherein when compiling the APP, corresponding stage identifiers are injected into the inlets of each stage task, each stage task is independently packaged into a starting task for each initialization method in the initialization starting task, and each stage corresponds to one or more starting tasks;
acquiring a preset task list, wherein the preset task list is a task list of each stage in the starting process;
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 compiling the code of the APP;
removing tasks which are not in the preset task list in the compiling 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 identifiers.
2. The APP start-up procedure control method of claim 1, wherein the predetermined task list is a built-in task list built in the APP.
3. The APP start-up procedure control method of claim 1, wherein the preset task list is an external task list externally located in the APP.
4. The APP start-up flow 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 built in the APP, the external task list is externally arranged on a server communicatively connected to the client, and obtaining the preset task list includes:
judging whether the instruction is a primary starting instruction or a secondary starting instruction, and when the instruction is the primary starting instruction, the primary starting instruction is a starting instruction for requesting to start the APP for the first time; the restarting instruction is a starting instruction for starting the APP without first request; the task list obtaining method specifically comprises the following steps:
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 start-up procedure control method of claim 4, wherein the external task list is externally located on a server communicatively connected to the client, and when the external task list is changed, the server communicatively connected to the client performs a hot update of the external task list.
6. The APP start-up 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 updating external task list is different from the initial external task list, wherein when the starting instruction of the APP is a restarting instruction, the reading of the external task list to obtain the preset task list specifically includes:
and when the starting instruction of the APP is a restarting instruction, reading the updated external task list to obtain the preset task list.
7. The APP start flow control method as set forth in claim 1, wherein each stage task and the corresponding stage identifier in the APP start process are stored in an array manner.
8. The APP start-up procedure control method of claim 7, wherein the configuration file is a Plist file or a json file.
9. A computer readable storage medium storing program instructions executable by a processor to implement the APP start procedure control method of any one of claims 1 to 8.
10. A terminal, the terminal comprising:
a computer readable storage medium storing program instructions; and
a processor for executing the program instructions to implement the APP start procedure 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 CN115080151A (en) 2022-09-20
CN115080151B true 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 (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218416A (en) * 2013-03-27 2013-07-24 华为技术有限公司 Method, device and system for loading database
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
CN108984395A (en) * 2018-06-21 2018-12-11 腾讯科技(北京)有限公司 A kind of application program launching time-consuming test method, device and storage medium
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
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
CN110413368A (en) * 2019-08-07 2019-11-05 上海千杉网络技术发展有限公司 Page switching method, device, electronic equipment and machine readable storage medium
US10467027B1 (en) * 2018-08-24 2019-11-05 Sap Se Dynamic script loading resource files
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
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
CN112667313A (en) * 2020-12-23 2021-04-16 广州三七互娱科技有限公司 Process starting method, device and system
CN112882804A (en) * 2016-08-17 2021-06-01 华为技术有限公司 Method and device for starting application
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

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8955142B2 (en) * 2011-03-21 2015-02-10 Mocana Corporation Secure execution of unsecured apps on a device
US9612809B2 (en) * 2014-05-30 2017-04-04 Microsoft Technology Licensing, Llc. Multiphased profile guided optimization
US10338899B2 (en) * 2016-10-24 2019-07-02 International Business Machines Corporation Dynamically compiled artifact sharing on PaaS clouds
US10437645B2 (en) * 2017-07-14 2019-10-08 Sap Se Scheduling of micro-service instances
US10359971B2 (en) * 2017-07-17 2019-07-23 Hewlett Packard Enterprise Development Lp Storing memory profile data of an application in non-volatile memory
CN109597655B (en) * 2017-09-28 2020-11-10 华为技术有限公司 Method and device for configuring application program
CN107766101B (en) * 2017-09-30 2021-02-19 五八有限公司 Method, device and equipment for processing App starting event
US10838750B2 (en) * 2019-01-10 2020-11-17 Red Hat, Inc. Combining ahead-of-time compilation and just-in-time compilation to improve application deployment
CN109901976B (en) * 2019-03-15 2023-04-07 维沃移动通信有限公司 Application program management method and terminal equipment
CN112948026A (en) * 2019-11-26 2021-06-11 Oppo广东移动通信有限公司 Hotspot code processing method and device, server, electronic equipment and storage medium
CN110955888B (en) * 2019-12-18 2023-10-27 海光信息技术股份有限公司 Application program data protection method, device, equipment and storage medium
CN111142976B (en) * 2019-12-25 2023-05-26 上海米哈游网络科技股份有限公司 Logic code execution method, device, server and medium
CN111222153B (en) * 2020-01-07 2023-04-07 腾讯科技(深圳)有限公司 Application program authority management method and device and storage medium
CN112148386A (en) * 2020-10-12 2020-12-29 Oppo广东移动通信有限公司 Application loading method and device and computer readable storage medium
CN112698888B (en) * 2020-12-28 2024-04-19 广州虎牙科技有限公司 Method and device for componentization, component calling and component initializing of application program

Patent Citations (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218416A (en) * 2013-03-27 2013-07-24 华为技术有限公司 Method, device and system for loading database
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
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
CN109445807A (en) * 2017-08-28 2019-03-08 腾讯科技(深圳)有限公司 Realize the method, apparatus and computer readable storage medium of application program update
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
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
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
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
CN112667313A (en) * 2020-12-23 2021-04-16 广州三七互娱科技有限公司 Process starting method, device and system
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
CN115080151A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
TWI581188B (en) The way to load the driver and the embedded device
JP2021002317A (en) Method, apparatus, device and storage medium for upgrading application
KR102485935B1 (en) Electronic device and operating method thereof
CN107368343B (en) Terminal starting method based on android system, terminal and storage medium
CN107783766B (en) Method and device for cleaning files of application program
CN111897570A (en) Multi-dependency file extraction method and device based on Maven plug-in
US8370618B1 (en) Multiple platform support in computer system firmware
CN108595319B (en) Function selection method and server
CN110825409B (en) Parameter management method, electronic device and computer storage medium
CN115080151B (en) APP starting flow control method, computer readable storage medium and terminal
CN111949529B (en) System debugging method, device, computer equipment and storage medium
CN113190279A (en) Pre-boot function control method, system and medium
KR100834676B1 (en) Method for building software project
CN116700768B (en) Application processing method and related device
WO2019137280A1 (en) Terminal anomaly repair method, apparatus, mobile terminal, and storage medium
CN113360251B (en) Intelligent contract execution and cross-contract calling method, device and storage medium
CN113342376B (en) Method and device for upgrading operating system of Internet of things equipment
CN112596823B (en) Safety control method and device and electronic equipment
CN110740382B (en) Method, device, television and medium for avoiding undesired automatic restart of television
CN113672267A (en) Parameter updating method and device
Gottschalk Energy refactorings
CN110321179B (en) Application program starting method, system, device and computer storage medium
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN114327574A (en) Differential upgrading method, electronic device and storage medium
CN113467801A (en) BMC firmware application updating method, BMC, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant