-
Notifications
You must be signed in to change notification settings - Fork 612
Support x86 Android #2410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The approach that seems most practical to me getting this to work is using Anbox. Anbox lets you run android apps in a container on regular Linux. Given this you would a single rr recording of all of the processes running in the container. The big missing piece keeping this from working right now would be rr support for ashm and binder. Ashm seems like it wouldn't be too hard to support. Binder might be harder. |
Interesting. So Firefox works in Anbox? |
I just tried it on Debian 10, and yes, I am able to launch and load a website in both Firefox for Android and Firefox Preview in Anbox. |
A native attempt to run Anbox under rr results in this:
|
Interesting. Not sure what's going on there, there might be some security seccomp policy that needs to be disabled. I don't think Kyle or I are really incentivized to work on this right now, but maybe later. |
A good next step here would be to try getting anbox running without snap. Snap is probably contributing some extra selinux stuff that we can avoid. |
See also #2416 |
I've spent some time trying to do this, and while I was able to build anbox from source, I haven't been able to get its various components to start up and interact successfully outside of snap. @jrmuizel suggested a potential alternative strategy of modifying the snap package script to build and include rr as something that runs inside the snap package. |
I'm investigating how much work this would be. What is the simplest anbox thing that we could run? |
\o/ Jeff mentioned |
That's not an android thing though. I have a good idea of what's required for snap at this point, I want to exercise anbox. |
Whoops, total thinko there :) A simple command-line thing like |
Ideally the latter but a command line thing would be a start. |
@jrmuizel @khuey Anbox struggles a bit more with Android apps than I had hoped. For example, it isn't able to run modern Chromium. anbox/anbox#1637 |
There's also Waydroid, if someone can force the system image to be aarch64 or x86_64 only. https://twitter.com/zhuowei/status/1533159959575379971 |
There's active work to get rr running for x86-64 cuttlefish. |
It would be great if rr could be used to debug Firefox for Android (or other Android applications).
Since Android can run on an x86 device or emulator, hopefully this is easier to do than supporting ARM.
cc @jrmuizel
The text was updated successfully, but these errors were encountered: