Embodiment
Please refer to graphic, wherein identical element numbers represents identical assembly, and principle of the present invention implements to illustrate in a suitable computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be regarded as limiting the present invention not at other specific embodiment that this describes in detail.
In the following description, specific embodiments of the invention illustrate, unless otherwise stating clearly with reference to the step of the operation performed by or multi-section computing machine and symbol.Therefore, it can recognize these steps and operation, wherein have and will mention as being performed by computing machine for several times, include and handled with the computer processing unit of the electronic signal of the data in a structuring pattern by representing.These data of this manipulation transforms or the position maintained in the memory system of this computing machine, its reconfigurable or other running changing this computing machine in a manner familiar to those skilled in the art.The data structure that these data maintain is the provider location of this internal memory, and it has the particular characteristics defined by this data layout.But the principle of the invention illustrates with above-mentioned word, it is not represented as a kind of restriction, and those skilled in the art can recognize that the plurality of step of the following stated and operation also may be implemented in the middle of hardware.
" assembly ", " module ", " system ", " interface ", " process " etc. are usually intended to refer to computer related entity as used herein the term: the combination of hardware, hardware and software, software or executory software.Such as, assembly can be but be not limited to be run process on a processor, processor, object, can perform application, the thread performed, program and/or computing machine.By diagram, run application on the controller and this both controller can be assembly.One or more assembly can have in the process and/or thread that are to perform, and assembly and/or can be distributed between two or more computing machines on a computing machine.
And claimed theme may be implemented as and uses standard program and/or engineering to produce software, firmware, hardware or its combination in any with the method for the theme disclosed in computer for controlling realization, device or manufacture.Term as used herein " manufacture " is intended to comprise can from the computer program of any computer readable device, carrier or medium access.Certainly, those skilled in the art will recognize that and can carry out many amendments to this configuration, and do not depart from scope or the spirit of claimed theme.
Fig. 1 and discussion subsequently provide to realize application of the present invention install updating device place electronic equipment working environment brief, summarize description.The working environment of Fig. 1 is only an example of suitable working environment and is not intended to any restriction of suggestion about the purposes of working environment or the scope of function.Example electronic equipment 112 includes but not limited to personal computer, server computer, hand-held or laptop devices, mobile device (such as mobile phone, personal digital assistant (PDA), media player etc.), multicomputer system, consumer electronic devices, small-size computer, mainframe computer, comprises the distributed computing environment of above-mentioned any system or equipment, etc.
Although do not require, under the common background that " computer-readable instruction " is performed by one or more electronic equipment, embodiment is described.Computer-readable instruction can distribute via computer-readable medium (hereafter discussing).Computer-readable instruction can be implemented as program module, such as performs particular task or realizes the function, object, application programming interface (API), data structure etc. of particular abstract data type.Typically, the function of this computer-readable instruction can arbitrarily combine or distribute in various environment.
Fig. 1 illustrates and comprises the example that the electronic equipment 112 of one or more embodiments of updating device is installed in application of the present invention.In one configuration, electronic equipment 112 comprises at least one processing unit 116 and storer 118.According to exact configuration and the type of electronic equipment, storer 118 can be volatibility (such as RAM), non-volatile (such as ROM, flash memory etc.) or certain combination of the two.This configuration is illustrated by dotted line 114 in FIG.
In other embodiments, electronic equipment 112 can comprise supplementary features and/or function.Such as, equipment 112 can also comprise additional memory storage (such as removable and/or non-removable), and it includes but not limited to magnetic memory apparatus, light storage device etc.This additional memory devices is illustrated by memory storage 120 in FIG.In one embodiment, the computer-readable instruction for realizing one or more embodiment provided in this article can in memory storage 120.Memory storage 120 can also store other computer-readable instructions for realizing operating system, application program etc.Computer-readable instruction can be loaded in storer 118 and be performed by such as processing unit 116.
Term as used herein " computer-readable medium " comprises computer-readable storage medium.Computer-readable storage medium comprises the volatibility and non-volatile, removable and non-removable medium that realize for any method of the information storing such as computer-readable instruction or other data and so on or technology.Storer 118 and memory storage 120 are examples of computer-readable storage medium.Computer-readable storage medium includes but not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital universal disc (DVD) or other light storage devices, magnetic tape cassette, tape, disk storage device or other magnetic storage apparatus or may be used for storing expectation information and any other medium can accessed by electronic equipment 112.Computer-readable storage medium so arbitrarily can be a part for electronic equipment 112.
Electronic equipment 112 can also comprise the communication connection 126 allowing electronic equipment 112 and other devices communicatings.Communication connection 126 can include but not limited to modulator-demodular unit, network interface unit (NIC), integrated network interface, radiofrequency launcher/receiver, infrared port, USB connection or other interfaces for electronic equipment 112 being connected to other electronic equipments.Communication connection 126 can comprise wired connection or wireless connections.Communication connection 126 can be launched and/or received communication media.
Term " computer-readable medium " can comprise communication media.Communication media typically comprises other data in " the own modulated data signal " of computer-readable instruction or such as carrier wave or other transport sectors and so on, and comprises any information delivery media.Term " own modulated data signal " can comprise such signal: one or more according to being arranged to the mode in signal by information coding or changing in this characteristics of signals.
Electronic equipment 112 can comprise input equipment 124, such as keyboard, mouse, pen, voice-input device, touch input device, infrared camera, video input apparatus and/or any other input equipment.Also output device 122 can be comprised, such as one or more display, loudspeaker, printer and/or other output devices arbitrarily in equipment 112.Input equipment 124 and output device 122 can be connected to electronic equipment 112 via wired connection, wireless connections or its combination in any.In one embodiment, input equipment 124 or the output device 122 of electronic equipment 112 can be used as from the input equipment of another electronic equipment or output device.
The assembly of electronic equipment 112 can be connected by various interconnection (such as bus).Such interconnection can comprise periphery component interconnection (PCI) (such as quick PCI), USB (universal serial bus) (USB), live wire (IEEE1394), optical bus structure etc.In another embodiment, the assembly of electronic equipment 112 can pass through network interconnection.Such as, storer 118 can by be arranged in different physical location, formed by multiple physical memory cells arc of network interconnection.
Those skilled in the art will recognize that, can spanning network distribution for the memory device storing computer-readable instruction.Such as, the electronic equipment 130 can accessed via network 128 can store the computer-readable instruction for realizing one or more embodiment provided by the present invention.Electronic equipment 112 can access electronic equipment 130 and a part for downloading computer instructions or all for execution.Alternately, electronic equipment 112 can download many computer-readable instructions on demand, or some instructions can electronic equipment 112 place perform and some instructions can perform at electronic equipment 130 place.
There is provided herein the various operations of embodiment.In one embodiment, described one or more operations can form the computer-readable instruction that one or more computer-readable medium stores, and it will make computing equipment perform described operation when being performed by electronic equipment.The order describing some or all of operation should not be interpreted as implying what these operations were necessarily sequentially correlated with.It will be appreciated by those skilled in the art that the alternative sequence of the benefit with this instructions.And, should be appreciated that not all operation must exist in each embodiment provided in this article.
And word used herein " preferably " means to be used as example, example or illustration.Any aspect that Feng Wen is described as " preferably " or design need not be interpreted as than other aspects or design more favourable.On the contrary, the use of word " preferably " is intended to propose concept in a concrete fashion.Term "or" as used in this application is intended to the "or" that means to comprise and the "or" of non-excluded.That is, unless otherwise or clear from the context, " X uses A or B " means any one that nature comprises arrangement.That is, if X uses A; X uses B; Or X uses both A and B, then " X uses A or B " is met in aforementioned arbitrary example.
And although illustrate and describe the disclosure relative to one or more implementation, those skilled in the art are based on to the reading of this instructions and accompanying drawing with understand and will expect equivalent variations and amendment.The disclosure comprises all such amendments and modification, and is only limited by the scope of claims.Especially about the various functions performed by said modules (such as element, resource etc.), term for describing such assembly is intended to the random component (unless otherwise instructed) corresponding to the appointed function (such as it is functionally of equal value) performing described assembly, even if be not structurally equal to the open structure of the function performed in exemplary implementations of the present disclosure shown in this article.In addition, although special characteristic of the present disclosure relative in some implementations only one be disclosed, this feature can with can be such as expect and other Feature Combinations one or more of other favourable implementations for given or application-specific.And, " comprise " with regard to term, " having ", " containing " or its distortion be used in embodiment or claim with regard to, such term is intended to comprise " to comprise " similar mode to term.
Please refer to Fig. 2, Fig. 2 is the structural representation that the first preferred embodiment of updating device is installed in application of the present invention.The application of this preferred embodiment is installed updating device 20 and can be arranged in above-mentioned electronic equipment 112, and it comprises connection detection module 21, application detection module 22, installation module 23 and update module 24.Whether connection detection module 21 is connected with mobile terminal 25 for detecting application installation updating device; Whether application detection module 22 installs predetermined application for detecting in mobile terminal 25; Installation module 23 is for carrying out installation operation to predetermined application; Update module 24 is for carrying out renewal rewards theory to predetermined application, if this mobile terminal is Android mobile terminal, then update module 24 is especially by adb(Android Debug Bridge, Android debugging bridge) obtain the predetermined version information applied, if the version in the version information of predetermined application is lower than the predetermined version of predetermined application, then the predetermined version of predetermined application is used to carry out renewal rewards theory to predetermined application.Here adb is arranged in mobile terminal, for providing Android debugging services (Android Debug Bridge Daemon).
As shown in Figure 3, Fig. 3 is the structural representation that the application detection module of the first preferred embodiment of updating device is installed in application of the present invention.This application detection module 22 comprises modulation detection unit 221 and application detecting unit 222, modulation detection unit 221 can modulation condition for detecting whether mobile terminal 25 be in, especially by detecting the adb whether being connected to mobile terminal 25, determining whether mobile terminal 25 is in can modulation condition, as the presence by whether viewing the adb of mobile terminal 25 judges whether to be connected to the adb of mobile terminal 25; Whether application detecting unit 222 installs predetermined application for detecting mobile terminal 25.
As shown in Figure 4, Fig. 4 is the structural representation that the application detecting unit of the application detection module of the first preferred embodiment of updating device is installed in application of the present invention.This application detecting unit 222 comprises mount message and obtains subelement 2221 and application detection sub-unit 2222.Mount message obtains subelement 2221 for being obtained the application mount message of mobile terminal 25 by adb; Application detection sub-unit 2222, for the application mount message according to mobile terminal 25, determines whether be provided with predetermined application in mobile terminal 25.
The application of this preferred embodiment is installed updating device 20 and can be arranged in other electronic hardware such as PC, automatically carries out application management to mobile terminal 25.When application based on the mobile terminal installation updating device 20 of this preferred embodiment uses, first whether connection detection module 21 detection application installation updating device 20 is connected with mobile terminal 25, can arrange the assay intervals time of a connection detection module 21 here.
Once connection detection module 21 detects that application is installed updating device 20 and is connected with mobile terminal 25, then apply detection module 22 and detect in mobile terminal 25 whether predetermined application is installed.Here the predetermined application being applied as the carrying out installation management that user is arranged in advance in application installation updating device 20.Concrete, the modulation detection unit 221 of application detection module 22 detects whether mobile terminal 25 be in can modulation condition, namely detect the adb(that whether can be connected to mobile terminal 25 be no matter application install or application upgrade all operated by the adb of mobile terminal 25).As modulation detection unit 221 can be connected to the adb of mobile terminal 25, then judge that mobile terminal 25 has opened debugging mode and installed corresponding driving, the application detecting unit 222 of application detection module 22 can detect mobile terminal 25 and whether install predetermined application.As modulation detection unit 221 cannot be connected to the adb of mobile terminal 25, then may not open debugging mode or corresponding driving be not installed by mobile terminal 25, the application detecting unit 222 of application detection module 22 also cannot detect the application in mobile terminal 25, and user can be pointed out to open debugging mode at this moment application installation updating device 20 or corresponding driving is installed in prompting.
The application detecting unit 222 applying detection module 22 subsequently detects mobile terminal 25 and whether has installed predetermined application, is specially:
The mount message of application detecting unit 222 obtains subelement 2221 obtains mobile terminal 25 application mount message by adb, perform shell-command by adb: shell android :/dumpsys package, parse application mount message in mobile terminal 25.The application detection sub-unit 2222 of application detecting unit 222 obtains the application mount message of subelement 2221 acquisition according to mount message, determine whether be provided with predetermined application in mobile terminal 25.
Then do not install predetermined application as application detection module 22 detects in mobile terminal 25, then installation module 23 carries out installation operation to predetermined application; Detect in mobile terminal 25 installed predetermined application as applied detection module 22, then update module 24 carries out renewal rewards theory to predetermined application.Specifically can be update module 24 obtains predetermined application version information by adb, as the version information using the dumpsys package order of adb to obtain the predetermined application of mobile terminal 25.If the version in the version information of predetermined application is lower than the predetermined version (or latest edition) of predetermined application, then to using the predetermined version of predetermined application to carry out renewal rewards theory to predetermined application; As the version in the version information of predetermined application is not less than the predetermined version of predetermined application, then any renewal rewards theory is not carried out to predetermined application.
So namely, the application installation renewal process of updating device 20 is installed in the application completing this preferred embodiment.
Application message in the application installation updating device reading mobile terminal of this preferred embodiment and version information, carry out Auto-mounting operation and automatic renewal rewards theory to predetermined application, improve the operating efficiency of user.
Please refer to Fig. 2-Fig. 5, Fig. 5 is the process flow diagram that the first preferred embodiment of update method is installed in application of the present invention.The application of this preferred embodiment is installed update method and the first preferred embodiment of above-mentioned application installation updating device can be used to implement, and it comprises:
Whether step S501, detect and be connected with mobile terminal, to be connected, then to forward step S502 to as detected with mobile terminal;
Step S502, detects in mobile terminal and whether installs predetermined application, is provided with predetermined application, then forwards step S503 to as detected in mobile terminal; Predetermined application is installed as do not detected in mobile terminal, then forwards step S504 to;
Step S503, carries out renewal rewards theory to predetermined application;
Step S504, carries out installation operation to predetermined application;
The application of this preferred embodiment is installed update method and is ended at step S503 or step S504.
The idiographic flow of each step of update method is installed in application the following detailed description of this preferred embodiment.
In step S501, whether connection detection module 21 detects application installation updating device 20 and is connected with mobile terminal 25, can arrange the assay intervals time of a connection detection module 21 here.Once connection detection module 21 detects that application is installed updating device 20 and is connected with mobile terminal 25, then forward step S502 to.
In step S502, whether application detection module 22 detects in mobile terminal 25 to install and makes a reservation for application, the predetermined application being applied as the carrying out installation management that user is arranged in advance in application installation updating device 20 here.Concrete, the modulation detection unit 221 of application detection module 22 detects whether mobile terminal 25 be in can modulation condition, namely detect the adb(that whether can be connected to mobile terminal 25 be no matter application install or application upgrade all operated by the adb of mobile terminal 25).As modulation detection unit 221 can be connected to the adb of mobile terminal 25, then judge that mobile terminal 25 has opened debugging mode and installed corresponding driving, the application detecting unit 222 of application detection module 22 can detect mobile terminal 25 and whether install predetermined application.As modulation detection unit 221 cannot be connected to the adb of mobile terminal 25, then may not open debugging mode or corresponding driving be not installed by mobile terminal 25, the application detecting unit 222 of application detection module 22 also cannot detect the application in mobile terminal 25, and user can be pointed out to open debugging mode at this moment application installation updating device 20 or corresponding driving is installed in prompting.
The application detecting unit 222 applying detection module 22 subsequently detects mobile terminal 25 and whether has installed predetermined application, is specially:
The mount message of application detecting unit 222 obtains subelement 2221 obtains mobile terminal 25 application mount message by adb, perform shell-command by adb: shell android :/dumpsys package, parse application mount message in mobile terminal 25.The application detection sub-unit 2222 of application detecting unit 222 obtains the application mount message of subelement 2221 acquisition according to mount message, determine whether be provided with predetermined application in mobile terminal 25.
Then as application detection module 22 detects in mobile terminal 25, predetermined application has been installed, has then forwarded step S503 to.Detect in mobile terminal 25 as applied detection module 22 predetermined application has not been installed, then forward step S504 to.
In step S503, update module 24 carries out renewal rewards theory to predetermined application, specifically can be update module 24 obtains predetermined application version information by adb, as the version information using the dumpsys package order of adb to obtain the predetermined application of mobile terminal 25.If the version in the version information of predetermined application is lower than the predetermined version (or latest edition) of predetermined application, then to using the predetermined version of predetermined application to carry out renewal rewards theory to predetermined application; As the version in the version information of predetermined application is not less than the predetermined version of predetermined application, then any renewal rewards theory is not carried out to predetermined application.
In step S504, installation module 23 carries out installation operation to predetermined application.
So namely, the application installation renewal process of update method is installed in the application completing this preferred embodiment.
Application message in the application installation update method reading mobile terminal of this preferred embodiment and version information, carry out Auto-mounting operation and automatic renewal rewards theory to predetermined application, improve the operating efficiency of user.
Please refer to Fig. 6, Fig. 6 is the structural representation that the second preferred embodiment of updating device is installed in application of the present invention.The application of this preferred embodiment is installed updating device 60 and can be arranged in above-mentioned electronic equipment 112, and the application installation updating device 60 of this preferred embodiment also comprises installation interruption reminding module 66, upgrades and interrupt reminding module 67, continuation installation suggestion module 68 and continuation renewal reminding module 69 on the basis of the first preferred embodiment.Install and interrupt reminding module 66 for such as carrying out predetermined application in the process of installation operation, detect and whether disconnect with mobile terminal; To disconnect if detect with mobile terminal 65, then prompting is interrupted in the installation carrying out predetermined application; Whether upgrade and interrupt reminding module 67 for such as carrying out predetermined application in the process of renewal rewards theory, detect and disconnect with described mobile terminal, to disconnect if detect with mobile terminal 65, then prompting is interrupted in the renewal carrying out predetermined application; Continue whether installation suggestion module 68 has the described predetermined application do not completed installation operation for detecting described mobile terminal, if detect, mobile terminal 65 has the installation operation of the predetermined application do not completed, then carry out the continuation installation suggestion of predetermined application; Continue to upgrade whether reminding module 69 has the described predetermined application do not completed renewal rewards theory for detecting described mobile terminal, if detect, mobile terminal 65 has the renewal rewards theory of the predetermined application do not completed, then the continuation carrying out predetermined application upgrades prompting.
Installation module 63 comprises installation suggestion unit 631 and installation unit 632, installation suggestion unit 631 is for carrying out the installation operation indicating of predetermined application, installation unit 632 is for detecting whether receive installation operational order, if receive installation operational order, then installation operation is carried out to predetermined application; The unit of installation suggestion simultaneously 631 also detects the number of times of the installation operation indicating carrying out predetermined application, if the number of times carrying out the installation operation indicating of predetermined application is greater than the first set point number, then stops in mobile terminal 65 and installs predetermined application.
Update module 64 comprises renewal Tip element 641 and updating block 642, upgrade Tip element 641 for carrying out the renewal rewards theory prompting of predetermined application, updating block 642 is for detecting whether receive renewal rewards theory instruction, if receive renewal rewards theory instruction, then renewal rewards theory is carried out to predetermined application; Upgrade the number of times that Tip element 641 also detects the renewal rewards theory prompting of the predetermined application carrying out predetermined version simultaneously, if the number of times carrying out the renewal rewards theory prompting of the predetermined application of predetermined version is greater than the second set point number, then stop at the predetermined application of mobile terminal 65 more new subscription version.
When the application installation updating device 60 of this preferred embodiment uses, first whether connection detection module 61 detection application installation updating device 60 is connected with mobile terminal 65, can arrange the assay intervals time of a connection detection module 61 here.
Once connection detection module 61 detects that application is installed updating device 60 and is connected with mobile terminal 65, then apply detection module 62 and detect in mobile terminal 65 whether predetermined application is installed.Here the predetermined user of being applied as installs in application the application that the carrying out arranged in updating device installs management in advance.Concrete, application detection module 62 detects whether mobile terminal 65 be in can modulation condition, namely detect the adb(that whether can be connected to mobile terminal 65 be no matter application install or application upgrade all operated by the adb of mobile terminal 65).
Application detection module 62 detects mobile terminal 65 and whether has installed predetermined application subsequently.
Then do not install predetermined application as application detection module 62 detects in mobile terminal 65, then installation module 63 carries out installation operation to predetermined application; Detect in mobile terminal 65 installed predetermined application as applied detection module 62, then update module 64 carries out renewal rewards theory to predetermined application.Specifically can be update module 64 obtains predetermined application version information by adb, as the version information using the dumpsys package order of adb to obtain the predetermined application of mobile terminal 65.If the version in the version information of predetermined application is lower than the predetermined version (or latest edition) of predetermined application, then to using the predetermined version of predetermined application to carry out renewal rewards theory to predetermined application; As the version in the version information of predetermined application is not less than the predetermined version of predetermined application, then any renewal rewards theory is not carried out to predetermined application.
In application installation process, the installation suggestion unit 631 of installation module 63 can carry out the installation operation indicating of predetermined application before the installation carrying out predetermined application, has " starting to install " button bullet window etc. as ejected.User " should start to install " button as clicked, and namely have issued installation operational order, and installation unit 632 detects whether receive this installation operational order, if receive this installation operational order, namely carries out installation operation to predetermined application.Do not click this and start " installation button " or eliminate the installation of this application as user, then installation module 63 does not carry out installation operation to this predetermined application.
Preferably, as installation suggestion unit 631 also detects the number of times of the installation operation indicating carrying out predetermined application, if the number of times carrying out the installation operation indicating of predetermined application is greater than first number (as 3 is inferior), then illustrate that user does not need on its mobile terminal 65, install this predetermined application, then installation module 63 stops at this predetermined application of Auto-mounting on this mobile terminal 65, namely installation suggestion unit 631 does not carry out installation operation indicating, and installation unit 632 does not carry out the installation of actual predetermined application yet.As user needs to install this predetermined application, then manually carry out the installation of this predetermined application.
As carried out in the process of installation operation in predetermined application, interruption reminding module 66 is installed and detects that application is installed updating device 60 and disconnected with mobile terminal 65, prompting is interrupted in the installation then carrying out predetermined application, user specifically can be pointed out " to disconnect with the connection of mobile terminal; please reconnect ", prevent user from before application installation, disconnecting application and updating device 60 and the connection of mobile terminal 65 are installed, cause application to be installed unsuccessfully.As apply install updating device 60 be connected with mobile terminal 65 time, continue installation suggestion module 68 and detect that mobile terminal 65 has the installation operation of the predetermined application do not completed, then carry out the continuation installation suggestion of predetermined application, user can be pointed out " to continue to install ", to complete the installation operation of respective application.
In application renewal process, the renewal Tip element 641 of update module 64 can carry out the renewal rewards theory prompting of predetermined application before the renewal carrying out predetermined application, has " starting to upgrade " button bullet window etc. as ejected.User " should start to upgrade " button as clicked, and namely have issued renewal rewards theory instruction, updating block 642 detects whether receive this renewal rewards theory instruction, if receive this renewal rewards theory instruction, namely carries out renewal rewards theory to predetermined application.As user does not click this installation " starting to upgrade " button or eliminate this application, then updating block 642 does not carry out renewal rewards theory to this predetermined application.
Preferably, the number of times of the renewal rewards theory prompting of the predetermined application carrying out predetermined version is also detected as upgraded Tip element 641, if the number of times carrying out the renewal rewards theory prompting of the predetermined application of predetermined version is greater than second number (as 3 is inferior), then illustrate that user does not need on its mobile terminal 65, upgrade this predetermined application, then update module 64 stops at the predetermined application this mobile terminal 65 upgrading automatically this predetermined version, namely the renewal rewards theory prompting that Tip element 641 does not carry out the predetermined application of this predetermined version is upgraded, updating block 642 does not carry out the renewal of the predetermined application of this predetermined version yet.As user needs the predetermined application upgrading this predetermined version, then manually carry out the renewal of the predetermined application of this predetermined version.Certainly application as predetermined in this is proposed other versions, upgrades the renewal rewards theory prompting that Tip element 641 still carries out the predetermined application of other versions.
As carried out in the process of renewal rewards theory in predetermined application, upgrade interruption reminding module 67 and detect that application is installed updating device 60 and disconnected with mobile terminal 65, prompting is interrupted in the renewal then carrying out predetermined application, user specifically can be pointed out " to disconnect with the connection of mobile terminal; please reconnect ", prevent user from before application has upgraded, disconnecting application and updating device 60 and the connection of mobile terminal 65 are installed, cause application to upgrade unsuccessfully.As apply install updating device 60 be connected with mobile terminal 65 time, continue to upgrade reminding module 69 and detect that mobile terminal 65 has the renewal rewards theory of the predetermined application do not completed, the continuation then carrying out predetermined application upgrades prompting, user can be pointed out " to continue to upgrade ", to complete the renewal rewards theory of respective application.
So namely, the application installation renewal process of updating device 60 is installed in the application completing this preferred embodiment.
The application of this preferred embodiment installs updating device on the basis of the first preferred embodiment, to the Auto-mounting operation of predetermined application and automatically renewal rewards theory be optimized, improve the success ratio that application is installed and application upgrades; Avoid the repeatable operation of user, improve the operating efficiency of user.
Please refer to Fig. 6 and Fig. 7, Fig. 7 is the process flow diagram that the second preferred embodiment of update method is installed in application of the present invention.The application of this preferred embodiment is installed update method and the second preferred embodiment of above-mentioned application installation updating device can be used to implement, and it comprises:
Whether step S701, detect and be connected with mobile terminal, to be connected, then to forward step S702 to as detected with mobile terminal;
Step S702, detects the installation operation whether with the predetermined application do not completed, and the installation operation of the predetermined application do not completed as having, then forward step S713 to; Installation as the predetermined application do not completed operates, then forward step S703 to;
Step S703, detect the renewal rewards theory whether with the predetermined application do not completed, the renewal rewards theory of the predetermined application do not completed as having, then forward step S714 to; As the renewal rewards theory of predetermined application do not completed, then forward step S704 to;
Step S704, detects in mobile terminal and whether installs predetermined application, is provided with predetermined application, then forwards step S705 to as detected in mobile terminal; Predetermined application is installed as do not detected in mobile terminal, then forwards step S709 to;
Step S705, carries out the renewal rewards theory prompting of predetermined application, forwards step S706 to subsequently;
Step S706, if receive renewal rewards theory instruction, then carries out renewal rewards theory to predetermined application, forwards step S707 to subsequently;
Whether step S707, detect in renewal process and to disconnect with mobile terminal, to disconnect, then forward step S708 to as do not detected with mobile terminal; To disconnect with mobile terminal as detected, then forward step S715 to;
Step S708, renewal completes;
Step S709, carries out the installation operation indicating of predetermined application, forwards step S710 to subsequently;
Step S710, if receive installation operational order, then carries out installation operation to predetermined application, forwards step S711 to subsequently;
Whether step S711, detect in installation process and to disconnect with mobile terminal, to disconnect, then forward step S712 to as do not detected with mobile terminal; To disconnect with mobile terminal as detected, then forward step S716 to;
Step S712, installation;
Step S713, carries out the continuation installation suggestion of predetermined application, forwards step S712 to subsequently;
Step S714, the continuation carrying out predetermined application upgrades prompting, forwards step S708 to subsequently;
Step S715, prompting is interrupted in the renewal carrying out predetermined application, forwards step S706 to subsequently;
Step S716, prompting is interrupted in the installation carrying out predetermined application, forwards step S710 to subsequently;
The application of this preferred embodiment is installed update method and is ended at step S708 and step S712.
The idiographic flow of each step of update method is installed in application the following detailed description of this preferred embodiment.
In step s 701, whether connection detection module 61 detects application installation updating device 60 and is connected with mobile terminal 65, can arrange the assay intervals time of a connection detection module 61 here.Once connection detection module 61 detects that application is installed updating device 60 and is connected with mobile terminal 65, then forward step S702 to.
In step S702, application is installed updating device 60 and is detected the installation operation whether with the predetermined application do not completed, and the installation operation of the predetermined application do not completed as having, then forward step S713 to; Installation as the predetermined application do not completed operates, then forward step S703 to.
In step S703, application is installed updating device 60 and is detected the renewal rewards theory whether with the predetermined application do not completed, and the renewal rewards theory of the predetermined application do not completed as having, then forward step S714 to; As the renewal rewards theory of predetermined application do not completed, then forward step S704 to.
In step S704, whether application detection module 62 detects in mobile terminal 65 installs predetermined application, concrete, application detection module 62 detects whether mobile terminal 65 be in can modulation condition, namely detect the adb(that whether can be connected to mobile terminal 65 be no matter application install or application upgrade all operated by the adb of mobile terminal 65).Can be connected to the adb of mobile terminal 65 as applied detection module 62, then judge that mobile terminal 65 has opened debugging mode and installed corresponding driving, application detection module 62 can detect mobile terminal 65 and whether install predetermined application.The adb of mobile terminal 65 cannot be connected to as applied detection module 62, then may not open debugging mode or corresponding driving be not installed by mobile terminal 65, application detection module 62 also cannot detect the application in mobile terminal 65, and user can be pointed out to open debugging mode at this moment application installation updating device 60 or corresponding driving is installed in prompting.
Application detection module 62 detects mobile terminal 65 and whether has installed predetermined application subsequently, is specially:
Application detection module 62 obtains the application mount message of mobile terminal 65 by adb, perform shell-command: shell android :/dumpsys package by adb, parses application mount message in mobile terminal 65.Application detection module 62, according to the application mount message obtained, determines whether be provided with predetermined application in mobile terminal 65.
Then as application detection module 62 detects in mobile terminal 65, predetermined application has been installed, has then forwarded step S705 to.Do not detect in mobile terminal 65 as applied detection module 62 predetermined application has been installed, then forward step S706 to.
In step S705, the renewal Tip element 641 of update module 64 can carry out the renewal rewards theory prompting of predetermined application before the renewal carrying out predetermined application, has " starting to upgrade " button bullet window etc. as ejected.Forward step S706 to subsequently.
In step S706, user " should start to upgrade " button as clicked, and namely have issued renewal rewards theory instruction, updating block 642 detects whether receive this renewal rewards theory instruction, if receive this renewal rewards theory instruction, namely carries out renewal rewards theory to predetermined application.Specifically can be update module 642 obtains predetermined application version information by adb, as the version information using the dumpsys package order of adb to obtain the predetermined application of mobile terminal 65.If the version in the version information of predetermined application is lower than the predetermined version (or latest edition) of predetermined application, then to using the predetermined version of predetermined application to carry out renewal rewards theory to predetermined application; As the version in the version information of predetermined application is not less than the predetermined version of predetermined application, then any renewal rewards theory is not carried out to predetermined application.As user does not click this installation " starting to upgrade " button or eliminate this application, then update module 64 does not carry out renewal rewards theory to this predetermined application.
Preferably, the number of times of the renewal rewards theory prompting of the predetermined application carrying out predetermined version is also detected as upgraded Tip element 641, if the number of times carrying out the renewal rewards theory prompting of the predetermined application of predetermined version is greater than second number (as 3 is inferior), then illustrate that user does not need on its mobile terminal 65, upgrade time predetermined application, then update module 64 stops at the predetermined application this mobile terminal 65 upgrading automatically this predetermined version, namely the renewal rewards theory prompting that Tip element 641 does not carry out the predetermined application of this predetermined version is upgraded, updating block 642 does not carry out the renewal of the predetermined application of this predetermined version yet.As user needs the predetermined application upgrading this predetermined version, then manually carry out the renewal of the predetermined application of this predetermined version.Certainly application as predetermined in this is proposed other versions, upgrades the renewal rewards theory prompting that Tip element 641 still carries out the predetermined application of other versions.
In step S707, in renewal process, updating device 60 is installed as applied and does not detect that application is installed updating device 60 and disconnected with mobile terminal 65, then forward step S708 to, updating device 60 is installed as applied and detects that application is installed updating device 60 and disconnected with mobile terminal 65, then forward step S715 to.
In step S708, complete whole application renewal process.
In step S709, the installation suggestion unit 631 of installation module 63 can carry out the installation operation indicating of predetermined application before the installation carrying out predetermined application, has " starting to install " button bullet window etc. as ejected.Forward step S710 to subsequently.
In step S710, user " should start to install " button as clicked, and namely have issued installation operational order, and installation unit 632 detects whether receive this installation operational order, if receive this installation operational order, namely carries out installation operation to predetermined application.Forward step S711 to subsequently.Do not click this and start " installation button " or eliminate the installation of this application as user, then installation module 63 does not carry out installation operation to this predetermined application.
Preferably, as installation suggestion unit 631 also detects the number of times of the installation operation indicating carrying out predetermined application, if the number of times carrying out the installation operation indicating of predetermined application is greater than first number (as 3 is inferior), then illustrate that user does not need on its mobile terminal 65, install this predetermined application, then installation module 63 stops at this predetermined application of Auto-mounting on this mobile terminal 65, namely installation suggestion unit 631 does not carry out installation operation indicating, and installation unit 632 does not carry out the installation of actual predetermined application yet.As user needs to install this predetermined application, then manually carry out the installation of this predetermined application.
In step S711, in installation process, updating device 60 is installed as applied and does not detect that application is installed updating device 60 and disconnected with mobile terminal 65, then forward step S712 to, updating device 60 is installed as applied and detects that application is installed updating device 60 and disconnected with mobile terminal 65, then forward step S716 to.
In step S712, complete whole application installation process.
In step S713, continue the continuation installation suggestion that installation suggestion module 68 carries out predetermined application, user can be pointed out " to continue to install ", to complete the installation operation of respective application, forward step S712 subsequently to and complete whole application installation process.
In step S714, continue to upgrade the continuation renewal prompting that reminding module 69 carries out predetermined application, user can be pointed out " to continue to upgrade ", to complete the renewal rewards theory of respective application.Forward step S708 subsequently to and complete whole application renewal process.
In step S715, upgrade and interrupt the renewal interruption prompting that reminding module 67 carries out predetermined application, user specifically can be pointed out " to disconnect with the connection of mobile terminal; please reconnect ", prevent user from before application has upgraded, disconnecting application and updating device 60 and the connection of mobile terminal 65 are installed, cause application to upgrade unsuccessfully.Forward the renewal rewards theory instruction that step S706 receives user again subsequently to and proceed renewal rewards theory.
In step S716, install and interrupt the installation interruption prompting that reminding module 66 carries out predetermined application, user specifically can be pointed out " to disconnect with the connection of mobile terminal; please reconnect ", prevent user from before application installation, disconnecting application and updating device 60 and the connection of mobile terminal 65 are installed, cause application to be installed unsuccessfully.Forward the installation operational order that step S710 receives user again subsequently to and proceed installation operation.
So namely, the application installation renewal process of update method is installed in the application completing this preferred embodiment.
The application of this preferred embodiment installs update method on the basis of the first preferred embodiment, to the Auto-mounting operation of predetermined application and automatically renewal rewards theory be optimized, improve the success ratio that application is installed and application upgrades; Avoid the repeatable operation of user, improve the operating efficiency of user.
Illustrate that the specific works flow process of updating device and application installation update method is installed in application of the present invention below by a specific embodiment.
One, whether detection is connected with Android mobile terminal.As being connected with Android mobile terminal, then detecting Android mobile terminal and whether corresponding driving is installed and whether opens modulating mode, namely whether can be connected to the adb of Android mobile terminal.If the adb being connected to Android mobile terminal then forwards next step to; As not being connected to the adb of Android mobile terminal, then the installation of not carrying out applying upgrades or prompting is installed driving or opens modulating mode.
Two, detect this Android mobile terminal and whether predetermined application is installed.As do not installed predetermined application, then detect Android mobile terminal and whether more than three times the installation operation of this predetermined application is not processed (then stopping in this way carrying out installation operation), otherwise eject " starting to install " button bullet window.Start to install as user clicks, then start download corresponding predetermined application and install this predetermined application.
Then point out install unsuccessfully as installed failure, user can click retry button and again install.As in installation process, user is disconnected the connection that updating device and Android mobile terminal are installed in application, then point out " disconnect with the connection of Android mobile terminal, please reconnect ".As applied, updating device and Android mobile terminal are installed to reconnect, then ejection retry button.User proceeds to install by click keys.Certainly also can use here can with retry button represent that application is installed updating device and is connected with Android mobile terminal, disabled retry button represents that updating device is installed in application and Android mobile terminal disconnects.
Three, as Android mobile terminal does not install predetermined application, whether more than three times to this predetermined version, (predetermined version is generally latest edition then to detect Android mobile terminal, upgrade the current version and latest edition that interface can show predetermined application) the renewal rewards theory of predetermined application do not carry out processing (then stopping in this way carrying out renewal rewards theory), otherwise eject " starting to upgrade " button bullet window.Start to upgrade as user clicks, then start the predetermined application of downloading corresponding predetermined version, and this predetermined application is upgraded.
Then point out upgrade unsuccessfully as upgraded failure, user can click retry button and again upgrade.As at no point in the update process, user is disconnected the connection that updating device and Android mobile terminal are installed in application, then prompting " disconnect with the connection of Android mobile terminal, please reconnect ".As applied, updating device and Android mobile terminal are installed to reconnect, then ejection retry button.User proceeds to install by click keys.Certainly also can use here can with retry button represent that application is installed updating device and is connected with Android mobile terminal, disabled retry button represents that updating device is installed in application and Android mobile terminal disconnects.
Application of the present invention is installed update method and device and is read application message in mobile terminal and version information, carries out Auto-mounting operation and renewal rewards theory automatically to predetermined application; Solve existing application update method to be installed and to apply the technical matters that installation updating device can not upgrade on application and affect the operating efficiency of user in time.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Above-mentioned each device or system, can perform the method in correlation method embodiment.
In sum; although the present invention discloses as above with preferred embodiment; but above preferred embodiment is also not used to limit the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; all can do various change and retouching, the scope that therefore protection scope of the present invention defines with claim is as the criterion.