Hi -
I am writing some test apps for a major telecomm company.
I need to be able to access the Phone object. I am currently
compiling against the kernel framework source.
I am trying to call PhoneFactory.makeDefaultPhones() Once I get the
Phone object, the plan is to call hangup() on the foreground call.
However, I am getting a permission issue:
01-19 15:38:35.313: ERROR/ServiceManager(19): add_service
('simphonebook',0x27) uid=10019 - PERMISSION DENIED
01-19 15:38:35.342: ERROR/Mo_call_end2(13064): Failed to end call.
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
android.os.BinderProxy.transact(Native Method)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
146)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
android.os.ServiceManager.addService(ServiceManager.java:72)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.gsm.SimPhoneBookInterfaceManager.publish
(SimPhoneBookInterfaceManager.java:106)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.gsm.SimPhoneBookInterfaceManager.<init>
(SimPhoneBookInterfaceManager.java:102)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.gsm.GSMPhone.<init>(GSMPhone.java:147)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.gsm.GSMPhone.<init>(GSMPhone.java:124)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.PhoneFactory.useNewRIL
(PhoneFactory.java:70)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
com.android.internal.telephony.PhoneFactory.makeDefaultPhones
(PhoneFactory.java:123)
01-19 15:38:35.342: ERROR/Mo_call_end2(13064):
qcom.cta.fta.fta_voice.FTACommand$DefaultPhoneThread.run
(FTACommand.java:737)
I realize I can redouble my attempts to reverse-engineer the
InCallScreen application. However, there are a significant number of
package-private methods there. It is very important that my test app.
not create a requirement to change the kernel source code.
I have many tests to complete involving e.g., hanging up, answering a
call, call waiting, caller id, call forwarding, ussd strings, call
hold/unhold, call transfer... The only way to invoke these functions
is through the Phone object.
If anyone has any insight as to the correct way to do this or some
kind of workaround, I would be most appreciative of your thoughts.
Thanks -
Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---