My "guess" is that adb is a development tool and probably not present
on the device or available on the emulator at runtime.

On Feb 2, 5:35 am, Asif k <asifk1...@gmail.com> wrote:
> same script I kept in the ubuntu desktop file system and executed with
> the normal java code and work nicely... with same APIs
>
> In the android application with same APIs when executing same script
> by putting it in /data/busybox/board_script.sh.... it does not work
> and gives following log results..even log doesnt give proper
> indication of security or permission problem..
>
> 01-01 07:20:36.386: INFO/ActivityManager(684): Starting activity:
> Intent { flags=0x10000000 comp={imats.wifi.script/
> imats.wifi.script.WiFiScript} }
> 01-01 07:20:36.410: INFO/ActivityManager(684): Start proc
> imats.wifi.script for activity imats.wifi.script/.WiFiScript:
> pid=12665 uid=10015 gids={}
> 01-01 07:20:36.410: DEBUG/AndroidRuntime(12656): Shutting down VM
> 01-01 07:20:36.410: DEBUG/dalvikvm(12656): DestroyJavaVM waiting for
> non-daemon threads to exit
> 01-01 07:20:36.410: DEBUG/dalvikvm(12656): DestroyJavaVM shutting VM
> down
> 01-01 07:20:36.410: DEBUG/dalvikvm(12656): HeapWorker thread shutting
> down
> 01-01 07:20:36.410: DEBUG/dalvikvm(12656): HeapWorker thread has shut
> down
> 01-01 07:20:36.410: DEBUG/jdwp(12656): JDWP shutting down net...
> 01-01 07:20:36.410: DEBUG/jdwp(12656): Got wake-up signal, bailing out
> of select
> 01-01 07:20:36.410: INFO/dalvikvm(12656): Debugger has detached;
> object registry had 1 entries
> 01-01 07:20:36.410: DEBUG/dalvikvm(12656): VM cleaning up
> 01-01 07:20:36.417: DEBUG/dalvikvm(12656): LinearAlloc 0x0 used 639228
> of 4194304 (15%)
> 01-01 07:20:36.449: INFO/jdwp(12665): received file descriptor 10 from
> ADB
> 01-01 07:20:36.558: WARN/ResourceType(684): Failure getting entry for
> 0x7f020060 (t=1 e=96) in package 0: 0xffffffb5
> 01-01 07:20:36.847: INFO/ActivityManager(684): Displayed activity
> imats.wifi.script/.WiFiScript: 464 ms
> 01-01 07:20:41.894: DEBUG/dalvikvm(7502): GC freed 49 objects / 1968
> bytes in 43ms
>
> Thanks,
> Asif
>
> On Feb 2, 3:33 pm, Asif k <asifk1...@gmail.com> wrote:
>
> > which permission??
> > Can you please elaborate on this?
> > In the logcat, I am not getting much specific information.
>
> > Thanks,
> > Asif
>
> > On Feb 2, 3:10 pm, android beginner <android.beginne...@gmail.com>
> > wrote:
>
> > > first thought that came to my mind is permission. ofcourse you can confirm
> > > that with logcat.
>
> > > On Tue, Feb 2, 2010 at 6:58 PM, Asif k <asifk1...@gmail.com> wrote:
> > > > Hi all,
>
> > > >  I am configuring wifi on my android based board using shell script.
> > > > Now I want to execute the same script from android application. For
> > > > that, I had used following code, but it didn't give any success till
> > > > now,
>
> > > > I had executed same script from "adb shell" prompt and it works
> > > > nicely.
>
> > > > Process exeCommands = Runtime.getRuntime().exec("/data/busybox/
> > > > board_script.sh");
>
> > > > is there anything else required than this???
>
> > > > Please help..
> > > > Asif
>
> > > > --
> > > > 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<android-developers%2bunsubscr...@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to