A505f U5 imei repair ,patch certificate and restart problem is do you to the perfect root ,but now now solved.
Here you what you can do :-
1- flash it with this firmware
(A505FDDU5BTL1)
2-Make root using the great dongle EFT us usual
3- format the phone after flashing the root using the recovery (its better to not let the phone power on completly after rooting)
4-install latest magisk manger (be sure that the OEM is opened before restarting phone into the recovery to make phone full rooting
5-finally repair and patch using great box octoplus(it takes some time be patient and do not miss any message come from the process while doing the job)
last notice
Say yes for every notification comes from the process exept when you need two imei to repair .
Thank you