CN105872842A - Multi-desktop independent upgrade method and device - Google Patents
Multi-desktop independent upgrade method and device Download PDFInfo
- Publication number
- CN105872842A CN105872842A CN201511031092.0A CN201511031092A CN105872842A CN 105872842 A CN105872842 A CN 105872842A CN 201511031092 A CN201511031092 A CN 201511031092A CN 105872842 A CN105872842 A CN 105872842A
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- desktop
- version
- server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Abstract
The embodiment of the invention discloses a multi-desktop independent upgrade method and device. Independent upgrade of a single desktop is supported in a multi-desktop television system. The method comprises a following step of connecting each desktop into the television system in a plugin mode.
Description
Technical field
The present invention relates to intelligent television field, particularly to a kind of many desktops standalone upgrade method and device.
Background technology
The system of desktop is the very important feature of intelligent television system.Based on Android system
The intelligent television system of exploitation supports many desktops characteristic.The content of each desktop is respectively arranged with feature, is respectively
User provides different functions and experience.Regarding as a example by super TV by pleasure, it at least includes five large table surfaces,
It is respectively as follows: signal source, search desktop, carousel desktop, video desktop, application desktop.
Existing many desktop systems are overall applicability, and generally in a set of code, exploitation realizes, each
Coupling ratio between desktop is relatively close, generation impact of meeting mutually.That is, although each desktop is different representing
Form, but substantially cannot separate, the most newly-increased desktop will be at existing desktop framework
Develop in flow process.
The different desktop construction cycles may be different, but, each desktop can only follow system now
The integrated upgrading of version, but, the upgrading of whole television system is comparatively laborious process, and AKU also can
The hugest, in order to ensure stability, the cycle of upgrading is the most long, and this interferes with user couple
The use of TV.And owing to system upgrade is optional, if user selects not upgrade-system, then also
Cannot individually upgrade new desktop.When a lot of people's not upgrade-system, the desktop just having each version exists,
The complexity that release maintenance also increases.
Summary of the invention
Embodiments provide a kind of many desktops standalone upgrade method and device, at the TV of many desktops
The standalone upgrade of single desktop is supported in system.
One many desktops standalone upgrade method that the embodiment of the present invention provides, including: by each desktop with plug-in unit
Mode access television system.
One many desktops standalone upgrade device that the embodiment of the present invention provides, including:
Each desktop is accessed in the way of plug-in unit the module of television system.
Utilization embodiments provides a kind of many desktops standalone upgrade method and device, and each desktop passes through
The mode of plug-in unit is linked into intelligent television system, when a certain desktop upgraded by needs, directly obtains this table
The up-to-date plug-in unit bag that face is corresponding, can realize the automatic standalone upgrade of plug-in unit.
Accompanying drawing explanation
Fig. 1 is the many desktops standalone upgrade method described in one embodiment of the invention.
The method flow diagram of desktop this locality plug-in unit upgrading that Fig. 2 provides for one embodiment of the invention.
The example schematic of many desktops standalone upgrade that Fig. 3 provides for one embodiment of the invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that this
Specific embodiment described by place is used only for explaining the present invention, is not intended to limit the present invention.
One many desktops standalone upgrade method and device that the embodiment of the present invention provides, each desktop passes through plug-in unit
Mode is linked into intelligent television system, when a certain desktop upgraded by needs, directly obtains this desktop corresponding
Up-to-date plug-in unit bag, the automatic standalone upgrade of plug-in unit can be realized.
Specifically, first realizing there is host's application, this host application is the master of intelligent television system
Application, each desktop is linked in host's application by the way of plug-in unit, i.e. by host's application
Run the mode of multiple plug-in unit to realize television table plane system simultaneously.More specifically, system is by imitating
Android loads the apk that single application plug-in is corresponding, and plug-in unit is loaded into as a common apk
Android system, then calls for host.
Utilize the benefit of card cage at least:
Can realize flexibly increasing function, reducing function, more New function by plug-in unit;By one
Complicated application apk disassembles into the most independent plug-in unit so that function is more independent, configures more
Add flexibly;
By plug-in unit is put on server, it is achieved the pattern in similar plug-in unit shop, a host can be right
Answer multiple plug-in units, the plug-in unit of needs can be obtained by server at any time;
Make some functional independence, independent become after plug-in unit so that exploitation, test, the work such as maintenance is more
Add independence, not with other Function Coupling.
Fig. 1 is the many desktops standalone upgrade method described in one embodiment of the invention.As it is shown in figure 1, the party
Method includes:
Step 101: obtain the plugin information of server.
In an embodiment of the present invention, the redaction of server background each desktop the most pre-configured.
After TV starts, first make requests on corresponding plug-in unit according to the version number of each desktop to service end
Data.In an embodiment of the present invention, client can be corresponding to server request by http interface
Plug-in's data.
Step 102: according to the plugin information obtained, it may be judged whether there is a need to the plug-in unit of upgrading;If had
Need the plug-in unit of upgrading, perform step 103;Otherwise, execution step 101 is redirected.
The plug-in's data obtained is resolved by client, obtains the version information of plug-in unit on server;So
The version of plug-in unit in the plug-in version of rear contrast this locality and server, if had on server than local plug-in unit
The version updated, then judge that this plug-in unit is to be upgraded.
Step 103: download plug-in AKU, with the desktop that upgrading is corresponding.
Specifically, client downloads, from server, the up-to-date apk bag that this desktop is corresponding;And to apk bag
Resolve and upgrade.
Generally can download and resolve new apk during user uses TV, when user opens next time
When machine loads desktop, upgrading desktop, after such desktop has loaded, user just can use newly
Desktop function.In this case, whole download, resolve, the process that loads does not affects user couple
The normal experience of TV functions.
The method flow diagram of desktop this locality plug-in unit upgrading that Fig. 2 provides for one embodiment of the invention.Such as Fig. 2
Shown in, when, after the plug-in unit apk having downloaded correspondence, the local plug-in unit upgrade method of desktop includes:
Step 201: the plug-in unit of backup early version.
The purpose performing this step is to prevent new plug-in unit from upgrading unsuccessfully, and once new plug-in unit is upgraded unsuccessfully, system
Still can call high school leavers who have settled in the countryside's part, not affect the experience of user.
Certainly, it will be understood by those skilled in the art that step 201 can not also perform.Such as, a certain
Desktop is newly-increased desktop, does not has the plug-in unit of the early version of correspondence.
Step 202: use the Framework sdk loading plug-in unit to load new plug-in unit.After loading successfully,
Loaded successfully by the readjustment notice new plug-in unit of desktop.
Step 203: provide the user the plug-in unit of new edition.
Step 204: remove and update the data of high school leavers who have settled in the countryside's part.Specifically include internal memory resource to be recycled and
The early version data of residual on disk.
It will be understood by those skilled in the art that if step 201 is not carried out, step 204 without
Perform.
Many desktops standalone upgrade method of the embodiment of the present invention is further illustrated below with concrete example.
First, client can obtain slotting by the Http associated class request of Android platform from service end
Number of packages evidence, the following is certain plugin information data instance:
{
pluginId:12345678,
PluginName: " child's desktop ",
PluginDesc: " child's related-program and video are provided ",
pluginUrl:"http://logoresource.tv.yun.com/new_version/54000/
1437985445837.apk",
pluginVersion:"5.5.100",
createTime:"2015-07-0119:04:32",
updateTime:"2015-09-1416:06:54",
valid:"Y",
}。
Moreover, plug-in's data can be resolved by the Gson instrument that google provides, obtain therein inserting
Part version information pluginVersion and plug-in unit packet address pluginUrl.Certainly, those skilled in the art
It is appreciated that, it is also possible to take other plug-in's data analytical tool.
Then, by comparing plug-in version pluginVersion obtained from server and local plug-in unit version
This localVersion, it may be judged whether have plug-in unit to need to update.If the plug-in version obtained from server
Number newly in local plug-in version number, then it is judged as that plug-in unit corresponding to this version number needs to update.
Finally, the plug-in unit packet address (pluginUrl) upgraded as required downloads the plug-in unit of new edition, in case
Upgrading.
The plug-in unit upgrading side, desktop this locality of the embodiment of the present invention is further illustrated below with concrete example
Method.
First, by the renameTo interface of File class old plug-in unit guaranteed the repair free of charge to change suffix entitled
Apkname.apk.bak, to use as backup.Certainly, those skilled in the art are appreciated that completely
Other mode can also be taked to back up old plug-in unit.
Moreover, dynamically pacified by the installWidget interface of the WidgetInstaller of desktop plug-ins framework
The plug-in unit apk of dress redaction, by the PackageManager of Android in installWidget method
Interface reads activity, service, receiver, provider assembly in apk and package informatin etc., and
Copy out so file in apk, in case follow-up DexClassLoader loads, the most newly-built apk
The catalogue needed after installation.
After loading successfully, call the WidgetEventListener's that is registered in before in framework
OnWidgetEvent notice desktop loads successfully, and (this type of comprises one to return plugin information Widget class
The information of the plug-in unit apk after individual parsing), desktop calls the start interface of Widget and starts upgrading
After plug-in unit, it is achieved the plug-in unit after upgrading replaces it the plug-in unit of front early version.
After upgrading successfully, delete the apk bag of backup, delete early version and be buffered in the unwanted of this locality
Data, are set to null by the Widget being carried in before in internal memory, in case Andorid garbage reclamation mechanism
Reclaim.
The example schematic of many desktops standalone upgrade that Fig. 3 provides for one embodiment of the invention.Such as Fig. 3 institute
Showing, Fig. 3 (a) is the video desktop before updating, and Fig. 3 (b) is the video desktop after updating, video desktop
Upgrading is independent of other desktops.
The embodiment of the present invention additionally provides a kind of many desktops standalone upgrade device, including: by each desktop to insert
The mode of part accesses the module of television system.
Wherein, this module includes again:
Acquiring unit, for obtaining the plugin information of server;
Judging unit, for the plugin information obtained according to acquiring unit, it may be judged whether there is a need to upgrading
Plug-in unit;
Download unit, during for there is a need to the plug-in unit of upgrading when judging unit, download plug-in AKU;
Loading unit, for loading the AKU of download.
In an embodiment of the present invention, loading unit includes:
Backup subelement, for backing up the plug-in unit of early version;
Add subelements, load, for using, the new plug-in unit that plug-in unit loading is downloaded;
Update subelement, for providing the user the plug-in unit of new edition;
Remove subelement, for removing and update the data of high school leavers who have settled in the countryside's part.
Certainly, it will be understood by those skilled in the art that backup subelement and remove subelement not necessarily.
Many desktops standalone upgrade method and device that the embodiment of the present invention provides, plug-in unit based on desktop,
Can realize the standalone upgrade of desktop, flexible and changeable, each desktop is no longer limited by the renewal of television system.
In this case, after any one plug-in unit adds function or amendment bug, upload to run backstage, client
End downloads up-to-date plug-in unit, can realize timely, flexible, independent renewal.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Within the spirit of invention and principle, any modification, equivalent substitution and improvement etc. made, should be included in
Within protection scope of the present invention.
Claims (13)
1. desktop standalone upgrade method more than a kind, it is characterised in that each desktop is connect in the way of plug-in unit
Enter television system.
2. method as claimed in claim 1, it is characterised in that described each desktop is connect in the way of plug-in unit
Enter television system to include:
Obtain the plugin information of server;
According to the plugin information obtained, it may be judged whether there is a need to the plug-in unit of upgrading;
The plug-in unit upgraded if necessary, download plug-in AKU;
Load the plug-in unit AKU downloaded.
3. the method for claim 1, it is characterised in that described server background is the most in advance
The redaction of configuration each desktop good.
4. the method for claim 1, it is characterised in that obtain the plugin information bag of server
Include:
Version number according to each desktop makes requests on corresponding plug-in's data to service end.
5. method as claimed in claim 4, it is characterised in that according to the plugin information obtained, sentence
The disconnected plug-in unit that whether there is a need to upgrading includes:
The plug-in's data obtained is resolved, obtains the version information of plug-in unit on server;
In the plug-in version of contrast this locality and server, the version of plug-in unit, inserts if had on server than this locality
The version that part updates, then judge that described plug-in unit is to be upgraded.
6. the method for claim 1, it is characterised in that the plug-in unit upgrading that described loading is downloaded
Before bag, farther include:
The plug-in unit of backup early version;
After the described plug-in unit AKU loading download, farther include:
Remove and update the data of high school leavers who have settled in the countryside's part.
7. method as claimed in claim 4, it is characterised in that according to the version number of each desktop to
Service end makes requests on corresponding plug-in's data and includes:
By http interface to the corresponding plug-in's data of server request.
8. method as claimed in claim 5, it is characterised in that the described plug-in's data to obtaining enters
Row resolves, and obtains the version information of plug-in unit on server and includes:
The Gson instrument provided by google resolves plug-in's data, obtains plug-in version information therein
PluginVersion and plug-in unit packet address pluginUrl.
9. method as claimed in claim 6, it is characterised in that
By the renameTo interface of File class old plug-in unit guaranteed the repair free of charge to change suffix entitled
apkname.apk.bak;
By the installWidget interface of the WidgetInstaller of desktop plug-ins framework, new edition is dynamically installed
This plug-in unit apk;
After loading successfully, call the WidgetEventListener's that is registered in before in framework
OnWidgetEvent notice desktop loads successfully, and returns plugin information Widget class;
After upgrading successfully, delete the apk bag of backup, delete early version and be buffered in the unwanted of this locality
Data, are set to null by the Widget being carried in before in internal memory.
10. desktop standalone upgrade device more than a kind, it is characterised in that including:
Each desktop is accessed in the way of plug-in unit the module of television system.
11. devices as claimed in claim 10, it is characterised in that described by each desktop with plug-in unit
Mode accesses the module of television system and includes:
Acquiring unit, for obtaining the plugin information of server;
Judging unit, for the plugin information obtained according to acquiring unit, it may be judged whether there is a need to upgrading
Plug-in unit;
Download unit, during for there is a need to the plug-in unit of upgrading when judging unit, download plug-in AKU;
Loading unit, for loading the AKU of download.
12. devices as claimed in claim 11, it is characterised in that described loading unit includes:
Add subelements, load, for using, the new plug-in unit that plug-in unit loading is downloaded;
Update subelement, for providing the user the plug-in unit of new edition.
13. devices as claimed in claim 12, it is characterised in that described loading unit wraps further
Include:
Backup subelement, for backing up the plug-in unit of early version;
Remove subelement, for removing and update the data of high school leavers who have settled in the countryside's part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511031092.0A CN105872842A (en) | 2015-12-30 | 2015-12-30 | Multi-desktop independent upgrade method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511031092.0A CN105872842A (en) | 2015-12-30 | 2015-12-30 | Multi-desktop independent upgrade method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105872842A true CN105872842A (en) | 2016-08-17 |
Family
ID=56624569
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511031092.0A Pending CN105872842A (en) | 2015-12-30 | 2015-12-30 | Multi-desktop independent upgrade method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105872842A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325937A (en) * | 2016-08-24 | 2017-01-11 | 乐视控股(北京)有限公司 | Third-party application calling method and electronic equipment |
CN106445601A (en) * | 2016-09-29 | 2017-02-22 | 乐视控股(北京)有限公司 | Device and method for plugin upgrading |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN106951284A (en) * | 2017-03-14 | 2017-07-14 | 深圳创维-Rgb电子有限公司 | User interface upgrade method, device and the intelligent terminal applied based on Android system |
CN112689199A (en) * | 2020-12-23 | 2021-04-20 | 深圳市酷开网络科技股份有限公司 | Method and device for loading plug-in of television homepage, television and storage medium |
WO2021073337A1 (en) * | 2019-10-15 | 2021-04-22 | 华为技术有限公司 | Method and apparatus for installing plug-in, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070240134A1 (en) * | 2006-02-28 | 2007-10-11 | Joydeep Buragohain | Software packaging model supporting multiple entity types |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN103780952A (en) * | 2014-01-28 | 2014-05-07 | 广东欧珀移动通信有限公司 | Intelligent terminal message sending method and system |
CN103813202A (en) * | 2014-01-28 | 2014-05-21 | 歌尔声学股份有限公司 | Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device |
-
2015
- 2015-12-30 CN CN201511031092.0A patent/CN105872842A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070240134A1 (en) * | 2006-02-28 | 2007-10-11 | Joydeep Buragohain | Software packaging model supporting multiple entity types |
CN103677877A (en) * | 2012-09-12 | 2014-03-26 | 腾讯科技(深圳)有限公司 | Method and device for updating local advertisement software development kit |
CN103780952A (en) * | 2014-01-28 | 2014-05-07 | 广东欧珀移动通信有限公司 | Intelligent terminal message sending method and system |
CN103813202A (en) * | 2014-01-28 | 2014-05-21 | 歌尔声学股份有限公司 | Smart television with interactive function, handheld device with interactive function and interactive method of smart television and handheld device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106325937A (en) * | 2016-08-24 | 2017-01-11 | 乐视控股(北京)有限公司 | Third-party application calling method and electronic equipment |
CN106445601A (en) * | 2016-09-29 | 2017-02-22 | 乐视控股(北京)有限公司 | Device and method for plugin upgrading |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN106951284A (en) * | 2017-03-14 | 2017-07-14 | 深圳创维-Rgb电子有限公司 | User interface upgrade method, device and the intelligent terminal applied based on Android system |
CN106951284B (en) * | 2017-03-14 | 2020-09-11 | 深圳创维-Rgb电子有限公司 | User interface upgrading method and device based on android system application and intelligent terminal |
WO2021073337A1 (en) * | 2019-10-15 | 2021-04-22 | 华为技术有限公司 | Method and apparatus for installing plug-in, and storage medium |
CN112689199A (en) * | 2020-12-23 | 2021-04-20 | 深圳市酷开网络科技股份有限公司 | Method and device for loading plug-in of television homepage, television and storage medium |
CN112689199B (en) * | 2020-12-23 | 2023-08-29 | 深圳市酷开网络科技股份有限公司 | Plug-in loading method and device for television homepage, television and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105872842A (en) | Multi-desktop independent upgrade method and device | |
US8881139B1 (en) | Legacy application rehosting system | |
CN102622241B (en) | A kind of method for upgrading software and device | |
EP3128421B1 (en) | Method, device, and system for achieving java application installation by cloud compilation | |
KR100988961B1 (en) | Side-by-side drivers | |
EP2786248B1 (en) | Automatic updating of an application or a driver on a client device using a deployment configuration file | |
EP2786246B1 (en) | Deployment and updating of applications and drivers on a client device using and extensible markup language (xml) configuration file | |
US9032052B2 (en) | Deployment of a driver or an application on a client device having a write-filter | |
RU2421785C2 (en) | Automated control of device drivers | |
US9235404B2 (en) | Firmware update system | |
CN102073512B (en) | JAVA cluster application system code loading and upgrading device and method | |
CN105786538B (en) | software upgrading method and device based on android system | |
CN107992308B (en) | Plug-in management method for android terminal application program | |
US11327744B2 (en) | Equivalency of revisions on modern version control systems | |
US20040034850A1 (en) | Servicing a component-based software product throughout the software product lifecycle | |
CN107193607B (en) | Method and apparatus for updating code file, storage medium, processor, and terminal | |
WO2013078951A1 (en) | Method and system for upgrading software | |
CN105389182A (en) | Software upgrading method and apparatus | |
CN106911729A (en) | A kind of operating system remote installation method suitable for domestic processor | |
KR20080082623A (en) | Metadata driven deployment of applications | |
CN110187910B (en) | Thermal updating method, device, equipment and computer readable storage medium | |
CN102833350A (en) | Processing method and processing device of WebApp updating | |
CN101329633A (en) | Method and apparatus for upgrading software | |
CN101694625A (en) | Method and device for upgrading client software based on encryption sever management | |
CN109240716B (en) | Big data platform version management and rapid iterative deployment method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160817 |