r/JetsonNano • u/TempestThree • 13h ago
L4T+Waydroid: Hardware Accelerated Graphics in Android
About a year ago, I started a project to try and find an ARM device that would be effective for running a moderately intensive Unity game that is available in the Google Play Store. My first success came from the fairly straight-forward path of getting a Raspberry Pi, installing Waydroid, realizing the performance was abysmal, then finding KonstaKANG's LineageOS build for the device, installing that, and finding the performance to be "acceptable."
A friend of mine saw this and was curious if we could get beyond "acceptable" performance, and decided he wanted me to try getting hardware accelerated graphics working on a Jetson Orin Nano. At the time, I will admit, I initially underestimated how difficult this process would be -- as many of you may well know, there is no official or unofficial Android build for the device, JetPack's L4T build doesn't even support Waydroid out-of-the-box (the kernel has to be rebuilt with necessary flags enabled), and even if both of those were solved you still wouldn't have hardware accelerated graphics because Mesa does not have a way to support the newer Tegra chips.
I decided to focus on the L4T+Waydroid route first, because if I could get Waydroid to have hardware accelerated graphics, I would pretty much be doing the exact same logic for a native AOSP/LineageOS build, but without all the struggle of dealing with getting everything else going for a native Android install (it also was wildly less demanding in terms of computing power to build). After wrestling with this on my own for about 6 months, during which time I received some really helpful advice from the maintainer of the LineageOS/concord (Nvidia Orin) branch, I finally relented this week and threw everything I had learned and all my plans into Claude Code and within a single evening had gotten Waydroid working at a stable 60 fps.
I have since been able to bump that up to ~100 fps (depending on the game itself, as this turned out to be very CPU-bound), and have written a script to perform most of the setup. If anyone is interested in this project either from the Android Tegra support perspective, or just as a way to run a headless game host (what I'm doing), hopefully this will be useful. I am very up-front about the fact that this was heavily supported by AI development, as I am by no means an OS/driver developer (full-stack web-developer actually), and I do not currently posses the skills to adequately review what has been done here on a technical level. If you have questions, I will attempt to answer them to the best of my ability, and if I need to ask Claude for assistance to answer your question, I will be up-front about that as well (if I'm not sure what the answer is or cannot independently verify it).
Work on a native LineageOS build for the Jetson Orin Nano (including hardware accelerated graphics) is on-going, but is a wildly more time-consuming project on account of how long it takes to compile, so I don't expect a fast turnaround on that project. If I am successful on that front, I will either update this or make another post.
