Luckily since this phone ships with Android Oreo, it is required to comply with project treble, which makes this a whole lot easier. By definition, a phone with project treble has to boot and pass all tests in the Android compatibility test Suite with an unmodified AOSP image.
You can already see some benefits of this on the XDA website, where some people are successfully replacing system images on no name phones with barely any audience and not even a kernel source published