Application program running method and device, equipment and storage medium
By loading configuration files into the virtualized runtime unit of the terminal system, the high cost problem of switching business scenarios for terminal devices is solved, enabling rapid switching and cross-platform reuse, and reducing application development costs.
Patent Information
- Application Number
- CN202310830401.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2025-01-07
AI Technical Summary
In existing technologies, terminal devices need to redevelop applications when switching business scenarios, resulting in high costs, low efficiency, and an inability to achieve rapid switching.
By loading configuration files for different business scenarios into the virtualized runtime unit of the terminal system, and running the corresponding applications, rapid switching of business scenarios can be achieved.
It reduces the cost of switching business scenarios in terminal systems and enables the same application to run on different terminal systems, thereby reducing application development costs.
Smart Images

Figure CN119271288A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to an application program running method, device, equipment and storage medium. Background Art
[0002] At present, more and more terminals are connected to the network to achieve ubiquitous connection between things and things, and between things and people, and are widely used in various business scenarios, such as supermarkets, schools, enterprises, etc. Usually, for a certain business scenario, the terminal needs to run at least one application to implement the business functions in the business scenario.
[0003] In related technologies, developers often use different terminal device models and different development platforms (such as Android, Windows, Linux, IOS, etc.) to develop corresponding applications for different business scenarios based on the needs of the business side.
[0004] However, using the above method, if the business scenario of a terminal needs to be switched, developers can only redevelop the corresponding application and update the system firmware to switch the business scenario, resulting in high switching costs and low efficiency. Summary of the invention
[0005] The embodiment of the present application provides an application running method, apparatus, device and storage medium, which can realize fast switching of business scenarios in a terminal system and reduce the cost of switching business scenarios in the terminal system. The technical solution is as follows:
[0006] In one aspect, a method for running an application is provided, the method comprising:
[0007] In a virtualization operation unit of a terminal system, a first configuration file of a first business scenario is loaded to run at least one first application program, wherein the first configuration file indicates a configuration status of the at least one first application program, and the at least one first application program is used to implement a business function in the first business scenario;
[0008] If a business scenario switching occurs, obtaining a second configuration file of a second business scenario after the switching, where the second configuration file indicates a configuration of at least one second application, and the at least one second application is used to implement a business function in the second business scenario;
[0009] In the virtualization operation unit, the second configuration file is loaded to run the at least one second application program.
[0010] In another aspect, a device for running an application is provided, the device comprising:
[0011] A loading module, used to load a first configuration file of a first business scenario in a virtualized operation unit of a terminal system to run at least one first application, wherein the first configuration file indicates a configuration of the at least one first application, and the at least one first application is used to implement a business function in the first business scenario;
[0012] an acquisition module, configured to acquire, if a business scenario switching occurs, a second configuration file of a second business scenario after the switching, wherein the second configuration file indicates a configuration status of at least one second application program, and the at least one second application program is used to implement a business function in the second business scenario;
[0013] The loading module is further used to load the second configuration file in the virtualization operation unit to run the at least one second application program.
[0014] In some embodiments, the loading module is further used to:
[0015] In the virtualization operation unit, the second configuration file is parsed to obtain second configuration information and second version dependency information of the at least one second application, where the second version dependency information indicates versions of other applications on which the at least one second application depends;
[0016] Based on the second version dependency information, other applications on which the at least one second application depends are installed; based on the second configuration information, the at least one second application is installed.
[0017] In some embodiments, the loading module is further used for any of the following:
[0018] In the virtualization operation unit, uninstalling the at least one first application, and installing the at least one second application based on the second configuration file;
[0019] In the virtualization operation unit, based on the difference between the first configuration file and the second configuration file, a first application program that is not applicable to the second business scenario among a plurality of first applications programs is uninstalled, and a second application program that is applicable to the second business scenario is installed.
[0020] In some embodiments, the apparatus further comprises:
[0021] A first query module, configured to query the first configuration file at intervals of a first time length;
[0022] The loading module is further configured to load the updated first configuration file, if it is found that the first configuration file is updated, so as to run the updated at least one first application program.
[0023] In some embodiments, the apparatus further comprises:
[0024] A second query module, configured to query the service scenario of the terminal at intervals of a second time length;
[0025] The acquisition module is configured to acquire the second configuration file if it is found that the service scenario of the terminal is switched from the first service scenario to the second service scenario.
[0026] In some embodiments, the virtualization operation unit is a container or a virtual machine.
[0027] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the application running method in the embodiment of the present application.
[0028] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the application program running method in the embodiment of the present application.
[0029] On the other hand, a computer program product is provided, the computer program product includes at least one computer program, the at least one computer program is stored in a computer-readable storage medium. A processor of a computer device reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program, so that the computer device executes to implement the application program running method in the embodiment of the present application.
[0030] In an embodiment of the present application, in a virtualized operation unit of a terminal system, configuration files of different business scenarios are loaded to run applications corresponding to different business scenarios, thereby realizing rapid switching of business scenarios in the terminal system and greatly reducing the cost of switching business scenarios in the terminal system; moreover, by loading configuration files in the virtualized operation unit to run corresponding applications, the same application can be run on different terminal systems, thereby reducing the development cost of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is a schematic diagram of an implementation environment of the application program running method provided in an embodiment of the present application;
[0033] Figure 2 is a flowchart of an application program running method provided according to an embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of an application program operation provided according to an embodiment of the present application;
[0035] Figure 4 is a flowchart of another application running method provided according to an embodiment of the present application;
[0036] Figure 5 is a schematic diagram of a virtualized operation unit provided according to an embodiment of the present application;
[0037] Figure 6 is a schematic diagram of an application program running method provided according to an embodiment of the present application;
[0038] Figure 7 It is a structural diagram of an application running device provided according to an embodiment of the present application;
[0039] Figure 8 It is a schematic diagram of the structure of a terminal provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms.
[0043] These terms are only used to distinguish one element from another. For example, a first application can be referred to as a second application, and similarly, a second application can be referred to as a first application without departing from the scope of the various examples. Both the first application and the second application can be applications, and in some cases, can be separate and different applications.
[0044] Here, at least one refers to one or more than one, for example, at least one application can be one application, two applications, three applications, or any other application that is an integer greater than or equal to one. And multiple refers to two or more than two, for example, multiple applications can be two applications, three applications, or any other application that is an integer greater than or equal to two.
[0045] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the configuration files involved in this application are all obtained with full authorization.
[0046] The following is an introduction to the technologies that may be used in this application.
[0047] Virtualization technology is a technology that combines or partitions existing computer resources (processors, memory, disk space, etc.) so that these resources appear as one or more operating environments, thereby providing access methods that are superior to the original resource configuration. In other words, virtualization is to transform physical resources into logically manageable resources to break down the barriers between physical structures. The virtualized operating environment requires the coordination of multiple technologies: server and operating system virtualization, storage virtualization, as well as system management, resource management and software submission, and an application environment that is consistent with the non-virtualized environment.
[0048] Container is a lightweight, operating system-level virtualization technology that allows applications and their dependencies to run in the process of resource isolation. All necessary components required to run the application are packaged as a single image, which can be reused. When the image is running, it runs in an independent environment and does not share the host operating system's memory, central processing unit (CPU) or disk with other applications. This ensures that the process in the container will not affect any process outside the container. For example, Docker is an open source application container engine. Developers can package applications and dependent packages into a portable container and then publish them to any popular Linux machine, and virtualization can also be achieved. It should be noted that the container implementation scheme involved in this application includes but is not limited to Web frameworks, applet frameworks, React (a JavaScript library for building user interfaces) frameworks, Flutter (an open source toolkit for building user interfaces) frameworks, etc.
[0049] A virtual machine is a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. Any work that can be done in a physical computer can be done in a virtual machine. When creating a virtual machine in a computer, part of the hard disk and memory capacity of the physical machine needs to be used as the hard disk and content capacity of the virtual machine. Each virtual machine has an independent chip, hard disk, and operating system that stores basic computer startup information, and the virtual machine can be operated just like a physical machine.
[0050] The Internet of Things (IoT), or "Internet of Everything Connected", is an extended and expanded network based on the Internet. It combines various information sensing devices (also called IoT devices) with the network to form a huge network, realizing the interconnection of people, machines and things at any time and any place.
[0051] Joint debugging is usually the last step before software development is completed. Its main task is to integrate different subsystems and modules into the final complete application to verify the integrity and accuracy of the system. Joint debugging includes system testing, regression testing, performance testing, security testing and other aspects. It is the key to ensuring program quality and stability.
[0052] The implementation environment of this application is introduced below.
[0053] Figure 11 is a schematic diagram of an implementation environment of an application program running method provided in an embodiment of the present application. The implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected via a wired network or a wireless network, and the present application does not limit this.
[0054] Terminal 101 includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. Schematically, in a certain business scenario, terminal 101 can install and run at least one application to implement the business function in the business scenario, and the business scenario is, for example, a supermarket scenario, a school scenario, an enterprise scenario, a vehicle driving scenario, etc., and the present application is not limited thereto. Business functions are, for example, payment services, identity authentication services, or vehicle navigation services, etc., and the present application is not limited thereto. Taking the business scenario as a supermarket scenario as an example, terminal 101 is a payment device, and multiple applications such as business applications (Application, App), palm brushing software development kit (Software Development Kit, SDK), face brushing SDK, and device management App are running on the payment device. These applications are used to collaboratively implement payment services in supermarket scenarios, such as palm brushing payment services, face brushing payment services, etc. Those skilled in the art can know that the number of the above-mentioned terminals 101 can be more. For example, the above-mentioned terminals 101 are dozens or hundreds, or more, and the embodiment of the present application does not limit the number and device type of terminals 101. In some embodiments, terminal 101 is also called an Internet of Things device.
[0055] The server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The number of the above-mentioned servers 102 can be more or less, and the embodiments of the present application are not limited to this. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services. In the embodiments of the present application, the server 102 is used to provide background services for the terminal 101. For example, the developer stores the relevant configuration files of the terminal 101 to the server 102, so that the terminal 101 can obtain the relevant configuration files from the server 102, and these configuration files can guide the terminal 101 to install and update the application.
[0056] In some embodiments, the wired or wireless network described above uses standard communication technology and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network, or any combination of a virtual private network. In some embodiments, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0057] Based on the above Figure 1In the implementation environment shown, the present application provides an application running method, which can realize the rapid switching of business scenarios in the terminal system, greatly reducing the cost of switching business scenarios in the terminal system. It should be understood that usually in a certain business scenario, the terminal needs to run multiple applications to realize the business functions in the business scenario. In the related technology, these applications are responsible for different development teams, and they are independently developed, deployed and upgraded. Moreover, developers often use different terminal device models and different development platforms (such as Android, Windows, Linux, IOS, etc.) to develop corresponding applications according to the needs of the business party for different business scenarios, resulting in high development and maintenance costs of the application. In addition, since different business scenarios often use different applications, if it is necessary to switch the business scenario of a certain terminal, the developer can only redevelop the corresponding application and use the method of updating the system firmware to realize the switching of the business scenario, resulting in high switching costs and low efficiency. The present application provides a virtualized operation unit of a terminal system. By running the application in the virtualized operation unit, not only the rapid switching of the business scenario is realized, but also the same application can be run on different terminal systems, which greatly reduces the development cost of the application. For more specific descriptions, please refer to the following embodiments.
[0058] Figure 2 1 is a flow chart of a method for running an application program according to an embodiment of the present application. Figure 2 As shown, the method is executed by a terminal, and schematically, the method includes the following steps 201 to 203.
[0059] 201. The terminal loads a first configuration file of a first business scenario in a virtualized operation unit of a terminal system to run at least one first application, wherein the first configuration file indicates a configuration status of the at least one first application, and the at least one first application is used to implement a business function in the first business scenario.
[0060] In the embodiments of the present application, the terminal system refers to the operating system running on the terminal, and the development platform of the terminal system is, for example, Android, Windows, Linux, IOS, etc., which is not limited in the present application. A virtualization operation unit is pre-installed in the terminal system, and the virtualization operation unit can load the configuration file of the business scenario to run at least one application program, thereby realizing the business function in the business scenario. Among them, the business scenario refers to the usage scenario of the terminal, such as a supermarket scenario, a school scenario, an enterprise scenario, a vehicle driving scenario, etc., and the present application is not limited thereto. The business function refers to the function provided by the terminal to the user in a certain business scenario, such as a payment service, an identity authentication service, or a vehicle navigation service, etc., and the present application is not limited thereto.
[0061] Schematically, the virtualized operation unit is a container or a virtual machine, etc. Taking the virtualized operation unit as a container as an example, the implementation scheme of the container includes but is not limited to a Web framework, a mini-program framework, a React (a JavaScript library for building user interfaces) framework, a Flutter (an open source toolkit for building user interfaces) framework, and the like. It should be noted that the implementation method of the virtualized operation unit here is only an example. In actual applications, other lightweight virtualization technologies can also be used to implement it.
[0062] It should be understood that since the terminal runs the application in the virtualized operation unit of the terminal system, the same application can run on different terminal systems, thereby reducing the development cost of the application. In this way, developers can develop for a universal virtualized operation unit without having to develop applications separately for each development platform. That is, the virtualized operation unit provided by the present application can achieve cross-platform reuse. Figure 3 , Figure 3 Schematic diagram of an application program operation provided according to an embodiment of the present application. Figure 3 As shown, taking the virtualized operation unit as a container as an example, both the terminal system developed based on the Android platform and the terminal system developed based on the Windows platform can pre-install the virtualized operation unit and run the same application, thereby achieving cross-platform reuse and greatly reducing the development cost of the application. In contrast, in the related art, the applications running in the terminal system developed based on the Android platform and the terminal system developed based on the Windows platform are developed separately, resulting in a high development cost for the application.
[0063] 202. If a business scenario switch occurs, the terminal obtains a second configuration file of a second business scenario after the switch, where the second configuration file indicates a configuration of at least one second application, and the at least one second application is used to implement a business function in the second business scenario.
[0064] In the embodiment of the present application, business scenario switching refers to the switching of the use scenario of the terminal, that is, switching from the first business scenario to the second business scenario. For example, the developer configures the terminal according to the needs of the first business party so that it can provide the first business party with business functions under the first business scenario. Later, if the first business party no longer needs to use the terminal, the developer can configure the terminal according to the needs of the second business party so that it can provide the second business party with business functions under the second business scenario, that is, the terminal has a business scenario switch. Based on this, the terminal obtains the second configuration file of the second business scenario after the switch in order to perform the business scenario switch.
[0065] 203. The terminal loads a second configuration file in the virtualization running unit to run at least one second application program.
[0066] In the embodiment of the present application, the terminal implements rapid switching of service scenarios by loading the second configuration file in the virtualization operation unit.
[0067] In summary, in the virtualized operation unit of the terminal system, by loading configuration files of different business scenarios, the applications corresponding to different business scenarios are run, thereby realizing rapid switching of business scenarios in the terminal system, which greatly reduces the cost of switching business scenarios in the terminal system; moreover, by loading configuration files in the virtualized operation unit to run the corresponding applications, the same application can be run on different terminal systems, thereby reducing the development cost of the application.
[0068] Reference below Figure 4 , a detailed introduction to the application running method provided by this application is given.
[0069] Figure 4 FIG. 1 is a flowchart of another method for running an application program according to an embodiment of the present application. Figure 4 As shown, the method is executed by a terminal, and illustratively, the method includes the following steps 401 to 406.
[0070] 401. The terminal starts a virtualization operation unit of the terminal system.
[0071] In an embodiment of the present application, a virtualization operation unit is pre-installed in the terminal system, and the virtualization operation unit can be applied to a variety of terminal systems. This application does not limit this. Please refer to the aforementioned step 201 for details and will not be repeated here. It should be understood that the virtualization operation unit is pre-installed when the terminal leaves the factory, that is, the terminal has the ability to run applications when it leaves the factory. Schematically, developers can develop and adapt virtualization operation units for different development platforms. This process includes: providing a unified operating environment for each development platform, so that applications can run on different platforms, while isolating the differences between the underlying platforms and systems, so that the application does not need to care about the underlying differences.
[0072] 402. The terminal obtains a first configuration file for a first business scenario, where the first configuration file indicates a configuration status of at least one first application program, and the at least one first application program is used to implement a business function in the first business scenario.
[0073] In an embodiment of the present application, the terminal obtains a first configuration file from a server, wherein the server is used to provide background services for the terminal, and a first configuration file is stored on the server, and the first configuration file can guide the terminal to install and update at least one first application. Schematically, the developer develops at least one first application based on the program development information of the virtualization operation unit and the first business scenario, creates a first configuration file, and uploads the first configuration file to the server, and the program development information indicates the program development requirements of the first business scenario, for example, the program development information includes the scenario information of the business scenario, the function information provided by the application, etc., and the present application is not limited thereto. That is, the developer follows the specifications of the virtualization operation unit and the program development requirements of the first business scenario to develop at least one first application so as to run in the virtualization operation unit. Among them, if the number of first applications is multiple, the developer jointly debugs multiple first applications to ensure the compatibility and stability between the multiple first applications. For example, in the joint debugging process, according to the interface call, data exchange, and version dependency information between the multiple first applications, the first configuration file is adjusted in time to ensure that the multiple first applications can smoothly realize the business functions under the first business scenario.
[0074] In some embodiments, the first configuration file indicates first configuration information and first version dependency information of at least one first application program. The first configuration information and the first version dependency information are introduced below.
[0075] The first configuration information includes at least one of the following: a program plug-in of at least one first application, interface call information of at least one first application, scene configuration information of at least one first application, etc. Among them, the program plug-in can facilitate the virtualization operation unit to dynamically load and unload the first application (of course, other dynamic technologies can also be used to realize dynamic loading and unloading of applications, which is not limited in this application), the interface call information can indicate the interface call and data exchange between multiple first applications, and the scene configuration information can indicate the personalized configuration of the first business scene, thereby dynamically changing the behavior of an application in different business scenes, which helps to reduce the number of applications and reduce the development cost of applications. For example, for an interface display application, if in a supermarket scene, the scene configuration information of the application indicates that the style of the user interface is a supermarket style (such as bright colors and rich interface control styles), if in an enterprise scene, the scene configuration information of the application indicates that the style of the user interface is an enterprise style (such as single color and simple interface control style), etc., and this application is not limited to this.
[0076] The first version dependency information indicates the versions of other applications that the running of at least one first application depends on. Dependency refers to a concept in software development, indicating that a project needs to rely on other components or libraries to run normally. In an embodiment of the present application, the first version dependency information is used to indicate the versions of other applications that the running of the first application depends on, so that the virtualization operation unit can automatically obtain the corresponding version of the dependent program from the server for installation according to the first version dependency information, thereby ensuring compatibility and stability between applications.
[0077] It should be noted that the above introduction to the first configuration file is only an example. The first configuration file can also indicate other information, such as the update frequency of the first application, etc. The present application is not limited to this. In actual applications, the content of the first configuration file can be dynamically adjusted according to needs.
[0078] In addition, the above-mentioned first configuration file is created by a developer to develop a corresponding application according to the program development information of the first business scenario. In some embodiments, the terminal calls the configuration file generation model, inputs the program development information of the first business scenario into the configuration file generation model, and generates the first configuration file through the configuration file generation model. Among them, the configuration file generation model can be deployed on the terminal or on the server. The terminal triggers the server to call the configuration file generation model to generate the first configuration file by sending a configuration file acquisition request to the server. Schematically, the configuration file generation model is based on the program development information and historical configuration files of historical business scenarios, and an artificial intelligence (AI) model is trained. For example, the configuration file generation model is a convolutional neural network (CNN) model or a recurrent neural network (RNN) model, etc. This application does not limit the specific type of the configuration file generation model.
[0079] Schematically, the program development information and historical configuration files of historical business scenarios are used as training samples to illustrate the training process of the configuration file generation model. The training process includes: inputting the program development information of the sample business scenario into the initial AI model to obtain the predicted configuration file of the sample business scenario; determining the loss value of the AI model according to the difference between the predicted configuration file and the labeled configuration file of the sample business scenario; updating the model parameters of the AI model according to the loss value of the AI model until the training cutoff condition is reached to obtain a trained configuration file generation model. The configuration file generation model obtained after training can automatically generate the corresponding configuration file according to the program development information of any business scenario. It should be noted that the training process of the above-mentioned configuration file generation model may also include other steps or other optional implementation methods, which are not limited in this application. In addition, the configuration file generation model of the embodiment of the present application is not limited to the above-mentioned types. Any other network based on machine learning or deep learning and for generating configuration files can be used as the configuration file generation model of the embodiment of the present application.
[0080] Generating configuration files through the configuration file generation model can reduce the workload of developers and improve efficiency. Moreover, the configuration files generated by the configuration file generation model can be provided to developers for further verification and updating by the developers, thereby ensuring the accuracy of the configuration files and achieving the purpose of assisting developers.
[0081] 403. The terminal loads a first configuration file in a virtualization operation unit to run at least one first application program.
[0082] In an embodiment of the present application, the terminal parses the first configuration file in the virtualized operation unit to obtain the first configuration information and the first version dependency information of at least one first application, wherein the first version dependency information indicates the version of other applications on which the at least one first application depends; based on the first version dependency information, the other applications on which the at least one first application depends are installed, and based on the first configuration information, the at least one first application is installed. In this way, the terminal can run at least one first application in the virtualized operation unit to implement the business function in the first business scenario.
[0083] 404. The terminal queries the first configuration file at a first time interval, and if it is found that the first configuration file is updated, loads the updated first configuration file to run the updated at least one first application.
[0084] In an embodiment of the present application, the first duration is a preset duration and can be configured according to demand. For example, the first duration is one week, but the present application is not limited thereto. It should be understood that the server is used to provide background services for the terminal. If there is a need to upgrade at least one first application, the developer can update the first configuration file and upload the updated first configuration file to the server, so that the terminal can regularly query the first configuration file stored on the server to determine whether the first configuration file has been updated. If it is found that the first configuration file has been updated, the updated first configuration file is loaded to run the updated at least one first application. Among them, the process of the terminal loading the updated first configuration file is the same as the above step 403, so it will not be repeated.
[0085] It should be noted that the above step 404 is an optional step, and the terminal can also use other methods to learn whether the first configuration file is updated. For example, if the first configuration file is updated, the server sends a notification message to the terminal so that the terminal can obtain the updated first configuration file in time, thereby saving communication resources between the terminal and the server.
[0086] In addition, since the terminal runs the application in the virtualized operation unit of the terminal system, or in other words, the present application dynamically integrates at least one application in a virtualized operation unit, the present application can timely update at least one first application by loading an updated first configuration file, thereby simplifying the management and upgrade process of the application and reducing the maintenance cost of the application.
[0087] After the above steps 401 to 404, the present application provides a method for loading a configuration file in a virtualized operation unit to run an application, thereby realizing a business function in a certain business scenario. In some cases, the terminal may switch business scenarios. Based on this, the present application provides a method for quickly switching business scenarios in a terminal system. This process is introduced below.
[0088] 405. The terminal queries the business scenario of the terminal every second time period. If it is found that the business scenario of the terminal is switched from the first business scenario to the second business scenario, a second configuration file of the second business scenario is obtained, where the second configuration file indicates the configuration of at least one second application, and the at least one second application is used to implement the business function in the second business scenario.
[0089] In an embodiment of the present application, the second duration is a preset duration, which can be configured according to demand, for example, the second duration is one month, and the present application is not limited thereto. It should be understood that the server is used to provide background services for the terminal. If the terminal has a business scenario switching demand, the developer can create a second configuration file based on the program development information of the second business scenario after switching and the virtualized operation unit, and upload the second configuration file to the server (this process is the same as the creation process of the first configuration file, so it will not be repeated), so that the terminal can regularly query the server to determine whether the terminal business scenario has switched. If the business scenario is queried to switch, the second configuration file is obtained. In some embodiments, when the terminal queries that the business scenario has switched, the configuration file generation model is called, the program development information of the second business scenario is input into the configuration file generation model, and the second configuration file is generated by the configuration file generation model. This process is the same as the process of generating the first configuration file in the aforementioned step 402, so it will not be repeated. In addition, by regularly querying the terminal to know whether the business scenario switching occurs, it is possible to avoid the user of the terminal switching the business scenario by himself, that is, the switching of the business scenario is determined by the developer, so that the security of the terminal can be ensured.
[0090] In some embodiments, the second configuration file indicates second configuration information and second version dependency information of at least one second application. It should be noted that the specific contents of the second configuration information and the second version dependency information are the same as the first configuration information and the first version dependency information, so they are not repeated here. Schematically, the second configuration information includes at least one of the following: a program plug-in of at least one second application, interface call information of at least one second application, scene configuration information of at least one second application, and so on. The second version dependency information indicates the versions of other applications on which the running of at least one second application depends.
[0091] 406. The terminal loads a second configuration file in the virtualization running unit to run at least one second application program.
[0092] In an embodiment of the present application, the terminal parses the second configuration file in the virtualized operation unit to obtain the second configuration information and second version dependency information of at least one second application, wherein the second version dependency information indicates the version of other applications on which the at least one second application depends; based on the second version dependency information, the other applications on which the at least one second application depends are installed, and based on the second configuration information, the at least one second application is installed. In this way, the terminal can run at least one second application in the virtualized operation unit to implement the business functions in the second business scenario.
[0093] In some embodiments, the terminal loads the second configuration file in the virtualization operation unit to run at least one second application program, including any of the following methods:
[0094] Method 1: The terminal uninstalls at least one first application in the virtualized operation unit and installs at least one second application based on the second configuration file. That is, the terminal uninstalls the application running before the switch in the virtualized operation unit, and automatically installs the corresponding application according to the configuration file obtained after the switch, so that the accuracy of the application running after the business scenario is switched can be ensured.
[0095] Method 2: In the virtualized operation unit, the terminal uninstalls the first application that is not applicable to the second business scenario among multiple first applications based on the difference between the first configuration file and the second configuration file, and installs the second application that is applicable to the second business scenario. It should be understood that different business scenarios may be applicable to the same application, or in other words, there is a possibility of overlap between the applications corresponding to different business scenarios. In this case, the terminal can uninstall the application that is not applicable to the business scenario after switching, and install the application that is applicable to the business scenario after switching, based on the difference between the configuration files of the two business scenarios. For example, the first business scenario is a supermarket scenario, and the corresponding multiple first applications include program A, program B and program C. The second business scenario is an enterprise scenario, and the corresponding multiple second applications include program A, program B and program D. In this way, the terminal can uninstall program C and install program D based on the difference between the configuration files of the two business scenarios, thereby saving the installation resources consumed by the business scenario switching. It should be noted that the difference between the configuration files also includes the difference between the version dependency information of the application, which will not be repeated here.
[0096] In summary, in the application running method provided in the embodiment of the present application, in the virtualization running unit of the terminal system, by loading configuration files of different business scenarios, the applications corresponding to different business scenarios are run, thereby realizing rapid switching of business scenarios in the terminal system, which greatly reduces the cost of switching business scenarios in the terminal system; moreover, by loading configuration files in the virtualization running unit to run the corresponding application, the same application can be run on different terminal systems, thereby reducing the development cost of the application.
[0097] Reference below Figure 5 and Figure 6 , an example is given to illustrate the application running method provided in this application.
[0098] Based on the above Figures 2 to 4As can be seen from the content shown, the application running method provided by the present application provides a virtualized running unit of a terminal system, which can be applied to a variety of terminal systems, so that the same application can be run on different terminal systems. Figure 5 , Figure 5 is a schematic diagram of a virtualized operation unit provided according to an embodiment of the present application. Figure 5 As shown, taking the terminal system as an operating system developed based on the Android platform as an example, the terminal system starts a virtualized operation unit, i.e., a container, in which multiple applications are run to realize corresponding business functions. The terminal is connected to the server in communication, and the server is used to provide background services for terminal functions. Schematically, the background services provided by the server include: business scenarios, version dependency orchestration, application configuration, application source installation packages, etc., but the present application is not limited thereto. It should be noted that each application can be developed and deployed as an independent module, which is convenient for subsequent maintenance and upgrading. For example, a program plug-in can be used to realize dynamic installation and uninstallation of the application, thereby improving the flexibility of application management. Moreover, through version dependency orchestration, version dependency information can be generated, so that the virtualized operation unit can automatically obtain the corresponding version of the dependent program from the server for installation according to the version dependency information, ensuring the compatibility and stability between applications. Furthermore, by flexibly combining and configuring the applications running in the virtualized operation unit, the needs of different business scenarios can be met, thereby realizing rapid switching of business scenarios. For example, in the supermarket scenario, the virtualized operation unit runs program A (supermarket application App), program B (face recognition SDK) and program C (palm recognition SDK); in the enterprise scenario, the virtualized operation unit runs program D (enterprise application App) and program B (face recognition SDK). In addition, through application configuration, the behavior of an application in different business scenarios can be dynamically changed, which helps to reduce the number of applications and reduce the development cost of applications. For details, see the scenario configuration information shown in the aforementioned step 402, which will not be repeated here. It can be seen that the present application provides an efficient, flexible and stable application management and operation environment for applications running on the terminal.
[0099] Reference below Figure 6 , combined with the development process of developers, the application running method provided by this application is introduced. Figure 6 Schematic diagram of an application program operation method provided according to an embodiment of the present application. Figure 6 As shown, the method includes the following five stages:
[0100] The first stage is the development and pre-installation of virtualized operating units. Developers can develop and adapt virtualized operating units for different development platforms. This process includes: providing a unified operating environment for each development platform so that applications can run on different platforms, isolating the differences between the underlying platforms and systems so that applications do not need to care about the underlying differences. Then, the terminal is pre-installed with the developed virtualized operating unit when it leaves the factory, that is, the terminal has the ability to run applications when it leaves the factory.
[0101] The second stage is application development and upload. In this stage, developers develop multiple applications based on the virtualized operating unit, and create corresponding configuration files (such as application configuration information and version dependency information) according to the business scenario, and upload the configuration files to the server. In this process, multiple applications are debugged to ensure their compatibility and stability to complete the development of business functions. In some embodiments, developers can also use trained configuration file generation models to assist in creating configuration files.
[0102] The third stage is application deployment. In this stage, the terminal starts the virtualized operation unit of the terminal system, obtains the current configuration file of the terminal from the server, loads the configuration file to install the corresponding application, runs the application, and provides the corresponding business functions for the user.
[0103] The fourth stage is application upgrade (also called application update). If there is a need to upgrade the application currently running in the virtualized operation unit, the developer can update the configuration file and upload the updated configuration file to the server, so that the terminal can regularly query the configuration file stored on the server to determine whether the configuration file has been updated. If the configuration file is updated, the updated configuration file is automatically loaded to run the updated application.
[0104] The fifth stage is business scenario switching. If the terminal has a business scenario switching requirement, the developer can create a corresponding configuration file based on the business scenario and virtualized operation unit after the switch, and upload the configuration file to the server, so that the terminal can regularly query the server to determine whether the terminal business scenario has switched. If the query finds that the business scenario has switched, the new configuration file is loaded in time to complete the rapid switching of the business scenario. In some embodiments, the developer can also use the trained configuration file generation model to assist in creating the configuration file for the business scenario after the switch.
[0105] In summary, the application running method provided by the present application introduces cross-platform reused virtualized running units, dynamic installation and upgrade, version dependency orchestration and business scenario configuration processes. On the one hand, it enables the same application to run on different terminal systems, thereby reducing the development cost of the application. On the other hand, through dynamic installation and version dependency orchestration, it improves the compatibility and stability between applications. In addition, the business scenario configuration reduces the development and management costs of applications in different business scenarios, allowing the terminal to quickly switch business scenarios according to the switching of configuration files on the server. Greatly reduces the cost of switching business scenarios in the terminal system.
[0106] Figure 7 is a schematic diagram of the structure of an application running device provided according to an embodiment of the present application. The device is used to execute the steps executed by the terminal in the above-mentioned application running method, see Figure 7 The device includes: a loading module 701 and an acquisition module 702.
[0107] A loading module 701 is used to load a first configuration file of a first business scenario in a virtualized operation unit of a terminal system to run at least one first application, wherein the first configuration file indicates a configuration of the at least one first application, and the at least one first application is used to implement a business function in the first business scenario;
[0108] An acquisition module 702 is configured to acquire, if a business scenario switching occurs, a second configuration file of a second business scenario after the switching, where the second configuration file indicates a configuration of at least one second application, and the at least one second application is used to implement a business function in the second business scenario;
[0109] The loading module 701 is further configured to load a second configuration file in the virtualization operation unit to run at least one second application program.
[0110] In some embodiments, the loading module 701 is used to:
[0111] In the virtualization operation unit, a first configuration file is parsed to obtain first configuration information and first version dependency information of at least one first application program, wherein the first version dependency information indicates versions of other applications on which the at least one first application program depends;
[0112] Based on the first version dependency information, at least one other application program that the first application program depends on is installed, and based on the first configuration information, at least one first application program is installed.
[0113] In some embodiments, the first configuration information includes at least one of the following: a program plug-in of at least one first application, interface call information of at least one first application, and scene configuration information of at least one first application.
[0114] In some embodiments, the loading module 701 is further used to:
[0115] In the virtualization operation unit, the second configuration file is parsed to obtain second configuration information and second version dependency information of at least one second application program, where the second version dependency information indicates versions of other applications on which the at least one second application program depends;
[0116] Based on the second version dependency information, at least one other application program on which the second application program depends is installed; based on the second configuration information, at least one second application program is installed.
[0117] In some embodiments, the loading module 701 is further used for any of the following:
[0118] In the virtualization operation unit, uninstall at least one first application program, and install at least one second application program based on the second configuration file;
[0119] In the virtualization operation unit, based on the difference between the first configuration file and the second configuration file, a first application program that is not applicable to the second business scenario among the plurality of first applications programs is uninstalled, and a second application program that is applicable to the second business scenario is installed.
[0120] In some embodiments, the apparatus further comprises:
[0121] A first query module, configured to query a first configuration file at intervals of a first duration;
[0122] The loading module is further used to load the updated first configuration file if it is found that the first configuration file is updated, so as to run the updated at least one first application program.
[0123] In some embodiments, the apparatus further comprises:
[0124] A second query module, used for querying the service scenario of the terminal at every second time interval;
[0125] The acquisition module 702 is configured to acquire a second configuration file if it is found that the service scenario of the terminal is switched from the first service scenario to the second service scenario.
[0126] In some embodiments, the virtualized execution unit is a container or a virtual machine.
[0127] Through the above-mentioned device, in the virtualized operation unit of the terminal system, by loading configuration files of different business scenarios, the applications corresponding to different business scenarios are run, thereby realizing rapid switching of business scenarios in the terminal system, which greatly reduces the cost of switching business scenarios in the terminal system; moreover, by loading configuration files in the virtualized operation unit to run the corresponding applications, the same application can be run on different terminal systems, thereby reducing the development cost of the application.
[0128] It should be noted that: the application running device provided in the above embodiment only uses the division of the above functional modules as an example when running the application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the application running device provided in the above embodiment and the application running method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0129] In an exemplary embodiment, a computer device is also provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the application program running method in the embodiment of the present application.
[0130] Taking computer equipment as the terminal as an example, Figure 8 800 is a schematic diagram of a terminal structure provided according to an embodiment of the present application. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 800 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0131] Typically, the terminal 800 includes a processor 801 and a memory 802 .
[0132] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0133] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one program code, which is used to be executed by the processor 801 to implement the application program running method provided in the method embodiment of the present application.
[0134] In some embodiments, the terminal 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807, a positioning assembly 808 and a power supply 809.
[0135] The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0136] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0137] The display screen 805 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 805 can be one, set on the front panel of the terminal 800; in other embodiments, the display screen 805 can be at least two, respectively set on different surfaces of the terminal 800 or in a folding design; in other embodiments, the display screen 805 can be a flexible display screen, set on the curved surface or folding surface of the terminal 800. Even, the display screen 805 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0138] The camera assembly 806 is used to capture images or videos. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0139] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing, or input them into the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 800. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 807 may also include a headphone jack.
[0140] The positioning component 808 is used to locate the current geographical location of the terminal 800 to implement navigation or LBS (Location Based Service).
[0141] The power supply 809 is used to power various components in the terminal 800. The power supply 809 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 809 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0142] In some embodiments, the terminal 800 further includes one or more sensors 810 . The one or more sensors 810 include, but are not limited to: an acceleration sensor 811 , a gyroscope sensor 812 , a pressure sensor 813 , an optical sensor 814 , and a proximity sensor 815 .
[0143] The acceleration sensor 811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 800. For example, the acceleration sensor 811 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 801 can control the display screen 805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 can also be used to collect game or user motion data.
[0144] The gyroscope sensor 812 can detect the body direction and rotation angle of the terminal 800, and the gyroscope sensor 812 can cooperate with the acceleration sensor 811 to collect the user's 3D actions on the terminal 800. The processor 801 can implement the following functions based on the data collected by the gyroscope sensor 812: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0145] The pressure sensor 813 can be set on the side frame of the terminal 800 and / or the lower layer of the display screen 805. When the pressure sensor 813 is set on the side frame of the terminal 800, it can detect the user's holding signal of the terminal 800, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is set on the lower layer of the display screen 805, the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0146] The optical sensor 814 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 814. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is reduced. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 814.
[0147] The proximity sensor 815, also called a distance sensor, is usually arranged on the front panel of the terminal 800. The proximity sensor 815 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 815 detects that the distance between the user and the front of the terminal 800 is gradually decreasing, the processor 801 controls the display screen 805 to switch from the screen-on state to the screen-off state; when the proximity sensor 815 detects that the distance between the user and the front of the terminal 800 is gradually increasing, the processor 801 controls the display screen 805 to switch from the screen-off state to the screen-on state.
[0148] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the terminal 800, and the terminal 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0149] An embodiment of the present application also provides a computer-readable storage medium, which is applied to a computer device, and stores at least one computer program. The at least one computer program is loaded and executed by a processor to implement the application running method in the above embodiment.
[0150] The embodiment of the present application also provides a computer program product, which includes at least one computer program, and the at least one computer program is stored in a computer-readable storage medium. The processor of the computer device reads the at least one computer program from the computer-readable storage medium, and the processor executes the at least one computer program, so that the computer device executes to implement the application program running method in the above embodiment.
[0151] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0152] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for running an application, characterized in that: The method comprises: In a virtualization operation unit of a terminal system, a first configuration file of a first business scenario is loaded to run at least one first application program, wherein the first configuration file indicates a configuration status of the at least one first application program, and the at least one first application program is used to implement a business function in the first business scenario; If a business scenario switching occurs, obtaining a second configuration file of a second business scenario after the switching, where the second configuration file indicates a configuration of at least one second application, and the at least one second application is used to implement a business function in the second business scenario; In the virtualization operation unit, the second configuration file is loaded to run the at least one second application program.
2. The method according to claim 1, characterized in that: The step of loading a first configuration file of a first business scenario in a virtualized operation unit of a terminal system to run at least one first application program includes: In the virtualization operation unit, the first configuration file is parsed to obtain first configuration information and first version dependency information of the at least one first application, where the first version dependency information indicates versions of other applications on which the at least one first application depends; Based on the first version dependency information, other applications on which the at least one first application depends are installed, and based on the first configuration information, the at least one first application is installed.
3. The method according to claim 2, characterized in that The first configuration information includes at least one of the following: a program plug-in of the at least one first application, interface call information of the at least one first application, and scene configuration information of the at least one first application.
4. The method according to claim 2, characterized in that: The step of loading the second configuration file in the virtualization operation unit to run the at least one second application program includes: In the virtualization operation unit, the second configuration file is parsed to obtain second configuration information and second version dependency information of the at least one second application, where the second version dependency information indicates versions of other applications on which the at least one second application depends; Based on the second version dependency information, other applications on which the at least one second application depends are installed; based on the second configuration information, the at least one second application is installed.
5. The method according to claim 1, characterized in that The step of loading the second configuration file in the virtualization operation unit to run the at least one second application program includes any of the following: In the virtualization operation unit, uninstalling the at least one first application, and installing the at least one second application based on the second configuration file; In the virtualization operation unit, based on the difference between the first configuration file and the second configuration file, a first application program that is not applicable to the second business scenario among a plurality of first applications programs is uninstalled, and a second application program that is applicable to the second business scenario is installed.
6. The method according to claim 1, characterized in that The method further comprises: querying the first configuration file at first intervals; If it is found that the first configuration file is updated, the updated first configuration file is loaded to run the updated at least one first application.
7. The method according to claim 1, characterized in that If a business scenario switching occurs, obtaining a second configuration file of a second business scenario after the switching includes: querying the service scenario of the terminal at intervals of a second time length; If it is found that the service scenario of the terminal is switched from the first service scenario to the second service scenario, the second configuration file is obtained.
8. The method according to any one of claims 1 to 7, characterized in that The virtualization operation unit is a container or a virtual machine.
9. An application program running device, characterized in that: The device comprises: A loading module, used to load a first configuration file of a first business scenario in a virtualized operation unit of a terminal system to run at least one first application, wherein the first configuration file indicates a configuration of the at least one first application, and the at least one first application is used to implement a business function in the first business scenario; an acquisition module, configured to acquire, if a business scenario switching occurs, a second configuration file of a second business scenario after the switching, wherein the second configuration file indicates a configuration status of at least one second application program, and the at least one second application program is used to implement a business function in the second business scenario; The loading module is further used to load the second configuration file in the virtualization operation unit to run the at least one second application program.
10. The device according to claim 9, characterized in that The loading module is used to: In the virtualization operation unit, the first configuration file is parsed to obtain first configuration information and first version dependency information of the at least one first application, where the first version dependency information indicates versions of other applications on which the at least one first application depends; Based on the first version dependency information, other applications on which the at least one first application depends are installed, and based on the first configuration information, the at least one first application is installed.
11. The device according to claim 10, characterized in that The first configuration information includes at least one of the following: a program plug-in of the at least one first application, interface call information of the at least one first application, and scene configuration information of the at least one first application.
12. The device according to claim 10, characterized in that The loading module is further used for: In the virtualization operation unit, the second configuration file is parsed to obtain second configuration information and second version dependency information of the at least one second application, where the second version dependency information indicates versions of other applications on which the at least one second application depends; Based on the second version dependency information, other applications on which the at least one second application depends are installed; based on the second configuration information, the at least one second application is installed.
13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor and executes the application program running method according to any one of claims 1 to 8.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the application program running method according to any one of claims 1 to 8.
15. A computer program product, characterized in that The computer program product includes at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the application program running method according to any one of claims 1 to 8.