If booting more than 10 minutes or get bootloop, you should wipe reset manual through recovery. Turn off your Samsung A12, go into recovery by pressing “Up Volume + Home + Power“, then choose wipe menu (cache, data, dalvik cache). If you want to update a security patch to the current month, don’t go for