Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. 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 management method of the desktop starter provided by the embodiment of the invention can be applied to various intelligent televisions, the intelligent televisions refer to television products with open platforms and stronger hardware equipment, the intelligent televisions comprise high-speed processors and certain storage spaces, the management method is used for running and storing application programs, can carry intelligent operating systems, and is used for users to automatically install, run and uninstall applications such as software and games, and the intelligent operating systems can be connected with the public internet to realize a man-machine interaction mode, multi-screen interaction and content sharing. The intelligent television in the embodiment of the invention comprises an intelligent television integrating a digital television mode and an internet television mode and an intelligent television only comprising the internet television mode. Launchers, launchers applications, and desktop starters are all the same thing hereafter to follow the routine habits of those skilled in the art and to avoid confusion among other skilled artisans.
Fig. 1 shows an implementation flow of a management method of a desktop launcher provided in an embodiment of the present invention, which is detailed as follows:
in S101, when a management event is triggered, parameter information of the desktop launcher is obtained, where the parameter information includes a software package name and a first software package signature.
In this embodiment, a process of an operating system running of a smart television is monitored, and when it is monitored that an application in the operating system is called to a foreground running, if the application has a Launcher attribute, parameter information of a Launcher application is acquired. The Launcher application is called to the foreground to run, and may also be represented as a smart television being switched from a digital television mode to an internet television mode when the system is turned on and the Launcher application is started, for example, when a user presses a HOME key of a smart television remote controller, the Launcher application which is not started or is in the background is started to the foreground. The Launcher application is called to foreground for operation, which may also occur when the Launcher application is ready for online installation, upgrade, or is ready for installation locally after downloading the Launcher software package.
In order to guarantee the legal ID of each application program developer, partial openers are prevented from possibly confusing and replacing installed programs by using the same software package name, the issued application software installation package line is uniquely signed, the consistency of each issued version is guaranteed, and a foundation is provided for the validity verification of the software installation package. Therefore, taking an APK file in the android system as an example, the parameter information, including the software package name and the first software package signature, may be obtained from an APK file applied by Launcher.
When parameter information of the Launcher application is obtained, a configuration file of the Launcher application is detected, and whether a specified field exists in the configuration file is judged. Wherein the attribute or type of the designated field can be preset in the intelligent television system by the user. And if the configuration file of the Launcher application has the field with the same attribute or type, determining that the specified field exists.
When the specified field exists, reading the content or information of the specified field from the configuration file of the Launcher application. For example, when the designated field is a check code field, the check value information in the check code field is read.
In S102, it is determined whether the parameter information is the same as a parameter reference value corresponding to the type of the parameter information, and a determination result is obtained, where the parameter reference value exists in the smart television system.
The type of the parameter information, that is, the currently specifically acquired parameter information is any one of three types, namely a software package name, a software package signature, and a specified field. Each type of parameter information has a parameter corresponding to the type in the smart television system. And after the position of the parameter which exists in the system and corresponds to the type of the parameter information is determined and obtained, the value of the parameter in the system is obtained, namely the parameter reference value.
And judging whether the parameter information is the same as a parameter reference value corresponding to the type of the parameter information, wherein the parameter reference value can be one or multiple, and when the reference value is multiple, the parameter information is matched one by one. The parameter reference value is preset in the smart television system by a manufacturer or a user, or is obtained from software package parameter information of legal applications installed in the system.
S102 may specifically be exemplified as follows: for a parameter A which is acquired from the Launcher application and is of the type of the software package name, the parameter value is a, another parameter B which is of the type of the software package name exists in the television system, the parameter B is a parameter corresponding to the parameter A of the acquired software package name, and the content in the parameter B is a parameter reference value B. If a is equal to b, the judgment result is: the parameter information is the same as a parameter reference value corresponding to the type of the parameter information.
In S103, according to the determination result, the desktop starter is prohibited or allowed to run.
The judgment result comprises: and the parameter reference values corresponding to the types of the parameter information and the parameter information are the same, different, matched or not matched and the like. And corresponding to different judgment results, presetting different execution rules by the system, and executing action rules corresponding to the judgment results on the target desktop starter when the management event is triggered so as to control the operation of the desktop starter.
When the parameter information is different from or not matched with the parameter reference value corresponding to the type of the parameter information, the desktop starter is prohibited from running; and when the parameter information is the same as or matched with the parameter reference value corresponding to the type of the parameter information, allowing the desktop starter to run.
According to the embodiment of the invention, when the management event is triggered, the Launcher application is managed and controlled according to the matching condition of the parameter information and the parameter reference value existing in the smart television system by taking the parameter information of the Launcher application as the basis. By the aid of the Launcher management method in the smart television, early safety management and control can be guaranteed for all Launcher applications, a malicious third-party desktop starter which is not in line with actual wishes of users or illegal is prevented from being operated by the smart television, safety risks of the users in the process of using the desktop starter are reduced, and legal rights and interests of the users are protected.
Specifically, in S103, the running of the desktop launcher includes installing and starting the desktop launcher.
As another embodiment of the present invention, in S101, the triggering of the management event includes: when detecting that an application to be installed or started has a Launcher property, a management event is triggered, wherein the application having the Launcher property is the Launcher application.
When the system monitors that the application is ready to be installed or started, the attribute of the application software package is obtained, and whether the application has the Launcher attribute or not is judged.
If yes, the application is determined to be a Launcher application, and data acquisition, matching comparison and control processes of the Launcher application are started to be executed.
If not, the application is determined to be a common application. The management event is not triggered when the common application program is installed or started in the smart television, so that the parameter acquisition, judgment and check of the common application program are not performed according to the desktop starter management method in S101. Only for the application with the Launcher property, the management event can be triggered, and the application is accurately and effectively managed, so that the management efficiency and the running performance of the system are improved.
The installation and the starting of the malicious Launcher of the third party are direct ways for bringing safety risks to the system, all Launcher applications to be installed or started in the system are subjected to safety detection, the Launcher applications which are illegal or do not accord with the actual will of the user are forbidden to run, the Launcher applications which are in compliance, have no safety risks or accord with the will of the user are allowed to run continuously, and the running performance of the smart television system and the satisfaction degree of the user can be improved.
As a further explanation of the embodiment shown in fig. 1, the following describes the implementation process of the management method of the desktop launcher in detail by several embodiments:
fig. 2 shows a specific implementation flow of the management method of the desktop launcher provided by the embodiment of the present invention, which is detailed as follows:
in S201, when it is detected that the application to be installed has a Launcher attribute, parameter information of the Launcher application is acquired.
Since in S101, when it is detected that the application to be installed or started has a Launcher attribute, the management event is triggered, so that S201 is the first case in S101, that is, when it is detected that the application to be installed has a Launcher attribute, the management event is triggered, and the parameter information of the Launcher application is acquired, including: the package name and the first package signature.
In S202, it is determined whether the first software package signature of the Launcher application exists in a legal signature list preset by the system.
And the legal signature list is customized by a user or a manufacturer and is preset in the intelligent television system, and the legal signature is the sum of the application signatures listed according to the actual requirements of the user or the sum of the application signatures which accord with the safety indexes and are obtained after a large amount of verification by certain safety mechanisms. In addition, when the television leaves the factory, the television can also be connected to a website with a security authority through the internet, a plurality of legal signatures are directly downloaded to a local system, and the set of the plurality of legal signatures forms the legal signature list.
Because the legal signature list contains a plurality of legal software package signatures, the first software package signature obtained in the step S201 is matched and compared with the plurality of legal software package signatures in the list one by one, and whether a legal software package signature identical to the first software package signature exists is judged.
In this embodiment of the present invention, S202 is a specific manner of S102 in the foregoing embodiment, where the parameter information is a first software package signature, and the parameter reference value corresponding to the type of the parameter information is all legal software package signatures in a legal signature list. And judging whether the parameter information is the same as a parameter reference value corresponding to the type of the parameter information, namely judging whether the first software package signature is the same as any legal software package signature in the legal signature list.
If there is no legitimate package signature identical to the first package signature in the legitimate signature list, in S209, the Launcher application to be installed is prohibited from running and cannot be normally installed. Otherwise, the Launcher application may be installed normally, or the next stage of validity determination step is performed. The validity determination step in the next stage may be the following step in this embodiment, or may be another security check determination step not listed.
In S203, it is determined whether an application having the same name as the package of the Launcher application exists in the system.
If the judgment result is yes, the system is indicated to have the old version Launcher application corresponding to the Launcher application to be installed. Otherwise, the Launcher application to be installed is indicated as the newly appeared application software, and the step of judging the legality of the next stage is directly executed.
If the determination result in S203 is yes, in S204, a second package signature of the application having the same package name as the Launcher application is acquired. In other words, in the smart television system, the second software package signature is extracted from the software package parameter information of the old version Launcher application, and is used as a parameter reference value corresponding to the type of the first software package signature, so as to perform deeper validity judgment on the Launcher application to be installed.
In S205, it is determined whether the first software package signature and the second software package signature are the same.
If the first package signature is the same as the second package signature, it can be known that the old version Launcher application existing in the system and the Launcher application to be installed are issued by the same author, and thus the Launcher application to be installed is allowed to continue to run installation or execute the next stage of validity determination step.
If the first software package signature is different from the second software package signature, it indicates that the Launcher application to be installed and the legitimate old version Launcher application already existing in the system are issued by two different issuers, so that installing the Launcher application has a greater security risk and should not be trusted. In S209, the installation of the Launcher application is terminated.
In S206, it is determined whether a specified field exists in the configuration file of the Launcher application. If not, in S209, the installation of the Launcher application is terminated.
In S207, if the determination result in S206 is yes, the content of the specified field is acquired.
The parameters corresponding to the designated fields are second designated fields, and the parameter reference values are contents in the second designated fields, which are all preset in the intelligent television system.
In S208, it is determined whether the content of the specified field is the same as the content of a second specified field preset by the system. If not, terminating the installation of the Launcher application in S209; if yes, allowing the Launcher application to be installed to continue to run and install, or executing the validity judgment step of the next stage.
According to the method and the device, when the fact that the application to be installed has the Launcher attribute is detected, the parameter information of the Launcher application is used as the basis, the multiple parameter reference values existing in the system are selected to be subjected to multilevel matching comparison with the parameter information, the installation process of the Launcher application is controlled, the situation that the smart television is provided with third-party malicious Launcher applications which do not accord with the actual will of the user or are illegal is avoided, the safety risk of the user in the Launcher installation process is reduced, and the legal commercial operation value of the user is protected.
It should be understood that, in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, the execution sequence of each process should be determined by its function and internal logic, each determination process may be executed sequentially or simultaneously, and the implementation process of the embodiment of the present invention should not be limited in any way.
Preferably, the determination processes in the foregoing embodiments of the present invention may be executed in sequence, and fig. 3 shows an implementation flowchart when the management methods S201 to S208 of the desktop launcher provided in the embodiments of the present invention are executed in sequence. The implementation principle of each step in the embodiment of the present invention is consistent with the implementation principle in the management method of the desktop launcher described in fig. 2, and therefore, the implementation principle is not described in detail. S301 to S309 correspond to S201 to S209 in the above embodiment, respectively.
Fig. 4 shows a specific implementation flow of a management method of a desktop launcher according to another embodiment of the present invention. The embodiment of the present invention is different from the foregoing embodiments in that:
in the embodiment of the present invention, the management event is triggered when it is detected that the application to be started has a Launcher attribute, and there is no judgment and execution process in S203, S204, and S205, and when the parameter information is different from the parameter reference value corresponding to the type of the parameter information, performing management and control on the Launcher application is expressed as terminating the starting of the Launcher application and uninstalling the Launcher application. The implementation principle of the embodiment of the present invention is consistent with the implementation principle of the Launcher management method in the smart tv described in fig. 3 or fig. 4, and therefore, only the implementation flow of the embodiment of the present invention is briefly described:
in S401, when it is detected that the application to be started has a Launcher attribute, parameter information of the Launcher application is acquired.
In the foregoing embodiment S101, when it is detected that the application to be installed or started has a Launcher attribute, the management event is triggered, so that S201 is the second case in S101, that is, when it is detected that the application to be installed has a Launcher attribute, the management event is triggered, and parameter information of the Launcher application is acquired.
In S402, it is determined whether the first software package signature of the Launcher application exists in a legal signature list preset by a system.
If the judgment result is negative, the Launcher application is stopped to be started and unloaded. If the judgment result is yes, the Launcher application is allowed to start or execute the validity judgment step of the next stage.
In S403, it is determined whether a specified field exists in the configuration file of the Launcher application. If not, terminating the starting of the Launcher application and unloading the Launcher application, and if so, executing S404.
In S404, the content of the specified field is acquired.
In S405, it is determined whether the content of the specified field is the same as the content of a second specified field preset by the system. If the judgment result is negative, the Launcher application is stopped to be started and unloaded. If the judgment result is yes, the Launcher application is allowed to start or execute the validity judgment step of the next stage.
According to the method and the device, when the fact that the application to be started has the Launcher attribute is detected, the parameter information of the Launcher application is used as the basis, the multiple parameter reference values existing in the system are selected to be subjected to multilevel matching comparison with the parameter information, the starting process of the Launcher application is controlled, the intelligent television is prevented from starting an illegal third party Launcher application in a mode of forbidding starting and uninstalling the Launcher application, the malicious third party Launcher application which does not accord with the actual will of a user or does not accord with the illegal will of the user and exists in the system is uninstalled in time, the illegal third party Launcher application can still be subjected to secondary filtering detection even if the illegal third party Launcher application is not subjected to security inspection during installation or passes through the security inspection in some illegal ways, the security performance application of the system is improved, and the legitimate right of the user is guaranteed.
Preferably, the determination processes in the foregoing embodiments of the present invention may be executed in sequence, and fig. 5 shows a flowchart of an implementation when the management methods S401 to S405 of the desktop launcher provided by another embodiment of the present invention are executed in sequence. The implementation principle of each step in the embodiment of the present invention is consistent with the implementation principle in the management method of a desktop launcher described in fig. 4, and therefore, details are not repeated, and S501 to S506 respectively correspond to S401 to S406 in the above embodiment in sequence.
Fig. 6 shows a structural block diagram of an intelligent television according to an embodiment of the present invention, which corresponds to a management method of a desktop launcher according to an embodiment of the present invention. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the smart tv set includes:
the obtaining unit 61 is configured to obtain parameter information of the desktop starter when the management event is triggered, where the parameter information includes a package name and a first package signature.
And the judging unit 62 is configured to judge whether the parameter information is the same as a parameter reference value corresponding to the type of the parameter information, and obtain a judgment result, where the parameter reference value exists in the smart television system.
And the management unit 63 is configured to prohibit or allow the desktop starter to run according to the determination result.
Optionally, the running of the desktop launcher includes: and (5) installing and starting the desktop starter.
Optionally, the obtaining unit 61 includes:
the trigger subunit is configured to trigger a management event when detecting that an application to be installed or started has a Launcher attribute, where the application having the Launcher attribute is the desktop Launcher.
Optionally, the obtaining unit 61 is specifically configured to:
when it is detected that the application to be installed has a Launcher property, a management event is triggered.
The management unit 63 is specifically configured to:
and when any one of the following judgment results is obtained, terminating the installation of the desktop starter:
the first software package signature of the desktop starter does not exist in a legal signature list preset by a system;
the system has an application with the same software package name as the desktop starter, and a second software package signature of the application is different from the first software package signature;
no designated field exists in the configuration file of the desktop starter;
or
And if the configuration file of the desktop starter has the designated field, the content of the designated field is different from the content of a second designated field preset by the system.
Optionally, the obtaining unit 61 is specifically configured to:
when it is detected that the application to be started has a Launcher property, a management event is triggered.
The management unit 63 is specifically configured to:
when any one of the following judgment results is obtained, the starting of the desktop starter is terminated and the desktop starter is unloaded:
the first software package signature of the desktop starter does not exist in a legal signature list preset by a system;
no designated field exists in the configuration file of the desktop starter;
or
And if the configuration file of the desktop starter has the designated field, the content of the designated field is different from the content of a second designated field preset by the system.
By the management method of the desktop starter provided by the embodiment of the invention, safety detection and control can be ensured for all the desktop starters, a malicious third-party desktop starter which does not conform to the actual will of a user or is illegal is prevented from being operated by the intelligent television, the safety risk of the user in the use process of the desktop starter is reduced, and the legal rights and interests of the user are protected.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. 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 and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.