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

TestRule to set Navigation via "Buttons" or "Gesture" #135

Open
sergio-sastre opened this issue Nov 2, 2024 · 0 comments
Open

TestRule to set Navigation via "Buttons" or "Gesture" #135

sergio-sastre opened this issue Nov 2, 2024 · 0 comments

Comments

@sergio-sastre
Copy link
Owner

Describe the feature
Beginning with Android 10 (API level 29), the Android system supports fully gesture-based navigation, as stated here:
https://developer.android.com/develop/ui/views/touch-and-input/gestures/gesturenav

These can be set via adb, and therefore you can create a TestRule for them
ndtp/android-testify#237 (comment)

Enable 3-button navigation and disable gesture navigation:

adb shell cmd overlay enable com.android.internal.systemui.navbar.threebutton
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural

Enable gesture navigation and disable 3-button navigation:

adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
adb shell cmd overlay disable com.android.internal.systemui.navbar.threebutton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant