There are a couple problems here.

1. The phone doesn't have the adb command installed on it and doesn't
need it.  adb shell is only to be able to run shell commands from a
computer on the phone.
2. Permission denied is the default (confusing and buggy) error code
returned when you try and execute a command that doesn't exist.

If you just want a shell run, try /system/bin/sh as the executable to run.

b

On Thu, Jan 29, 2009 at 11:33 AM, Anshul <[email protected]> wrote:
>
> I am trying to run an ADB shell command from inside an android app
> using the JAVA's Runtime.getRunTime.exec API. I am getting an error
> "ERROR/ProcessManager(1041): Error running adb: Permission denied".
> Wanted to check if there is any permission that I need to request to
> get it working or that running the adb shell command would not be
> allowed from with in the Android app.
>
> I am able to execute other linux commands like 'ls' from the android
> app though.
>
> Thanks,
> -Anshul
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to