Television platform application interface calling method, device, terminal equipment and storage medium

By introducing preset middleware services, the problem of complexity and low efficiency of the Android TV platform application calling interface is solved, efficient system or chip manufacturer interface calling is realized, and convenient permission operation requirements are met.

CN115002548BActive Publication Date: 2024-09-27SHENZHEN QIANHAI MAOJIA SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210545218.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-09-27
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

The existing Android TV platform application call interface has the problem of complex interface calls and low efficiency. It requires obtaining system code instructions and strong correlation system signatures, resulting in unsuccessful calls.

Method used

Introduce preset middleware services as a carrier to obtain system permissions and signatures, transmit connection requirements through a cross-process mechanism, generate calling instructions and bind middleware services, directly call system or chip manufacturer interfaces, and simplify the interface calling process.

Benefits of technology

It improves the efficiency of Android applications calling system or chip manufacturer interfaces, avoids the steps of entering command codes and obtaining system signatures multiple times, and realizes real-time updates and convenient permission interface operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002548B
    Figure CN115002548B
Patent Text Reader

Abstract

The present invention relates to the technical field of television platform applications, and discloses a television platform application interface calling method, device, terminal equipment and computer-readable storage medium, the method comprising: obtaining the connection requirements of an Android application, and generating a connection instruction according to the connection requirements; determining a calling instruction according to the connection instruction and a preset middleware service; wherein the preset middleware service is used to connect the Android application with the system interface or chip manufacturer interface of the authority; calling the system interface or chip manufacturer interface according to the calling instruction; wherein the chip manufacturer interface is a supplier interface coupled to the platform of the Android application. The present invention can improve the efficiency of the Android application calling the system interface or the chip manufacturer interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of television platform applications, and in particular to a television platform application interface calling method, device, terminal equipment and computer-readable storage medium. Background Art

[0002] With the continuous progress and development of Android TV platform applications, users have put forward higher requirements for Android TV platform applications to call high-authority system interfaces and chip manufacturer interfaces.

[0003] Traditional Android TV platform applications not only need to obtain system code instructions, but also need to obtain the system signature that is strongly associated with the Android TV platform, and each Android TV platform application needs to perform the above operations when calling an interface. If the Android TV platform application calls an interface without the operation of obtaining the system code instructions or obtaining the system signature that is strongly associated with the Android TV platform, the Android TV platform application will fail to call the interface.

[0004] In summary, the existing method of calling interfaces by applications on the Android TV platform has the problems of complex interface calling and low calling efficiency. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, terminal equipment and computer-readable storage medium for calling a television platform application interface, aiming to improve the efficiency of the television platform application calling interface.

[0006] To achieve the above object, the present invention provides a method for calling a television platform application interface, comprising:

[0007] Obtain the connection requirements of the Android application and generate connection instructions based on the connection requirements;

[0008] Determine the call instruction according to the connection instruction and the preset middleware service; wherein the preset middleware service is used to connect the system interface or chip manufacturer interface of the Android application and the authority;

[0009] The system interface or the chip manufacturer interface is called according to the calling instruction; wherein the chip manufacturer interface is a supplier interface coupled with the platform of the Android application.

[0010] In addition, to achieve the above purpose, the present invention also provides a television platform application interface calling device, comprising:

[0011] A generation module is used to obtain the connection requirements of the Android application and generate connection instructions according to the connection requirements;

[0012] A determination module, used to determine a call instruction according to a connection instruction and a preset middleware service; wherein the preset middleware service is used to connect the system interface or chip manufacturer interface of the Android application and the authority;

[0013] The calling module is used to call the system interface or the chip manufacturer interface according to the calling instruction; wherein the chip manufacturer interface is a supplier interface coupled with the Android application platform.

[0014] Each functional module of the television platform application interface calling device of the present invention implements the steps of the television platform application interface calling method of the present invention as described above during operation.

[0015] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a memory, a processor, and a TV platform application interface calling program stored in the memory and runable on the processor, and when the processor executes the TV platform application interface calling program, it implements the steps of the above-mentioned TV platform application interface calling method.

[0016] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a TV platform application interface calling program is stored. When the TV platform application interface calling program is executed by a processor, the steps of the TV platform application interface calling method as described above are implemented.

[0017] The Android application of the present invention controls the internally set integrated middleware data packet to obtain connection requirement data, and uses the cross-process mechanism of the running system to transmit the connection requirement data to the preset middleware service to obtain a connection instruction. The Android application also determines the system permissions and system signatures required for the preset middleware service according to the running system, and then binds the connection instruction and the preset middleware service to obtain a calling instruction. Finally, the system interface or the chip manufacturer interface is called according to the interface calling requirement corresponding to the calling instruction.

[0018] Different from the traditional TV platform application interface calling method, the present invention introduces a preset middleware service as a carrier for obtaining system permissions and system signatures, so that the Android application avoids the technical problem of inputting instruction codes and obtaining system signatures each time when updating and calling permission interfaces. Therefore, by introducing the preset middleware service, the effect of updating Android applications in real time can be achieved, and the efficiency of Android applications calling system interfaces or chip manufacturer interfaces can be improved, meeting the needs of Android applications for conveniently calling permission interfaces. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of the first embodiment of the method for calling the television platform application interface of the present invention;

[0020] Figure 2This is a flow chart of a second embodiment of the television platform application interface calling method of the present invention;

[0021] Figure 3 It is a flowchart of a third embodiment of the television platform application interface calling method of the present invention;

[0022] Figure 4 A schematic diagram of a specific application process involved in an embodiment of a method for calling an application interface of a television platform according to the present invention;

[0023] Figure 5 A schematic diagram of a module of a television platform application interface calling device according to the present invention;

[0024] Figure 6 A schematic diagram of the structure of a terminal device involved in an embodiment of the present invention;

[0025] Figure 7 It is a schematic diagram of the structure of a computer-readable storage medium involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0027] The embodiment of the present invention provides a method for calling a television platform application interface, referring to Figure 1 As shown, Figure 1 It is a flowchart of the first embodiment of the television platform application interface calling method of the present invention.

[0028] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0029] In this embodiment, the television platform application interface calling method of the present invention is applied to a terminal device that calls a high-authority interface for an Android application. The television platform application interface calling method of the present invention includes:

[0030] Step S10, the terminal device obtains the connection requirement of the Android application and generates a connection instruction according to the connection requirement;

[0031] In this embodiment, the terminal device calls the integrated middleware data package set inside the Android application to obtain the connection requirement data, and uses the cross-process mechanism of the operating system to transmit the connection requirement data to the preset middleware service to obtain the connection instruction.

[0032] It should be noted that in this embodiment, Android applications can be represented by APP (Application), which refers to Android applications. As the name implies, TV APP is an application on the TV. APP is an indispensable and important part of the TV and the main bearer of the TV's extensibility. Only with APP can TV users customize functions according to their needs and achieve true "intelligence".

[0033] The integrated middleware data package refers to the integrated middleware SDK (Software Development Kit). The software development kit is a collection of development tools used by software engineers to create application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. Generally speaking, SDK is the SDK used to develop applications under the Windows platform. It can simply provide some files of the application programming interface API (Application Programming Interface) for a certain programming language, but it may also include complex hardware that can communicate with a certain embedded system. General tools include utilities for debugging and other purposes. SDKs also often include sample code, supporting technical notes, or other supporting documents that clarify doubts for basic reference materials.

[0034] The cross-process mechanism refers to cross-process Binder communication. Specifically, Figure 4 In the application process shown, Binder copies the connection requirement data obtained by the integrated middleware data package set inside the Android application control, and then transmits the connection requirement data to the preset middleware service to obtain the connection instruction. The cross-process Binder communication establishes a connection between the Android application and the preset middleware service to achieve the purpose of providing the middleware service with a connection instruction.

[0035] The preset middleware service is a type of software between Android applications and high-privilege interfaces. It uses the basic service functions provided by the operating system to connect various parts of the application system or different applications on the network, and can achieve the purpose of resource sharing and function sharing.

[0036] Step S20, the terminal device determines a call instruction according to the connection instruction and a preset middleware service; wherein the preset middleware service is used to connect the Android application and the system interface or chip manufacturer interface of the authority.

[0037] In this embodiment, the terminal device obtains a connection instruction through a cross-process operation of the system, and after the terminal device determines the system authority and system signature required by the preset middleware service according to the operation system, it binds with the set middleware service to obtain a call instruction.

[0038] It should be noted that, in this embodiment, the preset middleware service is re-packaged with the system interface and the chip manufacturer interface to achieve the purpose of a unified interface, eliminating the differences between the system interface and the chip manufacturer interface, and utilizing the resource sharing and function sharing features of the preset middleware service to simplify the process of Android applications calling the system interface or chip manufacturer interface.

[0039] In this embodiment, by referencing the preset middleware service to connect the connection instructions and the high-authority interface, an interactive bridge is built between the connection instructions and the high-authority interface, which not only achieves the effect of real-time updating of Android applications, but also improves the efficiency of Android applications calling system interfaces or chip manufacturer interfaces.

[0040] Step S30, the terminal device calls the system interface or the chip manufacturer interface according to the calling instruction; wherein the chip manufacturer interface is a supplier interface coupled to the Android application platform.

[0041] In this embodiment, after the preset middleware service realizes interface unification with the system interface and the chip manufacturer interface, the terminal device obtains the interface call requirement corresponding to the call instruction, and then calls the system interface or chip manufacturer interface pointed to by the interface call requirement.

[0042] It should be noted that, in this embodiment, the system interface refers to an interface that can only be used by applications with system permissions, such as the power on / off setting interface of the TV platform and the WIFI connection and disconnection setting interface of the TV platform.

[0043] The chip manufacturer interface refers to the supplier interface, which is highly coupled with the Android application platform. Generally, different platforms have different interfaces, such as image mode interface, brightness contrast mode interface, movie mode interface, and music mode interface. It should be noted that the above content provides specific examples of system interfaces and chip manufacturer interfaces, but is not limited to these 6 high-authority interfaces.

[0044] In summary, the terminal device of the present invention controls the integrated middleware data packet set inside the Android application to obtain the connection demand, and uses the cross-process mechanism of the operating system to transmit the connection demand to the preset middleware service to obtain the connection instruction, and the terminal device also determines the system permissions and system signatures required by the preset middleware service according to the operating system, and then binds the connection instruction and the preset middleware service to obtain the call instruction, and finally calls the system interface or the chip manufacturer interface according to the interface call demand corresponding to the call instruction. Among them, the preset middleware service is encapsulated twice with the system interface and the chip manufacturer interface, and a module including the preset middleware service, the system interface and the chip manufacturer interface is obtained, which eliminates the differences between the system interface and the chip manufacturer interface and achieves the purpose of unified interface.

[0045] Different from the traditional TV platform application interface calling method, the present invention introduces a preset middleware service as a carrier for obtaining system permissions and system signatures, so that the Android application avoids the technical problem of multiple input of instruction codes and acquisition of system signatures when updating and calling permission interfaces. Therefore, by introducing the preset middleware service, the effect of real-time updating of Android applications can be achieved, and the efficiency of Android applications calling system interfaces or chip manufacturer interfaces can be improved, meeting the requirements of Android applications calling permission interfaces.

[0046] Furthermore, based on the first embodiment of the method for calling the TV platform application interface of the present invention, a second embodiment of the method for calling the TV platform application interface of the present invention is proposed. Figure 2 , Figure 2 It is a flowchart of the second embodiment of the television platform application interface calling method of the present invention.

[0047] In this embodiment, the Android application is integrated with a middleware data package. In the above step S10, the connection requirements of the Android application are obtained, and a connection instruction is generated according to the connection requirements, which may specifically include:

[0048] Step S101, the terminal device generates a connection requirement for the Android application according to the middleware data packet;

[0049] In this embodiment, a middleware data package is integrated into the Android application. The middleware data package runs inside the Android application and monitors whether the Android application has a connection requirement to update the application software or call a high-authority interface.

[0050] If the middleware data packet detects a signal from the Android application to update the application software or call a high-privilege interface when the middleware data packet is running inside the Android application, the middleware data packet performs a series of calculations inside the Android application to obtain the connection requirements and transmits them to the terminal device, so that the terminal device obtains the connection requirements. If the middleware data packet does not monitor the signal from the Android application to update the application software or call a high-privilege interface when the middleware data packet is running inside the Android application, it means that the Android application currently has no need to update the software application or call a high-privilege interface.

[0051] It should be noted that, in this embodiment, the middleware data packet refers to the integrated middleware data packet, that is, the integrated middleware SDK (Software Development Kit); the connection requirement data refers to the requirement information issued by the Android application to update the software application or call the high-authority interface, where the high-authority interface refers to the system interface and the chip manufacturer interface.

[0052] In this embodiment, the requirement information of updating software application or calling high-authority interface issued by Android application is obtained by integrating middleware data packet monitoring, so as to enable the terminal device to obtain connection requirement data.

[0053] Step S102: The terminal device determines the target process information corresponding to the connection requirement based on a preset cross-process mechanism, and generates a connection instruction according to the target process information.

[0054] In this embodiment, the terminal device relies on running the native cross-process mechanism Binder of the Android system to establish a connection channel between the Android application and the preset middleware service. The terminal device first transmits the connection demand obtained by the integrated middleware SDK to the cross-process mechanism Binder, and determines the target process information corresponding to the connection demand data in the cross-process mechanism Binder, and then transmits the target process information to the preset middleware service through the cross-process mechanism Binder, and obtains the connection instruction.

[0055] It should be noted that, in this embodiment, the target process information refers to the carrier in the preset middleware service that the Android application needs to transmit the connection requirement; and the connection instruction refers to the connection requirement signal obtained in the preset middleware service through the preset cross-process mechanism.

[0056] In this embodiment, in the operating system of the terminal device where the Android application calls the high-authority interface, the memory between processes is not shared. The two processes are like two parallel worlds, and process A cannot directly access the data of process B, that is, there is process isolation between the Android application and the preset middleware service. Therefore, in order to exchange data between process A and process B, a special communication mechanism must be adopted, that is, the terminal device needs to control the Android application to rely on the communication mechanism of the operating system to call the connection demand data to the kernel space, and then use the kernel space to call the connection demand data into the preset middleware service, where the kernel space refers to the space where the system kernel runs, and the kernel space establishes the connection between process A and process B. In short, the cross-process mechanism of the operating system is to copy the connection requirements in the Android application to the kernel space, and then copy them from the kernel space to the preset middleware service.

[0057] In some feasible embodiments, the above step S20: the terminal device determines the calling instruction according to the connection instruction and the preset middleware service, may include:

[0058] Step S201, the terminal device determines the native process information of the Android application according to the connection instruction, and uses the native process information as the first connection information;

[0059] In this embodiment, the terminal device controls the integrated intermediate SDK to analyze the connection instruction and determines that the Android application has not obtained system permission information before, that is, the Android application runs in accordance with the native mechanism. Therefore, the terminal device obtains its native process information and uses the native process information as the first connection information.

[0060] It should be noted that the native process information refers to the state in which the Android application runs in accordance with the native mechanism; and the first connection information refers to the state in which the Android application runs in accordance with the native mechanism as a binding association with the preset middleware service.

[0061] In this embodiment, the purpose of acquiring the native process information through the connection instruction is to obtain the first connection information associated with the preset middleware service binding.

[0062] Step S202: The terminal device determines a calling instruction according to the first connection information and the preset middleware service.

[0063] After the terminal device binds the first connection information with the preset middleware service by relying on the cross-process mechanism, it will obtain an instruction to call the system interface or the chip manufacturer interface. In this embodiment, the first connection information is associated with the preset middleware service in order to obtain a demand signal for calling the system interface or the chip manufacturer interface.

[0064] In some other feasible embodiments, in the above step S20: the terminal device determines the calling instruction according to the connection instruction and the preset middleware service, the method further includes:

[0065] Step S203, determining the permission status of the Android application according to the connection instruction, and using the permission status as the second connection information;

[0066] In this embodiment, the terminal device controls the integrated intermediate SDK to analyze the connection instruction and determines that the Android application previously obtains system permission information, so the terminal device obtains its permission status and uses the permission status as the second connection information.

[0067] It should be noted that the permission status refers to that the Android application has previously obtained the system permission of the operating system; and the second connection information refers to another situation in which the Android application has obtained the system permission of the operating system as a binding association with the preset middleware service.

[0068] In this embodiment, the system status of the Android application is obtained through the connection instruction in order to obtain the second connection information associated with the preset middleware service.

[0069] Step S204: the terminal device determines a calling instruction according to the second connection information and the preset middleware service.

[0070] After the terminal device binds the second connection information with the preset middleware service by relying on the cross-process mechanism, it will obtain an instruction to call the system interface or the chip manufacturer interface. In this embodiment, the second connection information is associated with the preset middleware service to obtain a demand signal for calling the system interface or the chip manufacturer interface.

[0071] In some feasible embodiments, the above step S30: the terminal device calls the system interface or the chip manufacturer interface according to the calling instruction, includes:

[0072] Step S301, determining the target interface to be called pointed to by the interface call requirement corresponding to the call instruction;

[0073] After the Android application relies on the cross-process mechanism of the running system to bind with the preset middleware service, the terminal device obtains the call instruction, and the integrated middleware SDK built into the Android application parses and obtains the interface call requirement information. The terminal device then determines the target interface to be called pointed to by the interface call requirement, and determines whether the target interface to be called is a system interface or a chip manufacturer interface.

[0074] It should be noted that the interface call demand refers to the demand for Android applications to call system interfaces or chip manufacturer interfaces.

[0075] Step S302, if the target interface to be called is a system interface, then call the system interface;

[0076] When the terminal device determines that the target interface to be called is a system interface, the terminal device obtains information about the Android application calling the system interface.

[0077] In this embodiment, the bridge built by the preset middleware service determines that the target interface to be called pointed to by the interface call demand is the system interface, thereby achieving the effect of Android application quickly calling the system interface, optimizing the steps of Android application calling the system interface, making it more convenient for Android application to call the system interface and improving the efficiency of calling the system interface.

[0078] For example, after the iQiyi APP calls the system interface, the TV system platform can be shut down in the iQiyi APP, and the TV platform WiFi connection and disconnection functions can also be completed in the iQiyi APP.

[0079] Step S303: If the target interface to be called is a chip manufacturer interface, the chip manufacturer interface is called.

[0080] The terminal device controls the Android application to rely on the cross-process mechanism of the operating system to bind with the preset middleware service, and obtains the call instruction, wherein the integrated middleware SDK in the Android application parses and obtains the interface call requirement information. When the terminal device then determines that the target interface to be called pointed to by the interface call requirement information of the current Android application is the chip manufacturer interface, the terminal device determines the information of the Android application calling the chip manufacturer interface.

[0081] In this embodiment, the bridge built by the preset middleware service determines that the target interface to be called by the interface call demand is the chip manufacturer's interface. The preset middleware service is also used to achieve the effect of Android applications quickly calling the chip manufacturer's interface, and optimizes the steps of Android applications calling the chip manufacturer's interface, making it faster and easier for Android applications to call the chip manufacturer's interface.

[0082] For example, after the iQiyi APP calls the chip manufacturer's interface, the screen brightness of the TV system platform can be adjusted within the iQiyi APP.

[0083] In this embodiment, if Figure 4 As shown, Figure 4 This is a schematic diagram of a specific application process involved in an embodiment of a method for calling an application interface on a television platform of the present invention. After the terminal device controls the Android application and relies on running the native cross-process mechanism Binder of the Android system to transmit the connection requirement to the preset middleware service across processes, a connection instruction is obtained, and then the connection instruction is bound to the preset middleware service to output a calling instruction, and then the system interface or the chip manufacturer interface is selected to be called according to the target interface to be called pointed to by the interface calling requirement corresponding to the calling instruction.

[0084] Therefore, referencing the preset middleware service as the calling portal can not only satisfy the Android application to call the high-privilege interface after obtaining system permissions, but also satisfy the Android application to call the high-privilege interface in accordance with the native mechanism, making the method for Android applications to call the high-privilege interface faster and simpler, and enabling ordinary APPs to have system platform-related functions.

[0085] Further, based on the first embodiment and / or the second embodiment of the television platform application interface calling method of the present invention, a third embodiment of the television platform application interface calling method of the present invention is proposed, referring to Figure 3 , Figure 3 It is a flowchart diagram of the third embodiment of the television platform application interface calling method of the present invention.

[0086] In this embodiment, before the above step S20: determining the calling instruction according to the connection instruction and the preset middleware service, the TV platform application interface calling method may further include:

[0087] Step B10, the terminal device obtains the connection condition of the preset middleware service;

[0088] In this embodiment, the terminal device obtains the connection requirements of the Android application. The connection requirements of the Android application rely on the cross-process mechanism of the operating system to enter the preset middleware service, and also need to obtain the connection conditions of the preset middleware service, so that the terminal device ensures that the Android application can update the application and call high-authority interfaces.

[0089] It should be noted that the connection condition refers to the condition that satisfies the Android application to update and call the high-authority interface. In this embodiment, obtaining the connection condition of the preset middleware service is the key to ensure the success of the Android application update and the success of calling the high-authority interface.

[0090] Step B20, the terminal device determines the activation state of the preset middleware service according to the connection condition;

[0091] The terminal device determines that the enabled state of the preset middleware service is turned on according to the connection condition, that is, the preset middleware service obtains the conditions of the running system that allow the Android application to update and call the high-authority interface.

[0092] Step B30: If the enabling state is the on state, a step of determining a calling instruction according to the connection instruction and the preset middleware service is triggered.

[0093] After the terminal device determines that the preset middleware service has been connected to the system interface and the chip manufacturer interface to realize the unified interface, the terminal device can trigger the step of determining the call instruction according to the connection instruction and the preset middleware service.

[0094] It should be noted that the open state refers to obtaining the operation information of the preset middleware service as the portal. In this embodiment, the operation information of the preset middleware service is obtained according to the connection condition in order to successfully execute the step of binding the Android application with the preset middleware service to obtain the call instruction.

[0095] In some feasible embodiments, the above step B10 may include:

[0096] Step B11, the terminal device determines the system permission information of the operating system of the Android application;

[0097] The terminal device can determine the corresponding system permission information according to the high-authority data of the running system. It should be noted that the system permission information refers to the access and use mechanism of the database at the system level. In other words, the system permission is set for the user, and the user must be granted the corresponding system permission before connecting to the database to perform certain operations. General system permissions include creating sessions, creating tables, creating views, creating users, etc. In the TV system platform, in order to ensure the security of the system, it is usually necessary to set up multi-level user permissions.

[0098] Step B12, the terminal device determines the system signature information of the running system;

[0099] In this embodiment, the terminal device can determine the corresponding system signature information based on the system source code data. It should be noted that the system source code is the code that the developer writes the program, which has not been compiled and run, that is, the code of the most original program written. Therefore, the system signature information is provided to the software developer to digitally sign the software code developed by the developer, which is used to verify the authenticity of the developer's identity and protect the integrity of the code.

[0100] Step B13: The terminal device uses the system authority information and the system signature information as connection conditions for the preset middleware service.

[0101] In this embodiment, the system authority information and the system signature information are used as connection conditions for the preset middleware service, that is, the terminal device needs to determine the preset middleware service to obtain the system authority information and the system signature information.

[0102] In this embodiment, if Figure 4 In the application process shown, when an Android application is updated or calls a high-authority interface, the purpose of quickly calling a high-authority interface is achieved by introducing a preset middleware service as a medium for obtaining system permission information and system signature information, thereby improving the efficiency of Android applications calling high-authority interfaces; in addition, Android applications no longer need to add the instruction code android:sharedUserId="android.uid.system" in AndroidManifest (Android file development name), and Android applications do not need to use the system signature that is strongly related to the TV system platform, and can be put on the mall to update the app in real time, avoiding strong association with the system. Among them, the manifest in AndroidManifest is a software, belonging to the AndroidManifest.xml file, which puts forward important information in the application of the Android system, and it can run the code of any application.

[0103] Furthermore, the present invention also provides a device for calling a television platform application interface. Figure 5 , Figure 5 It is a schematic diagram of a module of a television platform application interface calling device according to the present invention.

[0104] The television platform application interface calling device of the present invention comprises:

[0105] The generation module H01 is used to obtain the connection requirements of the Android application and generate a connection instruction according to the connection requirements;

[0106] The determination module H02 is used to determine the call instruction according to the connection instruction and the preset middleware service; wherein the preset middleware service is used to connect the system interface or chip manufacturer interface of the Android application and the authority;

[0107] The calling module H03 is used to call the system interface or the chip manufacturer interface according to the calling instruction; wherein the chip manufacturer interface is a supplier interface coupled with the Android application platform.

[0108] Optionally, calling module H03 includes:

[0109] An information determination unit, used to determine a target to-be-called interface pointed to by an interface call requirement corresponding to a call instruction;

[0110] The first interface calling unit is used to call the system interface if the target interface to be called is a system interface; or

[0111] The first interface calling unit is further used to call the chip manufacturer interface if the target interface to be called is the chip manufacturer interface.

[0112] Optionally, the Android application is integrated with a middleware data package, generating a module H01, including:

[0113] A demand generation unit, used for generating a connection demand of an Android application according to a middleware data packet;

[0114] The instruction generation unit is used to determine the target process information corresponding to the connection requirement based on the preset cross-process mechanism, and generate a connection instruction according to the target process information.

[0115] Optionally, the determination module H02 includes:

[0116] A first information determining unit, configured to determine the native process information of the Android application according to the connection instruction, and use the native process information as the first connection information;

[0117] The first instruction determining unit is used to determine a calling instruction according to the first connection information and a preset middleware service.

[0118] Optionally, the determination module H02 includes:

[0119] a second information determining unit, configured to determine a permission status of the Android application according to the connection instruction, and use the permission status as second connection information;

[0120] The second instruction determining unit is used to determine the calling instruction according to the second connection information and the preset middleware service.

[0121] Optionally, the determination module H02 may further include:

[0122] A condition acquisition unit, used to acquire the connection condition of the preset middleware service;

[0123] A state determination unit, used to determine the activation state of a preset middleware service according to a connection condition;

[0124] The trigger unit is used to trigger the step of determining the call instruction according to the connection instruction and the preset middleware service if the enabling state is the on state.

[0125] Optionally, the determination module H02 may further include:

[0126] A system permission determination unit, used to determine the system permission information of the operating system of the Android application;

[0127] A system signature determination unit, used to determine the system signature information of the running system;

[0128] The connection condition determination unit is used to use the system authority information and the system signature information as the connection condition of the preset middleware service.

[0129] Each functional module of the television platform application interface calling device of the present invention implements the steps of each embodiment of the television platform application interface calling method of the present invention as described above during operation.

[0130] In addition, the present invention also provides a terminal device. Figure 6 , Figure 6 The terminal device of the embodiment of the present invention may be a television device based on the Android system as the local operating system.

[0131] like Figure 6 As shown, the terminal device of the embodiment of the present invention may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005 and a sensing unit 1006. Among them, the communication bus 1002 is used to realize the connection and 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 and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).

[0132] The memory 1005 is arranged on the terminal device body, and a program is stored on the memory 1005, and the program implements the corresponding operation when it is executed by the processor 1001. The memory 1005 is also used to store parameters for use by the terminal device. The memory 1005 can be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.

[0133] The terminal device can communicate with the user terminal through the network interface 1004. The terminal device can also communicate with the base station through short-range communication technology. Among them, the base station is a cleaning device used in conjunction with the terminal device.

[0134] Those skilled in the art will understand that Figure 6 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0135] like Figure 6 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an intelligent connection program of a terminal device.

[0136] exist Figure 6 In the terminal device shown, the processor 1001 can be used to call the intelligent connection program of the terminal device stored in the memory 1005, and execute the steps of each embodiment of the television platform application interface calling method of the present invention.

[0137] In addition, the present invention also provides a computer-readable storage medium. Figure 7 , Figure 7 It is a schematic diagram of the structure of a computer-readable storage medium involved in an embodiment of the present invention.

[0138] The present invention also provides a computer-readable storage medium, on which a television platform application interface calling program is stored. When the television platform application interface calling program is executed by a processor, the steps of the television platform application interface calling method as described above are implemented.

[0139] The various embodiments of the storage medium of the present invention can refer to the various embodiments of the television platform application interface calling method of the present invention, which will not be described in detail here.

[0140] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0141] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as ROM / RAM, a magnetic disk, or an optical disk as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the above-mentioned embodiments of the present invention.

[0143] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for calling a television platform application interface, characterized in that: include: Obtaining connection requirements of the Android application, and generating connection instructions according to the connection requirements; Obtaining a connection condition of a preset middleware service, and determining an activation state of the preset middleware service according to the connection condition, wherein the connection condition is a condition that satisfies an Android application to update and call a high-authority interface; If it is determined that the enabling state is the on state, determining a calling instruction according to the connection instruction and the preset middleware service; wherein the preset middleware service is used to connect the system interface or chip manufacturer interface of the Android application and the permission, and the on state is to obtain the operation information of the preset middleware service as a portal; The step of determining the calling instruction according to the connection instruction and the preset middleware service includes: If it is determined according to the connection instruction that the Android application has not obtained the system permission information, then the native process information of the Android application is determined, and the native process information is used as the first connection information, and the call instruction is determined according to the first connection information and the preset middleware service; wherein the native process information refers to the state in which the Android application runs in accordance with the native mechanism; If it is determined according to the connection instruction that the Android application obtains the system permission information, then the permission status of the Android application is determined, and the permission status is used as the second connection information, and the calling instruction is determined according to the second connection information and the preset middleware service; wherein the permission status refers to whether the Android application has previously obtained the system permission of the operating system; Calling the system interface or the chip vendor interface according to the calling instruction; wherein the chip vendor interface is a vendor interface coupled to the platform of the Android application; The calling the system interface or the chip manufacturer interface according to the calling instruction includes: Determine the target interface to be called pointed to by the interface call requirement corresponding to the call instruction, and judge whether the target interface to be called is a system interface or a chip manufacturer interface; If it is determined that the target interface to be called is the system interface, then the system interface is called; or, If it is determined that the target interface to be called is the chip manufacturer interface, the chip manufacturer interface is called.

2. The method according to claim 1, characterized in that The Android application is integrated with a middleware data package, and the obtaining of the connection requirements of the Android application and generating a connection instruction according to the connection requirements includes: Generate a connection requirement for the Android application according to the middleware data packet; The target process information corresponding to the connection requirement is determined based on a preset cross-process mechanism, and a connection instruction is generated according to the target process information.

3. The method according to claim 1, characterized in that The obtaining of the connection condition of the preset middleware service includes: Determine system permission information of the operating system of the Android application; Determining system signature information of the running system; The system authority information and the system signature information are used as connection conditions for the preset middleware service.

4. A device for calling a television platform application interface, characterized in that: include: A generation module, used to obtain the connection requirements of the Android application and generate a connection instruction according to the connection requirements; Obtaining a connection condition of a preset middleware service, and determining an activation state of the preset middleware service according to the connection condition, wherein the connection condition is a condition that satisfies an Android application to update and call a high-authority interface; A determination module, for determining a call instruction according to the connection instruction and a preset middleware service if it is determined that the activation state is an on state; wherein the preset middleware service is used to connect the system interface or chip manufacturer interface of the Android application and the permission, and the on state is to obtain the operation information of the preset middleware service as a portal; The step of determining the calling instruction according to the connection instruction and the preset middleware service includes: If it is determined according to the connection instruction that the Android application has not obtained the system permission information, then the native process information of the Android application is determined, and the native process information is used as the first connection information, and the call instruction is determined according to the first connection information and the preset middleware service; wherein the native process information refers to the state in which the Android application runs in accordance with the native mechanism; If it is determined according to the connection instruction that the Android application obtains the system permission information, then the permission status of the Android application is determined, and the permission status is used as the second connection information, and the calling instruction is determined according to the second connection information and the preset middleware service; wherein the permission status refers to whether the Android application has previously obtained the system permission of the operating system; A calling module, configured to call the system interface or the chip vendor interface according to the calling instruction; wherein the chip vendor interface is a vendor interface coupled to the platform of the Android application; The calling the system interface or the chip manufacturer interface according to the calling instruction includes: Determine the target interface to be called pointed to by the interface call requirement corresponding to the call instruction, and judge whether the target interface to be called is a system interface or a chip manufacturer interface; If it is determined that the target interface to be called is the system interface, then the system interface is called; or, If it is determined that the target interface to be called is the chip manufacturer interface, the chip manufacturer interface is called.

5. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a TV platform application interface calling program stored in the memory and executable on the processor. When the processor executes the TV platform application interface calling program, the steps of the TV platform application interface calling method as described in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a television platform application interface calling program, and when the television platform application interface calling program is executed by the processor, the steps of the television platform application interface calling method according to any one of claims 1 to 3 are implemented.