The Galaxy J5 (2017) uses Samsung’s with additional layers: RMM (Remote Maintenance Management) and KG (Knowledge Guardian) State . These lock down the phone if unofficial software is detected. The "dm-verity" error usually appears after:
When the warning screen appears, press to continue. 3. Flash via Odin Open Odin as Administrator. g532f dm-verity verification failed fix