Android OS Forum banner
1 - 20 of 94 Posts

·
Developer
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:

  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
 

·
Carbon-Based Robotic Tech Machine
Joined
·
2,243 Posts
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!
 

·
Developer
Joined
·
380 Posts
Discussion Starter · #13 ·
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.
 

·
Carbon-Based Robotic Tech Machine
Joined
·
2,243 Posts
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!
 

·
Carbon-Based Robotic Tech Machine
Joined
·
2,243 Posts
Adrynalyne said:
LOL. I was gone for 30 minutes max.
Haha that definitely is awesome.
 
1 - 20 of 94 Posts
Top