yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] dublus:
Same result here - stays on "Enabling" but otherwise phone doesn't freeze or hang in any way like it did with original wifi calling problems on GB ROMs.

Previously, wifi calling worked on this exact phone with this exact SIM card on several GB ROMs. As far as I know, only the SIM cards with TM9177 will work with wifi calling.

This SIM card also worked in wifi calling on a t-mo Galaxy S2 so I know there are no other issues related to the account or line.

Must be something that has to do with the communication of the wifi app because it never seems to get an answer from the t-mo server and just waits forever.

EDIT- also seems to have screwed up at least the Play Store data connection, even after reboot, no data.
[HD2 Android NAND Development] Stickman89:
Guy's it's already been established in the sensation thread that these libs ONLY work on sense based ROM's. Whether it works for the HD2 at all I don't know, mine unfortunately died some time ago.

I repeat will NOT work on CM or AOSP based ROM's.

Best Regards,

ST1Cl<^^aN
[HD2 Android NAND Development] tytung:
Why?

Does WiFi Calling now depend on the Sense framework? Any proof?

If not, we just need to find the correct dependent libs to make WiFi Calling working.

If you download my flashable file, you will see that I have added some dependent libs.

It's not the original flashable file in the sensation thread.
[HD2 Android NAND Development] tytung:
MAGLDR or cLK?

Remember that "ppp on cLK" and "WiFi Calling" are exclusive feature.

When you flash WiFi Calling stuff, you break the ppp on cLK.
[HD2 Android NAND Development] dublus:
I've never used CLK because of the wifi calling conflict.
[HD2 Android NAND Development] Hammerfest:
really wish there was a way to make WiFi Calling work on cLK... HSPL 3.03 just works better on my device then the magldr required 2.08... huzza for living in a fringe area!
[HD2 Android NAND Development] kylew1212:
@ tytung

I was testing with clk, I didn't realize there was a conflict with connections. I will switch to magldr and do a clean install then I will report back as soon as I find out something.

Thanks again!
[HD2 Android NAND Development] tytung:
Only when cLK devs make RMNET (native for Android) working instead of using PPP (not native Android feature).
[HD2 Android NAND Development] tytung:
Download:

WiFi-Calling-htcleo-ICS_for_NAND_testing-0520.zip

PS: I tested it with my ICS-CM9 ROM to make sure the libs compatibility.

Report:

Did you ever successfully use WiFi Calling on GB?

Did you use MAGLDR bootloader?

When both of the above questions is 'yes', then post your two logs here.

See "Get logs" section below to know how to get it.

Get logs:

If your have a Windows PC, please download android-sdk-windows_platform-tools_r11-lite.zip.

Decompress this zip file to any folder, plug USB cable from your phone to PC, and then run those two batch files (.bat) to get logs.

You need to run them when you see the boot animation.

Two cmd.exe windows will be launched to record logs until you close any cmd.exe windows.

If any of the cmd.exe windows closes itself when in boot animation, please re-run them immediately to make sure there're two cmd.exe windows for logging radio-specific and all logs.
[HD2 Android NAND Development] Rick_1995:
not true iirc, rmnet is qualcomm proprietary network protocol, iirc tegra and samsung exynos use ppp too.
[HD2 Android NAND Development] tytung:
Well, the real problem is not PPP itself, but the ppp wrapper libhtc_ril_wrapper.so.

The original rild.libpath property is /system/lib/libhtc_ril.so which supports RMNET only.

But we need to set rild.libpath=/system/lib/libhtc_ril_wrapper.so for PPP.

# for PPP data connection
rild.libpath=/system/lib/libhtc_ril_wrapper.so
rild.libargs=-d /dev/smd0

And we need to set rild.libpath=/system/lib/librilswitch.so for Wi-Fi Calling.

# T-Mobile Wi-Fi Calling #
rild.libpath=/system/lib/librilswitch.so
rilswitch.vendorlibpath=/system/lib/libhtc_ril.so
rilswitch.ganlibpath=/system/lib/libganril.so
ro.ril.enable.ganlite=1

So they are conflict. We can only set rild.libpath to one value.
[HD2 Android NAND Development] Rick_1995:
Not sure if it will work, but you can try this:

1) rename "libhtc_ril.so" to "libhtc_orig_ril.so"

2) Right here (line 750), change "libhtc_ril.so" to "libhtc_orig_ril.so", compile the lib (i am noob at android development so don't really know how you guys compile shared objects..)

3) rename libhtc_ril_wrapper.so to libhtc_ril.so

4) change vendor ril to "libhtc_ril.so" (this is actually the ppp wrapper) and you can use rild.libpath as /system/lib/librilswitch.so

I'm in hurry so maybe i was not clear, but i hope you understand what i meant.
[HD2 Android NAND Development] tytung:
I know what you said.

But I don't think this name changing method will work.

According to some posts below I refer to when I make WiFi Calling working for GB.

http://xdaforums.com/showpost.php?p=11643634&postcount=103

http://xdaforums.com/showpost.php?p=11744801&postcount=118

D/RILSWITCH( 129): Sending RIL_REQUEST_OEM_HOOK_RAW (GSM_AUTH) to vendor RIL

RILSWITCH will send RIL_REQUEST_OEM_HOOK_RAW (GSM_AUTH) to vendor RIL directly.

But the vendor RIL is now the ppp wrapper which cannot handle this request.
[HD2 Android NAND Development] Rick_1995:
grep -i 'ril_request_oem' ./libhtc_ril_wrapper.c
case RIL_REQUEST_OEM_HOOK_RAW: return "OEM_HOOK_RAW";
case RIL_REQUEST_OEM_HOOK_STRINGS: return "OEM_HOOK_STRINGS";

worth a try, it is just passing all the request to the original ril except for data requests which it manipulates, so it should do the job in theory.
[HD2 Android NAND Development] Hammerfest:
I did mention the fact that the wrapper had zero work done on/with/concerning it a few months ago in the cLK thread...

Needless to say, im glad I seem to have sparked a dev storm to get these libs working with cLK/PPP...

Ill jump for joy when it works... (I currently use Simple Mobile's cheapest plan with my Home WiFi for GoogleVoice calling, I was on TMobile for everything until I moved here with crappy signal... and non-working WiFi calling)

huzza! watching this thread with gutzo!
[HD2 Android NAND Development] bblavat:
Just finished installing on tosti 1.1a, apparently working though at this hour no one to call! Thank you.
[HD2 Android NAND Development] bblavat:
One small aberration the font on the dial pad isn't fitting correctly the numbers are too large and get cropped.
[HD2 Android NAND Development] cajunflavoredbob:
Magldr?
[HD2 Android NAND Development] tytung:
Thanks. I didn't notice it.

After reviewing what we discussed, I think it should be enough to set rilswitch.vendorlibpath=/system/lib/libhtc_ril_wrapper.so.

We don't need to compile a new libhtc_ril_wrapper.so.

To all:

If you are using cLK, please help test them.

For GB ROM:

Flash WiFi-Calling-htcleo-GB_for_NAND_testing-0522_for_cLK_only.zip

For ICS ROM:

Flash WiFi-Calling-htcleo-ICS_for_NAND_testing-0522_for_cLK_only.zip

PS: If you are using MAGLDR, please ignore this post.
[HD2 Android NAND Development] Stickman89:
I was referring to the files available in their current state do not work for CM9/AOSP ICS based roms. Its been confirmed by many users in our thread over on the sensation forum here:

http://xdaforums.com/showthread.php?t=1654940

Also we had a second thread with the exact same results... Working in sense based roms and not CM9/AOSP roms.

I'm not disputing the fact that with modification or sourcing relevant libs for AOSP based roms that you couldn't get it working I was simply stating that in their current state it does not.

#Edit - Looks as though you've been successful at getting this functional in non-sense build, would be great to hear what was amended as there has been a few attempts at patching this for AOSP before which ended up the files getting pulled as it was non-functional.

Best Regards,

ST1Cl<^^aN
[HD2 Android NAND Development] mr_billionaire:
Will this work for SD ICS builds?
[HD2 Android NAND Development] cajunflavoredbob:
Tested with Ice Cream Tosti 1.1a. ICS 4.0.4 AOKP based ROM. cLK 1.5 with stock system configuration. Only apps had been restored with their data.

Google services connect just fine. WiFi Calling app takes a bit to connect, but it eventually does after about 45 seconds to a minute of waiting once WiFi is enabled. I made several test calls varying between one minute and ten minutes with no problem. Calls came in crystal clear with no drops. There is the usual WiFi Calling lag that happens no matter which device you use, but that was negligible. Screen shots attached.
[HD2 Android NAND Development] Hammerfest:
Sweet sauce! I am now going to have to look into getting back on TMobile...

Is the Wifi lag your talking about specific to TMobile? I dont have any issues with lag on GrooveIP app for GoogleVoice calls...
[HD2 Android NAND Development] trex3300:
Thanks for the feedback, however, did you get your data/network connection back after turning off the wifi without having to reboot?
[HD2 Android NAND Development] cajunflavoredbob:
The lag is just the normal audio lag that happens over WiFi Calling app with T-Mobile. normally, the audio lag over normal cellular connection is about 0.5-1 seconds. With WiFi Calling, the lag is about 1.5-2 seconds. It's not a big deal to me. Just figured I'd mention it. It's normal on other native WiFi Calling devices, like my SGS2.

---------- Post added at 03:52 PM ---------- Previous post was at 03:39 PM ----------

Sorry, I should have mentioned this as well. When turning off the WiFi Calling app, WiFi data resumes normally with no interruption. The delay for the cellular radio to re-enable itself is about 5-7 seconds.

Disabling WiFi directly with or without turning off the WiFi Calling feature disables the data connection completely, it seems. It does not return for me even after a reboot. I'm going to do a full wipe and start from scratch to make certain anything I've done isn't the cause.

So, to sum it up, as of right now, WiFi Calling works with the caveat that you give up your data connection. I'll post again in a little while once I've tested further. Voice and text work fine, just no data.

EDIT: I currently have no data connection after doing double formats on each partition and twice wiping dalvik. This may be my own fault. I updated cLK to 1.5 yesterday and haven't had my SIM in the HD2 since the last time I tested tytung's work here several days ago. I'll do a complete reinstall of everything in a moment to confirm if it's cLK that's giving me trouble or not. I haven't done a task29 in a long while anyway. :)
[HD2 Android NAND Development] tonyzoc:
I installed v2 for ICS on Tatungs CM9 HWA 2.1 and it didn't work....stuck on connectiong to T-Mobile. It also killed all data connection services. I'm now reflashing the Rom.
[HD2 Android NAND Development] cajunflavoredbob:
UPDATE: I found out that part of the problem for me was the ROM. I moved back to Tosti 1.1 and mobile data resumed. Flashing WiFi calling kills mobile data no matter what. I haven't even signed in to a WiFi AP yet, and mobile data is not functioning.

As of now, you can either have mobile data OR WiFi Calling. You're getting closer, tytung!
[HD2 Android NAND Development] Rick_1995:
looks like a rom problem.
[HD2 Android NAND Development] cajunflavoredbob:
I fixed the ROM problem by reverting to an older one with working data. After flashing WiFi Calling, data no longer connects. 2G and 3G were toggled, but to no effect.
[HD2 Android NAND Development] tytung:
Just include all the libs in WiFi-Calling-htcleo-ICS_for_NAND_testing-0520.zip.

Then WiFi Calling will work for CM9/AOSP. At least works for HD2.

Edit:

Forgot to mention that you need default.prop too.
[HD2 Android NAND Development] tytung:
That is cLK case.

If you use MAGLDR, you have both mobile data and WiFi Calling. :)

Could you provide logs? Especially the radio-specific log created by "logcat -b radio.bat"?

Get logs: http://xdaforums.com/showpost.php?p=26331256&postcount=713
[HD2 Android NAND Development] tytung:
What's v2 for ICS?

I never release it. Please tell the full filename or the date in the filename?

And make sure you have a new SIM card. Very very important.
[HD2 Android NAND Development] dublus:
I hope I am wrong but I think this is actually not the case.

Yesterday I flashed 520 on my son's HD2 running Dorimanx DM-Nuke-2.3 with MAGLDR and it killed the data connection. Switching off and on data, airplane mode and rebooting didn't help. The wifi calling part seemed to work flawlessly though. Only re-flashing the ROM brought back data.

I will try to get some logs when I get home from work.

Did I miss it or has someone on MAGLDR gotten data and wifi calling to work at the same time on an ICS ROM?
[HD2 Android NAND Development] kylew1212:
I've been on cLK but I've got time to do some testing. I'm about to do a clean install of magldr and tytungs version 2.1 then I will post results.
[HD2 Android NAND Development] kylew1212:
How are you guys getting this to work?

Magldr clean install of Tytungs ICS version 2.1 wifi test version 0520

My system was seemed sorta stable, but froze once trying to enable the wifi calling.

cLK clean install of Tytungs ICS version 2.1 wifi test version 0522

System was terribly unstable and froze up constantly even when not using the app.

I'm not sure whats wrong, I used the correct partition sizes and did a clean install.. Also I know that that rom is good, because I have been using it daily before trying wifi calling.

I have also tested my sim card, and it is compatable with wifi calling. I tried it in another device and it was successful.
[HD2 Android NAND Development] dublus:
The only ICS ROM I have any experience with is Dorimanx DM-NUKE-2.3

I had a spare HD2 when my wife moved up to a SGS2 and was using that for testing but then my son's phone broke and I gave the spare HD2 to him. I had already put the DM ROM on it and he likes it other than the occasional hot reboot.

I hadn't done anything special at all. Just used HD2 Toolkit to do Task29, install MAGLDL, and repartition with 170MB partition and 10MB Cache then flashed the ROM.
[HD2 Android NAND Development] trex3300:
It's a good idea to add about 10MB to your system partition before flashing wifi-calling app
[HD2 Android NAND Development] tonyzoc:
Oops...I meant 0520...v2 was on the GB file.
[HD2 Android NAND Development] tonyzoc:
New sim card? How new? I've replaced my Sim card maybe 1 to 1.5 years ago. Is that new enough? So this should work on tmous and your ICS HWA 2.1 room? If so I'll get another Sim card.
[HD2 Android NAND Development] dublus:
Yours might be too old.

Take it out and look for TM9177. If it doesn't say that somewhere then it won't work.
[HD2 Android NAND Development] tonyzoc:
It is. I'm getting a message that my SIM is invalid. I didn't notice the first time. I'll stop tonight and get a new SIM card.
[HD2 Android NAND Development] kylew1212:
Well I have no idea what I'm doing wrong but something messes up everytime.

Magldr clean install:

Task29

Install Magldr

Install Recovery

Install ICS v2.1

Install Wifi Calling

I installed NexusHD2 v 2.1 and then I installed Wifi Calling 0520 before I restarted my phone or anything. The phone booted up and worked fine before I turned on wifi. Once I turned on wifi and tried to connect to a network it froze.

I did not run logcat this time.

Then I wiped and installed magldr, and booted up the phone. Everything was fine. Power down and then flashed wifi calling 0520, the phone almost booted. It got to the lockscreen and then froze.

I'm attaching logcat of this one.

Edit: I will do another clean install of magldr and run adb asap.
[HD2 Android NAND Development] trex3300:
Also, make sure you increase your system partition size by at least 10MB above the rom requirement to make room for wifi-calling.
[HD2 Android NAND Development] kylew1212:
I used a 200mb partition which is 35 mb more than suggested..

Any other ideas?? I have no clue ..
[HD2 Android NAND Development] aNYthing24:
This is awesome. Finally working with CM9 on the Sensation. Thank you so much.
[HD2 Android NAND Development] dublus:
This is the type of behavior that happens with the wrong SIM card.

I don't remember if you stated you had a new one or not.

If you didn't get it in the last couple months (or even if you did) take it out and read the numbers on it. It has to say TM9177 for it to work correctly.

Sorry if you've already done this.
[HD2 Android NAND Development] kylew1212:
Maybe something is wrong with my sim card. .

My sister has a stock t mobile phone that come with wifi calling. I can use wifi calling on her phone.. My sim doesn't have the numbers you mentioned but neither does hers.
[HD2 Android NAND Development] dublus:
My old SIM card worked fine with several Blackberries and older Samsung phones that had wifi calling but I had constant problems with Android wifi calling until I got the new SIM card. The same thing goes for the other 4 HD2s in our family. None of them worked correctly until they got the new SIM card and every one of them worked fine with older Samsung wifi calling phones. I don't remember the model numbers anymore but one was a silver colored slider phone and one was a flip phone that came in either gray or red. At one point we all had wifi capable Samsung phones and all of us had to get new SIM cards for the Android wifi app to work correctly.
[HD2 Android NAND Development] kylew1212:
Looks like I need a new sim then.. what did you tell them? Data drops?
[HD2 Android NAND Development] dublus:
They know the old ones have problems so you can say just about anything. They should swap them out without any questions. If you have any problem just call customer service and have them note your account. I did that the first time I got one.
[HD2 Android NAND Development] cajunflavoredbob:
Just tell them you got an off contract phone with WiFi calling and need a compatible SIM. If they ask which phone just say it's the T-Mobile SGS2. To get it for free, just call 611 from your phone. When the voice prompt asks what you want to do, say, "customer loyalty." This will take you to the Loyalty department where, if you've been a customer for more than a year, they have the power to ship you a SIM for free. If there is a TMo store near you, you can also just go pick it up straight from the store instead of having it shipped. Just make sure to call them first. They charge you for a new SIM in the stores.
[HD2 Android NAND Development] ascrackoo1:
was working great

wifi calling was working all day, until end of the day. after i lost wifi connection i no longer had any sort of data connection other than wifi. i had to reflash tytungs ics 2.1 w/ 2.3 kernel to get data back.
[HD2 Android NAND Development] carlsontheflyer:
I installed it on my HTC Sensation running CM9. It works!!!

Thanks for your great work!

There is, however, an annoying bug with the proximity sensor. When a call is connected through WiFi Calling, when I put the phone to my ear, it triggers the proximity sensor to turn off the screen, and the speaker cuts out and I cannot hear anything.

It's not a big issue for me since I have my bluetooth permanently implanted in my ear, and when I use it, the proximity sensor is deactivated, so the bug doesn't show up.
[HD2 Android NAND Development] dublus:
Are you on cLK or MAGLDR ?
[HD2 Android NAND Development] runderekrun:
Same here.
[HD2 Android NAND Development] ascrackoo1:
magldr
[HD2 Android NAND Development] dublus:
OK, it looks like both cLK and MAGLDR versions have the same problem now - only wifi data works once you flash the app. Of course each could have a unique cause.

I will try to get a logcat later tonight. It's not so easy because my son is now using the phone that had been my spare for testing and he isn't home much.

If anyone else can post logs as Tytung asked, please do so. I'm sure he would be happy to move forward once he as something to work with.
[HD2 Android NAND Development] VidMan:
Can anyone tell me if wifi calling works on the NEXUSHD2 CM9 V2.1 ROM?

Thanks
[HD2 Android NAND Development] cajunflavoredbob:
Just think of the fame you'll achieve by being the first one to tell us.
[HD2 Android NAND Development] ceo4eva:
I installed this on MIUI 2.5.11 ICS ported by smokin901 I havnt actually made a call with WiFi but i know my text messages have not failed so far.. My only problem is that I would have no service as in 0 bars (its not showing no service) when i try to place a call it would immediately just end.. The WiFi calling logo would turn green and everything but the call will just end.. Idk if it's preventing me from getting calls but i just know that it will not make outgoing calls. My installation steps were pretty basic.. just downloaded the zip and installed it, no other steps was I wrong in doing that or will this only work on GB? I got my sim card yesterday 5/27/2012 so its new​
[HD2 Android NAND Development] kylew1212:
I did some testing today using parnoidandroid.

Task 29

Magldr

Flashed paranoid Android

Flashed wifi calling

Booted

I found out that I do have an invalid sim which causes my phone to freeze when trying to activate wifi calling. So if your phone seems to work normally but freezes when you activate wifi calling your sim is probably invalid also.

I tried my sisters sim and wifi calling did activate. However I had some problems. Text messages seemed to send fine. MMS messages didn't work (it is possible I didn't allow enough time but a 100kb pic shouldn't take 5mins to send over wifi). I also tried calling. I only made one call for just a few seconds and hung up because it was choppy and I couldn't understand anything.

I'm going to get another sim as soon as possible and provide better testing but I just wanted to give the information I have so far.
[HD2 Android NAND Development] kingman17:
WIFI calling app for HTC HD2 SD build_MIUI 2.3.30

Hello

Does any one know how to get wifi calling app for Android SD version for Leo, and how I can install it?

Rom MIUI 2.3.30

Please help

Thanks
[HD2 Android NAND Development] muchelaguito:
I have exactly the same issue:

Installed the latest NexusHD2 v2.2 ICS ROM in a 200mb partition, RMNET and MAGLDR. I used it normally without wifi calling for 2 days. Installed WiFi calling today, and it worked... but it killed my mobile data. I have tried several things like turning off the app, etc, etc. Nothing brought my data back once WiFi was off. I flashed the RMNET_to_PPP_update.zip and that brought back my data... but WiFi Calling isn't connecting anymore. I guess I can collect logs and whatever necessary. Would somebody be kind enough as to point me to a link with information on how to do so? Oh, and I have an updated SIM.
[HD2 Android NAND Development] kylew1212:
Download the Android developer tools. Tytung posted what's needed a few pages back. (I'm on my phone or I would link)

Once you get that go to terminal (Linux)

Type cd then type where your tools are located.

Once you are in your tools directory connect your phone and type

./adb logcat

Adb is located in the platform tools folder. So that is the directory you need.

I think that the windows commands are about the same I know cd is and maybe ./ (pretty much just means run)

Hope this helps some. Their are others here with more knowledge than me but that's a start :)
[HD2 Android NAND Development] muchelaguito:
Sorry Guys, I wanted to help with this, but my HTC HD2 passed away recently. His heart gave up while riding the Maid of the Mists in Niagara Falls. Should have shown him some love and protection, but I forced him to take some pics even though it was pouring on top of us. May he rest in peace.

:"-((
[HD2 Android NAND Development] kylew1212:
Go buy a bag of rice. Get a bowl, put a thick layer of rice on the bottom. Then get your hd2 and take off the back cover, sim, battery, micro SD card and lay your phone on the rice. Pour more rice on top and then just leave it there for several days.

This worked for my phone although it took about a week and I already had an insurance replacement on the way..

Good luck