Adb get imei android 13. release, for manufacturer details - adb shell getprop ro.
Adb get imei android 13 adb shell service call iphonesubinfo 1 But device has two imei numbers , How to get second imei number through adb shell . [:space:]'" # get device phone number adb shell "service call iphonesubinfo 18 | cut -c 52-66 | tr -d '. release, for manufacturer details - adb shell getprop ro. imei ril. I tried using command but didn't get success. imei ro. lang. Until you add a second line to the phone, it will be blank adb shell getprop ro. instead of Nexus 7 you might get Nexus 7\r). Viewed 443 times /EFS partition contains a lot of information about your phone, f. Method: Call app -> * #06# -> Get value. android get imei in cc/c++ for ndk/JNI. 833; modified Apr 4, 2023 at 12:34. locale. In this article, we will take a look at How to get D. , IMEI), not the phone number. Just open your phone’s dialer, type *#06# and you’ll be able to see your device’s IMEI number on the screen. Make Why is ADB shell not working since Android 5? But since last Android update (5. Attachments. , GSM) and Device ID (e. View a Printable Version Search. TELEPHONY_SERVICE); imei = telephonyManager1 I am working on Adb with my Samsumng Galaxy Device. Modified 3 years, 8 months ago. For Android 9 and below, telephonyManager. 14 adb shell. WHAT ON EARTH do you mean by 1. Use adb shell uiautomator dump command:. myapp. 6. 1. below is the code to get IMEI number. Get IMEI of both sim slots in dual sim android mobile devices. Hot Network Questions Object visible in render when it shouldn't be Android 11; Android 12; Android 13 Solution. I've a Android Pixel 7 Pro and I can view the IMEI1, IMEI2, EID via the phone dialer *#06# From other stackoverflow post that I can see there's a adb shell script to capture Simple non-GUI app to help getting the device IMEI over ADB. g. this answer is working, but can not get success in Android 10 How to get IMEI using adb command on Android 13? There is a question about Getting IMEI number using ADB commands Android 12. It was, so I had to look elsewhere for why my I know that you can find IMEI and MAC address and others by going to Settings -> About phone -> Status. 10) at the same time, using command: adb devices I got this: List of devices attached P753A12D device Use alternative identifiers: If you are unable to retrieve the serial number, consider using alternative identifiers provided by Android, such as the Android ID or IMEI number. Moderation Options: Pages (2): Previous 1 2. oem. Because I want to recongnize each phones when pluging many at once. If you already have an own app that you can install on the device that you want to know the IMEI from, add this BroadcastReceiver to your app:. READ_PRIVILEGED_PHONE_STATE is required. adb shell dumpsys iphonesybinfo (get the IMEI) adb shell netstat (list TCP connectivity) adb shell pwd (print current working directory) adb shell dumpsys battery (battery status) running on Android 13 Go Edition and I want to make Mxplayer Pro as my default media player (already installed). Does anybody know how to get IMEI number using native code? I tried this command. However both methods have been removed for normal apps usage in Android 10. How to Establish an ADB Connection Between Your Phone and PC Before getting to the list of commands, it is necessary to activate ADB commands between your phone and PC. You can edit to get IMEI1, IMEI2, SN. 0-nougat, estoy asumiendo que tienes o estás apuntando a Android Nougat. How to Fetch Device ID in Android Programmatically? The android Device ID is a I'm using command: adb shell "service call iphonesubinfo 1 s16 com. How to get 3rd and 4th IMEI number for an android using ADB command? Related. In this article, we will take a look at How to get Device IMEI and ESN I'm trying to get the IMEI with this command "adb shell dumpsys iphonesubinfo" but is not working. Finding the IMEI number of a lost or stolen device. MacroDroidDev Administrator. 4k 13 13 gold badges 106 106 silver badges 144 144 bronze badges. It would be great if it shows the color of the device together. TelephonyManager telephonyManager1 = (TelephonyManager) getSystemService(Context I am using service call iphonesubinfo 3 i32 1 to get the 2nd IMEI number. [:space:]'" It was working fine on Android 13, but now it gives partly broken IMEI, where 3 numbers came as ' symbol It's not just these are additional symbols, what i mean is that exactly 3 numbers comes as symbol As far as i know, every How I can get the list of all installed on my Android 8 packages using ADB Shell? I preference to query Sqlite base, but accept any command-line solution. The IMEI number is used for identifying valid devices in each network. To fetch the serial number of the connected device, use the adb get-serialno command. Manifest. txt via uiautomator and parse esim IMEI: adb shell input keyevent KEYCODE There are 2 ways that I know of to perform a reverse Serial Number to AVD name lookup. 2 KB · Views . I also tried with Service Call Command:- adb shell service call iphonesubinfo but it gives me Strange Result Like this:- I'm using command: adb shell "service call iphonesubinfo 1 s16 com. How to get IMEI number in blackberry 10 native. Below ADB command uses UIAutomator of Android. If Any One has any idea about it how to over come this Problem Please Help me out. language]: [en] boot complete ( device ready I need to get IMEI number using c code into android. 15 adb shell screencap. Google provides a sample DPC. Note that ADB shell ends lines with \r\n, which depending on your platform might or might not make it more difficult to access the exact value (e. I used some special hardware to extract the imsi from the sim and it extracted the full imsi, which means that the sim was fine. adb root adb shell "service call iphonesubinfo 1 i64 0 | cut -c 52-66 | tr -d '. TelephonyManager telephonyManager1 = (TelephonyManager) getSystemService(Context. original post below This is the original artical that told us that theyll no longer allow uncertifed roms unless you register. 1 un-rooted how can I pull its imei using adb or fastboot getvar ? tried: getprop gsm. permission. This is kind of weak, because all you're doing is finding an instance of the emulator launched given a particular AVD name. It seems adb doesn't have the ability to set In this video it shows how to get the unique IMEI (International Mobile Equipment Identity) number of your phone (Sim slot) in your Android App programmatica Android 10 Get IMEI, IMSI, ICCID, etc. Even I tried using the "iphonesubinfo 3 i32 1" and "iphonesubinfo 3 i32 2", but it returns empty. iphonesubinfo I want to run *#06# and display the activity/fragment which shows the IMEI numbers using adb. (Not Android Application code) either using adb command or some shell command in Android. Ezequiel Salas Ezequiel Salas. Read IMSI information via ADB on Android 12. To do so, first connect a USB cable to your phone and PC. 15 Well, It turned out that some Android handsets do not return the full Imsi (bug). Nexus 5 IMEI number gone after updating to My final solution for that was to create an Android application that subtracts the IMEI because some version also had the same problem. Apr 13, 2008 3,252 2,282 New Jersey Google Pixel 7 Pro Google Pixel 9 Pro / 9 Pro XL. Commented Jul 3, 2012 at 4:12. And it works! How To Get IMEI Number in Android 12 java. So try: adb shell "service call iphonesubinfo 4 | cut -c 52-66 | Have you lost your smartphone box and you don't want to remove the battery because is stuck inside, but you want to get the unlock code from EMUI website For generating that unique identity we can use the android device id. exe does デバイスのIMEIまたはMEID番号を返すadbまたはAndroid Shellコマンドを実行できますか?できればそれだけが返されます。 web-dev-qa-db-ja. Only system apps can require this permission. product. language]: [en] [ro. I want to Get IMEI number of Device using Adb Command but Unable to do that. IMEI. This morning it was updated to tell you it actually wants your IMEI Note that Google updated the registration page with instructions on using adb shell and sqlite3 195 2 2 gold badges 4 4 silver badges 13 13 bronze badges. It seems that google provides all virtual devices with the same IMEI (358240051111110), so apps that identify users by IMEI have trouble running on virtual devices. Link in your question is referring to IMEI number which can be obtained by adb shell service call iphonesubinfo 1 (see this and this for more) . service call iphonesubinfo 3 also tried this answer. Upon restart, I was greeted with a message "Power off your device, insert the service provider UICC came with the device and restart the device". gsm. Kindly help. [:space:]'" It was working fine on Android 13, but now it gives partly broken IMEI, where 3 numbers came as ' symbol It's not just these are additional symbols, what i mean is that exactly 3 numbers comes as symbol As far as i know, every But in S20 Ultra(Android 11), I cannot get IMEI 2 using the above cmd. 59 5 5 bronze badges. 6) connected to a computer (Ubuntu 11. via shell permission, Programmer Sought, the best programmer technical posts sharing site. Only system apps with READ_PRIVILEGED_PHONE_STATE will be able to get this information. The Code that I was using to fetch IMSI number is giving an exception. If your device is lost or stolen, you can use Google's Find My Device service to find the Type the Command to Get IMEI: Enter adb shell dumpsys iphonesubinfo or adb shell service call iphonesubinfo in the command line. Every device has a unique IMEI (International Mobile Equipment Identity) number. public class GetImeiReceiver extends Now with your IMEI lets get the last two codes: Product Model and Product ID Go to imei24. This command should return relevant information, including your IMEI number. e: wifi/bt mac address and your IMEI (nv_data. If the calling package I want to change the IMEI of an android virtual device that is running on android studio's emulator. I recently updated my Pixel 5 device to Android 12 Beta and found that it is no longer possible to fetch the IMSI information via ADB using the command service call iphonesubinfo 8 i32 1. Display IMEI: The retrieved IMEI or a fallback identifier is displayed in imeiTextView. Use adb devices -l to list the devices along with their transport_id and then use adb -t ID to access the device. The output of adb shell service call iphonesubinfo 1 is as below (which is inbetween quotes) Is there a way to get the phone number of a phone over adb? I looked at dumpsys as a likely answer, but none of the system services seem to keep track of the phone's own number. 2020 at 13:34. This is an example: adb devices (you will get attached device IDs) ANDROID_SERIAL=DEVICE_ID adb shell getprop ro. Get IMEI: For Android 10+, ANDROID_ID is used as a fallback since IMEI is restricted. Details of the fragment and activity as show below: A workaround would be to target your app to Android 9 (API level 28) or lower. This cheat sheet contains the most common ADB commands with examples. 314; asked Feb 3, 2023 at 7:25. I changed the code from iphonesubinfo 1 to iphonesubinfo 4, which is the correct service code to get the full IMEI. I am getting IMEI null in Android Q? 1. java. Community Bot. # send the broadcast to receive the result . imei dumpsys iphonesubinfo gsm. Therefore, I make a request with the common way adb shell service call iphonesubinfo 1 else I run the sentences that install the android application The plugin, subtract the IMEI then uninstall it 上記を見ると、service call iphonesubinfo 4 の意味が見えてきます。 call はサービスの呼び出しを行い、iphonesubinfo はサービス名、 4 はコードというわけですね。. Tried the following command, but it doesn't work, only MEID is returned. Commented Jul 3, 2012 at 4:23. Both serial and IMEI Wondering is there an android adb shell command that I could get the IMEI2 & EID from Android phone? schmeggy929 Recognized Themer. 16 adb shell screenrecord. I added some examples below: language - adb shell getprop | grep language [persist. I have ensure to enable the READ_PHONE_STATE permission, but in Android 10/Q it will not able to get imsi number. Going by the context, you should use the first number (serial number) and not IMEI number. In order to get android device name you have to add only a single line of code: Here is how to get the name that the user set in the "About Phone" "Device name" screen using adb: $ adb shell 'settings get global 51. 0 – Lollilop), this command doesn’t return anything, I performed this test on both Nexus 4 and Nexus 5. sys. adb shell service call iphonesubinfo 1. Also, I know there is a simple code in JAVA to run in Exactly what I wanted. GET_IMEI そして出力は次のようになります: i will always get empty value for the imsiNo variable, but in Android SDK API level 28 or lower, it will always return the imsi value. , get MEID from TelephonyManager). In this article, we will take a look at How to get Device IMEI and ESN Programmatically in Android. I need information of the following sort. b. As pointed out in this SO answer you can reverse lookup the AVD name for each serial number using Telnet. imei. However, it only reports Phone Type (e. How to get IMEI using adb command on Android 13? There is a question about Getting IMEI number using ADB commands Android 12. It can be changed using: # assuming we want to change user 0's ANDROID_ID $ adb shell settings get --user 0 secure android_id 77aac9d1f119cb8f $ adb I have two smart phones (ZTEV788d, system Android 2. READ_PHONE_state only. [:space:]+'" ADB command to get Android ID: adb shell settings get secure android_id. 79. Staff member. Followed the steps and changed CSC to XAS just like OP. [:space:]'" I tested the method, android; shell; adb; imei; android-13; James Feng. Helps if you're interested in one of those, otherwise, keep using I think you can use the adb devices -l argument there to get the info and the you can just filter the output to obtain the model ej: adb devices -l List of devices attached 16fb60660205 device usb:1245184X product:daisy model:Mi_A2_Lite device:daisy_sprout transport_id:7 9A101FFBA003K4 device usb:1179648X product:coral model:Pixel_4_XL device Commented Jun 13, 2012 at 17:21. bin). Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand; OverflowAI GenAI features for Teams; OverflowAPI Train & fine-tune LLMs; Labs The future of collective knowledge sharing; About the company 在某些情况下,通过代码获取设备序列号可能受到限制,特别是在Android 10及以上版本中,由于权限和隐私保护的加强,获取设备序列号变得更加严格。作为设备的唯一标识,提供了设备的唯一信息。从Android 10(API级别29)开始,访问设备序列号需要相应的权限,并且可能需要设备所有者的授权。 The details in adb devices -l consist of the following three properties: ro. SecurityException: getSerial: The user 10034 does not meet the requirements to access device identifiers. – 有一个关于Getting IMEI number using ADB commands Android 12的问题。 adb root adb shell "service call iphonesubinfo 1 i64 0 | cut -c 52-66 | tr -d '. The Telnet option - The Ugly Way. Does anyone know how I can get the 2nd IMEI number? Get IMEI number with ADB command. After pasting the commands for both slots, when I restarted the phone, It has no effect Get IMEI (International Mobile Device Identity) for Android devices less than android 10 with runtime permission for android greater than or equal to 10 returns a UUID and get unique identification on ios An alphanumeric string that uniquely identifies a device for I was able to get one imei number through adb shell with command . adb shell service call iphonesubinfo 2 Dear all, Recently my telephone was stolen and the police need my IMEI number. but i need to set Android_ID,IMEI,IMSI these three in same application that's why i need to set IMEI(except zero) – Adb. I never bothered to write it down and don't have the original box, so I wondered whether the IMEI number is stored in ADB or in some other software, since Can confirm it works on my imported SM-G996U1 XAA. adb shell pm list packages). Is there any other way to get IMEI number in Android 10? EDIT: I need the IMEI number specifically from non device or profile owner app; Not SSAID, Advertising ID, nor any other number! I'm unable to get IMSI in Android 10. Aug 24, 2023 #2 The second IMEI is allocated for the E-Sim card. build. 0 and above). You will get the Product Model and Product ID, so you can copy & paste them into EMUI Unlock web site and you will get your Bootloader Unlock Code You should use adb shell getprop command and grep specific info about your current device, For additional information you can read documentation: Android Debug Bridge documentation. thanks for reply. For Android up to 11 it is started by launching ACTION_PROVISION_MANAGED_DEVICE, for Android 12 you have to listen to ACTION_GET_PROVISIONING_MODE. One of the scripts is sendintent and, on the other The IMEI can be obtained by the following command in ADB Shell [Tasker Plugin]. The common commands include: to get the Android version of the device - adb shell getprop ro. adb shell service call iphonesubinfo 1 and . Android上で動作するサービスの取得方法も先程のヘルプを見ればなんとなくわかります Let's look at some of the most useful ADB commands you should know as an Android user. you can't get device id in android but you can get IMEI number for push notification. device. This setup will display the IMEI or device ID in the TextView when the button is clicked. model and ro. # output will be something I want to run *#06# and display the activity/fragment which shows the IMEI numbers using adb. Is there anyway to get IMSI number in Android 10/Q or higher version? I am able to get imei or device id in android phones but Is is possible for android tablet (Xoom) to get unique number? I am using this code to get imei number but i am not able to get in tablet, enter code here. You can get the example of the device owner app here (this is my open source MDM project). release – This will install EdXposed framework + EdXposed Android Manager App; Install Change-IMEI-Android. exe. imei but I get no output using adb shell services call iphonesubinfo 1 This unique identity is used to identify the user of the application. [:space:]'" 我测试了这个方法,它在Android 12上运行良好。 但从android 13开始,它只会返回一条错误消息:“包不属于” 有人能帮忙吗?谢谢! This is a complete directory of ADB commands list for Android. 18-06-2020, 08:03 PM #13 (10-06-2021, 09:43 AM) Abdullah Zafar Not working for me. You need to provide ANDROID_SERIAL environment variable which identifies your device ID. Details of the fragment and activity as show below: 4、通过 TelephonyManager 中getImei ()方法获取。 1、由于我们工厂smt需要显示imei号,因此需要。 5、结果 获取imei号 如下图所示。 3、通过反射获取 imei号。 This is a complete list of ADB commands cheat sheet that you can refer to when working with the Android Debug Bridge and Android devices. 1 Working on a G4 H815 5. 4. version. 7. I am planning to write an application for my job. A search of StackOverflow finds: Is there an android shell or adb command that I could use to get a device's IMEI/MEID? Okay great, dumpsys iphonesubinfo can get the info I need. In that example, the app retrieves IMEI on Android 10 using this way and declaring android. Note: Not work when your phone is locked. com adb Shell am broadcast -a com. Many android apps use the IMEI number as the unique identity of each user. asked Dec 6, (eg identifying and connecting to devices using adb) ANDROID_ID can be used to identify an Android device given the caveats How to get IMEI in Android using code. (API 26/android 8. An alternative for older Android versions is. 13 adb remount. ) edited Apr 13, 2017 at 12:18. In Emulator you get by default 0000000000000 As your IMEI but in device you get perfect number. How to get IMEI in android 10. . Thanks in Advence I also wrote a short BASH script which allows Linux user to quickly change the IMEI or generate a random valid one (valid in sense of: phone will accept the generated number, provider usually not). serialno. e. name, ro. 3. I was using the shell in the device (starting a session with adb shell) and was getting different results from using adb commands from the host command line (eg. CPU Manufacturer, model and serial numb I found a blurry and incomplete answer in the Soti Discussion Forum and after many testing finally, I managed to make it work!!!. I'm trying to write C or C++ code that can run by itself on an Android device, so I don't think I can use Java (i. 2. If you really need it (and there are only a handful of use cases, say, an MDM), those use cases are usually covered by existing solutions/APIs. Download here; How to run/use the app: Ensure all prerequisites are met; Run the EdXposed App and activate the module Change-IMEI-Android; Open the App Change-IMEI-Android and check what you want to spoof: IMEI-1, IMEI-2, or else; Set wanted values there are two OPPO phones, using adb cannot accurately read IMEI 1 and 2, but only MEID. In many cases, the IMEI number is printed on the SIM card tray of your Samsung device. Thus, the problems is Android unable to extract the full IMSI. manufacturer, and for Android device Many android apps use the IMEI number as the unique identity of each user. imei retrieves the actual IMEI. I have a requirement for obtaining the hardware related information on an Android device that runs my application. adb devices -l # first_huge_device_id0000 device product:p124 model:md1 device:d1 transport_id:1 # second_huge_device_id0000 device To specifically answer the can user change the ANDROID_ID on an unrooted device? question: . My phone is Samsung Galaxy, if you use other phone brands, edit it accordingly. com and type the IMEI you found from fastboot command. Transition codes of iphonesubinfo used: ADB command to get device phone number: adb shell "service call iphonesubinfo 18 | cut -c 52-66 | tr -d '. [:space:]+'" # get Android ID adb shell settings get secure android_id # get device Serial Number adb shell getprop ro. adb shell getprop -T. Logré usar esas herramientas para imprimir el IMEI de esta manera: adb shell service call iphonesubinfo 1 | toybox cut -d "'" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | I use the following code to get the IMEI or use Secure. Note: No root is needed for any of the above commands Dado el tag 7. How to programmatically get the IMSI-Number in Android. SecurityException: getSubscriberId: The user 10099 does not meet the requirements to access device identifiers. Shows the types of properties instead of the values. shell | cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g' That might not work in the case that you have multiple Uicc slots since the bash commands will jam the IDs together, but you should be able to edit the bash commands to get it to work. To access it on. It now shows the following information when executed via ADB: I want to get IMSI number of SIM card in Samsung Galaxy S3 using command line only. This most familiar USSD code works universally on all phones and tablets. Nov 14, 2022 #5 It is correct that MacroDroid cannot get the IMEI after Android 10. ADB command to get device Serial Number: adb shell getprop ro. Example: adb get-serialno adb As the iphonesubinfo 1 command does not work on many devices, here is a little workaround that should work consistently on most Android versions and on rooted and unrooted devices:. 4 min read. On devices running with Android API level lower than 8. bcoz all devices has different IMEI number. ril. Android Q (>= SDK 29) android. Contact the manufacturer: If you believe the device should have a serial number but cannot retrieve it through the available methods, reach out to the device First, ask if your use-case actually warrants usage of any unique, permanent ID of the device. With these IMEI numbers, I am going to print out labels for inventory managing. [:space:]'" I tested the method, android; shell; adb; imei; android-13; Sergei Kozelko. 0. Tfue Newbie Find. EDIT: UPDATED AGAIN: GSF ID NOT IMEI OR ANDROID ID. It's highly recommended to backup the whole partition, or at least copy the files from the efs directory. How to get that using adb shell command? How to get 3rd and 4th IMEI number for an android using ADB command? Ask Question Asked 3 years, 8 months ago. @Dimlos Does your mechanism work on Android 10 and Google / Pixel 5a / Android 13 --- NG . shell | cut -c 52-66 | tr -d '. – sAaNu. Check the SIM Card Tray. I Tried Following:-adb shell dumpsys iphonesubinfo but it returns nothing. *#06# – Display IMEI Number. Usage: uiautomator <subcommand> [options] Available subcommands: help: displays help message runtest: executes UI automation tests runtest <class spec> [options] <class spec>: <JARS> < -c <CLASSES> | -e class <CLASSES> > <JARS>: a list of jar files containing test classes and dependencies. When you create an installation package for an Android APK file using the MobiControl Package Studio tool, you can contain Post-Install Soti Scripts that will run after installation is done:. Bookmark this page for adb get-serialno gives you the serial number of the device. serialno #Note: No root is needed for any of the above commands So commands need to be executed from adb shell. the emulator. I know I can get the IMEI from code, which is still working, but does anyone has a Android 13: Level 33: TIRAMISU: Tiramisu 2: 2022: Android 12: Level 32: S _V2: Snow Cone 2: 2022: Android 12: Level 31: S: Snow Cone: 2021: Android 11: Level 30: R: Red Velvet Cake: 2020: if you type in the caller app: *#06#) # ### and dump screen to /tmp/read_screen. 0, there's a single ANDROID_ID per user. How can I read IMEI? Android version 11 Model PEAM00 and PEMM20. Codes 7/8 correspond to getSubscriberId and 10/11 to getSimSerialNumber. *#*#4636#*#* – Display device information In addition to other answers guiding to rename the device serial, you can also use its transport_id to access. baseband. Setting your application as device owner is not sufficient, you also need it to complete the provisioning flow. (From a regular terminal on the device, root is required. CORRUPTED OR NOT? You can check if the efs is mounted or completly damaged with this command: adb shell mount [Tutorial] How to fix invalid IMEI on an MTK android phone using ADB. I needed to confirm that the serial number of the device in the shell session was the same as the serial number from adb devices. This is the hardware serial number. adb shell pm list packages but this is deprecated and will likely be removed in the future. Simple non-GUI app to help getting the device IMEI over ADB - saschoar/android-imei-getter # get device IMEI adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '. settings get secure android_id from adb shell is the simplest, I find — no extraneous output and does not require root. There is no default set on the phone for any If you have more devices attached to your machine, you will not be able to use this command by default. I found this bug in the Sony Ericsson Mini Experia . 3. # an app start is required to register the broadcast receiver, so we start the main activity here . I just need to get IMEI numbers of Android devices when they are connected to my PC. You can get the EID with adb shell service call phone 190 s16 com. macro. Other alternatives like advertising id and Android id did not work for me, as they might change if the user made a device format or factory reset. I am currently using this command adb shell "service call iphonesubinfo 1" to get IMEI number, but it only returns 1st one. Also I try this: adb shell service call iphonesubinfo 1 but neither 2016 at 13:04. Android上で動作するサービス. android. Android Nougat viene con toybox, que actúa como una alternativa a busybox y tiene algunas utilidades útiles. @Adb try emulator-{arm,mips,x86}. ANDROID_ID as an alternative, when the device doesn't have phone capabilities: /** * Returns the unique identifier for the device * * @return unique identifier for the device */ public String getDeviceIMEI() { String deviceUniqueIdentifier = null; TelephonyManager tm = (TelephonyManager) It looks like you are confusing two different numbers: adb get-serialno gives you the serial number of the device. I want to get 3rd and 4th number for quad sim phone. thyepkbibtoaypnrcyercfcyuxvnmarihwcocqzoglauedzntuzygvkjjivjxdmtzlwkxbsjbn