ADB/Fastboot not detecting Android stuck in bootloader


Question

I tried to flash the most recent android pie update to my pixel 2 only for it to fail writing partitions even though I followed a recent guide to my best ability. Now, the phone is stuck in the bootloader with no way to boot into android or any way to access the recovery options (throws an error and takes me back to the bootloader info page)



Neither fastboot nor ADB can recognize the phone, I think this is because the USB debugging must have turned off somehow even though I turned it on, as before I WAS able to access it through fastboot. But now I can not, plugging it into the Windows machine, windows doesn't see any change in Device Manager when the phone is plugged in and out.



I reached out to a google supports rep and they told me since there is no way to access the recovery options, the phone needs to go through warranty, but is this really the only way? Is there some driver I am missing?



Thank you.


Answer


Disclaimer: this is not necessarily a proper answer because it
involves indeterministic and rather sporadic approaches. That said,
thought it'd still be worth it to jot it down and share it for
informational purpose. :)



What didn't work for me:


✗ Using my newer Mac (2019/Big Sur) whose USB ports are USB-C/3.1.


✗ Trying out various USB 2.0 cables and adapters (USB-C/3.1 <-> USB-A/2.0, USB-A/3.0 <-> USB-A/2.0, etc.). More about that here (https://stackoverflow.com/a/58774581/2013891) and here (https://www.reddit.com/r/GooglePixel/comments/7lj50n/apparently_the_pixel_2_nonxl_doesnt_like_usb_3031/).


✗ Installing Linux (Ubuntu) on VirtualBox, or any virtual machines in this case.


✗ Getting RMA since I bought the phone secondhand on eBay [sic.] :D


What made it work for me:


➜ Praying. (yup seriously, this could be the most important pre-step that I forgot to do when failing continuously before ;) )


➜ Using my older Mac (2015/El Capitan) whose USB ports are USB-A/3.0.


➜ Running fastboot getvar all. While it's saying < waiting for any device >, plugging-in and -out again the Pixel 2 (assumed it is booted already to FastBoot mode) until all the vars are printed out in the console. Note that this step is like a game of chance to me. Depending on your luck, you may need to do it 100 times or even 1000 times while wiggling the cable, waiting for a little, and making a sudden plug-in/out over and over again. Your mileage may vary, hence the praying step.
fastboot getvar all


➜ When the vars got printed, it means the hardware connection has been successfully established in the USB interface. Running fastboot devices will list your Pixel 2 device. From this point on, it's business as usual -- I did the ./flash-all.sh thingy from https://developers.google.com/android/images#walleye.
./flash-all.sh - 1
./flash-all.sh - 2




Having all these messes, I still strongly believe a few Google phone/tablet hardwares are buggy when they come to establishing USB connection. Now, even after I managed to bring my Pixel 2 back to life, it's still not able create a USB connection to do a wired files transfer unless I do the "game of chance" mentioned above. Well, at least I got it working and it's becoming usable again.
alhamdulillah


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