The content of the invention
The main purpose of the application is to provide a kind of method of mobile terminal operating system upgrading, to solve the prior art
Existing update time is long, takes the problems such as Internet resources are excessive.
According to the one side of the application, there is provided a kind of method of mobile terminal operating system upgrading, including:
Receive at least one upgrade components from server, at least one upgrade components and the operating system liter
Level is related;
At least one upgrading group is determined according to the upgrade components information associated with least one upgrade components
The type of part;And
, will be corresponding with the upgrade components of the first kind in the mobile terminal for the upgrade components of the first kind
Non- upgrade components renaming and the upgrade components of the first kind are installed.
In the embodiment of the method for the operating system update of the mobile terminal according to the application, the system upgrade component
Information includes upgrade components type information.
In the embodiment of the method for the operating system update of the mobile terminal according to the application, not upgrading after renaming
The title of component is different with the title of the upgrade components of the corresponding first kind.
According to the embodiment of the method for the operating system update of the mobile terminal of the application, this method further includes:For
The upgrade components of one type, check the need for restarting the operating system of the mobile terminal;Restart if desired, then for weight
Non- upgrade components after name set reboot flag position, and record the position of the non-upgrade components after the renaming to be deleted
Put;If need not restart, the process of the non-upgrade components after using renaming is closed.
According to the embodiment of the method for the operating system update of the mobile terminal of the application, this method further includes deletion and orders again
Non- upgrade components after name.
According to the embodiment of the method for the operating system update of the mobile terminal of the application, this method further includes:
For the upgrade components of Second Type, determine to be used and described with the presence or absence of process in the mobile terminal
The corresponding non-upgrade components of upgrade components of two types, and if it does, close the process;And
It will be replaced with the mobile terminal with the corresponding non-upgrade components of the upgrade components of the Second Type described
The upgrade components of Second Type.
In the embodiment of the method for the operating system update of the mobile terminal according to the application, the first kind is non-
Immediately come into force type;The Second Type is the type that comes into force immediately.
According to further aspect of the application, there is provided a kind of device of mobile terminal operating system upgrading, including:
Receiving module, for receive at least one upgrade components from server, at least one upgrade components with
The operating system update is related;
Determination type module, for determining institute according to the upgrade components information associated with least one upgrade components
State the type of at least one upgrade components;And
Upgraded module, for the upgrade components for the first kind, by the mobile terminal with the first kind
The corresponding non-upgrade components renaming of upgrade components simultaneously installs the upgrade components of the first kind.
In the embodiment of the device of the operating system update of the mobile terminal according to the application, the system upgrade component
Information includes upgrade components type information.
In the embodiment of the device of the operating system update of the mobile terminal according to the application, after the renaming not
The title of upgrade components is different with the title of the upgrade components of the corresponding first kind.
According to the embodiment of the device of the operating system update of the mobile terminal of the application, described device further includes:Restart
Module, for the upgrade components for the first kind, checks the need for restarting the operating system of the mobile terminal;If need
Restart, then the non-upgrade components after renaming are set with reboot flag position, and record and do not upgrade group after deleting renaming
Part position;If need not restart, the process of the non-upgrade components after using renaming is closed.
According to the embodiment of the device of the operating system update of the mobile terminal of the application, restart module and further include:Delete
Module, for deleting the non-upgrade components after renaming.
According to the embodiment of the device of the operating system update of the mobile terminal of the application, the upgraded module is also configured
Into:For the upgrade components of Second Type, determine to be used and second class with the presence or absence of process in the mobile terminal
The corresponding non-upgrade components of upgrade components of type, and if it does, close the process;And for Second Type
Upgrade components, will replace with described in the mobile terminal with the corresponding non-upgrade components of the upgrade components of the Second Type
The upgrade components of Second Type.
According to the embodiment of the device of the operating system update of the mobile terminal of the application, the first kind is non-instant
Come into force type;The Second Type is the type that comes into force immediately.
Compared with prior art, according to the technical solution of the application, mobile terminal receives automatic after the notice of server
Application server is rung to start to download upgrade components;Different type component is passed through after mobile terminal receives server download component
Selectable processing mode is efficiently upgraded, and avoids restarting, reducing update time, reduce network flow for the excessive number of system
Measure and saved network resources waste.
Embodiment
The main idea of the present application lies in that when upgrading for mobile terminal operating system, on the one hand by mobile terminal
Different type upgrade components select different upgrade methods to improve operation updating speed, reduce network resources waste, the opposing party
Whether face, need to restart to be judged after type is determined for upgrade components, even if needing to restart, also reduces operating system weight
The number opened, so as to accelerate updating speed.
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with drawings and the specific embodiments, to this
Application is described in further detail.
According to an embodiment of the present application, there is provided a kind of method and device of mobile terminal operating system upgrading, the application
It can upgrade one or more assemblies at the same time to different type upgrade components in the scheme of proposition.
With reference to figure 1, Fig. 1 is the method flow diagram of the mobile terminal system upgrading of the embodiment of the present application, is described as follows.
The method starts from step 101.In a step 101, at least one upgrade components from server are received, its
In, at least one upgrade components are related to the operating system update.For example, sent for server to mobile terminal
About whether the prompting of upgrading operation system, mobile terminal confirms to want upgrading operation system, then server will be with upgrading behaviour
Make the relevant at least one upgrade components of system and be sent to mobile terminal, then mobile terminal receives at least one upgrading group
Part.Preferably, communications can be carried out by Radio Link between mobile terminal and server.
In a step 102, according to determining the upgrade components information associated with least one upgrade components extremely
The type of few upgrade components.Wherein, the system upgrade module information includes upgrade components type information.According to the application
Embodiment, can be two kinds by these component classifications for the associated at least one upgrade components of the upgrading of operating system
Type, and the type of upgrade components is wanted come definite by foregoing upgrade components information, while different upgrading types is directed to, this
The method of application will use different upgrading modes, and then can improve upgrading efficiency.Wherein, described two types are non-instant
The type that comes into force and the type that comes into force immediately.
In step 103, for the upgrade components of the first kind, by the liter in the mobile terminal with the first kind
The corresponding non-upgrade components renaming of level assembly simultaneously installs the upgrade components of the first kind.Preferably, the first kind is
The non-instant type that comes into force, and the title of the title of the non-upgrade components after renaming and the upgrade components of the corresponding first kind is not
Together.For example, according to the present processes, the upgrade components A.os for the non-instant type that comes into force is, it is necessary to will be corresponding in mobile terminal
The non-upgrade components that upgrade of needs carry out renaming, for example, renamed as A.os.aliyun, and with the corresponding first kind
Upgrade components A.os installed in A.os.aliyun original position at.
At step 104, for the upgrade components of the first kind, check the need for restarting the operation of the mobile terminal
System.
Restart if desired, then proceed to step 105, reboot flag position is set for the non-upgrade components after renaming,
And the non-upgrade components position after the renaming to be deleted is recorded, then the non-upgrade components of the renaming are deleted.For example,
Non- upgrade components A.os.aliyun after renaming, sets a reboot flag position in its program message head, and will not upgrade
Component A.os.aliyun positions are recorded, and corresponding non-upgrade components can be quickly found when upgrade components upgrade.
If need not restart, step 106 is proceeded to, closes the process of the non-upgrade components after using renaming, then
The non-upgrade components of the renaming are deleted.In other words, when judging to restart, system can be prompted used in closing
The process of non-upgrade components after renaming, after the completion of system upgrade, whether system can again be prompted to reopen and correspond to
The process of upgrade components.The effect quickly upgraded can be realized in different application environment primarily directed to user.
In the embodiment of the present application, when mobile terminal carries out the upgrade components of the first kind(That is, the non-instant type upgrading that comes into force
Component)Upgrading when, that is, after this class component of system loads, will not come into force immediately even if the component changes, directly
To just coming into force when reloading component.For example, dynamic link library, configuration file, database file etc. all belong in an operating system
In the upgrade components of the first kind.And after the upgrade components for the first kind start upgrading, firstly, it is necessary to current operation system
The corresponding component not upgraded carries out renaming, and the title of the non-upgrade components after renaming and the corresponding first kind in system
Upgrade components title it is different;This be in order to make server end record again, consequently facilitating mobile terminal system recover, because
For that if the mobile terminal needs to recover previous system model, original system component Name can be inquired and recovered.
According to the present processes, if determining that upgrade components type is Second Type at step S102, this method
Proceed to step S107.
In step 107, determine that liter with the Second Type is used with the presence or absence of process in the mobile terminal
The corresponding non-upgrade components of level assembly, and if it does, close the process.
In step 108, by the mobile terminal with the upgrade components of the Second Type are corresponding does not upgrade group
Part replaces with the upgrade components of the Second Type, completes system upgrade.Preferably, Second Type upgrade components are to come into force immediately
Type upgrade components.
Specifically, first, it is determined that whether upgrade components in need are corresponding in mobile terminal operating system does not upgrade group
The process of part is used, if the process of the corresponding non-upgrade components of upgrade components is used, then just need to close
Non- upgrade components.Because the component in being used can not upgrade it.Finally, corresponding do not upgrade when described
After the process of component is closed, it will be replaced with the mobile terminal with the corresponding non-upgrade components of the upgrade components of Second Type
The upgrade components of the Second Type, complete system upgrade.Further, wanted if detected in mobile terminal operating system
The process of the corresponding non-upgrade components of upgrade components is not used, then just directly replaces its correspondence with upgrade components
Non- upgrade components.
In embodiments herein, the upgrade components of the Second Type are the type that comes into force immediately, namely refer to file
As long as change to come into force in systems immediately, for example, the file of the entitled lar of extension in operating system.It is if current
System upgrade group is the upgrade components of Second Type, when mobile terminal operating system upgrades, as long as corresponding in current system
Non- upgrade components be not employed directly to be replaced it with upgrade components, if the non-upgrade components are opening
With in state, then needing after the non-upgrade components are closed, it is replaced with upgrade components.For the liter of Second Type
The upgrade method of level assembly, can efficiently reduce the time of upgrading.
One embodiment of the application is described below with reference to Fig. 2.Fig. 2 is the mobile terminal operation system of the embodiment of the present application
The apparatus structure schematic diagram of system upgrading, is described as follows.
The device can include receiving module 201, and receiving module 201 can be used for receiving from least one of server
Upgrade components, at least one upgrade components are related to the operating system update.
The device can include determination type module 202, and determination type module 201 can be used for basis and described at least one
The upgrade components information that a upgrade components are associated determines the type of at least one upgrade components, wherein, the system liter
Level assembly information includes upgrade components type information.
The device can include upgraded module 203, and upgraded module 203 is used for the upgrade components for the first kind, by institute
State non-upgrade components renaming corresponding with the upgrade components of the first kind in mobile terminal and the first kind is installed
The upgrade components of type, wherein, the title of the non-upgrade components after the upgraded module renaming and the liter of the corresponding first kind
The title of level assembly is different.
The upgraded module 203 can be configured to:For the upgrade components of Second Type, the mobile terminal is determined
In with the presence or absence of process be used with the corresponding non-upgrade components of the upgrade components of the Second Type, and if deposit
, close the process, and, for the upgrade components of Second Type, by the mobile terminal with the Second Type
The corresponding non-upgrade components of upgrade components replace with the upgrade components of the Second Type.
In embodiments herein, the upgraded module 203 is different according to definite different upgrade components types, selection
Upgrading mode, by select it is most preferred in a manner of mobile terminal operating system is upgraded.
The device can include restart module 204, restart module 204 be used for be directed to the first kind upgrade components, inspection
Whether need to restart the operating system of the mobile terminal.
Restart if desired, then the non-upgrade components after renaming are set with reboot flag position, and record to delete and order again
Non- upgrade components position after name, then the non-upgrade components of the renaming are deleted.
If need not restart, the process of the non-upgrade components after using renaming is closed.
Preferably, removing module 205 can also be included by restarting module 204, for deleting the non-upgrade components after renaming,
The non-upgrade components of the renaming are deleted again.
Preferentially, it is described restart module 204 be for upgrade components type be first kind upgrade components in the case of, it is right
Upgrade components judge whether that needs can just come into force after restarting.Mainly facilitate user in any condition(That is, application needs
The process for the non-upgrade components to be upgraded or when not applying its process)It can reach fast and effective upgrading.
Preferably, in embodiments herein, the first kind is the non-instant type that comes into force, and the Second Type is i.e.
Shi Shengxiao types.
In embodiments herein, at least one upgrade components from server, class are received by receiving module 201
The upgrade components that type determining module 202 is received receiving module 201 carry out type analysis, and upgraded module 203 is true for type
The result that cover half block 202 is analyzed(That is the upgrade components of the first kind, the upgrade components of Second Type)And perform different type
Upgrading so that the system upgrade of mobile terminal can automatically upgrade/update in real time, and reduce that update time is long, saves net
Network flow, reduce the problems such as mobile terminal hardware deterioration.
In the specific implementation and the present processes of modules according to included by the device of the described the application of Fig. 2
The step of specific implementation be corresponding, the method since the operating system update shown in Fig. 1 being described in detail before
Embodiment, in order not to obscure the application, omits no longer the detail of modules is described herein.
The present processes and device can be applied in any mobile equipment that can carry out operating system update.It is described
The mobile equipment that can carry out operating system update can include but is not limited to:Mobile phone, laptop computer, tablet computer, individual
Digital assistants etc..
The application can be described in the general context of computer executable instructions, such as program
Module or unit.Usually, program module or unit can include performing particular task or realize specific abstract data resource class
The routine of type, program, object, component, data resource structure etc..In general, program module or unit can be by softwares, hard
The combination of part or both is realized.The application can also be put into practice in a distributed computing environment, in these distributed computing environment
In, by performing task by communication network and connected remote processing devices.In a distributed computing environment, program module
Or unit can be located in the local and remote computer-readable storage medium including storage device.
Finally, it is to be noted that, term " comprising ", "comprising" or its any other variant be intended to it is non-exclusive
Property includes, so that process, method, commodity or equipment including a series of elements not only include those key elements, but also
Further include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment it is intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including described
Also there are other identical element in the process of key element, method, commodity or equipment.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The foregoing is merely embodiments herein, is not limited to the application, for those skilled in the art
For member, the application can have various modifications and variations.All any modifications within spirit herein and principle, made,
Equivalent substitution, improvement etc., should be included within the scope of claims hereof.