Hi Erel,
I found just imposible to trust on the phoneId library to get the device phone number, as now a days, most of the phones are being portrated from telco to telco.
I have an application, which in order to gain secure access to the server, needs to register the IMEI, IMSI and device number.
For the first two variables, we can get them straight in Android (iOS and WPhone are a pain and restricted).
Regarding the phone, we made the user to enter his own phone number, in order to have the application, to dispatch an SMS with a "X_AUTH" string together with the IMSI and IMEI values codified with and SHA Key. On the other end, the application starts a service for SMS Interept, reading the next messages withing a 30 second threshold, if the message contains the exact parameters, then we have a positive match for the device number and we can go on with registration on the server.
This has worked well for a Samsung S2, S1 and ACE. I cannot yet seem to understand why:
RAZR: Wont send the SMS
S4: Wont intercept de SMS
Have you got any chances to test this devices with the libraries?
Thanks in advance
Felipe Brito.
I found just imposible to trust on the phoneId library to get the device phone number, as now a days, most of the phones are being portrated from telco to telco.
I have an application, which in order to gain secure access to the server, needs to register the IMEI, IMSI and device number.
For the first two variables, we can get them straight in Android (iOS and WPhone are a pain and restricted).
Regarding the phone, we made the user to enter his own phone number, in order to have the application, to dispatch an SMS with a "X_AUTH" string together with the IMSI and IMEI values codified with and SHA Key. On the other end, the application starts a service for SMS Interept, reading the next messages withing a 30 second threshold, if the message contains the exact parameters, then we have a positive match for the device number and we can go on with registration on the server.
This has worked well for a Samsung S2, S1 and ACE. I cannot yet seem to understand why:
RAZR: Wont send the SMS
S4: Wont intercept de SMS
Have you got any chances to test this devices with the libraries?
Thanks in advance
Felipe Brito.