I make an application for unlocking (unlocking from a service provider). I need to find a way to master the methods of interfaces and classes Phone , RIL , IccCard . Import com.android.internal.telephony.*; It does not work, because this directory is not in the SDK . Noticed that system applications use these imports, how to get them in a regular application? I need to bring the unlock to automatism - I need a method supplyNetworkDepersonalization , which takes two String and Handler as input. This method is located in the IccCard interface and just does not approach it. The search for information killed six months and to no avail.

Over time, I had to use the getSimSerialNumber() method, which returns the Icc code of the SIM card. It became interesting how he does it, because this code only knows the modem. I opened it in the githaba and again saw these imports com.android.internal.telephony . Well, really, you can not do it? Help with ideas, tired of breaking the brain. The application will work with root , so suggest that they are solitary with its participation too))

If I use reflection, I don’t know how to pass parameters to methods, and even get the return value

    0