If you want to charge the Huawei P10 because the battery level is too low, you will most likely use a quick charger. If you use a charger that is not from Huawei but of a third party, then the following problem may occur:
The Huawei P10 is constantly restarting
This is, of course, impractical, since you always have to enter your Sim card pin. Why the Huawei P10 does restarts all the time when charging the battery?
The reason is that the Huawei P10 should only be charged with a Huawei charger. The charging processors are precisely matched to one another. If you take another charger, this can cause the Huawei P10 to restart during recharging.
If this error occurs, please use a suitable quick charger or deactivate the quick charge in the settings.
You now know the reason why the Huawei P10 constantly restarts during the charging process and what you can do about it.