Add missing code from KK's RIL.java

These changes made are based on KitKit's RIL.java.
DO NOT MERGE