TransWikia.com

ADB Shell In Recovery Mode - Error:Closed

Android Enthusiasts Asked on January 29, 2021

I smashed my display pretty good today and am unable to use the digitizer. The upper half of the screen is barely visible and the lower half is black. I have debugging enabled on the phone but I can’t push the button to accept the key when the phone is connected to the computer. So, I am unable to gain access to my data/texts while I wait on my new phone. I found a blog post where the guy walks through a whole series of commands to permanently enable debug mode on his phone through use of adb in recovery.

Fortunately I am able to use the volume, home and power keys to boot into recover. I am also able to read enough of the screen to make the selection to “apply update from ADB”. Once I select this I run…

adb devices

…where my device is listed with a status of sideload. All seems good until I attempt to do anything else. Issuing…

adb shell

… returns error:closed as does pretty much any other command.

Any thoughts as to what I may be doing wrong?

2 Answers

It's very likely that you're running a stock recovery.
Since your power & volume keys are OK, you are able to boot it into fastboot (or bootloader) mode, where you can flash another recovery using fastboot. That's it. Go & get a TWRP or CWM for your device and flash it in. The reboot to the new recovery and adb shell should be available at this point.

Answered by iBug on January 29, 2021

You're not doing anything wrong. You're most likely using a stock recovery. Access to shell can prove to be potentially dangerous when it comes to userdata so a lot of OEMs or vendors (I don't know the correct term) prefer to ship a locked-down stock recovery which would do what OEM wants them to do, such as flashing OTA updates, sideloading updates from OEM, doing factory reset and in some cases, some hardware testing options. That's the scope they follow.

If you want unconditional shell access, you would've to flash a custom recovery.

Answered by user109933 on January 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP