Ok, this problem has me stumped and I'm hoping someone watching the list has 
an idea of what the problem might be.

I've got a device admin policy that installs with an app, however in Froyo 
it won't start at boot (it *does* seem to work fine in Gingerbread). 
The exceptions I get are:

On Shutdown

05-13 23:23:08.956: WARN/DevicePolicyManagerService(2501): Admin 
unexpectedly uninstalled: 
ComponentInfo{sixgreen.itap.mail/sixgreen.itap.mail.PolicyAdmin}


On Bootup

05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504): Failed loading 
admin sixgreen.itap.mail/sixgreen.itap.mail.PolicyAdmin
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504): 
java.lang.IllegalArgumentException: Unknown admin: 
ComponentInfo{sixgreen.itap.mail/sixgreen.itap.mail.PolicyAdmin}
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504):     at 
com.android.server.DevicePolicyManagerService.findAdmin(DevicePolicyManagerService.java:305)
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504):     at 
com.android.server.DevicePolicyManagerService.loadSettingsLocked(DevicePolicyManagerService.java:424)
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504):     at 
com.android.server.DevicePolicyManagerService.systemReady(DevicePolicyManagerService.java:533)
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504):     at 
com.android.server.ServerThread.run(SystemServer.java:584)
05-13 23:25:07.413: WARN/DevicePolicyManagerService(2504): Unknown tag: 
policies

The XML definitions looks like:

<receiver android:enabled="true"

android:label="@string/device_admin_label"

            android:description="@string/device_admin_description"

            android:permission="android.permission.BIND_DEVICE_ADMIN" 
android:name="PolicyAdmin">

            <meta-data

                android:name="android.app.device_admin"

                android:resource="@xml/device_admin" />

            <intent-filter>

                <action android:name=
"android.app.action.DEVICE_ADMIN_ENABLED" />

            </intent-filter>

        </receiver>


and of course:

public class PolicyAdmin extends DeviceAdminReceiver {...}

but it never gets that far... now it looks to me that because the policy 
gets "unexpectedly uninstalled" during shutdown, that I should expect the 
boot failure as well, but I am unable to figure out what the problem is.

No doubt its some small thing I have overlooked, but in that case I would 
expect it to fail in Gingerbread as well.


- Brill Pappin

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