[Q] ADB Shell And Super SU Issue - Android Q&A, Help & Troubleshooting

Okay... So Here Is Whats Up... The Digitizer On My Lg Optimus L9 Is Broken, Cant Touch The Screen Or Anything... But I Would Still Like To Use My Phone, I Can Can View My Screen But Thats All I Can Do,I Wish To Use The Keyboard And Mouse To Control My Screen,I Know This Is Possible Apperantly The Only Way To Do This Is To Access The ADB Shell, Okay,But What The Problem? Well When I Attempt To Gain Access To The ADB Shell... Super SU Gets In The Way, I Cant Grant Access To The ADB Shell Because I Cant Touch The Screen Do To The Broken Digitizer, And I Cant Click It When It Appears On The Display Because I Dont Have Super SU Permision To Use The Controlls Do To Being Denied Access Of The ADB Shell, If You Under Stand My Cicumstances Please Assist Me In Any Way, The Only Stipulation, No Factory Reset! Please And Thank You!

savagemessiah97 said:
Okay... So Here Is Whats Up... The Digitizer On My Lg Optimus L9 Is Broken, Cant Touch The Screen Or Anything... But I Would Still Like To Use My Phone, I Can Can View My Screen But Thats All I Can Do,I Wish To Use The Keyboard And Mouse To Control My Screen,I Know This Is Possible Apperantly The Only Way To Do This Is To Access The ADB Shell, Okay,But What The Problem? Well When I Attempt To Gain Access To The ADB Shell... Super SU Gets In The Way, I Cant Grant Access To The ADB Shell Because I Cant Touch The Screen Do To The Broken Digitizer, And I Cant Click It When It Appears On The Display Because I Dont Have Super SU Permision To Use The Controlls Do To Being Denied Access Of The ADB Shell, If You Under Stand My Cicumstances Please Assist Me In Any Way, The Only Stipulation, No Factory Reset! Please And Thank You!
Click to expand...
Click to collapse
You should still be able to access adb shell at the shell level, what is likely happening is that you are dropping into a root shell and this is causing SuperSU to prompt if you want to allow adb shell to have root access. What are the exact steps you are taking when you go to use adb shell?

shimp208 said:
You should still be able to access adb shell at the shell level, what is likely happening is that you are dropping into a root shell and this is causing SuperSU to prompt if you want to allow adb shell to have root access. What are the exact steps you are taking when you go to use adb shell?
Click to expand...
Click to collapse
I Use Android Screencast Plus Android SDK, Then I Use Command Prompt
.Adb Shell
.Su
At That Point Super Su Is Prompted

savagemessiah97 said:
I Use Android Screencast Plus Android SDK, Then I Use Command Prompt
.Adb Shell
.Su
At That Point Super Su Is Prompted
Click to expand...
Click to collapse
I would recommend try starting adb shell (adb shell command) and not dropping into a root shell then skip the su command. So just do
Code:
adb shell
To start adb shell, and then skip the su command.

shimp208 said:
I would recommend try starting adb shell (adb shell command) and not dropping into a root shell then skip the su command. So just do
Code:
adb shell
To start adb shell, and then skip the su command.
Click to expand...
Click to collapse
If I Skip su The cmd Says Not Permited
Code:
•adb shell
•su
•chmod 777 /data/dalvik-cache
•cd /data/dalvik-cache
•chmod 777 ./
This Is My Attempt, Is There An Alternative

savagemessiah97 said:
If I Skip su The cmd Says Not Permited
Code:
•adb shell
•su
•chmod 777 /data/dalvik-cache
•cd /data/dalvik-cache
•chmod 777 ./
This Is My Attempt, Is There An Alternative
Click to expand...
Click to collapse
Trying using adb shell from the command line, instead of Android Screencast. Also what are you trying to do with the device extract your personnel information?

Any progress with this? I'm in the same situation

Related

[Q] adb shell

hi ,
when i tap adb shell in my terminal to access to my emulator in shell mode , i get # in order of $ !! and i don't want to have root access , what should i do and what does that mean ?
It means you should stop whatever you are doing ^^
blue. said:
hi ,
when i tap adb shell in my terminal to access to my emulator in shell mode , i get # in order of $ !! and i don't want to have root access , what should i do and what does that mean ?
Click to expand...
Click to collapse
Some roms enable root by default.
Sent from my Galaxy Nexus using xda premium
The shell IS the root of the phone, it makes client connection which runs commands in the bin folder of the phone, which is in the..."root" of the system...Root means you access the roots (huh, weird) of your phone system, aka those parts which normally aren't accessible from phone sw, and that's what the shell is about, it launches cmds which are "root" oriented, from removing stuff to rebooting the phone...
blue. said:
hi ,
when i tap adb shell in my terminal to access to my emulator in shell mode , i get # in order of $ !! and i don't want to have root access , what should i do and what does that mean ?
Click to expand...
Click to collapse
The emulator got ro.secure=0 by default, hence granting you root access. What's the problem with that? You are using the emulator developing, and root is more useful. If you really want to disable it, edit the emulators /default.prop and set ro.secure=1.

Help on how to do this commands !

Hello sir! I just wana ask question on how to run commands like this
su -c /system/etc/CrossBreeder/REMOVE_TETHER_BOOST
i've seen this in the Cross Breeder thread. I just wanna try it to reduce the lag on my phone and maybe also to speed it up!
but if i came across with this unexpected problems . i really dont know how to run this commands. so i just wanna ask . how do i run commands like that? THANKS IN ADVANCE
These commands are run via a terminal emulator on your phone. For this command, your phone have to be rooted.
Alternatively, you can use adb shell. To do so, you have to download the android sdk or google for adb for just downloading the relevant part of it, then you have to run adb root to get root privileges (the adb binary can be found under Path/to/Android-SDK/platform-tools) and adb shell to get a root shell. There you have to type in /system/etc/CrossBreeder/REMOVE_TETHER_BOOST (the su -c is not needed there because you already have root privileges).

[Q] How to roor NEC Terrain NE-201A1A

I have a NEC Terrain NE-201A1A, use android 4.0.4 stock rom, I don't know how to root it, who can help me? Thanks so much
There is not any root method
zolahn said:
I have a NEC Terrain NE-201A1A, use android 4.0.4 stock rom, I don't know how to root it, who can help me? Thanks so much
Click to expand...
Click to collapse
At least for now, there is not any permanent root method. Only a temp shell root. NEC Terrain is NAND/bootloader locked, S-on and does not have fastboot support.
You should have used search. More about this:
Rooting NEC Terrain
NEC Terrain: ADB/CDC Serial Driver, 3e Recovery Password, and Root
NEC Terrain Rooting and Flashing Guide
Root method discovered for NEC Terrain?
Unlocking of NEC Terrain SIM/Root
FFDA said:
At least for now, there is not any permanent root method. Only a temp shell root. NEC Terrain is NAND/bootloader locked, S-on and does not have fastboot support.
You should have used search. More about this:
Rooting NEC Terrain
NEC Terrain: ADB/CDC Serial Driver, 3e Recovery Password, and Root
NEC Terrain Rooting and Flashing Guide
Root method discovered for NEC Terrain?
Unlocking of NEC Terrain SIM/Root
Click to expand...
Click to collapse
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
I'm using linux
zolahn said:
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
Click to expand...
Click to collapse
I am assuming that you are using Windows so try this ADB Driver Installer.
Hi
FFDA said:
I am assuming that you are using Windows so try this ADB Driver Installer.
Click to expand...
Click to collapse
Can u guide me how to root it? (tmp root). thanks
I can try
zolahn said:
Can u guide me how to root it? (tmp root). thanks
Click to expand...
Click to collapse
I have never tried getting temp shell root from windows, but it should pretty simple. First of all you have to set up adb (if you don't have it yet try this) and then just do this:
In windows cmd, go to folder where your run_root_shell file is.
Push run_root_shell to /datal/local/tmp folder using command: adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell: adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command: adb shell
Lastly get root temp using command: /data/local/tmp/run_root_shell
Good luck
zolahn said:
I read all thread but I can't install this driver in my computer, I think this driver is not correct for my phone, do u have other driver for nec terrain?
Click to expand...
Click to collapse
Here's a list of root apps you can try:
Framaroot
Vroot
For PC(plug your device into your PC and start rooting):
Kingo android root
These are really simple applications that helps you root your device with just a click.
---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------
Before I forgot to mention this, after you've root your device with Kongo android root, the action can be reversed(unroot). You can't unroot with framaroot(in my memory), with vroot you can simply unroot your device by uninstalling this app.
FFDA said:
I have never tried getting temp shell root from windows, but it should pretty simple. First of all you have to set up adb (if you don't have it yet try this) and then just do this:
In windows cmd, go to folder where your run_root_shell file is.
Push run_root_shell to /datal/local/tmp folder using command: adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell: adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command: adb shell
Lastly get root temp using command: /data/local/tmp/run_root_shell
Good luck
Click to expand...
Click to collapse
So if i use ubuntu, how can root it?
Let's try Linux!
zolahn said:
So if i use ubuntu, how can root it?
Click to expand...
Click to collapse
You understand that this temp shell root does not let you debloat the phone, resize partition, ect? It basically lets you read more partitions through adb shell (Command line. NO graphical interface)?
If you still what to gain temp root:
Open terminal. Press
Code:
CTRL+ALT+T
at the same time.
In terminal paste:
Code:
sudo apt-get install android-tools-adb
and enter password. If you get an error that there isn't such application or similar paste this command:
Code:
sudo add-apt-repository ppa:phablet-team/tools && sudo apt-get update
and then the first one again.
Add the rule to 99-android.rules file. Open the file with this command:
Code:
sudo gedit /etc/udev/rules.d/99-android.rules
and paste in the window that just opened this line (Don't forget to add YOUR account name where it saids so in this line)
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", ATTR{idProduct}=="0358", MODE="0666", OWNER="[B]your Linux account name[/B]"
save and close the window.
At this point you may need to restart your PC for changes to take effect, so better do it. Also turn debugging mode in your NEC Terrain and connect it to you PC with USB cable.
Go to folder where your run_root_shell file is, right-click and choose "open in terminal".
Check if ADB is set up right. Type in terminal:
Code:
adb devices
Your should see text like this:
Code:
List of devices attached
ea1f2870 device
Tell me if you see this:
Code:
List of devices attached
???????????? no permissions
Push run_root_shell to /datal/local/tmp folder using command:
Code:
adb push run_root_shell /data/local/tmp/
Set permissions to run_root_shell:
Code:
adb shell chmod 777 /data/local/tmp/run_root_shell
Go to adb shell using command:
Code:
adb shell
Lastly get root temp using command:
Code:
/data/local/tmp/run_root_shell
If you see # instead of $ in terminal you have shell root privileges.
Lets continue discussion in one thread!
http://forum.xda-developers.com/showthread.php?p=59514154#post59514154
I created a GitHub repo to collect information, also on how to disable apps (since thats as good as it gets for now).

Stuck in settings

I was trying to install gapps and now when I reboot I am stuck and the Play Store language select screen. When I click next, it takes me to settings. I have no home or back button so I cant get anywhere other than the settings menu. I have tried a factory reset with no avail. I also tried a manual update, but I have disable OTA updates so it wont recognize the .bin file on my SD. If only I could get to ES File Explorer. Any tips on fixing this problem?
Code:
adb shell "su -c 'mount -o rw,remount /system'"
adb shell "su -c 'mv /system/priv-app/SetupWizard.apk /system/priv-app/SetupWizard.apk.old'"
adb shell "su -c 'mount -o ro,remount /system'"
ONYXis said:
Code:
adb shell "su -c 'mount -o rw,remount /system'"
adb shell "su -c 'mv /system/priv-app/SetupWizard.apk /system/priv-app/SetupWizard.apk.old'"
adb shell "su -c 'mount -o ro,remount /system'"
Click to expand...
Click to collapse
Care to elaborate? I am a complete noob and shouldn't have been trying this at all. I can't access anything on my Kindle other than settings. Do I run this in command prompt on windows?
Edit: I also wanted to add that I am not one of the guys who sits around waiting for an answer without researching the problem lol
You need install adb on your PC - http://forum.xda-developers.com/showthread.php?t=2317790
Install drivers for our tablet (no need to reboot fastboot just manual install drivers for your kindle at device manager) - http://forum.xda-developers.com/showpost.php?p=59268023&postcount=8
Open CMD (cd C:\Program Files (x86)\Minimal ADB and Fastboot>)and paste these commands. I assume you rooted if you can block ota.
ONYXis said:
You need install adb on your PC - http://forum.xda-developers.com/showthread.php?t=2317790
Install drivers for our tablet (no need to reboot fastboot just manual install drivers for your kindle at device manager) - http://forum.xda-developers.com/showpost.php?p=59268023&postcount=8
Open CMD (cd C:\Program Files (x86)\Minimal ADB and Fastboot>)and paste these commands. I assume you rooted if you can block ota.
Click to expand...
Click to collapse
Apparently I no longer have root since I reset to factory. I do have the adb drivers installed, but I get stuck when using the command prompt because I dont have su access. Anyway for me to root it with only access to settings? I am on 4.5.2
are you sure?
earlier I had root even after hard reset on 4.5.2
anyway you could try install kingroot but I do not sure
I think @Cl4ncy and @Davey126 may clarify this.
ONYXis said:
are you sure?
earlier I had root even after hard reset on 4.5.2
anyway you could try install kingroot but I do not sure
I think @Cl4ncy and @Davey126 may clarify this.
Click to expand...
Click to collapse
Yes, I no longer had root access. Thanks to all of your other help and suggestions, I have been able to successfully get my Fire HDX working again. With all of the info you gave I was able to research and piece together what I needed. I was able to install Kingroot through cmd and then use the commands you gave to get rid out of settings. Thanks alot!

question about adb shell vs terminal on device.

hi,
quick question..
i put "setprop service.adb.tcp.port 5555" in file.txt, and save this to /sdcard.
if i run "sh /sdcard/file.txt" from adb shell, on pc, then it works and getprop confirms.
if i run "sh /sdcard/file.txt" from terminal emulator, on phone, it says "could not set property".
can someone explain this behaviour? tahnk you.
in addition, where should you save shell scripts on your phone?
do you guys use shell scripts? can you give examples of what you use them for?
MrPresident said:
hi,
quick question..
i put "setprop service.adb.tcp.port 5555" in file.txt, and save this to /sdcard.
if i run "sh /sdcard/file.txt" from adb shell, on pc, then it works and getprop confirms.
if i run "sh /sdcard/file.txt" from terminal emulator, on phone, it says "could not set property".
can someone explain this behaviour? tahnk you.
in addition, where should you save shell scripts on your phone?
do you guys use shell scripts? can you give examples of what you use them for?
Click to expand...
Click to collapse
Try "su" command first and grant root access to terminal app
minimale_ldz said:
Try "su" command first and grant root access to terminal app
Click to expand...
Click to collapse
thanks for the reply, minimale.
okay. so, as you suggested, it works when i do it as root from the terminal app.
but couple of things.
1) Why can i run it from adbshell without 'su' command. through adb shell it still works as "[email protected]:/ $" instead of "[email protected]:/ #"
2) how come, without 'su', I can access "/sdcard" (as "[email protected]: / $"). but, as root, I have to go through "/data/media/0"
MrPresident said:
thanks for the reply, minimale.
okay. so, as you suggested, it works when i do it as root from the terminal app.
but couple of things.
1) Why can i run it from adbshell without 'su' command. through adb shell it still works as "[email protected]:/ $" instead of "[email protected]:/ #"
2) how come, without 'su', I can access "/sdcard" (as "[email protected]: / $"). but, as root, I have to go through "/data/media/0"
Click to expand...
Click to collapse
I'm glad I helped, but have no idea where the differences between ADB and terminal emulator come from. It's beyond my current knowledge.
minimale_ldz said:
I'm glad I helped, but have no idea where the differences between ADB and terminal emulator come from. It's beyond my current knowledge.
Click to expand...
Click to collapse
no worries. i got what i need.

Categories

Resources