That's right, unless you are signed with the platform certificate, you can't
write there.  That is why they are secure. ;)

On Tue, Mar 17, 2009 at 2:46 AM, nighteagle <[email protected]> wrote:

>
> I have a problem while writing
> android.provider.Settings.Secure.ENABLED_INPUT_METHODS in my
> application. It will throw a security exception:
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):
> java.lang.SecurityException: Cannot write secure settings table
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.os.Parcel.readException(Parcel.java:1234)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.database.DatabaseUtils.readExceptionFromParcel
> (DatabaseUtils.java:144)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.database.DatabaseUtils.readExceptionFromParcel
> (DatabaseUtils.java:110)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.content.ContentProviderProxy.insert
> (ContentProviderNative.java:
> 320)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.content.ContentResolver.insert(ContentResolver.java:336)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.provider.Settings$NameValueTable.putString(Settings.java:409)
> 03-17 17:43:15.717: ERROR/AndroidRuntime(6950):     at
> android.provider.Settings$Secure.putString(Settings.java:1520)
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to