Hi,

this is only my second android app, so please pardon my ignorance. my
sample application will allow user to turn GPS on/off when a button is
pressed. this will be deployed on a test phone given to us by an
android handset OEM. the following is added to the
AndroidManifest.xml:

 <uses-permission
android:name="android.permission.WRITE_SECURE_SETTINGS" />

Then from the eclipse plugin, we right click on the project name, then
'Android Tools -> Export Signed application package' and signed it
with a keystore provided by the OEM( OEM knows the app will try to
access Secure settings).

However, during installation, this error shows up in the logfile, and
the gps on/off does not work:

WARN/PackageManager(1920): Not granting permission
android.permission.WRITE_SECURE_SETTINGS to package com.samples.myapp
(protectionLevel=3 flags=0x4446)

my questions:

1. is this a problem with the certificate(keystore) that the OEM
provided? maybe they haven't given a platform certificate?

2. are there any other additional steps that have to be taken while
building the app? I saw some posts talking about using something
called 'android.mk' and setting a LOCAL_CERTIFICATE:= platform value.
is this necessary? if yes, is it possible to do from the eclipse
plugin?

3. is there anything else that the OEM has to do to enable this app?

I will very appreciate your responses.

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to