Create Customized Lock Screen Shortcuts on Android Oreo
Edited by Jay, Maria Quinney, Visihow Admin, Argyris
Android Oreo opens up an excellent variety of customizable options and tweaks that were not accessible in previous versions. The focus of this VisiHow tutorial is changing the lock screen shortcuts from the default, which on Oreo is the Google assistant and the camera app (the two little icons in the bottom left and right corner on the lock screen). Being able to swap out the defaults for apps or functions that you'd rather have quick access to is quite convenient. Also, there is no need to worry about having root access, as we'll be using ADB (Android debug bridge) to customize our lock screen shortcuts.
If you're new to using ADB, please check out our article on Installing adb on Windows before proceeding.
This tutorial is broken into two sections:
- Finding the application package and the application activity name.
- Entering the commands to edit the left and right lock screen shortcuts.
Both of the above tasks can be completed using ADB which is a bonus for those of you who don't have access to root.
At the time of writing this tutorial, Android Oreo (8.1.0) is only available on Nexus and Pixel devices
For this article, we used a Google Pixel and a laptop running Windows 7.
Locate Application Package and Activity Name with ADB
Before getting into the command line tool, we need to enable USB debugging. Once you have access to developer options and USB debugging turned on, we need to choose which app shortcuts will replace the defaults, as well as get their application package and activity names. To do this, we'll use ADB (command line tool), our Pixel/Nexus device and the charging/data cable.
- 10dumpsys window windows | grep -E 'mCurrentFocus'With the app open and visible, type or copy and paste the following line in the command window:
Edit Lock Screen Shortcuts Via ADB
Now that we have successfully located and written down down the App Package and App Activity names for both of our new lock screen shortcuts, it's time to edit the following two lines of code in our command prompt window:
settings put secure sysui_keyguard_left "COMPONENT/NAME"
settings put secure sysui_keyguard_right "COMPONENT/NAME"
We will be replacing "COMPONENT" with the Application Package name and "NAME" with the Application Activity name. Do this in your text file before continuing with the following steps.
- 8You'll see that the bottom left and right shortcut icons no represent the apps you chose earlier on in this tutorial.No wake your device so you can see the lock screen.
Questions and Answers
I followed the process step by step but the Android 8.1.0 default shortcut apps remain
The shortcut apps which come by default i.e. camera and microphone are not being changed by following this method. My Android version is 8.1.0. Everything seemed to be going well - I did not have any issues with following the steps all the way through - but the process did not achieve the results that were described. I have tried: I have tried the entire process as described in the https://visihow.com/Create_Customized_Lock_Screen_Shortcuts_on_Android_Oreo article. When the phone is woken, as it states in the article, nothing has changed. I even tried restarting it in case this was needed. All the steps have been followed to the best of my knowledge. I think it was caused by: All the correct steps have been followed to the best of my knowledge.
VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.
Recent edits by: Visihow Admin, Maria Quinney, Jay