(In reply to Geoff Brown [:gbrown] from comment #1)
:nalexander - Do you have an idea of how to solve this? Do you have time to look into it??
I haven't much time to address this directly, but I can certainly provide some guidance.
A separate APK for gtest definitely is the most appealing: I'm leery of trying to override the location of libxul.so conditionally. But a quick skim of the sources suggest it wouldn't be too hard: look for some gtest-specific environment variable here.
Arranging a separate APK is not hard, per se, but it's a burden: we'd need to make the
geckoview Gradle project have a test APK for some product flavor that includes gtest. We're trying to minimize product flavors, which is in conflict with separate APKs.
So I suggest:
If you explain how the gtest/libxul.so gets produced I can help with the first step. I don't have a compiled objdir right now (really, ever) so I can't just see myself. Can I get these things from artifacts in some way, so that we can make this possible with an artifact build?