Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:android [2017/12/03 21:14] officefuss:android [2018/10/04 15:52] – [Delivering Input Events via ADB] office
Line 78: Line 78:
  
 An easy trick to disable calls (such as the emergency call button from the lock screen), is to go to the phone settings, manage applications and disable the ''Dialer'' or ''Phone'' application. An easy trick to disable calls (such as the emergency call button from the lock screen), is to go to the phone settings, manage applications and disable the ''Dialer'' or ''Phone'' application.
 +
 +====== Android x86 on LibVirt ======
 +
 +In case Android x86 under qemu/kvm boots to a command prompt (or just displays a blank screen with a curor) and does not go any further then most likely the problem is that ''-vga std'' has to be passed to the qemu/kvm command line.
 +
 +After installing Android under libvirt, the domain name has to be edited, for instance:
 +<code bash>
 +virsh -c qemu:///system
 +</code>
 +
 +followed by:
 +<code>
 +edit android.domain
 +</code>
 +
 +The ''video'' tag has to be deleted and replaced by:
 +<code>
 +    <video>
 +      <model type='vga'/>
 +    </video>
 +</code>
 +
 +to allow Android to boot the window manager.
 +
 +Even better:
 +<code>
 +    <video>
 +      <model type='virtio'/>
 +    </video>
 +</code>
 +
 +can be used for 3D acceleration.
 +
 +====== Delivering Input Events via ADB ======
 +
 +Input events can be sent to a device connected to a computer with the Android Platform Tools installed via the ''adb'' command.
 +
 +Here is a list of useful commands:
 +<code bash>
 +adb shell input tap 500 600
 +</code>
 +
 +will tap the screen at $(x,y)=(500,600)$.
 +
 +<code bash>
 +adb shell input text 'Hello Android'
 +</code>
 +
 +will type in the text 'Hello Android'.
 +
 +Even raw key events can be sent:
 +<code bash>
 +adb shell input keyevent 66
 +</code>
 +
 +will press the enter key.
 +
 +Similarly, D-PAD events can be triggered:
 +
 +^ Direction ^ KeyCode ^
 +| Up        | ''19''  |
 +| Down      | ''20''  |
 +| Left      | ''21''  |
 +| Right     | ''22''  |
 +
 +For instance:
 +<code bash>
 +adb shell input keyevent 19
 +</code>
 +
 +will press D-PAD up.
 +
 +
 +

fuss/android.txt · Last modified: 2024/05/10 16:43 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.