2/11/2024 0 Comments Nova icon resizeFor now, my method (which is exactly how that app works, and when the app does get updated, it will face the same limitation) is how you can get whatever custom icons you want on your nav bar. I realize that right now, this method might not seem ideal or easy to implement, but at the time of this writing the Custom Navigation Bar app has not been updated to support adding your own icons. 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. We'll take advantage of this fact in the next section, where we show you how to change the icons on the nav bar buttons. Right-justified: adb shell settings put secure sysui_nav_bar "space,space,recent home back"īut we can also change the nav bar buttons to be something entirely different than the standard back, home, or recent keys, such as sending one of the many KeyEvents. Left-justified: adb shell settings put secure sysui_nav_bar "recent home back,space,space" We can, for instance, make our flipped nav bar keys left-justified or right-justified by changing where the two spaces are placed: We can move the keys around however we want by modifying the string value of the preference. Hence, the command we would send to swap the recent and back keys would look like this adb shell settings put secure sysui_nav_bar "space,recent home back,space"Īs you might guess, this is fairly flexible. Now, in order to actually modify this string, we need to use the ADB shell command with this syntax adb shell settings put secure sysui_nav_bar "STRING" Open up a command prompt/terminal on your machine, and then enter the following command: adb shell pm grant _SECURE_SETTINGS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |