You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
It is not possible to convert one cell location type from one into the other, which means the phone type should not be restricted, which means there need to be different types of device numbers, depending on the phone type. So, different settings needs to be added/used.
This has no high priority for me, because the existing logic existed for about a year without complaints and will affect only specific applications. A tested pull request is however welcome.
Goal:
Prevent an app from accessing MEID while still allowing location access on a CDMA phone.
Blocking
getDeviceId
and/orgetSubscriberId
forcesgetPhoneType
to return a type ofTelephonyManager.PHONE_TYPE_GSM
Source around line 202 of
XTelephonyManager.java
Which breaks app code trying to cast to
GsmCellLocation
orCdmaCellLocation
based on its result. (decompiled)Since the allowed
getCellLocation
call returns a CdmaCellLocation, I am getting the following error:The text was updated successfully, but these errors were encountered: