Android is all open source, so perhaps you could just extract that part of Froyo and add it to your app as though it were a third-party library. I don't know how easy or feasible that would be, but if it works for you, let us know!
http://source.android.com/source/download.html