'Assign a name to a physical device in Android Studio?

I have two Pixel 4s connected for testing/debugging. They both show up as Google Pixel 4 [uniqueID]. Is there a way to change the displayed name, to make it easier to tell them apart without me having to remember each uniqueID?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source