Android hidden virtual keys, turn off the boot animation, power on the sound

Source: Internet
Author: User

/*********************************************************************** * Android hidden virtual keys, turn off the boot animation, power on Voice * declaration: * Sometimes, we may want to hide the virtual keys in Android, of course, that * Android boot animation, sometimes is very annoying, but also can be hidden. * 2016-1-7 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************************************** *******/First, reference documents:1. Android4.2&android4.3 Remove the virtual key http://blog.csdn.net/bzw073/article/details/22916505    2. Android4.0.3Modify the Start animation and power on the sound http://www.cnblogs.com/jqyp/archive/2012/03/07/2383973.htmlsecond, the virtual key solution: Hide all virtual keys, only need to add Qemu.hw.mainkeys in Build.prop=1. Third, turn off the boot animation, power on the sound solution:1. Cat frameworks/Base/cmds/bootanimation/bootanimation_main.cpp ...intMainintargcChar**argv) {        #ifDefined (have_pthreads)setpriority (prio_process,0, Android_priority_display); #endif                    CharValue[property_value_max]; Property_get ("debug.sf.nobootanimation", Value,"0"); intNobootanimation =atoi (value); Alogi_if (Nobootanimation,"Boot animation disabled"); if(!nobootanimation) {SP<ProcessState>proc (processstate::self ()); Processstate::self ()-Startthreadpool (); //Create the Boot animation objectsp<bootanimation> boot =Newbootanimation (); Ipcthreadstate::self ()-Jointhreadpool (); }            return 0; }        ......    2. From above it is only necessary to add debug.sf.nobootanimation=1 in Build.prop.

Android hidden virtual keys, turn off the boot animation, power on the sound

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.