I have a device that is connected to my PC. Is it possible to know this device is real phone or emulator using adb? If it is possible then how can i do it? Google and documentation didn't solve my problem.
You can use adb get-serialno
to obtain the serial number of the device. On the emulator the serial number starts with emulator-
.