CN116661909A - Application program running method and device, terminal equipment and storage medium - Google Patents

Application program running method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN116661909A
CN116661909A CN202310956175.9A CN202310956175A CN116661909A CN 116661909 A CN116661909 A CN 116661909A CN 202310956175 A CN202310956175 A CN 202310956175A CN 116661909 A CN116661909 A CN 116661909A
Authority
CN
China
Prior art keywords
application program
preset
terminal equipment
target application
file
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
CN202310956175.9A
Other languages
Chinese (zh)
Other versions
CN116661909B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202310956175.9A priority Critical patent/CN116661909B/en
Priority claimed from CN202310956175.9A external-priority patent/CN116661909B/en
Publication of CN116661909A publication Critical patent/CN116661909A/en
Application granted granted Critical
Publication of CN116661909B publication Critical patent/CN116661909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The disclosure provides an application program running method, an application program running device, terminal equipment and a storage medium, and relates to the technical field of terminal equipment. Comprising the following steps: generating a preset running environment and a split application program corresponding to the target application program under the condition that the target application program which is not running exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected; controlling the splitting application program to run in a preset running environment so as to acquire a file to be compiled corresponding to the target application program; compiling the file to be compiled to obtain a compiling file required by the target application program when the terminal equipment runs. Therefore, when the terminal equipment is in a preset state, the split application program is operated in a preset operation environment, and the acquired file to be compiled is compiled, so that the compiled file can be directly used when the target application program is operated for the first time, and the speed of the target application program when the target application program is operated for the first time can be improved.

Description

Application program running method and device, terminal equipment and storage medium
Technical Field
The disclosure relates to the technical field of terminal equipment, and in particular relates to an application program running method, device, terminal equipment and storage medium.
Background
With the popularity of mobile internet and smart devices, there are more applications installed on terminal devices. When an application program downloaded for the first time or an updated application program is run on a terminal device for the first time, it is often necessary to compile or interpret the code of the application program into locally executable code so that the application program can be run. However, more time is typically consumed in the interpretation or compilation process, resulting in slower speeds of the application when it is first run.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art.
An embodiment of a first aspect of the present disclosure provides an operation method of an application program, including:
generating a preset running environment and a split application program corresponding to the target application program under the condition that the target application program which is not run exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected;
controlling the splitting application program to run in the preset running environment so as to acquire a file to be compiled corresponding to the target application program;
and compiling the file to be compiled to obtain a compiling file required by the target application program when the terminal equipment operates.
An embodiment of a second aspect of the present disclosure provides an application running apparatus, including:
the monitoring module is used for generating a preset running environment and a split application program corresponding to the target application program under the condition that the fact that the target application program which is not run exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected;
the simulation running module is used for controlling the splitting application program to run in the preset running environment so as to acquire a file to be compiled corresponding to the target application program;
and the compiling module is used for compiling the file to be compiled to acquire a compiling file required by the target application program when the terminal equipment runs.
An embodiment of a third aspect of the present disclosure provides a terminal device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the running method of the application program as proposed by the embodiment of the first aspect of the present disclosure when the processor executes the program.
An embodiment of a fourth aspect of the present disclosure proposes a computer-readable storage medium storing a computer program, which when executed by a processor, implements an operating method of an application program as proposed by an embodiment of the first aspect of the present disclosure.
The running method, the running device, the terminal equipment and the storage medium of the application program provided by the disclosure have the following beneficial effects:
in the embodiment of the disclosure, when it is detected that an unworn target application program exists in the terminal device and the current state of the terminal device is a preset state, a preset operation environment and a separate application program corresponding to the target application program are generated, the separate application program is controlled to operate in the preset operation environment to obtain a file to be compiled corresponding to the target application program, and finally the file to be compiled is compiled to obtain a compiling file required by the target application program when the terminal device operates. Therefore, when the terminal equipment is in a preset state, the split application program is operated in a preset operation environment, and the acquired file to be compiled is compiled, so that the compiled file can be directly used when the target application program is operated for the first time, and the speed of the target application program when the target application program is operated for the first time can be improved.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flowchart of a method for operating an application according to an embodiment of the disclosure;
FIG. 2 is a flowchart of a method for operating an application according to another embodiment of the present disclosure;
FIG. 2A is a flowchart illustrating a method for operating an application according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an application running device according to another embodiment of the present disclosure;
fig. 4 illustrates a block diagram of an exemplary terminal device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
An operation method, apparatus, terminal device, and storage medium of an application program of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
The embodiment of the disclosure is exemplified by the application running method being configured in the application running device, and the application running device can be applied to any terminal device, so that the terminal device can execute the running function of the application.
Fig. 1 is a flowchart of an operation method of an application according to an embodiment of the disclosure.
As shown in fig. 1, the method for operating the application program may include the steps of:
step 101, generating a preset running environment and a split application program corresponding to the target application program under the condition that the target application program which is not running exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected.
The target application program can be an application program which is newly downloaded in the terminal equipment and is not operated yet; the application program which is not operated after the version is updated and upgraded can also be used.
In some possible implementations, in a case that the terminal device is in a standby state, it is determined that the current state of the terminal device is a preset state.
It should be noted that, in the present disclosure, in order to avoid the influence of the normal use of the terminal device by the user when the splitting application runs in the preset running environment. Thus, in the case where the terminal device is in a standby state (i.e., the user does not use the terminal device), the separate application is run in the preset running environment.
Further, in order to avoid electricity consumption caused by the operation of the splitting application program in the preset operation environment, the use of the terminal equipment by the user is affected. And the current state of the terminal equipment can be determined to be a preset state under the condition that the current residual electric quantity of the terminal equipment is larger than the electric quantity threshold value and is in a standby state. And running the splitting application program in a preset running environment under the condition that the current residual electric quantity of the terminal equipment is larger than the electric quantity threshold value and is in a standby state.
The power threshold may be preset, for example, may be 80%,70%, or the like.
Optionally, the power threshold may also be determined according to whether the terminal device is in a charging state. For example, if the terminal device is not in a charging state, the power threshold may be 80%, and if the terminal device is in a charging state, the power threshold may be 50%. It should be noted that, the corresponding power threshold value when in the charge-discharge state may be smaller than the power threshold value when not in the charge state.
The preset running environment may be a pre-created environment for running the splitting application.
For example, the preset operation environment may include a virtual screen, in which the splitting application is displayed, so that the user can be prevented from seeing the operation of the splitting application on the physical screen of the actual terminal device, and the operation on the virtual screen will not affect the display of the physical screen.
The split application may be an application having the same function as the target application.
It should be noted that, even in the case where the target application already exists for the separate application, it is necessary to create a new separate application function program so as to generate a separate application program independent of the application program currently existing in the terminal device.
Step 102, controlling the splitting application program to run in a preset running environment so as to obtain a file to be compiled corresponding to the target application program.
In the embodiment of the disclosure, the control of the separate application program running in the preset running environment can avoid the problems of actual payment, subscription, safety and the like caused by the fact that the target application program runs in the preset running environment under the condition of binding the user account.
The file to be compiled may include a hotspot function and class information.
The hotspot function and class information can be functions and classes with higher execution frequency or occupying more execution time in the running process of the split application program.
It should be noted that, since the individual application program and the target application program are identical. Therefore, in the running process of the split application program, the executed hot spot function and class information are the hot spot function and class information corresponding to the target application program. Therefore, the file to be compiled corresponding to the target application program can be obtained in the running process of the splitting application program.
In some possible implementations, the splitting application program and the target application program may also have the same package name and program code, so that the generated hotspot functions and class information are the same, and the acquired file to be compiled may be placed under the related path of the package name.
And step 103, compiling the file to be compiled to obtain the compiling file required by the target application program when the terminal equipment runs.
In the embodiment of the disclosure, the file to be compiled is compiled, that is, the hot functions and class information in the file to be compiled are compiled into machine codes required by the running of the target application program. Namely, the compiling file contains machine codes corresponding to the hot spot functions and the class information. In some possible implementations, when the hot spot function and class information in the file to be compiled are increased, the increased hot spot function and class information can be compiled in time. The compiling can be performed if the hotspot function and the class information are acquired when the splitting application program runs in the preset running environment, and the compiling file is compiled after the splitting application program finishes running in the preset running environment.
In some possible implementation manners, if the target application function program is an updated application program, a compiled file corresponding to the application program before updating and upgrading can also be obtained, and further, based on a file to be compiled corresponding to the target application program, the compiled file corresponding to the application program before updating and upgrading is updated, so as to obtain a compiled file required by the target application program when the terminal device runs.
For example, when the compiled file corresponding to the application program before updating and upgrading does not include the hot spot function in the file to be compiled, the machine code compiled by the hot spot function is added to the compiled file corresponding to the application program before updating and upgrading.
In some possible implementation manners, after the compiling file required by the target application program when the terminal device runs is obtained, if the target application program needs to call the hotspot function and class when the target application program runs in the physical display screen of the terminal device, the machine code in the compiling file can be directly called, so that the first running speed of the target application program can be improved, the waiting time when the target application program is used by a user is further reduced, and the user experience is improved.
In the embodiment of the disclosure, when it is detected that an unworn target application program exists in the terminal device and the current state of the terminal device is a preset state, a preset operation environment and a separate application program corresponding to the target application program are generated, the separate application program is controlled to operate in the preset operation environment to obtain a file to be compiled corresponding to the target application program, and finally the file to be compiled is compiled to obtain a compiling file required by the target application program when the terminal device operates. Therefore, when the terminal equipment is in a preset state, the split application program is operated in a preset operation environment, and the acquired file to be compiled is compiled, so that the compiled file can be directly used when the target application program is operated for the first time, and the speed of the target application program when the target application program is operated for the first time can be improved.
Fig. 2 is a flowchart of an operation method of an application according to an embodiment of the disclosure, as shown in fig. 2, the operation method of the application may include the following steps:
step 201, when it is detected that there is an unworn target application in the terminal device and the current state of the terminal device is a preset state, generating a preset running environment and a separate application corresponding to the target application.
Step 202, based on preset control information, controlling the splitting application program to run in a preset running environment so as to obtain a file to be compiled corresponding to the target application program.
In some possible implementations, the preset control information may include at least one of:
the operation time length;
an interface access depth threshold; a kind of electronic device with high-pressure air-conditioning system
And (5) grouping operation instructions corresponding to the application program.
The operation duration may be a preset duration, for example, may be 5 minutes, 10 minutes, or the like.
In some possible implementations, the number of functions corresponding to the target application program may also be obtained, and then the running duration is determined based on the number of functions.
The greater the number of functions corresponding to the target application program, the longer the running time.
It will be appreciated that the greater the number of functions of the target application, the more complex the target application. Therefore, when running the splitting application to obtain the file to be compiled, a long running time is required to obtain the necessary hotspot functions and class information.
The interface access depth threshold may be referred to as a stack depth threshold of an interface, which refers to that in a target application program, navigation and operation can be performed through different interface levels, and a stack structure can be formed by a hierarchical relationship of each interface. The stack depth of an interface represents the number of interfaces in the interface stack at any given time. For example, the interface access depth threshold may be 2,3, etc.
For example, if the interface access depth threshold is 2, the return operation is needed from any one of the primary interfaces (main interfaces) of the target application program to enter the secondary interface, and then from any one of the secondary interfaces to enter the tertiary interface.
It should be noted that, the application program will often place the commonly used functions on the main interface, and the commonly used function menus are all placed preferentially, so that the requirement of searching the hotspot functions and the class information can be met without deep access depth.
The operation instruction corresponding to the splitting application may be an instruction for operating the splitting application. For example, clicking on an instruction corresponding to a function in the splitting application program, a instruction corresponding to a slide operation (slide up, slide down, slide left, slide right, etc.), a return operation instruction, etc.
In some possible implementations, in a process of controlling the splitting application to run in the preset running environment, if the current state of the terminal device is detected to be a non-preset state, the splitting application and the preset running environment are deleted.
In the embodiment of the disclosure, in the running process of the splitting application, if the residual electric quantity of the terminal device is lower than the electric quantity threshold value, or the terminal device is in the starting state or the shutdown state, the running of the splitting application is stopped, so that the running of the splitting application is avoided, and the normal use of the terminal device by a user is influenced. However, when the splitting application program runs, the acquired file to be compiled still contains part of hot spot functions and class information.
Or deleting the splitting application program and the preset operation environment after the control of the splitting application program is finished in the preset operation environment.
In the embodiment of the disclosure, if the splitting application program is finished running in the preset running environment, the splitting application program and the preset running environment can be directly deleted without considering the state of the terminal equipment, so that the splitting application program and the preset running environment are avoided, and resources of the terminal equipment are reused.
And 203, compiling the file to be compiled to obtain a compiling file required by the target application program when the terminal equipment runs.
In the embodiment of the disclosure, when it is detected that an unworn target application program exists in the terminal device and the current state of the terminal device is a preset state, a preset operation environment and a separate application program corresponding to the target application program are generated, and based on preset control information, the separate application program is controlled to operate in the preset operation environment to obtain a file to be compiled corresponding to the target application program, and finally the file to be compiled is compiled to obtain a compiling file required by the target application program when the terminal device operates. Therefore, when the terminal equipment is in a preset state, the separate application program is controlled to run in a preset running environment based on preset control information, so that the file to be compiled can be accurately and efficiently obtained, and the compiling file can be directly used when the target application program runs for the first time, and the speed of the target application program running for the first time is improved.
FIG. 2A is a flowchart illustrating a method for operating an application according to an embodiment of the present disclosure; as shown in fig. 2A, the terminal device may include an application installation module, a package management module, a detection module, a simulation operation module, a display module, and a compiling module. The running method of the application program comprises the following steps:
and the application installation module is used for installing the application to the package management module.
And the package management module sends the installation result of the application program to the monitoring module.
When the monitoring module monitors that the application is installed, whether the application is installed for the first time or updated is identified, and when the conditions are met, the monitoring module finds the time for the operation of the simulation application and notifies the simulation operation module to simulate the split application.
And under the condition that the scene management module in the simulation running module determines that the current state of the terminal equipment is a preset state, the notification packet management module creates a split application corresponding to the target application, and the notification display module creates a virtual display screen.
And further starting the splitting application program, binding and displaying the splitting application program on a newly built virtual screen in a splitting application starting stage, controlling the splitting application program to run in the preset running environment based on a simulation action list (comprising an operation instruction corresponding to the splitting application program) and a simulation strategy (such as interface access depth) in a simulation running module, and acquiring a file to be compiled.
And finally, notifying a compiling module to compile the file to be compiled so as to acquire the compiled file.
In order to implement the above embodiment, the present disclosure further proposes an operating device for an application program.
Fig. 3 is a schematic structural diagram of an operating device of an application provided in an embodiment of the disclosure.
As shown in fig. 3, the running apparatus 300 of the application may include:
the monitoring module 301 is configured to generate a preset operating environment and a split application corresponding to the target application when it is detected that a target application that has not been operated exists in the terminal device and a current state of the terminal device is a preset state;
the simulation running module 302 is configured to control the splitting application to run in a preset running environment, so as to obtain a file to be compiled corresponding to the target application;
and the compiling module 303 is configured to compile the file to be compiled to obtain a compiled file required by the target application program when the terminal device runs.
In some possible implementations, the simulation run module is specifically configured to:
and controlling the splitting application program to run in a preset running environment based on the preset control information.
In some possible implementations, the preset control information includes at least one of:
the operation time length;
interface access depth; a kind of electronic device with high-pressure air-conditioning system
And (5) grouping operation instructions corresponding to the application program.
In some possible implementations, the method further includes a first determining module configured to:
acquiring the number of functions corresponding to the target application program;
based on the number of functions, a run length is determined.
In some possible implementations, the method further includes a processing module configured to:
in the process of controlling the splitting application program to run in the preset running environment, if the current state of the terminal equipment is detected to be a non-preset state, deleting the splitting application program and the preset running environment, or;
after the control of the splitting application program is finished running in the preset running environment, the splitting application program and the preset running environment are deleted.
In some possible implementations, the method further includes a second determining module configured to:
and under the condition that the current residual electric quantity of the terminal equipment is larger than the electric quantity threshold value and is in a standby state, determining that the current state of the terminal equipment is a preset state.
In some possible implementations, the file to be compiled includes hotspot functions and class information.
The functions and specific implementation principles of the foregoing modules in the embodiments of the present disclosure may refer to the foregoing method embodiments, and are not repeated herein.
The running device of the application program in the embodiment of the present disclosure may first generate a preset running environment and a separate application program corresponding to the target application program when it is detected that an unworked target application program exists in the terminal device and the current state of the terminal device is a preset state, and control the separate application program to run in the preset running environment to obtain a file to be compiled corresponding to the target application program, and finally compile the file to be compiled to obtain a compiling file required by the target application program when the terminal device runs. Therefore, when the terminal equipment is in a preset state, the split application program is operated in a preset operation environment, and the acquired file to be compiled is compiled, so that the compiled file can be directly used when the target application program is operated for the first time, and the speed of the target application program when the target application program is operated for the first time can be improved.
In order to implement the above embodiment, the present disclosure further proposes a terminal device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the running method of the application program according to the previous embodiment of the disclosure when executing the program.
In order to implement the above-mentioned embodiments, the present disclosure also proposes a computer-readable storage medium storing a computer program, which when executed by a processor implements an operation method of an application program as proposed in the foregoing embodiments of the present disclosure.
Fig. 4 illustrates a block diagram of an exemplary terminal device suitable for use in implementing embodiments of the present disclosure. The terminal device 12 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the terminal device 12 is in the form of a general purpose computing device. The components of terminal device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry Standard architecture (Industry Standard Architecture; hereinafter ISA) bus, micro channel architecture (Micro Channel Architecture; hereinafter MAC) bus, enhanced ISA bus, video electronics standards Association (Video Electronics Standards Association; hereinafter VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnection; hereinafter PCI) bus.
Terminal device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory; hereinafter: RAM) 30 and/or cache memory 32. Terminal device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a compact disk read only memory (Compact Disc Read Only Memory; hereinafter CD-ROM), digital versatile read only optical disk (Digital Video Disc Read Only Memory; hereinafter DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods in the embodiments described in this disclosure.
Terminal device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with terminal device 12, and/or any devices (e.g., network card, modem, etc.) that enable terminal device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the terminal device 12 may communicate with one or more networks, such as a local area network (Local Area Network; hereinafter: LAN), a wide area network (Wide Area Network; hereinafter: WAN) and/or a public network, such as the Internet, via the network adapter 20. As shown, network adapter 20 communicates with other modules of terminal device 12 over bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with terminal device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the methods mentioned in the foregoing embodiments.
According to the technical scheme, under the condition that the fact that the target application program which is not operated exists in the terminal equipment and the current state of the terminal equipment is the preset state is detected, the preset operation environment and the split application program corresponding to the target application program are generated, the split application program is controlled to operate in the preset operation environment so as to obtain the file to be compiled corresponding to the target application program, and finally the file to be compiled is compiled so as to obtain the compiling file required by the target application program when the terminal equipment operates. Therefore, when the terminal equipment is in a preset state, the split application program is operated in a preset operation environment, and the acquired file to be compiled is compiled, so that the compiled file can be directly used when the target application program is operated for the first time, and the speed of the target application program when the target application program is operated for the first time can be improved.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
Furthermore, each functional unit in the embodiments of the present disclosure may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (10)

1. A method of operating an application program, comprising:
generating a preset running environment and a split application program corresponding to the target application program under the condition that the target application program which is not run exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected;
controlling the splitting application program to run in the preset running environment so as to acquire a file to be compiled corresponding to the target application program;
and compiling the file to be compiled to obtain a compiling file required by the target application program when the terminal equipment operates.
2. The method of claim 1, wherein the controlling the splitting application to run in the preset running environment comprises:
and controlling the splitting application program to run in the preset running environment based on preset control information.
3. The method of claim 1, wherein the preset control information comprises at least one of:
the operation time length;
interface access depth; a kind of electronic device with high-pressure air-conditioning system
And an operation instruction corresponding to the splitting application program.
4. A method according to claim 3, further comprising:
acquiring the function number corresponding to the target application program;
and determining the operation time length based on the function quantity.
5. The method as recited in claim 1, further comprising:
in the process of controlling the splitting application program to run in the preset running environment, if the current state of the terminal equipment is detected to be a non-preset state, deleting the splitting application program and the preset running environment, or;
and deleting the splitting application program and the preset operation environment after the splitting application program is controlled to be operated in the preset operation environment.
6. The method of any one of claims 1-5, further comprising:
and under the condition that the current residual electric quantity of the terminal equipment is larger than an electric quantity threshold value and is in a standby state, determining that the current state of the terminal equipment is a preset state.
7. The method according to any one of claims 1-5, wherein the file to be compiled includes hotspot functions and class information.
8. An apparatus for running an application, the apparatus comprising:
the monitoring module is used for generating a preset running environment and a split application program corresponding to the target application program under the condition that the fact that the target application program which is not run exists in the terminal equipment and the current state of the terminal equipment is a preset state is detected;
the simulation running module is used for controlling the splitting application program to run in the preset running environment so as to acquire a file to be compiled corresponding to the target application program;
and the compiling module is used for compiling the file to be compiled to acquire a compiling file required by the target application program when the terminal equipment runs.
9. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing a method of operating an application program according to any one of claims 1-7 when said program is executed.
10. A computer readable storage medium storing a computer program, which when executed by a processor, implements a method of operating an application program according to any one of claims 1-7.
CN202310956175.9A 2023-08-01 Application program running method and device, terminal equipment and storage medium Active CN116661909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310956175.9A CN116661909B (en) 2023-08-01 Application program running method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310956175.9A CN116661909B (en) 2023-08-01 Application program running method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116661909A true CN116661909A (en) 2023-08-29
CN116661909B CN116661909B (en) 2024-07-09

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180143817A1 (en) * 2016-11-23 2018-05-24 Beijing Xiaomi Mobile Software Co., Ltd. Method and equipment for executing a file
WO2019114506A1 (en) * 2017-12-14 2019-06-20 Oppo广东移动通信有限公司 Compilation optimization method and device, storage medium, intelligent terminal and server
CN111399928A (en) * 2018-12-14 2020-07-10 北京奇虎科技有限公司 Application program starting method and device, electronic equipment and readable storage medium
CN111625289A (en) * 2020-05-06 2020-09-04 小船出海教育科技(北京)有限公司 Method and device for quickly starting application program and electronic equipment
CN113031955A (en) * 2019-12-24 2021-06-25 Oppo广东移动通信有限公司 Application program pre-compiling method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180143817A1 (en) * 2016-11-23 2018-05-24 Beijing Xiaomi Mobile Software Co., Ltd. Method and equipment for executing a file
WO2019114506A1 (en) * 2017-12-14 2019-06-20 Oppo广东移动通信有限公司 Compilation optimization method and device, storage medium, intelligent terminal and server
CN111399928A (en) * 2018-12-14 2020-07-10 北京奇虎科技有限公司 Application program starting method and device, electronic equipment and readable storage medium
CN113031955A (en) * 2019-12-24 2021-06-25 Oppo广东移动通信有限公司 Application program pre-compiling method and device and electronic equipment
CN111625289A (en) * 2020-05-06 2020-09-04 小船出海教育科技(北京)有限公司 Method and device for quickly starting application program and electronic equipment

Similar Documents

Publication Publication Date Title
CN1174307C (en) Method, system and computer readable storage medium for automatic device driver
CN111984163B (en) Application icon display method and device and electronic equipment
EP0994415A2 (en) Apparatus and method for an install system for third party applications
CN102955706B (en) A kind of installation method of dual operating systems and guiding loading method
KR20110098567A (en) Method and apparatus for generating minimal boot image
CN107291950B (en) Form data updating method and device and computer equipment
CN104679540A (en) Computer system and computer system starting method
US20180247335A1 (en) Method and device for displaying app recommendation information
CN113760306B (en) Method and device for installing software, electronic equipment and storage medium
CN106909362A (en) The method and apparatus that the method and apparatus of BMC firmwares generation, BMC systems start
CN104199692A (en) Method, device and terminal for acquiring starting time of application program
CN102043662A (en) Data modification method for multiple operation systems
CN105389190A (en) Operating system starting method, apparatus and system
CN105138366A (en) Recognition software silent installation method and device
CN116661909B (en) Application program running method and device, terminal equipment and storage medium
US20130097412A1 (en) Performing A Boot Sequence In A Multi-Processor System
CN112836156A (en) Page switching method and device, electronic equipment and computer readable storage medium
CN116661909A (en) Application program running method and device, terminal equipment and storage medium
KR101478034B1 (en) Apparatus for analyzing code in contents, method thereof and computer recordable medium storing the method
CN101470616B (en) Pre-installation method and method for forming image pre-installation system
CN111475819B (en) Method and device for identifying abnormal terminal equipment, storage medium and electronic equipment
CN111367799B (en) Method, device, medium and electronic equipment for locating source code breakdown position
CN109634636B (en) Application processing method, device, equipment and medium
CN112667310A (en) Game engine editor starting method and device, electronic equipment and storage medium
CN110519650A (en) A kind of OSD language upgrade method, apparatus, electronic equipment 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