diff options
author | Xavier Ducrohet <xav@android.com> | 2011-10-04 10:41:26 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-10-04 10:43:10 -0700 |
commit | fa0c8e25403290b545bb98735b1ece275c524361 (patch) | |
tree | 18e035859e7b1b4081d197d5ffbd4f10c5f966e7 /vl-android.c | |
parent | ee2e3ffc2d25f4491bf22f1c4483f919d5a61e4d (diff) | |
download | external_qemu-fa0c8e25403290b545bb98735b1ece275c524361.zip external_qemu-fa0c8e25403290b545bb98735b1ece275c524361.tar.gz external_qemu-fa0c8e25403290b545bb98735b1ece275c524361.tar.bz2 |
New AVD property to control presence of hw main keys.
This allows injecting a new runtime property into the system
running on the emulator to control whether to display the new
software back/home keys.
Change-Id: I2bf7cc5c291752090187463332219638e883d052
Diffstat (limited to 'vl-android.c')
-rw-r--r-- | vl-android.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vl-android.c b/vl-android.c index a0041dc..322ddca 100644 --- a/vl-android.c +++ b/vl-android.c @@ -3689,6 +3689,9 @@ int main(int argc, char **argv, char **envp) hwLcd_setBootProperty(density); } + /* Initialize presence of hardware nav button */ + boot_property_add("qemu.hw.mainkeys", android_hw->hw_mainKeys ? "1" : "0"); + /* Initialize TCP dump */ if (android_op_tcpdump) { if (qemu_tcpdump_start(android_op_tcpdump) < 0) { |