CN110247966A - Kernel creation method, smart television and computer readable storage medium - Google Patents
Kernel creation method, smart television and computer readable storage medium Download PDFInfo
- Publication number
- CN110247966A CN110247966A CN201910513214.1A CN201910513214A CN110247966A CN 110247966 A CN110247966 A CN 110247966A CN 201910513214 A CN201910513214 A CN 201910513214A CN 110247966 A CN110247966 A CN 110247966A
- Authority
- CN
- China
- Prior art keywords
- kernel
- party
- configuration information
- configuration file
- configuration
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- 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/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of kernel creation method, smart television and computer readable storage mediums, this method comprises: by the webpage load instruction for receiving browser, obtain corresponding configuration file, parse configuration file, obtain corresponding parsing result, whether detect in parsing result includes configuration item, if, then identify the corresponding configuration information of configuration item, and it detects in configuration information with the presence or absence of corresponding specified kernel, if it exists, then when specified kernel is third party's kernel, third party's kernel is created based on configuration information.There are the selections and creation that when multiple browser kernels, realize to browser kernel in smart television by the present invention.
Description
Technical field
This disclosure relates to internet information processing technology field more particularly to a kind of kernel creation method, smart television and
Computer readable storage medium.
Background technique
With the continuous development and application of Internet technology, browser plays more and more important in intelligent television system
Role, the most crucial part of browser is " browser kernel ", it provide to webpage load, parsing, rendering and interaction etc. energy
Power, and directly determine that user uses the experience sense of webpage, and different browser kernels deposits the explanation of program grammer
In difference, in addition, display effect of the same webpage in the browser of different kernels may also be different.
Currently, many companies use B/S framework (Browser/Server, browser/server in intelligent television system
Mode) construct service system, i.e. intelligent television system only installs a browser.But when there are multiple in smart television
When browser kernel, there are problems which browser kernel load webpage selected.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of kernel creation method, device, smart television and computer-readable deposit
Storage media, it is intended to solve to realize the selection and creation of different browsers kernel there are when multiple browser kernels in smart television
The problem of.
To achieve the above object, the present invention propose kernel creation method, the kernel creation method the following steps are included:
In the webpage load instruction for receiving browser, corresponding configuration file is obtained;
The configuration file is parsed, corresponding parsing result is obtained;
It whether detects in the parsing result comprising configuration item;
If so, identifying the corresponding configuration information of the configuration item, and detect in the configuration information with the presence or absence of correspondence
Specified kernel;
If it exists, then when the specified kernel is third party's kernel, the third party is created based on the configuration information
Kernel.
Optionally, described the step of creating third party's kernel based on the configuration information, includes:
Detect in the configuration information whether include the specified kernel indicated release;
If so, determining to specify whether the current version of kernel is greater than or equal to described specify described in the smart television
Whether version and the system environments of the smart television meet the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Optionally, whether include the steps that in the detection configuration information the specified kernel indicated release it
Afterwards, further includes:
If it is not, then determining whether the system environments of the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Optionally, described in the webpage for receiving browser load instruction, the step of obtaining corresponding configuration file it
Before, further includes:
Detect whether the update notification of the configuration file issued there are corresponding release platform;
If it exists, then the corresponding new configuration file of the update notification is downloaded from release platform, and verifies the new configuration
File;
When receiving verification and passing through information, configuration file is updated to the new configuration file.
Optionally, described to download the corresponding new configuration file of the update notification from release platform, and verify and described newly match
The step of setting file include:
The corresponding new configuration file of the update notification is downloaded from release platform;
According to checking routine is preset, the new configuration file is verified.
Optionally, described the step of creating third party's kernel based on the configuration information, includes:
The occupied space for obtaining third party's kernel, detects whether the occupied space is less than or equal to the intelligence electricity
Depending on available memory space;
If so, creating third party's kernel based on the configuration information;
If it is not, then creating default kernel.
Optionally, described if so, identify the corresponding configuration information of the configuration item, and detect in the configuration information and be
It is no that there are the step of corresponding specified kernel to include:
The configuration item if it exists then identifies the corresponding configuration information of the configuration item;
It detects and whether there is the corresponding preset configuration information of the configuration information in presetting database;
If it exists, it is determined that there are the specified kernels;
If it does not exist, it is determined that the specified kernel is not present.
Optionally, described if so, identify the corresponding configuration information of the configuration item, and detect in the configuration information and be
After no the step of there are corresponding specified kernels, further includes:
If it does not exist, then determine whether the system environments of the smart television meets the operation need of third party's kernel
It asks;
If so, creating third party's kernel;
If it is not, then creating default kernel.
In addition, to achieve the above object, the present invention also provides a kind of smart television, the smart television include: memory,
The kernel creation program that processor and being stored in can be run on the memory and on the processor, the kernel create journey
Sequence realizes the step of kernel creation method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Kernel creation program is stored on storage medium, the kernel creation program realizes as described above interior when being executed by processor
The step of core creation method.
In technical solution of the present invention, by obtaining corresponding configuration text in the webpage load instruction for receiving browser
Part parses configuration file, obtains corresponding parsing result, and whether include configuration item, if so, identification is matched if detecting in parsing result
The corresponding configuration information of item is set, and is detected in configuration information with the presence or absence of corresponding specified kernel, and if it exists, then in specified kernel
When for third party's kernel, third party's kernel is created based on configuration information.There are multiple browsings in smart television by the present invention
When device kernel, the selection and creation to browser kernel are realized.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the smart television for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of kernel creation method first embodiment of the present invention;
Fig. 3 is the flow diagram of kernel creation method second embodiment of the present invention;
Fig. 4 is the flow diagram of kernel creation method 3rd embodiment of the present invention;
Fig. 5 is the flow diagram of kernel creation method fourth embodiment of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of kernel creation method of the present invention;
Fig. 7 is the flow diagram of kernel creation method sixth embodiment of the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of kernel creation method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: by obtaining in the webpage load instruction for receiving browser
Corresponding configuration file parses configuration file, obtains corresponding parsing result, and whether detect in parsing result includes configuration item,
If so, the corresponding configuration information of identification configuration item, and detect with the presence or absence of corresponding specified kernel in configuration information, if depositing
Then when specified kernel is third party's kernel, third party's kernel is being created based on configuration information.Through the embodiment of the present invention
Technical solution, solve in smart television that there are the selections and wound that when multiple browser kernels, solve to browser kernel
The problem of building.
The embodiment of the present invention proposes a kind of smart television.
Referring to Fig.1, Fig. 1 is the structural representation of the smart television for the hardware running environment that the embodiment of the present invention is related to
Figure.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
As shown in Figure 1, the smart television may include: processor 1001, communication bus 1002, user interface 1003, net
Network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.User connects
Mouth 1003 may include display screen (Display), input unit such as keyboard (Keyboard), and optional user interface 1003 may be used also
To include standard wireline interface and wireless interface.Network interface 1004 optionally may include the wireline interface of standard, wirelessly connect
Mouth (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-
), such as magnetic disk storage volatilememory.Memory 1005 optionally can also be independently of aforementioned processor 1001
Storage device.
It will be understood by those skilled in the art that smart television structure shown in Fig. 1 is not constituted to smart television structure
Restriction, may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe that module and kernel create program.
In the present invention, smart television calls the kernel stored in memory 1005 to create program by processor 1001, and
Execute following operation:
In the webpage load instruction for receiving browser, corresponding configuration file is obtained;
The configuration file is parsed, corresponding parsing result is obtained;
It whether detects in the parsing result comprising configuration item;
If so, identifying the corresponding configuration information of the configuration item, and detect in the configuration information with the presence or absence of correspondence
Specified kernel;
If it exists, then when the specified kernel is third party's kernel, the third party is created based on the configuration information
Kernel.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
Detect in the configuration information whether include the specified kernel indicated release;
If so, determining to specify whether the current version of kernel is greater than or equal to described specify described in the smart television
Whether version and the system environments of the smart television meet the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
If it is not, then determining whether the system environments of the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
Detect whether the update notification of the configuration file issued there are corresponding release platform;
If it exists, then the corresponding new configuration file of the update notification is downloaded from release platform, and verifies the new configuration
File;
When receiving verification and passing through information, configuration file is updated to the new configuration file.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
The corresponding new configuration file of the update notification is downloaded from release platform;
According to checking routine is preset, the new configuration file is verified.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
The occupied space for obtaining third party's kernel, detects whether the occupied space is less than or equal to the intelligence electricity
Depending on available memory space;
If so, creating third party's kernel based on the configuration information;
If it is not, then creating default kernel.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
The configuration item if it exists then identifies the corresponding configuration information of the configuration item;
It detects and whether there is the corresponding preset configuration information of the configuration information in presetting database;
If it exists, it is determined that there are the specified kernels;
If it does not exist, it is determined that the specified kernel is not present.
Further, processor 1001 can call the kernel stored in memory 1005 to create program, also execute following
Operation:
If it does not exist, then determine whether the system environments of the smart television meets the operation need of third party's kernel
It asks;
If so, creating third party's kernel;
If it is not, then creating default kernel.
The present embodiment through the above scheme, when by instructing in the webpage load for receiving browser, obtains corresponding matches
File is set, configuration file is parsed, obtains corresponding parsing result, whether include configuration item, if so, knowing if being detected in parsing result
The corresponding configuration information of other configuration item, and detect in configuration information with the presence or absence of corresponding specified kernel, and if it exists, then specified
When kernel is third party's kernel, third party's kernel is created based on configuration information, solves in smart television that there are multiple clear
Look at device kernel when, the problem of to the selection and creation of browser kernel.
Based on above-mentioned hardware configuration, kernel creation method embodiment of the present invention is proposed.
It is the flow diagram of kernel creation method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the first embodiment, the kernel creation method the following steps are included:
Step S10 obtains corresponding configuration file in the webpage load instruction for receiving browser;
In the present embodiment, after starting smart television, in the webpage load instruction for receiving browser, obtain corresponding
Configuration file.
It should be noted that in one embodiment, after the corresponding browser of starting smart television, adding receiving
When the instruction of support grid page, wherein the instruction for loading webpage includes obtaining the corresponding configuration file of smart television, wherein configuration text
Part is the corresponding current newest configuration file of smart television, and the corresponding current newest configuration file of smart television and dispensing are flat
Configuration file version on platform is consistent, and therefore, configuration file can update upgrading.
Further, in one embodiment, the content of configuration file, under normal circumstances, the content of configuration file by
Backstage engineer presets.
Step S20 parses the configuration file, obtains corresponding parsing result;
In the present embodiment, the configuration file is parsed, obtains corresponding parsing result.
Specifically, in one embodiment, it should be noted that the format of configuration file in parsing configuration file is
XML (eXtensibleMarkupLanguage, extensible markup language), the analysis program of configuration file is advised according to XML format
Model is parsed, and when parsing XML configuration file, is defined configuration information in XML configuration file according to developer and is parsed,
Configuration file parsing result obtained after parsing forms a global object, wherein global object either certain Object Creation,
Be also possible to create from anywhere in the program of smart television, global object be can by all object references of program, therefore,
Global object can be the object of class by all module accesses of program, global object, it encapsulates the data of a Hash table
Structure.
Whether step S30 detects comprising configuration item in the parsing result, if so, thening follow the steps S40;
Step S40 identifies the corresponding configuration information of the configuration item, and detects in the configuration information with the presence or absence of correspondence
Specified kernel, if so, thening follow the steps S50;
Step S50 is created in the third party when the specified kernel is third party's kernel based on the configuration information
Core.
In the present embodiment, global object is obtained, is based on the corresponding parsing result of the global object, detecting in parsing result is
No includes configuration item, if including configuration item in the corresponding parsing result of global object, obtains configuration item, and identify configuration item
Corresponding configuration information detects whether that there are corresponding specified kernels according to the corresponding configuration information of configuration item, if configuration item pair
Corresponding specified kernel is detected the presence of in the configuration information answered, then when specified kernel is third party's kernel, based on confidence
Breath creation third party's kernel.
It should be noted that in one embodiment, global object is obtained, based on the corresponding parsing knot of the global object
Fruit, it is empty and configuration file content is non-empty that the parsing result of configuration file, which includes configuration file content,.
Specifically, in one embodiment, the corresponding parsing result of global object is obtained, is according to parsing result detection
No there are corresponding configuration items, if it is empty that parsing result, which is configuration file content, it is determined that configuration item is not present, if parsing result
It is non-empty for configuration file content, it is determined that there are configuration items.
Specifically, in one embodiment, if in the corresponding parsing result of global object including configuration item, obtaining should
The title of configuration item, according to the configuration information of the corresponding configuration item of the name acquiring of the configuration item, thus matching based on configuration item
Confidence breath judges whether there is corresponding instruction kernel.
It should be noted that in one embodiment, the title of configuration item and the title of configuration item are corresponding with confidence
Breath needs before parsing configuration file, and by backstage, engineer is preset, and the title of configuration item and the title of configuration item are corresponding
Configuration information correspond.
Specifically, in one embodiment, specified kernel includes third party's kernel and default kernel, is referred to determining to exist
When determining kernel, according to the corresponding configuration information of specified kernel, judge that the specified kernel is third party's kernel or defaults kernel, when
When determining that specified kernel is third party's kernel, third party's kernel is created based on corresponding configuration information.
Specifically, in one embodiment, when detecting the parsing result after parsing to be configuration file content being sky,
It determines and configuration item is not present, and the not configuration information of configuration item and specified kernel, then create default kernel execution instance, use default
Kernel completes webpage load.
Specifically, in one embodiment, if there are corresponding specified kernels in detection configuration information, and kernel is specified
To default kernel, then ignore corresponding configuration information, creation default kernel realizes webpage load.
The kernel creation method that the present embodiment proposes, when by being instructed in the webpage load for receiving browser, acquisition pair
The configuration file answered parses configuration file, obtains corresponding parsing result, and whether detect in parsing result includes configuration item, if
It is then to identify the corresponding configuration information of configuration item, and detect in configuration information with the presence or absence of corresponding specified kernel, and if it exists,
Then when specified kernel is third party's kernel, third party's kernel is created based on configuration information, to realize to browser
The creation of kernel can satisfy the use demand of different user, improve the experience sense that user uses webpage.
Further, described as shown in figure 3, Fig. 3 is the flow diagram of kernel creation method second embodiment of the present invention
Step S40 includes:
Step S401 detects in the configuration information whether include the indicated release of the specified kernel, if so, executing
Step S402;
Step S402 determines to specify whether the current version of kernel is greater than or equal to the finger described in the smart television
Whether the system environments for determining version and the smart television meets the operation demand of third party's kernel, if so, executing step
Rapid S403, if it is not, thening follow the steps S404;
Step S403 creates third party's kernel;
Step S404, creation default kernel.
In the present embodiment, detect in configuration information whether include the indicated release of specified kernel, if so, determining intelligence electricity
Specify whether the current version of kernel is greater than or equal to indicated release and whether the system environments of smart television meets third depending in
The operation demand of square kernel, if so, creation third party's kernel, if it is not, then creating default kernel.
Specifically, in one embodiment, it when there is specified kernel in determining the configuration item after parsing, obtains specified
Packet name in the corresponding configuration information of kernel judges the type and version of specified kernel according to the corresponding packet name of specified kernel,
In, specifying kernel includes default kernel and third party's kernel.
It should be noted that in one embodiment, the type and version of specified kernel are with corresponding packet name in determination
It before specified kernel, needs to be preset and be associated in configuration file, the configuration information of different configuration items is corresponding
Different kernels, therefore generate different switchover policy.
Specifically, in one embodiment, if determining that specified kernel is third party according to the corresponding packet name of specified kernel
Kernel, and there are indicated releases, then determine whether the corresponding version of third party's kernel is more than or equal to indicated release, and in third party
Core runtime environment whether there is, wherein the indicated release is the browser kernel running environment installed on intelligent TV set
Version.
Further, in one embodiment, if the corresponding version of third party's kernel is greater than or equal to intelligent TV set
The version of the browser kernel running environment of upper installation, and third party's kernel exists, and creates third party's kernel execution instance, switches to the
Tripartite's kernel completes webpage load.
It should be noted that in one embodiment, if third party's kernel runtime environment exists, smart television
System environments meets the operation demand of third party's kernel, and third party's kernel runtime environment is answered with an Android system android
Form exists, and there is packet name therefore to judge that third party's kernel runtime environment whether there is, pass through the packet of android
Manager is to determine whether there are the versions of third party's kernel runtime environment and the specified kernel of identification, in addition, verifying in creation
Example is realized using Android reflection mechanism.
Specifically, in one embodiment, it is installed if third party's kernel corresponding version is less than on intelligent TV set
The version of browser kernel running environment, then be not present third party's kernel, and creation default kernel execution instance switches to corresponding specified
Kernel realizes webpage load.
It should be noted that for example, the version of specified kernel is 103008, if the kernel version on smart television is
104000, then the kernel version on smart television is greater than the version of specified kernel, then the kernel version of smart television is newer, can be with
It uses.
The kernel creation method that the present embodiment proposes, by whether including the specified version for specifying kernel in detection configuration information
This, if so, determining to specify whether the current version of kernel is greater than or equal to indicated release and smart television in smart television
Whether system environments meets the operation demand of third party's kernel, if so, creation third party's kernel, if it is not, then creating in default
Core, realizes the creation based on configuration information to third party's kernel, thus can as the case may be to kernel carry out selection and
Creation, enhances webpage loading performance, has ensured the stability of browser service.
Further, described as shown in figure 4, Fig. 4 is the flow diagram of kernel creation method 3rd embodiment of the present invention
After step S40, further includes:
Step S60, if it is not, then determining whether the system environments of the smart television meets the operation of third party's kernel
Demand, if so, S70 is thened follow the steps, if it is not, thening follow the steps S80;
Step S70 creates third party's kernel;
Step S80, creation default kernel.
In the present embodiment, if corresponding specified kernel is not present in detection configuration information, the system of smart television is determined
Whether environment meets the operation demand of third party's kernel, if so, creation third party's kernel, if it is not, then creating in default
Core.
It should be noted that in one embodiment, the specified corresponding configuration information of kernel need to be existed by backstage engineer
It is preset in configuration file before parsing configuration file.
For example, the configuration information of specified kernel: com.coocaa.webview.engine.xwalkEngine (third party
Kernel), com.coocaa.webview.engine.systemEngine (default kernel) etc..
Specifically, in one embodiment, it detects in configuration information there is no when corresponding specified kernel, determines intelligence
Whether the system environments of TV meets the operation demand of third party's kernel, wherein if third party's kernel runtime environment is deposited
Then the system environments of smart television meets the operation demand of third party's kernel, it should be noted that when third party's kernel is run
Environment exists in the form that an Android system android is applied, and has packet name, therefore, when judging the operation of third party's kernel
Environment whether there is, by the package manager of android to determine whether there are third party's kernel runtime environments and identification to refer to
Determine the version sheet of kernel.
Further, in one embodiment, if the package manager of android is sentenced according to the corresponding packet name of configuration information
Break there are third party's kernel runtime environment, then the system environments of smart television meets the operation demand of third party's kernel, then creates
Third party's kernel is built, webpage load is completed.
Further, in one embodiment, if the package manager of android is sentenced according to the corresponding packet name of configuration information
Disconnected that third party's kernel runtime environment is not present, then the system environments of smart television is unsatisfactory for the operation demand of third party's kernel,
Default kernel is then created, webpage load is completed.
The kernel creation method that the present embodiment proposes, if by the way that corresponding specified kernel is not present in detection configuration information,
Then determine whether the system environments of smart television meets the operation demand of third party's kernel, if so, in creation third party
Core, if it is not, default kernel is then created, to realize the selection and creation to third party's kernel and default kernel.
Further, described as shown in figure 5, Fig. 5 is the flow diagram of kernel creation method fourth embodiment of the present invention
Include: before step S10
Step S90 detects whether the update notification of the configuration file issued there are corresponding release platform, if so, holding
Row step S100;
Step S100 downloads the corresponding new configuration file of the update notification from release platform, and verifies the new configuration
File;
Configuration file is updated to the new configuration file when receiving verification and passing through information by step S110.
In the present embodiment, when receiving the network information, the configuration text issued there are corresponding release platform is detected whether
The update notification of part, and if it exists, then from the corresponding new configuration file of release platform downloading update notification, and verify new configuration text
Configuration file is updated to the new configuration file when receiving verification and passing through information by part.
Specifically, in one embodiment, the smart television is after powering and when being connected to radio network information, detection
With the presence or absence of the update notification for the configuration file that corresponding release platform issues, wherein it should be noted that release platform has
There is provided file download update, the ability of application upgrade iteration will be on release platform when release platform receives new configuration file
Former configuration file be updated to new configuration file, and some resource text that release platform can apply some on smart television
Part is updated, and the independent utility of linked network can also be installed on smart television, therefore, the dispensing power which supports
Degree is smaller, can complete the function iteration or local updating of smart television, faster to meet the fining of product or operation
Demand.
Further, in one embodiment, the update for the configuration file that corresponding release platform issues if it does not exist
Notice obtains existing configuration file in smart television.
Optionally, step S100 includes:
Step a downloads the corresponding new configuration file of the update notification from release platform;
Step b verifies the new configuration file according to checking routine is preset.
In the present embodiment, update notification, then download the corresponding new configuration file of update notification from release platform if it exists, according to
According to default checking routine, new configuration file is verified.
Further, in one embodiment, there are corresponding update notifications, then send downloading to release platform and newly match
The instruction for setting file, when receiving the new configuration file of instruction feedback of the release platform based on the downloading new configuration file, under
The new configuration file is carried, the new configuration file information is based on, is verified, it, will configuration text when receiving verification and passing through information
Part is updated to new configuration file.
Specifically, in one embodiment, when receiving new configuration file, start checking routine, thrown receiving
It, will be pre- in the checkout code file information and smart television when being laid flat checkout code file when platform sends new configuration file while sent
If information of check code carries out matching verification, if being consistent, verification passes through.Wherein, default information of check code need to be verified in starting
It before program, is preset in smart television, checking routine such as MD5 verification.
The kernel creation method that the present embodiment proposes passes through the configuration text for detecting whether to issue there are corresponding release platform
The update notification of part, and if it exists, then from the corresponding new configuration file of release platform downloading update notification, and verify new configuration text
Configuration file is updated to new configuration file, to realize to configuration file more when receiving verification and passing through information by part
Newly, technical support is provided to automatically switch to new kernel when load webpage.
Further, described as shown in fig. 6, Fig. 6 is the flow diagram of the 5th embodiment of kernel creation method of the present invention
Step S50 includes:
Step S501 obtains the occupied space of third party's kernel, detects whether the occupied space is less than or equal to
The available memory space of the smart television, if so, S502 is thened follow the steps, if it is not, thening follow the steps S503;
Step S502 creates third party's kernel based on the configuration information;
Step S503, creation default kernel.
In the present embodiment, determining that there are when the update notification of configuration file, obtain the occupied space of third party's kernel, inspection
The available memory space whether occupied space is less than or equal to smart television is surveyed, if so, creating third based on configuration information
Square kernel, if it is not, then creating default kernel.
Specifically, in one embodiment, it is determining there are when the update notification of configuration file, is obtaining third party's kernel
Occupied space, detect the available memory space whether occupied space is less than or equal to smart television, if detect the occupancy sky
Between be greater than the available memory space of smart television, then available memory space insufficient text prompt letter of the output comprising smart television
Breath to remind user's kernel runtime environment to launch failure, and creates default kernel, realizes webpage load.
It should be noted that in one embodiment, the insufficient prompt information of the available memory space of smart television needs
Before whether the occupied space of detection new configuration file is less than or equal to the available memory space of smart television in smart television
It is preset.
The kernel creation method that the present embodiment proposes obtains the by determining there are when the update notification of configuration file
The occupied space of tripartite's kernel detects the available memory space whether occupied space is less than or equal to smart television, if so,
Third party's kernel is created based on configuration information, if it is not, default kernel is then created, to run Shi Keyong to kernel in smart television
Memory headroom environment is detected, to realize to full when being created the success of third party's kernel based on configuration information and failed
Surface treatment has ensured the stability of browser service.
Further, described as shown in fig. 7, Fig. 7 is the flow diagram of kernel creation method sixth embodiment of the present invention
Step S40 further include:
Step S405, the configuration item, then identify the corresponding configuration information of the configuration item if it exists;
Step S406 is detected and be whether there is the corresponding preset configuration information of the configuration information in presetting database, if so,
S407 is thened follow the steps, if it is not, thening follow the steps S408;
Step S407 determines that there are the specified kernels;
Step S408 is determined and the specified kernel is not present.
In the present embodiment, configuration item, then identify the corresponding configuration information of configuration item if it exists, detects in presetting database
With the presence or absence of the corresponding preset configuration information of the configuration information, corresponding preset configuration information if it exists, it is determined that there is finger
Determine kernel, if it does not exist corresponding preset configuration information, it is determined that there is no specified kernels.
Further, in one embodiment, in the setting instruction for receiving presetting database, specified kernel is obtained
Corresponding configuration item title and corresponding configuration information, by the corresponding configuration item title of specified kernel and corresponding configuration information into
Row association is saved to presetting database, so that subsequent search in the preset database is with the presence or absence of the specified corresponding pre- establishing of kernel
Confidence breath.
The kernel creation method that the present embodiment proposes then identifies the corresponding configuration of configuration item by configuration item if it exists
Information detects and whether there is the corresponding preset configuration information of the configuration information in presetting database, corresponding default if it exists
Configuration information, it is determined that there are specified kernel, corresponding preset configuration information if it does not exist, it is determined that there is no specified kernel,
The determination that whether there is to specified kernel is realized, provides technical support for the switching of subsequent kernel.
Further, described as shown in figure 8, Fig. 8 is the flow diagram of the 7th embodiment of kernel creation method of the present invention
After step S40, further includes:
Step S120 then determines whether the system environments of the smart television meets third party's kernel if it does not exist
Operation demand, if so, S130 is thened follow the steps, if it is not, thening follow the steps S140;
Step S130 creates third party's kernel;
Step S140, creation default kernel.
In the present embodiment, if corresponding specified kernel is not present in detection configuration information, the system of smart television is determined
Whether environment meets the operation demand of third party's kernel, if so, creation third party's kernel, if it is not, default kernel is then created, it is complete
It is loaded at webpage.
Specifically, in one embodiment, it detects in configuration information there is no when corresponding specified kernel, determines intelligence
Whether the system environments of TV meets the operation demand of third party's kernel, wherein if third party's kernel runtime environment is deposited
, then the system environments of smart television meets the operation demand of third party's kernel, if third party's kernel runtime environment is not present,
Then the system environments of smart television is unsatisfactory for the operation demand of third party's kernel, it should be noted that when third party's kernel is run
Environment exists in the form that an Android system android is applied, and has packet name, therefore, when judging the operation of third party's kernel
Environment whether there is, by the package manager of android to determine whether there are third party's kernel runtime environments and identification to refer to
Determine the version of kernel.
The kernel creation method that the present embodiment proposes, if by the way that corresponding specified kernel is not present in detection configuration information,
Then determine whether the system environments of smart television meets the operation demand of third party's kernel, if so, creation third party's kernel, if
It is no, then default kernel is created, is not present in the case of corresponding specified kernel to realize in configuration information, to third party's kernel
With the selection and creation of default kernel.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage has kernel
Program is created, the kernel creation program can be executed by one or more than one processor to be used for:
In the webpage load instruction for receiving browser, corresponding configuration file is obtained;
The configuration file is parsed, corresponding parsing result is obtained;
It whether detects in the parsing result comprising configuration item;
If so, identifying the corresponding configuration information of the configuration item, and detect in the configuration information with the presence or absence of correspondence
Specified kernel;
If it exists, then when the specified kernel is third party's kernel, the third party is created based on the configuration information
Kernel.
Further, following operation is also realized when the kernel creation program is executed by processor:
Detect in the configuration information whether include the specified kernel indicated release;
If so, determining to specify whether the current version of kernel is greater than or equal to described specify described in the smart television
Whether version and the system environments of the smart television meet the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Further, following operation is also realized when the kernel creation program is executed by processor:
If it is not, then determining whether the system environments of the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Further, following operation is also realized when the kernel creation program is executed by processor:
Detect whether the update notification of the configuration file issued there are corresponding release platform;
If it exists, then the corresponding new configuration file of the update notification is downloaded from release platform, and verifies the new configuration
File;
When receiving verification and passing through information, configuration file is updated to the new configuration file.
Further, following operation is also realized when the kernel creation program is executed by processor:
The corresponding new configuration file of the update notification is downloaded from release platform;
According to checking routine is preset, the new configuration file is verified.
Further, following operation is also realized when the kernel creation program is executed by processor:
The occupied space for obtaining third party's kernel, detects whether the occupied space is less than or equal to the intelligence electricity
Depending on available memory space;
If so, creating third party's kernel based on the configuration information;
If it is not, then creating default kernel.
Further, following operation is also realized when the kernel creation program is executed by processor:
The configuration item if it exists then identifies the corresponding configuration information of the configuration item;
It detects and whether there is the corresponding preset configuration information of the configuration information in presetting database;
If it exists, it is determined that there are the specified kernels;
If it does not exist, it is determined that the specified kernel is not present.
Further, following operation is also realized when the kernel creation program is executed by processor:
If it does not exist, then determine whether the system environments of the smart television meets the operation need of third party's kernel
It asks;
If so, creating third party's kernel;
If it is not, then creating default kernel.
Computer readable storage medium specific embodiment of the present invention and the basic phase of above-mentioned each embodiment of kernel creation method
Together, details are not described herein.
The present embodiment through the above scheme, when by instructing in the webpage load for receiving browser, obtains corresponding matches
File is set, configuration file is parsed, obtains corresponding parsing result, whether include configuration item, if so, knowing if being detected in parsing result
The corresponding configuration information of other configuration item, and detect in configuration information with the presence or absence of corresponding specified kernel, and if it exists, then specified
When kernel is third party's kernel, third party's kernel is created based on configuration information.There are multiple in smart television by the present invention
When browser kernel, the selection and creation to browser kernel are realized.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of kernel creation method, meets the tendency of in smart television, which is characterized in that the kernel creation method includes following step
It is rapid:
In the webpage load instruction for receiving browser, corresponding configuration file is obtained;
The configuration file is parsed, corresponding parsing result is obtained;
It whether detects in the parsing result comprising configuration item;
If so, identifying the corresponding configuration information of the configuration item, and detect in the configuration information with the presence or absence of corresponding finger
Determine kernel;
If it exists, then when the specified kernel is third party's kernel, third party's kernel is created based on the configuration information.
2. kernel creation method as described in claim 1, which is characterized in that described based on configuration information creation described the
The step of tripartite's kernel includes:
Detect in the configuration information whether include the specified kernel indicated release;
If so, determining to specify whether the current version of kernel is greater than or equal to the specified version described in the smart television
Whether the system environments of this and the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
3. kernel creation method as claimed in claim 2, which is characterized in that in the detection configuration information whether include
After the step of indicated release of the specified kernel, further includes:
If it is not, then determining whether the system environments of the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
4. kernel creation method as described in claim 1, which is characterized in that described to refer in the webpage for receiving browser load
When enabling, before the step of obtaining corresponding configuration file, further includes:
Detect whether the update notification of the configuration file issued there are corresponding release platform;
If it exists, then the corresponding new configuration file of the update notification is downloaded from release platform, and verifies the new configuration file;
When receiving verification and passing through information, configuration file is updated to the new configuration file.
5. kernel creation method as claimed in claim 4, which is characterized in that described to download the update notification from release platform
Corresponding new configuration file, and the step of verifying the new configuration file includes:
The corresponding new configuration file of the update notification is downloaded from release platform;
According to checking routine is preset, the new configuration file is verified.
6. kernel creation method as described in claim 1, which is characterized in that described based on configuration information creation described the
The step of tripartite's kernel includes:
The occupied space for obtaining third party's kernel, detects whether the occupied space is less than or equal to the smart television
Available memory space;
If so, creating third party's kernel based on the configuration information;
If it is not, then creating default kernel.
7. kernel creation method as described in claim 1, which is characterized in that described if so, identifying that the configuration item is corresponding
Configuration information, and the step of detecting in the configuration information with the presence or absence of corresponding specified kernel includes:
The configuration item if it exists then identifies the corresponding configuration information of the configuration item;
It detects and whether there is the corresponding preset configuration information of the configuration information in presetting database;
If it exists, it is determined that there are the specified kernels;
If it does not exist, it is determined that the specified kernel is not present.
8. the kernel creation method as described in any in claim 1-7, which is characterized in that described if so, matching described in identification
The corresponding configuration information of item is set, and after the step of detecting in the configuration information with the presence or absence of corresponding specified kernel, is also wrapped
It includes:
If it does not exist, then determine whether the system environments of the smart television meets the operation demand of third party's kernel;
If so, creating third party's kernel;
If it is not, then creating default kernel.
9. a kind of smart television, which is characterized in that the smart television includes: memory, processor and is stored in the storage
On device and the kernel creation program that can run on the processor, reality when kernel creation program is executed by the processor
Now such as the step of kernel creation method of any of claims 1-8.
10. a kind of computer readable storage medium, which is characterized in that be stored with kernel wound on the computer readable storage medium
Program is built, the kernel creation program realizes that kernel of any of claims 1-8 such as creates when being executed by processor
Method and step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910513214.1A CN110247966B (en) | 2019-06-12 | 2019-06-12 | Kernel creation method, smart television and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910513214.1A CN110247966B (en) | 2019-06-12 | 2019-06-12 | Kernel creation method, smart television and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110247966A true CN110247966A (en) | 2019-09-17 |
CN110247966B CN110247966B (en) | 2021-12-14 |
Family
ID=67886996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910513214.1A Active CN110247966B (en) | 2019-06-12 | 2019-06-12 | Kernel creation method, smart television and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110247966B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110271270A1 (en) * | 2010-04-28 | 2011-11-03 | Novell, Inc. | System and method for upgrading kernels in cloud computing environments |
CN102508710A (en) * | 2011-09-28 | 2012-06-20 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
CN102968341A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser |
CN103248651A (en) * | 2012-02-09 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Performance monitoring method and system, as well as client side and server |
CN103324684A (en) * | 2013-05-31 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Control method and device for browser kernel in mobile terminal and mobile terminal |
CN103617079A (en) * | 2011-09-28 | 2014-03-05 | 北京奇虎科技有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
CN105095291A (en) * | 2014-05-15 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Browser kernel control method and apparatus |
CN106681792A (en) * | 2016-11-14 | 2017-05-17 | 乐视控股(北京)有限公司 | Switching method and switching device of rendering engine and electronic device |
CN106708967A (en) * | 2016-11-30 | 2017-05-24 | 北京小米移动软件有限公司 | Page display method and device |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN109062933A (en) * | 2018-06-14 | 2018-12-21 | 四川斐讯信息技术有限公司 | A kind for the treatment of method and apparatus of pair of browser |
-
2019
- 2019-06-12 CN CN201910513214.1A patent/CN110247966B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110271270A1 (en) * | 2010-04-28 | 2011-11-03 | Novell, Inc. | System and method for upgrading kernels in cloud computing environments |
CN102508710A (en) * | 2011-09-28 | 2012-06-20 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
CN102508710B (en) * | 2011-09-28 | 2014-01-01 | 奇智软件(北京)有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
CN103617079A (en) * | 2011-09-28 | 2014-03-05 | 北京奇虎科技有限公司 | Method and system for switching between IE6 kernel and novel IE kernel |
CN103248651A (en) * | 2012-02-09 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Performance monitoring method and system, as well as client side and server |
CN102968341A (en) * | 2012-10-25 | 2013-03-13 | 北京奇虎科技有限公司 | Method and device for switching different versions of IE (internet explorer) kernels on basis of multi-kernel browser |
CN103324684A (en) * | 2013-05-31 | 2013-09-25 | 贝壳网际(北京)安全技术有限公司 | Control method and device for browser kernel in mobile terminal and mobile terminal |
CN105095291A (en) * | 2014-05-15 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Browser kernel control method and apparatus |
CN106681792A (en) * | 2016-11-14 | 2017-05-17 | 乐视控股(北京)有限公司 | Switching method and switching device of rendering engine and electronic device |
CN106708967A (en) * | 2016-11-30 | 2017-05-24 | 北京小米移动软件有限公司 | Page display method and device |
CN106791978A (en) * | 2016-12-14 | 2017-05-31 | 未来电视有限公司 | Quick version iteration method based on internet television client |
CN109062933A (en) * | 2018-06-14 | 2018-12-21 | 四川斐讯信息技术有限公司 | A kind for the treatment of method and apparatus of pair of browser |
Also Published As
Publication number | Publication date |
---|---|
CN110247966B (en) | 2021-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10664651B2 (en) | Forms conversion and deployment system for mobile devices | |
CN105389222B (en) | A kind of methods, devices and systems of dynamic call native interface | |
CN102622241B (en) | A kind of method for upgrading software and device | |
CN107741844B (en) | Method and device for generating application installation package | |
CN110569130B (en) | Cross-process communication method, device and equipment | |
CN105162841A (en) | Domestic appliance control method and system | |
CN106502747A (en) | A kind of method of application upgrade and mobile terminal | |
CN109634617A (en) | Software installation method, user equipment, storage medium and device | |
EP1775913A1 (en) | Method for controlling multimedia middleware apparatus using metadata | |
CN108024136A (en) | Load method, smart television and the computer-readable recording medium of user interface | |
KR101541112B1 (en) | FOTA system and the method | |
CN110377360A (en) | Method, display terminal and the computer readable storage medium that webview is quickly loaded | |
CN112882772B (en) | Configuration method of application interface of mobile terminal, mobile terminal and storage medium | |
CN106951284B (en) | User interface upgrading method and device based on android system application and intelligent terminal | |
CN108228230A (en) | Upgrade method, terminal and the computer readable storage medium of UFS firmwares | |
CN109885332A (en) | Image quality chip software upgrade method, device, display equipment and storage medium | |
CN109683949A (en) | Pre-installed applications management method, device and storage medium | |
CN108322540A (en) | Customized data lead-in method, terminal and computer readable storage medium | |
CN108572848A (en) | The bottom firmware on line upgrading method, apparatus and storage medium of interactive system | |
CN110502263A (en) | Upgrade package production method, system and computer readable storage medium | |
CN109358872A (en) | Remote firmware updating method, device and computer readable storage medium | |
CN111209016B (en) | Method for updating gray level of mobile application remote resource | |
CN115129574A (en) | Code testing method and device | |
CN103365672A (en) | Method and system for processing description information of application program | |
CN108989428A (en) | Bluetooth terminal upgrade method, server, computer readable storage medium and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 2306, east block, Skyworth semiconductor design building, 18 Gaoxin South 4th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518108 Applicant after: Shenzhen Kukai Network Technology Co.,Ltd. Address before: 518108 Room 601, block C, Skyworth building, 008 Gaoxin South 1st Road, Nanshan District, Shenzhen City, Guangdong Province Applicant before: Shenzhen Coocaa Network Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |