About Provision APK and DEVICE_PROVISIONED and NotificationManagerService In Android
<p>I have a problem with the Provision APK and the NotificationManagerService on Android Froyo.</p>

<p>In NotificationManagerService.java(frameworks/base/services/java/com/android/server/NotificationManagerService.java)，I found the codes as below:</p>

<pre><code>    // Don't start allowing notifications until the setup wizard has run once.
    // After that, including subsequent boots, init with notifications turned on.
    // This works on the first boot because the setup wizard will toggle this
    // flag at least once and we'll go back to 0 after that.
    if (0 == Settings.Secure.getInt(mContext.getContentResolver(),
                Settings.Secure.DEVICE_PROVISIONED, 0)) {
        mDisabledNotifications = StatusBarManager.DISABLE_NOTIFICATION_ALERTS;
    }
</code></pre>

<p>in the construct method of NotificationManagerService.</p>

<p>Settings.Secure.DEVICE_PROVISIONED is set to be 1 in the Provison APK, My  problem is that,
in the first boot, NotificationManagerService is constructed before the Provison APK launched, so 
mDisabledNotifications will be set to StatusBarManager.DISABLE_NOTIFICATION_ALERTS which
will lead notification has no sounds, vibrate,etc. even after the Provison APK launched, 
Settings.Secure.DEVICE_PROVISIONED is set to be 1, but how the mDisabledNotifications  is set to 0 ?
 NotificationManagerService will not be instanced again, and the only callback will change 
mDisableNotifications is called from the StatusBarService, and I can not find anywhere invoked it after provision apk is launched.</p>

<p>Can anyone give me some advices ? Thanks alot.</p>

<p>Best Regards,
Tiany </p>
