Support for multi-touch is missing in the emulator

Bug #1443316 reported by XiaoGuo, Liu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
android (Ubuntu)
Confirmed
Undecided
Unassigned
goget-ubuntu-touch (Ubuntu)
Invalid
Undecided
Unassigned
qtcreator-plugin-ubuntu (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Some developers do not have a the phone to test their app. Multi-touch support is currently missing in the emulator. If possible, could we have this feature for the developers?

Thanks & best regards,
XiaoGuo

Tags: yue
Rex Tsai (chihchun)
Changed in goget-ubuntu-touch (Ubuntu):
status: New → Invalid
Revision history for this message
Rex Tsai (chihchun) wrote :

It's possible to use Android hardware emulation[1][2] for multi-touch and sensors.

Steps
1) Install SdkController APK[3] on a android phone.
2) Connect the android phone with developer mode enabled to the computer which will run the emulator via usb cable.
3) Run adb forward on computer to enable port forwarding
$ adb forward tcp:1970 localabstract:android.sdk.controller
4) Launch SdkController on the Androind Phone
5) Launch the emulator with multitouch emulation enabled.
add " -screen multi-touch" option for /usr/share/android/emulator/out/host/linux-x86/bin/emulator-x86
or edit /home/chihchun/.local/share/ubuntu-emulator/*/hardware-qemu.ini
6) The user should be able to see the screen and issue touch event from the android to the emulator.

[1] Hardware Emulation - Android Tools Project Site http://tools.android.com/tips/hardware-emulation
[2] https://android.googlesource.com/platform/sdk/+/master/apps/SdkController
[3] https://android.googlesource.com/platform/sdk/+/master/apps/SdkController/bin/

Revision history for this message
Rex Tsai (chihchun) wrote :

The issues with these setup

1) multi-touch setup is not enabled in SDK emulator config by default.
2) The screen image on android is upside down, most likely the opengl driver passed the wrong ydir[1]. as attachment.
3) SdkController does pass the touch events, but seems the emulator does not recognize it as gesture. But two independent mouse point. debug message can be enabled by "-debug port,mtttscreen" options.

[1] https://android.googlesource.com/platform/external/qemu.git/+/master/android/multitouch-screen.h#90

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in android (Ubuntu):
status: New → Confirmed
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → Confirmed
Revision history for this message
Rex Tsai (chihchun) wrote :

It was tested with
$ dpkg-query -W ubuntu-emulator\*
ubuntu-emulator 0.19-0~142~ubuntu14.04.1
ubuntu-emulator-images 20140922-1903-0ubuntu3
ubuntu-emulator-runtime 20140922-1903-0ubuntu3

$ ubuntu-emulator list
i386-vivid ubuntu=20150324,device=20150210,custom=20150324,version=148
utopic ubuntu=20150312,device=20150116,version=16

Rex Tsai (chihchun)
tags: added: yue
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

This is not in the scope of the IDE plugin to fix.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
You-Sheng Yang (vicamo) wrote :

I had tried some more combinations of AOSP/Ubuntu releases, but it seems to me that none of them would ever work. From some googling it appears others have the same problem, no multi-touch event is propagated into the emulator. Maybe there is an issue in device compatibility for that SdkController app because I didn't see related debug messages from the logcat of the hardware device, ASUS Zenfone 5, when a ByteBuffer should have been composed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.