Commit Graph

317 Commits

Author SHA1 Message Date
Alessandro Astone 45ded8c27e debian: Upver to 1.5.1 2025-03-26 19:42:08 +01:00
Alessandro Astone 38641aefb6 Upver to 1.5.1 2025-03-26 19:38:48 +01:00
Alessandro Astone 5890f3427c clipboard: Demote warning about missing pyclip to debug level
We are going to implement clipboard support natively as part of our Wayland
hwcomposer, so that pyclip will not be necessary anymore.

This implementation will remain for a while for compatibility reasons,
but we do not want to print a warning anymore.
2025-03-21 23:26:56 +01:00
Alessandro Astone fe6abccd74 gpu: Always prefer lower-numbered render node
glob() returns results in an arbitrary order, making the getDriNode()
unpredictable.

The lower-numbered render node has a high chance of being the one used by the
compositor, which avoids possible issues when using DMA-BUFs from another GPU,
so let's default to that.
2025-03-19 18:45:55 +01:00
Alessandro Astone 5202db5404 gpu: Allow choosing the DRM device in waydroid.cfg 2025-03-19 18:45:55 +01:00
Alessandro Astone 60d118177d lxc: Mount DRM device with the same name
Apparently some mesa drivers take issue when the DRM device name does not
match its real device number.

Stop mounting any device as renderD128 and use their actual name.
2025-03-19 18:45:55 +01:00
Liam Germain 344d1b7418 Fix bug report link 2025-03-18 20:03:35 +01:00
Alessandro Astone 345c7cff98 gpu: Check i915_capabilities for the card node
In some kernels the i915_capabilities file is not present for the render
node, but it is for the card node.
2025-03-16 12:53:42 +01:00
Alessandro Astone 0841a74bf8 lxc: Mount DMA-BUF Heaps
Closes: #1813
2025-03-16 12:25:57 +01:00
Alessandro Astone 61d5be43dc debian: Upver to 1.5.0 2025-03-05 19:13:20 +01:00
Alessandro Astone 4275bc9fb5 Upver to 1.5.0
Bumping the minor version just because this is going to be the first version
properly supporting Android 13 (see commit 6a0d1909)
2025-03-05 19:03:05 +01:00
Alessandro Astone fc69510771 lxc: Handle CTRL+C silently during shell commands 2025-02-14 00:00:55 +01:00
Alessandro Astone b6dfdc0cb7 container: Do not mount KMS nodes
Because we never draw directly to the screen, there is no need to expose
the KMS nodes to the container.
2025-02-13 23:53:18 +01:00
Alessandro Astone 7b31f7188a gpu: Do not log failure to read i915_capabilities
If awk fails to read the file, we will simply fail to parse the output
to integer immediatly after.
2025-02-05 20:15:00 +01:00
Alessandro Astone d3f4c8c218 initializer: Differentiate HALIUM vndk31 and vndk32
HALIUM 12 may refer to either vndk31 or vndk32.
We need to differentiate the two.
Use HALIUM_12 for vndk31 and HALIUM_12L for vndk32.
2025-01-26 15:53:04 +01:00
Alessandro Astone 6a0d19097a protocol: Correct gbinder protocol version for API 33
This is now working correctly with libgbinder 1.1.42
2025-01-23 20:06:11 +01:00
Alessandro Astone 023c4e31e0 gpu: Use intel_hasvk on intel graphics gen 8 or lower
Closes: #1604
2024-12-14 16:41:45 +01:00
Alessandro Astone 5000c9703d initializer: Refactor setup to better handle preinstalled images
Bail out early when using preinstalled images.
There's no reason to attempt fetching the OTA channels if we're
going to use preinstalled images.

Fixes: #1550
2024-09-04 23:31:39 +02:00
Alessandro Astone c9ea5abff7 debian: Use new polkitd package
Prefer the new polkitd name but keep supporting policykit-1 for
older distros

Fixes: #1484
2024-08-10 16:17:56 +02:00
Alessandro Astone 9cd66662ba debian: Upver to 1.4.3 2024-08-07 23:01:14 +02:00
Alessandro Astone 583ebb5ebb Upver to 1.4.3 2024-08-07 23:01:09 +02:00
Alessandro Astone 20ad115683 user_manager: Restore desktop-file creation the first time 2024-07-28 10:19:31 +02:00
Alessandro Astone c312b3fc94 Bail out if system_channel or vendor_channel are empty
Closes: #1033
2024-07-27 23:41:24 +02:00
Joshua Ashton af296c90a7 Use synthetic paths for host sockets
Mount XDG_RUNTIME_DIR, PULSE_RUNTIME_PATH and
WAYLAND_DISPLAY to our own synthetic paths in
/run/xdg/...

That way, they can never clash with any of our
Android bindpoints.

Eg. /data/.../xdg/wayland-0 conflicts with /data

Co-authored-by: Alessandro Astone <ales.astone@gmail.com>
2024-07-27 23:40:24 +02:00
Alessandro Astone 3dd0599969 Remove unused session.cfg config 2024-07-27 22:30:31 +02:00
Alessandro Astone 404980b3af Re-enable nouveau and nvk 2024-07-27 22:19:36 +02:00
linsyking 7496998e9d Add msm_dpu driver for freedreno 2024-07-27 22:18:42 +02:00
Jami Kettunen 068a143be9 initializer: Fix Halium version VNDK detection logic for 12L+
API 32 (12L) was getting detected as HALIUM_13 which wouldn't work on
devices when official images ship with support for these newer versions.
2024-04-20 10:55:59 +02:00
Fabrice A. Marie 2be58d19ad Ensure default umask to avoid surprises with file permissions. 2024-04-15 10:40:33 +02:00
Loïc CORBASSON 3e6872c0fd Don't change user-defined desktop files for Waydroid when they're set as read-only 2024-02-25 00:46:59 +01:00
Mihai-Drosi Câju f8d4bd2dc7 Add sysconfdir to Makefile defaulting to /etc 2024-01-15 15:44:15 +01:00
Alessandro Astone ec85ccf53c upgrader: Clarify refused upgrade message
The previous string was wrong because we are not detecting the
presence of image files, but whether waydroid was initialized with
preinstalled images or with OTA images.
2024-01-03 12:52:22 +01:00
Jami Kettunen d3ec77888d Make adb auto-connection opt-out
Just because you have ADB installed (for e.g. physical Android device
development) doesn't mean you necessarily want Waydroid to always also
get automatically connected, allow disabling this functionality.
2024-01-02 13:53:45 +01:00
sta-c0000 6eea5cf63f Add SSSE3 CPU check for arch x86/x86_64 2023-12-21 18:13:38 +01:00
Aarron Lee 66c8343c4d update regex for deprecation warning 2023-11-20 00:48:39 +01:00
Jon West b6107a148a Delete CODE_OF_CONDUCT.md 2023-11-17 22:47:52 +01:00
Alessandro Astone 209c90d473 debian: Upver to 1.4.2 2023-10-31 16:56:45 +01:00
Alessandro Astone 5e946a2f19 Upver to 1.4.2 2023-10-31 16:45:05 +01:00
Alessandro Astone 0835ece5bc hardware_manager: Prevent race-condition in upgrade check 2023-10-31 16:24:57 +01:00
Alessandro Astone b1713e967b Makefile: Create xdg menu directories 2023-10-31 16:00:16 +01:00
Loïc Corbasson 34e1b934c9
Add an XDG menu directory (#1149)
Add XDG directory and menu files

to have a Waydroid menu directory with all Waydroid apps,
and avoid having them in a 'Lost & Found' menu directory

---------

Co-authored-by: Taha <62564400+inspectorgadget03@users.noreply.github.com>
2023-10-31 15:08:34 +01:00
Азалия Смарагдова 782dd7b403 Block the "open_by_handle_at" system call 2023-10-23 21:41:31 +02:00
Alessandro Astone 2a2097f4ff hardware_manager: Validate upgrade zips against the saved ota channel 2023-10-12 16:22:02 +02:00
Alessandro Astone f8dd47e11d lxc: Recursively mount vendor_extra
HALIUM devices may use bind-mounts to override libraries over the
prebuild read-only vendor image. We want to keep those overrides
in our /vendor_extra mount.
2023-10-02 20:35:50 +02:00
Alessandro Astone b67b208d89 user_manager: Add icon to the app_settings action 2023-09-29 20:01:39 +02:00
Arusekk 11dabde2b3 user_manager: Respect user umask and use less code
chmod(0o644) is no longer necessary after umask(0) removal in
da4772c4e5 ("tools: Remove umask 0")
as the default umask is 0o022, but if the umask is stricter (e.g.
0o027), then the user would expect the created files to be 0o640.
Creating the directory with the correct mode already also avoids
potential race conditions on systems with insufficient umask.

While at it, also use templating strings for .desktop file creation to
simplify the logic and split the template from the actual code a bit.
2023-09-29 19:45:59 +02:00
HenryDavidThoreau d0ca6a32a9 Add iptables as Debian dependency 2023-09-29 16:48:04 +02:00
Alessandro Astone 05f8c257b7 Fix issues with AppStream metadata
* Some tools break when the first line is not the xml header

* Some tools require the icon to not be a symlink. There should be no
  more users of ./data/AppIcon.png so just move it to its location

* Update contact information.
  (How did that translation URL end up in there?)

* Remove too large screenshot
2023-09-29 16:31:10 +02:00
Alessandro Astone 14e9844266 README: Update matrix link 2023-09-23 00:43:25 +02:00
Alessandro Astone 7dc516d8d0 Fix logcat command after #996
The logcat command does not have the same commandline options as the
shell command, so provide empty defaults to avoid an AttributeError
2023-09-18 18:27:35 +02:00