Commit graph

691 commits

Author SHA1 Message Date
王振华 (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
Simon Fels
b4710c1572 cmds: select host as the default GL ES driver 2017-08-16 10:26:19 +02:00
Simon Fels
6e94a2bed3 Don't use sudo in a script executed as root 2017-08-16 10:18:44 +02:00
Simon Fels
5470f26914 Merge pull request #385 from jackwish/master
snap build: prefer local android.img rather than always download
2017-08-10 07:08:22 +02:00
Simon Fels
14f791ac12 Merge pull request #397 from morphis/f/update-binder-to-latest
binder: update to latest version and fix build on older kernels
2017-08-04 19:00:21 +02:00
Simon Fels
c77ca2a297 binder: update to latest version and fix build on older kernels
This backports the binder driver from the latest upstream linux
kernel tree as of v4.13-rc3-118-g19ec50a43 and enables a working
build on older kernels (e.g. 4.4).

The newer driver allows specification of multiple binder device
nodes but for the moment we only enable the default "binder" one.
2017-08-04 07:54:53 +02:00
王振华 (WANG Zhenhua)
4566aedd68 snap build: prefer local android.img rather than always download
Previously we always load android.img from server when building snap.
Now, build with <ANBOX>/android-images/android.img if there is one.
2017-07-28 09:50:20 +08:00
Simon Fels
7036fc0798 Merge pull request #379 from jackwish/master
readme: tip to build with GCC 5.x
2017-07-27 09:33:26 +02:00
Simon Fels
b9a51f3f57 Merge pull request #383 from morphis/f/collect-bug-info
Add simple script to collect various relevant log files for a bug report
2017-07-27 09:25:19 +02:00
Simon Fels
531dcd8c68 Add simple script to collect various relevant log files for a bug report 2017-07-27 09:24:52 +02:00
Zhenhua WANG
bd6a006ce7 Remove android/.idea 2017-07-24 16:12:19 +08:00
WANG Zhenhua
bf78c89ca7 readme: tip to build with GCC 5.x 2017-07-24 08:59:04 +08:00
Simon Fels
5fd932afe6 Merge pull request #362 from morphis/f/update-changelog
debian: update changelog
2017-07-14 22:36:01 +02:00
Simon Fels
77c8728082 debian: update changelog 2017-07-14 20:47:37 +02:00
Simon Fels
a84951f4f0 Merge pull request #361 from morphis/f/update-android-img
Update android image
2017-07-14 20:28:25 +02:00
Simon Fels
1eb027bcb9 Merge pull request #360 from morphis/f/drop-user-init-jobs
Drop upstart/systemctl session jobs
2017-07-14 20:28:13 +02:00
Simon Fels
052f622494 Drop upstart/systemctl session jobs
We don't use them anymore as we now completely rely on `anbox launch` to
start the session manager. This lets us remove another part which can't
be shipped inside the snap package.
2017-07-14 20:15:54 +02:00
Simon Fels
a127a9115e Update android image
* Don't crash inside AlarmManager when PendingIntent is not set
2017-07-14 19:56:44 +02:00
Simon Fels
ca59f27c23 Merge pull request #354 from morphis/f/squashfuse-mount-support
Add support for rootfs mounts via squashfuse
2017-07-12 12:16:14 +02:00
Simon Fels
0592810746 Merge pull request #350 from zhsj/fix-version-suffix
Remove duplicated suffix on version string
2017-07-12 12:16:01 +02:00