yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Derek0228:
You would need to edit the build.prop with some lines for wifi calling, also you need the wifi calling apk + the libs for the apk. Then, so the app doesn't force close, look for the libmedia.so in this rom, and push it to your rom. That's about it :P
[HD2 Android NAND Development] Derek0228:
Also, search for "unforgiven nexus one wifi calling" if you want a package that has the apk and libs, but edit the updater-script and erase the getprop line which is at startup. I may upload my edited package when I get home. :) good luck
[HD2 Android NAND Development] Pens and DreamS:
I use NDT MIUI. Can I use all these things to get wifi calling working there? How can I do it? Im from Puerto Rico as well and have no signal at home!! Need this badly!!
[HD2 Android NAND Development] Derek0228:
Trial and error bro. Just try. As long as it has tytung's r10 kernel and libhtc_til_wrapper.so is disabled or deleted in the rom, it should work after all these steps.

Just for the record wifi calling has never worked for me :(
[HD2 Android NAND Development] Pens and DreamS:
But what files do i need to put in the rom? Sorry I dont know much bout stuff..
[HD2 Android NAND Development] fivefingerdeathpunch:
tried. when i slide enable on the app my phone freezes

EDIT

okay so i just saw that i should rid of ril wrapper or whatever and no more freeze. got a an actual error this time when i enabled. PROGRESS :)

edit edit :)

error is w006.15 ISP or t-mobile network error

working on figuring this out now. from the link tytung posted it seems to be non-phone related?

Sigh... I noticed my wireless wasnt connecting to my schools 802.1x eap network or whatever its called. I went ahead and used tytungs r10 update.zip . This made my eap work but now wifi calling app freezes when enabling it. The til wrapper is already gone so its not that again :( I tried going through the update script for the kernel but I couldn't find what messed it up. :(
[HD2 Android NAND Development] Derek0228:
that's where most of us get stuck :/
[HD2 Android NAND Development] fivefingerdeathpunch:
yeah. redid everything and got the app to load and it doesnt freeze my phone anymore. getting a different error as well. now getting w005.4 T-Mobile Network error. Havent tested if eap is working though since im not on campus anymore
[HD2 Android NAND Development] Pens and DreamS:
Can i flash wifi calling files on ndt miui or just your rom?
[HD2 Android NAND Development] Derek0228:
Tytung, i used the latest package on your latest rom, and my phone freezed in such a way that the screen turned blue! o.O I tried to connect via adb, but it wouldnt even find my phone, so I quickly pulled battery. So weird. Then ,when it powered on, it froze on the homescreen. :/

I managed to logcat this, by disabling wifi before the app loaded, then starting up wifi, and the app :)

Here's the logcat til' my phone froze completely (I put the parts that said kineto only to save you time, if you need the whole log let me know): http://pastebin.com/DyBiUU2Y

Hope this helps
[HD2 Android NAND Development] Pens and DreamS:
After flashing wifi calling files and starting app phone froze quickly and then the rom itself became unusable even after restaring. Anything to be done to avoid this? I know i'm not a dev but this is all I can say. I wanna try this app badly and get it working.
[HD2 Android NAND Development] bigd187:
So far so good...

sms and inbound/outbound calls working great after your latest update ! :)

I did have 1 call that sounded scratchy on the other callers side, other than that HUGE IMPROVEMENT! I haven't had a chance to test the Data connection issue yet.

BTW running miui 2.3.4 by Mark @ miuiandroid.com -tytung r10

UPDATE: I haven't had any data drops or any fc's on the wifi calling app. sms/mms/inbound/outbound calls are great. My suggestion for anyone trying this with a 2.3.4(haven't tried 2.3.3 yet) rom folow the steps for "other" roms described in the OP. :)

Here's the steps I took similar to OP http://xdaforums.com/showpost.php?p=13609212&postcount=146
[HD2 Android NAND Development] mattbenj:
Dang!
[HD2 Android NAND Development] trashtakeout:
I am a T-mobile user and I really need this to work. I live in an area where T-Mobile doesn't have any coverage and have been using a Nokia Mode for its wi-fi calling capabilities. All i can do with my HD2 is play for the most part. I would really love to get this going. When I flashed the wi-fi calling update it failed to load up the ROM at all. I had to reload NexusHD2-Gingerbread_V2.7_NAND_(Android-2.3.4)_update.zip just to get it to work again. So have some of you guys got it working? I work for T-Mobile and I have a router at work that was designed for T-Mobile's Wi-Fi calling back in the day when it first launched. I wonder if that will make a difference? I will get it and retry the update sometime soon and let ya'll know.
[HD2 Android NAND Development] Pens and DreamS:
I feel you. In my house I have no signal at all and im unable to communicate or call anyone. This feature would really help me. God how I would love to be a dev or whoever works with this kind of problem!!!:(
[HD2 Android NAND Development] Mafioso:
Are you T-mobile USA user? I think WiFi calling is only available on TMO US network and might not work in Puerto rico
[HD2 Android NAND Development] bigd187:
I think if you belong to tmo usa it shouldn't make a difference since PR is one of our protectorates . But this is strictly assumption.
[HD2 Android NAND Development] tytung:
Please see Installation Guide for other ROMs in 1st post.

In theory, WiFi Calling should work with other Gingerbread ROMs too.

P.S. GanOptimizer.apk is compiled for Gingerbread 2.3.3 or above (SDK v10).

If anyone wants WiFi Calling to work with Froyo, GanOptimizer.apk needs to be re-compiled.
[HD2 Android NAND Development] tytung:
No idea so far
[HD2 Android NAND Development] tytung:
Thanks for your feedback.

Could you share your configuration of the WiFi router?

I think other people have w005.4 T-Mobile Network error because they don't configure their WiFi router properly.

I'm wondering if every WiFi router is compatible with WiFi Calling.
[HD2 Android NAND Development] tytung:
Since you have a router that was designed for T-Mobile's Wi-Fi Calling, you should have the bigger change to make Wi-Fi Calling working.

In other words, your router should be configured properly for Wi-Fi Calling.

Do you make sure your system space have at least 15 MB free space before flashing wifi-calling-htcleo-20110508.zip?

You have two methods to enlarge the system space as follows.

Use 145 MB system space as described in 1st post.

Modify flash.cfg and change "system ya 135M" to "system ya 145M", and then run DAF.exe to flash ClockworkMod Recovery 3.0.2.5.

Use 135 MB system space.

Delete Facebook.apk, Twitter.apk, and Maps.apk from /system/app folder in NexusHD2-Gingerbread_V2.7_NAND_(Android-2.3.4)_update.zip before flashing it.

Flash the modified NexusHD2-Gingerbread_V2.7_NAND_(Android-2.3.4)_update.zip and then wifi-calling-htcleo-20110508.zip.

Install those deleted apps above from Android Market, so they will be installed in data space, not system space.
[HD2 Android NAND Development] bigd187:
I have a basic wireless g router from frys. So it's stock settings with wpa encryption. I followed your steps not necessarily in order unfortunately.

I had that same error when i was messing around with ur prior tmo wifi builds.Flashed kerenel->i deleted the entry in init.rc->removed the line in build.prop added the wifi calling info from the op to the bottom of build .prop-> flashed the modified update and voila. Basically the steps provided in the OP ;)

EDIT: When i get near a local sbux or open network ill test it out and get back to ya with any issues;)
[HD2 Android NAND Development] Pens and DreamS:
Puerto Rico uses and is all USA celphones! We are USA territory.
[HD2 Android NAND Development] czarsuperstar@gmail.com:
i tried flashing both and when i do turn it on it keeps freezing to the point i have to pull the battery. please help im new with this phone. i never went thru this with my other phone since they are pure android out the box. thank you in advance. czarsuperstar creator of Motoruler series for moto cliq
[HD2 Android NAND Development] bigd187:
Data connection

Ok so i did experience my first drop in data connection after turning off wifi but i think i found 2 possible resolutions.

1. Leaving wifi calling and wifi on and when out of range of wifi netowrk rom does switch to cellular data.

2. Turn wifi calling off first, then you'll notice the cellular radio lose the network signal then reconnects to it. After it's connected back to the cell network then turn wifi off.

These 2 steps have worked for me so far, mind you i have only had the data issue once with this update. But through trial and error these were my findings. I believe the first step in theory is going to be turning off wifi calling first. Oh yeah I had no problem connecting back to my wifi and tmo wifi calling when i was in range of my wifi network. Thank You All for making this a reality on our hd2's! Now I might cancel my galaxy 4g order! lol
[HD2 Android NAND Development] jose makalolot:
I tried wifi calling but my phone hangs during Connecting to T-Moblie network.
[HD2 Android NAND Development] ZeeJM:
I'm running HyperDroid-GBX-v12 (http://xdaforums.com/showthread.php?t=918899). Android version 2.3.3.

I followed the "Other ROM" steps on the first page of the post. I've lost DHCP client functionality, but can successfully use wifi calling if I provide static IP information.

I'm going to retrace my steps and see if I can figure out the DHCP client issue. I've run logcat and seen entries stating that there are timeouts trying to launch the DHCP client.

*** EDIT ***

My problem is trying to replace init.htcleo.rc in / and have the change survive a reboot. Time to dig up my old notes...
[HD2 Android NAND Development] SkippyDogg:
This is utterly amazing! I have no service at my residence and i am forced to text using Google voice and with this i can send and receive text message and multimedia messages!! As well as make calls!!!! Thank you tytung for making this work! 100 thanks to you sir!!!
[HD2 Android NAND Development] Pens and DreamS:
how?!?! what?!?! When?!?!
[HD2 Android NAND Development] SkippyDogg:
This is how!
[HD2 Android NAND Development] Pens and DreamS:
Yeah but what did you do to get this working? Im having the rom freezing issue and then rom freezes at startup. Did you configure your router? Did something to the rom or wifi calling app? Also Im glad it worked for you! Im dying to have this on my HD2!! Congrats man!!
[HD2 Android NAND Development] SkippyDogg:
Nothing! I was already on v2.7 and i simply downloaded the zip file from the first page, when into clockworkrecovery and installed the zip. Went into and turned it on and it worked on the first try! I did not have to mess with any settings with my router or the app!
[HD2 Android NAND Development] Pens and DreamS:
weird. I wonder why its not working for most of us..? Thanks for the reply though man. Enjoy your wifi calling!!
[HD2 Android NAND Development] SkippyDogg:
Don't really know, it was very simple to begin with! Just as an added note, i wiped the cache partition,dalvik cache, and fixed permissions after i was done installing everything. Hope that helps the people who are having problems.
[HD2 Android NAND Development] tageeboy:
Are calls to PR are charged much more than from state to state in the US unless I'm mistaken so the communication impact had nothing to do with the sovereignty. I believe cable and wireless are the physical carriers and tmo probably leases from them. That is how It worked for most of the caribbean when I was In the telco industry. Maybe it changed.

We are legion,
[HD2 Android NAND Development] jose makalolot:
same freezing issue here. tsk. tsk. tsk.
[HD2 Android NAND Development] trashtakeout:
How do Modify flash.cfg and change "system ya 135M" to "system ya 145M".

I am trying to flash the wi-fi update zip but I cant figure out how to do this and last time when I didn't my phone wouldn't load up at all. I found the file but my computer wont open it and I wouldn't know how to edit it if it did. Any advice?
[HD2 Android NAND Development] SkippyDogg:
Just go into clockworkrecoverymod and select the zip as if you were install a new rom. The file is just a zip file and there is no need to edit.
[HD2 Android NAND Development] trashtakeout:
Modify flash.cfg and change "system ya 135M" to "system ya 145M".

It says I am supposed to change it from 135 to 145 right?
[HD2 Android NAND Development] SkippyDogg:
Yes, do you know how to do that?
[HD2 Android NAND Development] trashtakeout:
nope windows said it couldnt open it so I used the web to search. It took me to two bogus sites for a program to read the file. What do I do?
[HD2 Android NAND Development] SkippyDogg:
Here, i have made the necessary changes for you. Select USB Flasher from magldr and run DUF.exe from inside the archive.
[HD2 Android NAND Development] bigd187:
Hey Tytung here's the packages modified exactly the way i flashed them. Of course the init.rc i had to compress to upload it on xda,don't flash it.

My first step was removing libhtc_ril_wrapper.so in init.rc using Root Explorer's Text edit function.

For the below step i used the "pull" function in Android Commander to retrieve files.

Second step was pulling the build.prop from my MIUI

rom. Then deleting the #rild.libpath=/system/lib/libhtc_ril.so in build.prop.

Third step was adding wifi calling info at the bottom of my modified build.prop then replaced the one in the 5/8/11 update with the one I modified.

REBOOTED to Recovery

Then my flashaholic tendencies took over flashed the tytung r10,then flashed the 5/8/11 update that had the modified build.prop.

Basically I followed all the steps to get this working with with MIUI 2.3.4 im using. I did start a thread @ miuiandroid.com so I could get feedback from other miui users. REMEMBER When it comes to modifying or removing lines in build.prop or init.rc make sure u remove the line fully, meaning don't leave a spare ; # | or wifi calling may not work. i got the tmobile error everyone is reporting and then froze because of a small character left behind by the modder. Smoking and flashing at the same time can does that. lol

Most importantly RESULTS MAY VARY! Hope this helps !
[HD2 Android NAND Development] trashtakeout:
Nand kernel open failed. This is the error I get when I try and power on my phone now. then it goes to the magdlr screen. I guess I can load the regular nexus hd2 rom back on and it will work. What do you think is up?
[HD2 Android NAND Development] trashtakeout:
I flashed the 145 clockwork update btw. It went on fine. Thanks
[HD2 Android NAND Development] SkippyDogg:
When you re-flash the new clockworkrecovery mod you delete the rom on your phone. You must re-flash 2.7 zip.
[HD2 Android NAND Development] trashtakeout:
So I loaded on the new 145 clockwork mod. Then I loaded the wi fi calling update via sd card zip. then the wifi-calling-htcleo-20110508.zip the same way. I just loaded the original 2.7 rom back on my sd card and am about to flash it. Sound about right?
[HD2 Android NAND Development] SkippyDogg:
Flash the 145mb clockwork recovery mod, then 2.7.zip then wifi calling update.zip, clear cache partition, wipe dalvik cache, and finally fix permissions and reboot.
[HD2 Android NAND Development] trashtakeout:
Do I need to start over? I didn't necessarily do it in that order and how do I wipe dalvik cache and fix permissions. Then when you say reboot: do you mean load 2.7 back on?
[HD2 Android NAND Development] trashtakeout:
I see how to fix permissions and wipe dalcik: under advanced...but still. do I need to go back and start over in that order. I have done everything but Wipe the caches and fix permissions. I just did it in a different order kinda.
[HD2 Android NAND Development] SkippyDogg:
Not really sure but you can try it your way. And to clean those two things they are located in the menu of clock work recovery and dalvik is located in advanced. And by reboot i mean just restart your phone :rolleyes:
[HD2 Android NAND Development] trashtakeout:
Nand kernel open failed. This is the error I get when I try and power on my phone normally now. I loaded the 2.7 zip and now I am back in business. I am having to sign back in like its a new phone. Good sign. Lets see if it has the wi-fi features. I hope so.
[HD2 Android NAND Development] trashtakeout:
well I don't see any changes. Maybe I need to change up the order I load the stuff on the phone? It still asks if I want to make an internet call when I try and dial out. If I say yes Then it asks me to create an account. I don't know what else to do. Any ideas?
[HD2 Android NAND Development] fivefingerdeathpunch:
Hey tytung glad to see progress on this. Lemme share my experiences thus far. I'm in tyweens typhoon rom. I've been messing around with wifi calling on his build using this information but have yet to succeed. I flashed your most recent update and my wifi calling app freezes during enabling. I looked at the update and discovered that the libhtc_ril.so that is in your update zip crashes my wifi calling app whereas the one included in tyweens build allows the app to try and work but wont actually enable wifi calling. I assume my lack of ability to use wifi calling on this rom is due to this ril file. I don't know if this is others problem as well though. Maybe you could see the difference in the files and see why one freezes the app while the other works for some people?

And to others I used to have my wifi calling app freeze when lib ril wrapper was in the lib folder. Once deleted I didn't get a freeze. I believe tytung said a different route that does the same thing but make sure you did that.
[HD2 Android NAND Development] tytung:
Do you mean the modified zip file is for MIUI 2.3.4 by Mark @ miuiandroid.com?

If yes is the answer, maybe you can modify your post to provide more info.

So other MIUI users can use your modified zip file directly.
[HD2 Android NAND Development] tytung:
You need a modified libhtc_ril.so which includes extra functions to make WiFi Calling working.

That's why I include it in wifi-calling-htcleo-20110508.zip.

I'm not sure why a modified libhtc_ril.so causes wifi calling app freezes in tyweens typhoon rom.
[HD2 Android NAND Development] tytung:
You cannot modify init.htcleo.rc on Android.

After reboot, all changes are reverted.

You must unpack initrd.gz, modify init.htcleo.rc, repack initrd.gz, and then replace this modified initrd.gz in kernel_tytung_r10_update.zip before flashing it.
[HD2 Android NAND Development] fivefingerdeathpunch:
hmm well i'm going to go ahead and assume that that is what is stopping my wifi calling from working. is there anyway to edit .so files? maybe i could find what the issue is. doubtful but better than not trying anything
[HD2 Android NAND Development] trashtakeout:
I'm Using the hd2 nexus gingerbread 2.7 software. I loaded on the updates and I don't see any changes on my phone. Maybe They aren't on there or maybe I don't know what to look for. What changes would take place on my phone phone if it worked. It still asks me if I want to set up an internet calling account. I will retry the updates in a different order but still...what will be different?
[HD2 Android NAND Development] cmylxgo:
tytung:

Is there anything in your kernel_tytung_r10_update.zip kernel that is required to make WiFi calling work? I am trying to cook this into my GingerBread Sense 2.1 ROM and can't get the phone to fully boot with your kernel. I've had this issue with your other kernels too.

Thanks

-CMYLXGO

UPDATE: ROM pukes on this...looking into it.

AndroidRuntime( 3965): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
AndroidRuntime( 3965): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1967]: 3963 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1967]: 3963 could not load needed library 'libaudioflinger.so' for 'libsystem_server.so' (link_image[1967]: 3963 could not load needed library 'libaudiopolicy.so' for 'libaudioflinger.so' (reloc_library[1316]: 3963 cannot locate '_ZN7android11AudioSystem24linearToSpecifyHtcVolumeEiiNS0_13audio_devicesE'...
AndroidRuntime( 3965): )))
AndroidRuntime( 3965):	at java.lang.Runtime.loadLibrary(Runtime.java:455)
AndroidRuntime( 3965):	at java.lang.System.loadLibrary(System.java:554)
AndroidRuntime( 3965):	at com.android.server.SystemServer.main(SystemServer.java:1016)
AndroidRuntime( 3965):	at java.lang.reflect.Method.invokeNative(Native Method)
AndroidRuntime( 3965):	at java.lang.reflect.Method.invoke(Method.java:507)
AndroidRuntime( 3965):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
AndroidRuntime( 3965):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
AndroidRuntime( 3965):	at dalvik.system.NativeStart.main(Native Method)
AndroidRuntime( 3965): Error reporting crash
AndroidRuntime( 3965): java.lang.NullPointerException
AndroidRuntime( 3965):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:84)
AndroidRuntime( 3965):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
AndroidRuntime( 3965):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
AndroidRuntime( 3965):	at dalvik.system.NativeStart.main(Native Method)
[HD2 Android NAND Development] ascrackoo1:
Tytung,

not sure why but on a clean flash with magldr and your 2.7 rom after installing the wifi-calling-htcleo-20110508.zip when WIFI is on it freezes the phone when it gets to the android lock screen on startup.

Any reason why?

-Bill
[HD2 Android NAND Development] tytung:
Try to use another libhtc_ril.so taken from another WiFi Calling enabled ROM. e.g. HTC T-Mobile myTouch 4G or myTouch 3G Slide.

Attached file in below post was an another libhtc_ril.so although I forgot it came from which ROM.

http://xdaforums.com/showpost.php?p=12976116&postcount=9
[HD2 Android NAND Development] tytung:
Follow the install guide in order.

Don't change anything by yourself.
[HD2 Android NAND Development] tytung:
I compiled kineto_gan.ko as a kernel module in r10 to support WiFi Calling.

We cannot load ril wrapper library (libhtc_ril_wrapper.so) if we want to load GAN RIL (libganril.so) to support T-Mobile WiFi Calling (UMA).

So I fixed RIL on NAND boot issue in kernel, not via ril wrapper library.

Original kernels don't include this fix, and RIL on NAND boot issue is fixed by ril wrapper library.

(RIL on NAND boot issue means you cannot boot your phone on NAND without sending missing AT commands to the socket.)

You can refer to this source code commit.

I don't use Sense ROM.

Do you mean all my kernels cannot be used in Sense ROM?

If so, you may need to compile your own compatible kernel using a modified .config file with the following changes.

I'm not sure which CONFIG_PPP_* are necessary for WiFi Calling, so I enable all of them. And set CONFIG_KINETO_GAN=m to compile kineto_gan.ko as a kernel module.

CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_MPPE=y
CONFIG_PPPOE=y
CONFIG_PPPOL2TP=y
CONFIG_PPPOLAC=y
CONFIG_PPPOPNS=y
...
[B]CONFIG_KINETO_GAN=m[/B]

Edit:

Your error should be caused by the wrong libaudiopolicy.so. Cannot load '_ZN7android11AudioSystem24linearToSpecifyHtcVolumeEiiNS0_13audio_devicesE' in libaudiopolicy.so.

could not load needed library 'libaudiopolicy.so' for 'libaudioflinger.so' (reloc_library[1316]: 3963 cannot locate '_ZN7android11AudioSystem24linearToSpecifyHtcVolumeEiiNS0_13audio_devicesE'...
[HD2 Android NAND Development] tytung:
Please provide logs.

I cannot guess the reason without the logs.

Besides, please describe your situations more clearly.

Do you mean you can boot your phone if WiFi is off after flashing 2.7 ROM and wifi-calling-htcleo-20110508.zip?

But when turning WiFi on and reboot, something is wrong.

What's "it freezes the phone when it gets to the android lock screen on startup"?

Can you still be able to use your almost unresponsive phone?

Or you can only pull out the battery and reboot.