I’m building a full-screen System Monitor strip app for the UltraBARX store: big live graphs, history over hours, alerts when CPU or memory stays high, and knob/DotKey to switch views. It reads the PC’s stats from content://com.ultrabar.systeminfo.provider/{cpu,memory,disk,network}, which works well. The values keep updating while the app is in front, timestamped to the second.
The catch: the launcher only asks UltraWorkSpace for these numbers when a CPU / Memory / Storage / Network widget is in the bar’s layout. Without those widgets the provider stays empty, so my app would have to tell every buyer “add these four widgets first, or this app shows nothing.” There’s no supported way for a third-party app to start those polls itself. On LineOS 1.0.9, only the widgets’ own MetricsBus subscription registers them.
Could you add a small hook for this? Any one of these would do:
Provider call: a call() method on SystemInfoProvider such as subscribe / unsubscribe with a type (cpu, memory, disk, network) and an interval, which registers the same query a widget does. If you’d rather not track subscriptions, it could expire after a few minutes unless called again.
Keep polling while the provider is read: if an app has queried a type in the last minute, keep polling that type, with or without a widget.
Plugin SDK action: a launcher-side action that plugin apps can call to start or stop a metric subscription.
The same hook would let any developer build on the PC stats: dashboards, alerts, screensavers with live load, and so on. Happy to test a beta build with it.
Actually, all the capabilities you’ve described are already achievable with our new development framework. We’ve implemented the relevant interfaces and are currently testing them internally.
Third-party applications will be able to access system-level data and capabilities through our open APIs, without relying on built-in widgets to trigger data collection.
We’re currently validating these capabilities with several real-world applications.
I’d like to share a quick demo with you: we’ve been working on a Spotify control application for UltraBAR, which demonstrates how third-party applications can interact with the platform and leverage its capabilities.
I’ll share a demo with you so you can get a better idea of what we’re building.
Thanks for the detailed write-up, Xacto and for digging into how the provider behaves on 1.0.9. You’ve got it right: today,a third-party app can’t start those subscriptions on its own, and telling every buyer to add four widgets first isn’t a workable answer.
Here’s what’s coming. We’re releasing a build this month that opens up plugin development, with a custom card APl in theApp and Plugin Store, plus module binding. With module binding, your app can request the module directly rather thandepending on a widget already sitting in the bar layout-so the CPU/ memory/disk/network values would be availableto your System Monitor strip without the setup step That’s effectively the plugin -side way to start a metric subscription you
were asking for.
The same capability opens up the broader cases you mentioned - live dashboards, alerts, screensavers pulling real load. I’let you know as soon as the build is out Given how far you’ve already taken this, we’d like you to get first crack at it happyto send you the SDK notes and a test build, and your feedback would be very welcome.
@Jiahuan_He@Tim_Chan Thank you, that’s exactly what I was hoping for. Yes please to the SDK notes and the test build. A forum message is fine.
A few things I’d check first:
Does module binding work for full-screen strip apps (like the System Monitor), or only for custom cards?
Does it include the other modules too: SenseCube readings, and knob and DotKey events? My store apps Roomline and Stockline currently read those in a way a future firmware could close off, so a supported route would let me move them over.
Will apps built on the framework be submitted through the Open Platform as now, or through the Developer Center?
Thanks for confirming — glad this is what you were hoping for. we’ll send the SDK notes and test build via a forum message.
To answer your checks:
Module binding for apps
Yes — module binding supports applications, including apps like System Monitor. We’re also extending it to PC-side plugins. R&D says the documentation will be published soon.
Other modules (SenseCube readings, knob and DotKey events)
Yes, these modules will be supported progressively — the plan is to cover them all.
Submission route for apps built on the framework
They can be uploaded in the same way as applications.
Spotify demo
I’ve uploaded the Spotify demo, but because I don’t have a good network environment here, I haven’t been able to test it fully.