I wanted to start instrumentation from another app and realized that StartInstrumentation function is available just for that. Thanks everyone.
On Jan 29, 2:33 pm, Dianne Hackborn <hack...@android.com> wrote: > Also please note that shell commands are NOT part of the SDK. If you rely > on them in your app, expect to break in the future. > > > > On Thu, Jan 29, 2009 at 12:42 PM, Bill Napier <nap...@google.com> wrote: > > > 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 <aaj...@gmail.com> 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 > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---