CN106325924B - A kind of electronic program guides heat update system and method - Google Patents

A kind of electronic program guides heat update system and method Download PDF

Info

Publication number
CN106325924B
CN106325924B CN201610686549.XA CN201610686549A CN106325924B CN 106325924 B CN106325924 B CN 106325924B CN 201610686549 A CN201610686549 A CN 201610686549A CN 106325924 B CN106325924 B CN 106325924B
Authority
CN
China
Prior art keywords
file
catalogue file
catalogue
new
component
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.)
Active
Application number
CN201610686549.XA
Other languages
Chinese (zh)
Other versions
CN106325924A (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

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of electronic program guides heat to update system and method, it include: JS packaging system, including the JS running environment by JS written in code, for being packaged catalogue file and resource file and upload server, the catalogue file of default is generated when being packaged Android installation kit for the first time, includes relevant layout component and the path for being directed toward new catalogue file in the Android installation kit;Differential system compares local directory file and resource file and the catalogue file and resource file of packing, repacks the catalogue file and resource file being newly added, constitute new catalogue file;Edition management system carries out Version Control according to the iteration of version;Catalogue file loading system, when needing to update, the new catalogue file of control loaded and displayed does not influence starting speed;And it can realize that the dynamic to UI layout is modified.

Description

A kind of electronic program guides heat update system and method
Technical field
The present invention relates to electronic program guides more frontiers, and in particular to a kind of electronic program guides heat more new system and side Method.
Background technique
Existing mainstream heat updates patch frame, allows loophole of APP in the case where not released version again in repair line. Loophole is known first, and modification generates a patch, and in the identical situation of version number, request server has patch, under will going It carries.If version number is different, the patch of default can be deleted.Calling sequence is loaded by modification internalist methodology to complete patch It is as follows that cardinal principle is completed in load:
It is understood that Java loads corresponding class at runtime to be realized by ClassLoader, ClassLoader Itself it is an abstract class, uses PathClassLoader class as the Classloader of the default of Android in Android, What PathClassLoader was realized in fact is exactly that class file is simply loaded from file system.PathClassLoade itself It is inherited from BaseDexClassLoader, BaseDexClassLoader has rewritten findClass method, and this method is The core of ClassLoader.FindClass method has been entrusted to pathList object by BaseDexClassLoader FindClass method, pathList object are that new comes out in the constructed fuction of BaseDexClassLoader, its class Type is DexPathList.DexElements list in DexPathList object is a core of class load, and a class is such as Fruit can be successfully loaded, then its dex is centainly appeared in dex file corresponding to dexElements, and The sequence occurred in dexElements is also critically important, can preferentially be loaded in the dex that the front dexElements occurs, pass through tune With the loadClassBinaryName method on element.dexFile object come loading classes, once Class is loaded success, It will return immediately.
Realize hot update, it is necessary to remove change PathClassLoader.pathList.dexElemen at runtime Ts, since these attributes are all private, it is therefore desirable to be modified by reflecting.In addition, constructing the dex file institute of oneself When corresponding dexElements array, the mode for having a comparison to resort to trickery to serve oneself is exactly by construction one DexClassLoade object loads our dex file, and calls a dexClassLoader.loadClass (dummyClassName);Method, in this way, will include me in dexClassLoader.pathList.dexElements Dex, by the classLoader for dexClassLoader.pathList.dexElements being inserted into system default .pathList.dexElements before list, so that it may allow System Priority to load the class in our dex, to realize heat It updates.
Existing method deficiency is:
1. pair starting speed slightly has an impact;
It is modified 2. cannot be laid out to UI and make dynamic;
3. patch order may be chaotic when multiple patch installing;
4. different chip solutions may need different patches.
Summary of the invention
In order to solve the above-mentioned technical problem the present invention provides a kind of hot updating device of electronic program guides and method.
The present invention is achieved through the following technical solutions:
Electronic program guides heat more new system, comprising:
JS packaging system, including the JS running environment by JS written in code, for being packaged catalogue file and resource file simultaneously Upload server generates the catalogue file of default when being packaged Android installation kit for the first time, includes correlation in the Android installation kit Layout component and be directed toward the path of new catalogue file;
Differential system compares local directory file and resource file and the catalogue file and resource file of packing, beats again The catalogue file and resource file being newly added are wrapped, new catalogue file is constituted;
Edition management system carries out Version Control according to the iteration of version;
Catalogue file loading system, when needing to update, the new catalogue file of control loaded and displayed.
Present invention aims at the primary development mode of original android is broken, phase is carried out as desired using js code Layout, the logic of pass 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 for the js code in parsing project, and be cooperated in our Android installation kits Jar packet android primary code and os file to render our need the interface ui to be shown.Utilize the present apparatus, energy Enough to upgrade in the case where not updating Android installation package file to Android installation kit, update/code logic including ui is more Newly.
Reach dynamic to update, is then to carry out dynamic by way of patch to add update, using the present apparatus, remains logical Android installation kit is crossed normally to be started, then reloads catalogue file, therefore start speed and the peace without update Zhuo installation speed packet is about the same.
Using the present apparatus, then it can carry out view and dynamically be modified.Basic principle: java layers, pass through JavaScriptModule interface class defines communication means, and in agent intercepts class JavaScriptModuleInvocationH It carries out that all communication requests for being sent to Javascript are uniformly processed in andler.C++ layers: OnLoad is then jni layers of calling Entrance, has registered all native methods, and intrinsic call is completed by CountableBridge. Javascript layers: BatchedBridge is Javascript layers of call entry, when receiving communication request, to first pass through and reflect Firing table confirms specific solicited message, then confirms whether Javascript component can be called, finally complete by apply mode again At execution.
Using the present apparatus, then the iteration of version can be carried out by generating catalog page.Successive ignition, then from newly-generated new Catalogue file, will not confusion reigned phenomenon.
Using the present apparatus, then it is unification for all chip boxes, does not need the patch having an injection for some version, only It needs to generate catalogue file.Android installation kit only loads catalogue file, and catalogue file is write by javaScript, it All chip boxes can be directed to, therefore do not need to beat multiple patches.
Preferably, the edition management system, when to iteration Version Control, request server downloads new catalogue text Part stops hot update if failed download or decompressing files are impaired;If current version has great loophole, change server Interface data, without re-downloading and returning to the version of last time.
A kind of hot update method of electronic program guides, comprising the following steps:
JS packaging system is packaged Android installation kit for the first time and generates default directory file;
Whether detection current version needs hot update;
If desired heat updates, JS topology file;
JS packaging system is packaged catalogue file and resource file;
The catalogue file of packing and resource file and local catalogue file and resource file are compared, new add is repacked The catalogue file and resource file entered, constitutes new catalogue file;
It loads and shows new catalogue file.
Preferably, the JS packaging system includes the JS running environment by JS written in code.
Preferably, the layout component includes Service Component and flexbox box model layout.
Preferably, the Service Component includes picture component, video component, character component, choice box component and drop-down Frame component.
Compared with prior art, the present invention at least having the following advantages and benefits:
1, using the hot updating device of electronic program guides of the invention and method, starting speed is not influenced;And it can be real Now the dynamic of UI layout is modified.
2, using the hot updating device of electronic program guides of the invention and method, patch will not be by the shadow of chip solution It rings, and when multiple patch installing, confusion will not occur for patch order.
Specific embodiment
Apparatus and method of the present invention supports all mobile phones, set-top box and Web TV etc..To make the purpose of the present invention, skill Art scheme and advantage are more clearly understood, and below with reference to embodiment, the present invention is described in further detail, and of the invention shows Meaning property embodiment and its explanation are for explaining only the invention, not as a limitation of the invention.
Embodiment 1
Electronic program guides heat more new system, including JS packaging system, differential system, edition management system and catalogue file Loading system;Wherein,
The JS packaging system includes being packaged Android installation kit for the first time, the catalogue file of default is generated, by JS written in code JS running environment for being packaged catalogue file and resource file and upload server include correlation in the Android installation kit Layout component and be directed toward the path of new catalogue file;
The differential system comparison local directory file and resource file and the catalogue file and resource file of packing, again It is packaged the catalogue file and resource file being newly added, constitutes new catalogue file;
The edition management system carries out Version Control according to the iteration of version;
The catalogue file loading system is when needing to update, the new catalogue file of control loaded and displayed.
For the edition management system when to iteration Version Control, request server downloads new catalogue file, if downloading Failure or decompressing files are impaired, then stop hot update;If current version has great loophole, change server interface data, Without re-downloading and returning to the version of last time.
Embodiment 2
A kind of hot update method of electronic program guides, comprising the following steps:
JS packaging system generates default directory file when being packaged Android installation kit for the first time;
Whether detection current version needs hot update;
If desired heat updates, JS topology file;
JS packaging system is packaged catalogue file and resource file;
The catalogue file of packing and resource file and local catalogue file and resource file are compared, new add is repacked The catalogue file and resource file entered, constitutes new catalogue file;
It loads and shows new catalogue file.
The JS packaging system includes the JS running environment by JS written in code.
The layout component includes Service Component and flexbox box model layout.
The Service Component includes picture component, video component, character component, choice box component and combobox component.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (5)

1. electronic program guides heat more new system, it is characterised in that: including JS packaging system, differential system, edition management system With catalogue file loading system;Wherein,
The JS packaging system includes the JS running environment by JS written in code, for be packaged catalogue file and resource file and Server is passed, the catalogue file of default is generated when being packaged Android installation kit for the first time, includes relevant in the Android installation kit Layout component and the path for being directed toward new catalogue file;
The differential system comparison local directory file and resource file and the catalogue file and resource file of packing, are repacked The catalogue file and resource file being newly added, constitute new catalogue file;
The edition management system carries out Version Control according to the iteration of version;
The catalogue file loading system is when needing to update, the new catalogue file of control loaded and displayed.
2. electronic program guides heat more new system according to claim 1, it is characterised in that: the edition management system exists When to iteration Version Control, request server downloads new catalogue file, if failed download or decompressing files are impaired, stops Heat updates;If current version has great loophole, change server interface data, without re-downloading and returning to last time Version.
3. a kind of hot update method of electronic program guides, which comprises the following steps:
JS packaging system generates default directory file when being packaged Android installation kit for the first time;The JS packaging system includes by JS code The JS running environment write is being packaged Android installation kit for being packaged catalogue file and resource file and upload server for the first time The catalogue file of Shi Shengcheng default includes relevant layout component and the road for being directed toward new catalogue file in the Android installation kit Diameter;
Whether detection current version needs hot update;
If desired heat updates, JS topology file;
JS packaging system is packaged catalogue file and resource file;
The catalogue file of packing and resource file and local catalogue file and resource file compared, repacks and is newly added Catalogue file and resource file constitute new catalogue file;
It loads and shows new catalogue file.
4. the hot update method of a kind of electronic program guides according to claim 3, it is characterised in that: the layout component packet Include Service Component and flexbox box model layout.
5. the hot update method of a kind of electronic program guides according to claim 4, it is characterised in that: the Service Component packet Include picture component, video component, character component, choice box component and combobox component.
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 CN106325924A (en) 2017-01-11
CN106325924B true 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)

Families Citing this family (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 (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622241B (en) * 2011-01-26 2016-06-15 腾讯科技(深圳)有限公司 A kind of method for upgrading software and device

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN106325924A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN108551487B (en) Application deployment method, device, server and storage medium of PaaS platform
US9003395B2 (en) Directing plug-in updates for a software application to a target audience using manifest parameters
US20170085591A1 (en) Fetching a policy definition library from a policy server at mobile device runtime of an application package to control access to mobile device resources
CN105786538B (en) software upgrading method and device based on android system
CN106406961A (en) Method and device for loading and providing application based on browser
US9158521B2 (en) Automatic provisioning of a software platform to a device ecosystem
US10956577B2 (en) Methods and apparatus for defending against memory-related attacks on devices
US9747145B2 (en) Mobile application configuration agnostic to operating system versions
US8893117B2 (en) Interactive product improvement through the use of variants and data gathering reports in a system that can be updated on the fly
CN110209416A (en) Application software update method, device, terminal and storage medium
US20230061228A1 (en) Managing shared applications at the edge of a content delivery network
CN103793248A (en) Method and device for upgrading application program
JP6560824B2 (en) How to manage packages in secure elements
CN106325924B (en) A kind of electronic program guides heat update system and method
CN113157274B (en) Software development method and device based on micro front end, electronic equipment and storage medium
CN104158907A (en) Method and device of downloading application program file
CN103279569A (en) Method and device for changing system theme
KR101977602B1 (en) Apparatus and method for managing microservice
CN113553271A (en) Method for generating and testing internal test program of application program
CN106155709B (en) Plug-in loading method, device and equipment
CN112835677A (en) Sandbox-based inherent data protection method and system
US9465598B2 (en) Deployment of branded software
Bos A Review of Attacks Against Language-Based Package Managers
Welton Remotely abusing android
CN106445530A (en) Method and device for converting client application software into webpage software

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