contador Saltar al contenido

How to set up custom lock shortcuts in Android Oreo

With the final stable version of Android Oreo many new features and optimizations have arrived, all made to improve the overall experience of Android users. That said, if you had previously installed the Developer Beta on your device, you would have noticed that many of the previously introduced features have been removed from the final build. One of these features was the ability to change the lock screen shortcuts. Well, if you were a fan of this feature, and would like to have it on your Android Oreo 8.0 device, keep reading, as we show you how to set up custom lock shortcuts in Android Oreo without root access:

Set up custom lock shortcuts in Android Oreo

Note: the following method requires the installation of Minimal ADB and Fastboot drivers on the PC. If not, you can download and install them from here. Furthermore, I tried the method on my Nexus 5X and Google Pixel with Android 8.0 Oreo and it worked perfectly.

  • To get started, go up Settings -> System -> Developer Options and turn on the switch next to "USB debugging" .

  • Before proceeding to customize the lock screen shortcuts, you must first find the package name of the app you want to use. Download and install Package Names Viewer 2.0 (free) from here on your device.

  • Now open View Names of the packages . The app will show you the list of the various applications installed on your device, along with their package and activity names. Write down the name of the package and the name of the app activity you want to set as a shortcut on the lock screen. For this demonstration, I will use the Google Maps app, which has:
 Nome pacchetto - com.google.android.apps.maps Nome attivit - com.google.android.maps.MapsActivity 

  • Now connect your device to your PC and start the ADB shell . Once there, type the following commands:

To change the left shortcut:

adb shell settings put secure sysui_keyguard_left "PACKAGE NAME/ACTIVITY NAME" 

To change the right shortcut:

 settings put secure sysui_keyguard_right "PACKAGE NAME/ACTIVITY NAME" 

For example, replace the link on the right side with the Maps app. So my command will look like –

 adb shell settings put secure sysui_keyguard_right "com.google.android.apps.maps/com.google.android.maps.MapsActivity" 

Now as you can see, the link on the right side of my lockscreen was changed in Google Maps.

  • Finally, if you wish reset the lock screen shortcuts in Android Oreo to return to stock settings, simply run the following commands:

To reset the left shortcut:

 le impostazioni della shell adb cancellano sysui_keyguard_left sicuro 

To reset the right shortcut:

 le impostazioni della shell adb cancellano sicuro sysui_keyguard_right 

And that's all. The lock screen should now be reset to show the shortcuts, where the left shortcut for the voice assistant and the right shortcut for the camera.

SEE ALSO: 12 awesome Oreo Android 8.0 tricks you should know

Easily change lock screen shortcuts on Android Oreo

Changing the lock screen shortcuts can be a very useful feature as it allows faster access to the most used apps. While the feature was present in the second beta of the developer for Android Oreo, it had apparently been removed from the final build. Fortunately, the above method works well for Android Oreo devices and doesn't even require root access. Well, I've set up shortcuts for Maps and WhatsApp, but what about you? What are you going to set your lock screen shortcuts to? Let us know in the comments section below.

This tutorial was first published on XDA Developers. We tried it and it works without problems.