yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Cipherblox:
I actually attempted to commit code. Unfortunately, I am unable to compile CM6.1 myself, nor am I able to successfully make a branch off of their trunk - so I am unable to commit :(

I would love to, I would also love to know what else I need to do to get it working so I don't run into the same problem when I eventually figure out what Phantom Voicemail is up to ;)

Good to see that you like AOSP and that you have found something that works for you as well. Thanks for testing all these times for me - I'll keep you up to date as soon as I know more regarding 3rd party system APKs.

-Kevin
[Hero CDMA Android Development] tubazeppelin:
Anything still working with this?

I've recently switched to AOSP but for some reason the new MMS.apk doesn't work at splitting my messages. Here's the code I used...maybe there's a problem in that:

adb remount

adb push mms.apk.zip /system/app/

then I rebooted and nothing seems to have changed.
[Hero CDMA Android Development] Cipherblox:
I am still working on this, but I've been tied up with work recently.

Looking at your command, the most immediate problem I see is that your push command isn't quite right.

This isn't a flashable or zipaligned zip. It should have downloaded as a .apk. Thus, you should just do:

adb remount

adb push Mms.apk /system/app/

I'm surprised your command didn't throw a 'File Not Found' error.

-Kevin
[Hero CDMA Android Development] JustRuin:
The mms.apk is not supposed to be zipped. If you were to check your /system/app directory, you'd see both mms.apk and mms.apk.zip.
[Hero CDMA Android Development] tubazeppelin:
Hmmm, yeah, I thought it was odd when I was doing it. It downloads to my computer as a .zip file. I have no idea why. Putting .zip at the end was the only way I could get a response out of adb so I figured it was doing something. I guess that "something" was just putting a useless file in my /system/app folder :|

Wow I'm really kind of perplexed as to why it keeps downloading as a .zip file. I've tried several times...
[Hero CDMA Android Development] Cipherblox:
Hmm that is odd indeed. I know Safari will attempt to unzip all files by default, but I have never heard of anything compressing it before. It is possible that it is just adding the .zip extension to it and not actually compressing the file-- in which case, you should just rename the file without the .zip extension.

-Kevin
[Hero CDMA Android Development] SirRipo:
Agreed. Just try renaming it without the .zip, should fix it up. If you have HTC Sync installed on your computer it should recognize it as an "application file" or something like that.
[Hero CDMA Android Development] tubazeppelin:
I downloaded the .apk from my phone this morning and put it on my machine via USB and it showed up fine--.apk, no .zip. I think it may have been an issue with Chrome but who knows.

Now I'm just miffed because adb won't let me remove the .zip file:mad:
[Hero CDMA Android Development] BJex:
Phantom Voicemails

I use CM6 and I still have the phantom voicemail notifications. I use google voice. I have used VVM as well, either way I still get them. Yes I have wiped and cleared cache etc. I am very well versed at this.
[Hero CDMA Android Development] 151jcolon:
im trying to help Gamingphreek with the mms issue..

i did this zip. im ussing nightly 151 . i flashed the zip already and my icon is there. im gonna send large message right now. reporting later... here is the zip.

flash in recovery

test failed :(
[Hero CDMA Android Development] SirRipo:
Is the zip supposed to replace the apk in the /system/app folder? If it doesn't work, I suppose I'll just leave it alone. But something tells me that it's something that has to be pushed via adb, as opposed to just flashing it. The issue with CM6.1 is that for some reason it doesn't recognize if you replace a system app.

On a side note, any progress on getting someone to compile a build with gamingphreek's apk instead of the normal one?
[Hero CDMA Android Development] Cipherblox:
Yea, I'm not sure how people are getting this file in a .zip format, but I didn't set it up in a manner that it would be copied to the right directory in a zip.

All that one has to do is:

1. Download Mms.apk

2. adb remount

3. adb push path/to/Mms.apk system/app

I know AOSP was talking about it, but I don't know if he is looking to incorporate it in AOSP 0.9.9. I'm still trying to find some reason CM6.1 won't recognize other APKs.

I know everyone is looking forward to fixes to the above issues, but it is unfortunately going to be a couple of days until I can work on it again. My Grandmother is very close to passing away and I am with my family back in my hometown. If things get quiet, I might do some work though.
[Hero CDMA Android Development] pfer10:
FYI > 160 characters is working for me in 0.9.9
[Hero CDMA Android Development] SirRipo:
Don't worry about it too much gamingphreek. Take care of family first. Best of luck.
[Hero CDMA Android Development] erictyler11:
$o is this thread dead? J/w cuz I was looking forward to this fix, if possible.
[Hero CDMA Android Development] Cipherblox:
I still haven't received a response from anyone at Cyanogen regarding the fix. Thus, I am stuck on the SMS Text for CM6 users.

I can verify that some towers accept messages that are larger than 160 characters whereas others do not. Fredericksburg, VA towers accepted my longer texts without problem whereas Leesburg, VA towers rejected it until I applied my modified APK.

As for the Voicemail, I'm sorry, I've simply been bogged down. I have a free night tonight and should be able to at least attempt to make some progress on it.

-Kevin
[Hero CDMA Android Development] tubazeppelin:
703 Represent!

I gave up...I just split it manually now because I don't want to screw with using Handcent or anything else. It's only a matter of time until I EVO up though so I can live with it.

phreek way to go on all of this. If you're looking for work in the mobile development field PM me.
[Hero CDMA Android Development] zwizzle:
Gamingphreek,

In case you get a chance to work on the voicemail issue some time, the guy who originally posted the bug on Cyanogenmod proposed this solution:

"Carrier (Sprint) uses SMS voicemail not standard and there is no new voicemail. Stock ROM ignores either LISTEN_MESSAGE_WAITING_INDICATOR or blocks Standard Voicemail Notifications.

Option to block either would fix issue."

The full bug report is here: http://code.google.com/p/cyanogenmod/issues/detail?id=2507

We all wish your family the best.
[Hero CDMA Android Development] BothGunzUP:
An idea... I do this with AOSP Rom before I flash it so maybe someone running CM6.1 could try this:

Open the .zip file with 7Zip. Navigate to System > App inside 7Zip.

Once there take GamingPhreek's Mms.apk from the first post and drag and drop it into the System > App folder inside the ROM .zip file.

Then simply flash it like you would any other rom.

Try that and see how it goes. This way if there is any file signing on first boot, the new Mms.apk will be included and accepted?

I do this with AOSP Rom like I stated early just so I don't have to push the new one over and reboot.

No guarantees it will work but worth a shot.
[Hero CDMA Android Development] Cipherblox:
Very interesting thought!! If I get stuck on the voicemail issue for a while, I might flash some ROMs and try this as well.

-GP
[Hero CDMA Android Development] SirRipo:
Actually, that's a great idea. I'll give it a shot tonight/tomorrow. Is there still a separate fix for CM 6.1?

Downloading the CM6.1 stable now and the fix, will probably flash tomorrow, but perhaps tonight yet.

Kay, so I just did this, and it fails. Starts to verify the update package, then shows
[Hero CDMA Android Development] Cipherblox:
That is excellent. Error messages are something I can work with. From what I understand, wrong digest is a signing type error...
[Hero CDMA Android Development] SirRipo:
So I would need to sign the fixed rom package? how does one do that? Never messed with signing things before.
[Hero CDMA Android Development] Cipherblox:
Well I think I would need to.

Honestly Digest makes it sound like CM6 is doing a sort of hash upon installation, realizing that the hash doesn't match up (As Mms.apk is different), and kicking it back.

I really need to get in touch with someone from CM6 to see what they are doing. I'm going to try posting in their forum again. Someone is bound to answer me sooner or later, right?

-Kevin
[Hero CDMA Android Development] SirRipo:
hopefully.
[Hero CDMA Android Development] posguy99:
http://review.cyanogenmod.com , submit a patch.
[Hero CDMA Android Development] SirRipo:
Well I added an update to the bug report and voted for it. Mentioned the "fixed" apk, but who knows what will happen.
[Hero CDMA Android Development] BlaqkAudio:
Maybe you could talk with Deca, he just modded the camcorder apk to include 480x320 res. If he can modify the system apk, maybe he can see what's wrong with your apk, and why it's not being recognized.
[Hero CDMA Android Development] SirRipo:
That would be cool. Where does one get the camcorder apk?
[Hero CDMA Android Development] SirRipo:
Also, that issue report link seems to have changed. I can't seem to fund the issue report from before, so maybe create a new one?

Sprint said no Froyo for Hero, I said eff that.
[Hero CDMA Android Development] vecchp:
I was bored tonight and took a shot at the phantom vm notification resolution. I was kind of lazy so i just commented out what I believed to be the voicemail notification counter. This "should" prevent the phantom voicemail notification from ever showing up since the voicemail count is hard coded to 0.

I use GV anyway so if this works hiding the notification is enough for me. I haven't been able to test this on a phone that has the phantom vm yet since it is not home at the moment.

for some reason my cm6.2 didn't compile a keyboard so here is a gb keyboard. Let me know if this works.

Links in next post since I have less than 8 xda posts...
[Hero CDMA Android Development] NegativeOne13:
http://www.mediafire.com/?7hu1x4okbcjwck3 for CM6.2 phantom voicemail fix http://www.mediafire.com/?wapbc7rcuwp3p1q for gb keyboard

Posted for and with the consent of vecchp.
[Hero CDMA Android Development] vecchp:
If this works i'll see if i can get a aospmod version that works
[Hero CDMA Android Development] ASimmons:
Is the cm 6.2 rom a fix for the phantom voice mail notification? If so where is the fix in the rom?
[Hero CDMA Android Development] vecchp:
The fix is part of my custom build of cm6.2. I modified the java code in phone.apk and then compiled it into cm6.2. I'm not even sure if it was my code editing or cm6.2 that fixes. Try 6.2 stock before you try my build of 6.2. I had my dad try it on my mom's phone that was having the problem and the voicemail icon hasn't shown up. Since i'm 3k miles away from him I don't want to have him reflash back to stock since he just got everything setup again.
[Hero CDMA Android Development] zwizzle:
Thank you so much for working on this. I've been waiting for months for a fix for this issue. I tested the rom and it worked both on a restart and going into and out of airplane mode. Any chance you could make this change into a flashable zip? Thanks again.

EDIT: And I forgot to mention, I have been using cm6.2 for awhile now and it did NOT fix the issue, so it was definitely your modification.
[Hero CDMA Android Development] vecchp:
Awesome to hear that it works for you! When I get the time I'll work on seeing what is needed to make a flashable zip. I work full time and just started a class in my masters program so I'm not exactly sure when that will be. Maybe this weekend?

if anyone want to try it out themselves all I did was set all voice-mail/voice-message counts to 0 in the phone.apk source. There is probably a better way but that was the quickest.
[Hero CDMA Android Development] izanagi:
'gents, isn't there an option in Clockwork Recovery to flash an unsigned zip?
[Hero CDMA Android Development] vecchp:
I think he was referring to a zip which only has the pieces needed for the fix. I tried just the phone.apk with aospmod and it didn't seem to work. so maybe its either the phone.apk only works in cm6.2 or there are more files that are needed. Right now i haven't spent too much time looking at it so I can't tell you.
[Hero CDMA Android Development] GeezyAF:
Will the SMS fix work on jaybobs roms?
[Hero CDMA Android Development] vecchp:
Looks like there is another fix out now for phantom VM:

http://xdaforums.com/showthread.php?t=896000
[Hero CDMA Android Development] Psycoboy15:
I wouldn't consider this a fix. It may be a work around but not a fix at all. Since it does require having another sprint phone and more.
[Hero CDMA Android Development] zwizzle:
To anybody curious to try out this fix: it worked for me. I posted a few additional notes about it near the end of the thread. Not sure if it was worth the time and effort but it sure is nice to not have to hear that nice *BEEP BEEP BEEP* whenever I power on the phone. :D
[Hero CDMA Android Development] baldwin69:
posted in the wrong thread, sorry
[Hero CDMA Android Development] SirRipo:
In case Phreek is still hanging around, Any word from the guys over at CM about including the SMS fix in the ROM? Or any progress on getting it to work?
[Hero CDMA Android Development] cteneyck:
Phantom voicemail work around works but be warned

If you use this to get the icon fixed, make sure that they don't put the 10.00 data add on, on, if it wasnt there before.
[Hero CDMA Android Development] JusticeAA:
If you are looking for the issue report for the voicemail notification it is here:

http://code.google.com/p/cyanogenmod/issues/detail?id=2507

Also if vecchp could post excatly where he made those changes in the phone.apk it would be a big help.

I decomplied the phone.apk but I am to noobish to figure out how to change the voice-mail/voice-message counts to 0.

Thanks!
[Hero CDMA Android Development] zwizzle:
In case anybody is still wondering, CM7 RC now includes the following fix:

"Common: SMS split for braindead carriers - Mike Wielgosz"

It's in the Messaging app > Settings > SMS split

It also appears they've included a "fix" for the phantom voicemail. Settings > Call settings > Voicemail notifications. Seems it should work if you use Google Voice. One commenter said it caused excessive battery drain though so idk.
[Hero CDMA Android Development] Cipherblox:
I apologize to people who have been developing Android Source for a while, I'm still feeling my way through all the code so this may not be all that earth shattering yet.

The MWI (Message Waiting Indicator) for Voicemail is set in NotificationMgr.java; however, a variable 'visible' of type boolean is passed to the updateMwi()

I would assume there is some sort of run-loop going that toggles the updateMwi() method to be called; however, I'm still trying to find it. If anyone knows, that would be great!

-Kevin
[Hero CDMA Android Development] cromat:
Voicmail issue

I have this issue as well, I'll try and grab the source for the cynnaogen mod tonight and take a look.
[Hero CDMA Android Development] obsanity:
I've been on cm6 for months now and I have never had this issue as you are describing.
[Hero CDMA Android Development] theimpaler747:
Same here, some have it though
[Hero CDMA Android Development] Cipherblox:
If you are using the stock messaging app, you have the 160 characters problem. It is a problem/limitation in the Android source code at present.

At any rate the overwhelming majority of people running ROMs do have these problems. I think enough is enough when saying "I have never had this issue". This ROM is for development to fix the 2 issues - if you haven't experienced it please do not post here anymore.
[Hero CDMA Android Development] theimpaler747:
I think he was referring to the voicemail issue ;)
[Hero CDMA Android Development] brett1211:
Same sms problem here for quite some time on cm6, even with the newest of the nightlies. anyting >160 chars frailed to send. Ended up having to setup Handcet to automatically split my messages prior to sending them out.
[Hero CDMA Android Development] Cipherblox:
Hmm - good point =P

With that in mind, since everyone on stock messaging has to work around that issue (via Handcent or manually splitting) maybe I should focus on that first...
[Hero CDMA Android Development] theimpaler747:
I agree :) Let me know if you need anything, if I have time I can help out some
[Hero CDMA Android Development] theimpaler747:
Yup, that's why this thread is here, to try and solve that :D
[Hero CDMA Android Development] Cipherblox:
Thanks theImpaler!! :)

Ok so I found the code that handles sending SMS/MMS messages.

If anyone else is working on the issue the WorkingMessage.java is what you are looking for.

About 2/3 of the way through you will find a 'public void send()' method which then spawns Java Threads using the Runnable libraries to send off the message.

There doesn't appear to be ANY sort of check for 160 characters or less. If I loop and wait for the Thread to signal a status of the child thread I am essentially wait looping the main thread thus pausing the phone in my mind.

I guess there is no point in not trying a bunch of different ways and seeing if I can't get it working.

-Kevin
[Hero CDMA Android Development] theimpaler747:
See what handcent does in their code to split the messages, and see if that could be integrated into the CM code
[Hero CDMA Android Development] Cipherblox:
Ok I have my fix for the SMS problem built and I *SHOULD* only need to replace the MMS.apk. Before I give it to anyone to test, I'm going to replace mine and make sure nothing crazy happens.

I'll post back and let everyone know if it works or not.
[Hero CDMA Android Development] theimpaler747:
Great!!! If you fix it, submit it to CM so they can add it into their builds :)
[Hero CDMA Android Development] Cipherblox:
Ok I have work in the morning (Man is it going to stink getting up after being up this late) so I can't work on it any more.

In my testing at this point, the phone no longer fails to send a message if it is over 160 characters. Unfortunately, it still only sends the first part and forgets to send the second part.

I'll attempt to work on it more tomorrow, but I may not be able to get to work on it until Sunday.

-Kevin

Edit: Can anyone tell me the significance of passing the ThreadId along through all the messages? I'm worried that a Synchronize() is being called which is causing the child thread to exit before my loop can push the next text segment through.
[Hero CDMA Android Development] theimpaler747:
Well hey, its progress! Nice work :)

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Android Development] Cipherblox:
** I GOT IT WORKING **

Since I am at work without my personal laptop, I have no way of compiling the code and testing it on my phone; however, I tested the java code on my work computer and it works like a charm!!

I'll try and find a way to post the new Mms.apk for everyone to test.
[Hero CDMA Android Development] theimpaler747:
Very nice work!!! Really excellent :)
[Hero CDMA Android Development] JusticeAA:
That is fantastic!

Please don't forget about that voicemail problem :D
[Hero CDMA Android Development] SirRipo:
Sweet! That's been my only complaint about CM6 so far. If I can finally text without worrying about character count, I'll be a happy camper.

Sprint said no Froyo for Hero, I said eff that.
[Hero CDMA Android Development] hotaru:
i've been using jaybob413's cm6 builds for a while, and messages autosplit fine for me... just tested sending one to myself and it split at 153 characters.
[Hero CDMA Android Development] SirRipo:
What's the difference between these builds and the official CM6 builds? Where can I get them?
[Hero CDMA Android Development] JustRuin:
He has the link to the ROM in his sig.
[Hero CDMA Android Development] Cipherblox:
*FIXED*

Uploading the .apk somewhere and linking to the first post and my signature.

Let me know how it goes. I'm going to try and fix the phantom voicemails now. I got no less than 10 of them on my travel from Northern VA to Southern VA.

-Kevin
[Hero CDMA Android Development] theimpaler747:
Very nice, and like I said, make sure you submit the changes to CM so they can build them in :)
[Hero CDMA Android Development] Cipherblox:
I'm trying to submit to Google right now, but I'm having trouble committing the changes for review.

I'll make sure to upload to CM next. I'll leave the .apk in my signature and in the OP for all future AOSP based ROMs that may not include it.

-Kevin
[Hero CDMA Android Development] theimpaler747:
Ok sounds good too
[Hero CDMA Android Development] BothGunzUP:
Can I get step by step instructions on how to update this mms.apk. I too have this split message issue and really appreciate all the work on resolving it.
[Hero CDMA Android Development] Cipherblox:
Using the Android SDK and ADB. If using Mac or Linux, it is ./adb [command]

1. adb remount

2. adb push [path to my Mms.apk] /system/app

3. adb reboot

Fix is applied then.

-Kevin
[Hero CDMA Android Development] BothGunzUP:
OK, I pushed the new Mms.apk to my /system/app folder on my Hero and now I don't have any messaging icons anywhere. Was I supposed to install it or simply push it over the old Mms.apk?
[Hero CDMA Android Development] 151jcolon:
yup.. same here
[Hero CDMA Android Development] BothGunzUP:
When trying to run the new Mms.apk using Estrongs File Explorer I get a Parse error. There is a problem parsing the package.
[Hero CDMA Android Development] xDragod:
I think the APK is borked. I used Android Commander to push it to /system/app/ and it doesn't properly install, so I lost my original MMS.apk

Here's the MMS.apk from CM6.1.0 RC1 for anyone who needs it.
[Hero CDMA Android Development] BothGunzUP:
I yea just pulled the original Mms.apk from the CyanogenMOD 6.1 RC1.zip and I just pushed that back onto my phone.
[Hero CDMA Android Development] 151jcolon:
hey bothgun are you using any different font? i reflashed the rom without the custom font . now is sending perfect
[Hero CDMA Android Development] Cipherblox:
I just pushed it right over top of my Mms.apk and sent out multiple test messages to multiple people after restarting and have not run into a single problem.

You do not run this .apk at all. You simply push it right over top of your existing Mms.apk, restart, and it will use the new apk when performing MMS/SMS operations.

-Kevin

Edit: Additionally this shouldn't affect anything with icons in the slightest. I pulled the source code right from the master branch of the AOSP repository. Let me pull the source code from CM6 (Since I know they further modify the files that compile to Mms.apk) and try generate a version unique for CM6 just in case.
[Hero CDMA Android Development] BothGunzUP:
What do you mean exactly by a custom font? And what ROM did you reflash without a custom font? CyanogenMOD? Is there a place I can check to see if I am using a different font than standard, so I could change it back if need be?
[Hero CDMA Android Development] theimpaler747:
Have you flashed a theme?
[Hero CDMA Android Development] BothGunzUP:
I've downloaded different ADWLauncher Themes to try different ones out, but I deleted them and went back to do the default ADW theme.

I have installed Super-Private Conversations to intercept the 9016 messages, could that be interfering? It was installed when I pushed the new Mms.apk over but I have since removed it and installed Handcent because it allows auto splitting at 160 chars.
[Hero CDMA Android Development] theimpaler747:
That shouldn't interfere (might as well try I guess) :) And no, you haven't installed any new fonts if you've only done ADW themes, I meant full themes for CM :D