Commit graph

723 commits

Author SHA1 Message Date
Dhiego Cassiano Fogaça Barbosa
ffcae32ea9
Fix narrowing conversion inside {} 2018-02-06 01:09:45 -02:00
Simon Fels
0fef26189d
Merge pull request #601 from regnarg/master
Fix compatibility with Boost 1.66
2018-02-05 07:46:15 +02:00
Filip Stedronsky
5d3284cb14 Fix compatibility with Boost 1.66
Do not use deprecated native() method.
2018-02-01 12:38:05 +01:00
Simon Fels
a821a1ef8c
Merge pull request #599 from lag-linaro/for-anbox-window-state-host
android: service: platform_service: Read rotation angle from parcel
2018-01-31 13:26:31 +02:00
Simon Fels
b38c11e4f2
Merge branch 'master' into for-anbox-window-state-host 2018-01-31 11:16:00 +02:00
Lee Jones
6d50d44083 android: service: platform_service: Read rotation angle from parcel
When passing window state, currently only the frame location and
stack & task IDs are contained in the parcel.  This patch also
receives the new 'rotation_angle' attribute.  This patch is critical
since it ensures each '4 Byte' value in this strongly ordered
sequence is extracted at the right time, in the correct way.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
2018-01-31 08:51:32 +00:00
Simon Fels
b21e5d9313
Merge pull request #504 from sarangnemo/master
replace deprecated vfs_read with kernel_read
2018-01-23 07:44:37 +02:00
Sarang S. Dalal
ba3ae093ed
add comment to explain kernel_read 2018-01-23 00:58:08 +01:00
Sarang S. Dalal
0af5a76743
added kernel version check for calling kernel_read vs vfs_read
added kernel version check for calling kernel_read vs vfs_read, as suggested here:
55d5699429
2018-01-23 00:18:18 +01:00
Sarang S. Dalal
6f98e76e0c
Merge branch 'master' into master 2018-01-23 00:09:39 +01:00
Simon Fels
da3319106e
Merge pull request #579 from step21/python3
Python3
2018-01-06 17:05:44 +01:00
step21
3882f3bfa5 fixed sys.stderr 2018-01-05 16:01:51 +01:00
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
Sarang S. Dalal
f633d641c2
replace deprecated vfs_read with kernel_read
See https://github.com/anbox/anbox/issues/486 and related issue with ashmem and ZFS:
https://github.com/zfsonlinux/spl/issues/656
2017-10-29 10:23:31 +01: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