Commit Graph

275 Commits

Author SHA1 Message Date
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
Азалия Смарагдова
0f7c1ea44b Allow local amendments to the AppArmor policy 2023-09-11 17:39:14 +02:00
Alfred Neumayer
b67b4415c1 container_manager: Keep schedtune cgroup around in case nesting is supported
Certain devices with Ubunutu Touch make use of the schedtune cgroup boosting mechanism,
allowing for better performance system-wide with very little tweaking.
Some devices have trouble using this cgroup in a regular GNU/Linux setting because
their kernels are not carrying the necessary kernel patch for enabling nesting. [1]

To please both those that want Waydroid to stop dropping their performance as well as
those having unpatched kernels, probe the capability to nest schedtune cgroups.

[1]: 6452429d1f
2023-09-07 15:46:00 +02:00
Marcel Partap
586795b80c clipboard: change warning message to be less misleading 2023-09-07 15:43:05 +02:00
Alessandro Astone
21b94635e7 interfaces: Return binder error when receiving an unknown transaction
Requires gbinder-python 1.1.2 to work. It is a noop otherwise.
2023-09-06 23:30:01 +02:00
Alessandro Astone
d1ba241d92 IHardware: Add new upgrade transaction capable of 64-bit timestamps
32-bit timestamps will overflow in 2038
2023-09-06 23:24:43 +02:00
Alessandro Astone
92ab11d979 More logs for the issue template 2023-09-01 14:28:55 +02:00
Alessandro Astone
463801698d Let logcat command terminate in issue template instructions 2023-09-01 14:15:13 +02:00
dabao1955
65bf8a2299 Update issue temple (#1018)
Co-authored-by: Alessandro Astone <ales.astone@gmail.com>
2023-09-01 14:00:59 +02:00
Азалия Смарагдова
91b8a0ffc6 Allow running a shell command as an arbitrary user and group and with an arbitrary security context (#996) 2023-07-23 00:26:31 +02:00
Alessandro Astone
d675bd047d Revert "Update Matrix link"
This reverts commit 7a38305a43.
2023-07-17 15:09:16 +02:00
cyan
822598850d CI: add support for ubuntu mantic 2023-06-10 17:55:18 +02:00
Alessandro Astone
7ce2e28e8e debian: Upver to 1.4.1 1.4.1 2023-04-24 13:55:41 +02:00
Alessandro Astone
3f5b3ce6ef Upver to 1.4.1 2023-04-24 13:41:53 +02:00
Alessandro Astone
e7a236789d lxc: Add /dev/tty 2023-04-24 13:40:32 +02:00
Maximilian Wende
74a5e5443d Add device IP address to status, auto adb connect 2023-04-16 19:27:59 +02:00
Saptarshi Sarkar
074b6f5b83 Create CODE_OF_CONDUCT.md
Added **Code Of Conduct** for this open source project to make it _better_ in terms of **community standards**.
2023-04-01 19:46:13 +02:00
Alessandro Astone
ebec96db06 user_manager: Do not crash when install applications during boot
Even if we fail at getting appInfo, we will simply repeat the
operation in the user_unlocked callback
2023-03-29 09:42:07 +02:00
Rikka
958ab57b1a Add missing environment variable BOOTCLASSPATH to waydroid shell 2023-03-29 08:59:55 +02:00
Alessandro Astone
329940da98 Revert "All AppArmor profiles have been switched to the "enforce" mode."
Not ready yet

This reverts commit 819bfa0abb.
2023-03-20 14:45:25 +01:00
Boruch Baum
d28d65fa09 .desktop files should not be executable (#815) 2023-03-19 17:33:01 +01:00
Азалия Смарагдова
819bfa0abb All AppArmor profiles have been switched to the "enforce" mode. 2023-03-19 15:32:54 +01:00
Rudra Saraswat
2c98442139 Add X-WayDroid-App category to WayDroid desktop files (#810) 2023-03-19 15:31:48 +01:00
snoutie
7709bfa2a2 Add App Settings to .desktop file
This adds an option to open the App's Settings page to easily manage the app's permissions or to uninstall the app
2023-03-19 15:29:39 +01:00
Alessandro Astone
59917a6325 CI: Add ubuntu lunar 2023-02-10 23:09:53 +01:00
Alessandro Astone
865e041af8 debian: Upver to 1.4.0 1.4.0 2023-02-08 17:33:48 +01:00
Alessandro Astone
d68bbb7986 Upver to 1.4.0 2023-02-08 17:33:48 +01:00
Alessandro Astone
ca5edc76bd Add developer_name to appstream metadata 2023-02-07 14:46:51 +01:00
Jami Kettunen
19e34ed64c waydroid.app.install.desktop: Don't hardcode waydroid binary path
None of the other .desktop files do either, let's try to keep a unified
style.
2023-02-07 14:08:01 +01:00
Jami Kettunen
55d12fb776 Fix last hardcoded direct usages of AppIcon.png
Since 574405d it's additionally installed under a 512x512 XDG icon dir
just looking it up by "waydroid" should work.
2023-02-07 14:08:01 +01:00
Alessandro Astone
cde76d770c Update github issue template 2023-02-06 12:37:48 +01:00
doomsdayrs
ea43140a1c Update appstream
The app stream file was not validated via appstream-glib.

This commit ensures that the appstream passes validation.
2023-02-05 22:18:36 +01:00
Jami Kettunen
807341e110 arch: Fallback to arm on weird arm64 kernels with 32-bit userspace
Typically armv8l should catch these, but it seems some Android
downstream kernels at least cheat and don't report the correct thing.
2023-01-30 21:34:09 +01:00
Alessandro Astone
f12914e3bc initializer: Restart container through DBus 2023-01-29 23:09:27 +01:00
Alessandro Astone
f33173d8e3 lxc: Handle lxc-info failure
So that init/upgrade can go on and regenerate the lxc configs if
that's what's broken
2023-01-29 23:09:24 +01:00
Alessandro Astone
a8a93fdc7d Disable overlays if mounting fails once
This is not a critical feature.
2023-01-28 17:27:32 +01:00
Mo 森
574405d056 packaging: install icons to xdg icons resource path, and get the .desktop file to use relative icon name 2023-01-27 17:22:33 +01:00
Alessandro Astone
72aa95b191 interfaces: Remove presence handler after use 2023-01-27 17:21:05 +01:00
Jami Kettunen
e757fdc6a5 images: Cleanup Waydroid Updater zips after extracting
These will take up quite a bit of space over time in
~/.local/share/waydroid/data/lineageos_updates/ and should be cleaned up
during the update process.
2023-01-27 13:38:00 +01:00
Alessandro Astone
b937804ecd session: Provide waydroid.host_data_path prop
It is used by WaydroidUpdater app for IHardware::upgrade
It defaults to /var/lib/waydroid/data but we are not bind mounting
xdg data over /var/lib/waydroid/data anymore
2023-01-27 13:20:20 +01:00
Alessandro Astone
a6e58f9e24 user_manager: Fix app removal 2023-01-26 18:00:01 +01:00
Alessandro Astone
e587e2deba Add apk mimetype handler 2023-01-26 14:08:32 +01:00
Alessandro Astone
204403056e session: Provide waydroid.background_start bool
Can be used by hwcomposer for example to decide whether or not to
show the android bootanimation
2023-01-25 17:09:13 +01:00