[HD2 Android Q&A, Help & Troubleshooting and Genera] noellenchris:
Oct 31 - LeTama has placed a wrapper for TESTING here http://xdaforums.com/showthread.php?t=824413, if you know what your doing go ahead and follow his directions. Otherwise wait for a few fixes to be applied and more detailed directions will be developed so everyone can apply the final fix if there is such a thing.

Please discontinue the the testing from the 29th, thanks for the feedback. I you applied the ppp fix, please reverse the steps and remove. FYI- I just replaced my init.rc with my original one as nothing else calls for the other files. Then you can delete them whenever.

OCT 29 - Ok, LeTama and Cass (DEV's on IRC) have made a rough workaround to detect the data disconnect, when it detects the disconnect it attempts to reconnect or fix the data. I'm testing so far and it appears to work well.

I'm attaching a zip that LeTama posted with the needed files for others to test, this is probably not the final fix, but please post feedback if your feeling brave.

There are 4 files in the zip. The init.rc file contains the service line that you need to copy and paste into YOUR init.rc file. I used WordPad in windows. I then copied the init.rc file over to my SD via WM Activesync to the Android/root/init.rc

The rest of the files need to be copied to Android/root/system/bin/ folder.

Then boot android and test.

Do not copy the files using Droid Explorer as the permissions don't seem to work correctly, I will admit that I tried this method at first and it foobarred my connection.

Good luck....

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please post your logcat files in this thread as soon as your data disconnects and won't reconnect. So the Devs can take a look and hopefully fix the data issues everyone is having.

Also post your build, sense or no sense, WM build, radio rom,

Otherwise you can toggle airplane mode or data and it should start working again.

EDIT: you can download aLogcat from the market and then just save the log and copy over to your computer then put it here..(actually not here, but in your post..hehe)

UPDATE: I've noticed many cooks have used the required libhtc_ril_wrapper.so file dated 8/19. However there was an update on 8/26 and again today 9/28. The 8/26 fixed some stuff for pppd to work correctly. The 9/28 just added some code for the future NAND to work correctly. I've attached the 9/28 wrapper and have been testing it for the last few hours. So far after reboot, it has been better for me.

The file is located in the root/system/lib folder in android. You can adb push this file or use Droid Explorer or a file manager with SU permissions. Just unzip this file and use one of the mentioned methods to copy it over to Android.

Also you can copy this file in WM to your "Android" folder or whatever folder your build is in, and to the folders (root/system/lib/libhtc_ril_wrapper.so) and when you boot android it should copy the wrapper to the correct folder.

Anyhow, give this a shot and see if it helps. Also check your wrapper and check the properties to see what the date is first, ALSO COPY YOUR CURRENT WRAPPER TO A TEMP FOLDER ON YOUR SD CARD FIRST just in case.

I take no credit for the wrapper as it was the work of other developers and the source is on the git with changes here http://gitorious.org/htc-hd2-android-libraries/libhtc_ril_wrapper

Stuff fixed in wrapper since it was created ....quoted from Git

9/28

-Corrected pppd failure check and introduced NAND boot compatibility.

8/26

- added automatic creation of files needed for pppd to run correctly

- fixed pppd start/stop after wifi activation

- cleaned up code little bit

8/18

-Fixed error with prelinked map while compiling module

8/17

-RIL wrapper for ppp data connection created

NOTE: the attached wrapper may fix the issues people had switching from wifi and back to data. Any wrapper after 8/26 should have the pppd start/stop after wifi activation fix. Should work with Nexus kernel fine.

EDIT: PLEASE PULL LOGCAT WITH SWITCH -b radio.....so logcat -b radio this will pull more detail for connections for devs...