How to change device model in build.prop?
Instead of doing it manually, here's an app that does it for you: Get Assistant - Root. From app comments in Play and local markets, it's verified to work with multiple models even on LineageOS.