The difficulty isn't in modifying the source to make the APIs public, it's in making sure that the APIs being made public will be maintainable and scalable for the years ahead.
If you work for an OEM, you can use those classes in your system apps (since in that case there won't be any issue of binary compatibility as far as end-users are concerned). JBQ On Wed, Dec 17, 2008 at 3:38 PM, dreamerBoy <[email protected]> wrote: > > I am doing some work for a major telecomm manufacturer. > > We have come to the conclusion that to properly exercise the device > and software implementation, we need access to privileged Android > classes such as: > > com.android.internal.telephony.Phone, > com.android.internal.telephony.Call > > etc. > > Currently, it is not possible to invoke functions on these classes > because they are package-private in the Android "OS". However, it > would not be that difficult to alter these classes so that they are > publicly visibile, to whit: > > old Call.java: > ~~ > > package com.android.internal.telephony; > ... > > class Call > { > ... > void hangup() { ...} > ... > } > > ~~ > > new Call.java > ~~ > > package com.android.internal.telephony; > > public class Call > { > ... > public void hangup() { ...} > ... > } > > ~~ > > Has anyone embarked on such a program? (When I attempted to run the > 0.9 android.jar in the emulator, my operation was failed and a message > came up indicating that it knew I was trying to invoke my own build .. > and warned that further problems lay ahead. I don't expect > necessarily that this custom build would be usable inside the > emulator; test applications using it would have to be tested directly > on the phone.) > > The problem is that the public API is just not rich enough to allow > comprehensive testing. > > Thanks for your thoughts. > > > -- Jean-Baptiste M. "JBQ" Queru Android Engineer, Google. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
