The invention relates to the technical field of the Android system, and discloses a method and system for realizing a shutdown advertisement based on the Android system. The method includes: when it is detected that the Android device performs a shutdown operation, setting the waiting attribute to notify the animation playback layer that after the playback is completed Wait for the system to sleep and shut down; when the animation playback layer is started, it receives the shutdown parameters, opens the animation package to play the animation according to the shutdown parameters, and sets the completion attribute when the animation playback is completed; when the animation playback is completed, execute the system sleep, clear the waiting attribute and then complete the hibernation. The above-mentioned Android device continues to run so that the animation playback is terminated and shuts down after exiting the playback normally. The present invention realizes the complete display of the shutdown animation by planning the start of the shutdown animation, the execution of the shutdown animation, the waiting of the shutdown animation, the sequence of the end of the shutdown animation, and the communication process, so that the partial content of the shutdown advertisement can be completely displayed before the shutdown, so that it can be realized in the Android system Turn off the advertising function.