IMHO their is no solution for this.

Using setprop requires that the APP is signed
with the platform cert.

And this is good, because otherwise any app would be able
to change any system property.

Good luck !

  Frank




On 28 Jul., 16:43, Oscar <oscar...@gmail.com> wrote:
> That's the problem, you don't have root permissions but maybe there is
> a workaround with java, maybe there is a method that you can use for
> it.
>
> look that, it maybe help 
> youhttp://stackoverflow.com/questions/249916/how-do-i-find-the-dns-serve...
>
> On Jul 28, 6:43 am, kiran <saikiran....@gmail.com> wrote:
>
>
>
> > Is your code $SETPROP net.if.default rmnet0*  need a root access
> > If so from android application may be we don't have root previliges
>
> > On Jul 28, 3:39 pm, Suchita Sharma <suchi.bhard...@gmail.com> wrote:
>
> > > Hi all,
>
> > > I am trying to execute a shell script from application using
>
> > > java.lang.Process API.
>
> > > The script file is executing properly as i am able to get logs but the 
> > > line
>
> > > *$SETPROP net.if.default rmnet0*
> > > *
> > > *
> > > is not getting executed.
>
> > > has anyone able to execute .sh file from application succesfully.
>
> > > Code Snippet:
> > > *//*
> > > *str={"/system/bin/sh","/sdcard/test.sh"};*
> > > *Process p = Runtime.getRuntime().exec(str);*
> > > *
> > > *
> > > *//*
> > > *
> > > *
> > > test.sh:
> > > LOG=/system/bin/log
> > > SETPROP=/system/bin/setprop
> > > $LOG -t test"++Setting up default iface"
>
> > > $SETPROP net.if.default rmnet0
> > > $LOG -t test"++Setting done "- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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