To hide the virtual keys under Android, you can do this by
[CPP]View PlainCopy
- ADB root
- ADB remount
- ADB shell ls-al/system/build.prop (view file permissions)
- -rw-r--r--root root 4237 2015-11-19 04:34 build.prop
- ADB shell Pull/system/build.prop./(Take the file out and modify it)
- Gedit Build.prop
- Qemu.hw.mainkeys=1 //Plus this definition, equivalent to turning off the virtual key
- ADB shell push Build.prop/system (Put the modified file back)
adb shell chmod 644/system/build.prop (retains the original attribute)
Restart the machine, the virtual button is hidden.
The reason to modify the file properties is because the property has changed during the transfer process, and if the property is not correct, it will cause the system not to boot.
Of course, this is only a temporary modification method, if you want to permanently modify the property, just write the source code in Qemu.hw.mainkeys=1,
The Build.prop in the out directory is generally defined in the Xxx.prop file.
Hide the virtual keys under Android