Join Slack
Powered by
I wonder how AndroidStudio get the manufacturer na...
# random
t
theapache64
06/19/2023, 11:48 AM
I wonder how AndroidStudio get the manufacturer name ? 🤔
s
Stefan Oltmann
06/19/2023, 11:55 AM
Pretty sure it's communicated via USB. Devices can send a manufacturer and model name.
Stefan Oltmann
06/19/2023, 11:55 AM
Check out the tool
lsusb
e
ephemient
06/19/2023, 12:06 PM
it's all from adb (it works even for non-usb connected devices)
✅ 2
ephemient
06/19/2023, 12:19 PM
it's all open source and not difficult to find
https://android.googlesource.com/platform/tools/base/+/mirror-goog-studio-main/ddmlib/src/main/java/com/android/ddmlib/IDevice.java
https://android.googlesource.com/platform/tools/adt/idea/+/refs/heads/mirror-goog-studio-main/android-adb/src/com/android/tools/idea/ddms/DeviceNamePropertiesFetcher.kt
t
theapache64
06/19/2023, 8:15 PM
aaah. Thanks 🙂 👍
3
Views
Open in Slack
Previous
Next