Adb shell - Vibrant Q&A, Help & Troubleshooting

$adb shell
permisiom denied
? Why is it permision denied
Vibrant owns cm7

Related

[Q] Checking SU access

I rooted my phone and I was able to install Superuser and Titanium Backup and both appear to be running successfully. My question is when I run adb shell from my PC and I get the $, I get permission denied when I type SU or whoami? Did I miss something?
C:\>adb shell
$ su
su
Permission denied
$ whoami
whoami
whoami: permission denied
$
just wondering why you need to use superuser when you use adb shell
OK, so why the permission denied response from the OS?
http://forum.xda-developers.com/showthread.php?t=1002203
that prob has something to do with it, push that kernel and try again
OK thanks, I will keep that in mind if I run into issues. Everything else is working fine otherwise, so I will well enough alone for now, while I read the docs on the Android Dev site.

[Q] Permission denied to run ./zergRush

Code:
C:\android>adb shell
$ cd /data/local/tmp
cd /data/local/tmp
$ ./zergRush
./zergRush
./zergRush: permission denied
$ chmod 777 /data/local/tmp/zergRush
chmod 777 /data/local/tmp/zergRush
$ ./zergRush
./zergRush
./zergRush: permission denied
As example to root my HTC Desire S 510e I am using this post.
I am rooting my device in Windows 7, no problem to give permissions through CMD, but result as you can see is the same. Should I use "su"?
try with chmod 755.
Shows the same:
Code:
C:\android>adb shell chmod 755 /data/local/tmp/zergRush
C:\android>adb shell chmod 755 /data/local/tmp/misc_version
C:\android>adb shell
$ cd /data/local/tmp/
cd /data/local/tmp/
$ ./zergRush
./zergRush
./zergRush: permission denied
$ chmod 755 /data/local/tmp/zergRush
chmod 755 /data/local/tmp/zergRush
$ chmod 755 /data/local/tmp/misc_version
chmod 755 /data/local/tmp/misc_version
$ ls
ls
zergRush
misc_version
$
adb root option doesn't work as well...
Code:
C:\android>adb root
adbd cannot run as root in production builds
C:\android>adb shell
$ adb root
adb root
adb: permission denied
$
have the same problem...
How can I do?

Any way to root ICS over adb in fastboot?

Is there any way to root in fastboot mode???
If so, using what utility?
Thanks in advance.
I guess I am asking if issuing the following commands on a RAZR through adb while in fastboot result in root? This is for ICS.
These command are from DroidRAZRUtility .bat file.
echo [*] Waiting for device...
adb wait-for-device
echo [*] Device found.
adb shell "rm -r /data/local/12m/batch 2>/dev/null"
adb shell "ln -s /data /data/local/12m/batch"
echo [*] Rebooting device...
adb reboot
echo [*] Waiting for device to reboot...
adb wait-for-device
adb shell "rm /data/local.prop"
adb shell "echo 'ro.sys.atvc_allow_all_adb=1' > /data/local.prop"
echo [*] Rebooting device again...
adb reboot
echo [*] Waiting for device to reboot...
adb wait-for-device
echo [*] Attemping persistence...
adb remount
adb push su /system/bin/su
adb shell "chmod 6755 /system/bin/su"
adb shell "ln -s /system/bin/su /system/xbin/su 2>/dev/null"
adb push busybox /system/xbin/busybox
adb shell "chmod 755 /system/xbin/busybox"
adb shell "/system/xbin/busybox --install /system/xbin"
adb push Superuser.apk /system/app/Superuser.apk
echo [*] Cleaning up...
adb shell "rm /data/local.prop"
adb shell "rm /data/local/12m/batch"
adb shell "chmod 771 /data"
adb shell "chown system.system /data"
echo [*] Rebooting...
adb reboot
adb wait-for-device
echo [*] Exploit complete!
Click to expand...
Click to collapse

[Q] Superuser denied to shell

Hi everyone, I recently installed this ROM here http://forum.xda-developers.com/showthread.php?t=2205516&page=73&nocache=1 (unfortunately I can't post questions on that thread yet). Superuser access works fine from apps and terminal emulator, but if I try to connect from adb with "adb shell su" I get "Permission denied" on my command prompt and a "Superuser denied to shell" toast on the phone.
I can't find a way to change this, apparently the shell user can't su. I tried from the terminal emulator too and here's what happens:
Code:
[email protected]: / $ whoami
u0_a14
[email protected]:/ $ su
[email protected]:/ # whoami
root
[email protected]:/ # su - shell
[email protected]:/ $ whoami
shell
[email protected]:/ $ su
Permission denied
1|[email protected]:/ $
Any help pwetty please?

[Question] Permission denied under "adb shell" after granting "su"

Hi there,
The device is
- rooted
- bootloader unlocked.
Super privilege was granted after "adb shell su".
Code:
adb shell
cat /proc/partitions
showed the list of partitions.
But
Code:
adb shell ls -l /dev/block/by-name
It returns
Code:
/dev/block/by-name: Permission denied
And
Code:
adb shell
ls -l /dev/block/platform/msm_sdcc.1/by-name/
It returned the same result.
Code:
/dev/block/platform/msm_sdcc.1/by-name/: Permission denied
How to solve it?
Thanks.
Cheers,
Wen

Categories

Resources