Joined
·
380 Posts
So, as anyone who is on Gingerbread knows, Voicemail Notifications don't work. The stock ones, that is. With the recent announcement the 2.11.605.3 would be OTA, and still didn't have them, I set out to correct the problem.
Well, devs, here is your fix:
For those of you not so developmentally inclined, we stuck it in a nice flashable zip for you. This zip should work on ANY sense-based, deodexed Gingerbread ROM from 2.10.xxx.xx on up including the BAMF 2.4x series, but it has not been tested. This will not work on BAMF SoaB or Forever. Those patches are in their threads. If you are unsure, wait for your dev to make the needed changes. Obviously, you must be rooted.
Download: http://www.multiupload.com/7CKMD9R282
Well, devs, here is your fix:
- Decompile framework.jar
- Navigate to 'com\android\internal\telephony\cdma\CDMAPhone.smali'
- Locate '.method public updateMessageWaitingIndicator(I)V'
- Change it to '.method updateMessageWaitingIndicator(I)V'
- Locate '.method updateMessageWaitingIndicator(Z)V'
- Insert the following code after the '.end method' annotation:
Code:.method public updateMessageWaitingIndicator(ZI)V<br /> .registers 3<br /> .parameter "mwi"<br /> .parameter "count"<br /> .prologue<br /> .line 1497<br /> invoke-virtual {p0, p2}, Lcom/android/internal/telephony/cdma/CDMAPhone;->updateMessageWaitingIndicator(I)V<br /> .line 1498<br /> return-void<br /> .end method
- Close 'CDMAPhone.smali'
- Navigate to 'com\android\internal\telephony\cdma\RuimRecords.smali'
- Locate '.method public setVoiceMessageWaiting(II)V'
- Replace the entire method with the following code:
Code:.method public setVoiceMessageWaiting(II)V<br /> .registers 5<br /> .parameter "line"<br /> .parameter "countWaiting"<br /> <br /> .prologue<br /> const/4 v1, 0x1<br /> <br /> .line 677<br /> if-eq p1, v1, :cond_4<br /> <br /> .line 700<br /> :goto_3<br /> return-void<br /> <br /> .line 696<br /> :cond_4<br /> iget-object v0, p0, Lcom/android/internal/telephony/cdma/RuimRecords;->phone:Lcom/android/internal/telephony/PhoneBase;<br /> <br /> <br /> invoke-virtual {v0, v1, p2}, Lcom/android/internal/telephony/PhoneBase;->updateMessageWaitingIndicator(ZI)V<br /> <br /> goto :goto_3<br /> .end method
- Recompile and enjoy your fancy new Voicemail indications.
For those of you not so developmentally inclined, we stuck it in a nice flashable zip for you. This zip should work on ANY sense-based, deodexed Gingerbread ROM from 2.10.xxx.xx on up including the BAMF 2.4x series, but it has not been tested. This will not work on BAMF SoaB or Forever. Those patches are in their threads. If you are unsure, wait for your dev to make the needed changes. Obviously, you must be rooted.
Download: http://www.multiupload.com/7CKMD9R282