![]() However, by replacing the stock keys with KeyEvents, we lose the long-press home ability because currently there is no way to recognize long-press events of simulated key inputs. ![]() In this case, we are pointing towards the back.png, home.png, and recents.png that we saved in /NavIcons. These key codes perform the exact same function, but because we are using KeyEvents, we can specify what icon we want to use for them. In particular, back is replaced with KEYCODE_BACK, home is replaced with KEYCODE_HOME, and recent is replaced with KEYCODE_APP_SWITCH. What this command does is replace back, home, and recent keys with KeyEvents that do the same function. Once you have the icons in the appropriate place, enter the following ADB shell command (warning, it's a long one): adb shell settings put secure sysui_nav_bar "space,key(4:file:///storage/emulated/0/NavIcons/back.png) key(3:file:///storage/emulated/0/NavIcons/home.png) key(187:file:///storage/emulated/0/NavIcons/recents.png),space" Extract the contents of either zip file into a folder called "NavIcons" on the root directory of your storage. Download this archive if you have a 1920x1080p display and this one if you have a 2560x1440p display. You'll need the icons in the PNG format, and as for the size, you can determine the size of the icons you need by looking up your device's display density metrics on Material.io and correlating that with an icon size reference chart.Ĭredits for the extracting these Google Pixel nav bar icons goes to XDA Senior Member dariomrk. I'll be providing download links for you to grab the Google Pixel nav bar icons, but it's up to you to find your own icons if you want anything else. ![]() The first thing you will need to do is download the icons that you want to replace your default nav bar keys' icons with. If you're okay with that, then here's how to change the icons on the nav bar. However, there is one issue currently that we want to be upfront about: if you choose to follow this method to modify your home button, then the long-press home button action will no longer work meaning you can't quickly access Google Assistant from the home button anymore. The method that we are using is based on Google's implementation of the nav bar tuner, so it has none of these issues. Open up a command prompt/terminal on your machine, and then enter the following command: adb shell pm grant _SECURE_SETTINGS If your device is not rooted, then you will need to grant the permission through ADB.Then, enter this command: pm grant _SECURE_SETTINGS If you have a rooted device, open up Terminal Emulator on your phone and grant it root access by typing su.There are two ways you can do this, as stated in the application. Custom Navigation Bar will ask you to grant it a certain permission called WRITE_SECURE_SETTINGS in order to proceed with using the app. Next, open up the app and proceed through the introductory screens. Install the app from the Google Play Store (and also sign up for beta testing so we can use its experimental feature to re-arrange the nav bar later on). We can verify by running through the brief tutorial that accompanies this app. If your device is one of the ones listed as compatible in the Custom Navigation Bar thread, then chances are it will be. The first thing we need to do is to make sure that it's even possible to modify the nav bar on your device.
0 Comments
Leave a Reply. |