Shutdown, restart and restart recovery of CMD command under Android

When Android was just emerging, it really made some niche software popular. Cutting fruit, Tom cat and blowing skirt are the representatives. Of course, there are highly practical shutdown and restart software. Let's search on Baidu.

Screenshot:

I Understanding CMD commands

The operations we perform under CMD are not described in detail here. We just need to know the following commands

Restart: Su - C reboot

Shutdown: Reboot - P

With this idea, we can realize it

activity_ main. xml

MainActivity

What are you waiting for? Let's try it quickly, because we directly obtain Su permission to send script commands, so we don't need other permissions

The knowledge about shutdown, restart and restart recovery of CMD command under Android will be introduced here. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>