Hi, gyus welcome to gammerson.com and today we have some thing new and it will be cool for you guys that our XDA’s resident master of everything Tasker has found this method. Google has released it android Oreo Beta version for Google’s devices only.
In this guide we will show you how you can add a contacts shortcut and an end call shortcut to the nav bar while you are in the middle of a phone call. Without any further due let’s get started.
Gammerson.com is not responsible for any damage cause to your mobile during the process. DO IT AT YOUR OWN RISK. Add a Contacts Shortcut and an End Call Button to the Nav Bar during Phone Calls in Android O.
Make sure your phone is charged up to 80%
Make the Backup of important apps, messages, and contacts.
Do not try this guide on any other android device.
Steps to Add a Contacts Shortcut and an End Call Button to the Nav Bar during Phone Calls in Android O.
This necessary and you have to install both apps. Link is given
Setting up ADB
The first thing you’ll need to do is download the ADB binary for your particular OS. You can do so here. Once you’ve downloaded them, you need to then make sure you have the proper driver if you’re on Windows.
Once you’ve extracted the binary to a separate folder and have installed the driver, we need to next enable USB Debugging on the smartphone. In order to do so, open up Settings and go to About Phone. Tap on Build Number 7 times until you get a dialog telling you that you’ve unlocked Developer Options. You can access Developer Options in Settings now. Apparently in Android O, you have to enter your pin/password before you can open Developer Options. Do so and look for USB Debugging, then enable it.
Now plug in your phone and open up a command prompt in the same directory where you extracted the ADB binary. (Windows users, hold shift+right-click in that folder and select “open command prompt here.”) Type adb devices into the command prompt. You’ll see a message that the ADB server is being started, then on your phone you’ll see a prompt asking you to grant your computer ADB access. Accept it. Now when you enter adb devicesinto the command prompt, you should see your device’s serial number, if so then you were successful.
Granting WRITE_SECURE_SETTINGS to SecureTask
With an ADB command prompt opened up, enter the following command to grant SecureTask the requisite permission.
adb shell pm grant com.balda.securetask android.permission.WRITE_SECURE_SETTINGS
SecureTask will now have the ability to modify system settings without root access! Now we’re ready to move on to Tasker.
Setting up the Tasker Profiles
We will need to set up two different Tasker Profiles. One will trigger when you enter a phone call, the other will trigger when you hang up. The former will show the two nav bar keys, the latter will disable them. Pretty straightforward.
For the first Profile, open up Tasker and press the + button in the bottom right to create it. Choose the Event Context and go to Phone –> Phone Offhook. Press back to return to Tasker’s main screen. Name it “Enable Phone Nav Bar Keys.”
Tasker will ask you to either attach an existing Task or create a new one. Create a new one, and once you’re in the Task editing screen, add the following Actions:
- Plugin –> SecureTask –> Secure Settings. Action: Write. Setting: secure sysui_nav_bar_left. Value: key(207:file:///storage/emulated/0/NavIcons/contacts.png)
- Plugin –> SecureTask –> Secure Settings. Action: Write. Setting: secure sysui_nav_bar_right. Value: key(6:file:///storage/emulated/0/NavIcons/endcall.png)
Exit back to Tasker’s main menu. Create a new Profile and again select the Event context, but this time choose Phone –> Phone Idle. Name it “Disable Phone Nav Bar Keys.”
Again create a new Task, and when you’re in the Task editing screen, add the following two Actions to it:
- Plugin –> SecureTask –> Secure Settings. Action: Write. Setting: secure sysui_nav_bar_left. Value: null
- Plugin –> SecureTask –> Secure Settings. Action: Write. Setting: secure sysui_nav_bar_right. Value: null
Volia!!! You have done this.
When you accept an incoming call, or connect an outgoing call, Tasker will show a contacts shortcut key as well as an end call key. These keys can be accessed while you’re using any app, so long as the phone call is still ongoing. Once the phone call ends, Tasker will disable these nav bar keys.
If you find any problem let me know about this
Hope you like this article.