Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:55:18+00:00 2026-06-17T05:55:18+00:00

Knowing the basic key mappings described in ADB Shell Input Events I get the

  • 0

Knowing the basic key mappings described in ADB Shell Input Events I get the emulation of text input and special keys working quite well. But what about Unicode characters? For instance I want to use umlauts from the German QWERTZ keyboard layout.

This gets me:

$ adb shell input text ö
Killed

So it seems to crash and

adb shell input text \xFC

prints xFC on the input. I have tried to the the events with getevent but I haven’t found a direct mapping, I’ve also looked into the keymapping file /system/usr/keylayout/Qwerty.kl

I believe the only possibility is via the clipboard, but as pointed out in the question Pasting text into Android emulator clipboard using adb shell it seems to be unknown how to use it for Android Ice Cream Sandwich or later..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:55:19+00:00Added an answer on June 17, 2026 at 5:55 am

    input won’t work because it can only send single key event through the virtual keyboard (check the source code if you don’t know what I mean).

    I think the only way left is using Instrumentation. I guess you can create a test for your Activity and then do something like this:

                    final Instrumentation instrumentation = getInstrumentation();
                    final long downTime = SystemClock.uptimeMillis();
                    final long eventTime = SystemClock.uptimeMillis();
                    
                    final KeyEvent altDown = new KeyEvent(downTime, eventTime, KeyEvent.ACTION_DOWN,
                            KeyEvent.KEYCODE_GRAVE, 1, KeyEvent.META_ALT_LEFT_ON);
                    final KeyEvent altUp = new KeyEvent(downTime, eventTime, KeyEvent.ACTION_UP,
                            KeyEvent.KEYCODE_GRAVE, 1, KeyEvent.META_ALT_LEFT_ON);
                    
                    instrumentation.sendKeySync(altDown);
                    instrumentation.sendCharacterSync(KeyEvent.KEYCODE_A);
                    instrumentation.sendKeySync(altUp);
                    instrumentation.sendKeySync(altDown);
                    instrumentation.sendCharacterSync(KeyEvent.KEYCODE_E);
                    instrumentation.sendKeySync(altUp);
                    instrumentation.sendKeySync(altDown);
                    instrumentation.sendCharacterSync(KeyEvent.KEYCODE_I);
                    instrumentation.sendKeySync(altUp);
                    instrumentation.sendKeySync(altDown);
                    instrumentation.sendCharacterSync(KeyEvent.KEYCODE_O);
                    instrumentation.sendKeySync(altUp);
                    instrumentation.sendKeySync(altDown);
                    instrumentation.sendCharacterSync(KeyEvent.KEYCODE_U);
                    instrumentation.sendKeySync(altUp);
    

    This will send the modified keys: àèìòù

    update 2022

    https://stackoverflow.com/a/71367206/236465 shows another solution using AndroidViewClient/culebra and CulebraTester2-public backend.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of challenge. Knowing only the basic URL for the sharepoint
I know this is probably pretty basic, and I'm ashamed for not knowing how
I currently have Test\CoreBundle which is intend on containing basic functions to get my
Knowing about inaccuracies because of internal representation of floating point numbers (see Wikipedia ,
Without knowing i typed 'far' instead of 'var' by my mistake.I noticed the keyword
I am interested in knowing about what other teams are doing about limiting internal
public class Knowing { static final long tooth = 343L; static long doIT(long tooth)
I'm interested in knowing what high quality and useful add-ons or utilities are available
I'm interested in knowing how revision-control systems do merging. Suppose you have a file
I am downloading a image knowing the url of the image . Now how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.