CN112083939A - Batch upgrading method, device, system and medium - Google Patents

Batch upgrading method, device, system and medium Download PDF

Info

Publication number
CN112083939A
CN112083939A CN201911404048.8A CN201911404048A CN112083939A CN 112083939 A CN112083939 A CN 112083939A CN 201911404048 A CN201911404048 A CN 201911404048A CN 112083939 A CN112083939 A CN 112083939A
Authority
CN
China
Prior art keywords
terminal equipment
information
apk file
upgrading
terminal
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
Application number
CN201911404048.8A
Other languages
Chinese (zh)
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.)
Lanqiao Saiwei Technology Beijing Co ltd
Original Assignee
Lanqiao Saiwei Technology Beijing 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 Lanqiao Saiwei Technology Beijing Co ltd filed Critical Lanqiao Saiwei Technology Beijing Co ltd
Priority to CN201911404048.8A priority Critical patent/CN112083939A/en
Publication of CN112083939A publication Critical patent/CN112083939A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention relates to a batch upgrading method, which comprises the following steps: reading information of the terminal equipment, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; reading the apk file information of the highest available version; comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and upgrading the terminal equipment according to the system authority information of the terminal equipment. According to the method for upgrading the terminal equipment APP in batches, through different embodiments, all processes of upgrading the terminal equipment APP can be completed without human participation, labor cost is greatly reduced, and great convenience is provided for a test development stage. Related apparatus, systems, and media are also disclosed.

Description

Batch upgrading method, device, system and medium
Technical Field
The present invention relates to an upgrade method, and more particularly, to a method for automatic batch upgrade in a local area network environment, and an apparatus, system, program, and medium associated therewith.
Background
At present, for most mobile terminal applications of android platforms, namely, upgrading of APP, application installation programs in a system are triggered actively or through application stores in the system, and after confirmation of a user, upgrading of the applications is finally achieved. In this upgrading method, it is inevitable that the user actively participates in the operation. For example, in an application store, an update is clicked, or within a program, an application installer is actively invoked, a user is waited to click to confirm the installation, etc.
However, in some environments where users are inconvenient to participate in operation or users are not allowed to operate, the upgrading mode obviously cannot complete terminal application upgrading. Taking an intelligent prison electrification education platform as an example, terminal equipment of an android platform installed in a prison, such as a smart television or a set-top box, cannot be equipped with a remote controller due to consideration of various aspects, namely, a user cannot participate in any link in an upgrading process. In addition, many terminal devices in such a scenario do not have the silent upgrade authority. This also makes it impractical to rely on traditional terminal application self-upgrade logic during the terminal upgrade process.
Disclosure of Invention
In view of the defects in the prior art, an object of the present invention is to provide a method for realizing batch upgrade of terminal devices APP in a local area network environment without human involvement, wherein the method includes a batch upgrade program.
According to the method for upgrading the terminal equipment APP in batches, through different embodiments, all processes of upgrading the terminal equipment APP can be completed without human participation, labor cost is greatly reduced, and great convenience is provided for a test development stage.
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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram showing a model of a C/S (client-server) architecture on which an embodiment of a method according to the invention is based;
FIG. 2 is a flow diagram illustrating a batch upgrade method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an upgrade method provided for an unequalized terminal device having root rights in an embodiment of the present invention, that is, step S4 in fig. 2;
fig. 4 is a flowchart illustrating an available upgrade method provided for an uneupgraded terminal device without root rights in an embodiment of the present invention, namely step S5 in fig. 2;
FIG. 5 is a flow diagram illustrating a batch upgrade method according to another embodiment of the invention;
FIG. 6 is a flow diagram illustrating a batch upgrade method according to yet another embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating the structure of a batch upgrade apparatus according to the present application;
FIG. 8 shows a schematic diagram of a hardware carrier of a batch upgrade system according to the present application.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only the structures related to the embodiments of the present invention are shown in the drawings, not all the structures.
The embodiment of the batch upgrading method in the invention can be a single batch upgrading program, can be the combination of the batch upgrading program and the server, and can also be the combination of the batch upgrading program, the server and a plurality of clients.
In some embodiments, the architecture on which the batch upgrade method is based is a typical C/S (client-Server) architecture, where the Server side (Server) mainly includes two important modules: a terminal management module and a version management module; the Client (Client) comprises several terminal devices, as shown in fig. 1.
The terminal management module is configured to maintain information of the terminal device, and provide necessary data from the terminal device, such as version number, type, online status, IP address, and the like of the terminal device. The version management module is configured to maintain apk file information and provide information such as addresses of the highest available version of apk files for the batch upgrade program.
In the above embodiment, the batch upgrading program is configured to read terminal device information in the terminal management module, read apk file information of the highest available version in the version management module, compare existing apk file information in the terminal device with apk file information of the highest available version in the version management module, screen out devices that are not upgraded, and perform upgrading operation on the devices.
The first mode is to sequentially acquire the apk file information of each terminal device from a terminal management module of the server, compare the apk file information with the apk file information of the highest available version in the server version management module, judge whether the current terminal device is the non-upgraded terminal device, and perform subsequent upgrading operation on the current terminal device if the current terminal device is the non-upgraded terminal device; the second mode is that the information of all terminal devices is read from a terminal management module of a server, namely an information list of all terminal devices is obtained, the apk file information of the highest available version is read from a version management module of the server, then the existing apk file information in all terminal devices is compared with the apk file information of the highest available version in the version management module one by one, and if the current terminal device is judged to be the non-upgraded terminal device, the current terminal device is upgraded; the third method is that the information of all terminal devices is read from the terminal management module of the server, that is, an information list of all terminal devices is obtained, the apk file information of the highest available version is read from the version management module of the server, then the existing apk file information in all terminal devices is compared with the apk file information of the highest available version in the version management module one by one, the terminal devices which are not upgraded are judged, an uneupgraded terminal device list is generated, and after all terminal devices are screened, the uneupgraded terminal devices are upgraded according to the generated unequipped terminal device list. The specific implementation mode is as follows:
firstly, a batch upgrading program is imported to a server, and the batch upgrading program is started to be executed.
The batch upgrading program respectively reads terminal equipment information from a terminal management module of the server, wherein the terminal equipment information comprises the existing apk file information on the terminal equipment, the system authority information of the terminal equipment and the like; and reading the apk file information of the highest available version from the version management module. The two steps of reading the terminal device information from the terminal management module of the server and reading the apk file information of the highest available version from the version management module can be carried out simultaneously or sequentially and respectively.
The specific implementation mode is that the batch upgrading program sends a request to a terminal management module of the server to request the terminal management module to provide terminal equipment information including an apk file, system authority and the like of the terminal equipment; and sending a request to the version management module to request the version management module to provide the apk file information of the highest available version. And after receiving the request, a terminal management module and a version management module in the server respectively transmit terminal equipment information and apk file information with the highest available version to the program according to the request content.
Next, the existing apk file information in the terminal device is compared with the apk file information of the highest available version in the version management module, and whether the current terminal device is an un-upgraded terminal device is judged, that is, whether the version of the existing apk file in the terminal device is lower than the version of the apk file of the highest available version in the version management module is judged.
If the current terminal device is judged to be an unequipped terminal device, the system right of the unequipped terminal device is checked, and the system right information of the terminal device is read from the terminal management module of the server in step S1.
The present invention will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 2 shows a batch upgrading method based on the first manner, that is, acquiring apk file information of each terminal device from a terminal management module of a server in sequence, comparing the apk file information with apk file information of the highest version available in a server version management module, determining whether the current terminal device is an un-upgraded terminal device, and if the current terminal device is found to be an un-upgraded terminal device, performing an upgrading operation on the current terminal device, in this embodiment, the batch upgrading method includes the following steps:
s1: reading information of current terminal equipment including apk file information, system authority information and the like of the current terminal equipment from a terminal management module of a server, and reading apk file information of the highest available version from an apk management module of the server;
s2: comparing the existing apk file information of the current terminal equipment with the apk file information of the highest available version to judge whether the current terminal equipment is the non-upgraded terminal equipment, if so, executing S3, otherwise, executing S7;
s3: checking the system authority information of the current terminal equipment, and executing S4 if the current terminal equipment has root authority;
s4: connecting the current terminal equipment and replacing an apk file under a/system/app directory to finish the upgrading operation of the terminal equipment;
s6: after the current terminal equipment is upgraded, disconnecting the current terminal equipment and executing S1;
s7: and (6) ending.
Optionally, for a terminal device without root authority, one of the available upgrade manners is to connect the terminal device without root authority and to complete the upgrade of the terminal device by uninstalling the installation command, as shown in fig. 4.
And if the current terminal equipment has root authority, finishing upgrading operation in a mode of directly replacing an apk file under the system/app after connecting the current terminal equipment. The implementation mode is as follows: connecting the current terminal device, replacing an apk file under a system/APP directory, and because the apk file is not decompressed during direct replacement, a situation that a so file cannot be found in the running process of the APP may occur, therefore, in addition to replacing the apk file, if the so file used by the upgraded program is modified, a new so file needs to be issued to the system/libs/directory, for example, the so file corresponding to the apk file with the highest available version is copied to the system/libs/directory. The specific operation mode is as follows:
first, the current terminal device is connected by the adb connect command, i.e., step S41.
Secondly, call adb mount to re-mount the file system, and ensure the authority under the adb command, i.e. step S42.
Third, the adb shell rm command is called to remove the old version of the apk file, step S43.
Fourth, the adb push command is called to issue the highest available version of the apk file to the designated device/system/app/directory, step S44.
Fifthly, the batch upgrading program reads the so file of the terminal device from the server terminal management module, compares the so file with the so file of the highest available version read by the batch upgrading program from the server version management module, and judges whether the so file needs to be updated by the current terminal device, namely step S45. If it is determined that the so file needs to be updated, i.e., the so file in the current terminal device is not the so file of the highest version available, S46 is performed.
Sixthly, calling the adb push to send the so file with the highest available version to the appointed/system/libs/directory, namely step S46;
finally, after the step S46 is executed, calling an adb shell am command to start the APP; alternatively, if the so file in the current terminal device is the so file with the highest version available, i.e., the so file does not need to be updated, the adb shell am command is called to start the APP, i.e., step S47.
If the current non-upgraded terminal device has no root authority, the terminal device may be connected, and the upgrade may be completed in a manner of first uninstalling the old version APP and then installing the highest available version APP, as shown in step S5 in fig. 4, and the specific operation manner is as follows:
first, when it is determined that the current terminal device does not have the root right, the current terminal device is connected by an adb connect command, i.e., step S51.
Secondly, call adb mount to re-mount the file system, and ensure the authority under the adb command, i.e. step S52.
Third, the uninstall command is called to remove the old version of the apk file, and the uninstall of the old version of the APP is completed, i.e., step S53.
Fourthly, calling an adb push command, and issuing the apk file with the highest available version to the data/local/tmp/directory of the current terminal device, namely step 54.
Fifth, the install command is invoked to install the highest available version of the APP, step S55.
Finally, invoking the adb shell am command starts the highest available version of the APP, step S56.
Next, the connection of the terminal device that has completed the upgrade is disconnected, and S1 is executed to continue screening the non-upgraded terminal devices, i.e., step S6. The method listed in the embodiment of the invention is used for carrying out upgrading operation on the non-upgraded terminal equipment one by one until all the non-upgraded terminal equipment is upgraded, thereby realizing the goal of batch upgrading.
And (5) after all the non-upgraded terminal devices are upgraded, ending the batch upgrading procedure, namely step S7.
Fig. 5 shows a batch upgrading method based on a second manner, that is, information of all terminal devices is read from a terminal management module of a server, that is, an information list of all terminal devices is obtained, apk file information of the highest available version is read from a version management module of the server, then existing apk file information in all terminal devices is compared with apk file information of the highest available version in the version management module one by one, and if it is determined that the current terminal device is an un-upgraded terminal device, an upgrading operation is performed on the current terminal device. In this embodiment, the batch upgrade method includes the following steps:
s1: reading all terminal equipment information including apk file information, system authority information and the like of the terminal equipment from a terminal management module of a server, acquiring an information list of all terminal equipment, and reading apk file information of the highest available version from an apk management module of the server;
s2: comparing the existing apk file information of each terminal device with the apk file information of the highest available version to judge whether the current terminal device is an uneupgraded terminal device, if so, executing S3, otherwise, executing S7;
s3: checking the system authority information of the current terminal equipment, and executing S4 if the current terminal equipment has root authority;
s4: connecting the current terminal equipment and replacing an apk file under a system/directory to finish the upgrading operation of the terminal equipment;
for terminal devices without root authority, one of the available upgrading modes is to connect the non-upgraded terminal devices without root authority, and the upgrading of the terminal devices is completed by uninstalling and installing commands, as shown in fig. 4;
s6: after the current terminal equipment is upgraded, disconnecting the current terminal equipment and executing S2;
s7: and (6) ending.
Fig. 6 shows a batch upgrading method based on a third mode, that is, information of all terminal devices is read from a terminal management module of a server, that is, an information list of all terminal devices is obtained, apk file information of the highest available version is read from a version management module of the server, then existing apk file information in all terminal devices is compared with apk file information of the highest available version in the version management module one by one, a terminal device which is not upgraded is judged, an uneupgraded terminal device list is generated, and after all terminal devices are screened, the uneupgraded terminal devices are upgraded according to the generated unequipped terminal device list. In this embodiment, the batch upgrade method includes the following steps:
s1: reading all terminal equipment information including apk file information, system authority information and the like of the terminal equipment from a terminal management module of a server, acquiring an information list of all terminal equipment, and reading apk file information of the highest available version from an apk management module of the server;
s2: comparing the existing apk file information in all the terminal equipment with the apk file information of the highest available version in the version management module one by one, judging the non-upgraded terminal equipment, generating a non-upgraded terminal equipment list, and after all the terminal equipment is screened, upgrading the non-upgraded terminal equipment according to the generated non-upgraded terminal equipment list. If the list has the terminal equipment which is not upgraded, executing S3, otherwise executing S7;
s3: checking the system authority information of the current terminal equipment, and executing S4 if the current terminal equipment has root authority;
s4: connecting the current terminal equipment and replacing an apk file under a system/directory to finish the upgrading operation of the terminal equipment;
for terminal devices without root authority, one of the available upgrading modes is to connect the non-upgraded terminal devices without root authority, and the upgrading of the terminal devices is completed by uninstalling and installing commands, as shown in fig. 4;
s6: after the current terminal equipment is upgraded, disconnecting the current terminal equipment and executing S2;
s7: and (6) ending.
Fig. 7 is a schematic structural diagram of a batch upgrading apparatus according to an embodiment of the present invention, which is capable of executing a batch method according to any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 7, the apparatus may include:
the reading module 10 is configured to read information of the terminal device, where the information includes apk file information of the terminal device, system authority information of the terminal device, and apk file information of the highest available version;
the comparison module 20 is configured to compare the apk file information of the terminal device with the apk file information of the highest available version, and determine whether the terminal device is an uneupgrade terminal device; and
and the upgrading operation module 30 is configured to perform upgrading operation on the terminal device determined as not upgraded according to the system permission information of the terminal device.
On the basis of the above embodiment, the reading module 10 and the comparing module 20 are specifically configured to: reading the information of each terminal device one by one from a terminal management module of a server, wherein the information at least comprises apk file information of the terminal device and system authority information of the terminal device; comparing the apk file information of each terminal device with the apk file information of the highest available version one by one, and judging whether the current terminal device is an uneupgraded terminal device; or reading all terminal equipment information from a terminal management module of the server, wherein the terminal equipment information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; comparing the apk file information of each terminal device with the apk file information of the highest available version one by one, and judging whether the current terminal device is an uneupgraded terminal device; or reading all terminal equipment information from a terminal management module of the server, wherein the terminal equipment information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; and comparing the apk file information of all the terminal equipment with the apk file information of the highest available version one by one, judging the terminal equipment which is not upgraded, and generating a list of the terminal equipment which is not upgraded.
The upgrade module 30 is configured to perform an upgrade operation on a terminal device that is not upgraded, and specifically includes: upgrading the terminal equipment which is not upgraded currently; and after the upgrading operation of the current non-upgraded terminal equipment is completed, carrying out upgrading operation on the next non-upgraded terminal equipment.
Wherein, upgrading the next non-upgraded terminal device specifically comprises: reading the information of another terminal device from a terminal management module of the server, wherein the information at least comprises apk file information of the terminal device and system authority information of the terminal device; comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the current terminal equipment is the terminal equipment which is not upgraded; and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
Or, the upgrading operation of the next un-upgraded terminal device specifically includes: comparing the apk file information of another terminal device in all terminal devices read from a terminal management module of the server with the apk file information of the highest available version, and judging whether the current terminal device is the terminal device which is not upgraded; and carrying out upgrading operation on the terminal equipment which is not upgraded.
Or, the upgrading operation of the next un-upgraded terminal device specifically includes: comparing the apk file of the other un-upgraded terminal device in the generated un-upgraded terminal device list with the apk file information of the highest available version, and judging whether the current terminal device is the un-upgraded terminal device; and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
The upgrading operation performed on the non-upgraded terminal device may specifically include: checking whether the system authority of the current terminal equipment is the authority of modifying the system file of the current terminal equipment; and if the current terminal equipment has the authority of modifying the system file, finishing the upgrading operation of the terminal equipment by replacing the apk file under the system application directory after connecting the current terminal equipment.
The upgrading operation performed on the non-upgraded terminal device may specifically include: checking the system authority of the current terminal equipment; and the current terminal equipment which does not have the authority of modifying the system file of the current terminal equipment is connected with the current terminal equipment and then the upgrading operation of the terminal equipment is completed by utilizing the uninstalling and installing command.
For the current terminal equipment with batch upgrading, the upgrading operation of the terminal equipment is completed in a mode of replacing an apk file under a system application directory after the current terminal equipment is connected, and the method specifically comprises the following steps: connecting the current terminal equipment; mounting the file system again to ensure the authority under the adb command; removing the old version of the apk file; the apk file with the highest available version is issued to a specified system application directory; reading the library file of the terminal equipment from the server terminal management module, comparing the library file with the latest library file of the highest available version read from the server version management module by the batch upgrading program, and judging whether the current terminal equipment needs to update the library file; if the library file needs to be updated, the library file with the highest available version is issued to a specified system library file directory, and then the application is started; and if the library file does not need to be updated, starting the application after the apk file with the highest available version is issued to the system application directory of the specified equipment.
For the current terminal equipment without the authority of modifying the system file of the current terminal equipment, the upgrading operation of the terminal equipment can be completed by utilizing an uninstalling and installing command after the current terminal equipment is connected, and the upgrading operation comprises the following steps: connecting the current terminal equipment; mounting the file system again to ensure the authority under the adb command; calling an uninstalling command to remove the apk file of the old version and completing uninstalling of the application of the old version; the method comprises the steps that an apk file of the highest available new version is issued to a data temporary storage directory of a specified current terminal device; calling an installation command to install and carry out installation operation of the application with the highest available new version; and launching the highest available version of the application.
The batch upgrading device provided by the embodiment of the invention can execute the batch upgrading method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a batch upgrading method provided in any embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a batch upgrading system according to an embodiment of the present invention. FIG. 8 illustrates a block diagram of an exemplary system 400 suitable for use in implementing embodiments of the present invention. The system 400 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 8, system 400 is in the form of a general purpose computing device. The components of system 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
System 400 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by system 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The system 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The system 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the system 400, and/or with any devices (e.g., network card, modem, etc.) that enable the system 400 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Moreover, the system 400 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via a network adapter 412. As shown, the network adapter 412 communicates with the other modules of the system 400 over a bus 403. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with system 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, to implement the batch upgrade method provided by the embodiment of the present invention, including:
reading information of the terminal equipment, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment;
reading the apk file information of the highest available version;
comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and
and upgrading the terminal equipment according to the system authority information of the terminal equipment.
Embodiments of the present invention also provide a computer-readable storage medium, where the computer-executable instructions, when executed by a computer processor, are configured to perform a method for batch upgrade, the method comprising:
reading information of the terminal equipment, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment;
reading the apk file information of the highest available version;
comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and
and upgrading the terminal equipment according to the system authority information of the terminal equipment.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in a batch upgrading method provided by any embodiment of the present invention. The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
The terms used in the present invention adopt the following basic definitions, unless otherwise defined:
1. C/S architecture, i.e., Client-Server-Client architecture. The C/S structure generally takes the form of a two-layer structure. The server is responsible for data management, and the client is responsible for completing interaction tasks with the user. The client is connected with the server through the local area network, receives the request of the user, and makes the request to the server through the network to operate the database. The server receives the request of the client, submits the data to the client, and the client calculates the data and presents the result to the user. The server also provides operations such as sophisticated security and handling of data integrity, and allows multiple clients to access the server simultaneously.
2. apk (fully known as the android application package) is an application package file format used by the android operating system for distributing and installing mobile applications and middleware. The code of an android application program is to be run on an android device, and the android application program must be compiled and then packaged into a file which can be recognized by an android system to be run, and the file format which can be recognized and run by the android system is 'APK'. An APK file contains compiled code files (. dex files), resources of files (resources), native resource files (assets), certificates (certifies), and manifest files (manifest files)
3. The existing apk file in the equipment which is not upgraded, namely the terminal equipment is lower than the latest apk file in the version management module.
4. root rights, a type of SYSTEM rights, also called root rights, and SYSTEM rights can be understood as a concept, but higher than administrator rights. Obtaining root rights means that the highest rights of the system have been obtained, and at this time, you can perform all operations of addition, deletion, modification and check on any file in the system (including the system file).
5. adb (fully-known as android debug bridge) is a command line tool with various functions, and is also a client-server program which can communicate with equipment. The adb command facilitates the execution of various device operations (e.g., installing and debugging applications) and provides access to the Unix shell (which may be used to run various commands on the device).
6. so file, that is, ELF file format, is a unified format of executable file, shared library file and target file under Linux. Since the bottom layer of the android operating system is based on the Linux system, so the so file can run on the android platform.
Examples of the invention are as follows:
1. the batch upgrading method is used for batch upgrading terminal equipment application without human participation in a local area network environment, and is characterized in that: the method comprises the following steps:
reading information of the terminal equipment, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment;
reading the apk file information of the highest available version;
comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and
and upgrading the terminal equipment according to the system authority information of the terminal equipment.
2. The batch upgrade method according to example 1, characterized in that: reading the information of the terminal equipment at least comprises reading apk file information of the terminal equipment and system authority information of the terminal equipment, and comparing the apk file information of the terminal equipment with apk file information of the highest available version; the alignment comprises:
reading the information of each terminal device one by one from a terminal management module of a server, wherein the information at least comprises apk file information of the terminal device and system authority information of the terminal device; and
comparing the apk file information of each terminal device with the apk file information of the highest available version one by one, and judging whether the current terminal device is an uneupgraded terminal device; .
3. The batch upgrading method according to example 1, characterized in that reading terminal device information includes reading at least apk file information of the terminal device and system permission information of the terminal device, and comparing the apk file information of the terminal device with apk file information of the highest available version; the alignment comprises:
reading all terminal equipment information from a terminal management module of a server, wherein the terminal equipment information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; and
and comparing the apk file information of each terminal device with the apk file information of the highest available version one by one, and judging whether the current terminal device is the non-upgraded terminal device.
4. The batch upgrading method according to example 1, characterized in that reading terminal device information includes reading at least apk file information of the terminal device and system permission information of the terminal device, and comparing the apk file information of the terminal device with apk file information of the highest available version; the alignment comprises:
reading all terminal equipment information from a terminal management module of a server, wherein the terminal equipment information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment;
comparing the apk file information of all terminal equipment with the apk file information of the highest available version one by one, judging the terminal equipment which is not upgraded, and generating a terminal equipment list which is not upgraded; and
and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
5. The batch upgrading method according to example 1, wherein the upgrading operation performed on the non-upgraded terminal device includes:
upgrading the terminal equipment which is not upgraded currently;
and after the upgrading operation of the current non-upgraded terminal equipment is completed, carrying out upgrading operation on the next non-upgraded terminal equipment.
6. The batch upgrading method according to example 5, wherein the upgrading operation performed on the next non-upgraded terminal device specifically includes:
reading the information of another terminal device from a terminal management module of the server, wherein the information at least comprises apk file information of the terminal device and system authority information of the terminal device;
comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the current terminal equipment is the terminal equipment which is not upgraded; and
and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
7. The batch upgrading method according to example 5, wherein the upgrading operation performed on the next non-upgraded terminal device specifically includes:
comparing the apk file information of another terminal device in all terminal devices read from a terminal management module of the server with the apk file information of the highest available version, and judging whether the current terminal device is the terminal device which is not upgraded; and
and carrying out upgrading operation on the terminal equipment which is not upgraded.
8. The batch upgrading method according to example 5, wherein the upgrading operation performed on the next non-upgraded terminal device specifically includes:
comparing the apk file of the other un-upgraded terminal device in the generated un-upgraded terminal device list with the apk file information of the highest available version, and judging whether the current terminal device is the un-upgraded terminal device; and
and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
9. The batch upgrading method according to example 1, wherein the upgrading operation performed on the non-upgraded terminal device specifically includes:
checking whether the system authority of the current terminal equipment is the authority of modifying the system file of the current terminal equipment; and
and if the current terminal equipment has the authority of modifying the system file, finishing the upgrading operation of the terminal equipment in a mode of replacing the apk file under the system application directory after connecting the current terminal equipment.
10. The batch upgrading method according to example 1, wherein the upgrading operation performed on the non-upgraded terminal device specifically includes:
checking the system authority of the current terminal equipment; and
and for the current terminal equipment without the authority of modifying the system file of the current terminal equipment, finishing the upgrading operation of the terminal equipment by utilizing an uninstalling and installing command after connecting the current terminal equipment.
11. The batch upgrading method according to example 9, wherein the step of completing the upgrading operation of the terminal device by connecting the current terminal device with the batch upgraded current terminal device in a manner of replacing an apk file in a system application directory specifically includes:
connecting the current terminal equipment;
mounting the file system again to ensure the authority under the adb command;
removing the old version of the apk file;
the apk file with the highest available version is issued to a specified system application directory; and
reading the library file of the terminal equipment from the server terminal management module, comparing the library file with the latest library file of the highest available version read from the server version management module by the batch upgrading program, and judging whether the current terminal equipment needs to update the library file; and
if the library file needs to be updated, the library file with the highest available version is issued to a specified system library file directory, and then the application is started;
and if the library file does not need to be updated, starting the application after the apk file with the highest available version is issued to the system application directory of the specified equipment.
12. The batch upgrading method according to example 10, wherein, for a current terminal device that does not have a right to modify a system file of the current terminal device, completing an upgrading operation of the terminal device by using an uninstall/install command after connecting the current terminal device includes:
connecting the current terminal equipment;
mounting the file system again to ensure the authority under the adb command;
calling an uninstalling command to remove the apk file of the old version and completing uninstalling of the application of the old version;
the method comprises the steps that an apk file of the highest available new version is issued to a data temporary storage directory of a specified current terminal device;
calling an installation command to install and carry out installation operation of the application with the highest available new version; and
the highest available version of the application is launched.
13. Batch upgrading device, which is used for batch upgrading terminal equipment application without human participation in the LAN environment, and is characterized in that: the method comprises the following program modules:
the reading module is configured to read information of the terminal device, wherein the information comprises apk file information of the terminal device, system authority information of the terminal device and apk file information of the highest available version;
the comparison module is configured to compare the apk file information of the terminal equipment with the apk file information of the highest available version and judge whether the terminal equipment is the terminal equipment which is not upgraded; and
and the upgrading operation module is used for upgrading the terminal equipment which is judged not to be upgraded according to the system permission information of the terminal equipment.
14. The batch upgrade apparatus according to example 1, characterized in that: the read module, the compare module, and/or the upgrade operation module are configured to perform operations in one or more of examples 1-12 above.
15. Batch upgrading system, its characterized in that: comprising an upgrade server in operable communication with at least one terminal device; the upgrading server is provided with a terminal management module, a version management module and a batch upgrading device; the batch upgrading device is configured to read information of terminal equipment read by the terminal equipment from the terminal management module, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; reading the apk file information of the highest available version from the version management module; comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
16. The batch upgrade system according to example 16, characterized in that: the batch upgrade apparatus is configured to perform the method of at least one of examples 1 to 12 above.
17. A storage medium having stored thereon a batch upgrade program, the batch upgrade program comprising a set of instructions, when executed on a processor, for implementing the method of at least one of the above examples 1 to 12.

Claims (4)

1. The batch upgrading method is used for batch upgrading terminal equipment application without human participation in a local area network environment, and is characterized in that: the method comprises the following steps:
reading information of the terminal equipment, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment;
reading the apk file information of the highest available version;
comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and
and upgrading the terminal equipment according to the system authority information of the terminal equipment.
2. Batch upgrading device, which is used for batch upgrading terminal equipment application without human participation in the LAN environment, and is characterized in that: the method comprises the following program modules:
the reading module is configured to read information of the terminal device, wherein the information comprises apk file information of the terminal device, system authority information of the terminal device and apk file information of the highest available version;
the comparison module is configured to compare the apk file information of the terminal equipment with the apk file information of the highest available version and judge whether the terminal equipment is the terminal equipment which is not upgraded; and
and the upgrading operation module is used for upgrading the terminal equipment which is judged not to be upgraded according to the system permission information of the terminal equipment.
3. Batch upgrading system, its characterized in that: comprising an upgrade server in operable communication with at least one terminal device; the upgrading server is provided with a terminal management module, a version management module and a batch upgrading device; the batch upgrading device is configured to read information of the terminal equipment from the terminal management module, wherein the information at least comprises apk file information of the terminal equipment and system authority information of the terminal equipment; reading the apk file information of the highest available version from the version management module; comparing the apk file information of the terminal equipment with the apk file information of the highest available version, and judging whether the terminal equipment is the terminal equipment which is not upgraded; and carrying out upgrading operation on the terminal equipment which is judged not to be upgraded.
4. A storage medium having stored thereon a batch upgrade program, said batch upgrade program comprising a set of instructions for implementing the method of claim 1 when executed on a processor.
CN201911404048.8A 2019-12-31 2019-12-31 Batch upgrading method, device, system and medium Pending CN112083939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911404048.8A CN112083939A (en) 2019-12-31 2019-12-31 Batch upgrading method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911404048.8A CN112083939A (en) 2019-12-31 2019-12-31 Batch upgrading method, device, system and medium

Publications (1)

Publication Number Publication Date
CN112083939A true CN112083939A (en) 2020-12-15

Family

ID=73734358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911404048.8A Pending CN112083939A (en) 2019-12-31 2019-12-31 Batch upgrading method, device, system and medium

Country Status (1)

Country Link
CN (1) CN112083939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562696A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Software upgrading method, control equipment and intelligent screen

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047561A (en) * 2006-06-28 2007-10-03 华为技术有限公司 Method for automatic updating of equipment
CN102123154A (en) * 2011-03-17 2011-07-13 北京邮电大学 Session initiation protocol (SIP) terminal and session processing method
CN102546675A (en) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 Software upgrading system and method
CN103826080A (en) * 2012-11-16 2014-05-28 杭州海康威视数字技术股份有限公司 Method and system for batch upgrading of hard-disk video recorders
CN104579752A (en) * 2014-12-15 2015-04-29 南昌市科陆智能电网科技有限公司 Remote automatic upgrading system and remote automatic upgrading method
CN106775879A (en) * 2016-12-22 2017-05-31 福建天泉教育科技有限公司 Installation method and its system are exempted from VR applications based on Android system client
CN107766063A (en) * 2016-08-15 2018-03-06 深圳壹号柜科技股份有限公司 A kind of method and system of batch upgrade software
CN108923985A (en) * 2018-07-16 2018-11-30 四川长虹网络科技有限责任公司 The method of the batch upgrade network equipment in distributed network management system
CN109165032A (en) * 2018-08-23 2019-01-08 郑州云海信息技术有限公司 A kind of baseboard management controller BMC setting method, device and storage medium
CN109428936A (en) * 2017-09-04 2019-03-05 中国移动通信有限公司研究院 Upgrade method, device, system, electronic equipment and the storage medium of APP

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047561A (en) * 2006-06-28 2007-10-03 华为技术有限公司 Method for automatic updating of equipment
CN102546675A (en) * 2010-12-08 2012-07-04 鸿富锦精密工业(深圳)有限公司 Software upgrading system and method
CN102123154A (en) * 2011-03-17 2011-07-13 北京邮电大学 Session initiation protocol (SIP) terminal and session processing method
CN103826080A (en) * 2012-11-16 2014-05-28 杭州海康威视数字技术股份有限公司 Method and system for batch upgrading of hard-disk video recorders
CN104579752A (en) * 2014-12-15 2015-04-29 南昌市科陆智能电网科技有限公司 Remote automatic upgrading system and remote automatic upgrading method
CN107766063A (en) * 2016-08-15 2018-03-06 深圳壹号柜科技股份有限公司 A kind of method and system of batch upgrade software
CN106775879A (en) * 2016-12-22 2017-05-31 福建天泉教育科技有限公司 Installation method and its system are exempted from VR applications based on Android system client
CN109428936A (en) * 2017-09-04 2019-03-05 中国移动通信有限公司研究院 Upgrade method, device, system, electronic equipment and the storage medium of APP
CN108923985A (en) * 2018-07-16 2018-11-30 四川长虹网络科技有限责任公司 The method of the batch upgrade network equipment in distributed network management system
CN109165032A (en) * 2018-08-23 2019-01-08 郑州云海信息技术有限公司 A kind of baseboard management controller BMC setting method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562696A (en) * 2022-02-24 2023-01-03 荣耀终端有限公司 Software upgrading method, control equipment and intelligent screen
CN115562696B (en) * 2022-02-24 2023-09-08 荣耀终端有限公司 Software upgrading method, control equipment and intelligent screen

Similar Documents

Publication Publication Date Title
US11698781B2 (en) System and method for upgrading kernels in cloud computing environments
US9229707B2 (en) Zero downtime mechanism for software upgrade of a distributed computer system
US7334162B1 (en) Dynamic distribution of test execution
US8352916B2 (en) Facilitating the automated testing of daily builds of software
US9614931B2 (en) Identifying a resource set require for a requested application and launching the resource set in a container for execution in a host operating system
KR20060045811A (en) Efficient patching
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN111581077A (en) Intelligent contract testing method and device
CN111459506A (en) Deployment method, device, medium and electronic equipment of deep learning platform cluster
CN112083939A (en) Batch upgrading method, device, system and medium
US20060080399A1 (en) Remote configuration management for data processing units
CN111708545A (en) Business process deployment method and device, electronic equipment and storage medium
CN109522174B (en) Method, device, terminal and storage medium for controlling adb enabling
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment
CN112486517B (en) Application program installation method and system, electronic equipment and storage medium
CN113656063A (en) System version replacing method, device, equipment and computer readable medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN114489704A (en) Version compiling and deploying method and device based on strategy
CN113986385A (en) Item font library loading method and device, electronic equipment and storage medium
CN113504916A (en) Code updating method and device, computer equipment and medium
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
CN111984275A (en) System deployment method, system, terminal and storage medium based on CPU architecture type

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