CN110134416A - Oftware updating method, device and computer readable storage medium - Google Patents

Oftware updating method, device and computer readable storage medium Download PDF

Info

Publication number
CN110134416A
CN110134416A CN201910294761.5A CN201910294761A CN110134416A CN 110134416 A CN110134416 A CN 110134416A CN 201910294761 A CN201910294761 A CN 201910294761A CN 110134416 A CN110134416 A CN 110134416A
Authority
CN
China
Prior art keywords
software
capacity
new version
update
installation region
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
CN201910294761.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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910294761.5A priority Critical patent/CN110134416A/en
Publication of CN110134416A publication Critical patent/CN110134416A/en
Pending legal-status Critical Current

Links

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

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 present invention relates to data update method, a kind of Oftware updating method, device and computer readable storage medium are disclosed, software upgrading technical field is belonged to.The Oftware updating method includes obtaining the new version information for needing the software updated, which includes new version capacity, new version configuration information when receiving software upgrading solicited message;Obtain the Spatial Residual capacity of software default installation region;When the Spatial Residual capacity for judging software default installation region is less than the new version capacity for needing the software updated, the reserved space of software upgrading is set;The new version configuration information for updating software as needed is updated detection to locally-installed software, obtains each module list that software need to update;And each module that need to be updated according to software, it downloads corresponding each update file packet to software default installation region and is updated.The present invention is previously provided with reserved space, to avoid the problem that updating because of insufficient space unsuccessfully, the user experience is improved spends.

Description

Oftware updating method, device and computer readable storage medium
Technical field
The present invention relates to data update method field more particularly to a kind of Oftware updating methods, device and computer-readable Storage medium.
Background technique
With deepening continuously for informationization technology, more and more people be unable to do without making for intelligent terminal in daily life With the type of the software in intelligent terminal is also more and more, and in order to provide the user with better usage experience, soft provider can not New software version is regularly provided for user installation.
However, the installation memory capacity of intelligent terminal is also limited, therefore usually occur leading because of lack of memory capacity The problem of causing update failure, also some situations need user's click downloading to be updated, the more newly downloaded and update of some softwares Time is long, and user directly either abandons halfway, leads to poor user experience.
Summary of the invention
The present invention provides a kind of Oftware updating method, device and computer readable storage medium, main purpose and is to solve The problem of certainly insufficient space and software upgrading fail, is substantially improved user experience.
To achieve the above object, the present invention provides a kind of Oftware updating method, and the Oftware updating method includes:
When receiving software upgrading solicited message, the new version information for needing the software updated, new version letter are obtained Breath includes new version capacity, new version configuration information;
Obtain the Spatial Residual capacity of software default installation region;
When the Spatial Residual capacity for judging the software default installation region is less than the new edition of the software for needing to update When this capacity, the reserved space of software upgrading is set;
The new version configuration information for updating software as needed is updated detection to locally-installed software, described in acquisition Each module list that software need to update;And
Each module that need to be updated according to the software, download corresponding each update file packet to software default installation region into Row updates.
Optionally, described when the Spatial Residual capacity of the software default installation region is less than pre-set space capacity, if The step of setting the reserved space of software upgrading include:
Judge whether the Spatial Residual capacity of software default installation region is less than the new version of the software for needing to update Capacity;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Calculate the reserved space capacity of the software upgrading;
The reserved space request of setting software upgrading is sent, which includes the reserved space capacity of software upgrading;And
The reserved space capacity of the software upgrading is marked off from the remaining space of non-software default installation subregion.
Optionally, described when the Spatial Residual capacity of software default installation region is less than the new of the software for needing to update When version capacity, the step of calculating the reserved space capacity of the software upgrading, includes;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Obtain the spatial content that each mounted software respectively occupies in the software default installation region;
The reserved space capacity of the software upgrading is calculated, the reserved space capacity is equal to the software for needing to update The spatial content that respectively occupies plus each mounted software of new version capacity in maximum value.
Optionally, after the step of Spatial Residual capacity for obtaining software default installation region further include:
When the Spatial Residual capacity for judging the software default installation region is new not less than the software for needing to update When version capacity, the Spatial Residual capacity of the software default installation region and the new version of the software for needing to update are judged Whether the difference of capacity is greater than default error volume;And
When the Spatial Residual capacity of the software default installation region and the new version capacity of the software for needing to update Difference when being not more than default error volume, the reserved space of software upgrading is set.
Optionally, the new version configuration information as needed for updating software is updated inspection to locally-installed software It surveys, the step of obtaining each module list that the software need to update includes:
Obtain the version configuration information of locally-installed software;
Compare the version configuration information of the new version configuration information for needing the software updated and locally-installed software, obtains Each module list that the software need to update.
The present invention also provides a kind of electronic device, the electronic device includes memory and processor, on the memory It is stored with the software upgrading program that can be run on the processor, it is real when the software upgrading program is executed by the processor Existing following steps:
When receiving software upgrading solicited message, the new version information for needing the software updated, new version letter are obtained Breath includes new version capacity, new version configuration information;
Obtain the Spatial Residual capacity of software default installation region;
When the Spatial Residual capacity for judging the software default installation region is less than the new edition of the software for needing to update When this capacity, the reserved space of software upgrading is set;
The new version configuration information for updating software as needed is updated detection to locally-installed software, described in acquisition Each module list that software need to update;And
Each module that need to be updated according to the software, download corresponding each update file packet to software default installation region into Row updates.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Software upgrading program is stored on storage medium, the software upgrading program can be executed by one or more processor, with reality Now the step of Oftware updating method as described above.
Oftware updating method, device and computer readable storage medium proposed by the present invention, the present invention, which works as, receives software After updating solicited message, the new version information for needing the software updated is first obtained, when the space for judging software default installation region When residual capacity is less than the new version capacity of the software for needing to update, before software upgrading, reserved space is first set, from And it can solve software during the installation process due to spatial content deficiency the problem of install failure;In addition, updating as needed soft The new version configuration information of part is updated detection to locally-installed software, first obtains and the software module updated is needed to carry out again Update can reduce time and cost, and the volume space of software default installation region can be reduced while the user experience is improved Pressure.
Detailed description of the invention
Fig. 1 is the schematic diagram of internal structure for the electronic device that one embodiment of the invention provides.
Fig. 2 is the program module schematic diagram of the software upgrading program in one embodiment of electronic device of the present invention.
Fig. 3 provides a kind of Oftware updating method flow chart for first embodiment of the invention.
Fig. 4 is a kind of Oftware updating method second embodiment flow diagram of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the hardware structural diagram of electronic device provided in an embodiment of the present invention.
In the present embodiment, electronic device 1 can be PC (Personal Computer, PC), be also possible to intelligence Terminal devices or the servers such as energy mobile phone, tablet computer, portable computer.The electronic device 1 includes at least memory 11, processing Device 12, communication bus 13 and network interface 14.
Wherein, memory 11 includes at least a type of readable computer storage medium, the readable computer storage Medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, light Disk etc..Memory 11 can be the storage inside module of electronic device 1 in some embodiments, such as the electronic device 1 is hard Disk.Memory 11 is also possible to match on the External memory equipment of electronic device 1, such as electronic device 1 in further embodiments Standby plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) Card, flash card (Flash Card) etc..Further, memory 11 can also both include the storage inside module of electronic device 1 It also include External memory equipment.Memory 11 can be not only used for storing the application software for being installed on electronic device 1 and all kinds of numbers According to, such as code of Oftware updating method 01 etc., it can be also used for temporarily storing the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data, such as execute software upgrading program 01 etc..
Communication bus 13 is for realizing the connection communication between these components.
Network interface 14 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in Communication connection is established between the device 1 and other electronic equipments.
Optionally, the electronic device 1 can also include user interface, user interface may include display (Display), Input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It can Selection of land, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate Referred to as display screen or display module, for showing the information handled in the electronic apparatus 1 and for showing visual user Interface.
In 1 embodiment of electronic device shown in Fig. 1, software upgrading program 01 is stored in memory 11;Processor 12 Following steps are realized when executing the software upgrading program 01 stored in memory 11:
When receiving the request of software upgrading solicited message, the new version information for needing the software updated, the new edition are obtained This information includes new version capacity, new version configuration information;
Obtain the Spatial Residual capacity of software default installation region;
When the Spatial Residual capacity for judging the software default installation region is less than the new edition of the software for needing to update When this capacity, the reserved space of software upgrading is set;
The new version configuration information for updating software as needed is updated detection to locally-installed software, described in acquisition Each module list that software need to update;
Each module that need to be updated according to the software, download corresponding each update file packet to software default installation region into Row updates.
Further, software upgrading program can also be called by processor, in the sky for working as the software default installation region Between residual capacity when being less than the new version capacity of the software for needing to update, in the step of reserved space of software upgrading is set Realize following steps;
Judge whether the Spatial Residual capacity of software default installation region is less than the new version of the software for needing to update Capacity;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Calculate the reserved space capacity of the software upgrading;
The reserved space request of setting software upgrading is sent, which includes the reserved space capacity of software upgrading;And
The reserved space capacity of the software upgrading is marked off from the remaining space of non-software default installation subregion.
Further, software upgrading program can also be called by processor, with surplus in the space when software default installation region When covolume amount is less than the new version capacity of the software for needing to update, the step of the reserved space capacity of the software upgrading is calculated Step is implemented as follows in rapid:
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Obtain the spatial content that each mounted software respectively occupies in the software default installation region;And
The reserved space capacity of the software upgrading is calculated, the reserved space capacity is equal to the software for needing to update The spatial content that respectively occupies plus each mounted software of new version capacity in maximum value.
Further, software upgrading program can also be called by processor, to match in the new version for updating software as needed It is specific in the step of confidence breath is updated detection to locally-installed software, obtains each module list that the software need to update Realize following steps:
Obtain the version configuration information of locally-installed software;
Compare the version configuration information of the new version configuration information for needing the software updated and locally-installed software, obtains Each module list that the software need to update.
Further, software upgrading program can also be called by processor, to realize following steps:
When the Spatial Residual capacity for judging the software default installation region is new not less than the software for needing to update When version capacity, the Spatial Residual capacity of the software default installation region and the new version of the software for needing to update are judged Whether the difference of capacity is greater than default error volume;And
When the Spatial Residual capacity of the software default installation region and the new version capacity of the software for needing to update Difference when being not more than default error volume, the reserved space of software upgrading is set.
Optionally, in other embodiments, software upgrading program can also be divided into one or more module, and one Or multiple modules are stored in memory 11, and performed by one or more processors (the present embodiment is processor 12) To complete the present invention, the so-called module of the present invention is the series of computation machine program instruction section for referring to complete specific function, is used In the implementation procedure of description Oftware updating method in an electronic.
It is the software upgrading program module schematic diagram in one embodiment of electronic device of the present invention for example, referring to shown in Fig. 2, In the embodiment, software upgrading program 01 can be divided into obtain module 21, judgement and setup module 22, detection module 23 and Update module 24, illustratively:
The acquisition module 21, for obtaining the software for needing to update when receiving the request of software upgrading solicited message New version information, which includes new version capacity, new version configuration information;
The acquisition module 21, for obtaining the Spatial Residual capacity of software default installation region;
The judgement and setup module 22, for being less than when the Spatial Residual capacity for judging the software default installation region When the new version capacity of the software for needing to update, the reserved space of software upgrading is set;
The detection module 23, for update as needed the new version configuration information of software to locally-installed software into Row updates detection, obtains each module list that the software need to update;
The update module 24, each module for that need to be updated according to the software download corresponding each update file packet It is updated to software default installation region.
Based on the hardware configuration of above-mentioned electronic device, each embodiment of invention software update method is proposed.
In the present embodiment, referring to Fig. 3, Fig. 3 is the stream of Oftware updating method first embodiment provided by the invention Cheng Tu, Oftware updating method include:
Step S200 obtains the new version letter for needing the software updated when receiving the request of software upgrading solicited message Breath, which includes new version capacity, new version configuration information;
With the continuous expansion of business, the various APP software functions of client terminal often need to update to provide new function Business, however current update mode is to carry out software upgrading after updating packet by client downloads, because the storage of client is empty Between it is limited, sometimes cause in software download procedure because of the deficiency of memory space to update to fail, not only time-consuming for this mode, It is cumbersome, and poor user experience;
It is illustrated by taking the terminal client of banking system as an example, software upgrading is provided in updating device and is connect in the air Mouthful, implement to scan the air interface, software upgrading solicited message, software upgrading dress are sent when scanning receives information to the interface It sets after receiving software upgrading solicited message, obtains the new version information for needing the software updated, wherein carried in solicited message There is new version information, which includes but is not limited to new version capacity, new version configuration information.
Step S210 obtains the Spatial Residual capacity of software default installation region;
In the present embodiment, it is possible to understand that ground is that each user terminal divides the installation region for having a software default, When there is software to need to install or update, carried out in the installation region of the software default, and the sky in the default installation region Between capacity can constantly be reduced with the increase of software, final spatial content remaining as 0, at this moment if carry out software upgrading very may be used It can cause to update because of the deficiency of spatial content and fail, therefore, before updating software, first to obtain software default installation The Spatial Residual capacity in region, and the software default installation region is determined, to guarantee software upgrading success.
Step S220, when judge the software default installation region Spatial Residual capacity be less than it is described needs update it is soft When the new version capacity of part, the reserved space of software upgrading is set;
In the present embodiment, the Spatial Residual capacity of the software default installation region updates soft with the needs The size relation of the new version capacity of part, it is therefore an objective to be to prevent the Spatial Residual off-capacity of the software default installation region And the problem of causing software upgrading to fail,
When the Spatial Residual capacity of the software default installation region is less than pre-set space capacity, software can be preset The reserved space of update, to prevent the phenomenon that updating unsuccessfully because of insufficient space appearance;
And what reserved space can also be arranged in real time, but because the limited problem of terminal storage space capacity cannot be arranged Greatly, while guaranteeing software upgrading successfully and can not be arranged and is too small.
Step S230, the new version configuration information for updating software as needed are updated inspection to locally-installed software It surveys, obtains each module list that the software need to update;
In the present embodiment, in order to reduce time and the cost of software upgrading, the version configuration of software is updated as needed File is updated detection to mounted software, obtains each module list that the software need to update, and the mode of detection can be with By obtaining the version configuration information of mounted software, by comparison update the version configuration information of software with it is mounted soft The version configuration information of part obtains each module list that software needs to update, usually installed version configuration information storage In the installation space of default.
Step S240, each module that need to be updated according to the software download corresponding each update file packet to software default Installation region is updated.
In the present embodiment, for example, when software needs update module A, increase module C, terminal is downloaded respectively to be obtained updating text Part packet A and update file packet C, then it is corresponding to modules A will to update file packet A storage according to preconfigured file path for terminal File in, by update file packet storage into the corresponding file of module C.
In the present embodiment, after receiving software upgrading solicited message, the new version for needing the software updated is first obtained Information, when the Spatial Residual capacity for judging software default installation region is less than the new version capacity of the software for needing to update When, before software upgrading, reserved space is first set, so as to solve software during the installation process because spatial content deficiency due to The problem of install failure;In addition, the new version configuration information for updating software as needed is updated locally-installed software Detection, first acquisition, which needs the software module updated to be updated again, can reduce time and cost, and what the user experience is improved is same When can reduce the volume space pressure of software default installation region.
Further, the Spatial Residual capacity when the software default installation region be less than the needs update it is soft When the new version capacity of part, the step of reserved space of software upgrading is arranged, includes:
Judge whether the Spatial Residual capacity of software default installation region is less than the new version of the software for needing to update Capacity;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Calculate the reserved space capacity of the software upgrading;
The reserved space request of setting software upgrading is sent, which includes the reserved space capacity of software upgrading;And
The reserved space capacity of the software upgrading is marked off from the remaining space of non-software default installation subregion.
Further, described when the Spatial Residual capacity of software default installation region is less than the software for needing to update When new version capacity, the step of calculating the reserved space capacity of the software upgrading, includes;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, Obtain the spatial content that each mounted software respectively occupies in the software default installation region;And
The reserved space capacity of the software upgrading is calculated, the reserved space capacity is equal to the software for needing to update The spatial content that respectively occupies plus each mounted software of new version capacity in maximum value.
Further, the new version configuration information as needed for updating software is updated locally-installed software Detection, the step of obtaining each module list that the software need to update include:
Obtain the version configuration information of locally-installed software;
Compare the version configuration information of the new version configuration information for needing the software updated and locally-installed software, obtains Each module list that the software need to update.
It referring to figure 4., is the flow diagram of Oftware updating method second embodiment provided by the invention.
Based on above-mentioned embodiment illustrated in fig. 3, in the present embodiment, the Oftware updating method the following steps are included:
Step S200 obtains the new version letter for needing the software updated when receiving the request of software upgrading solicited message Breath, which includes new version capacity, new version configuration information;
With the continuous expansion of business, the various APP software functions of client terminal often need to update to provide new function Business, however current update mode is to carry out software upgrading after updating packet by client downloads, because the storage of client is empty Between it is limited, sometimes cause in software download procedure because of the deficiency of memory space to update to fail, not only time-consuming for this mode, It is cumbersome, and poor user experience;
It is illustrated by taking the terminal client of banking system as an example, software upgrading is provided in updating device and is connect in the air Mouthful, implement to scan the air interface, software upgrading solicited message, software upgrading dress are sent when scanning receives information to the interface It sets after receiving software upgrading solicited message, obtains the new version information for needing the software updated, wherein carried in solicited message There is new version information, which includes but is not limited to new version capacity, new version configuration information.
Step S210 obtains the Spatial Residual capacity of software default installation region;
In the present embodiment, it is possible to understand that ground is that each user terminal divides the installation region for having a software default, When there is software to need to install or update, carried out in the installation region of the software default, and the sky in the default installation region Between capacity can constantly be reduced with the increase of software, final spatial content remaining as 0, at this moment if carry out software upgrading very may be used It can cause to update because of the deficiency of spatial content and fail, therefore, before updating software, first to obtain software default installation The Spatial Residual capacity in region, and the software default installation region is determined, to guarantee software upgrading success.
Step S250 is updated when the Spatial Residual capacity for judging the software default installation region not less than the needs When the new version capacity of software, the Spatial Residual capacity and the software for needing to update of the software default installation region are judged The difference of new version capacity whether be greater than default error volume;
In the present embodiment, the Spatial Residual capacity of the software default installation region updates soft with the needs The size relation of the new version capacity of part, it is therefore an objective to be to prevent the Spatial Residual off-capacity of the software default installation region And the problem of causing software upgrading to fail,
When the Spatial Residual capacity for judging the software default installation region is new not less than the software for needing to update When version capacity, in order to guarantee that new version can smoothly update completion, it is also necessary to the software default installation region Pass between the difference and a default error volume of the new version capacity of Spatial Residual capacity and the software for needing to update System, when purpose of the default error volume is the new version capability value for preventing from reading and inconsistent actual new version capability value and The unsuccessful problem of software upgrading is caused, therefore a default error volume is set, which can be 5M, 10M Deng.
Step S260, when the software default installation region Spatial Residual capacity and it is described need update software it is new When the difference of version capacity is not more than default error volume, the reserved space of software upgrading is set;
In the present embodiment, when the Spatial Residual capacity and the software for needing to update of the software default installation region The difference of new version capacity when being less than between default error volume, before software upgrading, reserved space is first set, so as to To solve the problems, such as software install failure due to spatial content deficiency during the installation process, in addition, the storage because of user terminal is empty Between it is limited, being unable to reserved space cannot be arranged excessive, and the reserved space of software upgrading, the reserved space etc. of the software upgrading is arranged In the difference of the new version capacity of the Spatial Residual capacity and software for needing to update of the software default installation region.
Step S230, the new version configuration information for updating software as needed are updated inspection to locally-installed software It surveys, obtains each module list that the software need to update;
In the present embodiment, in order to reduce time and the cost of software upgrading, the version configuration of software is updated as needed File is updated detection to mounted software, obtains each module list that the software need to update, and the mode of detection can be with By obtaining the version configuration information of mounted software, by comparison update the version configuration information of software with it is mounted soft The version configuration information of part obtains each module list that software needs to update, usually installed version configuration information storage In the installation space of default.
Step S240, each module that need to be updated according to the software download corresponding each update file packet to software default Installation region is updated.
In the present embodiment, for example, when software needs update module A, increase module C, terminal is downloaded respectively to be obtained updating text Part packet A and update file packet C, then it is corresponding to modules A will to update file packet A storage according to preconfigured file path for terminal File in, by update file packet storage into the corresponding file of module C.
In the present embodiment, in the present invention after receiving software upgrading solicited message, the software for needing to update first is obtained New version information, when judging that the Spatial Residual capacity of software default installation region is new not less than the software for needing to update When version capacity, the Spatial Residual capacity of the software default installation region and the new version of the software for needing to update are judged Whether the difference of capacity is greater than default error volume, when the Spatial Residual capacity and the needs of the software default installation region When the difference of the new version capacity of the software of update is not more than default error volume, before software upgrading, pre- leave a blank first is set Between, the reserved space of the reserved space setting software upgrading of software upgrading is set, so as to solve software during the installation process Due to spatial content deficiency the problem of install failure;In addition, updating the new version configuration information of software as needed to local peace The software of dress is updated detection, and first acquisition, which needs the software module updated to be updated again, can reduce time and cost, together When can reduce the volume space pressure of software default installation region.
In addition, the computer storage medium is stored with meter the embodiment of the invention also provides a kind of computer storage medium The step of calculation machine program, above-mentioned computer program realizes above-mentioned Oftware updating method when being executed by processor.
Illustratively, computer program can be divided into one or more modules, one or more module is stored In memory, and by processor it executes, to complete the present invention.One or more modules, which can be, can complete specific function Series of computation machine program instruction section, the instruction segment is for describing the implementation procedure of computer program in an electronic.For example, Above-mentioned computer program can be divided into the module or module of the information acquisition device that above-mentioned each system embodiment provides.
It will be understood by those skilled in the art that the description of above-mentioned electronic device is only example, structure paired electrons is not filled The restriction set may include component more more or fewer than foregoing description, perhaps combine certain components or different components, It such as may include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing module (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng above-mentioned processor is the control centre of above-mentioned electronic device, utilizes each of various interfaces and the entire user terminal of connection A part.
Above-mentioned memory can be used for storing computer program and/or module, and above-mentioned processor is by operation or executes storage Computer program and/or module in memory, and the data being stored in memory are called, realize above-mentioned electronic device Various functions.Memory can mainly include storing program area and storage data area, wherein storing program area can store operation system System, application program needed at least one function (such as trip requirements information receive capabilities, can parking information and the destination Information output function etc.) etc.;Storage data area can be stored uses created data (for example to go on a journey according to information acquisition method Demand information, can parking information, destination information etc.) etc..In addition, memory may include high-speed random access memory, also It may include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, and flash card (Flash Card), dodges at least one disk memory Memory device or other volatile solid-state parts.
If the integrated module/module of electronic device is realized in the form of software function module and as independent product pin It sells or in use, can store in a computer-readable computer storage medium.Based on this understanding, the present invention is real All or part of module/module in existing above-described embodiment system, can also instruct relevant hardware by computer program It completes, above-mentioned computer program can be stored in a computer storage medium, which is being executed by processor When, it can be achieved that above-mentioned each system embodiment function.Wherein, computer program includes computer program code, computer journey Sequence code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..
In embodiments of the present invention, after electronic device receives the trigger signal of user, the account of user's input is received, and Server is sent to after judging account levels, server is according to account levels by report selection page presentation to user, root According to the report that user selects, can carry out showing while multidisciplinary more reports in electronic device, to facilitate user to carry out achievement Comparison removes this, can also be increased the report quantity after displaying or be deleted, the fixation of gauge outfit and column head, report after displaying Sliding etc. to facilitate the performance data of multidisciplinary more reports to compare, be highly suitable for the smaller terminal browsing of screen and compare Report data.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In computer storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that an electronic device (can be Mobile phone, computer, server or network equipment etc.) execute method described in each embodiment of the present invention.The above is only this hairs Bright preferred embodiment, is not intended to limit the scope of the invention, all to utilize description of the invention and accompanying drawing content institute The equivalent structure or equivalent flow shift of work is applied directly or indirectly in other relevant technical fields, and is similarly included in In scope of patent protection of the invention.

Claims (10)

1. a kind of Oftware updating method, it is applied to electronic device, which is characterized in that the Oftware updating method includes:
When receiving software upgrading solicited message, the new version information for needing the software updated, the new version packet are obtained Include new version capacity, new version configuration information;
Obtain the Spatial Residual capacity of software default installation region;
When the new version that the Spatial Residual capacity for judging the software default installation region is less than the software for needing to update is held When amount, the reserved space of software upgrading is set;
The new version configuration information for updating software as needed is updated detection to locally-installed software, obtains the software Each module list that need to be updated;And
Each module that need to be updated according to the software is downloaded corresponding each update file packet to software default installation region and is carried out more Newly.
2. Oftware updating method as described in claim 1, which is characterized in that the sky when the software default installation region Between residual capacity when being less than pre-set space capacity, the step of reserved space of software upgrading is arranged includes:
Judge whether the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, calculate The reserved space capacity of the software upgrading;
The reserved space request of setting software upgrading is sent, which includes the reserved space capacity of software upgrading;And
The reserved space capacity of the software upgrading is marked off from the remaining space of non-software default installation subregion.
3. Oftware updating method as claimed in claim 2, which is characterized in that described when the space of software default installation region is surplus When covolume amount is less than the new version capacity of the software for needing to update, the step of the reserved space capacity of the software upgrading is calculated Suddenly include;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, obtain The spatial content that each mounted software respectively occupies in the software default installation region;
The reserved space capacity of the software upgrading is calculated, the reserved space capacity is equal to the new of the software for needing to update The maximum value in spatial content that version capacity is respectively occupied plus each mounted software.
4. Oftware updating method as described in claim 1, which is characterized in that the space for obtaining software default installation region After the step of residual capacity further include:
When new version of the Spatial Residual capacity not less than the software for needing to update for judging the software default installation region When capacity, the Spatial Residual capacity of the software default installation region and the new version capacity of the software for needing to update are judged Difference whether be greater than default error volume;And
When the difference of the new version capacity of the Spatial Residual capacity and software for needing to update of the software default installation region When value is no more than default error volume, the reserved space of software upgrading is set.
5. the Oftware updating method as described in any in claim 1-4, which is characterized in that the update software as needed New version configuration information is updated detection to locally-installed software, obtains the step for each module list that the software need to update Suddenly include:
Obtain the version configuration information of locally-installed software;
Compare the version configuration information of the new version configuration information of software for needing to update and locally-installed software, described in acquisition Each module list that software need to update.
6. a kind of electronic device, which is characterized in that the electronic device includes memory and processor, is stored on the memory There is the software upgrading program that can be run on the processor, is realized such as when the software upgrading program is executed by the processor Lower step:
When receiving software upgrading solicited message, the new version information for needing the software updated, the new version packet are obtained Include new version capacity, new version configuration information;
Obtain the Spatial Residual capacity of software default installation region;
When the new version that the Spatial Residual capacity for judging the software default installation region is less than the software for needing to update is held When amount, the reserved space of software upgrading is set;
The new version configuration information for updating software as needed is updated detection to locally-installed software, obtains the software Each module list that need to be updated;And
Each module that need to be updated according to the software is downloaded corresponding each update file packet to software default installation region and is carried out more Newly.
7. electronic device as claimed in claim 6, which is characterized in that described when the space of the software default installation region is surplus When covolume amount is less than pre-set space capacity, the step of reserved space of software upgrading is arranged, includes:
Judge whether the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, calculate The reserved space capacity of the software upgrading;
The reserved space request of setting software upgrading is sent, which includes the reserved space capacity of software upgrading;And
The reserved space capacity of the software upgrading is marked off from the remaining space of non-software default installation subregion.
8. electronic device as claimed in claim 7, which is characterized in that described when the Spatial Residual of software default installation region holds When amount is less than the new version capacity of the software for needing to update, the step of calculating the reserved space capacity of the software upgrading packet It includes;
When the Spatial Residual capacity of software default installation region is less than the new version capacity of the software for needing to update, obtain The spatial content that each mounted software respectively occupies in the software default installation region;
The reserved space capacity of the software upgrading is calculated, the reserved space capacity is equal to the new of the software for needing to update The maximum value in spatial content that version capacity is respectively occupied plus each mounted software.
9. electronic device as claimed in claim 6, which is characterized in that the software upgrading program can also be held by the processor Row, to realize following steps:
When new version of the Spatial Residual capacity not less than the software for needing to update for judging the software default installation region When capacity, the Spatial Residual capacity of the software default installation region and the new version capacity of the software for needing to update are judged Difference whether be greater than default error volume;And
When the difference of the new version capacity of the Spatial Residual capacity and software for needing to update of the software default installation region When value is no more than default error volume, the reserved space of software upgrading is set.
10. a kind of computer readable storage medium, which is characterized in that be stored with software on the computer readable storage medium more New procedures, the software upgrading program can be executed by one or more processor, to realize as any in claim 1 to 5 The step of Oftware updating method described in item.
CN201910294761.5A 2019-04-12 2019-04-12 Oftware updating method, device and computer readable storage medium Pending CN110134416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910294761.5A CN110134416A (en) 2019-04-12 2019-04-12 Oftware updating method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910294761.5A CN110134416A (en) 2019-04-12 2019-04-12 Oftware updating method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110134416A true CN110134416A (en) 2019-08-16

Family

ID=67569943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910294761.5A Pending CN110134416A (en) 2019-04-12 2019-04-12 Oftware updating method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110134416A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825404A (en) * 2019-10-21 2020-02-21 珠海格力电器股份有限公司 Multi-version firmware upgrading method and device and networking equipment
CN113495744A (en) * 2020-03-19 2021-10-12 华为技术有限公司 Version upgrading method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536783A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Method and device for setting reserved space
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server
CN106528249A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Storage method and device of upgrade package, and terminal
CN107643920A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Application software update method and device
CN107861744A (en) * 2017-11-17 2018-03-30 青岛海信移动通信技术股份有限公司 Method for upgrading system and device
CN108572837A (en) * 2018-06-11 2018-09-25 广州视源电子科技股份有限公司 Method for upgrading software, device, readable storage medium storing program for executing and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536783A (en) * 2014-12-23 2015-04-22 小米科技有限责任公司 Method and device for setting reserved space
CN105843656A (en) * 2016-04-22 2016-08-10 Tcl集团股份有限公司 System upgrading method for insufficient disk space, terminal device and server
CN107643920A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Application software update method and device
CN106528249A (en) * 2016-11-30 2017-03-22 北京小米移动软件有限公司 Storage method and device of upgrade package, and terminal
CN107861744A (en) * 2017-11-17 2018-03-30 青岛海信移动通信技术股份有限公司 Method for upgrading system and device
CN108572837A (en) * 2018-06-11 2018-09-25 广州视源电子科技股份有限公司 Method for upgrading software, device, readable storage medium storing program for executing and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825404A (en) * 2019-10-21 2020-02-21 珠海格力电器股份有限公司 Multi-version firmware upgrading method and device and networking equipment
CN113495744A (en) * 2020-03-19 2021-10-12 华为技术有限公司 Version upgrading method and related device

Similar Documents

Publication Publication Date Title
CN108768875B (en) Application gray level publishing method and device and computer readable storage medium
CN111984163B (en) Application icon display method and device and electronic equipment
WO2021036618A1 (en) Cloud test configuration method and apparatus, computer device, and storage medium
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
CN109358851A (en) Creation method, device and the computer readable storage medium of chart components
CN107797826B (en) Rule configuration method based on rule engine, terminal and equipment
CN110764850A (en) Interface display method, parameter assignment method, system and equipment
CN108446225A (en) Creating device, method and the computer readable storage medium of analog interface
CN108958881A (en) Data processing method, device and computer readable storage medium
CN105302811A (en) Browser page skipping method and apparatus
CN110555073A (en) data processing method and device, electronic equipment and storage medium
CN104216748A (en) Application program installation method, device and system
CN110134416A (en) Oftware updating method, device and computer readable storage medium
CN105988841A (en) Update method of application program, and mobile terminal
CN108255735A (en) Associated environment test method, electronic device and computer readable storage medium
CN104598281B (en) The method of system for upgrading electronic equipment
CN109582401B (en) Promotion picture generation method and device, storage medium and computer equipment
CN105678550B (en) Data processing method and device
CN113396572A (en) Content push method and related product
CN112214256B (en) Machine learning operation control method and device, electronic equipment and storage medium
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN111158777B (en) Component calling method, device and computer readable storage medium
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN106302011A (en) Method of testings based on multiterminal and terminal
CN109753293A (en) A kind of processing method and relevant device of plug-in unit

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