Alps/packages/apps/mms/src/comandroid\mms\transation\messagingnotification.java
private static void UpdateNotification () method
if (isnew) {
Messageutils.handlenewnotification (context, messagecount);
M:add for OP09 @{
if (Mmsconfig.issupportctfeature ()) {
Wakeupscreen (context);//Here is actually the way to wake up the screen, but because it is in accordance with the needs of OP09, the inside requirements in the condition of inserting headphones will wake up, if acceptable, please remove the above if judgment, if not accept, In the next else branch, write another method.
}
else{
PowerManager PowerManager = (PowerManager) (Context.getsystemservice (Context.power_service));
Powermanager.wakelock WakeLock = null;
WakeLock = Powermanager.newwakelock (Powermanager.full_wake_lock | Powermanager.acquire_causes_wakeup
| Powermanager.on_after_release, "Mms_wake_lock");
Long wakeuptime = 0;
try {
Contentresolver CR = Context.getcontentresolver ();
Wakeuptime = Android.provider.Settings.System.getInt (CR, Settings.System.SCREEN_OFF_TIMEOUT);
} catch (Settingnotfoundexception e) {
MMSLOG.E (TAG, "Exception occured in Wakeupscreen ()");
}
Wakelock.acquire (Wakeuptime); }
}
/// @}
}
Android KK version after receiving SMS, light screen operation