Connecting a keyboard from a smartphone to a TV Android TV is a task that seems simple only at first glance. In practice, users are faced with a lack of Bluetooth pairing, non-functioning USB adapters, or incompatible applications. This article will help you understand all the nuances: from choosing a connection method to solving common errors.

We will consider 5 working methods from standard Bluetooth to using specialized applications like Remote Keyboard or Unified Remote. We will pay special attention hidden settings of Android TV 12+, where manufacturers often block the connection of third-party input devices by default. If you tried to connect a keyboard via USB-OTG, but the TV doesnโ€™t see it, here you will find an explanation and solution.

Important: the instructions are relevant for TVs Sony Bravia, Xiaomi Mi TV, Philips with Android TV 9.0 and later, as well as for set-top boxes NVIDIA Shield and Xiaomi Mi Box. For older models (Android 7-8), additional steps may be required - they are placed in a separate section.

1. Connecting via Bluetooth: step-by-step guide

The most universal way is to use Bluetooth keyboard, but not everyone knows that the virtual keyboard of a smartphone can also be transmitted using this protocol. Here's how to do it:

  1. Activate Bluetooth on the TV: go to Settings โ†’ Devices โ†’ Bluetooth.
  2. On your smartphone enable Developer mode (if it is not there, tap 7 times on the build number in Settings โ†’ About phone).
  3. In Settings โ†’ System โ†’ Developer Mode find the option HID device (or Keyboard emulation) and turn it on.
  4. Run search devices on the TV and connect the phone as Bluetooth keyboard.

โš ๏ธ Attention: On TVs Samsung s Tizen OS this method does not work - they do not support HID profiles for smartphones. Only a USB or network connection is suitable for them (see sections 3 and 4).

๐Ÿ“Š What kind of TV do you have?
Android TV (Sony, Xiaomi, Philips)
Samsung (Tizen)
LG (webOS)
Other

If the TV does not find the smartphone in the list of devices:

  • ๐Ÿ”„ Reboot both devices โ€” sometimes resetting the Bluetooth module helps.
  • ๐Ÿ“ฑ Disable power saving on the phone for Bluetooth (in the battery settings).
  • ๐Ÿ”ง Update firmware TV - in older versions of Android TV (up to 10) there were bugs with HID devices.

Enable Bluetooth on TV and phone|

Activate developer mode on your smartphone|

Enable HID keyboard emulation|

Reboot devices when pairing fails-->

2. Using USB-OTG: direct data transfer

If Bluetooth refuses to work, USB-OTG will become a reliable alternative. You will need:

  • ๐Ÿ”Œ USB-OTG cable (Type-C/Micro-USB โ†’ USB-A, depending on the TV connector).
  • ๐Ÿ“ฑ Smartphone with OTG support (check in the model specifications).
  • ๐Ÿ–ฅ๏ธ TV with a USB port (on some models Xiaomi Mi TV it is hidden behind a plug).

Instructions:

  1. Connect the OTG cable to the phone, and the other end to the USB port of the TV.
  2. A notification about the connected device will appear on the TV screen. Select Use as keyboard.
  3. If the option does not appear, go to Settings โ†’ Devices โ†’ USB and manually select the mode HID device.

โš ๏ธ Attention: On TVs Philips with Android TV 11+, USB keyboards are disabled by default for security reasons. To unlock the function, you need to:

  1. Hold the button Home on the remote control for 5 seconds.
  2. Enter the code 114466 (service menu).
  3. Find item USB Input Devices โ†’ Enable.
Why does the TV not see the smartphone via OTG?

On some models (for example, Sony KD-55X80J) the USB port is configured only for power (for flash drives). To activate data transfer, you need:

1. Connect an OTG hub with external power.

2. Use a cable with a chip PL2303 (sold as "OTG for keyboards").

3. Manually enable the mode Host Mode via ADB command:

adb shell setprop sys.usb.config diag,adb,serial_cdev,rmnet,cdc_ether,adb

TV model OTG support Required cable Notes
Xiaomi Mi TV 4S/5 Yes Type-C โ†’ USB-A Works without additional settings
Sony Bravia X90J Yes (USB 3.0 port only) Micro-USB โ†’ USB-A Required enable USB Debugging
Philips 7500 series Partially USB-C โ†’ USB-A + hub Service code required (see above)
NVIDIA Shield TV Yes Any OTG Supports keyboards and gamepads

3. Applications for remote control: virtual keyboard

If a physical connection is not possible, use specialized applications. They transmit keystrokes over Wi-Fi or Bluetooth, emulating a keyboard. Top 3 solutions:

  • ๐Ÿ“ฑ Unified Remote โ€” supports HID emulation, works without root. Link to Play Market.
  • ๐ŸŽฎ Remote Keyboard โ€”simple interface, but requires connection to the same network Wi-Fi.
  • ๐Ÿ–ฅ๏ธ Server for Second Screen is the official application from Google for Android TV, but does not work on all models.

Instructions for Unified Remote:

  1. Install the application on your phone and TV (on TV it is called Unified Remote Server).
  2. Connect both devices to the same Wi-Fi network.
  3. On the phone, select Add remote device โ†’ Android TV.
  4. In the remote settings, activate Keyboard Remoter.

โš ๏ธ Attention: On TVs Xiaomi s PatchWall application Unified Remote Server may be blocked by the system. Solution:

  1. Go to Settings โ†’ Applications โ†’ Special access โ†’ Access to notifications.
  2. Enable access for Unified Remote Server.
  3. Reboot the TV.
๐Ÿ’ก

If the application does not find the TV, check if it is blocking access firewall on the router. Add the TV's IP address to exceptions or temporarily disable protection.

4. ADB commands: for advanced users

If standard methods do not work, you can โ€œforceโ€ connect the keyboard via Android Debug Bridge (ADB). This method requires a computer, but gives 100% results.

What you will need:

  • ๐Ÿ’ป Computer with installed ADB (download Platform Tools).
  • ๐Ÿ“ฑ Smartphone with software debugging enabled USB.
  • ๐Ÿ”Œ USB cable to connect the phone to the PC.

Step-by-step guide:

  1. Connect the phone to the computer and confirm access for debugging.
  2. Open the command line in the folder with ADB and execute:
    adb tcpip 5555
    

    adb connect [TV_IP_ADDRESS]:5555

    (TV IP can be found in Settings โ†’ Network).

  3. Activate keyboard emulation:
    adb shell am broadcast -a android.intent.action.MEDIA_BUTTON --es keycode 224

    (this is a test command - if the smartphone reacts, then the connection is established).

  4. Install the application ADB Keyboard on your phone and follow it instructions.

โš ๏ธ Attention: On TVs with Android TV 12+ (for example, Google Chromecast 4K) ADB over Wi-Fi is disabled by default. To enable it:

  1. Connect to the TV via USB-OTG.
  2. Do:
    adb shell settings put global adb_wifi_enabled 1
  3. Reboot the TV.
๐Ÿ’ก

ADB connection is the most reliable method, but requires basic knowledge of working with the command line. If you have never used ADB, start with the applications from section 3.

5. Alternative methods: HDMI and Miracast

If none of the methods worked, there are โ€œworkaroundsโ€:

  • ๐Ÿ“บ HDMI connection โ€”use MHL cable or USB-C to HDMIto duplicate your smartphone screen on TV. Then you can use the phone's keyboard directly.
  • ๐Ÿ”„ Miracast/Wi-Fi Direct โ€”wireless screen mirroring (works on Samsung DeX, Huawei Share).
  • ๐ŸŽฎ Game controllers โ€”some applications (for example, Steam Link) allow you to use the phone as a keyboard for TV.

For Miracast:

  1. Enable Wi-Fi Direct on the TV (Settings โ†’ Network โ†’ Wi-Fi Direct).
  2. On your phone, activate Wireless display (in quick settings or Settings โ†’ Connected devices).
  3. Select TV from the list of available devices.

โš ๏ธ Attention: When using Samsung DeX the phone's keyboard will only work in desktop mode. For regular Android TV applications, additional settings will be required. DeX Labs.

6. Solving common problems

Even after successful connection, errors may occur. and ways to fix them:

Problem Possible cause Solution
The keyboard connects, but does not work HID profile conflict Disconnect other Bluetooth devices
The TV does not see the smartphone via OTG There is not enough power Use a hub with external power supply
The application does not find the TV on the network Router firewall Disable UPnP in the router settings
ADB gives an error no devices/emulators found USB Debugging is not enabled Check the developer settings on TV

If the keyboard works, but input delay is too long:

  • ๐Ÿ“ถ Reconnect to the 5 GHz network (if you use Wi-Fi).
  • ๐Ÿ”‹ Close background applications on your phone.
  • ๐Ÿ”„ Disable power saving for Bluetooth/Wi-Fi.
How to eliminate input lags?

The delay is often associated with Bluetooth codecs. On TVs Sony try:

1. Go to Settings โ†’ Sound โ†’ Audio quality via Bluetooth.

2. Select Priority of stability instead of Priority of quality.

3. Reconnect the device.

7. Security: how to prevent hacking through the keyboard

Connecting third-party input devices is a potential security threat. Attackers can intercept keystrokes or install malware. To protect yourself:

  • ๐Ÿ”’ Disable the keyboard after use (in Bluetooth settings).
  • ๐Ÿ›ก๏ธ Update firmware of the TV - older versions have vulnerabilities (for example, CVE-2021-0316 Android TV 9).
  • ๐Ÿšซ Do not connect to public Wi-Fi when using applications for remote control.
  • ๐Ÿ”‘ Use a PIN code to pair Bluetooth (if your TV supports it).

โš ๏ธ Attention: On TVs s Android TV 10 and below there is a bug that allows you to connect keyboards without confirmation. To close the vulnerability:

  1. Go to Settings โ†’ Devices โ†’ Bluetooth.
  2. Select Advanced โ†’ Secure pairing.
  3. Activate the option Confirmation required.

If you use ADB, after setup, disable debugging:

adb shell settings put global adb_wifi_enabled 0

Frequently asked questions

Can I connect an iPhone to Android TV as a keyboard?

Yes, but with restrictions. iPhone there is no native support for HID emulation, so you will need to:

  1. Install the application Remote Keyboard (for example, Typeeto).
  2. Connect to the same Wi-Fi network.
  3. On the TV enable Remote input in the accessibility settings.

โš ๏ธ Does not work on all Android TV models - check compatibility in the application description.

Why doesnโ€™t Xiaomi TV see the keyboard via Bluetooth?

On TVs Xiaomi s PatchWall there are two typical bugs:

  1. Blocking uncertified devices - solution: disable MIUI Optimization in the developer settings.
  2. Limit on the number of connected devices (maximum 3). Disable unnecessary gadgets in Settings โ†’ Bluetooth.

If that doesnโ€™t help, reset the Bluetooth settings on the TV: Settings โ†’ Devices โ†’ Bluetooth โ†’ Reset settings.

How to connect a gamepad instead of a keyboard?

The algorithm is the same as for the keyboard, but with nuances:

  • ๐ŸŽฎ Bluetooth gamepads (for example, Xbox Controller or DualShock 4) are connected automatically in the Game Controller.
  • ๐Ÿ•น๏ธ To emulate the keyboard on a gamepad, use the application Octopus (requires root).
  • โš ๏ธ On NVIDIA Shield TV gamepads only work in GeForce NOW or Steam Link.
Can the phone be used as a touchpad for Android TV?

Yes, using applications:

  • Unified Remote - mode Mouse.
  • TV SideView (from Sony) - supports gestures.
  • Retool - customizable touchpad interfaces.

For minimal delays, use a connection via USB-OTG instead of Wi-Fi/Bluetooth.

How to disable the keyboard if it is frozen in the system?

If the TV โ€œforgotโ€ to turn off keyboard and it interferes with control:

  1. Go to Settings โ†’ Devices โ†’ Bluetooth.
  2. Find the frozen device and select Forget.
  3. If that doesnโ€™t help, reset network settings: Settings โ†’ Network โ†’ Reset network.
  4. The last resort is to reset Android TV to factory settings (Settings โ†’ Storage โ†’ Reset data).