Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,807 Members 52,475 Now Online
XDA Developers Android and Mobile Development Forum

[Q] adb shell access

Tip us?
 
blablubb32
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Default [Q] adb shell access

Hi guys,

I'm new here and this is my first thread, so I hope I've chosen the correct section for my issue.

I have a sony ericsson xperia x10 mini pro and wanted to gain root access. I managed it so far and made some manipulations within the /system/ directory and due to some mental black-out I made a 'chmod 700 /system/' which now causes my device to fail on each boot. Also just connecting my phone with a computer gives the output of the white sony ericsson label followed by a rebooting, without showing the battary loading screen.
Using adb I have only a few seconds of access to the device and I wanted to change the rights of /system/ to some reasonable values. Unfortunately running 'adb shell' gives:

- exec '/system/bin/sh' failed: Permission denied (13) -

so I downloaded adb plus some other stuff following this description android.serverbox.ch/?p=1217. I replaced each and every occurance of /system/bin/sh to /bin/sh in order to call a different shell which I might have read access but still the same error as above occurs, also stating /system/bin/sh instead of /bin/sh.

Does somebody of you have an idea on how I can gain access and change the permissions or how I can completely reset the phone?

Thanks and cheers
 
demkantor
Old
#2  
demkantor's Avatar
Recognized Contributor
Thanks Meter 2620
Posts: 5,543
Join Date: Nov 2011
Location: mpls
I'm not familiar with Sony devices but most OEMS have some way of flashing stock firmware/software to the device such as with fastboot or a flash tool. If Sony has such method and has a package specific to your device this would probably be the best way.
Otherwise I assume you were rooted or you wouldn't have been able to change permissions to /system so can you boot to a custom recovery and then just flash a new ROM or fix permissions there

Sent from my Nexus 4 using XDA Premium 4 mobile app
 
MasterAwesome
Old
#3  
MasterAwesome's Avatar
Senior Member
Thanks Meter 683
Posts: 1,067
Join Date: Jun 2013
Quote:
Originally Posted by blablubb32 View Post
Hi guys,

I'm new here and this is my first thread, so I hope I've chosen the correct section for my issue.

I have a sony ericsson xperia x10 mini pro and wanted to gain root access. I managed it so far and made some manipulations within the /system/ directory and due to some mental black-out I made a 'chmod 700 /system/' which now causes my device to fail on each boot. Also just connecting my phone with a computer gives the output of the white sony ericsson label followed by a rebooting, without showing the battary loading screen.
Using adb I have only a few seconds of access to the device and I wanted to change the rights of /system/ to some reasonable values. Unfortunately running 'adb shell' gives:

- exec '/system/bin/sh' failed: Permission denied (13) -

so I downloaded adb plus some other stuff following this description android.serverbox.ch/?p=1217. I replaced each and every occurance of /system/bin/sh to /bin/sh in order to call a different shell which I might have read access but still the same error as above occurs, also stating /system/bin/sh instead of /bin/sh.

Does somebody of you have an idea on how I can gain access and change the permissions or how I can completely reset the phone?

Thanks and cheers
Go to the recovery then do a fix permissions in recovery. Or flash a new rom. Or use flash tools to install stock images again.


Sent from my Moto G
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
blablubb32
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Quote:
Originally Posted by MasterAwesome View Post
Go to the recovery then do a fix permissions in recovery. Or flash a new rom. Or use flash tools to install stock images again.
Thanks, but can you please give me a bit more details in what you mean by go to recovery?

Cheers,
 
MasterAwesome
Old
#5  
MasterAwesome's Avatar
Senior Member
Thanks Meter 683
Posts: 1,067
Join Date: Jun 2013
Quote:
Originally Posted by blablubb32 View Post
Thanks, but can you please give me a bit more details in what you mean by go to recovery?

Cheers,
Install a CWM recovery? Search about it

Sent from my Moto G
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
blablubb32
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Quote:
Originally Posted by MasterAwesome View Post
Install a CWM recovery? Search about it
I tried to, but my mobile can not be found by fastboot. Even if I make adb reboot bootloader.
 
MasterAwesome
Old
#7  
MasterAwesome's Avatar
Senior Member
Thanks Meter 683
Posts: 1,067
Join Date: Jun 2013
Quote:
Originally Posted by blablubb32 View Post
I tried to, but my mobile can not be found by fastboot. Even if I make adb reboot bootloader.
Thats nearly impossible.. Install your drivers.

Despite all this you can use flash tools to flash stock back again.

If you're using Linux type lsusb in the terminal and see if you see your device

Regards
MasterAwesome
Sent from my Moto G
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
shimp208
Old
#8  
shimp208's Avatar
Recognized Contributor
Thanks Meter 1491
Posts: 2,202
Join Date: Jan 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by blablubb32 View Post
I tried to, but my mobile can not be found by fastboot. Even if I make adb reboot bootloader.
I would recommend checking out this guide, specially step 8-15 of this guide which will instruct you how to properly setup fastboot and the required drivers on your Sony device. Also I would recommend taking a look at this guide on how to boot your device into fastboot mode through the button combination. Let me know if you still have questions.
The Following User Says Thank You to shimp208 For This Useful Post: [ Click to Expand ]
 
blablubb32
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
I tried to flash my mobile, using flash tool (from here: chip.de/downloads/Xperia-Flash-Tool_65533558.html) and now my mobile does not do anything anymore. So I guess this thread can be closed, except anyone has an idea what I can do now.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more

Control Your Toast Notifications with SlicedToasts

Toasts are delicious, even in their Android flavor. In Android, toast doesn’t lead … more

Rotation Lets You Take Full Control of Your Device’s Orientation Settings

To be brutally honest, the native options for screen … more