Zfinix / carrier_info

📱 Carrier Info gets networkType, networkGeneration, mobileCountryCode, mobileCountryCode, e.t.c from both android and iOS devices.
MIT License
34 stars 48 forks source link

Force Close after running example code #38

Open TerraRome opened 1 year ago

TerraRome commented 1 year ago

i got this error in log " java.lang.NoSuchMethodError: No virtual method getSubscriptionId()I in class Landroid/telephony/TelephonyManager; or its super classes (declaration of 'android.telephony.TelephonyManager' appears in /system/framework/framework.jar!classes2.dex) "

Cannon99 commented 1 year ago

@TerraRome some fix? It happens only with android 6 and android 7.

Cannon99 commented 1 year ago

@TerraRome, I have forked and adjusted that bugs and handled the library for android 6.0 and higher. I have ignored the cellId field, but the library worked for all android devices on my tests. Feel free to take a look.

https://github.com/Cannon99/carrier_info