ADB and Fastboot displays different devices


Question

I'm trying to unlock the bootloader of my device, Cherry Mobile Fuze, which is a port of Micromax A96.



As seen on the screenshot, is it normal that the ADB displays a device that is different from the device being displayed by fastboot?



ADB and Fastboot displays different devices


Answer

Short answer



Fastboot, (recovery) and your "normal Android" are different systems, each using their own configuration and "device serial".



TL;DR



That's nothing unusual. Most devices1 use different IDs in normal// to indicate the mode they're in. You can cross-check that with the lsusb command on your Linux shell prompt, which reflects this by different device IDs. On top of that, some devices even use different IDs depending on what "normal mode" you've activated. To give an example, here's what my LG P880 presents:




  • 1004:61c5 when in charge-only normal mode

  • 1004:631c with MTP enabled

  • 1004:631e with PTP

  • 1004:61f1 using the "LG Software protocol" (to connect with their PC counterpart, which is Windows only)

  • 1004:61fe when in tethering mode



Easy to guess: the 1004 remains the same (it's the "manufacturer ID"). But the number behind the colon changes – so the device presents itself with different "product IDs".



However, this should not reflect on the "Serial" – as the device serial in all those 5 cases is taken from the same place (build.prop of the system running in "normal mode"), which is bound to the currently running ROM. Now what happens if you switch to "fastboot mode"? That's not related to the running OS at all (put in "easy terms", you could compare this with a PC's "BIOS" or, more correctly, the "Grub" bootloader). So fastboot doesn't know about the ROM's serial number, and thus uses its own. With it's somehow similar – in our comparison, you chose a different entry in Grub and thus booted a different system.






1: in fact, all devices I've tried, so I don't know of any exception – though with the amount of different devices available, I cannot guarantee there is no exception at all


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes