Kamika242 As per the grapheneos faq
Android Runtime Just-In-Time (JIT) compilation/profiling is fully disabled and replaced with full ahead-of-time (AOT) compilation.
Which means apps need to be recompiled ahead of time when there is an update to a library those apps might use after a OS update. Contrary to your Samsung which does it dynamically in memory while u use the app. In your example, Samsung's implementation might be more convenient, but at the cost of security. AOT significantly improves security compared to JIT, hence GOS hardening it by choosing AOT implementation. Ultimately, it is a tradeoff between convenience and security, at least that is my current understanding.