Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I`m doing my final course assignment as a High School Student and I need a way to get the IMEI smartphone connected via USB on my desktop. The code I`m doing is in c# desktop, when you check the device proprieties on "my computer" you can see the Serial Number, I just need the number to serve as a "password" for the program. Thanks for the attention and a big SORRY for my bad english.

What I have tried:

I tried to see other posts that relates something with IMEI or Serial Number, but none could help me :/
Posted
Updated 25-Aug-16 15:06pm

I'm not sure if you've seen this, but, you can communicate with your phone 'modem style' by using AT commands, and is just happens that one of those commands returns the IMEI .. have a look at this Using SerialPort and AT Commands for Querying Cell Phones[^]
 
Share this answer
 
There are a few different ways to get the IMEI of a smartphone connected via USB on a desktop. One way is to use the ADB command line tool. To do this, you will need to install the Android Debug Bridge (ADB) on your computer. Once you have ADB installed, you can connect your smartphone to your computer and use the following command to get the IMEI:

adb shell getprop ro.serialno

Another way to get the IMEI of a smartphone connected via USB is to use a third-party application. There are a number of different applications available that can retrieve the IMEI of a smartphone. One popular application is IMEI Finder. To use IMEI Finder, simply install the application on your computer and connect your smartphone to your computer. Once your smartphone is connected, IMEI Finder will automatically retrieve the IMEI number.

Finally, you can also get the IMEI of a smartphone connected via USB by using a mobile device management (MDM) solution. MDM solutions allow you to manage and control mobile devices from a central location. Most MDM solutions include a feature that allows you to view the IMEI number of a connected device.

Btw, I'm an 8th grader lol
 
Share this answer
 
v4
Comments
Andre Oosthuizen 23-Dec-23 5:51am    
@Member 16168754, you are about 7 years to late for a solution as the question were asked in 2016 :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900