logoalt Hacker News

ta8903 • today at 2:47 PM • 1 reply • view on HN

An APK is an installer, not a binary. You have to be an "app" to do anything in Android. Which includes writing to the framebuffer. I don't know enough about Android so I'd love to be proven wrong. Give me an `xclock` equivalent that I can just run.


Replies

gf000 • today at 4:33 PM

A png image is a binary. A zip file, which apks are are just binaries.

If you mean executable formats, they're their own different things, it's just machine code wrapped OS-specially. I don't see how they are fundamentally different "from an app" - you also have a bunch of metadata in there and an entry point. Just because it's an XML file in Android's case which can just as well jump to machine code (you can have Android apps written in CPP/Rust whatnot), it's all just an implementation detail.

Well, do you mean xclock to draw over different windows/activities? Because that's just a different similarly to how Wayland is different from X -- it's generally frowned upon to not have a central entity manage who can draw where.

Otherwise, you can trivially do whatever you want, including drawing manually similarly to X's API, or using OpenGL or similar hardware accelerated apis.