Ran :(){ :|: & };: on my android device! So I was seeing dangerous command  in linux and I found a command which seemed funny:

:(){ :|: &amp; };:


So I ran it on my Samsung Galaxy A7 term non-rooted phone and guess what it hung immediately. So I tried powering off my phone by holding the power button. But it did not respond and the screen turned off after a minute then I tried clicking the home button and all the buttons to wake it up but no response finally it powered off and rebooted and now it works perfectly fine. Should I worry about heat damage or hardware damage. If so how can I confirm that I have a damaged hardware. Developer mode in on too!

PS. I have my phone powered off fro safety because I don't want it to catch fire. XD
Modern Android Kernels are smart enough to shut down the entire system before any hardware damage occurs. Even when you're testing the limits of your CPU when overclocking, it will shut down as soon as incompatible frequency/voltage combination is set. So you're far from any real hardware damage cause by the infinite loop command.