CN108021379A - A kind of upgrade method of application program, mobile terminal and server - Google Patents

A kind of upgrade method of application program, mobile terminal and server Download PDF

Info

Publication number
CN108021379A
CN108021379A CN201711099872.8A CN201711099872A CN108021379A CN 108021379 A CN108021379 A CN 108021379A CN 201711099872 A CN201711099872 A CN 201711099872A CN 108021379 A CN108021379 A CN 108021379A
Authority
CN
China
Prior art keywords
application
package informatin
installation package
public key
server
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.)
Granted
Application number
CN201711099872.8A
Other languages
Chinese (zh)
Other versions
CN108021379B (en
Inventor
钟文军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711099872.8A priority Critical patent/CN108021379B/en
Publication of CN108021379A publication Critical patent/CN108021379A/en
Application granted granted Critical
Publication of CN108021379B publication Critical patent/CN108021379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

An embodiment of the present invention provides a kind of upgrade method of application program, mobile terminal and server, this method includes:To server sending application upgrade request, the public key of current application certificate is included in the application upgrade request;The installation package informatin that the server returns is received, the installation package informatin is the information that the server is obtained according to the public key match;Upgraded according to the installation package informatin.The embodiment of the present invention is by carrying the public key of current application certificate in being asked in application upgrade, so as to get the installation package informatin with the public key match from server side, so that the upgrading of application program limits from the version of Application Certificate, the scope of application of upgrade applications is improved.

Description

A kind of upgrade method of application program, mobile terminal and server
Technical field
The present invention relates to field of communication technology, more particularly to a kind of upgrade method of application program, mobile terminal and service Device.
Background technology
At present, when the application program on to terminal device is installed, installation file needs to be digitally signed ability Installation;And in application program updating, the installation file of highest version and the installation file of lowest version need to use identical numeral Signature can be upgraded.
The signing certificate of digital signature is once compromised, attacker can utilize signing certificate to the installation file of forgery into Row signature simultaneously issues installation file;In addition, at present, the signature algorithm security intensity of most of digital certificates is low, signature algorithm one Denier is cracked, and attacker can distort installation file and keep the digital signature of installation file constant, so as to reach attack Purpose.Therefore, it is necessary to installation file is digitally signed using safer digital certificate.
Sign when using the higher digital certificate of safe coefficient to the installation file of new version, to ensure its installation During the security of file, due to the relatively low digital certificate of the installation file or safe coefficient of legacy version, so as to cause same The signing certificate of the installation file of the different editions of application program is different, so that version can not be carried out to the installation file of legacy version Upgrading, causes the upgrading of application program to be limited be subject to the version of Application Certificate.
The content of the invention
The embodiment of the present invention provides a kind of upgrade method of application program, mobile terminal and server, to solve existing skill The problem of upgrading of application program is limited be subject to the version of Application Certificate in art.
In order to solve the above-mentioned technical problem, the present invention is realized in:
In a first aspect, an embodiment of the present invention provides a kind of upgrade method of application program, it is described applied to mobile terminal Method includes:
To server sending application upgrade request, the public key of current application certificate is included in the application upgrade request;
The installation package informatin that the server returns is received, the installation package informatin is the server according to the public key Match obtained information;
Upgraded according to the installation package informatin.
Second aspect, the embodiment of the present invention additionally provides a kind of upgrade method of application program, described applied to server Method includes:
Receive the application upgrade request from mobile terminal;
The public key of current application certificate is obtained from application upgrade request, and determines the installation with the public key match Package informatin;
The installation package informatin is sent to the mobile terminal.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes:
First sending module, for server sending application upgrade request, being included in the application upgrade request current The public key of Application Certificate;
First receiving module, the installation package informatin returned for receiving the server, the installation package informatin is described The information that server is obtained according to the public key match;
Upgraded module, for being upgraded according to the installation package informatin.
Fourth aspect, the embodiment of the present invention additionally provide a kind of server, and the server includes:
Second receiving module, for receiving the application upgrade request from mobile terminal;
Acquisition module, for obtaining the public key of current application certificate from application upgrade request;
Determining module, for determining the installation package informatin with the public key match;
Second sending module, for the installation package informatin to be sent to the mobile terminal.
5th aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:Memory, processor and it is stored in On the memory and the computer program that can run on the processor, the computer program are performed by the processor The step of upgrade method of the application program of first aspect described in Shi Shixian.
6th aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit Computer program is stored with storage media, the computer program realizes the application journey of the first aspect when being executed by processor Step in the upgrade method of sequence.
7th aspect, the embodiment of the present invention additionally provide a kind of server, including:Memory, processor and it is stored in institute The computer program that can be run on memory and on the processor is stated, when the computer program is performed by the processor The step of realizing the upgrade method of the application program of the second aspect.
Eighth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit Computer program is stored with storage media, the computer program realizes the application journey of the second aspect when being executed by processor Step in the upgrade method of sequence.
The embodiment of the present invention is by carrying the public key of current application certificate in being asked in application upgrade, so as to from clothes Business device side gets the installation package informatin with the public key match so that the upgrading of application program limits from the version of Application Certificate System, improves the scope of application of upgrade applications.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the upgrade method of the application program of first embodiment of the invention;
Fig. 2 is the flow chart of the upgrade method of the application program of second embodiment of the invention;
Fig. 3 is the flow chart of the upgrade method of the application program of third embodiment of the invention;
Fig. 4 is the flow chart of the upgrade method of the application program of fourth embodiment of the invention;
Fig. 5 is the block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 6 is the block diagram of the mobile terminal of sixth embodiment of the invention;
Fig. 7 is the block diagram of the server of seventh embodiment of the invention;
Fig. 8 is the block diagram of the server of eighth embodiment of the invention;
Fig. 9 is the hardware architecture diagram of the mobile terminal of one embodiment of the invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
First embodiment
Reference Fig. 1, shows the flow chart of the upgrade method of the application program of one embodiment of the invention, applied to movement Terminal, the method specifically may include steps of:
Step 101, to server sending application upgrade request, current application certificate is included in the application upgrade request Public key;
When the local application installed on mobile terminal needs edition upgrading, mobile terminal can upgrade the needs Local application signing certificate (current application certificate i.e. here) public key carry application upgrade request in, and will Application upgrade request is sent to the server of the application program.
Alternatively, the mark for the application program that can also include needs upgrading in application upgrade request (such as wraps name Deng identification information), the information such as current version number.
Step 102, receive the installation package informatin that the server returns, the installation package informatin for the server according to The information that the public key match obtains;
Wherein, for same application program, which can safeguard that being stored with more sets uses different application certificate The installation kit of signature;Therefore, after server receives application upgrade request, it is possible to which according to public key match, application is demonstrate,proved accordingly Book, so as to find the installation package informatin signed using the Application Certificate.
In this way, mobile terminal can receive the installation package informatin of server return, wherein, the installation of the application program Version of the version of bag higher than the installation kit of the current mounted application program of mobile terminal.
Wherein, since for same application program, server all safeguards more sets using different application certificate signature Installation kit, therefore, for same application program, server can safeguard the installation kit of the different editions of old certificate signature, And the installation kit of the different editions of new authentication signature, then for some application program, even if having replaced signing certificate, if The application program of request version upgrading still using legacy version certificate signature, the method for the embodiment of the present invention still can be with The highest version installation kit using the certificate signature of legacy version is found from server side, consequently facilitating mobile terminal is to old edition assertive evidence The application program that book is signed is upgraded.Likewise, if the application program of request version upgrading is using new version Certificate signature, then the method for the embodiment of the present invention can then find the certificate signature using new version from server side Highest version installation kit, consequently facilitating the application program that mobile terminal signs new version certificate upgrades.
Wherein, the server side of the embodiment of the present invention is by answering same application issue by what different certificates were signed With version, upgraded to fit through the installation kit that respective certificate signs by the application of different certificate signatures, so that Evade the limitation that cannot be upgraded because certificate mismatches.
Step 103, upgraded according to the installation package informatin.
Wherein, mobile terminal can be according to the installation package informatin that server side returns come to the local correspondence application upgrade The application program of request carries out upgrading renewal.
The embodiment of the present invention is by carrying the public key of current application certificate in being asked in application upgrade, so as to from clothes Business device side gets the installation package informatin with the public key match so that the upgrading of application program limits from the version of Application Certificate System, improves the scope of application of upgrade applications.
Second embodiment
Reference Fig. 2, shows the flow chart of the upgrade method of the application program of another embodiment of the present invention, applied to shifting Dynamic terminal, specifically may include steps of:
Step 201, to server sending application upgrade request, current application certificate is included in the application upgrade request Public key;
Referring in particular to above-mentioned steps 101, which is not described herein again.
Step 202, receive the installation package informatin that the server returns, the installation package informatin for the server according to The information that the public key match obtains;
Referring in particular to above-mentioned steps 102, which is not described herein again.
Step 203, application identities are obtained from the installation package informatin;
Wherein, the application of the corresponding application program of the installation kit can be carried in the installation package informatin from server Mark, such as ID, bag name etc..Therefore, mobile terminal side can obtain the application identities from the installation package informatin.
Step 204, the corresponding local application of the application identities is determined;
Wherein, when carrying out the upgrading of multiple application programs, may disposably be received from one or more server sides Multiple installation package informatins, then can according to the application identities come determine installation package informatin be directed toward be currently needed for upgrading renewal Be which application program.
Step 205, according to the installation kit acquisition of information installation file, according to the installation file to described locally applied Program carries out covering installation.
Wherein it is possible to extract installation file from installation package informatin, corresponding peace can also be downloaded according to installation package informatin Fill file.Wherein, the version of the installation file is higher than the mobile terminal side installation file of the mounted application program at present Version.
Alternatively, the version of the installation file got from server side can be the application program highest version at present Originally or simply it is higher than the mobile terminal side version of the installation file of the mounted application program rather than highest version at present This.
Finally, it is possible to come according to the installation file in installation package informatin to the application program, i.e., local application into Row covering installation.
By means of the technical solution of the above embodiment of the present invention, the embodiment of the present invention can according to installation package informatin to this When ground application program carries out update, the application identities in extraction installation package informatin, so which current application program needs Upgrading, lifts application upgrade accuracy.
3rd embodiment
The flow chart of the upgrade method of the application program of one embodiment of the invention is shown with reference to Fig. 3, applied to service Device, specifically may include steps of:
Step 301, the application upgrade request from mobile terminal is received;
When the local application installed on mobile terminal needs edition upgrading, mobile terminal can upgrade the needs Local application signing certificate public key carry application upgrade request in, and by the application upgrade request send to should The server of application program.
So server side of the embodiment of the present invention, it is possible to receive the application upgrade request of mobile terminal transmission.
Step 302, the public key of current application certificate is obtained from application upgrade request, and is determined and the public key The installation package informatin matched somebody with somebody;
Wherein, server side can extract the current application certificate of the local application from application upgrade request Public key, wherein, Application Certificate has public key and private key, and the public key and private key are pair relationhips, and therefore, the embodiment of the present invention can With the pair relationhip using public key and private key come the definite installation package informatin with the public key match.Wherein, public key and private key are matched somebody with somebody Relation is known technology, therefore, is not limited here.
Wherein, since for same application program, server all safeguards more sets using different application certificate signature Installation kit, therefore, for same application program, server can safeguard the installation kit of the different editions of old certificate signature, And the installation kit of the different editions of new authentication signature, then for some application program, even if having replaced signing certificate, if The application program of request version upgrading still using legacy version certificate signature, the method for the embodiment of the present invention still can be with The highest version installation kit using the certificate signature of legacy version is found from server side, consequently facilitating mobile terminal is to old edition assertive evidence The application program that book is signed is upgraded.Likewise, if the application program of request version upgrading is using new version Certificate signature, then the method for the embodiment of the present invention can then find the certificate signature using new version from server side Highest version installation kit, consequently facilitating the application program that mobile terminal signs new version certificate upgrades.
Step 303, the installation package informatin is sent to the mobile terminal.
Finally, the installation package informatin found can be sent to mobile terminal in order to carry out using liter by server Level.
In embodiments of the present invention, it is currently needed for upgrading by being extracted from the application upgrade request that mobile terminal is sent The public key of the Application Certificate of application program, so as to get the installation package informatin with the public key match from server side, that No matter mobile terminal side is currently needed for the application program of upgrading using the Application Certificate of which version, can be from service Device side gets the installation kit of corresponding highest version, so as to fulfill the upgrading renewal to local application so that in replacement After the signing certificate of application program, it is still able to carry out upgrading renewal to the installation file of legacy version.
Fourth embodiment
The flow chart of the upgrade method of the application program of one embodiment of the invention is shown with reference to Fig. 4, applied to service Device, specifically may include steps of:
Step 401, the application upgrade request from mobile terminal is received;
Referring in particular to above-mentioned steps 301, which is not described herein again.
Step 402, the public key of current application certificate is obtained from application upgrade request;
Wherein, mobile terminal side carries currently should for local application wherein in sending application upgrade request With the public key of certificate, therefore, the public key directly can be extracted from application upgrade request.
Step 403, according to default Application Certificate and the correspondence of public key, intended application corresponding with the public key is determined Certificate;
Wherein, Application Certificate includes the data using private key encryption, and public key and private key have pair relationhip, so mutually The public key and private key of pairing can also generate the correspondence of another public key and the Application Certificate of the private key encryption, therefore, this Inventive embodiments can according to default Application Certificate and the correspondence of public key, to determine the corresponding Application Certificate of the public key, So that it is determined that the signature that the local application for being currently needed for upgrading is carried out using which kind of Application Certificate.
Step 404, in pre-set multigroup installation package informatin by different application certificate signature, search described in using The installation package informatin of intended application certificate signature;
Wherein, due to having peace of more sets using different application certificate signature to same application maintenance in server side Dress bag letter.For example, for example, mobile terminal side be currently needed for upgrading local application Application Certificate be application demonstrate,prove Book 2, and the local application is directed to, server side maintains the installation kit letter for the multiple versions signed by Application Certificate 1 Breath, and the installation package informatin for the multiple versions signed by Application Certificate 2, the installation for the multiple versions signed by Application Certificate 3 Package informatin ..., then this step just needs to search the application in this multigroup installation package informatin by different application certificate signature The installation package informatin for the highest version that certificate 2 is signed.
In specific implementation, in one embodiment, step 404 can include herein below:
In pre-set multigroup installation package informatin by different application certificate signature, search and use the intended application The installation package informatin of multiple versions of certificate signature;
Wherein, the installation package informatin for the multiple versions signed by Application Certificate 2 is looked up here.
Installed from the multiple version in package informatin, obtain the installation package informatin of highest version.
Wherein, such as by Application Certificate 2 the installation package informatin for the multiple versions signed includes three versions from low to high Installation package informatin:Version 1 installs package informatin, version 2 installation package informatin and version 3 installation package informatin, these three installation kits letter Breath is all the signature carried out using Application Certificate 2, but their application version is different, then due to needing exist for movement eventually These corresponding local applications of installation package informatin of side are upgraded, and therefore, can obtain the installation kit of highest version Information, i.e. version 3 install package informatin.
Step 405, the installation package informatin of the highest version is sent to the mobile terminal.
Finally, the installation package informatin of highest version is returned into mobile terminal and carries out edition upgrading.
In embodiments of the present invention, by the way that in server side, for same application program, maintenance has more sets using different The installation kit of Application Certificate signature, wherein, the installation kit of every kind of Application Certificate signature all includes the installation package informatin of multiple versions, From regardless of whether mobile terminal side be currently needed for upgrading application program using the Application Certificate of which version, can be from clothes Business device side gets the installation kit of corresponding highest version, so as to fulfill the upgrading renewal to local application so that replacing Application program signing certificate after, be still able to carry out upgrading renewal to the installation file of legacy version.
5th embodiment
Reference Fig. 5, shows the block diagram of the mobile terminal of one embodiment of the invention.The mobile terminal of the embodiment of the present invention It can realize the details of the upgrade method of the application program in embodiment one to embodiment two, and reach identical effect.
Mobile terminal includes shown in Fig. 5:
First sending module 51, for server sending application upgrade request, including and working as in the application upgrade request The public key of preceding Application Certificate;
First receiving module 52, the installation package informatin returned for receiving the server, the installation package informatin is institute State the information that server is obtained according to the public key match;
Upgraded module 53, for being upgraded according to the installation package informatin.
The embodiment of the present invention is by carrying the public key of current application certificate in being asked in application upgrade, so as to from clothes Business device side gets the installation package informatin with the public key match so that the upgrading of application program limits from the version of Application Certificate System, improves the scope of application of upgrade applications.
Sixth embodiment
Reference Fig. 6, shows the block diagram of the mobile terminal of one embodiment of the invention.The mobile terminal of the embodiment of the present invention It can realize the details of the upgrade method of the application program in embodiment one to embodiment two, and reach identical effect.
Mobile terminal includes shown in Fig. 6:
First sending module 51, for server sending application upgrade request, including and working as in the application upgrade request The public key of preceding Application Certificate;
First receiving module 52, the installation package informatin returned for receiving the server, the installation package informatin is institute State the information that server is obtained according to the public key match;
Upgraded module 53, for being upgraded according to the installation package informatin.
The upgraded module 53 includes:
Acquisition submodule 531, for obtaining application identities from the installation package informatin;
First determination sub-module 532, for determining the corresponding local application of the application identities;
Submodule 533 is installed, for according to the installation kit acquisition of information installation file, according to the installation file to institute State local application and carry out covering installation.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, to avoid repeating, which is not described herein again.
7th embodiment
Reference Fig. 7, shows the block diagram of the server of one embodiment of the invention.The server of the embodiment of the present invention can be real The details of the upgrade method of application program in current embodiment three to example IV, and reach identical effect.
Server includes shown in Fig. 7:
Second receiving module 71, for receiving the application upgrade request from mobile terminal;
Acquisition module 72, for obtaining the public key of current application certificate from application upgrade request;
Determining module 73, for determining the installation package informatin with the public key match;
Second sending module 74, for the installation package informatin to be sent to the mobile terminal.
In embodiments of the present invention, it is currently needed for upgrading by being extracted from the application upgrade request that mobile terminal is sent The public key of the Application Certificate of application program, so as to get the installation package informatin with the public key match from server side, that No matter mobile terminal side is currently needed for the application program of upgrading using the Application Certificate of which version, can be from service Device side gets the installation kit of corresponding highest version, so as to fulfill the upgrading renewal to local application so that in replacement After the signing certificate of application program, it is still able to carry out upgrading renewal to the installation file of legacy version.
8th embodiment
Reference Fig. 8, shows the block diagram of the server of one embodiment of the invention.The server of the embodiment of the present invention can be real The details of the upgrade method of application program in current embodiment three to example IV, and reach identical effect.
Server includes shown in Fig. 8:
Second receiving module 71, for receiving the application upgrade request from mobile terminal;
Acquisition module 72, for obtaining the public key of current application certificate from application upgrade request;
Determining module 73, for determining the installation package informatin with the public key match;
Second sending module 74, for the installation package informatin to be sent to the mobile terminal.
The determining module 73 includes:
Second determination sub-module 731, for the correspondence according to default Application Certificate and public key, determines and the public key Corresponding intended application certificate;
Submodule 732 is searched, in pre-set multigroup installation package informatin by different application certificate signature, looking into Look for the installation package informatin using the intended application certificate signature.
Alternatively, the lookup submodule 732 includes:
Searching unit 7321, in pre-set multigroup installation package informatin by different application certificate signature, looking into Look for the installation package informatin of multiple versions using the intended application certificate signature;
Acquiring unit 7322, for being installed from the multiple version in package informatin, obtains the installation package informatin of highest version.
Server provided in an embodiment of the present invention can realize that server is realized each in the embodiment of the method for Fig. 3 to Fig. 4 A process, to avoid repeating, which is not described herein again.
Fig. 9 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 900 includes but not limited to:It is radio frequency unit 901, mixed-media network modules mixed-media 902, audio output unit 903, defeated Enter unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, processor The component such as 910 and power supply 911.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 9 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, radio frequency unit 901, for server sending application upgrade request, being included in the application upgrade request The public key of current application certificate;The installation package informatin that the server returns is received, the installation package informatin is the server The information obtained according to the public key match;
Processor 910, for being upgraded according to the installation package informatin.
In embodiments of the present invention, mobile terminal is by sending application upgrade request, also, is taken in application upgrade request The public key of Application Certificate with the application program for being currently needed for upgrading, so as to be got and the public key from server side The installation package informatin matched somebody with somebody, then no matter mobile terminal side is currently needed for the application program of upgrading using the application of which version Certificate, can get the installation kit of corresponding highest version, so as to fulfill the upgrading to local application from server side Renewal so that after the signing certificate of the application program of replacement, be still able to carry out upgrading renewal to the installation file of legacy version.
It should be understood that in the embodiment of the present invention, radio frequency unit 901 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 910;In addition, by uplink Data sending is to base station.In general, radio frequency unit 901 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 901 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 902 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 903 can be receiving by radio frequency unit 901 or mixed-media network modules mixed-media 902 or in memory 909 It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 903 can also be provided and moved The relevant audio output of specific function that dynamic terminal 900 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 903 includes loudspeaker, buzzer and receiver etc..
Input unit 904 is used to receive audio or video signal.Input unit 904 can include graphics processor (Graphics Processing Unit, GPU) 9041 and microphone 9042, graphics processor 9041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Picture frame after processing may be displayed on display unit 906.Picture frame after the processing of graphics processor 9041 can be deposited Storage is transmitted in memory 909 (or other storage mediums) or via radio frequency unit 901 or mixed-media network modules mixed-media 902.Mike Wind 9042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be The form output of mobile communication base station can be sent to via radio frequency unit 901 by being converted in the case of telephone calling model.
Mobile terminal 900 further includes at least one sensor 905, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 9061, and proximity sensor can close when mobile terminal 900 is moved in one's ear Display panel 9061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass Sensor 905 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared ray sensor etc. are spent, details are not described herein.
Display unit 906 is used for the information for showing by information input by user or being supplied to user.Display unit 906 can wrap Display panel 9061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 9061.
User input unit 907 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 907 include contact panel 9071 and Other input equipments 9072.Contact panel 9071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 9071 or in contact panel 9071 Neighbouring operation).Contact panel 9071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 910, receiving area Manage the order that device 910 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 9071.Except contact panel 9071, user input unit 907 can also include other input equipments 9072.Specifically, other input equipments 9072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 9071 can be covered on display panel 9061, when contact panel 9071 is detected at it On or near touch operation after, send to processor 910 with determine touch event type, be followed by subsequent processing device 910 according to touch The type for touching event provides corresponding visual output on display panel 9061.Although in fig.9, contact panel 9071 and display Panel 9061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by contact panel 9071 and display panel 9061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 908 is the interface that external device (ED) is connected with mobile terminal 900.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 908 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 900 can be used in 900 He of mobile terminal Data are transmitted between external device (ED).
Memory 909 can be used for storage software program and various data.Memory 909 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 909 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 910 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 909, and calls and is stored in storage Data in device 909, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 910 may include one or more processing units;Preferably, processor 910 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 910.
Mobile terminal 900 can also include the power supply 911 (such as battery) to all parts power supply, it is preferred that power supply 911 Can be logically contiguous by power-supply management system and processor 910, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 900 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 910, and memory 909, is stored in On memory 909 and the computer program that can be run on the processor 910, the computer program are performed by processor 910 Each process of the upgrade method embodiment of Shi Shixian above application programs, and identical technique effect can be reached, to avoid weight Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake of the upgrade method embodiment of above application program when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (14)

  1. A kind of 1. upgrade method of application program, applied to mobile terminal, it is characterised in that the described method includes:
    To server sending application upgrade request, the public key of current application certificate is included in the application upgrade request;
    The installation package informatin that the server returns is received, the installation package informatin is the server according to the public key match Obtained information;
    Upgraded according to the installation package informatin.
  2. 2. according to the method described in claim 1, it is characterized in that, it is described according to it is described installation package informatin upgraded, including:
    Application identities are obtained from the installation package informatin;
    Determine the corresponding local application of the application identities;
    According to the installation kit acquisition of information installation file, the local application is covered according to the installation file Installation.
  3. A kind of 3. upgrade method of application program, applied to server, it is characterised in that the described method includes:
    Receive the application upgrade request from mobile terminal;
    The public key of current application certificate is obtained from application upgrade request, and determines to believe with the installation kit of the public key match Breath;
    The installation package informatin is sent to the mobile terminal.
  4. 4. according to the method described in claim 3, it is characterized in that, it is described determine with the installation package informatin of the public key match, Including:
    According to default Application Certificate and the correspondence of public key, intended application certificate corresponding with the public key is determined;
    In pre-set multigroup installation package informatin by different application certificate signature, search and use the intended application certificate The installation package informatin of signature.
  5. 5. according to the method described in claim 4, it is characterized in that, it is described pre-set by different application certificate signature In multigroup installation package informatin, the installation package informatin using the intended application certificate signature is searched, including:
    In pre-set multigroup installation package informatin by different application certificate signature, search and use the intended application certificate The installation package informatin of multiple versions of signature;
    Installed from the multiple version in package informatin, obtain the installation package informatin of highest version.
  6. 6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
    First sending module, for server sending application upgrade request, current application to be included in the application upgrade request The public key of certificate;
    First receiving module, the installation package informatin returned for receiving the server, the installation package informatin is the service The information that device is obtained according to the public key match;
    Upgraded module, for being upgraded according to the installation package informatin.
  7. 7. mobile terminal according to claim 6, it is characterised in that the upgraded module includes:
    Acquisition submodule, for obtaining application identities from the installation package informatin;
    First determination sub-module, for determining the corresponding local application of the application identities;
    Submodule is installed, for according to the installation kit acquisition of information installation file, according to the installation file to the local Application program carries out covering installation.
  8. 8. a kind of server, it is characterised in that the server includes:
    Second receiving module, for receiving the application upgrade request from mobile terminal;
    Acquisition module, for obtaining the public key of current application certificate from application upgrade request;
    Determining module, for determining the installation package informatin with the public key match;
    Second sending module, for the installation package informatin to be sent to the mobile terminal.
  9. 9. server according to claim 8, it is characterised in that the determining module includes:
    Second determination sub-module, for the correspondence according to default Application Certificate and public key, determines corresponding with the public key Intended application certificate;
    Submodule is searched, in pre-set multigroup installation package informatin by different application certificate signature, searching and using The installation package informatin of the intended application certificate signature.
  10. 10. server according to claim 9, it is characterised in that the lookup submodule includes:
    Searching unit, in pre-set multigroup installation package informatin by different application certificate signature, lookup to use institute State the installation package informatin of multiple versions of intended application certificate signature;
    Acquiring unit, for being installed from the multiple version in package informatin, obtains the installation package informatin of highest version.
  11. A kind of 11. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 2 is realized when the computer program is performed by the processor Any one of application program upgrade method the step of.
  12. 12. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realizes the liter of the application program as any one of claim 1 to 2 when the computer program is executed by processor Step in level method.
  13. A kind of 13. server, it is characterised in that including:Memory, processor and it is stored on the memory and can be described The computer program run on processor, is realized when the computer program is performed by the processor as in claim 3 to 5 The step of upgrade method of any one of them application program.
  14. 14. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realizes the liter of the application program as any one of claim 3 to 5 when the computer program is executed by processor Step in level method.
CN201711099872.8A 2017-11-09 2017-11-09 Application program upgrading method, mobile terminal and server Active CN108021379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711099872.8A CN108021379B (en) 2017-11-09 2017-11-09 Application program upgrading method, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711099872.8A CN108021379B (en) 2017-11-09 2017-11-09 Application program upgrading method, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN108021379A true CN108021379A (en) 2018-05-11
CN108021379B CN108021379B (en) 2021-03-16

Family

ID=62079822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711099872.8A Active CN108021379B (en) 2017-11-09 2017-11-09 Application program upgrading method, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN108021379B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958771A (en) * 2018-07-03 2018-12-07 百度在线网络技术(北京)有限公司 Update method, device, server and the storage medium of application program
CN108989428A (en) * 2018-07-17 2018-12-11 深圳市联新移动医疗科技有限公司 Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN110308915A (en) * 2019-06-25 2019-10-08 维沃移动通信有限公司 The method of system upgrade, mobile terminal
WO2022222696A1 (en) * 2021-04-21 2022-10-27 华为技术有限公司 Application distribution method, apparatus, device, and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258437A1 (en) * 2010-04-16 2011-10-20 Microsoft Corporation Secure local update of content management software
CN105205390A (en) * 2015-09-21 2015-12-30 上海斐讯数据通信技术有限公司 Security check system and security check method of mobile terminal
CN106843920A (en) * 2016-12-13 2017-06-13 北京元心科技有限公司 Application distribution and installation method and device between server and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110258437A1 (en) * 2010-04-16 2011-10-20 Microsoft Corporation Secure local update of content management software
CN105205390A (en) * 2015-09-21 2015-12-30 上海斐讯数据通信技术有限公司 Security check system and security check method of mobile terminal
CN106843920A (en) * 2016-12-13 2017-06-13 北京元心科技有限公司 Application distribution and installation method and device between server and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958771A (en) * 2018-07-03 2018-12-07 百度在线网络技术(北京)有限公司 Update method, device, server and the storage medium of application program
CN108989428A (en) * 2018-07-17 2018-12-11 深圳市联新移动医疗科技有限公司 Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN110308915A (en) * 2019-06-25 2019-10-08 维沃移动通信有限公司 The method of system upgrade, mobile terminal
WO2022222696A1 (en) * 2021-04-21 2022-10-27 华为技术有限公司 Application distribution method, apparatus, device, and medium

Also Published As

Publication number Publication date
CN108021379B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
CN108280349A (en) Protect method, mobile terminal and the computer readable storage medium of system kernel layer
CN109587789A (en) Accidental access method, mobile terminal and the network equipment
CN108021379A (en) A kind of upgrade method of application program, mobile terminal and server
CN109862504A (en) A kind of display methods and terminal device
CN108541015A (en) A kind of signal strength reminding method and mobile terminal
CN109743503A (en) Reminding method and terminal
CN109388456A (en) A kind of head portrait selection method and mobile terminal
CN110096203A (en) A kind of screenshot method and mobile terminal
CN110457935A (en) A kind of authority configuring method and terminal device
CN109271779A (en) A kind of installation packet inspection method, terminal device and server
CN109117240A (en) A kind of method of controlling operation thereof and mobile terminal
CN107707554A (en) A kind of login method and mobile terminal of application program account
CN107861786A (en) The reminding method and mobile terminal of a kind of notice
CN110213438A (en) A kind of processing method and terminal device of application program
CN108419283A (en) A kind of method and mobile terminal of WIFI hot spot scanning
CN108540951A (en) A kind of recharge method and mobile terminal
CN107992742A (en) A kind of method and apparatus of installation kit identification
CN107704334A (en) A kind of SDK processing method and mobile terminal
CN107734162A (en) The method, apparatus and mobile terminal of a kind of message informing
CN109889613A (en) A kind of information push method, device and mobile terminal
CN109753776A (en) A kind of method, apparatus and mobile terminal of information processing
CN110045889A (en) A kind of display methods and mobile terminal
CN109547330A (en) A kind of information sharing method and device
CN109446794A (en) A kind of cipher-code input method and its mobile terminal

Legal Events

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