CN110247966B - Kernel creation method, smart television and computer-readable storage medium - Google Patents

Kernel creation method, smart television and computer-readable storage medium Download PDF

Info

Publication number
CN110247966B
CN110247966B CN201910513214.1A CN201910513214A CN110247966B CN 110247966 B CN110247966 B CN 110247966B CN 201910513214 A CN201910513214 A CN 201910513214A CN 110247966 B CN110247966 B CN 110247966B
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.)
Active
Application number
CN201910513214.1A
Other languages
Chinese (zh)
Other versions
CN110247966A (en
Inventor
樊彦博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Coocaa Network Technology Co Ltd
Original Assignee
Shenzhen Coocaa Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coocaa Network Technology Co Ltd filed Critical Shenzhen Coocaa Network Technology Co Ltd
Priority to CN201910513214.1A priority Critical patent/CN110247966B/en
Publication of CN110247966A publication Critical patent/CN110247966A/en
Application granted granted Critical
Publication of CN110247966B publication Critical patent/CN110247966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-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 kernel creating method, an intelligent television and a computer readable storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a corresponding configuration file when a webpage loading instruction of a browser is received, analyzing the configuration file, obtaining a corresponding analysis result, detecting whether the analysis result contains a configuration item, identifying configuration information corresponding to the configuration item if the analysis result contains the configuration item, detecting whether a corresponding appointed inner core exists in the configuration information, and creating a third-party inner core based on the configuration information if the appointed inner core exists. According to the invention, when a plurality of browser kernels exist in the smart television, the browser kernels are selected and created.

Description

Kernel creation method, smart television and computer-readable storage medium
Technical Field
The disclosure relates to the technical field of internet information processing, and in particular, to a kernel creating method, a smart television and a computer-readable storage medium.
Background
With the continuous development and application of internet technology, browsers play more and more important roles in smart television systems, the most core part of a browser is a browser kernel, the browser kernel provides the capabilities of loading, analyzing, rendering, interacting and the like of web pages, directly determines the experience of a user using the web pages, different browser kernels have different interpretations of web page writing languages, and in addition, the display effects of the same web page in browsers with different kernels can also be different.
Currently, many companies in smart tv systems use a B/S architecture (Browser/Server) to build a service system, i.e. the smart tv system only installs one Browser. However, when there are multiple browser cores in the smart television, there is a problem of selecting which browser core loads the web page.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a kernel creating method and device, a smart television and a computer readable storage medium, aiming at solving the problem of realizing the selection and creation of different browser kernels when a plurality of browser kernels exist in the smart television.
In order to achieve the above object, the present invention provides a kernel creating method, including the following steps:
when a webpage loading instruction of a browser is received, acquiring a corresponding configuration file;
analyzing the configuration file to obtain a corresponding analysis result;
detecting whether the analysis result contains a configuration item;
if yes, identifying configuration information corresponding to the configuration items, and detecting whether a corresponding specified kernel exists in the configuration information;
and if so, creating the third-party kernel based on the configuration information when the designated kernel is the third-party kernel.
Optionally, the step of creating the third-party kernel based on the configuration information includes:
detecting whether the configuration information comprises a specified version of the specified kernel;
if so, judging whether the current version of the specified kernel in the intelligent television is greater than or equal to the specified version and whether the system environment of the intelligent television meets the operation requirement of the third-party kernel;
if so, creating the third-party kernel;
if not, a default kernel is created.
Optionally, after the step of detecting whether the configuration information includes the specified version of the specified kernel, the method further includes:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
Optionally, before the step of acquiring the corresponding configuration file when receiving the webpage loading instruction of the browser, the method further includes:
detecting whether an update notice of a configuration file sent by a corresponding launching platform exists or not;
if yes, downloading a new configuration file corresponding to the update notification from the launching platform, and verifying the new configuration file;
and updating the configuration file into the new configuration file when the verification passing information is received.
Optionally, the step of downloading the new configuration file corresponding to the update notification from the delivery platform, and verifying the new configuration file includes:
downloading a new configuration file corresponding to the update notification from the launching platform;
and checking the new configuration file according to a preset checking program.
Optionally, the step of creating the third-party kernel based on the configuration information includes:
acquiring the occupied space of the third-party kernel, and detecting whether the occupied space is smaller than or equal to the available memory space of the smart television;
if yes, creating the third-party kernel based on the configuration information;
if not, a default kernel is created.
Optionally, if yes, the step of identifying configuration information corresponding to the configuration item, and detecting whether a corresponding specified kernel exists in the configuration information includes:
if the configuration item exists, identifying configuration information corresponding to the configuration item;
detecting whether preset configuration information corresponding to the configuration information exists in a preset database;
if so, determining that the specified kernel exists;
if not, determining that the specified kernel does not exist.
Optionally, after the step of identifying the configuration information corresponding to the configuration item and detecting whether there is a corresponding specified kernel in the configuration information if yes, the method further includes:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
In addition, to achieve the above object, the present invention further provides a smart tv, including: a memory, a processor and a kernel creation program stored on the memory and executable on the processor, the kernel creation program when executed by the processor implementing the steps of the kernel creation method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a kernel creating program which, when executed by a processor, implements the steps of the kernel creating method as described above.
According to the technical scheme, when a webpage loading instruction of a browser is received, the corresponding configuration file is obtained, the configuration file is analyzed, the corresponding analysis result is obtained, whether the analysis result contains a configuration item or not is detected, if yes, the configuration information corresponding to the configuration item is identified, whether a corresponding appointed inner core exists in the configuration information or not is detected, and if yes, the third-party inner core is created based on the configuration information when the appointed inner core is the third-party inner core. According to the invention, when a plurality of browser kernels exist in the smart television, the browser kernels are selected and created.
Drawings
Fig. 1 is a schematic structural diagram of a smart television in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a kernel creation method according to the present invention;
FIG. 3 is a flowchart illustrating a kernel creation method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a kernel creation method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a kernel creation method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a kernel creation method according to the present invention;
FIG. 7 is a flowchart illustrating a sixth embodiment of a kernel creation method according to the present invention;
fig. 8 is a flowchart illustrating a seventh embodiment of a kernel creation method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: the method comprises the steps of obtaining a corresponding configuration file when a webpage loading instruction of a browser is received, analyzing the configuration file, obtaining a corresponding analysis result, detecting whether the analysis result contains a configuration item, identifying configuration information corresponding to the configuration item if the analysis result contains the configuration item, detecting whether a corresponding appointed inner core exists in the configuration information, and creating a third-party inner core based on the configuration information if the appointed inner core exists. By the technical scheme of the embodiment of the invention, the problems of selection and creation of the browser kernels when a plurality of browser kernels exist in the smart television are solved.
The embodiment of the invention provides an intelligent television.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a smart television in a hardware operating environment according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the smart tv may include: a processor 1001, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the smart tv architecture shown in fig. 1 does not constitute a limitation of the smart tv architecture and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a kernel creation program.
In the present invention, the smart television calls the kernel creation program stored in the memory 1005 through the processor 1001, and executes the following operations:
when a webpage loading instruction of a browser is received, acquiring a corresponding configuration file;
analyzing the configuration file to obtain a corresponding analysis result;
detecting whether the analysis result contains a configuration item;
if yes, identifying configuration information corresponding to the configuration items, and detecting whether a corresponding specified kernel exists in the configuration information;
and if so, creating the third-party kernel based on the configuration information when the designated kernel is the third-party kernel.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
detecting whether the configuration information comprises a specified version of the specified kernel;
if so, judging whether the current version of the specified kernel in the intelligent television is greater than or equal to the specified version and whether the system environment of the intelligent television meets the operation requirement of the third-party kernel;
if so, creating the third-party kernel;
if not, a default kernel is created.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
detecting whether an update notice of a configuration file sent by a corresponding launching platform exists or not;
if yes, downloading a new configuration file corresponding to the update notification from the launching platform, and verifying the new configuration file;
and updating the configuration file into the new configuration file when the verification passing information is received.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
downloading a new configuration file corresponding to the update notification from the launching platform;
and checking the new configuration file according to a preset checking program.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
acquiring the occupied space of the third-party kernel, and detecting whether the occupied space is smaller than or equal to the available memory space of the smart television;
if yes, creating the third-party kernel based on the configuration information;
if not, a default kernel is created.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
if the configuration item exists, identifying configuration information corresponding to the configuration item;
detecting whether preset configuration information corresponding to the configuration information exists in a preset database;
if so, determining that the specified kernel exists;
if not, determining that the specified kernel does not exist.
Further, the processor 1001 may call a kernel creation program stored in the memory 1005, and also perform the following operations:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
According to the scheme, when a webpage loading instruction of the browser is received, the corresponding configuration file is obtained, the configuration file is analyzed, the corresponding analysis result is obtained, whether the analysis result contains the configuration item or not is detected, if yes, the configuration information corresponding to the configuration item is identified, whether the corresponding appointed inner core exists in the configuration information or not is detected, if yes, the third-party inner core is created based on the configuration information when the appointed inner core is the third-party inner core, and the problems of selection and creation of the browser inner cores when a plurality of browser inner cores exist in the smart television are solved.
Based on the hardware structure, the embodiment of the kernel creating method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a kernel creation method according to the present invention.
In a first embodiment, the kernel creation method includes the steps of:
step S10, when a webpage loading instruction of a browser is received, acquiring a corresponding configuration file;
in this embodiment, after the smart television is started, when a webpage loading instruction of a browser is received, a corresponding configuration file is acquired.
It should be noted that, in an embodiment, after a browser corresponding to the smart television is started, when an instruction for loading a web page is received, where the instruction for loading the web page includes obtaining a configuration file corresponding to the smart television, where the configuration file is a current latest configuration file corresponding to the smart television, and a version of the current latest configuration file corresponding to the smart television is consistent with a version of the configuration file on the delivery platform, so that the configuration file may be updated and upgraded.
Further, in one embodiment, the content of the configuration file is preset by a back-end engineer, typically.
Step S20, analyzing the configuration file to obtain a corresponding analysis result;
in this embodiment, the configuration file is parsed to obtain a corresponding parsing result.
Specifically, in an embodiment, it is to be noted that a format of a configuration file in the configuration file is parsed as XML (extensible markup language), a parser of the configuration file parses according to an XML format specification, when parsing the XML configuration file, parsing is performed according to configuration information defined by a developer in the XML configuration file, a parsing result obtained after parsing the configuration file forms a global object, where the global object may be created as an object or anywhere in a program of a smart television, and the global object may be referred to by all objects of the program, so that the global object may be accessed by all modules of the program, and the global object is a class object and encapsulates a data structure of a hash table.
Step S30, detecting whether the analysis result contains configuration items, if yes, executing step S40;
step S40, identifying the configuration information corresponding to the configuration item, and detecting whether the configuration information has a corresponding designated kernel, if yes, executing step S50;
step S50, when the designated kernel is a third-party kernel, creating the third-party kernel based on the configuration information.
In this embodiment, a global object is obtained, whether a configuration item is included in an analysis result is detected based on the analysis result corresponding to the global object, if the configuration item is included in the analysis result corresponding to the global object, the configuration item is obtained, configuration information corresponding to the configuration item is identified, whether a corresponding specified kernel exists is detected according to the configuration information corresponding to the configuration item, and if the corresponding specified kernel exists is detected in the configuration information corresponding to the configuration item, a third-party kernel is created based on the configuration information when the specified kernel is a third-party kernel.
In an embodiment, a global object is obtained, and based on an analysis result corresponding to the global object, the analysis result of the profile includes that the content of the profile is null and that the content of the profile is not null.
Specifically, in an embodiment, an analysis result corresponding to the global object is obtained, whether a corresponding configuration item exists is detected according to the analysis result, if the analysis result is that the content of the configuration file is empty, it is determined that the configuration item does not exist, and if the analysis result is that the content of the configuration file is not empty, it is determined that the configuration item exists.
Specifically, in an embodiment, if the parsing result corresponding to the global object includes a configuration item, the name of the configuration item is obtained, and the configuration information of the corresponding configuration item is obtained according to the name of the configuration item, so as to determine whether the corresponding instruction core exists based on the configuration information of the configuration item.
It should be noted that, in an embodiment, the names of the configuration items and the configuration information corresponding to the names of the configuration items need to be preset by a backend engineer before parsing the configuration file, and the names of the configuration items and the configuration information corresponding to the names of the configuration items correspond to each other one by one.
Specifically, in an embodiment, the designated kernel includes a third-party kernel and a default kernel, when the designated kernel is determined to exist, whether the designated kernel is the third-party kernel or the default kernel is determined according to configuration information corresponding to the designated kernel, and when the designated kernel is determined to be the third-party kernel, the third-party kernel is created based on the corresponding configuration information.
Specifically, in an embodiment, when it is detected that the analyzed result is that the content of the configuration file is empty, it is determined that no configuration item exists, and no configuration information of the configuration item and no specified kernel exist, a default kernel instance is created, and the default kernel is used to complete the loading of the web page.
Specifically, in an embodiment, if it is detected that a corresponding specified kernel exists in the configuration information and the kernel is specified as a default kernel, the corresponding configuration information is ignored, the default kernel is created, and the web page loading is realized.
According to the kernel creating method provided by the embodiment, when a webpage loading instruction of a browser is received, a corresponding configuration file is obtained, the configuration file is analyzed, a corresponding analysis result is obtained, whether a configuration item is included in the analysis result is detected, if yes, configuration information corresponding to the configuration item is identified, whether a corresponding appointed kernel exists in the configuration information is detected, and if yes, the third-party kernel is created based on the configuration information when the appointed kernel is the third-party kernel, so that the creation of the browser kernel is realized, the use requirements of different users can be met, and the experience of the user in using the webpage is improved.
Further, as shown in fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the kernel creating method according to the present invention, where the step S40 includes:
step S401, detecting whether the configuration information includes the specified version of the specified kernel, if yes, executing step S402;
step S402, judging whether the current version of the specified kernel in the intelligent television is greater than or equal to the specified version and whether the system environment of the intelligent television meets the operation requirement of the third-party kernel, if so, executing step S403, and if not, executing step S404;
step S403, creating the third-party kernel;
step S404, a default kernel is created.
In this embodiment, whether the configuration information includes the specified version of the specified kernel is detected, if so, it is determined whether the current version of the specified kernel in the smart television is greater than or equal to the specified version and whether the system environment of the smart television meets the operation requirement of a third-party kernel, if so, the third-party kernel is created, and if not, a default kernel is created.
Specifically, in an embodiment, when it is determined that a designated kernel exists in the parsed configuration item, a package name in the configuration information corresponding to the designated kernel is obtained, and the type and version of the designated kernel are determined according to the package name corresponding to the designated kernel, where the designated kernel includes a default kernel and a third-party kernel.
It should be noted that, in an embodiment, before determining whether the specified kernel exists, the type and version of the specified kernel and the corresponding package name need to be preset and associated in a configuration file, and configuration information of different configuration items corresponds to different kernels, so that different switching policies are generated.
Specifically, in an embodiment, if it is determined that the designated kernel is the third-party kernel according to the package name corresponding to the designated kernel and the designated version exists, it is determined whether the version corresponding to the third-party kernel is greater than or equal to the designated version and whether the third-party kernel runtime environment exists, where the designated version is the version of the browser kernel runtime environment installed on the smart television.
Further, in an embodiment, if the version corresponding to the third-party kernel is greater than or equal to the version of the browser kernel operating environment installed on the smart television and the third-party kernel exists, a third-party kernel instance is created, and the third-party kernel is switched to, so that webpage loading is completed.
It should be noted that, in an embodiment, if a third-party kernel runtime environment exists, the system environment of the smart television meets the running requirement of the third-party kernel, and the third-party kernel runtime environment exists in the form of an Android application of an Android system and has a package name, so that whether the third-party kernel runtime environment exists is determined, whether the third-party kernel runtime environment exists and the version of a specified kernel is identified by using a package manager of the Android, and in addition, creating a kernel instance is implemented by using an Android reflection mechanism.
Specifically, in an embodiment, if the version corresponding to the third-party kernel is smaller than the version of the browser kernel operating environment installed on the smart television, the third-party kernel does not exist, a default kernel instance is created, and the default kernel instance is switched to the corresponding specified kernel, so that webpage loading is realized.
For example, the version of the specified kernel is 103008, and if the version of the kernel on the smart television is 104000, the version of the kernel on the smart television is larger than the version of the specified kernel, and the version of the kernel on the smart television is newer and can be used.
According to the kernel creating method provided by the embodiment, whether the configuration information includes the specified version of the specified kernel or not is detected, if so, whether the current version of the specified kernel in the smart television is larger than or equal to the specified version or not is judged, and whether the system environment of the smart television meets the operation requirement of the third-party kernel or not is judged, if so, the third-party kernel is created, and if not, the default kernel is created, so that the creation of the third-party kernel based on the configuration information is realized, therefore, the kernel can be selected and created according to specific conditions, the webpage loading performance is enhanced, and the stability of the browser service is ensured.
Further, as shown in fig. 4, fig. 4 is a flowchart illustrating a third embodiment of the kernel creating method according to the present invention, and after step S40, the method further includes:
step S60, if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel, if so, executing step S70, and if not, executing step S80;
step S70, creating the third-party kernel;
step S80, a default kernel is created.
In this embodiment, if it is detected that there is no corresponding designated kernel in the configuration information, it is determined whether the system environment of the smart television meets the operation requirement of the third-party kernel, if so, the third-party kernel is created, and if not, a default kernel is created.
It should be noted that, in an embodiment, the configuration information corresponding to the specified kernel needs to be preset in the configuration file by a background engineer before parsing the configuration file.
For example, configuration information specifying the kernel: com, cooca, webview, engine, xwalk engine (third party kernel), com, cooca, webview, engine, systemlengine (default kernel), etc.
Specifically, in an embodiment, when it is detected that no corresponding designated kernel exists in the configuration information, it is determined whether a system environment of the smart television meets an operation requirement of a third-party kernel, where if the third-party kernel operation environment exists, the system environment of the smart television meets the operation requirement of the third-party kernel, it is to be noted that the third-party kernel operation environment exists in the form of an android application and has a package name, and therefore, it is determined whether the third-party kernel operation environment exists, and it is determined whether the third-party kernel operation environment exists and a version of the designated kernel is identified by using a package manager of the android.
Further, in an embodiment, if the package manager of the android judges that a third-party kernel runtime environment exists according to the package name corresponding to the configuration information, the system environment of the smart television meets the running requirement of the third-party kernel, and the third-party kernel is created to complete webpage loading.
Further, in an embodiment, if the package manager of the android judges that the third-party kernel runtime environment does not exist according to the package name corresponding to the configuration information, the system environment of the smart television does not meet the running requirement of the third-party kernel, and a default kernel is created to complete webpage loading.
According to the kernel creating method provided by the embodiment, whether the system environment of the smart television meets the operation requirement of the third-party kernel is judged if the corresponding designated kernel does not exist in the configuration information, if so, the third-party kernel is created, and if not, the default kernel is created, so that the selection and creation of the third-party kernel and the default kernel are realized.
Further, as shown in fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of the kernel creating method according to the present invention, where the step S10 includes:
step S90, whether an update notice of the configuration file sent by the corresponding release platform exists is detected, if yes, step S100 is executed;
step S100, downloading a new configuration file corresponding to the update notification from a delivery platform, and verifying the new configuration file;
step S110, when the verification passing information is received, updating the configuration file into the new configuration file.
In this embodiment, when receiving the network information, it is detected whether an update notification of the configuration file sent by the corresponding delivery platform exists, and if so, a new configuration file corresponding to the update notification is downloaded from the delivery platform and verified, and when receiving verification passing information, the configuration file is updated to the new configuration file.
Specifically, in an implementation manner, after the smart television is powered on and when the smart television is connected to the wireless network information, whether an update notification of a configuration file sent by a corresponding distribution platform exists is detected, where it needs to be described that the distribution platform has the capability of providing file download update and application upgrade iteration, when the distribution platform receives a new configuration file, an original configuration file on the distribution platform is updated to the new configuration file, and the distribution platform can update a certain resource file of a certain application on the smart television and can also install an independent application on a network to the smart television.
Further, in an embodiment, if there is no update notification of the configuration file sent by the corresponding delivery platform, the existing configuration file in the smart television is obtained.
Optionally, step S100 includes:
step a, downloading a new configuration file corresponding to the update notification from a release platform;
and b, verifying the new configuration file according to a preset verification program.
In this embodiment, if there is an update notification, a new configuration file corresponding to the update notification is downloaded from the delivery platform, and the new configuration file is verified according to a preset verification program.
Further, in an embodiment, if there is a corresponding update notification, an instruction to download a new configuration file is sent to the delivery platform, when a new configuration file fed back by the delivery platform based on the instruction to download the new configuration file is received, the new configuration file is downloaded, verification is performed based on information of the new configuration file, and when verification passing information is received, the configuration file is updated to the new configuration file.
Specifically, in an implementation manner, when a new configuration file is received, a verification program is started, when a verification code file simultaneously sent when the new configuration file is sent by the launching platform is received, matching and verifying the verification code file information with the preset verification code information in the smart television, and if the verification code file information is consistent with the preset verification code information, the verification passes. The preset check code information needs to be preset in the smart television before a check program is started, wherein the check program is checked by MD 5.
In the kernel creating method provided by this embodiment, whether an update notification of a configuration file sent by a corresponding launch platform exists is detected, if so, a new configuration file corresponding to the update notification is downloaded from the launch platform, the new configuration file is verified, and when verification passing information is received, the configuration file is updated to the new configuration file, so that the configuration file is updated, and technical support is provided for automatically switching to a new kernel when a webpage is loaded.
Further, as shown in fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of the kernel creating method according to the present invention, where the step S50 includes:
step S501, acquiring the occupied space of the third-party kernel, detecting whether the occupied space is smaller than or equal to the available memory space of the smart television, if so, executing step S502, and if not, executing step S503;
step S502, the third-party kernel is created based on the configuration information;
in step S503, a default kernel is created.
In this embodiment, when it is determined that the update notification of the configuration file exists, an occupied space of a third-party kernel is obtained, whether the occupied space is smaller than or equal to an available memory space of the smart television is detected, if yes, the third-party kernel is created based on the configuration information, and if not, a default kernel is created.
Specifically, in an implementation manner, when it is determined that an update notification of a configuration file exists, an occupied space of a third-party kernel is obtained, whether the occupied space is smaller than or equal to an available memory space of a smart television is detected, and if the occupied space is detected to be larger than the available memory space of the smart television, text prompt information including that the available memory space of the smart television is insufficient is output to remind a user that kernel runtime environment delivery fails, a default kernel is created, and webpage loading is achieved.
It should be noted that, in an embodiment, the prompt message indicating that the available memory space of the smart television is insufficient needs to be preset in the smart television before detecting whether the occupied space of the new configuration file is less than or equal to the available memory space of the smart television.
According to the kernel creating method provided by the embodiment, when the update notification of the configuration file is determined to exist, the occupied space of the kernel of the third party is obtained, whether the occupied space is smaller than or equal to the available memory space of the smart television is detected, if yes, the kernel of the third party is created based on the configuration information, and if not, the default kernel is created, so that the available memory space environment during the operation of the kernel in the smart television is detected, therefore, the comprehensive processing of creating the kernel of the third party based on the configuration information is realized, and the stability of the browser service is guaranteed.
Further, as shown in fig. 7, fig. 7 is a flowchart illustrating a sixth embodiment of the kernel creating method according to the present invention, and step S40 further includes:
step S405, if the configuration item exists, identifying the configuration information corresponding to the configuration item;
step S406, detecting whether preset configuration information corresponding to the configuration information exists in a preset database, if so, executing step S407, and if not, executing step S408;
step S407, determining that the designated kernel exists;
step S408, it is determined that the specified kernel does not exist.
In this embodiment, if a configuration item exists, the configuration information corresponding to the configuration item is identified, whether preset configuration information corresponding to the configuration information exists in a preset database is detected, if the corresponding preset configuration information exists, it is determined that a specified kernel exists, and if the corresponding preset configuration information does not exist, it is determined that the specified kernel does not exist.
Further, in an embodiment, when a setting instruction of the preset database is received, a configuration item name and corresponding configuration information corresponding to the specified kernel are obtained, and the configuration item name and the corresponding configuration information corresponding to the specified kernel are stored in the preset database in an associated manner, so that whether the preset configuration information corresponding to the specified kernel exists or not is searched in the preset database subsequently.
In the kernel creating method provided by this embodiment, if a configuration item exists, configuration information corresponding to the configuration item is identified, whether preset configuration information corresponding to the configuration information exists in a preset database is detected, if the corresponding preset configuration information exists, it is determined that a specified kernel exists, and if the corresponding preset configuration information does not exist, it is determined that the specified kernel does not exist, so that it is realized that whether the specified kernel exists is determined, and technical support is provided for subsequent kernel switching.
Further, as shown in fig. 8, fig. 8 is a flowchart illustrating a seventh embodiment of the kernel creating method according to the present invention, and after step S40, the method further includes:
step 120, if not, determining whether the system environment of the smart television meets the operation requirement of the third-party kernel, if so, executing step 130, otherwise, executing step 140;
step S130, creating the third-party kernel;
step S140, a default kernel is created.
In this embodiment, if it is detected that there is no corresponding designated kernel in the configuration information, it is determined whether the system environment of the smart television meets the operation requirement of a third-party kernel, if so, the third-party kernel is created, and if not, a default kernel is created, so as to complete web page loading.
Specifically, in an implementation manner, when it is detected that no corresponding designated kernel exists in the configuration information, it is determined whether a system environment of the smart television meets an operation requirement of a third-party kernel, where if the third-party kernel operation environment exists, the system environment of the smart television meets the operation requirement of the third-party kernel, and if the third-party kernel operation environment does not exist, the system environment of the smart television does not meet the operation requirement of the third-party kernel, it should be noted that the third-party kernel operation environment exists in the form of an android application and has a package name, and therefore, whether the third-party kernel operation environment exists is determined, and whether the third-party kernel operation environment exists and a version of the designated kernel is determined by using a package manager of the android.
According to the kernel creating method provided by the embodiment, whether the system environment of the smart television meets the operation requirement of the third-party kernel is judged if the corresponding designated kernel does not exist in the configuration information, if so, the third-party kernel is created, and if not, the default kernel is created, so that the third-party kernel and the default kernel are selected and created under the condition that the corresponding designated kernel does not exist in the configuration information.
The present invention also provides a computer-readable storage medium storing a kernel creation program executable by one or more processors for:
when a webpage loading instruction of a browser is received, acquiring a corresponding configuration file;
analyzing the configuration file to obtain a corresponding analysis result;
detecting whether the analysis result contains a configuration item;
if yes, identifying configuration information corresponding to the configuration items, and detecting whether a corresponding specified kernel exists in the configuration information;
and if so, creating the third-party kernel based on the configuration information when the designated kernel is the third-party kernel.
Further, the kernel creation program when executed by the processor further implements the following operations:
detecting whether the configuration information comprises a specified version of the specified kernel;
if so, judging whether the current version of the specified kernel in the intelligent television is greater than or equal to the specified version and whether the system environment of the intelligent television meets the operation requirement of the third-party kernel;
if so, creating the third-party kernel;
if not, a default kernel is created.
Further, the kernel creation program when executed by the processor further implements the following operations:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
Further, the kernel creation program when executed by the processor further implements the following operations:
detecting whether an update notice of a configuration file sent by a corresponding launching platform exists or not;
if yes, downloading a new configuration file corresponding to the update notification from the launching platform, and verifying the new configuration file;
and updating the configuration file into the new configuration file when the verification passing information is received.
Further, the kernel creation program when executed by the processor further implements the following operations:
downloading a new configuration file corresponding to the update notification from the launching platform;
and checking the new configuration file according to a preset checking program.
Further, the kernel creation program when executed by the processor further implements the following operations:
acquiring the occupied space of the third-party kernel, and detecting whether the occupied space is smaller than or equal to the available memory space of the smart television;
if yes, creating the third-party kernel based on the configuration information;
if not, a default kernel is created.
Further, the kernel creation program when executed by the processor further implements the following operations:
if the configuration item exists, identifying configuration information corresponding to the configuration item;
detecting whether preset configuration information corresponding to the configuration information exists in a preset database;
if so, determining that the specified kernel exists;
if not, determining that the specified kernel does not exist.
Further, the kernel creation program when executed by the processor further implements the following operations:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel;
if not, a default kernel is created.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the kernel creation method described above, and is not described herein again.
According to the scheme, when a webpage loading instruction of the browser is received, the corresponding configuration file is obtained, the configuration file is analyzed, the corresponding analysis result is obtained, whether the analysis result contains the configuration item or not is detected, if yes, the configuration information corresponding to the configuration item is identified, whether the corresponding appointed inner core exists in the configuration information or not is detected, and if yes, the third-party inner core is created based on the configuration information when the appointed inner core is the third-party inner core. According to the invention, when a plurality of browser kernels exist in the smart television, the browser kernels are selected and created.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A kernel creating method is applied to an intelligent television, the intelligent television comprises a third-party kernel and a default kernel, and the kernel creating method is characterized by comprising the following steps:
when a webpage loading instruction of a browser is received, acquiring a corresponding configuration file;
analyzing the configuration file to obtain a corresponding analysis result, wherein the configuration file is the latest current configuration file corresponding to the smart television, and the version of the configuration file is consistent with that of the configuration file on the delivery platform;
detecting whether the analysis result contains a configuration item;
if yes, identifying configuration information corresponding to the configuration items, and detecting whether a corresponding specified kernel exists in the configuration information;
if so, creating the third-party kernel based on the configuration information when the designated kernel is the third-party kernel;
the step of creating the third party kernel based on the configuration information comprises:
detecting whether the configuration information comprises a specified version of the specified kernel;
if so, judging whether the current version of the specified kernel in the intelligent television is greater than or equal to the specified version and whether the system environment of the intelligent television meets the operation requirement of the third-party kernel;
if so, creating the third-party kernel in the smart television;
and if not, creating the default kernel.
2. The kernel creation method of claim 1, wherein after said step of detecting whether a specified version of said specified kernel is included in said configuration information, further comprising:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel in the smart television;
and if not, creating the default kernel.
3. The kernel creation method according to claim 1, wherein before the step of obtaining the corresponding configuration file when receiving a web page loading instruction of the browser, the method further comprises:
detecting whether an update notice of a configuration file sent by a corresponding launching platform exists or not;
if yes, downloading a new configuration file corresponding to the update notification from the launching platform, and verifying the new configuration file;
and updating the configuration file into the new configuration file when the verification passing information is received.
4. The kernel creation method of claim 3, wherein said downloading a new configuration file corresponding to said update notification from the delivery platform and verifying said new configuration file comprises:
downloading a new configuration file corresponding to the update notification from the launching platform;
and checking the new configuration file according to a preset checking program.
5. The kernel creation method of claim 1, wherein the step of creating the third party kernel based on the configuration information comprises:
acquiring the occupied space of the third-party kernel, and detecting whether the occupied space is smaller than or equal to the available memory space of the smart television;
if yes, creating the third-party kernel based on the configuration information;
and if not, creating the default kernel.
6. The kernel creation method according to claim 1, wherein the step of, if yes, identifying configuration information corresponding to the configuration item, and detecting whether a corresponding specified kernel exists in the configuration information comprises:
if the configuration item exists, identifying configuration information corresponding to the configuration item;
detecting whether preset configuration information corresponding to the configuration information exists in a preset database;
if so, determining that the specified kernel exists;
if not, determining that the specified kernel does not exist.
7. The kernel creation method according to any one of claims 1 to 6, wherein, after the step of identifying the configuration information corresponding to the configuration item and detecting whether there is a corresponding specified kernel in the configuration information, further comprising:
if not, judging whether the system environment of the intelligent television meets the operation requirement of the third-party kernel or not;
if so, creating the third-party kernel in the smart television;
and if not, creating the default kernel.
8. An intelligent television, characterized in that the intelligent television comprises: memory, a processor and a kernel creation program stored on the memory and executable on the processor, the kernel creation program when executed by the processor implementing the steps of the kernel creation method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a kernel creation program which, when executed by a processor, implements the kernel creation method steps of any of claims 1-7.
CN201910513214.1A 2019-06-12 2019-06-12 Kernel creation method, smart television and computer-readable storage medium Active CN110247966B (en)

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 CN110247966A (en) 2019-09-17
CN110247966B true 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8505003B2 (en) * 2010-04-28 2013-08-06 Novell, Inc. System and method for upgrading kernels in cloud computing environments
CN106681792A (en) * 2016-11-14 2017-05-17 乐视控股(北京)有限公司 Switching method and switching device of rendering engine and electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN110247966A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110990731B (en) Rendering method, device and equipment of static webpage and computer storage medium
US10664651B2 (en) Forms conversion and deployment system for mobile devices
CN107870787B (en) Application program plug-in loading method and system
US7263699B2 (en) Preparation of a software configuration using an XML type programming language
CN110874236B (en) Cross-platform application device, terminal and storage medium
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
CN109558320B (en) System testing method, device, system, equipment and computer readable storage medium
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
CN110377360A (en) Method, display terminal and the computer readable storage medium that webview is quickly loaded
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN106775876B (en) Method for quickly starting application by android system
CN111522849A (en) Database dynamic access method, server and storage medium
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN110851151B (en) Method, device, terminal, server and storage medium for pre-installing application
CN109885332A (en) Image quality chip software upgrade method, device, display equipment and storage medium
CN108804120B (en) Page construction method, device, equipment and storage medium
CN115794214B (en) Application module metadata management method, device, storage medium and apparatus
CN110247966B (en) Kernel creation method, smart television and computer-readable storage medium
CN112416384A (en) Software upgrading method and device and computer equipment
CN106033364B (en) Web application program upgrading method and system
CN113900723B (en) Common platform updating method, network device and computer readable storage medium
CN115129348A (en) Resource updating method, device and equipment of application program and readable storage medium
CN112559021A (en) Mobile terminal small application development management system
CN111736863A (en) Software upgrading method and device and electronic equipment
CN108845803B (en) Method, device and equipment for updating list view and storage medium

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

GR01 Patent grant
GR01 Patent grant