Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Softkeys (Navigation) #814

Open
gprocunier opened this issue Jan 28, 2025 · 1 comment
Open

Disable Softkeys (Navigation) #814

gprocunier opened this issue Jan 28, 2025 · 1 comment

Comments

@gprocunier
Copy link

Describe the bug
I appear to be unable to pass qemu.hw.mainkeys=1 to the properties on the instance to disable softkeys for navigation. This causes tools like Appium to read the display incorrectly as they omit the area occupied by the softkeys.

Android 11+

    -v ~/redroid/test:/data \
    -p 5755:5555 \
    --name test \
    localhost/redroid/redroid:11.0.0_gapps_houdini \
    androidboot.qemu.hw.mainkeys=1 \
    androidboot.redroid_fps=30 \
    androidboot.redroid_dpi=240 \
    androidboot.redroid_height=960 \
    androidboot.redroid_width=540 \
    androidboot.redroid_gpu_mode=auto \
    ro.enable.native.bridge.exec=1 \
    ro.enable.native.bridge.exec64=1

I have tried adding qemu.hw.mainkeys=1 as well and neither seem to work.

@zhouziyang
Copy link
Member

Check device/redroid/overlay/frameworks/base/core/res/res/values/config.xml

<resources>

    <!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
         autodetected from the Configuration. -->
    <bool name="config_showNavigationBar">true</bool>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants