CN118363626A - Android application program upgrading method and device, electronic equipment and storage medium - Google Patents
Android application program upgrading method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN118363626A CN118363626A CN202410530275.XA CN202410530275A CN118363626A CN 118363626 A CN118363626 A CN 118363626A CN 202410530275 A CN202410530275 A CN 202410530275A CN 118363626 A CN118363626 A CN 118363626A
- Authority
- CN
- China
- Prior art keywords
- upgraded
- program
- dependent
- main
- android
- 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
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000001419 dependent effect Effects 0.000 claims abstract description 159
- 238000009434 installation Methods 0.000 claims abstract description 75
- 238000004891 communication Methods 0.000 claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 16
- 238000005192 partition Methods 0.000 claims description 12
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 4
- 230000001939 inductive effect Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses an Android application program upgrading method and device, electronic equipment and storage media. The method comprises the following steps: determining the upgrade information of the dependent program to be upgraded and the upgrade information of the main program to be upgraded; acquiring a corresponding installation package of the dependent program to be upgraded from a server through a cloud interface, and automatically installing and upgrading the dependent program to be upgraded; after all the dependent programs to be upgraded are upgraded, the main programs to be upgraded are upgraded according to the triggering of the interprocess communication mechanism, the corresponding installation packages of the main programs to be upgraded are obtained from the server through the cloud interface, and the main programs to be upgraded are automatically installed and upgraded. According to the technical scheme, the cloud interface is used for acquiring the upgrade information of the dependent program to be upgraded and the installation package corresponding to the upgrade information of the main program to be upgraded from the server, and on-line autonomous upgrade and update are respectively carried out, so that the problem of complex user off-line upgrade environment is solved, unnecessary system firmware update is reduced, and autonomous installation and upgrade of the Android application program are realized.
Description
Technical Field
The invention relates to the technical field of upgrading of mainboard system programs, in particular to an Android application program upgrading method and device, electronic equipment and storage medium.
Background
At present, the Android main board is matched with more and more broadcasting control software and tool software, and the application scene is more and more abundant. The support requirements for motherboard system functions, as well as the need for software problem repair and upgrade iterations, are also becoming more frequent.
For the end user, a fixed complete machine is generally used, and the field environment is quite complex. The existing Android application program upgrading method is mainly used for upgrading and processing programs based on offline environments from technical support staff to users. However, frequent Android system firmware upgrades are inconvenient and costly for users.
Disclosure of Invention
The invention provides an Android application program upgrading method, device, electronic equipment and storage medium, solves the problems of inconvenient upgrading and high cost of an Android main board system under a user line, and realizes autonomous installation and upgrading of the Android main board system application program by reducing unnecessary firmware updating of the Android main board system.
In a first aspect, an embodiment of the present invention provides an upgrade method for an Android application program, where the method includes:
responding to triggering operation of upgrading an Android application program, and determining upgrading information of a to-be-upgraded dependent program corresponding to an Android main board system and upgrading information of a to-be-upgraded main program, wherein the to-be-upgraded dependent program is a component on which a function corresponding to the to-be-upgraded main program in the application program corresponding to the Android main board system depends;
Acquiring an installation package corresponding to the dependent program to be upgraded from a server through a cloud interface according to upgrading information of the dependent program to be upgraded, and adopting the installation package corresponding to the dependent program to be upgraded to automatically install and upgrade the dependent program to be upgraded on local equipment of an Android main board system, wherein the installation package corresponding to the dependent program to be upgraded comprises a configuration file of the dependent program to be upgraded and a downloading path of the dependent program to be upgraded at the server;
After all the dependent programs to be upgraded are upgraded, under the condition that the main programs to be upgraded are triggered to be upgraded according to an inter-process communication mechanism of an Android system, acquiring installation packages corresponding to the main programs to be upgraded from a server through a cloud interface according to upgrading information of the main programs to be upgraded, and automatically installing and upgrading the main programs to be upgraded on local equipment of an Android main board system by adopting the installation packages corresponding to the main programs to be upgraded, wherein the installation packages comprise configuration files of the main programs to be upgraded and downloading paths of the main programs to be upgraded at the server;
After the main program to be upgraded is upgraded, the application program upgrading operation of the Android main board system is finished through a silent and noninductive upgrading mode of partition mounting.
In a second aspect, an embodiment of the present invention further provides an apparatus for upgrading an Android application, where the apparatus includes:
the upgrade information determining module is used for determining upgrade information of a to-be-upgraded dependent program corresponding to the Android main board system and upgrade information of a to-be-upgraded main program in response to triggering operation for upgrading the Android application program, wherein the to-be-upgraded dependent program is a component on which a function corresponding to the to-be-upgraded main program in the application program corresponding to the Android main board system depends;
The dependent program upgrading module is used for acquiring an installation package corresponding to the dependent program to be upgraded from the server through the cloud interface according to upgrading information of the dependent program to be upgraded, and automatically installing and upgrading the dependent program to be upgraded on local equipment of an Android main board system by adopting the installation package corresponding to the dependent program to be upgraded, wherein the installation package corresponding to the dependent program to be upgraded comprises a configuration file of the dependent program to be upgraded and a downloading path of the dependent program to be upgraded at the server;
the main program upgrading module is used for acquiring an installation package corresponding to the main program to be upgraded from a server through a cloud interface according to upgrading information of the main program to be upgraded when the main program to be upgraded is completely upgraded and the main program to be upgraded is triggered according to an inter-process communication mechanism of the Android system, and automatically installing and upgrading the main program to be upgraded on local equipment of the Android main board system by adopting the installation package corresponding to the main program to be upgraded, wherein the installation package comprises a configuration file of the main program to be upgraded and a downloading path of the main program to be upgraded at the server;
And the upgrade completion module is used for indicating the end of the upgrade operation of the application program of the Android main board system through the silent and noninductive upgrade mode of the partition mounting after the upgrade of the main program to be upgraded is completed.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements an upgrade method for an Android application program according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, where the computer executable instructions when executed by a computer processor are used to perform an upgrade method of an Android application program according to any one of the embodiments of the present invention.
According to the technical scheme, the installation package corresponding to the upgrade information of the dependent program to be upgraded and the installation package corresponding to the upgrade information of the main program to be upgraded are obtained from the server through the cloud interface, and the on-line autonomous upgrade and update are respectively carried out, so that the problem of complex under-line upgrade environment of a user is solved, unnecessary system firmware update is reduced, and the autonomous installation and upgrade of the Android application program are realized.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an upgrade method of an Android application program provided in an embodiment of the present invention;
fig. 2 is a flowchart of an Android motherboard system application program upgrade provided in an embodiment of the present invention;
Fig. 3 is a flowchart of an upgrade of a main program of an Android motherboard system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an upgrade apparatus for an Android application program according to a first embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an electronic device for implementing an upgrade method of an Android application program according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an Android application program upgrading method provided in an embodiment of the present invention, where the method may be applicable to an Android application program upgrading device, where the Android application program upgrading device may be implemented in hardware and/or software, and the Android application program upgrading device may be configured in any electronic device with network communication and computing, and the Android application program upgrading method is applied to an Android motherboard system, as shown in fig. 1, and the method includes:
S110, in response to triggering operation for upgrading the Android application program, determining upgrading information of a to-be-upgraded dependent program corresponding to the Android main board system and upgrading information of a to-be-upgraded main program, wherein the to-be-upgraded dependent program is a component on which functions corresponding to the to-be-upgraded main program in the application program corresponding to the Android main board system depend.
In the embodiment of the application, the triggering operation can be manually triggered by clicking an update button in the setting process by a user, or automatically checking whether version update exists or not by the Android main board system according to a set time interval. The dependent program represents software capable of modifying most functions and programs of the Android main board system, the main program represents player software for bearing main functions of the Android main board system, and the main program of the Android main board system belongs to system application and has higher system rights.
For the terminal user of the Android main board system, a fixed whole machine is generally used, and firmware upgrading of the Android system is inconvenient for the user and has high cost. If only the bottom layer software in the hardware of one device is upgraded, the whole system is often packaged and upgraded, and unnecessary resource waste and storage disasters can be caused.
Therefore, for frequent firmware upgrading of the Android main board system, after upgrading of the dependent program of the firmware is completed, the main program is upgraded, unnecessary other firmware upgrades are reduced, the upgrading cost of the Android main board system is reduced, and meanwhile, the stability of the matching of the main program and the dependent program version in the Android main board system is ensured.
As an optional but non-limiting implementation manner, the upgrade information of the to-be-upgraded dependent program includes a type, a new version number, a package name, and a start page of the to-be-upgraded dependent program.
It should be noted that, the upgrade information of the to-be-upgraded dependent program includes a type of the to-be-upgraded dependent program, a new version number, a package name, a start page, and the like, the type of the to-be-upgraded dependent program includes an application, a service, and a firmware, the new version number of the to-be-upgraded dependent program indicates that the dependent program explicitly identifies the upgraded version number at the server, the package name of the to-be-upgraded dependent program indicates a unique identifier of the dependent program, and the start page of the to-be-upgraded dependent program indicates a start animation that the user sees after opening the application program.
As an optional but non-limiting implementation manner, the upgrade information of the main program to be upgraded includes a new version number, a package name and a start page of the main program to be upgraded.
It should be noted that, the main program of the Android main board system has only one player, the new version number of the main program to be upgraded represents the version number after the server side explicitly identifies the upgrade, the package name of the main program to be upgraded represents the unique identifier of the main program, and the starting page of the main program to be upgraded represents the starting animation seen by the user after the application program is opened.
As an optional but non-limiting implementation manner, determining upgrade information of a to-be-upgraded dependent program and upgrade information of a to-be-upgraded main program corresponding to an Android motherboard system includes:
According to whether old version numbers of each dependent program and main program in the Android main board system are matched with new version numbers of each dependent program and main program, determining upgrading information of the dependent program to be upgraded and upgrading information of the main program to be upgraded, wherein the old version numbers represent version numbers of programs which are not updated in the Android main board system, and the new version numbers represent version numbers of the programs which are clearly marked after upgrading at a server side.
In the embodiment of the application, the dependent program and the main program which need to be upgraded in the Android main board system can be determined by checking the version number. Comparing old version numbers of each dependent program and main program in the Android main board system with the provided latest version numbers to judge whether the old version numbers are matched or not, and if the version numbers are not matched, indicating that the dependent program or the main program needs to be updated and upgraded; if the version numbers match, the dependent program or the main program does not need to be updated and upgraded.
S120, acquiring an installation package corresponding to the dependent program to be upgraded from a server through a cloud interface according to upgrading information of the dependent program to be upgraded, and adopting the installation package corresponding to the dependent program to be upgraded to automatically install and upgrade the dependent program to be upgraded on local equipment of an Android main board system, wherein the installation package corresponding to the dependent program to be upgraded comprises a configuration file of the dependent program to be upgraded and a downloading path of the dependent program to be upgraded at the server.
In the embodiment of the application, the cloud interface is a bridge connecting the Android motherboard system client and the server, and allows the Android motherboard system client to access resources and services of the server through a network to store, manage and process data.
The corresponding installation package of the dependent program to be upgraded is a file set containing the dependent program files and related resources, and the corresponding dependent program can be installed on the computer device. The installation package corresponding to the dependent program to be upgraded comprises a program file, a configuration file, a data file, a library file and an automatic installation script, and has integrity and portability. The configuration file contains software settings, installation paths, dependency items and the like corresponding to the dependent program, so that the security and stability of the upgrade of the dependent program are ensured. After the dependent program to be upgraded is triggered to be upgraded, the automatic installation script of the installation package automatically acquires data corresponding to the dependent program to be upgraded from the server according to the downloading path, and the installation and the upgrading are completed.
In this embodiment, the Android motherboard system may be connected to the network client through an external device such as a network cable interface or an internet of things card, and the main program of the Android motherboard system requests to upload information of some current Android motherboard systems to the server through https, so as to obtain an installation package corresponding to upgrade information of the dependent program to be upgraded.
And automatically installing and upgrading the dependent program to be upgraded on the local equipment to which the Android main board system belongs according to the installation package corresponding to the dependent program to be upgraded, so that the stability and operability of the Android main board system are ensured.
As an optional implementation manner, but not limited to, according to the upgrade information of the to-be-upgraded dependent program, obtaining an installation package corresponding to the to-be-upgraded dependent program from a server through a cloud interface, and automatically installing and upgrading the to-be-upgraded dependent program on a local device to which an Android main board system belongs by adopting the installation package corresponding to the to-be-upgraded dependent program, including the following steps A1-A2:
and A1, adding the upgrade information of the to-be-upgraded dependent program into a download queue.
And A2, acquiring installation packages corresponding to the dependent programs to be upgraded from a server through a cloud interface according to the downloading queue in sequence, and automatically installing and upgrading the dependent programs to be upgraded on local equipment to which the Android main board system belongs by adopting the installation packages corresponding to the dependent programs to be upgraded.
In the embodiment of the application, the downloading queue is used for storing the upgrade information of the to-be-upgraded dependent program, the downloading queue can be arranged according to the packet name parent sequence of the to-be-upgraded dependent program or the file size of the to-be-upgraded dependent program, the arrangement mode of the upgrade information of the to-be-upgraded dependent program in the downloading queue is not limited, and the method can be flexibly set.
Referring to fig. 2, which is a flowchart of an Android motherboard system application program upgrade, a to-be-upgraded dependent program is added into a download queue, and a corresponding installation package of the to-be-upgraded dependent program is downloaded from a server through a cloud interface in sequence according to the download queue. After the downloading is completed, automatically installing and upgrading the to-be-upgraded dependent program on local equipment of the Android main board system through an automatic installation script of the installation package, and prompting service upgrading on a display screen of a player of the Android main board system. After the installation is completed, the broadcast message of the completion of the installation is transmitted among different processes on the local equipment, and the service is rebindd. And circularly searching whether the task of downloading the upgrade information of the dependent program to be upgraded exists, if so, adding the upgrade information of the dependent program to be upgraded into a downloading queue for downloading, and repeating the steps until the download information of the dependent program to be upgraded does not exist, and finishing the upgrading of the dependent program of the Android main board system.
S130, after all the dependent programs to be upgraded are upgraded, and under the condition that the main programs to be upgraded are triggered to be upgraded according to an inter-process communication mechanism of the Android system, obtaining an installation package corresponding to the main programs to be upgraded from a server through a cloud interface according to upgrading information of the main programs to be upgraded, and adopting the installation package corresponding to the main programs to be upgraded to automatically install and upgrade the main programs to be upgraded on local equipment of an Android main board system, wherein the installation package comprises configuration files of the main programs to be upgraded and a downloading path of the main programs to be upgraded at the server.
In the embodiment of the application, the inter-process communication mechanism of the Android system comprises a Binder mechanism, a shared memory, a message queue, a pipeline and the like, and different inter-process communication mechanisms are applicable to different scenes and requirements.
Before upgrading, the main program detects the versions of other dependent programs, and if other dependent programs need to be upgraded, the other dependent programs are preferably upgraded to ensure that the upgrade of the front-end program is completed, wherein the front-end program refers to the dependent program of the Android main board system. Before the main program is added with a new function for upgrading, the program files corresponding to the new function of the main program can be modified by the corresponding dependent program, and the dependency relationship that the main program and the dependent program have function matching in the Android main board system is satisfied.
Referring to fig. 3, which is a flowchart of main program upgrade of an Android main board system, upgrade information of the main program to be upgraded is determined, the Android main board system is connected with a network server through a cloud interface by external devices such as a network cable interface or an internet of things card, the main program of the Android main board system requests information uploaded to some current Android main board systems of the server through https, and an installation package corresponding to the upgrade information of the main program to be upgraded is obtained. And the host program to be upgraded is automatically installed and upgraded on the local equipment to which the Android main board system belongs according to the installation package corresponding to the host program to be upgraded based on the resident entrusted daemon, and after the installation is completed, the daemon successfully starts the host program, and then the host program to be upgraded is upgraded.
As an optional but non-limiting implementation manner, after all the dependent programs to be upgraded are upgraded, and triggering the main program to be upgraded according to an interprocess communication mechanism of the Android system to upgrade, the method includes:
and after all the dependent programs to be upgraded are upgraded, sending a broadcast notification to the main program to be upgraded in the Android main board system for upgrading.
It should be noted that, after all the dependent programs to be upgraded are upgraded, the main program to be upgraded is notified to be upgraded through the Android inter-process communication mechanism, so that the whole upgrading process is necessary.
In the embodiment of the application, after all the dependent programs to be upgraded are upgraded, the main program to be upgraded is informed to be upgraded in the Android main board system in a broadcast sending mode.
And S140, after the main program to be upgraded is upgraded, indicating the end of the application program upgrading operation of the Android main board system by using a silent and noninductive upgrading mode of partition mounting.
In the embodiment of the application, partition mounting is a process of establishing connection between a partition on the storage device and a file of an operating system, so that the mutual interference of data of different partitions is prevented, and the internal upgrading process of the device terminal page mapping system is realized.
The silent and noninductive upgrade carried by the partition is to automatically complete the upgrade process related to the Android application program under the condition of not affecting the use of users.
When the main program of the Android main board system needs to be upgraded, the program upgrading efficiency of the Android main board system is higher and the system resource waste is reduced by updating and upgrading the dependent programs, which are depended on by the function upgrading of the main program, instead of all the dependent program updating and upgrading.
After the main program to be upgraded is upgraded, the application program of the Android main board system is upgraded as the dependent program in the Android main board system is upgraded, and the main program is matched with the version of the dependent program.
As an optional but non-limiting implementation manner, after the main program to be upgraded is upgraded, indicating that the upgrade operation of the application program of the Android main board system is finished by using a silent and non-inductive upgrade mode mounted in a partition, including:
After the main program to be upgraded is upgraded, displaying the service upgrading completion on a terminal page of the local equipment to which the Android main board system belongs, so as to indicate the end of the application program upgrading operation of the Android main board system.
In the embodiment of the application, the service upgrading is finished by displaying the upgrading process of the main program player software only on the terminal on the local equipment to which the Android main board system belongs, the dependent program is silently updated, the system function is expanded in a noninductive way, the reliability and the stability of the Android main board system are improved, and the influence on the user is reduced.
According to the technical scheme, the installation package corresponding to the upgrade information of the dependent program to be upgraded and the installation package corresponding to the upgrade information of the main program to be upgraded are obtained from the server through the cloud interface, and the on-line autonomous upgrade and update are respectively carried out, so that the problem of complex user off-line upgrade environment is solved, unnecessary system firmware update is reduced, and the autonomous installation and upgrade of the Android application program are realized.
Example two
Fig. 4 is a schematic structural diagram of an upgrade apparatus for an Android application program according to a second embodiment of the present invention. The method and the device for upgrading the Android application program can be applied to any electronic equipment with network communication and calculation, and the method for upgrading the Android application program is applied to an Android main board system. As shown in fig. 4, the apparatus includes:
The upgrade information determining module 310 is configured to determine upgrade information of a to-be-upgraded dependent program corresponding to an Android motherboard system and upgrade information of a to-be-upgraded main program in response to a trigger operation for upgrading an Android application program, where the to-be-upgraded dependent program is a component on which a function corresponding to the to-be-upgraded main program in the application program corresponding to the Android motherboard system depends;
The dependent program upgrading module 320 is configured to obtain an installation package corresponding to the dependent program to be upgraded from a server through a cloud interface according to upgrading information of the dependent program to be upgraded, and automatically install and upgrade the dependent program to be upgraded on a local device to which the Android motherboard system belongs by adopting the installation package corresponding to the dependent program to be upgraded, where the installation package corresponding to the dependent program to be upgraded includes a configuration file of the dependent program to be upgraded and a download path of the dependent program to be upgraded at the server;
the main program upgrading module 330 is configured to obtain, from a server through a cloud interface according to upgrading information of a main program to be upgraded, an installation package corresponding to the main program to be upgraded after all the dependent programs to be upgraded are upgraded, and automatically install and upgrade the main program to be upgraded on a local device to which the Android motherboard system belongs by adopting the installation package corresponding to the main program to be upgraded, where the installation package of the main program to be upgraded includes a configuration file of the main program to be upgraded and a download path of the main program to be upgraded at the server;
And the upgrade completion module 340 is configured to instruct the Android motherboard system to end the upgrade operation of the application program by using the silent and noninductive upgrade mode mounted in the partition after the upgrade of the main program to be upgraded is completed.
On the basis of the above embodiment, optionally, the upgrade information determining module 310 includes:
The version matching unit is used for determining the upgrade information of the dependent program to be upgraded and the upgrade information of the main program to be upgraded according to whether the old version numbers of the dependent program and the main program in the Android main board system are matched with the new version numbers of the dependent program and the main program in the server, wherein the old version numbers represent version numbers of the programs which are not updated in the Android main board system, and the new version numbers represent version numbers of the programs which are updated in the server.
On the basis of the above embodiment, optionally, the upgrade information of the to-be-upgraded dependent program includes a type, a new version number, a package name and a start page of the to-be-upgraded dependent program.
On the basis of the above embodiment, optionally, the upgrade information of the main program to be upgraded includes a new version number, a package name and a start page of the main program to be upgraded.
Based on the above embodiment, optionally, the dependent program upgrade module 320 includes:
The download queue determining unit is used for adding the upgrade information of the to-be-upgraded dependent program into a download queue;
The installation package obtaining unit is used for obtaining installation packages corresponding to the dependent programs to be upgraded from the server through the cloud interface according to the downloading queue in sequence, and automatically installing and upgrading the dependent programs to be upgraded on local equipment to which the Android main board system belongs by adopting the installation packages corresponding to the dependent programs to be upgraded.
Based on the above embodiment, optionally, the main program upgrade module 330 includes:
and the communication unit is used for sending a broadcast notification to-be-upgraded main program in the Android main board system for upgrading after all the to-be-upgraded dependent programs are upgraded.
Based on the above embodiment, optionally, the upgrade completing module 340 includes:
and the upgrade completion display unit is used for displaying the completion of service upgrade on a terminal page of the local equipment to which the Android main board system belongs after the main program to be upgraded is upgraded, so as to indicate the end of the upgrade operation of the application program of the Android main board system.
The upgrade device for the Android application program provided by the embodiment of the invention can execute the upgrade method for the Android application program provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (central processor), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the upgrade method of Android applications.
In some embodiments, the method of upgrading an Android application may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the upgrade method of the Android application program described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the upgrade method of the Android application program in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. An upgrade method of an Android application program is characterized by being applied to an Android main board system, and comprises the following steps:
responding to triggering operation of upgrading an Android application program, and determining upgrading information of a to-be-upgraded dependent program corresponding to an Android main board system and upgrading information of a to-be-upgraded main program, wherein the to-be-upgraded dependent program is a component on which a function corresponding to the to-be-upgraded main program in the application program corresponding to the Android main board system depends;
acquiring an installation package corresponding to the to-be-upgraded dependent program from a server through a cloud interface according to upgrade information of the to-be-upgraded dependent program, and automatically installing and upgrading the to-be-upgraded dependent program on local equipment of an Android main board system by adopting the installation package corresponding to the to-be-upgraded dependent program, wherein the installation package corresponding to the to-be-upgraded dependent program comprises a configuration file of a main program to be upgraded and a downloading path of the main program to be upgraded at the server;
after all the dependent programs to be upgraded are upgraded, under the condition that the main programs to be upgraded are triggered to be upgraded according to an inter-process communication mechanism of an Android system, acquiring installation packages corresponding to the main programs to be upgraded from a server through a cloud interface according to upgrading information of the main programs to be upgraded, and automatically installing and upgrading the main programs to be upgraded on local equipment of an Android main board system by adopting the installation packages corresponding to the main programs to be upgraded, wherein the installation packages of the main programs to be upgraded comprise configuration files of the main programs to be upgraded and downloading paths of the main programs to be upgraded at the server;
After the main program to be upgraded is upgraded, the application program upgrading operation of the Android main board system is finished through a silent and noninductive upgrading mode of partition mounting.
2. The method of claim 1, wherein the upgrade information of the dependent program to be upgraded includes a type of the dependent program to be upgraded, a new version number, a package name, and a start page.
3. The method of claim 1, wherein the upgrade information of the main program to be upgraded includes a new version number of the main program to be upgraded, a package name, and a start page.
4. The method of claim 1, wherein determining the upgrade information of the dependent program to be upgraded and the upgrade information of the main program to be upgraded, which correspond to the Android motherboard system, comprises:
According to whether the old version numbers of each dependent program and the main program in the Android main board system are matched with the new version numbers of each dependent program and the main program of the server, determining the upgrading information of the dependent program to be upgraded and the upgrading information of the main program to be upgraded, wherein the old version numbers represent version numbers of the programs which are not updated in the Android main board system, and the new version numbers represent version numbers of the programs which are updated at the server.
5. The method according to claim 1, wherein obtaining the installation package corresponding to the dependent program to be upgraded from the server through the cloud interface according to the upgrade information of the dependent program to be upgraded, and automatically installing and upgrading the dependent program to be upgraded on the local device to which the Android motherboard system belongs by adopting the installation package corresponding to the dependent program to be upgraded, comprises:
adding the upgrade information of the to-be-upgraded dependent program into a download queue;
And acquiring installation packages corresponding to the dependent programs to be upgraded from a server through a cloud interface according to the downloading queue in sequence, and automatically installing and upgrading the dependent programs to be upgraded on local equipment to which the Android main board system belongs by adopting the installation packages corresponding to the dependent programs to be upgraded.
6. The method according to claim 1, wherein after the all upgrades of the dependent programs to be upgraded are completed, triggering the main program to be upgraded according to an inter-process communication mechanism of the Android system, comprises:
and after all the dependent programs to be upgraded are upgraded, sending a broadcast notification to the main program to be upgraded in the Android main board system for upgrading.
7. The method of claim 1, wherein after the main program to be upgraded is upgraded, indicating that the upgrading operation of the application program of the Android motherboard system is finished by using a silent and non-inductive upgrading mode of partition mounting, comprising:
After the main program to be upgraded is upgraded, displaying the service upgrading completion on a terminal page of the local equipment to which the Android main board system belongs, so as to indicate the end of the application program upgrading operation of the Android main board system.
8. An upgrade apparatus for an Android application program, comprising:
the upgrade information determining module is used for determining upgrade information of a to-be-upgraded dependent program corresponding to the Android main board system and upgrade information of a to-be-upgraded main program in response to triggering operation for upgrading the Android application program, wherein the to-be-upgraded dependent program is a component on which a function corresponding to the to-be-upgraded main program in the application program corresponding to the Android main board system depends;
The dependent program upgrading module is used for acquiring an installation package corresponding to the dependent program to be upgraded from the server through the cloud interface according to upgrading information of the dependent program to be upgraded, and automatically installing and upgrading the dependent program to be upgraded on local equipment of an Android main board system by adopting the installation package corresponding to the dependent program to be upgraded, wherein the installation package corresponding to the dependent program to be upgraded comprises a configuration file of the dependent program to be upgraded and a downloading path of the dependent program to be upgraded at the server;
The main program upgrading module is used for acquiring an installation package corresponding to the main program to be upgraded from a server through a cloud interface according to upgrading information of the main program to be upgraded when the main program to be upgraded is completely upgraded and the main program to be upgraded is triggered according to an inter-process communication mechanism of the Android system, and automatically installing and upgrading the main program to be upgraded on local equipment of the Android main board system by adopting the installation package corresponding to the main program to be upgraded, wherein the installation package of the main program to be upgraded comprises a configuration file of the main program to be upgraded and a downloading path of the main program to be upgraded at the server;
And the upgrade completion module is used for indicating the end of the upgrade operation of the application program of the Android main board system through the silent and noninductive upgrade mode of the partition mounting after the upgrade of the main program to be upgraded is completed.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of upgrading an Android application program according to any one of claims 1-7 when executing the program.
10. A storage medium storing computer executable instructions which, when executed by a computer processor, are for performing the method of upgrading an Android application according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410530275.XA CN118363626A (en) | 2024-04-29 | 2024-04-29 | Android application program upgrading method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410530275.XA CN118363626A (en) | 2024-04-29 | 2024-04-29 | Android application program upgrading method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118363626A true CN118363626A (en) | 2024-07-19 |
Family
ID=91886769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410530275.XA Pending CN118363626A (en) | 2024-04-29 | 2024-04-29 | Android application program upgrading method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118363626A (en) |
-
2024
- 2024-04-29 CN CN202410530275.XA patent/CN118363626A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170161059A1 (en) | Management of multiple application programming interface versions for development environments | |
US10817267B2 (en) | State machine representation of a development environment deployment process | |
EP3819764A2 (en) | Service information processing method, apparatus, device and computer storage medium | |
CN113934464A (en) | Method and device for starting android application in Linux system and electronic equipment | |
CN111913884A (en) | Distributed test method, device, equipment, system and readable storage medium | |
CN107644075B (en) | Method and device for collecting page information | |
US10120707B2 (en) | Deployment of development environments | |
CN114185734B (en) | Method and device for monitoring clusters and electronic equipment | |
CN115016820A (en) | Application program updating method, device, equipment and storage medium | |
CN114328097A (en) | File monitoring method and device, electronic equipment and storage medium | |
CN117724803A (en) | Cloud service deployment method, device and platform | |
CN117555570A (en) | Service management method and device, electronic equipment and storage medium | |
CN114721740B (en) | Message triggering method, device, equipment and storage medium | |
CN116450165A (en) | Method, system, terminal and storage medium for quickly building environment and deploying program | |
CN116301997A (en) | Upgrading method, device, equipment and medium of controller | |
US10394534B2 (en) | Framework for flexible logging of development environment deployment | |
CN118363626A (en) | Android application program upgrading method and device, electronic equipment and storage medium | |
CN113805858B (en) | Method and device for continuously deploying software developed by scripting language | |
CN112306723B (en) | Operation information acquisition method and device applied to applet | |
CN109101253B (en) | Management method and device for host in cloud computing system | |
CN112882741A (en) | Application management system and method | |
CN112099998B (en) | Method and device for processing applet loading failure, electronic equipment and storage medium | |
CN113760723B (en) | Business process debugging method and device | |
CN116627439A (en) | System upgrading method, device, equipment and storage medium | |
CN117742699A (en) | Method, device, equipment and storage medium for generating functional module of application program |
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 |