Commit graph

710 commits

Author SHA1 Message Date
step21
642330e22c python 3 compatible 2018-01-04 21:06:43 +01:00
Simon Fels
7266fe2d47
Merge pull request #521 from lag-linaro/qemud-multiple-messages
anbox: qemu: qemud_message_processor: Handle multiple 'cat'ed messages
2017-11-17 14:20:16 +01:00
Lee Jones
1c7eef1fd3 anbox: qemu: qemud_message_processor: Handle multiple 'cat'ed messages
It is possible for more than one message to be delivered concurrently.
When this happens, messages are concatenated together (end-to-end).
Current code errors out if the total received data is larger than the
known header_size (4) + the body size (reported in the header).
However, when >=2 messages arrive at the same time, the total received
data will be far greater than this.

The current code base actually handles multiple messages perfectly
already, so all we need to do is remove the early return and
everything "just works".

Signed-off-by: Lee Jones <lee.jones@linaro.org>
2017-11-17 12:24:20 +00:00
Simon Fels
e05ca245d9 Merge pull request #477 from zeldin/emugl_arm64
emugl: Fix build on arm64
2017-10-20 08:02:06 +02:00
Marcus Comstedt
374e59f421 emugl: Fix build on arm64 2017-09-30 13:05:46 +02:00
Simon Fels
df774db4a8 Merge pull request #451 from anbox/f/fixes
A few small fixes to make things building again inside Android
2017-09-08 09:11:45 +02:00
Simon Fels
6aedf53e52 Use correct state dir inside /var/lib 2017-09-08 07:01:00 +02:00
Simon Fels
fc5659390c android: regenerate encoder to use correct include for logging.h 2017-09-08 07:00:54 +02:00
Simon Fels
3cf7d60b81 Merge pull request #439 from morphis/f/emugl-generation
Add necessary infrastructure to easily regenerate EmuGL code
2017-08-31 16:48:17 +02:00
Simon Fels
29d917d9db android/opengl: regenerate encoding layer 2017-08-31 16:07:59 +02:00
Simon Fels
3fcdb31ada emugl: import script for AOSP to generate encoding/decoding functions 2017-08-31 16:07:57 +02:00
Simon Fels
067201baba emugl: generate GL ES/EGL function prototypes at build type from entries files
This will make the *.entries files the the authoritative place to
define additional GL function prototypes. All generated header
files are now placed inside the build directory so that nobody
will ever try to touch them again.
2017-08-31 15:40:22 +02:00
Simon Fels
86cc5f1e37 Merge pull request #425 from jackwish/fix/determine-resource-dir
Correct resource directory
2017-08-31 14:47:00 +02:00
Simon Fels
65eb20c6c1 Merge pull request #436 from morphis/f/correct-install-paths
Specify correct location for all files we're installing
2017-08-29 11:30:48 +02:00
Simon Fels
e7eac1f600 Specify correct location for all files we're installing 2017-08-29 11:28:55 +02:00
Simon Fels
af5f30b095 Merge pull request #435 from morphis/f/toplevel-products
Move products into our top-level dir to respect Androids max search d…
2017-08-29 11:27:20 +02:00
Simon Fels
b8e7d89a30 Move products into our top-level dir to respect Androids max search depth 2017-08-29 11:25:23 +02:00
Simon Fels
47bd6c3274 Merge pull request #434 from morphis/f/import-product-definition
Import product definition from separate repository
2017-08-29 11:21:50 +02:00
Simon Fels
7ffc88225b Import product definition from separate repository 2017-08-29 11:20:47 +02:00
王振华 (WANG Zhenhua)
f203a75010 Merge cmake configured headers into one config.h.in
This looks better than leave cmake *.in everywhere in the tree.
Also fix typo according to review comments of PR 425.
2017-08-28 15:09:09 +08:00
王振华 (WANG Zhenhua)
202b556bea Configure default resource and data directories from CMake
As anbox is expected to installed in two ways (`snap` or `make install`),
it should be enough to get `snap` ENV or configure by cmake.
2017-08-28 10:47:34 +08:00
王振华 (WANG Zhenhua)
7a8f1efab9 Compatible resource directory determination
Previously, the resource directory is generated from `SNAP` if set,
`/usr/share/anbox` is used otherwise. This cannot work with binaries
installed via `make install` since the loading screen is mostly at
`/usr/local/share/anbox/ui/loading-screen.png`.

With this patch, anbox can get correct resource directory when it's
installed without snap.
2017-08-25 14:50:38 +08:00
Simon Fels
17f6c8cd8b Merge pull request #422 from morphis/f/various-fixes
Fix various problems with the session manager startup process
2017-08-24 12:57:55 +02:00
Simon Fels
3d86122c08 Merge pull request #423 from morphis/f/start-appmgr-in-single-window
cmds: directly start appmgr in single window mode
2017-08-24 10:59:48 +02:00
Simon Fels
0e740f0c6b cmds: directly start appmgr in single window mode 2017-08-24 10:30:50 +02:00
Simon Fels
8237c963ed bridge: use five second timeout for all RPC
Before we were waiting forever for a reply which never occured in some
cases due to errors when processing incoming protobuf messages we now
abort the RPC call after a timeout of five seconds to keep operational.
2017-08-24 08:41:59 +02:00
Simon Fels
f76c039415 dbus: use a larger timeout for launch API calls 2017-08-24 08:41:59 +02:00
Simon Fels
e9cd1b7b66 emugl: correct locking when we draw a new frame 2017-08-24 08:41:59 +02:00
Simon Fels
4b344ad204 emugl: print EGL error when eglMakeCurrent fails 2017-08-24 08:41:59 +02:00
Simon Fels
05fb78e5bf logger: use syslog for output when we don't have a controlling tty 2017-08-24 08:41:59 +02:00
Simon Fels
579d28865b cmds: apply proper daemonization handling for forked session manager 2017-08-24 08:41:59 +02:00
Simon Fels
07b32235ea Don't force host GL driver on nvidia platforms anymore
Using the host GL driver is already the default so need to special case
this for nvidia.
2017-08-24 08:41:59 +02:00
Simon Fels
6b3295f8a8 Only attempt to create a renderer when we don't have one already 2017-08-24 08:41:59 +02:00
Simon Fels
b7173ac94a Print out example launch intent when executed without any argument 2017-08-24 08:41:59 +02:00
Simon Fels
7d4d7730ef Merge pull request #419 from alfonsosanchezbeato/recover-adb-killed
Recover on adb server killed
2017-08-23 12:59:51 +02:00
Alfonso Sánchez-Beato
1e884a12f7 Remove traces in AdbMessageProcessor 2017-08-23 11:10:30 +02:00
Alfonso Sánchez-Beato
427354d691 Remove now unneeded timer in AdbMessageProcessor 2017-08-23 11:08:38 +02:00
Alfonso Sánchez-Beato
bc13125585 Avoid crashes on AdbMessageProcessor destruction 2017-08-23 11:08:33 +02:00
Alfonso Sánchez-Beato
5c7ac4f885 Release resources on disconnection 2017-08-23 11:08:23 +02:00
Alfonso Sánchez-Beato
8ae09e81e0 Undef Status symbol to address conflict between X11 and protobuf 2017-08-23 11:06:34 +02:00
Simon Fels
a5ead0f075 Merge pull request #415 from brauner/2017-08-18/use_own_major
binder: use own major
2017-08-22 16:54:14 +02:00
Christian Brauner
bc49596105
binder: do not spew useless warnings in dmesg
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-08-22 15:32:23 +02:00
Christian Brauner
2f90429a07
udev: use wildcard to capture all binder devices
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-08-21 14:40:58 +02:00
Christian Brauner
3af7d1793d
binder: use own major number
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2017-08-21 14:40:58 +02:00
Simon Fels
3102ac37b1 Merge pull request #412 from rmescandon/add-uninstall-target
added uninstall target to cmake to allow make uninstall operation
2017-08-20 12:54:55 +02:00
Simon Fels
8d1e0dd6d3 Merge pull request #411 from rmescandon/build-android-target-names
correct build-android supported build targets names
2017-08-20 12:54:40 +02:00
Roberto Mier Escandon
6845c48583 added uninstall target to cmake to allow make uninstall operation 2017-08-18 13:55:42 +02:00
Roberto Mier Escandon
a54b2f4cb0 correct build-android supported build targets names 2017-08-18 12:17:34 +02:00
Simon Fels
10c933b8ff Merge pull request #408 from morphis/f/make-gles-driver-host-default
cmds: select host as the default GL ES driver
2017-08-17 07:02:33 +02:00
Simon Fels
09bb9342ab Merge pull request #407 from morphis/f/dont-use-sudo
Don't use sudo in a script executed as root
2017-08-17 07:02:26 +02:00