CN115268958A - Distributed silent upgrading method and device based on Android system - Google Patents

Distributed silent upgrading method and device based on Android system Download PDF

Info

Publication number
CN115268958A
CN115268958A CN202110476777.5A CN202110476777A CN115268958A CN 115268958 A CN115268958 A CN 115268958A CN 202110476777 A CN202110476777 A CN 202110476777A CN 115268958 A CN115268958 A CN 115268958A
Authority
CN
China
Prior art keywords
mobile phone
upgrading
memory
current operating
user
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
CN202110476777.5A
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.)
Beijing Zhongguancun Kejin Technology Co Ltd
Original Assignee
Beijing Zhongguancun Kejin 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 Beijing Zhongguancun Kejin Technology Co Ltd filed Critical Beijing Zhongguancun Kejin Technology Co Ltd
Priority to CN202110476777.5A priority Critical patent/CN115268958A/en
Publication of CN115268958A publication Critical patent/CN115268958A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a distributed silence upgrading method and device based on an Android system, wherein the method comprises the following steps: dividing an Android system upgrade file into K modules in advance; each module sets a corresponding version number; receiving version information of a current operating system of the mobile phone, hardware information and memory information of the mobile phone in a networking state; the server side judges whether the current operating system of the mobile phone and the mobile phone meet the upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information; when the current operating system of the mobile phone and the mobile phone meet the upgrading conditions, the modification modules of the Android system upgrading files are downloaded in a modularized distributed mode, a memory space is opened in a mobile phone memory, and the downloaded modification modules are stored in the memory space. The silent upgrade does not disturb the user, the upgrade rate of the mobile phone can be greatly improved, the problem of Android mobile phone blockage is solved to a great extent, and the user experience is friendly.

Description

Distributed silent upgrading method and device based on Android system
Technical Field
The application relates to the technical field of computer data processing, in particular to a distributed silent upgrading method and device based on an Android system.
Background
At present, most Android mobile phone users reflect that the mobile phones which are bought just start to be blocked for a short time, even if some videos and photos occupying the memory are deleted, the Android mobile phones cannot be used for any reason, and the reason why many users abandon the Android mobile phones and invest in the iPhone army is also the main reason. In fact, the Android mobile phone is stuck with the problems of the system itself except the insufficient memory, and many stuck problems can be well solved along with the upgrading of the system version. However, some users are afraid of becoming 'plate bricks' after mobile phone upgrading and are not liable to upgrade, and some users feel that the upgrading is time-consuming and is not convenient to operate.
The current mounting methods are roughly two types:
1. checking the latest version, prompting a user to download the whole android system software, and loading the whole android software into a memory during running;
2. and (4) checking the mobile phone memory by a background, opening up a space, downloading the whole android system software, and loading the whole android software into the memory during running.
For the first installation mode, the user is frequently prompted to download the android system, which causes the user to feel uncomfortable, the user experience effect is greatly reduced, and moreover, the whole file needs to be downloaded each time, a large amount of flow is consumed, and a large amount of user time is occupied, so that many users refuse to update the system.
For the second installation method, although it will not cause trouble to the user, it still needs to open a small memory in the limited space of the mobile phone to download. On high end machines there may be little effect, but on low end machines, due to insufficient memory, it is not suitable to quiet the installation in this way.
In summary, if the low-end computer can only adopt the first mode, the user is prompted to install manually, but the installation will of most users is not high, and even if the user selects installation, due to insufficient memory, the upgrade may fail because all codes cannot be downloaded; if a high-end machine is currently recommended, the second method is still required to open up a large amount of space for downloading the whole program. No matter which mode is adopted, a large amount of flow and a large amount of space are occupied, the requirement on the memory of the mobile phone is high, and the probability of installation failure is greatly increased.
Disclosure of Invention
It is an object of the present application to overcome the above problems or to at least partially solve or mitigate the above problems.
According to one aspect of the application, a distributed silent upgrading method based on an Android system is provided, and comprises the following steps:
dividing an Android system upgrade file into K modules in advance; each module is provided with a corresponding version number;
receiving version information of a current operating system of the mobile phone, hardware information of the mobile phone and memory information in a networking state;
the server side judges whether the current operating system of the mobile phone and the mobile phone meet the upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
when the current operating system of the mobile phone and the mobile phone meet the upgrading conditions, the modification modules of the Android system upgrading file are downloaded in a modularized distributed mode, a memory space is opened up in a mobile phone memory, the downloaded modification modules are stored in the memory space, and the modification modules are one or more modules with version numbers larger than that of the current operating system of the mobile phone.
Preferably, the step of judging whether the current operating system of the mobile phone and the mobile phone meet the upgrade condition comprises:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet the upgrade condition.
Preferably, in the networking state, after receiving version information of the current operating system of the mobile phone, hardware information of the mobile phone, and memory information, the method further includes:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
Preferably, determining whether the user has agreed to the automatic upgrade protocol comprises:
if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone;
if the user does not agree with the automatic upgrading protocol, prompting the user whether to agree with the automatic upgrading protocol; if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone; if the user does not agree with the automatic upgrading protocol, prompting the user whether to upgrade manually;
if the user agrees to manual upgrading, directly upgrading the system;
and if the user does not agree with the manual upgrading, prompting the user whether to manually upgrade at intervals, or prompting the user whether to manually upgrade when a new version Android system upgrade file exists.
Preferably, dividing the Android system upgrade file into K modules includes:
and dividing the Android system upgrade file into K modules according to the functions realized by the codes.
Preferably, the method further comprises:
and after the Android system upgrade file is determined to be downloaded and installed successfully, deleting one or more modules corresponding to the modification module in the current operating system of the mobile phone.
In a second aspect, the present invention further provides a distributed silence upgrading apparatus based on an Android system, including:
the system comprises a dividing module, a storage module and a processing module, wherein the dividing module is set to divide an Android system upgrade file into K modules in advance; each module is provided with a corresponding version number;
the communication module is set to receive the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone in a networking state;
the judging module is set to judge whether the current operating system of the mobile phone and the mobile phone meet the upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
the upgrading module is set to modularly and distributively download the modification module of the Android system upgrading file when the current operating system of the mobile phone and the mobile phone meet upgrading conditions, a memory space is opened up in a memory of the mobile phone, the downloaded modification module is stored in the memory space, and the modification module is one or more modules with version numbers larger than that of the current operating system of the mobile phone.
Preferably, the judging module judging whether the current operating system of the mobile phone and the mobile phone meet the upgrade condition includes:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet upgrade conditions.
Preferably, after receiving version information of a current operating system of the mobile phone, hardware information of the mobile phone, and memory information in the networking state of the communication module, the method further includes:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
In a third aspect, the present invention also provides a computing device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the above method when executing the computer program.
Compared with the prior art, the distributed silence upgrading method and device based on the Android system have the following effects:
1. the user is not disturbed by silent upgrading, the upgrading rate of the mobile phone can be greatly improved, the problem of unsmooth Android mobile phone card is solved to a great extent, and the user experience is friendly;
2. the modularized distributed type usage can record only the modified content during each version iteration, and only the modified part is downloaded to the local part of the mobile phone, so that the memory space of the mobile phone can be greatly saved, the generation of mobile phone blockage can be reduced, the user can have more free space, the utilization rate and the satisfaction degree of the user are improved, and in addition, the difficult problem that a plurality of low-end machines cannot be normally upgraded is solved;
3. because only the codes of the modified part are replaced, the method can be realized by only adding a small amount of codes on the program, the existing project structure can not be changed, the later maintenance is convenient, and the silent installation is really realized.
4. Besides the comparison of version information, the comparison of the hardware information and the memory size of the mobile phone is increased, so that the probability of upgrade failure is greatly reduced, and the range of the Android mobile phone capable of upgrading the system is improved, which cannot be compared with the prior art.
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of example and not by way of limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a schematic flowchart of a distributed silent upgrade method based on an Android system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a distributed silence upgrading apparatus based on an Android system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a distributed silence upgrading method based on an Android system according to an embodiment of the present application;
FIG. 4 is a schematic block diagram of a first computer-readable storage medium according to an embodiment of the present application;
fig. 5 is a schematic block diagram of a second computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Fig. 1 is a diagram illustrating a distributed silent upgrade method based on an Android system according to an embodiment of the present application, where an Android system upgrade file is divided into K modules in advance; each module is provided with a corresponding version number;
the general may include steps S101 to S103:
s101, receiving version information of a current operating system of the mobile phone, hardware information of the mobile phone and memory information in a networking state;
s102, the server side judges whether the current operating system of the mobile phone and the mobile phone meet upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
s103, when the current operating system of the mobile phone and the mobile phone meet upgrading conditions, the modifying modules of the Android system upgrading files are downloaded in a modularized distributed mode, a memory space is opened up in a mobile phone memory, the downloaded modifying modules are stored in the memory space, and the modifying modules are one or more modules with version numbers larger than that of the current operating system of the mobile phone.
The embodiment of the invention divides an Android system upgrade file into K modules when an Android system is upgraded, wherein K is a positive integer and comprises a starting module (/ boot), a system module (/ system), a maintenance module (/ recovery), a data module (/ data), a cache module (/ cache), a setting module (/ misc), a memory module (/ sdcard) and an external memory module (/ sd-ext), and the like, wherein each large module is divided into different small modules according to different paths, and each small module is used as a maintenance list. For example, the system modules may be classified into video, photo, data, camera, phone, message, etc. according to the functions implemented by the codes. Each module defines its own version number. And when the system is upgraded every time, after the corresponding module is modified, the version number of the module is modified correspondingly. A list is maintained at the server that contains the upgrade version number and the version number of the module corresponding to that version. Meanwhile, the table is required to store the size of the memory occupied by the modules and the requirement of the mobile phone hardware suitable for upgrading.
The embodiment of the invention can record the modified content during each version iteration by using the modularized distributed mode, and only downloads the modified part to the local part of the mobile phone, thereby greatly saving the memory space of the mobile phone, reducing the generation of mobile phone blockage, ensuring that users have more free space, improving the utilization rate and satisfaction degree of the users, and solving the problem that a plurality of low-end machines cannot be normally upgraded.
The embodiment of the invention only replaces the codes of the modified part, so the method can be realized by adding a small amount of codes on the program, the existing project structure can not be changed, the later maintenance is convenient, and the silent installation is really realized.
The embodiment of the invention develops a memory space in the memory of the mobile phone for storing the modification module, does not directly replace the file corresponding to the current operating system of the mobile phone, avoids the problem that the mobile phone cannot be normally used due to the error deletion of the current operating system module of the mobile phone caused by the failure of file downloading, and deletes one or more modules corresponding to the modification module in the current operating system of the mobile phone after the file downloading and installation are successful, thereby improving the probability of successful system upgrading.
When a plurality of modules need to be modified, the memories which need to be occupied by all the modification modules are matched, when the mobile phone memory meets the space requirements of all the modification modules, the system is upgraded, and if the mobile phone memory only meets the space requirements of part of the modification modules, the system is not upgraded, so that the problem that the mobile phone cannot be used due to compatibility and the like when only part of the modification modules are upgraded is avoided.
In the embodiment of the present invention, the judging whether the current operating system of the mobile phone and the mobile phone meet the upgrade condition includes:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet the upgrade condition.
In the embodiment of the present invention, after receiving version information of a current operating system of a mobile phone, hardware information of the mobile phone, and memory information in a networking state, the method further includes:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
In the embodiment of the present invention, determining whether the user agrees to the automatic upgrade protocol includes:
if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone;
if the user does not agree with the automatic upgrading protocol, prompting the user whether to agree with the automatic upgrading protocol; if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone; if the user does not agree with the automatic upgrading protocol, prompting the user whether to upgrade manually;
if the user agrees to manual upgrading, directly upgrading the system;
and if the user does not agree with the manual upgrading, prompting the user whether to manually upgrade at intervals, or prompting the user whether to manually upgrade when a new version Android system upgrade file exists.
The essence of Android system upgrade is to upgrade files in a system partition, and in the embodiment of the invention, dividing the Android system upgrade files into K modules comprises: the system comprises a starting module (/ boot), a system module (/ system), a maintenance module (/ recovery), a data module (/ data), a cache module (/ cache), a setting module (/ misc), an internal memory module (/ sdcard) and an external memory module (/ sd-ext), wherein each large module is divided into different small modules according to different paths, and each small module is used as a maintenance list.
And dividing the Android system upgrade file into K modules according to the functions realized by the codes.
In this embodiment of the present invention, the distributed silent upgrade method further includes:
and determining that the Android system upgrade file is downloaded and installed successfully, and deleting one or more modules corresponding to the modification module in the current operating system of the mobile phone after the user can use the current system smoothly.
The embodiment of the invention adds the comparison between the hardware information and the memory size, thereby greatly reducing the probability of system upgrade failure; meanwhile, a user agreement protocol is added, and a silent installation mode is started to play a perpetual effect if the user agrees with the user agreement; in addition, by adopting the modularized distributed management, the version maintenance is simpler, the memory of the mobile phone is greatly saved, the problem of unsmooth mobile phone card is solved, good experience is brought to users, and most importantly, the problem that a plurality of low-end machines cannot be normally upgraded is solved.
As shown in fig. 2, an embodiment of the present invention further provides a distributed silent upgrade apparatus based on an Android system, including:
the dividing module 100 is configured to divide the Android system upgrade file into K modules in advance; each module sets a corresponding version number;
the communication module 200 is set to receive the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone in a networking state;
the judging module 300 is configured to judge whether the current operating system of the mobile phone and the mobile phone meet the upgrade condition according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
the upgrading module 400 is configured to modularly and distributively download a modification module of the Android system upgrade file when the current operating system of the mobile phone and the mobile phone meet upgrading conditions, open a memory space in a memory of the mobile phone, and store the downloaded modification module in the memory space, wherein the modification module is one or more modules with a version number larger than that of the current operating system of the mobile phone.
In the embodiment of the present invention, the determining module 300 determining whether the current operating system of the mobile phone and the mobile phone satisfy the upgrade condition includes:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet upgrade conditions.
In this embodiment of the present invention, after receiving version information of a current operating system of a mobile phone, hardware information of the mobile phone, and memory information in a networking state of the communication module 200, the method further includes:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
In the embodiment of the present invention, the dividing module 100 divides the Android system upgrade file into K modules, including:
and dividing the Android system upgrade file into K modules according to the functions realized by the codes.
As shown in fig. 3, the distributed silent upgrade method according to the embodiment of the present invention generally includes:
uploading version information of a current operating system of the mobile phone, hardware information and memory information of the mobile phone in a networking state;
after the server-side comparison, if the current operating system version is larger than the local version number of the mobile phone, the memory of the modification module is smaller than the existing memory of the mobile phone, and the hardware information of the mobile phone is suitable for the current version, the upgrading condition is met;
if the mobile phone meets the upgrading condition, the modified codes are downloaded in a modularized distributed manner, a space is opened up in the memory, and the codes are put into the space;
it is then determined whether the user has agreed to the agreement.
(1) If yes, the user can silence the installation and upgrade system when restarting the mobile phone;
(2) If not, prompting the user whether to agree with the protocol;
(3) If the user agrees to the protocol, jumping to (1);
(4) If the user does not agree with the protocol, prompting the user whether to manually upgrade;
(5) If the user agrees to the manual upgrade, directly upgrading the system;
(6) If the user does not agree with the manual upgrade, then (4) is performed at intervals.
Embodiments also provide a computing device, referring to fig. 4, comprising a memory 1120, a processor 1110 and a computer program stored in said memory 1120 and executable by said processor 1110, the computer program being stored in a space 1130 for program code in the memory 1120, the computer program, when executed by the processor 1110, implementing the method steps 1131 for performing any of the methods according to the invention.
The embodiment of the application also provides a computer readable storage medium. Referring to fig. 5, the computer readable storage medium comprises a storage unit for program code, which storage unit is provided with a program 1131' for performing the steps of the method according to the invention, which program is executed by a processor.
The embodiment of the application also provides a computer program product containing instructions. Which, when run on a computer, causes the computer to carry out the steps of the method according to the invention.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a computer, cause the computer to perform, in whole or in part, the procedures or functions described in accordance with the embodiments of the application. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a computer-readable storage medium, where the storage medium is a non-transitory medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disk (optical disk), and any combination thereof.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A distributed silent upgrading method based on an Android system comprises the following steps:
dividing an Android system upgrade file into K modules in advance; each module sets a corresponding version number;
receiving version information of a current operating system of the mobile phone, hardware information and memory information of the mobile phone in a networking state;
the server side judges whether the current operating system of the mobile phone and the mobile phone meet the upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
when the current operating system of the mobile phone and the mobile phone meet the upgrading conditions, the modification modules of the Android system upgrading file are downloaded in a modularized distributed mode, a memory space is opened up in a mobile phone memory, the downloaded modification modules are stored in the memory space, and the modification modules are one or more modules with version numbers larger than that of the current operating system of the mobile phone.
2. The method of claim 1, wherein determining whether the current operating system of the mobile phone and the mobile phone satisfy the upgrade condition comprises:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet upgrade conditions.
3. The method of claim 1, wherein in the networking state, after receiving version information of a current operating system of the mobile phone, hardware information of the mobile phone, and memory information, the method further comprises:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
4. The method of claim 3, wherein determining whether the user has agreed to the automatic upgrade protocol comprises:
if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone;
if the user does not agree with the automatic upgrading protocol, prompting the user whether to agree with the automatic upgrading protocol; if the user agrees to the automatic upgrading protocol, the upgrading system is installed in a silent mode when the user restarts the mobile phone; if the user does not agree with the automatic upgrading protocol, prompting the user whether to upgrade manually;
if the user agrees to manual upgrading, directly upgrading the system;
and if the user does not agree with the manual upgrading, prompting the user whether to manually upgrade at intervals, or prompting the user whether to manually upgrade when a new version Android system upgrade file exists.
5. The method according to claim 1, wherein dividing the Android system upgrade file into K modules comprises:
and dividing the Android system upgrade file into K modules according to the functions realized by the codes.
6. The method of claim 1, further comprising:
and deleting one or more modules corresponding to the modification module in the current operating system of the mobile phone after the Android system upgrade file is determined to be downloaded and installed successfully.
7. A distributed silence upgrading device based on an Android system comprises:
the system comprises a dividing module, a storage module and a processing module, wherein the dividing module is set to divide an Android system upgrade file into K modules in advance; each module sets a corresponding version number;
the communication module is set to receive the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone in a networking state;
the judging module is set to judge whether the current operating system of the mobile phone and the mobile phone meet the upgrading conditions according to the version information of the current operating system of the mobile phone, the hardware information of the mobile phone and the memory information;
the upgrading module is set to be a modification module for modularly and distributively downloading the Android system upgrading file when the current operating system of the mobile phone and the mobile phone meet upgrading conditions, a memory space is opened up in a memory of the mobile phone, the downloaded modification module is stored in the memory space, and the modification module is one or more modules with version numbers larger than that of the current operating system of the mobile phone.
8. The apparatus of claim 7, wherein the determining module determines whether the current operating system of the mobile phone and the mobile phone satisfy the upgrade condition comprises:
comparing the version information of the current operating system of the mobile phone, the hardware information and the memory information of the mobile phone with the preset version number of each module of the Android system upgrade file, the size of the occupied memory and the requirement of the hardware of the mobile phone suitable for upgrading;
if the version numbers of one or more modules in the Android system upgrading file are larger than the corresponding version number of a local system file of the mobile phone, determining the one or more modules as modification modules;
and when the memory of the modification module is smaller than the existing memory of the mobile phone and the hardware information of the mobile phone is suitable for the version of the Android system upgrade file, determining that the current operating system of the mobile phone and the mobile phone meet the upgrade condition.
9. The apparatus according to claim 7, wherein after receiving version information of a current operating system of the mobile phone, hardware information of the mobile phone, and memory information in the networking state of the communication module, the apparatus further comprises:
judging whether the user agrees with the automatic upgrading protocol, executing the step of silent upgrading when the user agrees with the automatic upgrading protocol, and prompting whether the user agrees with the protocol or whether the user upgrades manually when the user disagrees with the automatic upgrading protocol.
10. A computing device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any of claims 1-6 when executing the computer program.
CN202110476777.5A 2021-04-29 2021-04-29 Distributed silent upgrading method and device based on Android system Pending CN115268958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110476777.5A CN115268958A (en) 2021-04-29 2021-04-29 Distributed silent upgrading method and device based on Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110476777.5A CN115268958A (en) 2021-04-29 2021-04-29 Distributed silent upgrading method and device based on Android system

Publications (1)

Publication Number Publication Date
CN115268958A true CN115268958A (en) 2022-11-01

Family

ID=83746013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110476777.5A Pending CN115268958A (en) 2021-04-29 2021-04-29 Distributed silent upgrading method and device based on Android system

Country Status (1)

Country Link
CN (1) CN115268958A (en)

Similar Documents

Publication Publication Date Title
RU2333612C2 (en) Method and system for data set version renewal containing in wireless device
US8789035B2 (en) Method and apparatus for updating firmware
US8082414B2 (en) Method and system for centralized memory management in wireless terminal devices
US8578361B2 (en) Updating an electronic device with update agent code
KR100911604B1 (en) System and method for the management of wireless communications device system software downloads in the field
CN109857548B (en) Storage space optimization method, storage space optimization device, computer equipment and storage medium
US20050124332A1 (en) Mobile device programming system and method
EP1872230B1 (en) Centralized memory management in wireless terminal devices
CN101211265A (en) Terminal embedded type system software update method and apparatus
CN108234554B (en) Cloud file editing method and device
CN110535954B (en) Door lock firmware upgrading method, upgrading system, intelligent gateway and storage medium
CN110597545A (en) Hot patch intelligent upgrading method and system based on OTA component
CN114443081A (en) Terminal upgrading method and terminal
CN112416411B (en) Upgrading method and device, equipment end, server and computer readable medium
CN108874422B (en) Software online upgrading method for refrigerator electric control board, refrigerator electric control board and refrigerator
CN113032183A (en) System management method, device, computer equipment and storage medium
CN113094064A (en) Gateway software module upgrading method, device, equipment and storage medium
US20100179980A1 (en) Cache system for mobile communications devices
CN115268958A (en) Distributed silent upgrading method and device based on Android system
CN112882733B (en) Application updating method and device, electronic equipment and storage medium
CN117270914B (en) System upgrading method, device, equipment and medium of terminal equipment
CN107632840B (en) Task execution method and system of application program
KR20050012007A (en) Method of upgrading software in wireless communication terminal
CN114745268A (en) Method for online updating and loading algorithm library of network camera
CN116302683A (en) Data recovery method and computing 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