(repost from other thread).,

probably the size limit on properities field is blocking.. see
http://git.omapzoom.org/?p=platform/system/core.git;a=blob;f=libcutils/properties.c;hb=refs/heads/p-froyo#l59

The size limits are
#define PROP_NAME_MAX   32
#define PROP_VALUE_MAX  92

<http://git.omapzoom.org/?p=platform/system/core.git;a=blob;f=libcutils/properties.c;hb=refs/heads/p-froyo#l59>and
You can increase the size limit in bionic
http://git.omapzoom.org/?p=platform/bionic.git;a=blob;f=libc/include/sys/system_properties.h;hb=p-froyo#l38



On Wed, Aug 25, 2010 at 10:15 PM, Robert Greenwalt <[email protected]>wrote:

> Do you mean you can change the value of an existing property but cannot
> create a new one?
>
> That seems odd.
>
> What device/build?
>
> R
>
>
> On Wed, Aug 25, 2010 at 3:36 AM, guru <[email protected]> wrote:
>
>> Hi Rober/Deva R
>>
>> If I comment some of the existing properties in system.prop I am able
>> to set the value, otherwise not. Why this behavior and how to deal
>> with this?
>>
>> Thanks
>> Gururaja B O
>>
>> On Aug 19, 9:35 am, guru <[email protected]> wrote:
>> > Why I asked this question is when i enable wifi, dhcpcd is not setting
>> > system properties like
>> >
>> > A)
>> > dhcp.etho.ipaddress
>> > dhcp.eth0.mask
>> > dhcp.eth0.gateway
>> > dhcp.eth0.leasetime
>> > dhcp.eth0.server
>> >
>> > but setting onlly
>> >
>> > B)
>> > dhcp.eth0.dns1
>> > dhcp.eth0.dns2
>> > dhcp.eth0.dns3
>> >
>> > I tried to set above (A) using setprop but it is not setting the
>> > properties.
>> >
>> > is there any permission problem with this?
>> >
>> > Thanks
>> > Gururaja B O
>> >
>> > On Aug 18, 11:22 pm, Robert Greenwalt <[email protected]> wrote:
>> >
>> > > Perhaps - the '#' suggests root, but I know my adb shell doesn't start
>> as
>> > > root and I've been burned before with this same issue because of that.
>> > >  Trying it doesn't hurt.  If that's not it I don't know why setprop
>> isn't
>> > > working.
>> >
>> > > R
>> >
>> > > On Wed, Aug 18, 2010 at 10:55 AM, Deva R <[email protected]> wrote:
>> > > > >try 'su' first
>> > > > Isnt this android console terminal,  by default have root access?
>> >
>> > > > >How to make this to set the value?
>> > > > Not sure whats wrong, btw tried on my froyo setup, it worked like
>> below
>> > > > just after boot.,
>> >
>> > > > # getprop net.eth0.dns1
>> >
>> > > > #  setprop net.eth0.dns1 9
>> > > > # getprop net.eth0.dns1
>> > > > 9
>> > > > #
>> > > > #
>> >
>> > > > On Wed, Aug 18, 2010 at 8:32 PM, Robert Greenwalt <
>> [email protected]>wrote:
>> >
>> > > >> try 'su' first
>> >
>> > > >> R
>> >
>> > > >> On Wed, Aug 18, 2010 at 6:56 AM, guru <[email protected]>
>> wrote:
>> >
>> > > >>> Hi all
>> >
>> > > >>> I am trying to set system property so some value. like
>> >
>> > > >>> # setprop net.eth0.dns1 9
>> > > >>> # getprop net.eth0.dns1
>> >
>> > > >>> #
>> >
>> > > >>> if i follow above steps it is not setting system property. what
>> may be
>> > > >>> the reason for this?
>> >
>> > > >>> How to make this to set the value?
>> >
>> > > >>> Thanks
>> > > >>> Gururaja
>> >
>> > > >>> --
>> > > >>> unsubscribe: 
>> > > >>> [email protected]<android-porting%[email protected]>
>> <android-porting%[email protected]<android-porting%[email protected]>
>> >
>> > > >>> website:http://groups.google.com/group/android-porting
>> >
>> > > >>  --
>> > > >> unsubscribe: 
>> > > >> [email protected]<android-porting%[email protected]>
>> <android-porting%[email protected]<android-porting%[email protected]>
>> >
>> > > >> website:http://groups.google.com/group/android-porting
>>
>> --
>> unsubscribe: 
>> [email protected]<android-porting%[email protected]>
>> website: http://groups.google.com/group/android-porting
>>
>
>  --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to