I am currently working on GrapheneOS development with Cuttlefish (CVD).
My broader goal is to customize GrapheneOS, so as a first step I need to get it running successfully in CVD.
I am building and running the aosp_cf_x86_64_only_phone-cur-userdebug target from the latest upstream version.
During the process, I encountered issues related to native bridge support and applied the following fixes:
- In external/hardened_malloc/Android.bp, I added native_bridge_supported: true at line 55.
- The file frameworks/libs/native_bridge_support/android_api/libc/bionic/h_malloc_wrapper.cpp was missing, so I copied it from bionic/libc/bionic/h_malloc_wrapper.cpp into the correct path.
The build succeeded and CVD does start, but after running for a short time it shuts down unexpectedly. From the logs and behavior, this appears to be connected to Bluetooth device emulation and possibly WebRTC configuration issues.
Has anyone here successfully run GrapheneOS inside CVD?
Has anyone encountered and resolved this specific shutdown problem?
I would really appreciate any guidance or collaboration.