Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

- - - - -

[Fix] Verizon Voicemail Notifications for Gingerbread

  • Please log in to reply

OP erishasnobattery

erishasnobattery

Developer

Posted 28 September 2011 - 01:23 PM #1

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:

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

    .method public updateMessageWaitingIndicator(ZI)V
        .registers 3
        .parameter "mwi"
        .parameter "count"
        .prologue
        .line 1497
        invoke-virtual {p0, p2}, Lcom/android/internal/telephony/cdma/CDMAPhone;->updateMessageWaitingIndicator(I)V
        .line 1498
        return-void
    .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:

    .method public setVoiceMessageWaiting(II)V
        .registers 5
        .parameter "line"
        .parameter "countWaiting"
    
        .prologue
        const/4 v1, 0x1
    
        .line 677
        if-eq p1, v1, :cond_4
    
        .line 700
        :goto_3
        return-void
    
        .line 696
        :cond_4
        iget-object v0, p0, Lcom/android/internal/telephony/cdma/RuimRecords;->phone:Lcom/android/internal/telephony/PhoneBase;
    
    
        invoke-virtual {v0, v1, p2}, Lcom/android/internal/telephony/PhoneBase;->updateMessageWaitingIndicator(ZI)V
    
        goto :goto_3
    .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

Edited by erishasnobattery, 28 September 2011 - 06:19 PM.

  • 31 Likes
Samsung Galaxy Nexus <-- HTC Rezound <-- HTC Thunderbolt

Like my Work? Donate

PapaSmurf6768

PapaSmurf6768

Average Android

  • 120 posts

Posted 28 September 2011 - 01:28 PM #2

You are just too good eris.
  • 0 Likes

ihtfp69

ihtfp69

Developer

Posted 28 September 2011 - 01:29 PM #3

Good job, dude.
  • 0 Likes
Phone #1: Rooted Samsung Galaxy Nexus CDMA - BAMF Paradigm
Phone #2: Rooted Thunderbolt - SkyRaider Zeus
Tablet: Motorola Xoom

Posted Image

orcsbane13

orcsbane13

Android Apprentice

  • 55 posts

Posted 28 September 2011 - 01:30 PM #4

Will this work on an odexed Rom or only on deodexed?

Sent from my ADR6400L using Tapatalk
  • 0 Likes

Ianxcom

Ianxcom

Android Lover

  • 582 posts

Posted 28 September 2011 - 01:30 PM #5

And Eris does something Verizon can't.
  • 0 Likes

abqnm

abqnm

Carbon-Based Robotic Tech Machine

Posted 28 September 2011 - 01:33 PM #6

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!
  • 0 Likes

If you want to be sure I see your reply, please actually use the QUOTE button as I may not always be subscribed to the thread.

HTC One GPE & Verizon Galaxy S3 (Left Verizon, so it is just a media device now)

Too many old Androids to list...

-Android user/abuser since December 2009-


Nickodarius

Nickodarius

Android Apprentice

Posted 28 September 2011 - 01:41 PM #7

Indeed. You're swell!

Sent from my ADR6400L using RootzWiki Forums
  • 0 Likes

Adrynalyne

Adrynalyne

Developer

  • 573 posts

Posted 28 September 2011 - 01:42 PM #8

Will this work on an odexed Rom or only on deodexed?

Sent from my ADR6400L using Tapatalk


Deodexed.
  • 0 Likes
If you like what I do, donate to my marriage counseling fund :P
Posted Image
https://github.com/adrynalyne

trikotret

trikotret

Android Apprentice

  • 83 posts

Posted 28 September 2011 - 01:48 PM #9

send verizon the bill for the fix
  • 0 Likes

Adrynalyne

Adrynalyne

Developer

  • 573 posts

Posted 28 September 2011 - 01:48 PM #10

eris, I'd like to say that I am proud that we decided to make you part of the team.

Without ever asking.

:D
  • 0 Likes
If you like what I do, donate to my marriage counseling fund :P
Posted Image
https://github.com/adrynalyne