Implementation of Android modify system shutdown animation

When transplanting your own mobile device to the Android system, you will certainly encounter changing the startup or shutdown screen and configuring your own product logo. These must be modified in the source code and then compiled. Here is a simple example of how to modify the shutdown animation!

File path: frameworks \ base \ services \ core \ Java \ com \ Android \ server \ power \ shutdown thread java

In the beginshutdownsequence() method:

Note: you must set dialog getWindow(). setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); I forgot to add it before, so nothing will be displayed

Replaced custom view:

design sketch:

Thank you for reading, hope to help you, thank you for your support to this site!

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
分享
二维码
< <上一篇
下一篇>>