How to call RIL.getAvailableNetworks()? (using non-API methods)

view full story

http://stackoverflow.com – Disclaimer - I know how calling non-API methods can affect my application. It's not going to be published on Google Play, I'm creating it just for personal use. Task - get available network operators on rooted phone (Android 2.3.3). Model is known. What have I tried A lot of reflection: Tried to get PhoneFactory, get default Phone (getDefaultPhone) or GSMPhone. I've received an actual reference to PhoneProxy and was able to call getAvailableNetworks which returned an CommandException - RADIO_NOT_AVAILABLE Tried to instantinate RIL directly. Tried to call getAvailableNetworks here with the (HowTos)