Hi,

I'm trying to catch a prop's value that is definitely set and which I
can access via adb shell.

I tried adding these lines for test:

setprop my.test ""
setprop my.test testink
getprop > /data/local/getprop

...and /data/local/getprop was empty.

But if I add for example "setprop dhcp.tiwlan0.dns1 testink" and do
"getprop |grep testink" via adb shell, I get what I expected.

What am I doing wrong?

Regards,

Blaz

On Sep 4, 6:35 am, Tez <[email protected]> wrote:
> getpropshould work anywhere. See whether you are using the correct
> name and whether the property exists.
>
> Cheers,
> Earlence
>
> On Sep 2, 5:34 pm, BlaY0 <[email protected]> wrote:
>
> > Hi,
>
> > I'm writing a little dhcpcd hook (script) and was wondering how could
> > I  get some properties into it.Getpropdoesn't work in dhcpcd's
> > "environment". I can see some hooks are setting properties with
> > setprop (that works) butgetpropjust doesn't return anything. What am
> > I missing?
>
> > Regards,
>
> > Blaz

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