简体   繁体   English

如何通过USB获取Android手机的IMEI和颜色

[英]How to get an Android phones's IMEI and color via USB

I am planning to write an application for my job. 我正计划为我的工作写一份申请。 I just need to get IMEI numbers of Android devices when they are connected to my PC. 将Android设备连接到我的PC时,我只需要获取IMEI编号即可。 It would be great if it shows the color of the device together. 如果能一起显示设备的颜色,那将很好。 Because I want to recongnize each phones when pluging many at once. 因为我想在一次插入许多电话时重新识别每部电话。

With these IMEI numbers, I am going to print out labels for inventory managing. 使用这些IMEI编号,我将打印出标签以进行库存管理。 Now there are many phones comming to my office everyday. 现在每天有很多电话来我的办公室。 I open back covers and write down manually. 我打开后盖并手动写下。 Later on, I put the data into excel. 稍后,我将数据放入excel。 I think this is a wasting of my much time. 我认为这浪费了我很多时间。

I do not know where I need to start to write this application. 我不知道从哪里开始编写此应用程序。 I do not know if this is possible or not. 我不知道这是否可行。 Any comments will be welcome. 任何意见将受到欢迎。 Anyone have tried this kind of job? 有人尝试过这种工作吗? Thank you. 谢谢。

Setup an ADB on your PC Turn on USB Debugging on your Android Devices Connect it to PC via usb cable Use Terminal to adb folder and type 在PC上设置ADB打开Android设备上的USB调试通过USB电缆将其连接到PC使用终端到adb文件夹并键入

adb shell dumpsys iphonesubinfo

It can show you IMEI But about the color, i think it's not possible right now 它可以向您显示IMEI,但是关于颜色,我认为现在不可能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM