CN105138376A - Mixed model application, webpage resource upgrading method thereof, mobile terminal and system - Google Patents

Mixed model application, webpage resource upgrading method thereof, mobile terminal and system Download PDF

Info

Publication number
CN105138376A
CN105138376A CN201510550143.4A CN201510550143A CN105138376A CN 105138376 A CN105138376 A CN 105138376A CN 201510550143 A CN201510550143 A CN 201510550143A CN 105138376 A CN105138376 A CN 105138376A
Authority
CN
China
Prior art keywords
web page
page resources
mixed mode
mobile terminal
mode applications
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
CN201510550143.4A
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.)
Beijing Pierre Blaney Software Co Ltd
Original Assignee
Beijing Pierre Blaney Software 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 Beijing Pierre Blaney Software Co Ltd filed Critical Beijing Pierre Blaney Software Co Ltd
Priority to CN201510550143.4A priority Critical patent/CN105138376A/en
Publication of CN105138376A publication Critical patent/CN105138376A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a webpage resource upgrading method of mixed model application. The webpage resource upgrading method is executed in a mobile terminal, an installation package of the mixed model application comprises a webpage resource compression package, and after the mixed model application is installed to the mobile terminal, webpage resources are decompressed into an ROM of the mobile terminal. The upgrading method includes the steps that under preset conditions, a resource updating request is sent to a server side, and resource updating information returned by the server side responding to the resource updating request is received; according to the resource updating information, a webpage resource updating package is downloaded from the server side; when the mobile terminal is started the next time under the mixed mode application, the downloaded webpage resource updating package is decompressed into the ROM of the mobile terminal; the webpage resources are read from the ROM and rendered. The invention further discloses the corresponding mixed model application, the mobile terminal comprising the mixed model application and a webpage resource upgrading system.

Description

Mixed mode applications, its web page resources upgrade method, mobile terminal and system
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of mixed mode applications, its web page resources upgrade method, mobile terminal and system.
Background technology
Mixed mode applications (HybridApp) combines the advantage of the good user-interaction experience of native applications (NativeApp) and the Cross-border congestion management advantage of web application (WebApp), it uses the API of operating system to create embedded HTML render engine by primary (Native) code, serve as the bridge of HTML and primary code, make HTML can access most of characteristic of mobile device.
The more common mode of the web page resources (HTML, JavaScript, CSS and multimedia file etc.) embedded in HybridApp has two kinds, one is that web page resources is stored in server end, and mobile terminal loads long-range resource file by Web control.When mobile terminal display application, required web page resources needs to obtain from server end in real time, and server end web page resources is more, loading slower.When different interfaces is accessed in mobile terminal, need downloading web pages resource again, during for the data that same showing interface is different, also need to reload interface from server end.Along with the lifting of application complexity, interface can get more and more, and will certainly expend the increasing flow of user.Because the interface resources of mobile terminal accessing is all stored in server end, when connecting without network, Mobile solution just cannot see any interface.
Another kind of mode is encapsulated in the application by the web page resources needed, web page resources packing is in the application under (as assert) catalogue, for security consideration, the operating system of mobile terminal is not to amendment and the erase right of these catalogues, therefore, web page resources original cannot covering this catalogue after server end downloading web pages resource, once there be upgrading, can only be realized by the upgrading of application.And scattered web page resources of packing in the application can take certain Installed System Memory, resource Bao Yue great, and the internal memory taken can be larger.
Summary of the invention
For this reason, the invention provides a kind of new mixed mode applications, its web page resources upgrade method, mobile terminal and system, to try hard to solve or at least alleviate Problems existing above.
According to an aspect of the present invention, a kind of web page resources upgrade method of mixed mode applications is provided, perform in the terminal, wherein the installation kit of mixed mode applications comprises the compressed package of web page resources, after mixed mode applications is installed to mobile terminal, web page resources is extracted on the ROM of mobile terminal, and upgrade method comprises: in predefined conditions, resource updates request is sent to server end, and the resource updates information that reception server end returns in response to resource updates request; According to resource updates information, from the renewal bag of server end downloading web pages resource; When mixed mode applications startup next time, the renewal bag of the web page resources of download is unziped on the ROM of mobile terminal; And from ROM, read web page resources play up.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, predetermined condition comprise mixed mode applications start time and start after every the schedule time.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, resource updates packets of information draws together latest edition and the download address of web page resources.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, resource updates information also comprises resource updates type, and resource updates type comprises full dose and upgrades and incremental update.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, also comprise: after on the ROM that the renewal bag of the web page resources by download unzips to mobile terminal, according to filename and the modification time of the current each resource file come into force, generate the first key; When mixed mode applications starts, according to filename and the modification time of the current each resource file come into force, generate the second key; Relatively whether the first key is consistent with the second key, if inconsistent, then determines that web page resources is tampered.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, also comprising: when determining that web page resources is tampered, again downloading up-to-date web page resources from server end.
Alternatively, in the web page resources upgrade method of mixed mode applications according to the present invention, also comprise: the business datum of buffer memory mixed mode applications in the terminal, for mixed mode applications when mobile terminal suspension, call the business datum in buffer memory.
According to an aspect of the present invention, a kind of mixed mode applications is provided, in the terminal resident, wherein the installation kit of mixed mode applications comprises the compressed package of web page resources, and after mixed mode applications is installed to mobile terminal, web page resources is extracted on the ROM of mobile terminal, application comprises: web page resources upgrades detection module, be suitable in predefined conditions, send resource updates request to server, and the resource updates information that reception server end returns in response to resource updates request; Web page resources download module, is suitable for according to resource updates information, from the renewal bag of server end downloading web pages resource; Resource bag decompression module, is suitable for, when mixed mode applications startup next time, unziping on the ROM of mobile terminal by the renewal bag of the web page resources of download; And web page resources rendering module, be suitable for from ROM, read web page resources and play up.
Alternatively, in mixed mode applications according to the present invention, predetermined condition comprise mixed mode applications start time and start after every the schedule time.
Alternatively, in mixed mode applications according to the present invention, resource updates packets of information draws together latest edition and the download address of web page resources.
Alternatively, in mixed mode applications according to the present invention, resource updates information also comprises resource updates type, and resource updates type comprises full dose and upgrades and incremental update.
Alternatively, in mixed mode applications according to the present invention, also comprise: the anti-tamper detection module of web page resources, after on the ROM being suitable for the renewal bag of the web page resources of download to unzip to mobile terminal, according to filename and the modification time of the current each resource file come into force, generate the first key; And when mixed mode applications starts, according to filename and the modification time of the current each resource file come into force, generate the second key, and whether compare the first key consistent with the second key, if inconsistent, then determine that web page resources is tampered.
Alternatively, in mixed mode applications according to the present invention, web page resources download module is also suitable for when determining that web page resources is tampered, and again downloads up-to-date web page resources from server end.
Alternatively, in mixed mode applications according to the present invention, also comprise: data cache module, be suitable for the business datum of buffer memory mixed mode applications in the terminal, for mixed mode applications when mobile terminal suspension, call the business datum in buffer memory.
According to another aspect of the present invention, provide a kind of mobile terminal, comprise any one mixed mode applications.
According to another aspect of the present invention, a kind of web page resources upgrade-system is provided, comprise server and mobile terminal as above, server end comprises: web page resources upgrading decision-making module, be suitable for the resource updates request sent according to mixed mode applications in mobile terminal, resource updates information is returned, for described mixed mode applications according to described resource updates information, from the renewal bag of server end downloading web pages resource to described mixed mode applications.
Alternatively, in web page resources upgrade-system according to the present invention, server end also comprises web page resources full dose bag release module and web page resources delta package release module, web page resources full dose bag release module is suitable for the full dose bag of publishing web page resource, and web page resources delta package release module is suitable for the delta package of publishing web page resource; Web page resources upgrading decision-making module is further adapted for: whether the difference according to the version number of the version number of mixed mode applications in the mobile terminal that carries in the resource updates request that mixed mode applications sends and the up-to-date mixed mode applications of server end is greater than first threshold, if, then returning resource updates type is that the resource updates information of full dose renewal is to mixed mode applications, otherwise returning resource updates type is that the resource updates information of incremental update is to mixed mode applications.
According to technical scheme of the present invention, the renewal bag of acquisition being placed in mobile terminal ROM, by loading the web page resources that web page resources in ROM comes into force under catalogue, providing the Consumer's Experience close to native applications, again can remote update as required.In addition, technical scheme of the present invention, provides anti-tamper detection, reduces mobile terminal and applies the security risk brought.Meanwhile, provide business datum buffer memory, meet the demand that user continues to operate in off-line case.
Accompanying drawing explanation
In order to realize above-mentioned and relevant object; combine description below and accompanying drawing herein to describe some illustrative aspect; these aspects indicate the various modes can putting into practice principle disclosed herein, and all aspects and equivalent aspect thereof are intended to fall in the scope of theme required for protection.Read detailed description below in conjunction with the drawings, above-mentioned and other object of the present disclosure, Characteristics and advantages will become more obvious.Throughout the disclosure, identical Reference numeral is often referred to for identical parts or element.
Fig. 1 shows the structured flowchart of a mobile terminal 100;
Fig. 2 shows the schematic diagram of the resource graded system of mixed mode applications according to an embodiment of the invention; And
Fig. 3 shows the process flow diagram of the resource graded method 300 of mixed mode applications according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 is the structured flowchart of mobile terminal 100.As shown in Figure 1, mobile terminal 100 can comprise memory interface 102, one or more data processor, image processor and/or CPU (central processing unit) 104, and peripheral interface 106.
Memory interface 102, one or more processor 104 and/or peripheral interface 106 both can be discrete components, also can be integrated in one or more integrated circuit.In the mobile terminal 100, various element can be coupled by one or more communication bus or signal wire.Sensor, equipment and subsystem can be coupled to peripheral interface 106, to help to realize several functions.Such as, motion sensor 110, optical sensor 112 and range sensor 114 can be coupled to peripheral interface 106, to facilitate the functions such as orientation, illumination and range finding.Other sensors 116 can be connected with peripheral interface 106 equally, such as positioning system (such as GPS), temperature sensor, biometric sensor or other sensor devices, can help thus to implement relevant function.
Camera sub-system 120 and optical sensor 122 may be used for the realization of the camera function of convenient such as recording photograph and video clipping, and wherein said camera sub-system and optical sensor can be such as charge-coupled image sensor (CCD) or complementary metal oxide semiconductor (CMOS) (CMOS) optical sensor.
Can help realize communication function by one or more radio communication subsystem 124, wherein radio communication subsystem can comprise radio-frequency transmitter and transmitter and/or light (such as infrared) Receiver And Transmitter.The particular design of radio communication subsystem 124 and embodiment can depend on one or more communication networks that mobile terminal 100 is supported.Such as, mobile terminal 100 can comprise be designed to support GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and Bluebooth tMthe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, such as, to help the function of implementing to enable voice, speech recognition, speech reproduction, digital recording and telephony feature.
I/O subsystem 140 can comprise touch screen controller 142 and/or other input control devices 144 one or more.
Touch screen controller 142 can be coupled to touch-screen 146.For example, what this touch-screen 146 and touch screen controller 142 can use any one in multiple touch-sensing technology to detect to carry out with it contact and movement or time-out, and wherein detection technology is including, but not limited to capacitive character, resistive, infrared and surface acoustic wave technique.
Other input control devices 144 one or more can be coupled to other input/control devicess 148, the indication equipment of such as one or more button, rocker switch, thumb wheel, infrared port, USB port and/or stylus and so on.One or more button (not shown) can comprise the up/down button for control loudspeaker 128 and/or microphone 130 volume.
Memory interface 102 can be coupled with storer 150.This storer 150 can comprise high-speed random access memory and/or nonvolatile memory, such as one or more disk storage device, one or more optical storage apparatus, and/or flash memories (such as NAND, NOR).
Storer 150 can store operating system 152, the operating system of such as Android, IOS or WindowsPhone and so on.This operating system 152 can comprise the instruction of the task of depending on hardware for the treatment of basic system services and execution.Storer 150 can also store various application 154.When mobile device runs, meeting load operation system 152 from storer 150, and performed by processor 104.Application 154 operationally, also can load, and be performed by processor 104 from storer 150.Application 154 operates on operating system, the function that the various user of the Interface realization utilizing operating system and bottom hardware to provide expects, as instant messaging, web page browsing, pictures management etc.Application can provide independent of operating system, also can be that operating system carries.
In various application 154, one is wherein applied as mixed type application 200, this applies storage on mobile terminal ROM, when web page resources has a renewal, after server end is issued and is upgraded bag, remote update web page resources on mobile terminal ROM, also adds the anti-tamper detection of web page resources and business datum caching mechanism simultaneously.
Fig. 2 is the schematic diagram of the resource graded system 200 of mixed mode applications according to an embodiment of the invention.Be described below in conjunction with Fig. 2.
In view of the limitation of mobile terminal, APP on mobile terminal applies (NativeApp) by localization, to the application (WebApp) based on webpage, to mixed type application (HybridAPP), different application has respective limitation.Based on this present invention, the application of a kind of mixed type is disclosed.
Mixed type application (HybridAPP) refers to the App between both localization application (NativeApp), web application (WebApp), although it looks is a NativeApp, but only have a UIWebView, that the inside is accessed is a WebApp, as palm Baidu and Taobao customer end A ndroid version, the inside is the web page resources of encapsulation.
The installation kit of mixed mode applications comprises the compressed package of web page resources, and described installation kit is stored in server end.When mobile terminal is downloaded first and installs mixed mode applications, under the installation kit of mixed mode applications can leave the download catalogue of mobile terminal in.After mixed mode applications is installed to mobile terminal, above-mentioned installation kit can under solution be pressed in the catalogue that on mobile terminal ROM, web page resources comes into force.Mixed mode applications is from server Gains resources lastest imformation, mixed mode applications according to resource updates information from mobile terminal download catalogue is wrapped in the renewal that server end downloads corresponding web page resources, web page resources be extracted mobile terminal ROM under the catalogue that comes into force of web page resources, mixed mode applications reads web page resources and plays up.Read only memory ROM (Read-OnlyMemory) is a kind of solid state semiconductor memory that can only read prior stored data, in ROM, stored data is stablized, after mobile terminal power-off, stored data also can not change, its structure is simpler, read more convenient, be thus usually used in storing various fixed routine and data.
The solution of the present invention is specific as follows:
As shown in Figure 2, mixed mode applications comprises: web page resources upgrades detection module 210, web page resources download module 220, upgrades bag decompression module 230, web page resources rendering module 240, the anti-tamper detection 250 of web page resources and data cache module 260.
Web page resources upgrades detection module 210 can in predefined conditions, such as, when mixed mode applications starts, or after starting every the schedule time (as 2 hours).Send resource updates request to server end, in resource updates request, generally comprise the client identity (SID) of mixed mode applications, version number, the descriptor of this application and update time etc.
Server end comprises web page resources upgrading decision-making module, the resource updates request that web page resources upgrading decision-making module sends according to mixed mode applications in mobile terminal, resource updates information is returned to mixed mode applications, for mixed mode applications according to resource updates information, from the renewal bag of server end downloading web pages resource.Resource updates information generally comprises resource updates type, and resource updates type comprises such as full dose and upgrades and incremental update.Resource updates information can also comprise latest edition and the download address of web page resources.Wherein, the latest edition of web page resources corresponds to the version such as carrying out the renewal bag of full dose renewal in resource updates type, the corresponding address corresponding to the renewal bag that such as full dose upgrades of download address.
According to a kind of embodiment, server end also comprises web page resources full dose bag release module and web page resources delta package release module, web page resources full dose bag release module is used for the full dose bag of publishing web page resource, and web page resources delta package release module is used for the delta package of publishing web page resource.Web page resources upgrading decision-making module, according to the client identity (SID) in the resource updates request received, judges that client is by having permission down loading updating bag.If client has permission down loading updating bag.Further, according to the version number of mobile terminal mixed mode applications, judge whether the difference of the version number of the mixed mode applications up-to-date with server end is greater than first threshold.If the difference of the version number of the version number of mobile terminal mixed mode applications and the up-to-date mixed mode applications of server end is greater than first threshold (such as 1), then returning resource updates type is that the resource updates information of full dose updating type is to mobile terminal.Otherwise returning resource updates type is that the resource updates information of incremental update type is to mobile terminal.
Web page resources download module 220 according to the resource updates information obtained from server end, from the renewal bag of server end downloading web pages resource.Mobile terminal downloads the renewal bag of corresponding web page resources according to resource updates information.Under the renewal bag of web page resources downloaded generally is placed on the download catalogue of mobile terminal.Web page resources download module 220 supports breakpoint transmission function, if due to network reason, the renewal bag of web page resources has not been downloaded, then record the position that this interrupts, by the time network recovery normal after, found the interruption position of last registration by seek operation, continue to download.Web page resources upgrades bag and downloads successfully, does not temporarily come into force, under being placed on the download catalogue of mobile terminal, and global variable isUpdate is set to true, upgrades web page resources when starting for next mixed mode applications.Otherwise isUpdate is set to false.
During mixed mode applications startup next time, if global variable isUpdate is true, upgrades bag decompression module 230 and the renewal bag of the web page resources of download is unziped on the ROM of mobile terminal.Meanwhile, the catalogue that mixed mode applications generating web page resource comes into force, the operating system in mobile terminal has amendment to this catalogue and erase right, under the resource after decompress(ion) is placed on the catalogue of above-mentioned generation.If upgrade the failure of bag decompression module 230 decompress(ion), then remove the content under the catalogue that decompress(ion) comes into force, from mobile terminal download catalogue, obtain installation kit decompress(ion) come into force, avoid different editions cross reference to cause using abnormal.
The renewal bag of above-mentioned web page resources unzips to after under the catalogue that the web page resources in mobile terminal ROM comes into force, and Internet resources anti-tamper detection module 250 according to the filename of the current each resource file come into force and modification time, can generate the first key.When mixed mode applications startup next time, the anti-tamper detection module of Internet resources 250, according to the filename of the current each resource file come into force and modification time, generates the second key.The algorithm of described generation first key and the second key generally adopts md5 encryption algorithm, first key and the second key are character string forms, resource file can sort according to modification time, generates such as file1|date1, file2|date2 ... the form of fileN|dateN.
The anti-tamper detection module 250 of Internet resources, according to the first key generated and the second key, compares the first key whether consistent with the second key.If the first key and the second key inconsistent, then determine that web page resources is tampered, remove the resource that is tampered.Instruction web page resources download module 220 downloads up-to-date web page resources from server end again.Avoid artificial on mobile terminals by mode attack server ends such as script injections, reduce mobile terminal and apply the security risk brought.
If the first key and the second key agreement, then normally start mixed mode applications.Web page resources rendering module 240 reads the enabling disclosure that web page resources in ROM comes into force under catalogue and plays up.When playing up up-to-date web page resources, need to call ClearCache operation, remove WebView buffer memory, avoid buffer memory to affect up-to-date resource and come into force.
According to a kind of embodiment, in mixed mode applications, also comprise data cache module 260, in the terminal the business datum of buffer memory mixed mode applications, for mixed mode applications when mobile terminal suspension, call the business datum in buffer memory.Business datum is stored in SQLite database, and SQLite database purchase is in mobile terminal random access memory ram.Random access memory (RandomAccessMemory, RAM) also known as work " random access memory ", it is the internal storage directly exchanging data with CPU, also main memory (or internal memory) is, it can be read and write at any time, and speed is very fast, usually used as operating system or other are just at the ephemeral data storage medium of active program.The reading of SQLite database and write are by Native codes implement, and by the form that encapsulates plug-in unit for web page resources provides interface, namely web page resources can call by JavaScript mode the buffer memory that plug-in unit realizes business datum.Not only can show the data of last update in this way when connecting without network, strengthening Consumer's Experience, meet the demand that user continues to operate in off-line case.On the other hand, can the business datum size of buffer memory not limit, the data for any type are all applicable.
According to technical scheme of the present invention, the renewal bag of acquisition being placed in mobile terminal ROM, by loading the web page resources that web page resources in ROM comes into force under catalogue, providing the Consumer's Experience close to native applications, again can remote update as required.In addition, technical scheme of the present invention, provides anti-tamper detection, reduces mobile terminal and applies the security risk brought.Meanwhile, provide business datum buffer memory, meet the demand that user continues to operate in off-line case.
Fig. 3 shows a kind of according to an exemplary embodiment of the present invention process flow diagram of web page resources upgrade method 300 of mixed mode applications.Wherein, the web page resources upgrade method of mixed mode applications performs at mobile terminal, and the installation kit of mixed mode applications comprises the compressed package of web page resources, and after mixed mode applications is installed to mobile terminal, described web page resources is extracted on the ROM of mobile terminal.This upgrade method starts from step S310.
In step S310, in predefined conditions, resource updates request is sent to server end.Wherein, predetermined condition generally comprise mixed mode applications start time and start after every the schedule time.Resource updates request generally comprises the descriptor and update time etc. of the client identity (SID) of mixed mode applications, version number, this application.
Subsequently, in step s 320, reception server end resource response update request and the resource updates information returned.According to a kind of embodiment, resource updates packets of information draws together latest edition and the download address of web page resources.Resource updates information also comprises resource updates type, and resource updates type comprises full dose and upgrades and incremental update.
Subsequently, in step S330, according to the resource updates information obtained in step S320, from the renewal bag of server end downloading web pages resource.Such as, the resource updates type of acquisition is the resource updates information of full dose updating type, then obtain full dose according to download address and upgrade bag.
When mixed mode applications starts next time, in step S340, under the catalogue that on the ROM renewal bag of the web page resources of download being unziped to mobile terminal, web page resources comes into force.
Subsequently, in step S350, determine whether web page resources is tampered.According to a kind of embodiment, after on the ROM that the renewal bag of the web page resources by download unzips to mobile terminal, according to filename and the modification time of the current each resource file come into force, generate the first key.When described mixed mode applications starts, according to filename and the modification time of the current each resource file come into force, generate the second key.Relatively whether the first key is consistent with the second key.If the first key and the second key inconsistent, then determine that web page resources is tampered, remove the web page resources that comes into force, again download up-to-date web page resources from server.
If the first key and the second key agreement, then in step S360, from ROM, read web page resources play up.
According to a kind of embodiment, the business datum of mixed mode applications described in buffer memory in the terminal, for mixed mode applications when mobile terminal suspension, calls the business datum in buffer memory.
According to technical scheme of the present invention, the renewal bag of acquisition being placed in mobile terminal ROM, by loading the web page resources that web page resources in ROM comes into force under catalogue, providing the Consumer's Experience close to native applications, again can remote update as required.In addition, technical scheme of the present invention, provides anti-tamper detection, reduces mobile terminal and applies the security risk brought.Meanwhile, provide business datum buffer memory, meet the demand that user continues to operate in off-line case.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires than the feature more multiple features clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are to be understood that the module of the equipment in example disclosed herein or unit or assembly can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned in one or more equipment different from the equipment in this example.Module in aforementioned exemplary can be combined as a module or can be divided into multiple submodule in addition.
A9: the mixed mode applications as described in A8, wherein, described predetermined condition comprise mixed mode applications start time and start after every the schedule time.A10: the mixed mode applications as described in A8, wherein, described resource updates packets of information draws together latest edition and the download address of web page resources.A11: the mixed mode applications as described in A10, wherein, described resource updates information also comprises resource updates type, and described resource updates type comprises full dose and upgrades and incremental update.A12: the mixed mode applications as described in A8, wherein, also comprise: the anti-tamper detection module of web page resources, be suitable for after on the ROM upgrading bag decompression module and to be unziped to by the renewal bag of the web page resources of download mobile terminal, according to filename and the modification time of the current each resource file come into force, generate the first key; And when described mixed mode applications starts, according to filename and the modification time of the current each resource file come into force, generate the second key, and whether compare the first key consistent with the second key, if inconsistent, then determine that web page resources is tampered.A13: the mixed mode applications as described in A8, wherein, described web page resources download module is also suitable for when determining that web page resources is tampered, and again downloads up-to-date web page resources from server end.A14: the mixed mode applications as described in A8, wherein, also comprises: data cache module, is suitable for the business datum of mixed mode applications described in buffer memory in the terminal, for mixed mode applications when mobile terminal suspension, calls the business datum in buffer memory.
B17: the system as described in B16, described server end also comprises web page resources full dose bag release module and web page resources delta package release module, described web page resources full dose bag release module is suitable for the full dose bag of publishing web page resource, and described web page resources delta package release module is suitable for the delta package of publishing web page resource;
Described web page resources upgrading decision-making module is further adapted for: whether the difference according to the version number of the version number of mixed mode applications in the mobile terminal carried in the resource updates request that mixed mode applications sends and the up-to-date mixed mode applications of server end is greater than first threshold, if, then returning resource updates type is that the resource updates information of full dose renewal is to mixed mode applications, otherwise returning resource updates type is that the resource updates information of incremental update is to mixed mode applications.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
In addition, some in described embodiment are described as at this can by the processor of computer system or the method implemented by other device performing described function or the combination of method element.Therefore, there is the device of processor formation for implementing the method or method element of the necessary instruction for implementing described method or method element.In addition, the element described herein of device embodiment is the example as lower device: this device is for implementing the function performed by the element of the object in order to implement this invention.
As used in this, unless specifically stated so, use ordinal number " first ", " second ", " the 3rd " etc. to describe plain objects and only represent the different instances relating to similar object, and be not intended to imply the object be described like this must have the time upper, spatially, sequence aspect or in any other manner to definite sequence.
Although the embodiment according to limited quantity describes the present invention, benefit from description above, those skilled in the art understand, in the scope of the present invention described thus, it is contemplated that other embodiment.In addition, it should be noted that the language used in this instructions is mainly in order to object that is readable and instruction is selected, instead of select to explain or limiting theme of the present invention.Therefore, when not departing from the scope and spirit of appended claims, many modifications and changes are all apparent for those skilled in the art.For scope of the present invention, be illustrative to disclosing of doing of the present invention, and nonrestrictive, and scope of the present invention is defined by the appended claims.

Claims (10)

1. the web page resources upgrade method of a mixed mode applications, perform in the terminal, the installation kit of wherein said mixed mode applications comprises the compressed package of web page resources, after described mixed mode applications is installed to mobile terminal, described web page resources is extracted on the ROM of mobile terminal, and described upgrade method comprises:
In predefined conditions, send resource updates request to server end, and the resource updates information that reception server end returns in response to described resource updates request;
According to described resource updates information, from the renewal bag of server end downloading web pages resource;
When described mixed mode applications startup next time, the renewal bag of the web page resources of download is unziped on the ROM of mobile terminal; And
From ROM, read web page resources play up.
2. upgrade method as claimed in claim 1, wherein, described predetermined condition comprise when mixed mode applications starts and after starting every the schedule time.
3. upgrade method as claimed in claim 1, wherein, described resource updates packets of information draws together latest edition and the download address of web page resources.
4. upgrade method as claimed in claim 3, wherein, described resource updates information also comprises resource updates type, and described resource updates type comprises full dose and upgrades and incremental update.
5. upgrade method as claimed in claim 1, wherein, also comprises:
After on the ROM that the renewal bag of the web page resources by download unzips to mobile terminal, according to filename and the modification time of the current each resource file come into force, generate the first key;
When described mixed mode applications starts, according to filename and the modification time of the current each resource file come into force, generate the second key;
Relatively whether the first key is consistent with the second key, if inconsistent, then determines that web page resources is tampered.
6. upgrade method as claimed in claim 5, wherein, also comprising: when determining that web page resources is tampered, again downloading up-to-date web page resources from server end.
7. upgrade method as claimed in claim 1, wherein, also comprises:
The business datum of mixed mode applications described in buffer memory in the terminal, for mixed mode applications when mobile terminal suspension, calls the business datum in buffer memory.
8. a mixed mode applications, in the terminal resident, the installation kit of wherein said mixed mode applications comprises the compressed package of web page resources, after described mixed mode applications is installed to mobile terminal, described web page resources is extracted on the ROM of mobile terminal, and described application comprises:
Web page resources upgrades detection module, is suitable in predefined conditions, sends resource updates request to server, and the resource updates information that reception server end returns in response to described resource updates request;
Web page resources download module, is suitable for according to described resource updates information, from the renewal bag of server end downloading web pages resource;
Upgrade bag decompression module, be suitable for, when mixed mode applications startup next time, the renewal bag of the web page resources of download being unziped on the ROM of mobile terminal; And
Web page resources rendering module, is suitable for from ROM, read web page resources and plays up.
9. a mobile terminal, comprises mixed mode applications as claimed in claim 8.
10. a web page resources upgrade-system, comprise server end and mobile terminal as claimed in claim 9, server end comprises:
Web page resources upgrading decision-making module, be suitable for the resource updates request sent according to mixed mode applications in mobile terminal, resource updates information is returned, for described mixed mode applications according to described resource updates information, from the renewal bag of server end downloading web pages resource to described mixed mode applications.
CN201510550143.4A 2015-09-01 2015-09-01 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system Pending CN105138376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510550143.4A CN105138376A (en) 2015-09-01 2015-09-01 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510550143.4A CN105138376A (en) 2015-09-01 2015-09-01 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system

Publications (1)

Publication Number Publication Date
CN105138376A true CN105138376A (en) 2015-12-09

Family

ID=54723733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510550143.4A Pending CN105138376A (en) 2015-09-01 2015-09-01 Mixed model application, webpage resource upgrading method thereof, mobile terminal and system

Country Status (1)

Country Link
CN (1) CN105138376A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577813A (en) * 2015-12-31 2016-05-11 北京奇艺世纪科技有限公司 Update method and system for web hybrid application
CN106020906A (en) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 Client side hot updating method based on Cordova
CN106131109A (en) * 2016-06-08 2016-11-16 北京京东尚科信息技术有限公司 The method and apparatus of any cost caching in the embedded webpage of APP is realized based on http protocol
CN106897162A (en) * 2017-02-23 2017-06-27 腾讯科技(深圳)有限公司 The communication mode system of selection of component, communication system and mobile terminal in a kind of application
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN107168999A (en) * 2017-03-30 2017-09-15 咪咕数字传媒有限公司 A kind of method for updating pages and device
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN108008966A (en) * 2017-12-04 2018-05-08 山东浪潮通软信息科技有限公司 A kind of resource regeneration method and system
CN108376172A (en) * 2018-02-27 2018-08-07 北京金和网络股份有限公司 The webpage Localization methodologies of mobile client
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium
CN110290104A (en) * 2019-05-09 2019-09-27 北京善义善美科技有限公司 The safety communicating method of embedded webpage and the application in
CN110308914A (en) * 2018-03-27 2019-10-08 广东神马搜索科技有限公司 Upgrade processing method, device, equipment, system and computer readable storage medium
CN111078257A (en) * 2019-12-19 2020-04-28 杭州安恒信息技术股份有限公司 Loading method and related device of H5 application package

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130042232A1 (en) * 2011-08-08 2013-02-14 Ricoh Company, Ltd. Device, information processing method, and computer-readable storage medium
CN103092665A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method
CN103731447A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method and system for querying data
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130042232A1 (en) * 2011-08-08 2013-02-14 Ricoh Company, Ltd. Device, information processing method, and computer-readable storage medium
CN103731447A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method and system for querying data
CN103092665A (en) * 2013-03-01 2013-05-08 畅捷通信息技术股份有限公司 Immediate updating device and immediate updating method
CN104657170A (en) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 Data updating method, device and system
CN104572222A (en) * 2015-02-02 2015-04-29 深圳市新联锋科技有限公司 Main program upgrading method and device for supporting upgrading of main program
CN104778063A (en) * 2015-04-16 2015-07-15 小米科技有限责任公司 Method and device for updating resource

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈德春: "《Android优化技术详解》", 30 April 2014, 清华大学出版社 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933614B (en) * 2015-12-30 2020-12-22 阿里巴巴(中国)有限公司 Single-page application upgrading method and device
CN106933614A (en) * 2015-12-30 2017-07-07 广州爱九游信息技术有限公司 A kind of single-page application upgrade method and device
CN105577813B (en) * 2015-12-31 2018-08-14 北京奇艺世纪科技有限公司 A kind of update method and system of web mixing application
CN105577813A (en) * 2015-12-31 2016-05-11 北京奇艺世纪科技有限公司 Update method and system for web hybrid application
CN106020906A (en) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 Client side hot updating method based on Cordova
CN106131109A (en) * 2016-06-08 2016-11-16 北京京东尚科信息技术有限公司 The method and apparatus of any cost caching in the embedded webpage of APP is realized based on http protocol
CN106131109B (en) * 2016-06-08 2019-07-30 北京京东尚科信息技术有限公司 The method and apparatus that APP embeds any cost caching in webpage are realized based on http protocol
CN106897162A (en) * 2017-02-23 2017-06-27 腾讯科技(深圳)有限公司 The communication mode system of selection of component, communication system and mobile terminal in a kind of application
CN107168999A (en) * 2017-03-30 2017-09-15 咪咕数字传媒有限公司 A kind of method for updating pages and device
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
CN108008966A (en) * 2017-12-04 2018-05-08 山东浪潮通软信息科技有限公司 A kind of resource regeneration method and system
CN108008966B (en) * 2017-12-04 2020-11-03 浪潮通用软件有限公司 Resource updating method and system
CN108376172A (en) * 2018-02-27 2018-08-07 北京金和网络股份有限公司 The webpage Localization methodologies of mobile client
CN110308914B (en) * 2018-03-27 2023-08-22 阿里巴巴(中国)有限公司 Upgrade processing method, device, equipment, system and computer readable storage medium
CN110308914A (en) * 2018-03-27 2019-10-08 广东神马搜索科技有限公司 Upgrade processing method, device, equipment, system and computer readable storage medium
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110058873B (en) * 2019-03-12 2021-09-17 天津五八到家科技有限公司 Application page updating method, device, equipment and storage medium
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium
CN110290104A (en) * 2019-05-09 2019-09-27 北京善义善美科技有限公司 The safety communicating method of embedded webpage and the application in
CN111078257A (en) * 2019-12-19 2020-04-28 杭州安恒信息技术股份有限公司 Loading method and related device of H5 application package
CN111078257B (en) * 2019-12-19 2023-09-08 杭州安恒信息技术股份有限公司 H5 application package loading method and related device

Similar Documents

Publication Publication Date Title
CN105138376A (en) Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
JP5658283B2 (en) Application operating method, apparatus and system
US20100093396A1 (en) Systems and methods for storing or performing functions within removable memory, such as a subscriber identity module of a mobile device
CN111666497B (en) Application program loading method and device, electronic equipment and readable storage medium
CN104461504A (en) Managing method of terminal application program
CN110865837B (en) Method and terminal for system upgrade
CN111427596B (en) Software upgrading method and device and terminal equipment
CN111158597A (en) Metadata reading method and device, electronic equipment and storage medium
KR20180038482A (en) Smart card read / write method and device
CN105657049A (en) Incremental data synchronization method and device and mobile terminal
CN104461505A (en) Terminal
CN107632872B (en) Desktop layout processing method, user data processing method and device and computer storage medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
US10848558B2 (en) Method and apparatus for file management
CN110874298B (en) Request data storage method and terminal equipment
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
CN105491129A (en) Page loading progress display method and device and mobile terminal
CN112988169A (en) Application installation method and device, terminal equipment, server and storage medium
CN110806913A (en) Webpage screenshot method, device and equipment
CN111443992B (en) Docker mirror image difference derivation method, computer storage medium and electronic device
CN110489138B (en) Application updating method, device and storage medium
CA2824868C (en) Variants of files in a file system
CN111338655A (en) Installation package distribution method and system
CN109002710B (en) Detection method, detection device and computer readable storage medium
KR20190098516A (en) Method for managing data related to application and electronic device thereof

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: 20151209