[Q] Android Pattern Unlock - adb shell su: permission denied - General Questions and Answers

I was trying to unlock my android phone by adb installed. I tried to followed these steps:
adb devices
adb shell
cd data/system
su r
m *.key
But when i typed and enter su, its showing permission denied. My phone is also rooted. But i don't know why after entering su, its showing permission denied.
Can you please tell what extra steps I have to do so that I don't get permission denied ? Please help me out. Tell me step by step procedure, what I have to do.

Related

Root and SU issues

Hello Everyone,
I have recently rooted my phone again but am having an issue. I cannot do an adb remount becase it says that permission is denied. This is going to be due to the fact that when I adb shell it starts with a $ instead of #. If I do the following it will work so that I can push files and system files:
PHP:
adb shell //enter adb shell
su //activate superuser
mount -o rw,remount /dev/block/mmcblock1p21 /system //mounts the drive and allows read/write
exit //exit superuser
exit //exit shell
adb push xxxxxxxxxx.apk /system/xxxxxxxxx/ //push whatever file is needed
My question is why can I not just adb push or remount? Does anyone know how to make it so that I auto superuser when doing adb shell so i get # instead of $?
you should be able to just type adb remount and have the /system turned either RW or RO depending on what its changing from...
Have you granted superuser permissions to adb? It should pop up on the phone.
yes superuser works on the phone. I can access superuser and it will work but I have to do it manually.
jj702561 said:
you should be able to just type adb remount and have the /system turned either RW or RO depending on what its changing from...
Click to expand...
Click to collapse
I understand that it should allow it but its not. That is exactly what this post is for. If i do the commands list in the first window this is manually change it to RW and then after I finish I set it back to RO.
theecho said:
yes superuser works on the phone. I can access superuser and it will work but I have to do it manually.
Click to expand...
Click to collapse
Right, but a superuser request will pop up when you use adb remount. Try it again and check the phone for it.
its not getting to that point. It is giving me an error on the command prompt. I have checked for it and the SU wasnt there

[Q] How do I access my /root directory?

I just unlocked my bootloader and rooted my phone. But, I'm still not able to see system files or access the root directory or run various commands like SUFBS or mount from adb.
Does anyone know what I can do to get these permissions?
adb shell
root
root: permissions denied
type su first
Aro2220 said:
I just unlocked my bootloader and rooted my phone. But, I'm still not able to see system files or access the root directory or run various commands like SUFBS or mount from adb.
Does anyone know what I can do to get these permissions?
adb shell
root
root: permissions denied
Click to expand...
Click to collapse
try with su permissions:
Code:
adb shell
su root
And allow su permissions on the phone, when asked...
Neato! Thanks

Shell Root

Hi everyone
i tryed execute this command dd if=/dev/block/bml3 of=/sdcard/bml3.bak
but my shell is not SU (super user) "ROOT"
from terminal i executed SU and the reply is access denied
my phone is the sidekick4g
i tryed with the superoneclick but not works.
thanks a lot for your help
What didn't work about superoneclick? You have to enable USB debugging on the phone before superoneclick can work.

[Q] need help with adb shell busybox is write protected

I have a Huawei H867G Inspira it is or was rooted now through adb shell i cant execute any busybox commands mkdir, mount, ls etc. it gives me cannot execute permission denied. Now the system is read only i have tried several adb commands i can get shell but su command just stays in limbo but the toast notifications says that shell has been granted super user permission but nothing happens i can't use titanium backup either and fix permissions on scripter, and busybox installer don't work any help would be greatly appreciated
I'm also using ics and out is aqualcomm device rooted with framaroot o have uninstalling root won't work i used customscript on framaroot 1.9. It says success by the system status is still read only

[Resolved] [Q] Help needed rooting G Pro! T_T

*Since this problem can happen to other LG devices, I'm writing here.
-Summarized Question for Busy XDAers-
1.Installed su binary and busybox through Android System Recovery 3e.
2.Can get root access from LG Recovery mode, half access on ordinary boot+adb shell, Permission denied on terminal emulator app. SuperSu not working, and 'root' is granting permission every 5 minutes.
3.HELP PLEASE!
-Full Question-
Maybe it can be a real noobish question, but I need help rooting my G Pro.
LG started Kitkat update a week ago, and G Pro also got Kitkat update.
I tried to root my device using old methods, and new methods for other G devices, but none of them worked.
So! I tried making one for me, using Android System Recovery 3e(maybe it could be a problem?)
I booted my device to recovery using
Code:
'adb reboot recovery'
and sideloaded zip file containing su binary and busybox.
Of course I signed it with testkey, so I could get SuperSu, su binary, and busybox installed on my system.
But, after rebooting my device, I felt something went wrong.
I typed
Code:
'su'
command on terminal enulator, and got
Code:
'Permission Denied'
error.
Assuming it's related to permission and owner of su binary, I tried
Code:
ls -al /system/bin/su
.
Here's the result:
Code:
[email protected]:/ $ su
Permission denied
1|[email protected]:/ $ ls -al /system/bin/su
-rwsr-sr-x root root 85096 2008-08-01 21:00 su
It seems...nothing's wrong!
So I tried with adb, and got # without asking Superuser app.
But I couldn't mount system, as well as other commands require root access.
I removed SuperSu and downloaded Superuser by ChainsDD, but that didn't work.
Instead, I could see on log that 'root' was granting permission every 5 minutes.
Not knowing what the problem is, I rebooted device to LG recovery(diffrent from Android Recovery 3e).
I could access adb from there, and got root access and removed some garbage apps.
Then, it means su binary and busybox is working.
What is the problem??? Please help!
EDIT:It was binary version problem lol

Categories

Resources