Android 13 原生系统上,设置-系统-手势-系统导航 菜单,可以修改系统导航方式。
手势导航:
三按钮导航:
adb 获取当前导航方式,手势导航 是 2 ,三按钮导航是 0 。
settings get secure navigation_mode
修改默认值,frameworks/base/core/res/res/values/config.xml
,
<!-- Controls the navigation bar interaction mode:0: 3 button mode (back, home, overview buttons)1: 2 button mode (back, home buttons + swipe up for overview)2: gestures only for back, home and overview --><integer name="config_navBarInteractionMode">0</integer>