Disclosure of Invention
The embodiment of the application provides a television application upgrading method, a television terminal and a server, so that the safe upgrading of the television application is realized.
According to a first aspect of the embodiments of the present application, there is provided a television application upgrade method, applied to a television terminal, the method including:
sending a request for acquiring an application list to be upgraded to a server through a preset application installed in the television terminal, wherein the preset application is an advertisement or an upgrade service;
according to the application list to be upgraded returned by the server, sending a request for acquiring an upgrading strategy corresponding to the application to be upgraded in the television terminal to the server through the preset application;
and upgrading the application to be upgraded in the television terminal according to the upgrading strategy returned by the server, and updating the version number of the upgraded application.
According to a second aspect of the embodiments of the present application, there is provided another television application upgrade method, applied to a server, the method including:
receiving a request for acquiring an application list to be upgraded, which is sent by a television terminal;
according to the equipment information of the television terminal, sending an application list to be upgraded matched with the television terminal to the television terminal;
receiving a request for acquiring an upgrading strategy of an application to be upgraded in a television terminal, wherein the request is sent by the television terminal, and the application to be upgraded in the television terminal is generated according to the application list to be upgraded;
and sending the upgrading strategy corresponding to the application to be upgraded in the television terminal to the television terminal.
According to a third aspect of embodiments of the present application, there is provided a television terminal having a processor and a memory therein, wherein:
the memory for storing program code;
the processor is configured to read the program code stored in the memory and execute the method provided by the first aspect of the embodiment of the present application.
According to a fourth aspect of embodiments of the present application, there is provided a server having a processor and a memory, wherein:
the memory for storing program code;
the processor is configured to read the program code stored in the memory and execute the method provided by the second aspect of the embodiment of the present application.
According to the technical scheme, the television application upgrading method, the television terminal and the server provided by the embodiment of the application analyze the version of the application installed on each television terminal connected with the configuration server through the configuration server, generate the application list to be upgraded and configure the upgrading strategy corresponding to each application in the list; meanwhile, the preset application in the television terminal is configured, so that the preset application can automatically send a request for acquiring an application list to be upgraded to the server after the television terminal is started, and then the television terminal receives the application list to be upgraded returned by the server and controls the preset application to send the request for acquiring an upgrading strategy corresponding to the application to be upgraded in the television terminal to the server; and finally, the television terminal automatically upgrades the application to be upgraded in the television terminal according to the upgrading strategy returned by the server. Therefore, the upgrading method provided by the embodiment does not need to modify the bottom layer of the television system and customize the API, only needs to add two request functions on the basis of the existing application, and is easy to implement and low in risk; in addition, the method analyzes and configures the application needing to be upgraded on the television at the server side, so that the television side does not need to scan the information of all the applications installed on the television side, and the time and memory cost for scanning the applications at the television side can be saved.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The embodiment of the application provides a television application upgrading method, a television terminal and a server, and aims to solve the problem that some applications cannot be upgraded to high versions due to the fact that the version of factory application integration of a television is too low, some users do not select application upgrading, or the version of the applications has defects from upgrading functions.
Fig. 1 is a schematic view of an application scenario of a television application upgrade system according to an embodiment of the present application. As shown in fig. 1, an application scenario provided by the embodiment of the present application includes a television terminal and a server, where the server may establish a communication link with a plurality of television terminals to implement data interaction. Wherein, the communication link can be established between the television terminal and the server through various transmission protocols. For example, the television terminal and the server may communicate via a Transmission Control Protocol (TCP), a User Datagram Protocol (UDP) or a hypertext transfer protocol (HTTP), which is not limited in this embodiment of the present application.
The server analyzes the version of the application installed in the current television terminal through big data in the daily data interaction process of each television terminal connected with the server, obtains abnormal applications of each television terminal which cannot be upgraded all the time, and generates statistical information of the applications to be upgraded. Meanwhile, the server can be in communication connection with an operation background of a television manufacturer, the operation background arranges an application list to be upgraded and configures an upgrading strategy of each application to be upgraded according to statistical information of the applications to be upgraded acquired by the server, and sends the arranged application list to be upgraded and the upgrading strategy of each application to be upgraded to the server again, for example, the arranged application list to be upgraded and the upgrading strategy of each application to be upgraded are updated to Mysql, and then the Mysql synchronizes the data to Redis.
Meanwhile, a preset application installed in the television terminal, such as an ad service (the ad service is used for providing advertisement services in the television terminal) or an upgrade service (the upgrade service is used for providing various notification services in the television terminal), is configured, so that two request functions are added: one is a function of sending a request for acquiring an application list to be upgraded to a server, and the other is a function of sending an upgrade policy request corresponding to an application to be upgraded to the server. The method comprises the steps that the preset application has the characteristic of starting and self-starting, so that after a user starts, the preset application can send a request to a server to acquire an application list to be upgraded after the preset application is self-started, then, an upgrading strategy is requested for all or part of applications in the application list to be upgraded according to the indication of the television terminal, and further the safe upgrading of abnormal applications in the television terminal is achieved.
In order to clarify the embodiments disclosed in the present application, the embodiments of the present application are described below by way of examples.
Fig. 2 is a flowchart of a television application upgrading method according to an embodiment of the present application. As shown in fig. 2, the method specifically includes the following steps:
and S11, the television terminal sends a request for acquiring an application list to be upgraded to the server through the preset application installed in the television terminal.
The preset application may be an advertisement or an upgrade service. Based on the characteristic that the service and the upgrade service have the self-starting function, after the user starts the computer and the preset application finishes the self-starting, the user can send a request to the server to obtain the application list to be upgraded.
Further, in order to ensure the data security of the system, the server performs authentication on the television terminal, and after the authentication passes, the television terminal sends a request for acquiring the application list to be upgraded to the server. Wherein, can include the following step:
1) and after the television terminal is started, sending information required for authentication to the television terminal to a server through a preset interface.
The preset application can firstly acquire user information (such as information of a user name, an account number and the like) and token information of the television terminal by accessing a preset information acquisition interface, and simultaneously all requests sent by the television terminal can carry the token information; then, the device information (such as device model, device brand, and other device attribute information) of the television terminal, and the token information and the user information acquired in the previous step are sent to the server by accessing the user authentication interface.
2) And after receiving the equipment information, token information and user information sent by the television terminal, the server performs authority identification on the television terminal to judge whether the television terminal has the authority to perform internal application upgrading by virtue of the server. And if the right authentication passes, sending a message of successful right authentication to the television terminal, and sending a request for acquiring the application list to be upgraded to the server after the television terminal receives the message.
And S12, after receiving the request for obtaining the application list to be upgraded sent by the television terminal, the server sends the application list to be upgraded matched with the request to be upgraded to the television terminal according to the equipment information of the television terminal.
The server analyzes the version of the application installed in the current television terminal through big data in the daily data interaction process of the television terminal connected with the server (for example, the television terminal judges whether the television payment application needs to be upgraded or not through the process that the television terminal purchases a member gathering a good looking through the television payment application), obtains abnormal applications of the television terminals which cannot be upgraded all the time, and generates statistical information of the applications to be upgraded. Meanwhile, the server can also be in communication connection with an operation background of a television manufacturer, the operation background arranges an application list to be upgraded according to statistical information of the application to be upgraded acquired by the server, wherein the upgrade application list can comprise information such as a package name, a target version number (namely the version number to be upgraded), an upgrade path and the like of the application, and the application list to be upgraded can be classified and set according to equipment information such as an equipment model, an equipment installation system and the like; meanwhile, the operation background may also configure an upgrade policy for each application to be upgraded, where the upgrade policy may include information such as a source version number, that is, a current version number applied on the television terminal, a target version number, that is, a version number to be upgraded, an address of an upgrade package, and MD5(Message Digest Algorithm, fifth version). Of course, the above work of arranging the application list to be upgraded and configuring the upgrade policy of each application to be upgraded may also be directly completed on the server. Therefore, the server can send the application list to be upgraded matched with the equipment information (such as equipment model) of the television terminal to the television terminal.
And S13, the television terminal compares the target version of each application to be upgraded in the application list to be upgraded returned by the server with the current version of the application installed in the television terminal one by one.
The method comprises the steps that in response to the fact that the version of an application installed in the television terminal is lower than a target version of a corresponding application to be upgraded in an application list to be upgraded, the application is judged as the application to be upgraded in the television terminal; and if not, the application is not required to be upgraded.
And S14, the television terminal sends a request for acquiring an upgrading strategy corresponding to the application to be upgraded in the television terminal to the server through the preset application.
The television terminal can send a request for obtaining the upgrading strategy to the server through the service and the upgrading service.
And S15, after receiving the request for obtaining the upgrading strategy sent by the television terminal, the server sends the upgrading strategy corresponding to the application to be upgraded to the television terminal.
And S16, the television terminal upgrades the application to be upgraded in the television terminal through the preset application according to the upgrading strategy returned by the server.
After the upgrade strategy returned by the server is obtained, the preset application automatically downloads the upgrade package according to the upgrade address of the server side in the upgrade strategy, and then the corresponding application to be upgraded is automatically upgraded by using the downloaded upgrade package. After the application is upgraded, the television terminal updates system information and data information of an installation directory where the application is located, and updates information such as app version and app code. In the embodiment of the application, the whole application process does not need to be selected by a user, and meanwhile, the upgrading process can be set to be invisible to the user.
In order to enable the server to know the upgrade result of the television terminal more quickly, the present embodiment further configures the television terminal as follows:
and S17, responding to the successful upgrade of the application to be upgraded in the television terminal, and sending a message that the application is successfully upgraded to the server.
In addition, if the application to be upgraded is not successfully upgraded, the operation of step S11 is executed again after the television terminal is turned on next time, that is, if the application to be upgraded is not successfully upgraded, the application to be upgraded is updated again.
Further, in order to avoid repeatedly acquiring the upgrade list by the television terminal, the present embodiment further configures the server as follows:
and S18, the server detects whether the application finishes upgrading on each television terminal according to the message of successful upgrading of the application sent by each television terminal connected with the server. If yes, deleting the upgrading strategy corresponding to the application, and simultaneously deleting the application from the application list to be upgraded.
Through the steps, the upgrading method provided by the embodiment does not need to modify the bottom layer of the television system and customize the API, only needs to add two request functions on the basis of the existing application, and is easy to implement and low in risk; meanwhile, the method analyzes and configures the application needing to be upgraded on the television at the server side, so that the television side does not need to scan the information of all the applications installed on the television side, and the time and memory cost for scanning the applications at the television side can be saved. In addition, for the application which has been upgraded, the present embodiment may also delete the upgrade policy at any time at the server, so as to avoid that the television terminal acquires the list of the application to be upgraded every time the television terminal is turned on, and perform confirmation on the application to be upgraded, thereby not only saving traffic and saving CNN (Content Delivery Network) cost, but also reducing data processing pressure of the television terminal and the server.
In addition to the mode of confirming the application to be upgraded in the terminal according to the application list to be upgraded at the television terminal, the embodiment also provides a mode of confirming whether the application of the television terminal needs to be upgraded at the server side.
Fig. 3 is a flowchart of another television application upgrading method according to an embodiment of the present application. As shown in fig. 3, the method specifically includes the following steps:
and S21, the television terminal sends a request for acquiring an application list to be upgraded to the server through the preset application installed in the television terminal.
The preset application may be an advertisement or an upgrade service.
And S22, after receiving the request for acquiring the application list to be upgraded sent by the television terminal, the server sends the application list to be upgraded matched with the request to be upgraded to the television terminal according to the equipment information of the television terminal.
And S23, the television terminal sends a request for obtaining an upgrading strategy corresponding to the application to be upgraded in the television terminal to the server through the preset application.
Firstly, the television terminal compares an application list to be upgraded returned by the server with an application list installed in the television terminal, and confirms whether the application installed in the television terminal appears in the application list to be upgraded. Determining the application to be upgraded in the television terminal in response to whether the application installed in the television terminal appears in the application list to be upgraded, and sending a request for acquiring an upgrade strategy to a server through an addervice or an upgrade service; otherwise, the application is not required to be upgraded.
S24, the server compares the version of the application to be upgraded in the television terminal with the target version corresponding to the application to be upgraded, and detects whether the version of the application to be upgraded in the television terminal is lower than the target version.
And step S25 is executed in response to that the version of the application to be upgraded in the television terminal is lower than the target version, otherwise, it indicates that the application does not need to be upgraded, and no upgrade policy is returned.
And S25, the server sends the upgrading strategy corresponding to the application to be upgraded to the television terminal.
And S26, the television terminal upgrades the application to be upgraded in the television terminal through the preset application according to the upgrading strategy returned by the server.
According to the steps, the upgrading method provided by the embodiment initiates the application upgrading request to the server based on the common application in the television terminal, and obtains the upgrading strategy of the application to be upgraded for upgrading, so that the problem that the application of the television terminal cannot be normally upgraded to a high version can be effectively solved.
Corresponding to the television application upgrading method, the embodiment of the invention also provides a television application upgrading device. Fig. 4 is a schematic structural diagram of a tv application upgrade apparatus, and as shown in fig. 4, the tv application upgrade apparatus 400 may include: at least one processor (processor)401, memory 402, peripheral interface 403, input/output subsystem 404, power lines 405, and communication lines 406.
In fig. 4, arrows indicate that communication and data transfer between components of the television system are possible, and that the communication and data transfer may be implemented using a high-speed serial bus (high-speed serial bus), a parallel bus (parallel bus), a Storage Area Network (SAN), and/or other suitable communication technology.
Memory 402 may include an operating system 412 and a television application upgrade routine 422. For example, memory 402 may include high-speed random access memory (high-speed random access memory), magnetic disks, static random access memory (SPAM), Dynamic Random Access Memory (DRAM), Read Only Memory (ROM), flash memory, or non-volatile memory. The memory 402 may store program code for the operating system 412 and the television application upgrade routine 422, that is, may include software modules, instruction set architectures, or a variety of data beyond that required for the operation of the television application upgrade apparatus 400. In this case, the access to the memory 402 and other controllers such as the processor 401 and the peripheral interface 403 may be controlled by the processor 401.
Peripheral interface 403 may combine input and/or output peripherals of television application upgrade apparatus 400 with processor 401 and memory 402. Also, the input/output subsystem 404 may combine a variety of input/output peripherals with the peripheral interface 403. For example, the input/output subsystem 404 may include a display, a printer, or a controller for integrating a camera, various sensors, and the like with the peripheral interface 403 as needed. According to another aspect, an input/output peripheral may also be combined with peripheral interface 403 without going through input/output subsystem 404.
The power line 405 may supply power to all or part of the circuit elements of the mobile terminal. For example, the power line 405 may include one or more power sources such as a power management system, a battery or an Alternating Current (AC), a charging system, a power failure detection circuit (power failure detection circuit), a power converter or inverter, a power status marker, or any other circuit element for power generation, management, distribution.
The communication link 406 may utilize at least one interface to communicate with other computer systems, such as with other mobile terminals.
The processor 401 may perform various functions of the television application upgrade apparatus 400 and process data by executing software modules or instruction set architectures stored in the memory 402. That is, the processor 401 may be configured to process commands of a computer program by performing basic arithmetic, logic, and input/output operations of the computer system.
The embodiment of fig. 4 is only one example of a television application upgrade apparatus 400, and the television application upgrade apparatus 400 may have the following structure or configuration: a circuit for RF communication of a plurality of communication means (WiFi, 6G, LTE, Bluetooth, NFC, Zigbee, etc.) may be included in the communication line 406. The circuit elements that may be included in the television application upgrade apparatus 400 may be implemented by hardware, software, or a combination of both hardware and software, including more than one integrated circuit specialized in signal processing or application programs.
The television application upgrade apparatus 400 configured as described above, when applied to a television terminal, may perform the following operations: sending a request for acquiring an application list to be upgraded to a server through a preset application installed in the television terminal, wherein the preset application is an advertisement or an upgrade service; according to the application list to be upgraded returned by the server, sending a request for acquiring an upgrading strategy corresponding to the application to be upgraded in the television terminal to the server through the preset application; and upgrading the application to be upgraded in the television terminal according to the upgrading strategy returned by the server, and updating the version number of the upgraded application.
The tv application upgrade apparatus 400 configured as described above, when applied to a server, may perform the following operations: should be taken
Receiving a request for acquiring an application list to be upgraded sent by a television terminal; according to the equipment information of the television terminal, sending an application list to be upgraded matched with the television terminal to the television terminal; receiving a request for acquiring an upgrading strategy of an application to be upgraded in a television terminal, wherein the request is sent by the television terminal, and the application to be upgraded in the television terminal is generated according to the application list to be upgraded; and sending the upgrading strategy corresponding to the application to be upgraded in the television terminal to the television terminal.
Based on the method and the device, the embodiment also provides a television terminal and a server respectively, wherein the television terminal and the server are respectively provided with a processor and a memory, and the memory is used for storing program codes; the processor is configured to read the program code stored in the memory and execute the method provided by the above embodiment.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.