Android OS Forum banner

[Fix] Verizon Voicemail Notifications for Gingerbread

25463 Views 93 Replies 40 Participants Last post by  jas0nmack
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:

  1. Decompile framework.jar
  2. Navigate to 'com\android\internal\telephony\cdma\CDMAPhone.smali'
  3. Locate '.method public updateMessageWaitingIndicator(I)V'
  4. Change it to '.method updateMessageWaitingIndicator(I)V'
  5. Locate '.method updateMessageWaitingIndicator(Z)V'
  6. 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
  7. Close 'CDMAPhone.smali'
  8. Navigate to 'com\android\internal\telephony\cdma\RuimRecords.smali'
  9. Locate '.method public setVoiceMessageWaiting(II)V'
  10. 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
  11. 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
See less See more
  • Like
Reactions: 5
1 - 20 of 94 Posts
Good job, dude.
Will this work on an odexed Rom or only on deodexed?

Sent from my ADR6400L using Tapatalk
Wow. That must have taken some time to figure out. Nice job!

Now I just prefer google voice anyway, but this is a nice fix for those that need it!
Indeed. You're swell!

Sent from my ADR6400L using RootzWiki Forums
orcsbane13 said:
Will this work on an odexed Rom or only on deodexed?

Sent from my ADR6400L using Tapatalk
Deodexed.
eris, I'd like to say that I am proud that we decided to make you part of the team.

Without ever asking.

:D
Great, Thank you
Adrynalyne said:
Deodexed.
Thought so, thanx. :)

Sent from my ADR6400L using Tapatalk
Adrynalyne said:
eris, I'd like to say that I am proud that we decided to make you part of the team.

Without ever asking.

:D
I did just kinda show up didn't i? :)

Sent from my WP7 with iOS 5.
Not on Sense but you are quite an amazing developer to fix something HTC couldn't in the past few months! Pretty kickass if you ask me!!!
Mustang302LX said:
Not on Sense but you are quite an amazing developer to fix something HTC couldn't in the past few months! Pretty kickass if you ask me!!!
The scary part is how long it took.

I gave him the files to work with, went and picked up my daughter and he was done...

LOL
Adrynalyne said:
The scary part is how long it took.

I gave him the files to work with, went and picked up my daughter and he was done...

LOL
WOW! Again I'm not a Sense fan but you guys are the reason people still love their TBolts!!
Adrynalyne said:
The scary part is how long it took.

I gave him the files to work with, went and picked up my daughter and he was done...

LOL
That is scary. And awesome. Unless your daughter was overseas and you were here.

Can't wait for the Vigor to see what you guys come up with!
abqnm said:
That is scary. And awesome. Unless your daughter was overseas and you were here.

Can't wait for the Vigor to see what you guys come up with!
LOL. I was gone for 30 minutes max.
Adrynalyne said:
LOL. I was gone for 30 minutes max.
Haha that definitely is awesome.
Wait! Why do we need this? "I'm using VVM and it works perfect! You guys must be doing something wrong!" lol sorry couldn't resist after reading some posts by some at AC.
1 - 20 of 94 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top