CN113986284A - System application upgrading method and device, storage medium and electronic equipment - Google Patents
System application upgrading method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113986284A CN113986284A CN202111202923.1A CN202111202923A CN113986284A CN 113986284 A CN113986284 A CN 113986284A CN 202111202923 A CN202111202923 A CN 202111202923A CN 113986284 A CN113986284 A CN 113986284A
- Authority
- CN
- China
- Prior art keywords
- library
- upgrade
- function
- system application
- application
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method and a device for upgrading system application, a storage medium and electronic equipment, which relate to the technical field of computers, wherein the system application is divided into a function library and a system execution program, the function library is generated through a function realization program, and the method comprises the following steps: acquiring library information of the function library based on cross-process communication between non-system applications and the system applications; determining an upgrade library corresponding to the function library according to the library information; and loading the upgrade library to a specific position based on the non-system application so as to enable the system execution program to load the upgrade library from the specific position for running and perform self-upgrade on the function library. The upgrading convenience of the system application is effectively improved, the upgrading is time-consuming and low in cost, and the requirement for frequent upgrading can be effectively met.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading a system application, a storage medium, and an electronic device.
Background
System applications, i.e. system processes, are applications for completing various functions of an operating system, and currently, there are many cases where upgrading of the system applications is required, for example, when a new system function is to be implemented in the system applications, the system applications need to be upgraded.
At present, the upgrading of the system application usually needs to wait for the upgrading of the whole system, and the system application is upgraded based on the upgrading of the whole system, so that the upgrading of the system application has the problem of inconvenient upgrading, the upgrading is time-consuming and high in cost, and the upgrading is particularly not favorable for frequent upgrading.
Disclosure of Invention
The embodiment of the application provides a scheme, the upgrading convenience of system application can be effectively improved, the upgrading is time-consuming and low in cost, and the requirement for frequent upgrading can be effectively met.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
according to an embodiment of the present application, a method for upgrading a system application, the system application being divided into a function library and a system execution program, the function library being generated by a function implementation program, the method comprising: acquiring library information of the function library based on cross-process communication between non-system applications and the system applications; determining an upgrade library corresponding to the function library according to the library information; and loading the upgrade library to a specific position based on the non-system application so as to enable the system execution program to load the upgrade library from the specific position for running and perform self-upgrade on the function library.
In some embodiments of the present application, the specific location includes a first location, the first location is an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application includes: and loading the upgrade library based on the non-system application, and storing the loaded upgrade library to an installation path of the non-system application.
In some embodiments of the present application, the specific location includes a second location, the second location is a target path outside an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application includes: loading the upgrade library based on the non-system application; and based on the non-system application cross-process calling of a functional interface of the system application, storing the upgrade library to the target path.
In some embodiments of the present application, the system execution program loads the upgrade library from the specific location to run, and performs self-upgrade on the function library, including: when the system application is started, the system executive program inquires the upgrade library from the installation path, and loads the upgrade library when the upgrade library is inquired, so that the system application runs based on the loaded upgrade library.
In some embodiments of the present application, the system execution program loads the upgrade library from the specific location to run, and performs self-upgrade on the function library, including: when the system application is started, the system executive program inquires an upgrade library from the installation path and the target path, and loads the upgrade library with the highest version to enable the system application to run based on the loaded upgrade library.
In some embodiments of the present application, after determining, according to the library information, an upgrade library corresponding to the function library, the method further includes: and if the upgrade library is determined not to exist, when the system application is started, the system executive program loads the function library, and the system application runs based on the loaded function library.
In some embodiments of the present application, the upgrade library or the function library sets a function of a specific system authority, the specific system authority having a same level as a root authority, and the method further includes: and when the system application runs, performing cross-process communication on the non-system application and the system application, and calling an interface in the system application to run the function of the specific system permission.
In some embodiments of the present application, the upgrade library or the function library sets a function of a target system permission, and the level of the target system permission is lower than a root permission, and the method further includes: and when the system application runs, calling a function interface in the upgrading library or the function library to run the function of the specific system permission based on a local method interface in the non-system application.
In some embodiments of the present application, the function library and the upgrade library are in the form of dynamic libraries.
In some embodiments of the present application, the library information is version information of the function library.
According to an embodiment of the present application, an apparatus for upgrading a system application, the system application being divided into a function library and a system execution program, the function library being generated by a function implementation program, the apparatus comprising: the acquisition module is used for acquiring library information of the function library based on cross-process communication between non-system application and the system application; the determining module is used for determining the upgrade library corresponding to the function library according to the library information; and the upgrading module is used for loading the upgrading library to a specific position based on the non-system application so as to enable the system executive program to load the upgrading library from the specific position for running and carry out self-upgrading on the function library.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the application, the system application is divided into a function library and a system execution program, the function library is generated by a function implementation program, and the upgrading method of the system application comprises the following steps: acquiring library information of the function library based on cross-process communication between non-system applications and the system applications; determining an upgrade library corresponding to the function library according to the library information; and loading the upgrade library to a specific position based on the non-system application so as to enable the system executive program to load the upgrade library from the specific position for running and perform self-upgrade on the function library.
In this way, the system application is divided into the function library and the system execution program, the function library is generated based on the function implementation program which can meet the common upgrading requirement, the upgrading library of the function library is acquired through the non-system application and placed at a specific position during upgrading, the system execution program in the system application loads the upgrading library from the specific position for running, and the functions in the function library in the system application are upgraded into the functions in the upgrading library. Furthermore, the upgrading of the whole system is not needed, the upgrading convenience of the system application is effectively improved, the upgrading time is consumed, the cost is low, and the requirement of frequent upgrading can be effectively met.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
FIG. 2 shows a flow diagram of a method of upgrading a system application according to one embodiment of the present application.
FIG. 3 shows a block diagram of an upgrade apparatus for a system application according to an embodiment of the present application.
FIG. 4 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, as those of ordinary skill in the art will appreciate that various steps and operations described below may be implemented in hardware.
FIG. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a server 101 terminal 102. The terminal 102 may be any computer device, such as a computer, a mobile phone, a smart watch, a home appliance, and the like. The server 101 may be a server cluster or a cloud server, etc.
In an embodiment of this example, the terminal 102 may be installed with a system application, the system application is divided into a function library and a system execution program, the function library is generated by a function implementation program, and the terminal 102 may: acquiring library information of the function library based on cross-process communication between non-system applications and the system applications; determining an upgrade library corresponding to the function library according to the library information; and loading the upgrade library to a specific position based on the non-system application so as to enable the system execution program to load the upgrade library from the specific position for running and perform self-upgrade on the function library. Wherein the non-system applications may load the upgrade library from the server 101.
Fig. 2 schematically shows a flow chart of a method of upgrading a system application according to an embodiment of the application. The execution subject of the upgrade method applied by the system may be any device, such as the terminal 102 shown in fig. 1.
The system application is divided into a function library and a system execution program, and the function library is generated by a function implementation program. As shown in fig. 2, the upgrading method of the system application may include steps S210 to S230.
Step S210, based on the cross-process communication between the non-system application and the system application, acquiring library information of the function library; step S220, determining a upgrading library corresponding to the function library according to the library information; step S230, loading the upgrade library to a specific location based on the non-system application, so that the system execution program loads the upgrade library from the specific location to run, and self-upgrades the function library.
System applications, i.e., system processes, are applications used to perform various functions of an operating system. The function implementation program is a program for implementing functions of various system permissions, and the functions generally have upgrading requirements.
The system executive program is a part which is preset in the system and can not be changed, and the system executive program can be executed by the system to start system application; the system executive program can be configured to load the upgrade library from the specific position for running.
The method comprises the steps of dividing function codes in system application to obtain a function implementation program and a system execution program, and then placing the function implementation program in an independent module to be compiled to obtain a function library. The function library may be a dynamic library or a library of a particular form.
The non-system application is also called user application or third-party application, and the non-system application can be upgraded independently of the upgrade of the whole system. The library information is description information of the function library, and the library information is information such as version information or number of the function library.
The non-system application can be in cross-process communication with the system application based on a cross-process interface to obtain library information of a function library in the system application. After the non-system application acquires the library information, an upgrade library corresponding to the function library can be determined from a target terminal (such as a server or a local terminal). The upgrade library is a function library updated for upgraded functions, such as a function library with a version higher than that of the function library or a function library with a number updated.
After the non-system application acquires the upgrade library, the upgrade library is placed at a specific position, the specific position is a position which can be scanned by the system execution program, and then the system execution program can load the upgrade library from the specific position to run, so that the system application runs based on the upgrade library, and the self-upgrade of the function is completed.
In this way, based on steps S210 to S230, the system application is divided into a function library and a system execution program, the function library is generated based on a function implementation program that can meet a general upgrade requirement, the upgrade library that obtains the function library through the non-system application is placed at a specific location during upgrade, the system execution program in the system application loads the upgrade library from the specific location to run, and the function in the function library in the system application is self-upgraded to the function in the upgrade library. Furthermore, the upgrading of the whole system is not needed, the upgrading convenience of the system application is effectively improved, the time consumption and the cost are low, and the system can be frequently upgraded according to the requirements.
The following describes a specific process of each step performed when upgrading the system application.
In step S210, library information of the function library is acquired based on cross-process communication between a non-system application and the system application.
In the embodiment of the present example, the system application corresponds to two opposite processes to the non-system application, and the non-system application may obtain library information of the function library in the system application based on cross-process communication between the cross-process interface and the system application.
The non-system application may be an application that needs to run a function with a specific authority based on the system application, and if the function library does not have the function with the specific authority, a specific user may configure the function with the specific authority in the function library to form an upgrade library, and the upgrade library is placed at a target end (such as a server or a local terminal).
In step S220, an upgrade library corresponding to the function library is determined according to the library information.
In the embodiment of the present example, the library information is description information of the function library, and the library information is, for example, version information or number information of the function library. The non-system application may determine whether there is information (e.g., library information with a higher version or updated number) updated than the library information from the target end according to the library information, and further determine whether there is an upgrade library corresponding to the function library.
In step S230, the upgrade library is loaded to a specific location based on the non-system application, so that the system execution program loads the upgrade library from the specific location for running, and performs self-upgrade on the function library.
In the embodiment of the present example, after the non-system application acquires the upgrade library, the upgrade library is placed at a specific location, where the specific location is a location that can be scanned by the system execution program, and then the system execution program can load the upgrade library from the specific location to run, so that the system application runs based on the upgrade library, and the performance self-upgrade is completed.
In one embodiment, the specific location includes a first location, the first location is an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application in step S230 includes: and loading the upgrade library based on the non-system application, and storing the loaded upgrade library to an installation path of the non-system application.
The non-system application can conveniently load the upgrade library to the installation path of the non-system application in a mode of downloading the upgrade package, and the installation path informs the system to execute the program.
In one embodiment, the specific location includes a second location, and the second location is a target path outside an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application in step S230 includes: loading the upgrade library based on the non-system application; and based on the non-system application cross-process calling of a functional interface of the system application, storing the upgrade library to the target path.
The non-system application and the system application can agree with a second position, and the second position is a target path outside an installation path of the non-system application, so that the upgrade library is stored under the target path by calling a functional interface of the system application in a cross-process mode through the non-system application, and the upgrade package can be further prevented from being loaded by a system executive program when the non-system application has a problem.
In one embodiment, in step S230, the system execution program loads the upgrade library from the specific location to run, and performs self-upgrade on the function library, including: when the system application is started, the system executive program inquires the upgrade library from the installation path, and loads the upgrade library when the upgrade library is inquired, so that the system application runs based on the loaded upgrade library.
When a system application in the system is started, a system executive program is started first, the system executive program queries an upgrade library from a first position (namely an installation path) on the basis of convention, and loads the upgrade library when the upgrade library is queried, so that the system application runs on the basis of the loaded upgrade library.
In one embodiment, in step S230, the system execution program loads the upgrade library from the specific location to run, and performs self-upgrade on the function library, including: when the system application is started, the system executive program inquires the upgrade library from the installation path and the target path, and loads the upgrade library with the highest version to enable the system application to run based on the loaded upgrade library.
When a system application in the system is started, a system executive program is started first, the system executive program queries an upgrade library from a first position (namely an installation path) and a second position (a target path) based on convention, the versions of the upgrade libraries at the two positions are compared, and the upgrade library with the highest version is loaded, so that the system application runs based on the loaded upgrade library.
In one example, if an upgrade library exists at one of the first location (i.e., the installation path) and the second location (i.e., the target path), the upgrade library exists, i.e., the upgrade library with the highest version.
In one embodiment, in step S220, after determining the upgrade library corresponding to the function library according to the library information, the method further includes: and if the upgrade library is determined not to exist, when the system application is started, the system executive program loads the function library, and the system application runs based on the loaded function library.
After the system execution program is started, the upgrade library can be inquired from the first position and/or the second position, if the upgrade library is not inquired, the initial function library is directly loaded to run, and the system application is made to run based on the function library.
In one embodiment, the upgrade library or the function library sets a function of a specific system right, and the level of the specific system right is the same as the root right, and the method further includes: and when the system application runs, performing cross-process communication on the non-system application and the system application, and calling an interface in the system application to run the function of the specific system permission.
The root authority is root authority, the level of the specific system authority is the same as the root authority, that is, the level of the specific system authority is the system function with the highest authority, and the function of the specific system authority may include the function of the root authority.
When the system application runs, the upgrade library or the function library may be loaded to run. When the system application runs, the non-system application and the system application perform cross-process communication, an interface in the system application is called to run a function of a specific system authority in a library (a loaded upgrade library or a function library) running in the system application, and the non-system application obtains a running result. Furthermore, the non-system application realizes the function of system permission based on the system application through cross-process communication.
In one embodiment, the upgrade library or the function library sets a function of a target system authority, the target system authority having a lower level than a root authority, and the method further includes: and when the system application runs, calling a function interface in the upgrading library or the function library to run the function of the specific system permission based on a local method interface in the non-system application.
The level of the target system permission is lower than the root permission, i.e. the target system permission is a normal permission with a lower level than the root permission. The local method interface can be a JNI interface, and the non-system application can call an upgrade library loaded during the running of the system application or a function interface in a function library to run a function with a specific system permission based on the local method interface by defining the local method interface in the non-system application.
In one embodiment, the function library and the upgrade library are in the form of dynamic libraries.
The dynamic library is an SO file, the function codes in the system application are divided to obtain a function realization program and a system execution program, and then the function realization program is placed in an independent module to be compiled into the dynamic library. The dynamic library can reliably run in the system, and the reliability of upgrading and the reliability of the function of borrowing the execution system permission by the non-system application are ensured.
In order to better implement the system application upgrading method provided by the embodiment of the present application, an embodiment of the present application further provides a system application upgrading device based on the system application upgrading method. The terms are the same as those in the above upgrading method of the system application, and the specific implementation details can refer to the description in the method embodiment. FIG. 3 shows a block diagram of an upgrade apparatus for a system application according to an embodiment of the present application.
As shown in fig. 3, the system application is divided into a function library and a system execution program, the function library is generated by a function implementation program, and the upgrading apparatus 300 of the system application may include an obtaining module 310, a determining module 320, and an upgrading module 330.
The obtaining module 310 may be configured to obtain library information of the function library based on cross-process communication between a non-system application and the system application; the determining module 320 may be configured to determine, according to the library information, an upgrade library corresponding to the function library; the upgrade module 330 may be configured to load the upgrade library to a specific location based on the non-system application, so that the system execution program loads the upgrade library from the specific location to run, and performs self-upgrade on the function library.
In some embodiments of the present application, the specific location includes a first location, the first location is an installation path of the non-system application, and the upgrade module 330 includes a first loading unit to: and loading the upgrade library based on the non-system application, and storing the loaded upgrade library to an installation path of the non-system application.
In some embodiments of the present application, the specific location includes a second location, the second location is a target path outside an installation path of the non-system application, and the upgrade module 330 includes a second loading unit, configured to: loading the upgrade library based on the non-system application; and based on the non-system application cross-process calling of a functional interface of the system application, storing the upgrade library to the target path.
In some embodiments of the present application, the upgrade module 330 includes a first query unit configured to: when the system application is started, the system executive program inquires the upgrade library from the installation path, and loads the upgrade library when the upgrade library is inquired, so that the system application runs based on the loaded upgrade library.
In some embodiments of the present application, the upgrade module 330 includes a second query unit, configured to: when the system application is started, the system executive program inquires an upgrade library from the installation path and the target path, and loads the upgrade library with the highest version to enable the system application to run based on the loaded upgrade library.
In some embodiments of the present application, the apparatus further comprises a third querying unit for: and if the upgrade library is determined not to exist, when the system application is started, the system executive program loads the function library, and the system application runs based on the loaded function library.
In some embodiments of the present application, the upgrade library or the function library sets a function of a specific system authority, the specific system authority having a same level as a root authority, and the apparatus further includes a first operation unit configured to: and when the system application runs, performing cross-process communication on the non-system application and the system application, and calling an interface in the system application to run the function of the specific system permission.
In some embodiments of the present application, the upgrade library or the function library sets a function of a target system authority, where the level of the target system authority is lower than a root authority, and the apparatus further includes a second operation unit configured to: and when the system application runs, calling a function interface in the upgrading library or the function library to run the function of the specific system permission based on a local method interface in the non-system application.
In some embodiments of the present application, the function library and the upgrade library are in the form of dynamic libraries.
In some embodiments of the present application, the library information is version information of the function library.
In this way, the upgrade apparatus 300 based on the system application divides the system application into the function library and the system execution program, the function library is generated based on the function implementation program that can meet the general upgrade requirement, the upgrade library that acquires the function library through the non-system application is placed at a specific location during upgrade, the system execution program in the system application loads the upgrade library from the specific location to run, and the function in the function library in the system application is self-upgraded to the function in the upgrade library. Furthermore, the upgrading of the whole system is not needed, the upgrading convenience of the system application is effectively improved, the upgrading time is consumed, the cost is low, and the requirement of frequent upgrading can be effectively met.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads an executable file corresponding to one or more processes of the computer program into the memory 402 according to the following instructions, and the processor 401 runs the computer program stored in the memory 402, thereby implementing various functions.
In some embodiments of the present application, the system application is divided into a function library and a system execution program, the function library is generated by a function implementation program, and the processor 401 may perform: acquiring library information of the function library based on cross-process communication between non-system applications and the system applications; determining an upgrade library corresponding to the function library according to the library information; and loading the upgrade library to a specific position based on the non-system application so as to enable the system execution program to load the upgrade library from the specific position for running and perform self-upgrade on the function library.
In some embodiments of the present application, the specific location includes a first location, the first location is an installation path of the non-system application, and when the step-up library is loaded to the specific location based on the non-system application, the processor 401 may perform: and loading the upgrade library based on the non-system application, and storing the loaded upgrade library to an installation path of the non-system application.
In some embodiments of the present application, the specific location includes a second location, the second location is a target path outside an installation path of the non-system application, and when the upgraded library is loaded to the specific location based on the non-system application, the processor 401 may perform: loading the upgrade library based on the non-system application; and based on the non-system application cross-process calling of a functional interface of the system application, storing the upgrade library to the target path.
In some embodiments of the present application, the system execution program loads the upgrade library from the specific location for running, and when the function library is self-upgraded, the processor 401 may perform: when the system application is started, the system executive program inquires the upgrade library from the installation path, and loads the upgrade library when the upgrade library is inquired, so that the system application runs based on the loaded upgrade library.
In some embodiments of the present application, the system execution program loads the upgrade library from the specific location for running, and when the function library is self-upgraded, the processor 401 may perform: when the system application is started, the system executive program inquires an upgrade library from the installation path and the target path, and loads the upgrade library with the highest version to enable the system application to run based on the loaded upgrade library.
In some embodiments of the present application, the processor 401 may perform: and if the upgrade library is determined not to exist, when the system application is started, the system executive program loads the function library, and the system application runs based on the loaded function library.
In some embodiments of the present application, the upgrade library or the function library sets a function of a specific system authority, the level of the specific system authority is the same as the root authority, and the processor 401 may perform: and when the system application runs, performing cross-process communication on the non-system application and the system application, and calling an interface in the system application to run the function of the specific system permission.
In some embodiments of the present application, the upgrade library or the function library sets a function of a target system permission, the target system permission has a lower level than a root permission, and the processor 401 may perform: and when the system application runs, calling a function interface in the upgrading library or the function library to run the function of the specific system permission based on a local method interface in the non-system application.
In some embodiments of the present application, the function library and the upgrade library are in the form of dynamic libraries.
In some embodiments of the present application, the library information is version information of the function library.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.
Claims (11)
1. A method for upgrading a system application, the system application being divided into a function library and a system execution program, the function library being generated by a function implementation program, the method comprising:
acquiring library information of the function library based on cross-process communication between non-system applications and the system applications;
determining an upgrade library corresponding to the function library according to the library information;
and loading the upgrade library to a specific position based on the non-system application so as to enable the system execution program to load the upgrade library from the specific position for running and perform self-upgrade on the function library.
2. The method of claim 1, wherein the specific location comprises a first location, the first location is an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application comprises:
and loading the upgrade library based on the non-system application, and storing the loaded upgrade library to an installation path of the non-system application.
3. The method of claim 2, wherein the specific location comprises a second location, the second location is a target path outside an installation path of the non-system application, and the loading the upgrade library to the specific location based on the non-system application comprises:
loading the upgrade library based on the non-system application;
and based on the non-system application cross-process calling of a functional interface of the system application, storing the upgrade library to the target path.
4. The method of claim 2, wherein the system executive loads and runs the upgrade library from the specific location, and self-upgrades the function library, comprising:
when the system application is started, the system executive program inquires the upgrade library from the installation path, and loads the upgrade library when the upgrade library is inquired, so that the system application runs based on the loaded upgrade library.
5. The method of claim 3, wherein the system executive loads and runs the upgrade library from the specific location, and self-upgrades the function library, comprising:
when the system application is started, the system executive program inquires an upgrade library from the installation path and the target path, and loads the upgrade library with the highest version to enable the system application to run based on the loaded upgrade library.
6. The method according to claim 1, wherein after determining the upgrade library corresponding to the function library according to the library information, the method further comprises:
and if the upgrade library is determined not to exist, when the system application is started, the system executive program loads the function library, and the system application runs based on the loaded function library.
7. The method according to any one of claims 1 to 6, wherein the function of setting a specific system authority in the upgrade library or the function library is the same level as a root authority, and the method further comprises:
and when the system application runs, performing cross-process communication on the non-system application and the system application, and calling an interface in the system application to run the function of the specific system permission.
8. The method of any one of claims 1 to 6, wherein the step library or the function library sets a function of a target system authority, the target system authority having a lower level than a root authority, the method further comprising:
and when the system application runs, calling a function interface in the upgrading library or the function library to run the function of the specific system permission based on a local method interface in the non-system application.
9. An apparatus for upgrading a system application, the system application being divided into a function library and a system execution program, the function library being generated by a function realization program, the apparatus comprising:
the acquisition module is used for acquiring library information of the function library based on cross-process communication between non-system application and the system application;
the determining module is used for determining the upgrade library corresponding to the function library according to the library information;
and the upgrading module is used for loading the upgrading library to a specific position based on the non-system application so as to enable the system executive program to load the upgrading library from the specific position for running and carry out self-upgrading on the function library.
10. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any one of claims 1 to 8.
11. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111202923.1A CN113986284A (en) | 2021-10-15 | 2021-10-15 | System application upgrading method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111202923.1A CN113986284A (en) | 2021-10-15 | 2021-10-15 | System application upgrading method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113986284A true CN113986284A (en) | 2022-01-28 |
Family
ID=79738741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111202923.1A Pending CN113986284A (en) | 2021-10-15 | 2021-10-15 | System application upgrading method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113986284A (en) |
-
2021
- 2021-10-15 CN CN202111202923.1A patent/CN113986284A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104182255A (en) | Method and terminal for upgrading library files of system application | |
CN108427571A (en) | A kind of dynamic link library update method and server | |
CN111427596A (en) | Software upgrading method and device and terminal equipment | |
CN111736910A (en) | External equipment control method and device based on self-service equipment and computer equipment | |
CN111290740B (en) | Application program development method and device, computer equipment and storage medium | |
CN110895518A (en) | GPIO (general purpose input/output) interface configuration method and system | |
CN108595192B (en) | Application program installation method and terminal equipment | |
US20070214345A1 (en) | System and method for porting an operating system | |
CN113986284A (en) | System application upgrading method and device, storage medium and electronic equipment | |
US10809996B2 (en) | Method and device for creating images of different installation and download software units | |
CN117412269A (en) | User identification card information loading method and device, storage medium and electronic equipment | |
CN114090054A (en) | Intelligent equipment upgrading method and device, storage medium and electronic equipment | |
CN113268266B (en) | Multi-version coexistence management method, system and medium for applet rendering framework | |
JP2017126293A (en) | Information processing apparatus and resource management method | |
CN113568679A (en) | Plug-in loading method and device, storage medium and electronic equipment | |
CN115934213A (en) | Controller stack calling method, device, equipment and storage medium | |
KR102094447B1 (en) | Apparatus for generating source code of Battery Management System software and method thereof | |
CN113821219B (en) | Method and system for realizing application program containerization | |
CN113849161A (en) | Application control method and device, storage medium and electronic equipment | |
CN114780166A (en) | Pin configuration method, related device, equipment and readable storage medium | |
CN114679465A (en) | Resource operation method and device, electronic equipment and storage medium | |
CN109542598B (en) | Timed task management method and device | |
US7434201B2 (en) | Method and apparatus providing for extendable interaction between firmware and operating systems on digital devices | |
CN112114882B (en) | Mainboard starting method and device | |
CN116541104B (en) | Program management method, control device, platform, device, 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 |