android problems with native property_set method
<p>I am trying to use the native property_set method from a java app using jni. I can read the value from the property but i am not able to set it. Do i miss something here? Do i need special rights?</p>

<pre><code>#include &lt;cutils/properties.h&gt;

    char key[PROPERTY_KEY_MAX];
    char value[PROPERTY_VALUE_MAX];

    strncpy(key, "test.rate", PROPERTY_KEY_MAX);
    property_get(key, value, "");
    int rate = 0;
    rate = atoi(value);
    TRACE("####### Got %d from property test.rate", rate);

    strncpy(value, "15", PROPERTY_VALUE_MAX);
    int ret = property_set(key, value);
    TRACE("####### property_set(%s)for test.rate, retVal=%d",value, ret);

    property_get(key, value, "");
    rate = atoi(value);
    TRACE("####### Got %d from property test.rate", rate);
</code></pre>

<p>returns:</p>

<p>Got 20 from property test.rate</p>

<p>property_set(15)for test.rate, retVal=0</p>

<p>Got 20 from property test.rate</p>
