How to unroot your android smartphone

Rooting your phone gives you access as superuser which makes it possible to do changes in system. but rooting also...