[Q] Help ADB shell while in SafeStrap

CapinWinky

Member
Mar 9, 2011
25
0
21
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!
 

k1mu

Senior Member
Apr 11, 2011
1,945
1,620
0
Virginia
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?
 

CapinWinky

Member
Mar 9, 2011
25
0
21
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.
 

jgrov

New member
May 31, 2013
4
0
0
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.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone