CN105867988A - Method and system for Android App hot update based on Hook technology - Google Patents

Method and system for Android App hot update based on Hook technology Download PDF

Info

Publication number
CN105867988A
CN105867988A CN201610473694.XA CN201610473694A CN105867988A CN 105867988 A CN105867988 A CN 105867988A CN 201610473694 A CN201610473694 A CN 201610473694A CN 105867988 A CN105867988 A CN 105867988A
Authority
CN
China
Prior art keywords
renewal
hook
bag
update
updates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610473694.XA
Other languages
Chinese (zh)
Inventor
林进森
陈志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yunzhijia Network Co Ltd
Original Assignee
Shenzhen Yunzhijia Network 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 Shenzhen Yunzhijia Network Co Ltd filed Critical Shenzhen Yunzhijia Network Co Ltd
Priority to CN201610473694.XA priority Critical patent/CN105867988A/en
Publication of CN105867988A publication Critical patent/CN105867988A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The invention discloses a method for Android App hot update based on the Hook technology. The method includes generating an update cluster and push information on the server side; utilizing a client-side APP to receive the push information, downloading an update package corresponding to a current version from the update cluster according to the current version, and when a Hook mark in the update package is encountered in an update package installing process, substituting the update package for a marking method in a method stack according to an instruction of the Hook mark. In the method, the update package is updated according to the inserted Hook mark, so that more targeted update can be achieved and update process duration time is short. Moreover, the invention further provides a system for Android App hot update based on the Hook technology.

Description

The method and system that a kind of Android App heat based on Hook technology updates
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of based on Hook technology The method and system that Android App heat updates.
Background technology
Android application is the most universal, and in use an important problem is exactly The renewal of version.Major part Android applies to issue at content update and version and is always intended to flower Make very big effort and carry out product iteration.In redaction issuing process, there will be one unavoidably A little undiscovered problems are badly in need of solving, in order to avoid affecting the Product Experience of user.
In prior art, when upgrading demand, need new version is replaced old version completely This, user is at no point in the update process, it is impossible to modifies specific scene and updates, causing more New process duration is longer.
As can be seen here, the speed how improving version updating is this area skill to reduce the renewal time Art personnel ground urgently to be resolved hurrily problem.
Summary of the invention
It is an object of the invention to provide what a kind of Android App heat based on Hook technology updated Method and system, for improving the speed of version updating to reduce the renewal time.
For solving above-mentioned technical problem, the present invention provides a kind of Android based on Hook technology The method that App heat updates, including:
Server end generates and updates cluster and pushed information;
Customer end A pp receives described pushed information, according to current version in described renewal cluster Download the renewal bag corresponding with described version, in installing described renewal packet procedures, when running into When stating the Hook labelling updated in bag, indicating in method stack according to described Hook labelling Labeling method replaces with described renewal and wraps.
Preferably, the described renewal cluster that generates specifically includes:
Described application source code is compiled when there being application source code to update generate described renewal collect Group.
Preferably, described download in described renewal cluster according to current version with described version pair Also include after the renewal bag answered: by described update bag decompression, and described renewal bag is stored to To realize the renewal of described data base in data base.
Preferably, the described instruction according to described Hook labelling is by the labeling method in method stack Replace with the described bag that updates particularly as follows: looking in the database according to described Hook labelling Find the described bag that updates, and the labeling method in method stack is replaced with described renewal bag.
The system that a kind of Android App heat based on Hook technology updates, including:
Server end, is used for generating renewal cluster and pushed information;
Customer end A pp, is used for receiving described pushed information, according to current version in described renewal Cluster is downloaded the renewal bag corresponding with described version, in described renewal packet procedures is installed, when When running into the described Hook labelling updated in bag, according to the instruction of described Hook labelling by method Labeling method in stack replaces with described renewal and wraps.
Preferably, described server end specifically for when have application source code update time to described application Source code is compiled generating described renewal cluster.
Preferably, described customer end A pp be additionally operable to by described update bag decompression, and by described more New bag stores to data base to realize the renewal of described data base.
Preferably, described customer end A pp specifically for according to described Hook labelling described Data base finds the described bag that updates, and described in the labeling method in method stack is replaced with more New bag.
Android App heat based on Hook technology provided by the present invention update method and be System, utilizes Hook technology, updates in packet procedures installing, when running into the Hook updated in bag During labelling, the labeling method in method stack is replaced with renewal bag by the instruction according to Hook labelling, Thus realize updating.In the method, the renewal updating bag is according to the Hook labelling inserted Realize, it is possible to update targetedly so that the renewal process persistent period is shorter.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention, will use required in embodiment below Accompanying drawing do simple introduction, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those of ordinary skill in the art, do not paying creative work On the premise of, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
A kind of based on Hook technology the Android App heat that Fig. 1 provides for the present invention updates The flow chart of method;
A kind of based on Hook technology the Android App heat that Fig. 2 provides for the present invention updates The structure chart of system.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Divide embodiment rather than whole embodiment.Based on the embodiment in the present invention, this area is common Technical staff under not making creative work premise, the every other embodiment obtained, Broadly fall into scope.
The core of the present invention is to provide what a kind of Android App heat based on Hook technology updated Method and system.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawings The present invention is described in further detail with detailed description of the invention.
A kind of based on Hook technology the Android App heat that Fig. 1 provides for the present invention updates The flow chart of method.As it is shown in figure 1, what Android App heat based on Hook technology updated Method includes:
S10: server end generates and updates cluster and pushed information.
S11: customer end A pp receives pushed information, according to current version under updating in cluster Carry the renewal bag corresponding with version, update in packet procedures installing, when running in renewal bag During Hook labelling, according to the instruction of Hook labelling, the labeling method in method stack is replaced with more New bag.
In being embodied as, if business scenario changes, then server end can be according to business The change of scene generates and updates cluster.It should be noted that, renewal cluster here contains respectively Plant the renewal bag of version, need user to select corresponding renewal bag according to the version of self.Work as life Become after updating cluster, generate pushed information, and send pushed information to each client.Here Pushed information point out user to have redaction to update exactly.
It is preferably carried out mode as one, generates renewal cluster and specifically include: when there being application source It is compiled generating to application source code when code updates and updates cluster.Server end is as sending out of updating Play person, be compiled source code when there being application source code to need to update updating cluster to generate.Can To be appreciated that, server end needs to account for all of version, therefore, updates cluster In include renewal bag corresponding to miscellaneous editions and select for customer end A pp.
After client end AP P receives the pushed information that server end sends, if it is desired to update and work as Front version then downloads the renewal bag of correspondence in updating cluster according to current version, afterwards with regard to root Start to install according to prompting and update bag.In installation process, have, if run into, the Hook updating bag During labelling, then according to the instruction of Hook labelling, the labeling method in method stack is replaced with renewal Bag.It should be noted that, server end, when generating renewal cluster, needs to insert in updating bag Enter Hook labelling, in other words, update in bag and include program unlike the prior art, If identical program, then need not replace, when being only the different program of prior art, Just need with updating bag replacement.Therefore, the Hook labelling in being wrapped by renewal can be by next The mounting object of step is pointed out, thus by the corresponding labeling method updated in bag replacement method stack.
It is preferably carried out mode as one, downloads and version in updating cluster according to current version Also include after the renewal bag of this correspondence: by renewal bag decompression, and renewal bag is stored to data To realize the renewal of data base in storehouse.
It is preferably carried out mode, indicating in method stack according to Hook labelling as one Labeling method replaces with renewal bag particularly as follows: finding in data base according to Hook labelling Update bag, and the labeling method in method stack is replaced with renewal bag.
After customer end A pp downloads to the renewal bag needed, first by renewal bag decompression, then Store to data base to realize the renewal of data base by updating bag.In this step, be equivalent to First each is updated bag to store, when using, recall.And when call and be Run to when having Hook labelling according to program, data base finds the renewal bag of correspondence.
The method that the Android App heat based on Hook technology that the present embodiment provides updates, profit Use Hook technology, update in packet procedures installing, when running into the Hook labelling updated in bag Labeling method in method stack is replaced with renewal bag by the instruction according to Hook labelling, thus real Now update.In the method, the renewal updating bag is to realize according to the Hook labelling inserted , it is possible to update targetedly so that the renewal process persistent period is shorter.
A kind of based on Hook technology the Android App heat that Fig. 2 provides for the present invention updates The structure chart of system.As in figure 2 it is shown, what Android App heat based on Hook technology updated System, including:
Server end 10, is used for generating renewal cluster and pushed information;
Customer end A pp11, is used for receiving pushed information, according to current version in updating cluster Download the renewal bag corresponding with version, update in packet procedures installing, when running in renewal bag During Hook labelling, according to the instruction of Hook labelling, the labeling method in method stack is replaced with more New bag.
In being embodied as, if business scenario changes, then server end 10 can basis The change of business scenario generates and updates cluster.It should be noted that, renewal cluster here comprises The renewal bag of various versions, needs user to select corresponding renewal bag according to the version of self. After generating renewal cluster, generate pushed information, and send pushed information to each client. Here pushed information points out user to have redaction to update exactly.
After customer end A pp11 receives the pushed information that server end 10 sends, if it is desired to Update current version in updating cluster, then download the renewal bag of correspondence according to current version, it The most just start to install according to prompting and update bag.In installation process, update bag if running into have During Hook labelling, then according to the instruction of Hook labelling, the labeling method in method stack is replaced with Update bag.It should be noted that, server end 10, when generating renewal cluster, needs updating Bag inserts Hook labelling, in other words, updates in bag and include unlike the prior art Program, if identical program, then need not replace, is only that prior art is different During program, just need with updating bag replacement.Therefore, the Hook labelling energy in being wrapped by renewal Enough next step mounting object is pointed out, thus by the corresponding mark updated in bag replacement method stack Note method.
The system that the Android App heat based on Hook technology that the present embodiment provides updates, profit Use Hook technology, update in packet procedures installing, when running into the Hook labelling updated in bag Labeling method in method stack is replaced with renewal bag by the instruction according to Hook labelling, thus real Now update.In the method, the renewal updating bag is to realize according to the Hook labelling inserted , it is possible to update targetedly so that the renewal process persistent period is shorter.
Being preferably carried out mode as one, server end is specifically for when there being application source code to update Time to application source code be compiled generate update cluster.
Being preferably carried out mode as one, customer end A pp is additionally operable to renewal bag decompression, and Store to data base to realize the renewal of data base by updating bag.
Being preferably carried out mode as one, customer end A pp is specifically for according to Hook labelling Find in data base renewal bag, and the labeling method in method stack is replaced with renewal bag.
Owing to the embodiment of components of system as directed is corresponding with the embodiment of method part, therefore, it is The description that the embodiment of system part sees above, wouldn't repeat here.
The side above Android App heat based on Hook technology provided by the present invention updated Method and system are described in detail.In description, each embodiment uses the mode gone forward one by one to describe, What each embodiment stressed is the difference with other embodiments, each embodiment it Between identical similar portion see mutually.For device disclosed in embodiment, due to it Correspond to the method disclosed in Example, so describe is fairly simple, the relevant part side of seeing Method part illustrates.It should be pointed out that, for those skilled in the art, Under the premise without departing from the principles of the invention, it is also possible to the present invention is carried out some improvement and modification, These improve and modify in the protection domain also falling into the claims in the present invention.
Professional further appreciates that, describes in conjunction with the embodiments described herein The unit of each example and algorithm steps, it is possible to electronic hardware, computer software or the two Be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, in described above In generally described composition and the step of each example according to function.These functions are actually Perform with hardware or software mode, depend on application-specific and the design constraint of technical scheme Condition.Each specifically should being used for can be used different methods to realize institute by professional and technical personnel The function described, but this realization is it is not considered that beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can be direct Implement with hardware, the software module of processor execution, or the combination of the two.Software module Random access memory (RAM), internal memory, read only memory (ROM), electrically programmable can be placed in ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM, Or in any other form of storage medium well known in technical field.

Claims (8)

1. the method that Android App heat based on Hook technology updates, its feature exists In, including:
Server end generates and updates cluster and pushed information;
Customer end A pp receives described pushed information, according to current version in described renewal cluster Download the renewal bag corresponding with described version, in installing described renewal packet procedures, when running into When stating the Hook labelling updated in bag, indicating in method stack according to described Hook labelling Labeling method replaces with described renewal and wraps.
Android App heat based on Hook technology the most according to claim 1 updates Method, it is characterised in that described generation update cluster specifically include:
Described application source code is compiled when there being application source code to update generate described renewal collect Group.
Android App heat based on Hook technology the most according to claim 1 updates Method, it is characterised in that described download and institute in described renewal cluster according to current version Also include after stating the renewal bag that version is corresponding: update bag decompression by described, and by described renewal Bag stores to data base to realize the renewal of described data base.
Android App heat based on Hook technology the most according to claim 1 updates Method, it is characterised in that described according to described Hook labelling instruction by method stack Labeling method replace with described update bag particularly as follows: according to described Hook labelling at described number Wrap according to storehouse finds described renewal, and the labeling method in method stack is replaced with described renewal Bag.
5. the system that Android App heat based on Hook technology updates, its feature exists In, including:
Server end, is used for generating renewal cluster and pushed information;
Customer end A pp, is used for receiving described pushed information, according to current version in described renewal Cluster is downloaded the renewal bag corresponding with described version, in described renewal packet procedures is installed, when When running into the described Hook labelling updated in bag, according to the instruction of described Hook labelling by method Labeling method in stack replaces with described renewal and wraps.
Android App heat based on Hook technology the most according to claim 5 updates System, it is characterised in that described server end specifically for when have application source code update time pair Described application source code is compiled generating described renewal cluster.
Android App heat based on Hook technology the most according to claim 5 updates System, it is characterised in that described customer end A pp be additionally operable to by described update bag decompression, and Store to data base to realize the renewal of described data base by the described bag that updates.
Android App heat based on Hook technology the most according to claim 5 updates System, it is characterised in that described customer end A pp is specifically for according to described Hook labelling Find in the database described update bag, and by method stack labeling method replace Bag is updated for described.
CN201610473694.XA 2016-06-24 2016-06-24 Method and system for Android App hot update based on Hook technology Pending CN105867988A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610473694.XA CN105867988A (en) 2016-06-24 2016-06-24 Method and system for Android App hot update based on Hook technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610473694.XA CN105867988A (en) 2016-06-24 2016-06-24 Method and system for Android App hot update based on Hook technology

Publications (1)

Publication Number Publication Date
CN105867988A true CN105867988A (en) 2016-08-17

Family

ID=56655187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610473694.XA Pending CN105867988A (en) 2016-06-24 2016-06-24 Method and system for Android App hot update based on Hook technology

Country Status (1)

Country Link
CN (1) CN105867988A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648724A (en) * 2016-09-05 2017-05-10 Tcl集团股份有限公司 Application hotfix method and terminal
CN106874195A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of bug for android applications repairs and continues delivery scheme
CN107133068A (en) * 2017-04-18 2017-09-05 努比亚技术有限公司 Mobile terminal and apply restorative procedure
CN107179925A (en) * 2017-04-14 2017-09-19 北京五八信息技术有限公司 Hot update method and device
CN108121561A (en) * 2016-11-28 2018-06-05 百度在线网络技术(北京)有限公司 application program repairing method, device and system
CN109800005A (en) * 2018-12-06 2019-05-24 广州西山居世游网络科技有限公司 A kind of hot update method of client and device
CN113360176A (en) * 2020-03-06 2021-09-07 浙江宇视科技有限公司 Software program upgrading method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6513158B1 (en) * 1999-11-15 2003-01-28 Espial Group Inc. Method and apparatus for running multiple java applications simultaneously
CN105446712A (en) * 2014-08-08 2016-03-30 阿里巴巴集团控股有限公司 Defect mending method and device for application program
CN105589701A (en) * 2014-10-21 2016-05-18 阿里巴巴集团控股有限公司 Client application partial updating method and apparatus
CN105635277A (en) * 2015-12-30 2016-06-01 北京京东尚科信息技术有限公司 Upgrade packet providing method and device and client side upgrade method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6513158B1 (en) * 1999-11-15 2003-01-28 Espial Group Inc. Method and apparatus for running multiple java applications simultaneously
CN105446712A (en) * 2014-08-08 2016-03-30 阿里巴巴集团控股有限公司 Defect mending method and device for application program
CN105589701A (en) * 2014-10-21 2016-05-18 阿里巴巴集团控股有限公司 Client application partial updating method and apparatus
CN105635277A (en) * 2015-12-30 2016-06-01 北京京东尚科信息技术有限公司 Upgrade packet providing method and device and client side upgrade method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648724A (en) * 2016-09-05 2017-05-10 Tcl集团股份有限公司 Application hotfix method and terminal
CN106648724B (en) * 2016-09-05 2020-05-01 Tcl集团股份有限公司 Application program hot repair method and terminal
CN108121561A (en) * 2016-11-28 2018-06-05 百度在线网络技术(北京)有限公司 application program repairing method, device and system
CN108121561B (en) * 2016-11-28 2021-08-17 百度在线网络技术(北京)有限公司 Application program repairing method, device and system
CN106874195A (en) * 2017-01-18 2017-06-20 环球智达科技(北京)有限公司 A kind of bug for android applications repairs and continues delivery scheme
CN107179925A (en) * 2017-04-14 2017-09-19 北京五八信息技术有限公司 Hot update method and device
CN107133068A (en) * 2017-04-18 2017-09-05 努比亚技术有限公司 Mobile terminal and apply restorative procedure
CN109800005A (en) * 2018-12-06 2019-05-24 广州西山居世游网络科技有限公司 A kind of hot update method of client and device
CN113360176A (en) * 2020-03-06 2021-09-07 浙江宇视科技有限公司 Software program upgrading method and device, storage medium and electronic equipment
CN113360176B (en) * 2020-03-06 2023-08-25 浙江宇视科技有限公司 Upgrading method and device of software program, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN105867988A (en) Method and system for Android App hot update based on Hook technology
CN104346167B (en) The method and device of channel bag is applied in generation
CN108111331B (en) Method, device, storage medium, processor and system for acquiring update data packet
TWI687867B (en) Method for generating and installing trusted application for trusted execution environment
CN104820602A (en) Method, device and system for publishing software package
US8490077B2 (en) Runtime versioning and distribution of dynamic web-elements
CN105373396B (en) Update of plug-in loading method and device in plug-platform
CN107506219A (en) A kind of general version upgrade method based on android system
CN108984224A (en) A kind of plug-in management method, computer readable storage medium and terminal device
CN105407130A (en) Mobile client plug-in system and mobile client plug-in processing method
CN106897103B (en) Method for quickly and thermally updating version of mobile terminal network game
CN105930197A (en) Software upgrading method and electronic equipment
CN108182075A (en) A kind of program by the automatic escalation target software of socket communication modes
CN103064666A (en) Multi-channel method and system for issuing software
CN109800005B (en) Client hot update method and device
CN108888951A (en) Game resource treating method and apparatus
CN109491694A (en) Using update method and device, data push method and device
CN105468383A (en) Data upgrading method and device
CN106201591A (en) The configuration file upgrade method of a kind of cloud management platform and device
CN109840096A (en) The installation method and device of operating system
CA2860657C (en) Installation engine and package format for parallelizable, reliable installations
CN104657164B (en) Software upgrading treating method and apparatus
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN106155475A (en) The customized desktop method for pushing of intelligent terminal and system
CN113961226B (en) Software development kit repairing method, terminal, server and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160817