Julian Winkler
2269a400ad
Try to start all external Services over DBus
...
No need to hardcode this only for Cloud Messaging
2025-10-01 12:07:42 +02:00
Julian Winkler
f7a29d8731
implement Google Cloud Messaging using DBus activatable GActions
...
This needs https://gitlab.com/android_translation_layer/gcm_service running in the
background.
For D-Bus activation, a D-Bus service file needs to be manually
installed under ~/.local/share/dbus-1/services.
Tested with FCM-Toolbox app.
2025-10-01 12:07:42 +02:00
Julian Winkler
49fa854c93
add a media ContentProvider
...
Every time the ContentProvider is accessed, a file chooser opens and the
selected file is then provided as media file.
2025-04-23 18:13:15 +02:00
Julian Winkler
e652089252
map Android UnifiedPush to DBus UnifiedPush
2025-04-21 07:31:06 +02:00
Mis012
6d73fd7a99
XmlBlock: implement nativeGetAttributeName, use getPooledString instead of mStrings.get
2025-03-26 19:42:49 +01:00
Julian Winkler
f20bb6cb1c
ContentResolver: implement query() support for file:// URIs
...
This is needed for the subscription import feature in NewPipe.
2025-02-22 23:49:43 +01:00
Julian Winkler
b4f7c64cef
Context.updateConfig(): handle XDG-portal unvavailablility
...
The XDG-portal DBus instance is not available to applications launched
from SSH on postmarketOS.
2024-12-30 09:46:52 +01:00
Julian Winkler
1fd2638c57
set Configuration.screenWidthDp and Configuration.screenHeightDp
2024-12-13 22:32:04 +01:00
Mis012
39504d1437
XmlBlock: nativeNext: properly skip certain tags, throw exception for BAD_DOCUMENT
2024-11-29 00:23:49 +01:00
Julian Winkler
1fb5be92dc
fix build with libportal < 0.8
2024-11-13 23:02:55 +01:00
Julian Winkler
6dfd0d1d4b
use XDG-Portal to detect night mode
...
Get dark mode property directly from XDG portal instead of extracting it
from the GTK theme. Also we pass the value to GTK, which would normaly
be done by libadwaita.
This also has the advantage, that we can switch the theme at runtime.
but for now the change will only affect newly created Activities.
2024-11-01 23:23:58 +01:00
Julian Winkler
f3092fd4bd
implement file sharing by file descriptor
...
Using custom gdbus code, as libportal doesn't expose the raw
org.freedesktop.portal.OpenURI.OpenFile method.
2024-10-03 15:57:44 +02:00
Mis012
92e2c06347
make sure the apk path is reliably set in the PackageInfo
2024-06-19 22:35:50 +02:00
Julian Winkler
cc5d4a3cb3
use libandroidfw for resource XML parsing
...
androidfw is implemented in native code and has much better performance
than ARSClib
2024-05-12 16:49:14 +00:00
Julian Winkler
276b5ca7ef
add more APIs needed for NewPipe
2024-03-17 20:02:50 +01:00
Julian Winkler
a3a7def204
night-mode: check for GTK_THEME env var and prefer-dark setting
...
GTK_THEME env var does not influence gtk-theme-name property. So it has
to be checked by hand.
2024-03-10 23:00:42 +01:00
Julian Winkler
005e2299bd
automatically enable UI_MODE_NIGHT when gtk-theme-name contains "dark"
...
gtk-theme-name is only checked once at start up
2024-03-10 12:05:33 +01:00