android中的android.telephony.TelephonyManager这个类可以获得手机的串号和手机号等信息。
现在我想重写这个类。我在我的应用中创建了相同路径名的类(android.telephony.TelephonyManager)
然后从android.jar中把这个类反编译出来了,但反编译的结果好像是错误的:
public class TelephonyManager {
TelephonyManager() {
throw new RuntimeException("Stub!");
}
public String getDeviceSoftwareVersion() {
throw new RuntimeException("Stub!");
}
public String getDeviceId() {
throw new RuntimeException("Stub!");
}
public CellLocation getCellLocation() {
throw new RuntimeException("Stub!");
}
public List getNeighboringCellInfo() {
throw new RuntimeException("Stub!");
}
public int getPhoneType() {
throw new RuntimeException("Stub!");
}
.
.
.
}
并且把这个类改成我要的效果后,重新生成apk后好像也没有生效 。结果还是没变。
请问有谁遇到相似的问题没