CN116661908B - EPG system input mode registration method - Google Patents
EPG system input mode registration method Download PDFInfo
- Publication number
- CN116661908B CN116661908B CN202310919340.3A CN202310919340A CN116661908B CN 116661908 B CN116661908 B CN 116661908B CN 202310919340 A CN202310919340 A CN 202310919340A CN 116661908 B CN116661908 B CN 116661908B
- Authority
- CN
- China
- Prior art keywords
- input mode
- apk
- starting
- daemon
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000004590 computer program Methods 0.000 claims description 2
- 230000002452 interceptive effect Effects 0.000 claims description 2
- 238000013507 mapping Methods 0.000 claims description 2
- 238000012216 screening Methods 0.000 claims description 2
- 238000012856 packing Methods 0.000 claims 1
- 238000012546 transfer Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention provides a registration method of an input mode of an EPG system, which belongs to the technical field of input mode information and comprises the following steps: establishing an EPG template; the EPG template transmits a first registration instruction to the starting APK through webview; starting APK to obtain Flash chip information of the set top box through a local command, and returning to an input mode identification list according to the chip type; the EPG template transmits a second registration instruction to the starting APK through webview, and the starting APK stores the registration input mode identification into the sqlite database; and starting the APK, calling an input mode daemon to initialize an input mode identification program through JNI calling, registering the input mode identification program in a ServiceManager, and receiving an input instruction sent by an application by the daemon to perform escape and sending. The invention is suitable for various set top box hardware scenes, and effectively enhances the safety of the system by starting the APK management input mode.
Description
Technical Field
The invention relates to the technical field of input mode information, in particular to an EPG system input mode registration method.
Background
Recently, android (Android) systems are increasingly applied to embedded devices, such as smart television set-top boxes. How to use a remote controller for character input on Android is a problem to be solved urgently.
Chinese invention patent name: method and system for character input on embedded equipment, notice number: CN102298497a proposes a method and system for character input on embedded devices. Wherein the method comprises the following steps: creating and displaying a default soft keyboard on the embedded equipment according to the received call-out input mode instruction; receiving a control request sent by a user, and judging the type of the control request: after judging the type of the control request, further judging whether the current input mode state is a character input state, and if so, executing corresponding operations such as focus display, focus movement, character input of a key where a focus is located and the like to realize character input.
Because of the difference of the operating systems, the existing input mode application is independently designed aiming at different operating systems, so that the service logic (such as processing logic for input information) of the input mode application in different platforms is generally different, the applicability is lower, and the system security is not high.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides the EPG system input mode registration method which is applicable to various scenes and has high safety.
The invention adopts the technical scheme that:
an EPG system input mode registration method includes:
establishing an EPG template of an EPG system;
the EPG template transmits a first registration instruction to the starting APK through webview;
starting APK to obtain Flash chip information of the set top box through a local command, and returning to an input mode identification list according to the chip type;
the EPG template transmits a second registration instruction to the starting APK through webview, and the starting APK stores the registration input mode identification into the sqlite database;
and starting the APK, calling the input mode daemon to initialize the input mode identification program through JNI calling, and registering in the ServiceManager.
The daemon APK receives the input instruction sent by the application, and performs escape and sending.
A computer storage medium having stored thereon a computer program for carrying out the method when executed by a computer processor.
The beneficial effects of the invention are as follows: the method realizes the interaction of starting APK and the EPG system through webview, sets a global custom input mode in the EPG system and opens the mode to an EPG template side, and an input mode initialization program of the method provides an IBinder interface, so that an application can span Cheng Bang, adapt to various set top box hardware scenes, and effectively enhance the safety of the system by starting the APK management input mode.
Drawings
FIG. 1 is a flow chart of a method for registering an input mode of an EPG system according to the present invention;
FIG. 2 is a flow chart of a method for obtaining a set top box chip model according to the present invention;
fig. 3 is a flowchart of a method for switching input modes and sending an input command according to the present invention.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings: in order to clearly illustrate the technical features of the present solution, the present invention will be described in detail below with reference to the following detailed description and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted so as to not unnecessarily obscure the present invention.
As shown in fig. 1, the present invention discloses a method for registering an input mode of an EPG system, which comprises the following steps: establishing an EPG template of an EPG system; the EPG template transmits a first registration instruction to the starting APK through webview, so that the user can conveniently register in an operation input mode. And starting the APK, reading the Flash chip information of the set top box through a local command, and returning to the input mode identification list according to the chip type. The EPG template transmits a second registration instruction to a starting APK through webview, the starting APK stores the registration input mode identification into a sqlite database, and the second registration instruction comprises: the registration instruction and the input mode identification name are one of a group of custom input mode package names. And starting the APK, calling the input mode daemon to initialize the input mode identification program through JNI calling, and registering in the ServiceManager. The daemon APK receives the input instruction sent by the application, and performs escape and sending. And starting the APK to update the registration state of the input mode identifier in the sqlite.
As shown in fig. 2, the present invention provides a method for obtaining a set-top box chip model, including:
and starting the APK to guide the application for the android set top box, loading an EPG template based on html by the APK through webview, and presetting an interactive interface by the EPG template and the APK through webview to carry out instruction transmission.
And starting the APK to execute the shell script through the run time to run the ADB command, reading the set top box system file/system/build.prog, acquiring Flash chip information, starting the APK to package name mapping and screening candidate input modes according to the preset chip type and the custom input mode of the Flash chip information, and returning to the EPG template through webview.
Under the condition of a network, reading a network interface to obtain a candidate input mode corresponding to a chip; and under the condition of a network, reading the local preset information to obtain a candidate input mode corresponding to the chip.
As shown in fig. 3, the present invention provides a method for switching input modes and sending an input instruction, which includes:
daemon APK provides the IBinder interface. The multiple input mode processes communicate by using IBinder multipath combination, process sharing is realized between the IBinder processes and the client processes, and mutual access is performed between shared parameters and the IBinder by multipath mirror images.
The method comprises the steps that an initiating APK interacts with an input mode daemon through JNI calling, the daemon APK is registered in a ServiceManager through an addService method of an IServiceManager of the android, the input mode daemon receives an input mode identification name, an initialization process is started, and services of the input mode identification are initialized.
The EPG template selects one input mode from candidate input modes, informs a starting APK through webView, informs a daemon APK through JNI call, and the daemon APK keeps the selected input mode in the sqlite database.
The daemon APK owns the system signature and executes SU commands through the SHELL to acquire SU rights.
The daemon APK modifies the file rights of the selected input modality via CHMOD 777.
The set top box application obtains the input service through the ServiceManager and sends an input instruction to the set top box application. The daemon APK performs escape on the input instruction according to the current input mode, and sends the escape instruction to the corresponding input medium.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.
Claims (9)
1. An EPG system input mode registration method, comprising:
establishing an EPG template of an EPG system;
the method comprises the steps that an EPG template transmits a first registration instruction to a starting APK through webview, wherein the first registration instruction is a request identifier which is sent to the starting APK by the EPG template and used for acquiring a candidate input mode list;
starting APK to obtain Flash chip information of the set top box through a local command, and returning to an input mode identification list according to the chip type;
the EPG template selects one input mode from candidate input modes, a second registration instruction is transmitted to the starting APK through webview, the starting APK informs the daemon APK through JNI call, and the daemon APK keeps the selected input mode in the sqlite database;
the daemon APK provides an IBinder interface, allows cross-process access, uses IBinder multi-path combination to communicate among a plurality of input mode processes, realizes process sharing between the IBinder processes and client processes, and performs mutual access between sharing parameters and the IBinder by multi-path mirror images;
starting an APK, calling an input mode daemon to initialize an input mode identification service program through JNI calling, starting the APK to interact with the input mode daemon through JNI calling, registering the daemon APK in a ServiceManager through an addService method of an IServiceManager, receiving an input mode identification name by the input mode daemon, starting an initialization process, and initializing a service of the input mode identification;
the daemon APK receives an input instruction sent by an application, and the daemon APK carries out escape on the input instruction according to the current input mode and sends the escape instruction to a corresponding input medium
The daemon APK has a system signature, and executes an SU command through the SHELL to acquire SU authority and switch the SU authority;
the daemon APK modifies the file authority of the selected input mode through SHELL; the set top box application obtains the input service through the ServiceManager and sends an input instruction to the set top box application.
2. The method for registering input modes of the EPG system according to claim 1, wherein the method is characterized in that the method comprises the steps of starting an APK, executing a shell script through a run, running an ADB command, reading a system file, obtaining Flash chip information, starting the APK, packing name mapping and screening candidate input modes according to the chip type preset by the Flash chip information and a custom input mode, and returning to an EPG template through webview.
3. The EPG system input mode registration method of claim 1, wherein the EPG template transmits a second registration instruction to the start APK through webview, the start APK stores the registration input mode identifier in the sqlite database, and the second registration instruction includes: the method comprises the steps of registering an instruction character and an input mode identification name, wherein the input mode identification name is one of a group of custom input mode package names.
4. The EPG system input mode registration method of claim 1, wherein the startup APK interacts with the input mode daemon via JNI call, the input mode daemon receives the input mode identification name, starts an initialization process, and initializes the service of the input mode identification.
5. The method for registering input modes of EPG system as set forth in claim 1, wherein the APK is started to obtain the object identification of the input mode process through the return value called by JNI, and the object identification is registered in the ServiceManager through the addService method of the IServiceManager.
6. The EPG system input mode registration method of claim 1, wherein the APK is started to update the registration state of the input mode identifier in the sqlite database.
7. The EPG system input mode registration method of claim 1, wherein the start APK loads an html-based EPG template through webview, and the EPG template and the start APK perform instruction transfer through a webview preset interactive interface.
8. The EPG system input mode registration method of claim 1, wherein the plurality of input mode processes communicate through an IBinder multiplex combination, and the IBinder processes are shared with client inter-process processes.
9. A computer storage medium having stored thereon a computer program for implementing the method according to any of claims 1-8 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310919340.3A CN116661908B (en) | 2023-07-26 | 2023-07-26 | EPG system input mode registration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310919340.3A CN116661908B (en) | 2023-07-26 | 2023-07-26 | EPG system input mode registration method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116661908A CN116661908A (en) | 2023-08-29 |
CN116661908B true CN116661908B (en) | 2023-10-20 |
Family
ID=87720847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310919340.3A Active CN116661908B (en) | 2023-07-26 | 2023-07-26 | EPG system input mode registration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116661908B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783906A (en) * | 2010-03-23 | 2010-07-21 | 烽火通信科技股份有限公司 | Electronic program guide realization method in internet protocol television product |
CN102169447A (en) * | 2010-02-25 | 2011-08-31 | 中兴通讯股份有限公司 | Method and corresponding system for registering and deregistering self-defined Shell |
CN110740359A (en) * | 2019-10-18 | 2020-01-31 | 重庆空间视创科技有限公司 | EPG multi-platform fusion management system and method |
WO2021072861A1 (en) * | 2019-10-17 | 2021-04-22 | 平安科技(深圳)有限公司 | Application service processing method and apparatus, and terminal and storage medium |
CN113365122A (en) * | 2021-06-18 | 2021-09-07 | 帕科视讯科技(杭州)股份有限公司 | Dynamic arrangement method of EPG visual page |
CN114025207A (en) * | 2021-12-07 | 2022-02-08 | 贵阳朗玛视讯科技有限公司 | Method and device for starting APK plug-in based on IPTV system |
CN116055285A (en) * | 2023-03-27 | 2023-05-02 | 西安热工研究院有限公司 | Process management method and system of industrial control system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100514735B1 (en) * | 2002-12-27 | 2005-09-14 | 삼성전자주식회사 | Transmission method for XML-based EPG for user preference program guide and reception device thereof |
-
2023
- 2023-07-26 CN CN202310919340.3A patent/CN116661908B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169447A (en) * | 2010-02-25 | 2011-08-31 | 中兴通讯股份有限公司 | Method and corresponding system for registering and deregistering self-defined Shell |
CN101783906A (en) * | 2010-03-23 | 2010-07-21 | 烽火通信科技股份有限公司 | Electronic program guide realization method in internet protocol television product |
WO2021072861A1 (en) * | 2019-10-17 | 2021-04-22 | 平安科技(深圳)有限公司 | Application service processing method and apparatus, and terminal and storage medium |
CN110740359A (en) * | 2019-10-18 | 2020-01-31 | 重庆空间视创科技有限公司 | EPG multi-platform fusion management system and method |
CN113365122A (en) * | 2021-06-18 | 2021-09-07 | 帕科视讯科技(杭州)股份有限公司 | Dynamic arrangement method of EPG visual page |
CN114025207A (en) * | 2021-12-07 | 2022-02-08 | 贵阳朗玛视讯科技有限公司 | Method and device for starting APK plug-in based on IPTV system |
CN116055285A (en) * | 2023-03-27 | 2023-05-02 | 西安热工研究院有限公司 | Process management method and system of industrial control system |
Non-Patent Citations (4)
Title |
---|
A study on the control of smart device set-top box using image based reverse mirroring technology;Hae-Jong Joo等;SpringerLink;全文 * |
Android重包装应用程序静态分析系统的设计;孙翌博;邰淳亮;宫婧;;科技资讯(29);全文 * |
一种基于Android平台的EPG实现及优化;刘畅;潘国峰;华中;寇志强;王其民;;电视技术(21);全文 * |
基于Android的DVB-C智能机顶盒的设计与实现;艾有军;;福建电脑(03);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN116661908A (en) | 2023-08-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11006166B2 (en) | Method for television remote keypress response based on android operating system and television thereof | |
KR101279717B1 (en) | Hybrid resource manager | |
CN108206847B (en) | CDN management system, method and device | |
US9430053B2 (en) | Multi-hardware-system data processing device and information input method thereof | |
US8726249B2 (en) | Bootup method and device for application program in mobile equipment | |
CN103139253B (en) | Realize the method for network interface card offloading functions, network interface card, host computer system and the network equipment | |
JP2001511558A (en) | IEEE set top box device driver | |
CN113612861B (en) | Remote access method, system and computer readable storage medium | |
US7760383B2 (en) | Multiple function image formation device and method including master and sub-service functions | |
US8621511B2 (en) | System and method to control distribute processing and memory resources among applications in a television terminal | |
CN116661908B (en) | EPG system input mode registration method | |
US7774800B2 (en) | Applications manager with variable management instruction set | |
CN107704277A (en) | Plug-in loading method and system | |
CN103297516B (en) | The polymorphic type of a kind of application provides method, system and device | |
CN117407065A (en) | Network card pre-start control method, device, equipment, system and storage medium | |
CN112642145A (en) | Cloud game running system and method | |
EP1269312A2 (en) | Operating system abstraction interface for broadband terminal platform firmware | |
KR100579000B1 (en) | Modem Control | |
CN106303742B (en) | The response method and device of panel button operation | |
CN106028150B (en) | More application switching management methods of TV for linux system | |
CN109889867B (en) | Rental control system of projection equipment | |
CN110515674B (en) | Application loading method and device | |
US20130290981A1 (en) | Method and System for Controlled Communication Between Applications | |
KR100686065B1 (en) | Method for supporting game application program in digital broadcasting receiver | |
CN103294524A (en) | Television system and application program management method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |