Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Help ADB shell while in SafeStrap

OP CapinWinky

7th August 2014, 07:47 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Mar 2011
More
Like a lot of people, I rooted, busyboxed and installed SafeStrap. Unfortunately, I can't boot anymore, the best I can do is get into SafeStrap or recovery. I know I can manually remove safestrap using adb shell.

When I try to run adb shell while in SafeStrap, I get this:

Code:
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "/sbin/sh"; caused by library "libc.so" not found
If I'm in actual recovery, adb devices does not list the phone.

Someone please help me get into ADB shell so I can dump SafeStrap!
8th August 2014, 01:01 AM   |  #2  
k1mu's Avatar
Recognized Contributor
Flag Virginia
Thanks Meter: 1,578
 
1,925 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by CapinWinky

Like a lot of people, I rooted, busyboxed and installed SafeStrap. Unfortunately, I can't boot anymore, the best I can do is get into SafeStrap or recovery. I know I can manually remove safestrap using adb shell.

When I try to run adb shell while in SafeStrap, I get this:

Code:
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "/sbin/sh"; caused by library "libc.so" not found
If I'm in actual recovery, adb devices does not list the phone.

Someone please help me get into ADB shell so I can dump SafeStrap!

Try "adb shell /system/bin/sh"

Something's not right, as there's no "/sbin/sh" file on my *stock* SGS4.

However. Removing Safestrap will probably just brick your phone. What build, bootloader, etc?
8th August 2014, 03:27 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Mar 2011
More
I'm NC5. I rooted with towelroot. Everything was actually working fine for several days, then I let the battery die and now I can't get past SafeStrap. I tried your suggestion trying to launch ADB shell and it returned the same error.

When I run ADB devices while in safestrap, it returns as being in recovery. I can also get it into sideload mode in the stock recovery. It is not detected when rebooted into Download.

At this point, I would be happy to completely factory reset with ODIN if that's even possible. I'm not familiar with ODIN, so I'm trying to read up.
25th September 2014, 11:35 PM   |  #4  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: May 2013
While in Safestrap (I'm using v3.72 on a Galaxy S4 NB1), go to Mount -> Select "System". After mounting the system partition, I was then able to adb shell into the device like normal.

NOTE: One difference in adb that I noticed was that I lost my adb shell root access in Safestrap mode (even tho the device was rooted beforehand). Might be something with SELinux.

HTH.
Post Reply Subscribe to Thread

Tags
adb, libc, safestrap
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes