/*********************************************************************** * 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