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

Broken screen - allow su?

OP Sauveur

15th January 2014, 10:46 PM   |  #1  
OP Senior Member
Flag Boston
Thanks Meter: 51
238 posts
Join Date:Joined: Jul 2012
I'm trying to control my Nexus 4 using adb commands from computer, but when I type in adb shell and then su on command prompt I can't click "yes" on the dialog box to enable superuser permissions. How can I do this?
16th January 2014, 04:19 AM   |  #2  
OP Senior Member
Flag Boston
Thanks Meter: 51
238 posts
Join Date:Joined: Jul 2012
For anyone having the same problem, I found a solution. You'll need USB Debugging for most of this.

-Download a program called MyMobiler to your PC
-Connect your phone via usb and use MyMobiler on the pc toolbar to install the app on the phone
-You'll need to grant superuser permissions if your phone is rooted, so in order to do that you'll need to use adb commands from the Android SDK. Open up a command prompt in the platform-tools folder once you've downloaded SDK
-To get past the lock screen use commands from this link. For me (I don't have a pin or anything, I just needed to get out of the lock screen), I typed "adb shell input keyevent 22" to swipe right to the camera app and then "adb shell input keyevent 3" to hit the home button, which got me to my home screen. If you have a pin, you can type in "adb shell input text 1234" and replace 1234 with whatever your pin is
-Now you can control your screen using the commands on the link above (mainly numbers 19-23)
-If all is running correctly (and you have granted superuser permissions to let MyMobiler run on your phone), you can use the arrow keys to navigate throughout the phone
-If you have any problems, you should follow the MyMobiler start guide

I also followed this guide for help. He uses the app androidscreencast, but that didn't work for me, so I went with MyMobiler.
Last edited by Sauveur; 16th January 2014 at 04:26 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes