]>
glassweightruler.freedombox.rocks Git - waydroid.git/log
Alessandro Astone [Wed, 14 Dec 2022 13:56:05 +0000 (14:56 +0100)]
debian: Upver to 1.3.4
Alessandro Astone [Wed, 14 Dec 2022 13:55:53 +0000 (14:55 +0100)]
tools: Upver to 1.3.4
Alessandro Astone [Wed, 14 Dec 2022 13:25:17 +0000 (14:25 +0100)]
Revert "Mount proc with the hidepid=2 option"
We were implicitly using proc:mixed to mount /proc/sys as read-only.
Without the automount the whole /proc was mounted as read-write which
we want to avoid.
I'm unable to replicate the proc:mixed logic with lxc.mount.entry
so revert this change until a solution is found.
This reverts commit
f5543df68651277042b156f19f5b3804c297f2a7 .
Fixes: #642
Jami Kettunen [Tue, 13 Dec 2022 19:29:40 +0000 (21:29 +0200)]
session: warn about unset WAYLAND_DISPLAY instead of XDG_SESSION_TYPE
XDG_SESSION_TYPE isn't a reliable check for Wayland being present (e.g.
on Ubuntu Touch currently XDG_SESSION_TYPE is "mir" with WAYLAND_DISPLAY
set to "wayland-0" as it also provides Wayland windowing.
Also mention the behavior of defaulting WAYLAND_DISPLAY to "wayland-0"
in case it's not set.
Maxime Brunet [Sat, 10 Dec 2022 19:46:46 +0000 (11:46 -0800)]
fix(shell): allow command to have arguments
Alessandro Astone [Thu, 8 Dec 2022 18:30:43 +0000 (19:30 +0100)]
lxc: Mount /dev/shm which might host XDG_RUNTIME_DIR
Jami Kettunen [Wed, 7 Dec 2022 20:40:42 +0000 (22:40 +0200)]
net: Fix vnic name selection for LXC <=2
The "default to waydroid0" was broken as awk never returned a non-zero
exit code if the file exists but no match was found. Also account for
the key being named lxc.network.link on older LXC versions so one still
has the ability to have a flexible Waydroid network configuration.
Alessandro Astone [Wed, 7 Dec 2022 19:00:24 +0000 (20:00 +0100)]
lxc: Fixup LXC config versioning
What used to be called 'config_2' was actually meant to be used with
LXC 3.0 and later, so call it config_3 and fix the logic.
Also lxc.pty.max is an LXC 3.0 feature
Alessandro Astone [Mon, 28 Nov 2022 23:03:42 +0000 (00:03 +0100)]
clipboard: Return empty string if error
Instead of returning None, which becomes NULL in cython and gets
sent through binder to become null in java
Alessandro Astone [Mon, 21 Nov 2022 21:51:16 +0000 (22:51 +0100)]
apparmor: Remove unnecessary includes
chenxiex [Sat, 19 Nov 2022 07:43:10 +0000 (15:43 +0800)]
Update README.md
The image has been based on Android 11 since 2022.10.31 according to https://github.com/waydroid/waydroid/issues/390#issuecomment-
1296321188
Alessandro Astone [Fri, 18 Nov 2022 16:32:14 +0000 (17:32 +0100)]
lxc: Only enable apparmor if the profile is currently loaded
Alessandro Astone [Mon, 14 Nov 2022 22:10:08 +0000 (23:10 +0100)]
Change apparmor profile at runtime
Alessandro Astone [Mon, 14 Nov 2022 21:35:42 +0000 (22:35 +0100)]
Also support SUSE apparmor
Alessandro Astone [Sat, 12 Nov 2022 23:16:34 +0000 (00:16 +0100)]
debian: Install apparmor profiles
Alessandro Astone [Sat, 12 Nov 2022 22:07:06 +0000 (23:07 +0100)]
Makefile: Don't enable the apparmor profiles if packaging
Alessandro Astone [Sat, 12 Nov 2022 21:28:29 +0000 (22:28 +0100)]
Makefile: Install apparmor dir
Азалия Смарагдова [Sat, 12 Nov 2022 21:08:54 +0000 (02:08 +0500)]
* Makefile adjustments
* AppArmor profile texts have been moved into a dedicated directory
Азалия Смарагдова [Sat, 12 Nov 2022 19:07:46 +0000 (00:07 +0500)]
AppArmor policy setup has been moved to the Makefile
Азалия Смарагдова [Fri, 4 Nov 2022 11:33:28 +0000 (16:33 +0500)]
Policies have been adjusted for Android 11.
Азалия Смарагдова [Tue, 11 Oct 2022 14:33:25 +0000 (19:33 +0500)]
Temporarily switching all profiles to "complain" mode in order to work out policy mistakes.
Азалия Смарагдова [Tue, 11 Oct 2022 14:30:08 +0000 (19:30 +0500)]
Adding AppArmor profiles for the container.
Sebastian Krzyszkowiak [Wed, 2 Nov 2022 18:08:32 +0000 (19:08 +0100)]
desktop: Mark as compatible with mobile form factor
This allows environments like Phosh to consider Waydroid launchers as
mobile-compatible, so they get displayed in default app list when undocked.
Sebastian Krzyszkowiak [Fri, 30 Sep 2022 14:41:38 +0000 (16:41 +0200)]
hardware-manager: Optionally stop the session on suspend
This allows to use persist.waydroid.suspend as a way to automatically
stop the session after an inactivity timeout, as opposed to merely
freezing the container. Freeze still remains the default action.
To use it this way, add to waydroid.cfg:
suspend_action = stop
Alessandro Astone [Tue, 1 Nov 2022 00:03:51 +0000 (01:03 +0100)]
Enable OpenGL ES 3.1
Азалия Смарагдова [Tue, 11 Oct 2022 14:35:25 +0000 (19:35 +0500)]
Mount proc with the hidepid=2 option
Азалия Смарагдова [Tue, 11 Oct 2022 14:39:44 +0000 (19:39 +0500)]
Remove CAP_SYS_MODULE from the capability bounding set.
Alessandro Astone [Sat, 24 Sep 2022 10:43:44 +0000 (12:43 +0200)]
debian: Upver to 1.3.3
Alessandro Astone [Sat, 24 Sep 2022 10:37:35 +0000 (12:37 +0200)]
tools: Upver to 1.3.3
Alessandro Astone [Sun, 18 Sep 2022 22:10:20 +0000 (00:10 +0200)]
Configure multiple preinstalled images paths
Precedence:
/etc/waydroid-extra/images
/usr/share/waydroid-extra/images
Alessandro Astone [Thu, 22 Sep 2022 09:49:35 +0000 (11:49 +0200)]
lxc: Finer-grained config control
Split config files into snippets isolating new LXC features by version.
Move `seccomp.allow_nesting` to version 4 or higher.
NOTE: this currently assumes that new LXC versions will keep compatibility
with old config options. The only exception to this was LXC 1.x -> 2.x
Jami Kettunen [Sun, 18 Sep 2022 21:03:13 +0000 (00:03 +0300)]
Makefile: Install waydroid binary without relative symlink
This drops a build-time dependency on coreutils on Alpine Linux for
example without changing anything functionally.
Before: /usr/bin/waydroid: symbolic link to ../lib/waydroid/waydroid.py
After: /usr/bin/waydroid: symbolic link to /usr/lib/waydroid/waydroid.py
Alessandro Astone [Sun, 11 Sep 2022 17:52:07 +0000 (19:52 +0200)]
debian: Upver to 1.3.2
Alessandro Astone [Sun, 11 Sep 2022 17:51:10 +0000 (19:51 +0200)]
tools: Upver to 1.3.2
Alessandro Astone [Thu, 8 Sep 2022 07:32:11 +0000 (09:32 +0200)]
Quiet ashmem modprobe errors
Alessandro Astone [Tue, 6 Sep 2022 16:03:38 +0000 (18:03 +0200)]
Rebuild waydroid.prop after live upgrade
On waydroid upgrade waydroid_base.prop might change so we should
rewrite the mountable waydroid.prop file as well.
Do this in mount_rootfs so that:
* Every caller already benefits from this (initializer, upgrader...)
* We can set props based on rootfs contents
Азалия Смарагдова [Tue, 30 Aug 2022 16:18:18 +0000 (21:18 +0500)]
A seccomp profile for the entire container has been added.
Азалия Смарагдова [Tue, 30 Aug 2022 16:15:13 +0000 (21:15 +0500)]
Container capabilities have been restricted.
Азалия Смарагдова [Tue, 30 Aug 2022 16:12:49 +0000 (21:12 +0500)]
A "No New Privileges" has been enabled for the container.
Alessandro Astone [Mon, 5 Sep 2022 14:01:34 +0000 (16:01 +0200)]
gpu: Disable nouveau support
Alessandro Astone [Sat, 3 Sep 2022 18:45:58 +0000 (20:45 +0200)]
app_manager: Don't rmdir /data/waydroid_tmp after install
Only user 1000 can create directories in /data, so this directory should
be created by android init.rc giving the host write permissions.
Don't remove it after installing so that it can be reused for a subsequent
installation.
Alessandro Astone [Fri, 2 Sep 2022 12:25:14 +0000 (12:25 +0000)]
debian: Upver to 1.3.1
Alessandro Astone [Fri, 2 Sep 2022 12:07:02 +0000 (14:07 +0200)]
tools: Upver to 1.3.1
Alessandro Astone [Mon, 29 Aug 2022 09:10:14 +0000 (11:10 +0200)]
Detect HIDL gralloc4
Alessandro Astone [Thu, 18 Aug 2022 13:10:44 +0000 (15:10 +0200)]
Add mainline vulkan support
Attempts to set the correct ro.hardware.vulkan value based on the
loaded drm driver name
Alessandro Astone [Thu, 25 Aug 2022 09:56:40 +0000 (11:56 +0200)]
CI: Restore versioned debian
Alessandro Astone [Fri, 19 Aug 2022 09:10:15 +0000 (11:10 +0200)]
debian: Use /lib/systemd/system for units
While the default /usr/lib/systemd/system is acceptable, the service
was not getting automatically started on install.
Alessandro Astone [Fri, 19 Aug 2022 09:09:12 +0000 (11:09 +0200)]
Makefile: Allow overriding directories without having to know the DESTDIR
Alessandro Astone [Thu, 18 Aug 2022 13:04:25 +0000 (15:04 +0200)]
Makefile: Allow installing over an existing installation
cyan [Wed, 17 Aug 2022 16:54:01 +0000 (18:54 +0200)]
CI: add support for rolling releases
Alessandro Astone [Sun, 7 Aug 2022 21:38:14 +0000 (21:38 +0000)]
debian: Upver to 1.3.0
Alessandro Astone [Sun, 7 Aug 2022 21:33:47 +0000 (23:33 +0200)]
tools: Upver to 1.3.0
Alessandro Astone [Sat, 23 Jul 2022 16:26:26 +0000 (18:26 +0200)]
Add appstream metadata
Maxiee [Tue, 26 Jul 2022 15:38:24 +0000 (23:38 +0800)]
fix typo in arguments.py
There is a typo in help text of stop session command. "start session" should be "stop session".
Wachid Adi Nugroho [Wed, 27 Jul 2022 00:40:20 +0000 (07:40 +0700)]
Makefile: Add prefix for systemd directory
Alessandro Astone [Sat, 23 Jul 2022 13:58:26 +0000 (15:58 +0200)]
Show first-launch icon on wayland gtk
Alessandro Astone [Tue, 19 Jul 2022 09:35:22 +0000 (11:35 +0200)]
Add first-launch command [v2]
Alessandro Astone [Mon, 18 Jul 2022 21:46:14 +0000 (23:46 +0200)]
Support upgrading major android versions
When restarting the lxc container our binder services will receive a
binder_presence event and will try to re-register on the service manager.
If the service manager was created with aidl2 and the new android version
uses aidl3 this will fail with:
Failed to add service waydroidusermonitor: -
2147483647
When that happens, try to restart the service by getting a new service
manager that can handle the new aidl protocol version.
Jami Kettunen [Thu, 21 Jul 2022 13:21:06 +0000 (16:21 +0300)]
debian: Adapt to new Makefile buildsystem
Jami Kettunen [Wed, 6 Jul 2022 22:02:00 +0000 (01:02 +0300)]
Makefile: Add distro-agnostic buildsystem
Jami Kettunen [Wed, 6 Jul 2022 21:26:23 +0000 (00:26 +0300)]
gbinder: Remove unnecessary configs
The anbox.conf is no longer needed as Waydroid configures these binder
settings automatically.
Jami Kettunen [Wed, 6 Jul 2022 19:24:45 +0000 (22:24 +0300)]
debian: Move waydroid-container.service under new toplevel systemd dir
This is not only used by Debian/Ubuntu but all other distributions
shipping systemd as their init system.
Alessandro Astone [Tue, 19 Jul 2022 08:46:34 +0000 (10:46 +0200)]
Revert "Add first-launch command"
Will revisit later to not depend on polkit and xwayland
This reverts commit
a2804841ed52f812b1d666cb3df01239ee906f5f .
Alessandro Astone [Sun, 8 May 2022 15:58:17 +0000 (17:58 +0200)]
Add first-launch command
Add a graphical init to be run as root, which we can use in
first-launch through pkexec
Alessandro Astone [Sun, 17 Jul 2022 22:56:41 +0000 (00:56 +0200)]
Disable OTA updater when using preinstalled images
Mitchel Stewart [Thu, 14 Jul 2022 17:52:55 +0000 (13:52 -0400)]
make waydroid-net more flexible (#267)
Jami Kettunen [Sun, 10 Jul 2022 12:39:08 +0000 (15:39 +0300)]
container: Only umount /sys/fs/cgroup/schedtune if needed
Silences the following useless log from "waydroid log" outputs when the
directory either doesn't exist at all (mainline Linux devices), or when
it's not mounted on Halium:
(027693) [15:21:39] % umount -l /sys/fs/cgroup/schedtune
umount: /sys/fs/cgroup/schedtune: not mounted
Reference: https://docs.python.org/3/library/os.path.html#os.path.ismount
Michel Alexandre Salim [Mon, 20 Jun 2022 00:44:28 +0000 (17:44 -0700)]
Update Matrix link
The old room address no longer works. Use new one as listed in waydro.id
cyan [Wed, 13 Jul 2022 15:59:16 +0000 (17:59 +0200)]
ci: update to jammy
Alessandro Astone [Wed, 13 Jul 2022 12:31:58 +0000 (14:31 +0200)]
Default nvidia to swiftshader
Try to choose a supported gpu on PRIME devices
Alessandro Astone [Sat, 9 Jul 2022 16:53:20 +0000 (18:53 +0200)]
init: Always redownload the image when changing parameters
When changing system_type, for example.
Timestamps only make sense when compared to the same ota channel.
Alessandro Astone [Sun, 10 Jul 2022 14:56:38 +0000 (16:56 +0200)]
Improve robustness of the dynamic aidl version picker
Detect the aidl version just before starting the session.
Allow reading None.
Alfred Neumayer [Sat, 7 May 2022 12:18:25 +0000 (14:18 +0200)]
lxc: Optionally bind-mount NFC config
Devices with libnfc-nci might have their NFC HAL crash when
the config doesn't exist or contains invalid data. Fix it.
Alessandro Astone [Wed, 6 Jul 2022 17:56:29 +0000 (19:56 +0200)]
Fixup market:// handler
Wachid Adi Nugroho [Fri, 1 Jul 2022 15:58:55 +0000 (22:58 +0700)]
waydroid.market.desktop: use `waydroid app intent`
Depends:
- https://github.com/waydroid/waydroid/pull/433
- https://github.com/waydroid/android_vendor_waydroid/pull/12
Wachid Adi Nugroho [Fri, 1 Jul 2022 15:56:15 +0000 (22:56 +0700)]
waydroid.market.desktop: update some properties
Wachid Adi Nugroho [Tue, 28 Jun 2022 14:18:19 +0000 (21:18 +0700)]
Add Android Market Protocol Handler
When clicking market:// protocol on Linux distro host, then open it on Waydroid.
Related: https://github.com/waydroid/waydroid/issues/412
Alessandro Astone [Fri, 1 Jul 2022 13:41:37 +0000 (15:41 +0200)]
app_manager: Add launch intent
Alessandro Astone [Fri, 1 Jul 2022 13:41:23 +0000 (15:41 +0200)]
app_manager: Factor out common function to start session then launch
Alessandro Astone [Sun, 26 Jun 2022 15:15:22 +0000 (17:15 +0200)]
Downgrade x86_64 to x86 if no SSE4.2
Mitchel Stewart [Wed, 6 Jul 2022 16:22:53 +0000 (12:22 -0400)]
Allows waydroid to create PTY (#349)
Alessandro Astone [Fri, 6 May 2022 17:41:43 +0000 (19:41 +0200)]
debian: Start container waiting for init if not already
So that the service can be started before running `waydroid init`
Alessandro Astone [Fri, 6 May 2022 17:33:08 +0000 (19:33 +0200)]
Add -w flag for waiting for init
This allows for example to start the container manager before init
Alessandro Astone [Thu, 9 Jun 2022 22:35:33 +0000 (00:35 +0200)]
Set aidl version based on the android version
Kenny MacDermid [Wed, 11 May 2022 15:32:40 +0000 (12:32 -0300)]
Mount TUN device for use by Android VPNs.
Providing access to the hosts `/dev/net/tun` is required by at
least some VPN clients, for example F5 Access.
Alessandro Astone [Sat, 14 May 2022 17:50:44 +0000 (19:50 +0200)]
http: Handle malformed urls
Alfred Neumayer [Thu, 10 Mar 2022 09:46:41 +0000 (10:46 +0100)]
tools: Fix device names with spaces in initializer
Don't try to fetch from an URL with a space inside.
Erfan Abdi [Sun, 17 Apr 2022 17:03:56 +0000 (21:33 +0430)]
debian: Upver to 1.2.1
Erfan Abdi [Sun, 17 Apr 2022 17:01:58 +0000 (21:31 +0430)]
tools: Upver to 1.2.1
Erfan Abdi [Sun, 13 Feb 2022 17:50:01 +0000 (21:20 +0330)]
Update issue templates
Erfan Abdi [Thu, 10 Feb 2022 06:32:02 +0000 (10:02 +0330)]
Update issue templates
Erfan Abdi [Thu, 10 Feb 2022 06:23:17 +0000 (09:53 +0330)]
Update issue templates
Alessandro Astone [Tue, 8 Feb 2022 20:53:31 +0000 (21:53 +0100)]
Set sys.use_memfd=true if ashmem is not present
Erfan Abdi [Fri, 4 Feb 2022 16:40:07 +0000 (20:10 +0330)]
config: Switch to https for OTA channels
* Fix issue #297
Jon West [Sun, 23 Jan 2022 17:25:13 +0000 (12:25 -0500)]
Merge pull request #286 from darkdragon-001/funding
Add sponsor button
Dark Dragon [Sun, 23 Jan 2022 15:15:31 +0000 (16:15 +0100)]
Add FUNDING file.
aditya raj [Thu, 30 Dec 2021 04:03:27 +0000 (09:33 +0530)]
add size units and speed in download progress bar
add daemon=True to progress bar thread
Christophe Chapuis [Sat, 27 Nov 2021 14:59:13 +0000 (14:59 +0000)]
Add an optional [properties] in waydroid.cfg
On some platforms, like a VM, we don't have the "getprop" android
utility available. It could be, also, that the default values
for some properties don't match the target device.
With this PR, one can add a [properties] section in waydroid.cfg,
that will act as an override for the values that would have been
put otherwise.
Example, on our LuneOS x86 VM:
[properties]
ro.hardware.gralloc=default
ro.hardware.egl=mesa
A minimal waydroid.cfg could even be shipped with waydroid, and
the rest of the configuration will be filled with "waydroid init".
Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
Florian Franzen [Fri, 26 Nov 2021 08:55:33 +0000 (09:55 +0100)]
scripts: make sure misc subfolder exists
Rinigus [Wed, 27 Oct 2021 20:03:41 +0000 (23:03 +0300)]
container: strip possible trailing newline from pid
Fixes #185