madlips well can you give some explanation on how you built the emulator with GOS
I didn't use GrapheneOS to build the emulator (I don't think that's possible). I used Ubuntu (on an x86-64 box) to build GrapheneOS, including the emulator target.
I don't know whether or not this was the best thing, but my build was:
$ choosecombo release sdk_phone_x86_64 userdebug
$ rm -r out
$ m -j 8
The -j 8
part allowed the build to finish on my machine despite limited RAM. The build ran for around 10 hours.
I think to run it what worked best (although not very well) was:
$ adb start-server
$ emulator -no-audio -no-boot-anim
At least in my experience at the time (which was more than two years ago), the emulator got stuck forever doing the boot animation unless I used the -no-boot-anim
flag.
Again, the result was not life-changing for me. Running the emulator build in the emulator is not a good way to find out what running GrapheneOS on a phone is like. I was unable to get some downloaded apps to run on the emulator at all -- I think apps including native ARM code didn't work because the emulator was an x86-64 build of GrapheneOS. So the emulator was not useful for compatibility-testing apps against GrapheneOS.
Overall, it seemed to me that emulator builds of AOSP were designed to be somewhat useful for people developing an app, and useful to a very limited extent for people developing OS changes. But it seemed clear that real testing of either an app or an OS build would require connecting the debugger to an installation on a real device.