CN111427603B - Application program upgrading method and device - Google Patents

Application program upgrading method and device Download PDF

Info

Publication number
CN111427603B
CN111427603B CN202010297261.XA CN202010297261A CN111427603B CN 111427603 B CN111427603 B CN 111427603B CN 202010297261 A CN202010297261 A CN 202010297261A CN 111427603 B CN111427603 B CN 111427603B
Authority
CN
China
Prior art keywords
app
development kit
upgrading
compatible
software development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010297261.XA
Other languages
Chinese (zh)
Other versions
CN111427603A (en
Inventor
吴惠敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010297261.XA priority Critical patent/CN111427603B/en
Publication of CN111427603A publication Critical patent/CN111427603A/en
Application granted granted Critical
Publication of CN111427603B publication Critical patent/CN111427603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an upgrading method and device of an application program, comprising the following steps: determining whether a software development kit compatible with an application program APP to be upgraded exists in the software package to be upgraded or not, wherein the APP is installed in a target terminal; acquiring a first software development kit through a Uniform Resource Locator (URL) under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the URL exists in the software package to be upgraded; and upgrading the APP by using the first software development kit under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal. The invention solves the problem of higher upgrading requirement of the APP current version.

Description

Application program upgrading method and device
Technical Field
The present invention relates to the field of communications, and in particular, to an application program upgrading method and apparatus.
Background
When upgrading the APP on the terminal, determining whether a software package to be upgraded has a software development kit SDK_RTM compatible with the APP, if not, directly refusing the upgrade, if so, further confirming whether the SDK_RTM in the software development kit is compatible with an operating system OS of the terminal installed by the APP, and if not, refusing the upgrade.
In the prior art, only when the following two conditions are satisfied, the current APP version running on the terminal can be upgraded: (1) The software package to be upgraded contains SDK_RTM compatible with the current APP version; (2) The sdk_rtm in the software package to be upgraded is compatible with the OS of the terminal on which the current APP is running.
Aiming at the technical problem that the current version of APP has higher upgrading requirement in the prior art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides an upgrading method and device for an application program, which are used for at least solving the problem that the current version of APP in the related technology has higher upgrading requirement.
According to an embodiment of the present invention, there is provided an upgrade method of an application program, including: determining whether a software development kit compatible with an application program APP to be upgraded exists in the software package to be upgraded or not, wherein the APP is installed in a target terminal; acquiring a first software development kit through a Uniform Resource Locator (URL) under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the URL exists in the software package to be upgraded; and upgrading the APP by using the first software development kit under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal.
Optionally, the method further comprises: determining whether a second software development kit compatible with the APP exists in the software package to be upgraded or not; acquiring a preset first upgrading software package under the condition that the second software development kit is not compatible with the operating system, wherein a third software development kit in the first upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the first upgrading software package.
Optionally, upgrading the APP using the first upgrade software package includes: acquiring a target compatible layer; upgrading the APP by using the target compatible layer and a first upgrading software package; and loading the target compatibility layer and the third software development kit to a preset storage position in the APP.
Optionally, the method further comprises: acquiring a preset second upgrading software package under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the target uniform resource locator URL does not exist in the software package to be upgraded, wherein a fourth software development kit in the second upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the second upgrading software package.
Optionally, after the first software development kit is obtained through the URL, the method further includes: determining whether the first software development kit is compatible with the APP; acquiring a preset third upgrading software package under the condition that the first software development kit is not compatible with the APP, wherein a fifth software development kit in the third upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the third upgrading software package.
Optionally, upgrading the APP includes: obtaining a target software development kit, wherein the target software development kit comprises: a fourth software development kit, a fifth software development kit; and upgrading the APP by using a target upgrading software package, wherein the target upgrading software package comprises: the second upgrading software package and the third upgrading software package; and loading the target software development kit to a preset storage position in the APP.
According to another embodiment of the present invention, there is provided an upgrade apparatus for an application program, including: the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining whether a software development kit compatible with an application program APP to be upgraded exists in a software package to be upgraded or not, and the APP is installed in a target terminal; the first acquisition module is used for acquiring a first software development kit through a Uniform Resource Locator (URL) under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the URL exists in the software package to be upgraded; and the first upgrading module is used for upgrading the APP by using the first software development kit under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal.
Optionally, the apparatus further comprises: a second determining module, configured to determine, if a second software development kit compatible with the APP exists in the software package to be upgraded, whether the second software development kit is compatible with the operating system; the second acquisition module is used for acquiring a preset first upgrading software package under the condition that the second software development tool package is not compatible with the operating system, wherein a third software development tool package in the first upgrading software package is compatible with the APP and the operating system; and the second upgrading module is used for upgrading the APP by using the first upgrading software package.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded, and the target uniform resource locator URL exists in the software package to be upgraded, the first software development kit is acquired through the URL; and under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with the operating system of the target terminal, upgrading the APP by using the first software development kit. Therefore, the problem that the current version of the APP is higher in upgrading requirement can be solved, the purposes that the APP is upgraded by acquiring a software development kit compatible with the operation systems of the APP and the terminal where the APP is located through the uniform resource locator in the software package to be upgraded are achieved, and the effect of reducing the upgrading requirement on the current version of the APP is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of an upgrade method of an application program according to an embodiment of the present invention;
FIG. 2 is a schematic diagram I of an upgrade method of an application program according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of upgrading an application according to an embodiment of the invention;
FIG. 4 is a second schematic diagram of an upgrade method of an application program according to an embodiment of the present invention;
FIG. 5 is a third schematic diagram of an upgrade method for an application program according to an embodiment of the present invention;
fig. 6 is a block diagram of an upgrade apparatus of an application program according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
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.
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, such as software programs of application software and modules, such as computer programs corresponding to the upgrade method of application programs in the embodiments of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e., implement the above-described methods. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Fig. 2 is a schematic diagram of an upgrade process of an APP to be upgraded according to an alternative embodiment of the present invention, which mainly includes the following steps:
step 1: acquiring a software package PKG_AppNameX to be upgraded;
step 2: upgrading an application program APP to be upgraded, which is installed on a target terminal, through a software package PKG_AppNameX to be upgraded;
step 3: detecting a link mode of an SDK and an APP in a software package PKG_AppNameX to be upgraded;
step 4: in Dynamic link (Dynamic), determining whether software development kit SDK_RTM in PKG_AppNameX is compatible with APP installed on target terminal, if not, refusing upgrading;
step 5, in Static link (Static), determining whether software development kit SDK_RTM in PKG_AppNameX linked with APP is compatible with OS system of target terminal, if not, directly refusing to upgrade;
step 6: and under the condition that the software development kit SDK_RTM in the PKG_AppNameX which is dynamically linked with the APP is compatible with the APP and the software development kit SDK_RTM in the PKG_AppNameX which is statically linked with the APP is compatible with an OS system of the target terminal, the application program APP to be upgraded on the target terminal is satisfied.
In this embodiment, there is provided a method for upgrading an application running on the mobile terminal, and fig. 3 is a flowchart of upgrading the application according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S302, determining whether a software development kit compatible with an application program APP to be upgraded exists in the software package to be upgraded, wherein the APP is installed in a target terminal;
step S304, under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded, and a target uniform resource locator URL exists in the software package to be upgraded, acquiring a first software development kit through the URL;
step S306, in a case that it is determined that the first software development kit is compatible with the APP and the first software development kit is compatible with the operating system of the target terminal, upgrading the APP using the first software development kit.
Through the steps, under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the target uniform resource locator URL exists in the software package to be upgraded, acquiring a first software development kit through the URL; and under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with the operating system of the target terminal, upgrading the APP by using the first software development kit. Therefore, the problem that the current version of the APP is higher in upgrading requirement can be solved, the purposes that the APP is upgraded by acquiring a software development kit compatible with the operation systems of the APP and the terminal where the APP is located through the uniform resource locator in the software package to be upgraded are achieved, and the effect of reducing the upgrading requirement on the current version of the APP is achieved.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
In this embodiment, the software package to be upgraded may be pkg_appnamex, the application APP to be upgraded may be AppNameX, appNameX installed on the target terminal device, and the software development kit may be sdk_rtm. The target uniform resource locator may be "URL: sdk_rtm. In the case where there is no sdk_rtm compatible with APP in pkg_appnamex, it is determined whether there is a "URL" in pkg_appnamex: sdk_rtm ", there is" URL "in pkg_appnamex: in the case of sdk_rtm ", the following is used by" URL: the SDK_RTM acquires a first software development kit SDK_RTM_1 linked with the SDK_RTM through the URL, detects whether the first software development kit SDK_RTM_1 is compatible with the APP, determines whether the first software development kit SDK_RTM_1 is compatible with an operating system OS of a terminal where the APP is located under the condition that the first software development kit SDK_RTM_1 is compatible with the APP, upgrades the APP under the condition that the first software development kit SDK_RTM_1 is compatible with the APP, upgrades the SDK_RTM_1 to a preset storage position in the APP, and calls the SDK_RTM_1 of the preset storage position of the APP when the APP is started in the target terminal.
As an alternative embodiment, the method further comprises: determining whether a second software development kit compatible with the APP exists in the software package to be upgraded or not; acquiring a preset first upgrading software package under the condition that the second software development kit is not compatible with the operating system, wherein a third software development kit in the first upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the first upgrading software package. In this embodiment, if the software package pkg_appname to be upgraded includes the second software development kit sdk_rtm_2 compatible with the APP, it is determined whether the sdk_rtm_2 is compatible with the operating system OS of the target terminal. And under the condition of compatibility, the APP is upgraded by using the SDK_RTM_2 of PKG_AppNameX, the SDK_RTM_2 is upgraded to a preset storage position of the APP, and the SDK_RTM_2 of the preset storage position is called when the APP is started.
If the SDK_RTM_2 is incompatible with the OS of the target terminal, the APP is directly upgraded by using a first upgrade software package (2), wherein the first upgrade software package (2) is a preset upgrade software package, and the first upgrade software package (2) can meet the compatibility of a third software development tool package SDK_RTM_3 included in the first upgrade software package (2) and the APP and is compatible with the OS system of the target terminal.
Optionally, upgrading the APP using the first upgrade software package includes: acquiring a target compatible layer; upgrading the APP by using the target compatible layer and a first upgrading software package; and loading the target compatibility layer and the third software development kit to a preset storage position in the APP. In this embodiment, the target compatible layer sdk_rtm_comp is a compatible layer between sdk_rtm and OS, and is specifically used to solve the incompatibility between the two during operation, and has the characteristic of strong dependency of version. The version of the acquired SDK_RTM_Compat must be compatible with the APP's own dependent SDK_RTM and with the OS. The process of upgrading the APP by using the first upgrade software package How Update (2) as shown in FIG. 4 includes the following steps:
step 1: detecting whether the target terminal has enough space to cache the first upgrading software package, and refusing upgrading if the target terminal has no cache space;
step 2: if there is a buffer space, the target compatible layer SDK_RTM_Compat of 'SDK_RTM_3' is prompted to upload, and the SDK_RTM_Compat is preset to be compatible with the SDK_RTM on which the APP depends and is compatible with the OS. The target compatibility layer sdk_rtm_comp is a compatibility layer between sdk_rtm and OS, specifically to solve the incompatibility between the two at runtime.
Step 3: if the uploaded target compatible layer SDK_RTM_Compat is obtained, the APP is upgraded on the target terminal by using a first upgrade software package How Update (2), the SDK_RTM_3 and the SDK_RTM_Compat are upgraded to preset storage positions of the APP, and when the APP is started, the SDK_RTM_3 and the SDK_RTM_Compat of the preset storage positions are loaded.
As an alternative embodiment, the method further comprises: acquiring a preset second upgrading software package under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the target uniform resource locator URL does not exist in the software package to be upgraded, wherein a fourth software development kit in the second upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the second upgrading software package. In this embodiment, the second upgrade package is a preset package, and the fourth software development kit sdk_rtm_4 in the second upgrade package is compatible with both the APP and the operating system. The second upgrade package may be a How Update (1.1).
As an alternative embodiment, after the first software development kit is obtained through the URL, the method further includes: determining whether the first software development kit is compatible with the APP; acquiring a preset third upgrading software package under the condition that the first software development kit is not compatible with the APP, wherein a fifth software development kit in the third upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the third upgrading software package. In this embodiment, when a software development kit sdk_rtm compatible with the application APP to be upgraded exists in the software package pkg_appnamex to be upgraded, it needs to be further determined whether the sdk_rtm is compatible with the operating system of the target terminal, if not, a third upgrade software package is acquired, the third upgrade software package and the second upgrade software package may be the same software package How Update (1.1), the fifth software development kit sdk_rtm_5 in the third upgrade software package and the fourth software development kit sdk_rtm_4 in the second upgrade software package may be the same sdk_rtm, the third upgrade software package is preset, and the sdk_rtm_5 in the third upgrade software package may be ensured to be compatible with both the APP and the operating system. The APP is upgraded using sdk_rtm_5.
As an alternative embodiment, upgrading the APP includes: obtaining a target software development kit, wherein the target software development kit comprises: a fourth software development kit, a fifth software development kit; and upgrading the APP by using a target upgrading software package, wherein the target upgrading software package comprises: the second upgrading software package and the third upgrading software package; and loading the target software development kit to a preset storage position in the APP. In this embodiment, the second upgrade software package and the third upgrade software package may be the same software package How Update (1.1), and the fourth development kit sdk_rtm_4 and the fifth development kit sdk_rtm_5 may be the same software development kit sdk_rtm.
In this embodiment, as shown in fig. 5, the process of upgrading the APP by using the first upgrade software package How Update (1.1) includes the following steps:
step 1: detecting whether the target terminal has enough space to cache the target upgrading software package, and refusing upgrading if the target terminal has no cache space;
step 2: if the buffer space exists, the 'SDK_RTM' is prompted to be uploaded, and the 'SDK_RTM' is preset and can be ensured to be compatible with the APP and the operating system.
Step 3: if the uploaded SDK_RTM is obtained, upgrading the APP by using a target upgrading software package (1.1) on the target terminal, upgrading the SDK_RTM to a preset storage position of the APP, and loading the SDK_RTM of the preset storage position when the APP is started;
step 4: if 'SDK_RTM' is not acquired, the upgrade is refused.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides an apparatus for upgrading an application program, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram of an upgrade apparatus for an application program according to an embodiment of the present invention, as shown in fig. 6, the apparatus including: a first determining module 62, configured to determine whether a software development kit compatible with an APP to be upgraded exists in a software package to be upgraded, where the APP is installed in a target terminal; a first obtaining module 64, configured to obtain, when it is determined that a software development kit compatible with the APP does not exist in the software package to be upgraded, and a target uniform resource locator URL exists in the software package to be upgraded, a first software development kit through the URL; and a first upgrade module 66, configured to upgrade the APP using the first software development kit if it is determined that the first software development kit is compatible with the APP and the first software development kit is compatible with the operating system of the target terminal.
As an alternative embodiment, the apparatus further comprises: a second determining module, configured to determine, if a second software development kit compatible with the APP exists in the software package to be upgraded, whether the second software development kit is compatible with the operating system; the second acquisition module is used for acquiring a preset first upgrading software package under the condition that the second software development tool package is not compatible with the operating system, wherein a third software development tool package in the first upgrading software package is compatible with the APP and the operating system; and the second upgrading module is used for upgrading the APP by using the first upgrading software package.
As an optional embodiment, the apparatus is further configured to upgrade the APP by using the first upgrade software package to obtain a target compatible layer; upgrading the APP by using the target compatible layer and a first upgrading software package; and loading the target compatibility layer and the third software development kit to a preset storage position in the APP.
As an optional embodiment, the apparatus is further configured to obtain a preset second upgrade software package when it is determined that a software development kit compatible with the APP does not exist in the software package to be upgraded, and a target uniform resource locator URL does not exist in the software package to be upgraded, where a fourth software development kit in the second upgrade software package is compatible with both the APP and the operating system; and upgrading the APP by using the second upgrading software package.
As an optional embodiment, the above apparatus is further configured to determine, after obtaining the first software development kit through the URL, whether the first software development kit is compatible with the APP; acquiring a preset third upgrading software package under the condition that the first software development kit is not compatible with the APP, wherein a fifth software development kit in the third upgrading software package is compatible with the APP and the operating system; and upgrading the APP by using the third upgrading software package.
As an optional embodiment, the apparatus is further configured to upgrade the APP to obtain a target software development kit, where the target software development kit includes: a fourth software development kit, a fifth software development kit; and upgrading the APP by using a target upgrading software package, wherein the target upgrading software package comprises: the second upgrading software package and the third upgrading software package; and loading the target software development kit to a preset storage position in the APP.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining whether a software development kit compatible with an application program APP to be upgraded exists in a software package to be upgraded, wherein the APP is installed in a target terminal;
s2, under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded, and a target uniform resource locator URL exists in the software package to be upgraded, acquiring a first software development kit through the URL;
s3, under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal, upgrading the APP by using the first software development kit.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, determining whether a software development kit compatible with an application program APP to be upgraded exists in a software package to be upgraded, wherein the APP is installed in a target terminal;
s2, under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded, and a target uniform resource locator URL exists in the software package to be upgraded, acquiring a first software development kit through the URL;
s3, under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal, upgrading the APP by using the first software development kit.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. A method for upgrading an application program, comprising:
determining whether a software development kit compatible with an application program APP to be upgraded exists in the software package to be upgraded or not, wherein the APP is installed in a target terminal;
acquiring a first software development kit through a Uniform Resource Locator (URL) under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the URL exists in the software package to be upgraded;
upgrading the APP by using the first software development kit under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal;
wherein the method further comprises: determining whether a second software development kit compatible with the APP exists in the software package to be upgraded or not; acquiring a preset first upgrading software package under the condition that the second software development kit is not compatible with the operating system, wherein a third software development kit in the first upgrading software package is compatible with the APP and the operating system; upgrading the APP by using the first upgrading software package;
wherein, upgrade the APP using the first upgrade software package, including: obtaining a target compatible layer, wherein the target compatible layer is a compatible layer between a software development kit and an operating system; upgrading the APP by using the target compatible layer and a first upgrading software package; and loading the target compatibility layer and the third software development kit to a preset storage position in the APP.
2. The method according to claim 1, wherein the method further comprises:
acquiring a preset second upgrading software package under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the target uniform resource locator URL does not exist in the software package to be upgraded, wherein a fourth software development kit in the second upgrading software package is compatible with the APP and the operating system;
and upgrading the APP by using the second upgrading software package.
3. The method of claim 1, after retrieving a first software development kit via the URL, the method further comprising:
determining whether the first software development kit is compatible with the APP;
acquiring a preset third upgrading software package under the condition that the first software development kit is not compatible with the APP, wherein a fifth software development kit in the third upgrading software package is compatible with the APP and the operating system;
and upgrading the APP by using the third upgrading software package.
4. A method according to claim 2 or 3, the APP being upgraded comprising:
obtaining a target software development kit, wherein the target software development kit comprises: a fourth software development kit, a fifth software development kit;
and upgrading the APP by using a target upgrading software package, wherein the target upgrading software package comprises: the second upgrading software package and the third upgrading software package;
and loading the target software development kit to a preset storage position in the APP.
5. An application program upgrading apparatus, comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining whether a software development kit compatible with an application program APP to be upgraded exists in a software package to be upgraded or not, and the APP is installed in a target terminal;
the first acquisition module is used for acquiring a first software development kit through a Uniform Resource Locator (URL) under the condition that the software development kit compatible with the APP does not exist in the software package to be upgraded and the URL exists in the software package to be upgraded;
the first upgrading module is used for upgrading the APP by using the first software development kit under the condition that the first software development kit is compatible with the APP and the first software development kit is compatible with an operating system of the target terminal;
wherein the apparatus further comprises: a second determining module, configured to determine, if a second software development kit compatible with the APP exists in the software package to be upgraded, whether the second software development kit is compatible with the operating system; the second acquisition module is used for acquiring a preset first upgrading software package under the condition that the second software development tool package is not compatible with the operating system, wherein a third software development tool package in the first upgrading software package is compatible with the APP and the operating system; the second upgrading module is used for upgrading the APP by using the first upgrading software package;
the second upgrade module upgrades the APP by using the first upgrade software package in the following manner: obtaining a target compatible layer, wherein the target compatible layer is a compatible layer between a software development kit and an operating system; upgrading the APP by using the target compatible layer and a first upgrading software package; and loading the target compatibility layer and the third software development kit to a preset storage position in the APP.
6. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when run.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 4.
CN202010297261.XA 2020-04-15 2020-04-15 Application program upgrading method and device Active CN111427603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010297261.XA CN111427603B (en) 2020-04-15 2020-04-15 Application program upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010297261.XA CN111427603B (en) 2020-04-15 2020-04-15 Application program upgrading method and device

Publications (2)

Publication Number Publication Date
CN111427603A CN111427603A (en) 2020-07-17
CN111427603B true CN111427603B (en) 2023-07-14

Family

ID=71557895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010297261.XA Active CN111427603B (en) 2020-04-15 2020-04-15 Application program upgrading method and device

Country Status (1)

Country Link
CN (1) CN111427603B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199099A (en) * 2020-10-19 2021-01-08 深圳市欢太科技有限公司 Application updating method, device, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015828A (en) * 2017-03-31 2017-08-04 广东欧珀移动通信有限公司 Audio software upgrade method, application program updating method, apparatus and system
CN110764813A (en) * 2019-10-31 2020-02-07 京东方科技集团股份有限公司 Upgrading method of system software and running method thereof

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191439B2 (en) * 2001-02-28 2007-03-13 Palmsource, Inc. Verification of software application attributes for optimal compatibility with a software system
CN103559040B (en) * 2013-11-12 2016-05-18 厦门卓讯信息技术有限公司 A kind of system and method based on SDK rapid build mobile Internet application module
US20170147323A1 (en) * 2015-11-25 2017-05-25 Le Holding (Beijing) Co., Ltd. Method and electronic device for upgrading software development kit of an application
CN107122200A (en) * 2016-02-25 2017-09-01 博雅网络游戏开发(深圳)有限公司 Load plug-in unit SDK method, system and client
US10338907B2 (en) * 2016-12-04 2019-07-02 Sap Se Cloud service framework for toolkit deployment
CN108235754B (en) * 2016-12-24 2021-05-11 华为技术有限公司 Method and device for prompting user to update application version
CN108512683A (en) * 2017-02-28 2018-09-07 高德信息技术有限公司 A kind of SDK upgrade methods, device and server, mobile device
CN107450909B (en) * 2017-06-30 2020-09-08 武汉斗鱼网络科技有限公司 Processing method and device for software development kit integration validity check
CN107479923A (en) * 2017-08-07 2017-12-15 青岛海信电器股份有限公司 Application program updating method, apparatus and display terminal
CN107704260B (en) * 2017-10-31 2021-03-12 广东小天才科技有限公司 Method and system for updating software development kit of application software
CN108366127B (en) * 2018-03-07 2021-05-04 北京奇艺世纪科技有限公司 Method and device for acquiring software package
CN108881393B (en) * 2018-05-22 2021-03-23 北京达佳互联信息技术有限公司 Data issuing method, device, computer and storage medium
CN109032820B (en) * 2018-08-08 2021-02-12 网易(杭州)网络有限公司 Processing method and device for application program version compatibility
CN109614107B (en) * 2018-11-01 2022-09-16 同盾控股有限公司 Integration method and device of software development kit
CN109710265A (en) * 2018-12-28 2019-05-03 北京金山安全软件有限公司 Method and device for acquiring software installation package and electronic equipment
CN110377438B (en) * 2019-07-22 2021-09-03 广州小鹏汽车科技有限公司 Routing method, device and system of cross-process communication interface

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107015828A (en) * 2017-03-31 2017-08-04 广东欧珀移动通信有限公司 Audio software upgrade method, application program updating method, apparatus and system
CN110764813A (en) * 2019-10-31 2020-02-07 京东方科技集团股份有限公司 Upgrading method of system software and running method thereof

Also Published As

Publication number Publication date
CN111427603A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN108108181A (en) The function renewal method, apparatus and computer readable storage medium of application program
CN105138382B (en) A kind of method and terminal of android system upgrading
CN111078241B (en) OTA upgrading method and device
WO2017049550A1 (en) Adapter and adapter upgrade method
CN104834555A (en) Method for invoking functional module, related device and device repairing method
CN109725952B (en) Method, system and related device for application program plug-in
CN110543321A (en) OTA (over the air) upgrading method, device, terminal and computer readable storage medium
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
CN113064685A (en) H5 page loading method and device
CN104765624B (en) Method and device for updating application program of virtual machine
CN111427603B (en) Application program upgrading method and device
CN107526584B (en) Data access method and device
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN113342419B (en) Push system loading method and device, electronic equipment and storage medium
CN110569129A (en) Resource allocation method and device, storage medium and electronic device
KR20180050001A (en) Firmware upgrade system and method for IoT
CN110837381B (en) Software upgrading method and device for projection equipment
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN111142885A (en) eSIM device management method, device, equipment and storage medium
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN106445601A (en) Device and method for plugin upgrading
CN107632865B (en) FPGA configuration upgrading method and device
CN111246447A (en) eUICC signed data management method, eUICC signed data management module, eUICC signed data management terminal and eUICC signed data management storage medium
CN110221908B (en) Process management method for embedded device and embedded device
CN113434171A (en) Resource package updating method and device, storage medium and electronic device

Legal Events

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