CN106325924A - EPG hot update system and method - Google Patents

EPG hot update system and method Download PDF

Info

Publication number
CN106325924A
CN106325924A CN201610686549.XA CN201610686549A CN106325924A CN 106325924 A CN106325924 A CN 106325924A CN 201610686549 A CN201610686549 A CN 201610686549A CN 106325924 A CN106325924 A CN 106325924A
Authority
CN
China
Prior art keywords
index file
file
epg
packing
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610686549.XA
Other languages
Chinese (zh)
Other versions
CN106325924B (en
Inventor
李璞
潘晓峰
胡建平
周福凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Androidmov Technology Co Ltd
Original Assignee
Chengdu Androidmov Technology 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 Chengdu Androidmov Technology Co Ltd filed Critical Chengdu Androidmov Technology Co Ltd
Priority to CN201610686549.XA priority Critical patent/CN106325924B/en
Publication of CN106325924A publication Critical patent/CN106325924A/en
Application granted granted Critical
Publication of CN106325924B publication Critical patent/CN106325924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an EPG hot update system and method. The EPG hot update system comprises a JS packing system, a difference system, a version management system and an index file loading system, wherein the JS packing system comprises a JS running environment edited by JS codes, and is used for packing an index file and resource files and updating the packed index file and the packed resource files to a server; when apk is firstly packed, a default index file is generated, and the apk comprises an associated layout assembly and a path pointing a new index file; the difference system compares a local index file and local resource files with the packed index file and the packed resource files, and repeatedly packs a new added index file and resource files, thereby forming the new index file; the version management system performs version control according to version iteration; and the index file loading system controls to load and display the new index file when update is needed, which does not influence the starting speed. By utilizing the EPG hot update system and method, dynamic modification on a UI layout can be achieved.

Description

A kind of EPG heat updates system and method
Technical field
The present invention relates to EPG more frontier, be specifically related to a kind of EPG heat and update system and method.
Background technology
Existing main flow heat updates patch framework, it is allowed to APP is the bug in repair line in the case of released version the most again. First knowing that bug, amendment generate a patch, in the case of version number is identical, request server has patch, under will going Carry.If version number is different, the patch of acquiescence can be deleted.Load to call by amendment internalist methodology and sequentially complete patch Loading completes. and cardinal principle is as follows:
It is understood that the class that Java operationally loads correspondence is realized by ClassLoader, ClassLoader itself Be one abstract come, Android uses PathClassLoader class as the Classloader of the acquiescence of Android, What PathClassLoader realized in fact is exactly simple loading classes file from file system.PathClassLoade itself Being inherited from BaseDexClassLoader, BaseDexClassLoader and rewritten findClass method, the method is The core of ClassLoader.FindClass method is entrusted and is given pathList object by BaseDexClassLoader FindClass method, pathList to as if in the constructed fuction of BaseDexClassLoader new out, its class Type is DexPathList.DexElements list in DexPathList object is the core that class loads, and a class is such as Fruit can be successfully loaded, then its dex is bound to occur in the dex file corresponding to dexElements, and The order occurred in dexElements is the most critically important, and the dex above occurred at dexElements can preferentially be loaded, by adjusting Carrying out loading classes by the loadClassBinaryName method on element.dexFile object, once Class is loaded successfully, Will return immediately.
Realize heat renewal, it is necessary to operationally go to change PathClassLoader.pathList.dexElements, Owing to these attributes are all private, it is therefore desirable to revised by reflection.It addition, the dex file institute constructing oneself is right The when of the dexElements array answered, one is had to compare the mode resorted to trickery to serve oneself, it is simply that by one DexClassLoade of structure Object loads our dex file, and calls a dexClassLoader.loadClass (dummyClassName); Method, so, in dexClassLoader.pathList.dexElements, will comprise our dex, by handle DexClassLoader.pathList.dexElements is inserted into system default Before classLoader.pathList.dexElements list, it is possible to allow System Priority load the class in our dex, Thus realize heat renewal.
Existing method deficiency is:
1. pair toggle speed slightly has an impact;
2. UI layout can not be made dynamically amendment;
3., when repeatedly patch installing, patch order may be chaotic;
4. different chip solution may need different patches.
Summary of the invention
The present invention is to solve that above-mentioned technical problem provides a kind of hot updating device of EPG and method.
The present invention is achieved through the following technical solutions:
EPG heat updates system, including:
JS packaging system, including by the JS running environment of JS written in code, be used for packing index file and resource file upload Server, generates the index file of acquiescence when packing apk first, and described apk includes the layout component being correlated with and points to new The path of index file;
Differential system, the local index file of contrast and the index file of resource file and packing and resource file, repack The index file being newly added and resource file, constitute new index file;
Edition management system, carries out Version Control according to the iteration of version;
Index file loading system, when needs update, controlled loading shows new index file.
Present invention aim at breaking the primary development mode of original android, utilize js code to carry out phase as desired Layout, the logic closed are write.Wherein, layout component includes Service Component and flexbox box model layout.JS packaging system Js running environment is by js written in code, it is therefore an objective to the js code in parsing project, and coordinates the jar bag in we apk The primary code of android and os file render we need display ui interface.Utilizing this device, it can be the most more In the case of new apk file upgrading apk, the renewal/code logic including ui updates.
Reach dynamically to update, be then by the way of patch, dynamically add renewal, use this device, remain logical Crossing apk to start normally, then reload index file, therefore toggle speed is several with the apk speed not being updated As.
Use this device, then can carry out view and revise dynamically.Ultimate principle: java layer, passes through JavaScriptModule Interface class definition communication means, and unify in agent intercepts class JavaScriptModuleInvocationHandler Process all communication request being sent to Javascript.C++ layer: OnLoad is then the call entry of jni layer, have registered all of Native method, its intrinsic call is then completed by CountableBridge.Javascript layer: BatchedBridge is the call entry of Javascript layer, and when receiving communication request, mapping table to be first passed through confirms concrete Solicited message, then confirm whether Javascript assembly can be called, complete to perform by apply mode the most again.
Use this device, then can carry out the iteration of version by generating the index page.Successive ignition, then from newly-generated newly Index file, will not confusion reigned phenomenon.
Use this device, be then unified for all chip boxes, it is not necessary to the patch for certain version of having an injection, only Need to generate index file.Apk only loads index file, and index file is then to be write by javaScript, and it is permissible For all of chip box, therefore need not beat multiple patches.
As preferably, described edition management system is when to iteration Version Control, and request server downloads new index literary composition Part, if failed download or decompressing files are impaired, then stop heat and updates;If current version has great bug, then change server and connect Mouth data, do not carry out re-downloading and returning to the version of last time.
A kind of hot update method of EPG, comprises the following steps:
JS packaging system pack first apk and generate acquiescence index file;
Detection current version updates the need of heat;
If desired heat updates, JS topology file;
JS packaging system packing index file and resource file;
Index file and the resource file of packing are contrasted with local index file and resource file, repacks and be newly added Index file and resource file, constitute new index file;
Load and show new index file.
As preferably, described JS packaging system includes by the JS running environment of JS written in code.
As preferably, described layout component includes Service Component and flexbox box model layout.
As preferably, described Service Component includes figure chip module, video component, character component, choice box assembly and drop-down Frame assembly.
The present invention compared with prior art, at least has such advantages as and beneficial effect:
1, using the hot updating device of EPG and the method for the present invention, it is on toggle speed no impact;And can realize UI layout is moved State is revised.
2, using the hot updating device of EPG and the method for the present invention, its patch will not be affected by chip solution, and repeatedly be beaten During patch, patch order will not occur confusion.
Detailed description of the invention
Apparatus and method of the present invention supports all mobile phones, Set Top Box and Web TV etc..For making the purpose of the present invention, skill Art scheme and advantage are clearer, and below in conjunction with embodiment, the present invention is described in further detail, and the present invention shows Meaning property embodiment and explanation thereof are only used for explaining the present invention, not as a limitation of the invention.
Embodiment 1
EPG heat updates system, including JS packaging system, differential system, edition management system and index file loading system;Its In,
Described JS packaging system includes packing first apk, generates the index file of acquiescence, the JS of JS written in code run ring Border, be used for packing index file and resource file upload server, and described apk includes layout component and the sensing being correlated with The path of new index file;
Described differential system contrasts local index file and the index file of resource file and packing and resource file, again beats Wrap the index file and resource file being newly added, constitute new index file;
Described edition management system carries out Version Control according to the iteration of version;
Described index file loading system is when needs update, and controlled loading shows new index file.
Described edition management system is when to iteration Version Control, and request server downloads new index file, if downloading Failure or decompressing files are impaired, then stop heat and update;If current version has great bug, then change server interface data, no Carry out re-downloading and returning to the version of last time.
Embodiment 2
A kind of hot update method of EPG, comprises the following steps:
JS packaging system pack first apk time generate acquiescence index file;
Detection current version updates the need of heat;
If desired heat updates, JS topology file;
JS packaging system packing index file and resource file;
Index file and the resource file of packing are contrasted with local index file and resource file, repacks and be newly added Index file and resource file, constitute new index file;
Load and show new index file.
Described JS packaging system includes by the JS running environment of JS written in code.
Described layout component includes Service Component and flexbox box model layout.
Described Service Component includes figure chip module, video component, character component, choice box assembly and combobox assembly.
Above-described detailed description of the invention, has been carried out the purpose of the present invention, technical scheme and beneficial effect further Describe in detail, be it should be understood that the detailed description of the invention that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. done, all should comprise Within protection scope of the present invention.

Claims (6)

1.EPG heat updates system, it is characterised in that: include JS packaging system, differential system, edition management system and index literary composition Part loading system;Wherein,
Described JS packaging system includes by the JS running environment of JS written in code, is used for packing index file and resource file also Upload server, generates the index file of acquiescence when packing apk first, and described apk includes the layout component being correlated with and refers to Path to new index file;
Described differential system contrasts local index file and the index file of resource file and packing and resource file, again beats Wrap the index file and resource file being newly added, constitute new index file;
Described edition management system carries out Version Control according to the iteration of version;
Described index file loading system is when needs update, and controlled loading shows new index file.
EPG heat the most according to claim 1 updates system, it is characterised in that: described edition management system is to iteration version During this control, request server downloads new index file, if failed download or decompressing files are impaired, then stop heat and updates; If current version has great bug, then change server interface data, do not carry out re-downloading and returning to the version of last time.
3. the hot update method of EPG, it is characterised in that comprise the following steps:
JS packaging system pack first apk time generate acquiescence index file;
Detection current version updates the need of heat;
If desired heat updates, JS topology file;
JS packaging system packing index file and resource file;
Index file and the resource file of packing are contrasted with local index file and resource file, repacks and be newly added Index file and resource file, constitute new index file;
Load and show new index file.
A kind of hot update method of EPG the most according to claim 3, it is characterised in that: described JS packaging system includes by JS The JS running environment of written in code.
A kind of hot update method of EPG the most according to claim 3, it is characterised in that: described layout component includes service groups Part and flexbox box model layout.
A kind of hot update method of EPG the most according to claim 5, it is characterised in that: described Service Component includes picture group Part, video component, character component, choice box assembly and combobox assembly.
CN201610686549.XA 2016-08-19 2016-08-19 A kind of electronic program guides heat update system and method Active CN106325924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610686549.XA CN106325924B (en) 2016-08-19 2016-08-19 A kind of electronic program guides heat update system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610686549.XA CN106325924B (en) 2016-08-19 2016-08-19 A kind of electronic program guides heat update system and method

Publications (2)

Publication Number Publication Date
CN106325924A true CN106325924A (en) 2017-01-11
CN106325924B CN106325924B (en) 2019-11-15

Family

ID=57744311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610686549.XA Active CN106325924B (en) 2016-08-19 2016-08-19 A kind of electronic program guides heat update system and method

Country Status (1)

Country Link
CN (1) CN106325924B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315619A (en) * 2017-07-12 2017-11-03 北京理工大学 A kind of hot restorative procedure, mobile terminal and hot repair complex system for realizing patch safety

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127915A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 Electronic program navigation data synchronization method and system based on incremental mode
CN101977217A (en) * 2010-10-15 2011-02-16 中兴通讯股份有限公司 Widget updating method and system as well as Widget client and Widget server
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN103701930A (en) * 2014-01-07 2014-04-02 浙江大学 Mobile application program real-time updating method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127915A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 Electronic program navigation data synchronization method and system based on incremental mode
CN101977217A (en) * 2010-10-15 2011-02-16 中兴通讯股份有限公司 Widget updating method and system as well as Widget client and Widget server
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
CN103701930A (en) * 2014-01-07 2014-04-02 浙江大学 Mobile application program real-time updating method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315619A (en) * 2017-07-12 2017-11-03 北京理工大学 A kind of hot restorative procedure, mobile terminal and hot repair complex system for realizing patch safety

Also Published As

Publication number Publication date
CN106325924B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
US10908896B2 (en) Application wrapping for application management framework
US20190227794A1 (en) Systems and methods for real time version control for integrating updated web-based components with a native application
US9262193B2 (en) Multi-tier platform-as-a-service deployment reduced to single-tier architecture for development
US10101985B1 (en) Scalable ecosystem for enterprise mobility
US8443084B2 (en) Enhanced upgrade path
CN107305553B (en) Method and system for dynamically jumping Hybrid page based on Hybrid App
US9075688B2 (en) Enhanced upgrade path
CN109491695A (en) A kind of increment updating method of integrated Android application
CN105786538B (en) software upgrading method and device based on android system
CN105302563B (en) The plug-in unit method and system of mobile application service
CN104077160B (en) A kind of method, apparatus and system for upgrading Android software
US9158521B2 (en) Automatic provisioning of a software platform to a device ecosystem
US10296309B1 (en) Systems and methods for automatic API generation for bi-directional communication between native and web-based components of a mobile application
CN104572114A (en) Binding device, application updating device and method and application
CN114077423A (en) Airport APP development container architecture based on mobile cross-platform
CN106815049B (en) Method and device for upgrading feature library
CN104793966A (en) Display and loading method and system of Android local application
KR102052776B1 (en) Installation engine and package format for parallelizable, reliable installations
US8893117B2 (en) Interactive product improvement through the use of variants and data gathering reports in a system that can be updated on the fly
CN105224874A (en) Based on plug-in security control method and the client of middleware card cage
CN105373406A (en) Android platform based application layout dynamic switching method and system
US9766912B1 (en) Virtual machine configuration
CN105320503A (en) Middleware and plug-in frame designing system and method
US10789751B2 (en) Method and apparatus for implementing animation in client application and animation script framework
CN106325924A (en) EPG hot update system and method

Legal Events

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