I intend to write tests related to the Phone and Direct SIM write.
What are the alternatives in case the required APIs aren't exposed in TelephonyManager but exist as private APIs in PhoneBase.java
, PhoneFactory.java
or CommandInterface.java
?
Specifically, my questions are:
- What is the "replacement" for:
PhoneFactory.getDefaultPhone()
? - What is the alternative in order to access the
CommandsInterface
(e.g.:CommandsInterface mCmdIf = ((PhoneBase)mPhone).mCM
)?
Thanks in advance,
Micha