nikolamilosevic86 / owasp-seraphimdroid

OWASP Seraphimdroid is an open source project with aim to create, as a community, an open platform for education and protection of Android users against privacy and security threats.
https://www.owasp.org/index.php/OWASP_SeraphimDroid_Project
GNU General Public License v3.0
65 stars 31 forks source link

SIM change lock #18

Closed nikolamilosevic86 closed 8 years ago

nikolamilosevic86 commented 9 years ago

Currently, when phone is switched off and on again, it is checked whether the SIM is changed. However, on some devices, SIM change can happen even without switching phone off and on. It is necessary to find how it is possible to check and detect SIM change on these devices.

mikicaivosevic commented 8 years ago

Maybe it's possible to check that with "android.intent.action.SIM_STATE_CHANGED", but as usual on android there no guarantees it works.

nikolamilosevic86 commented 8 years ago

As far as I remember @thewayofknowing tried this but it was not working correctly. Probably he can write more on the issue. However, it is possible he was not invoking it in the right way.

thewayofknowing commented 8 years ago

I was experiencing IDE issues (We were still on Eclipse at that time) with SIM_STATE_CHANGED intent. I did not give it a shot after we exported to Android Studio. Will give it a try

nikolamilosevic86 commented 8 years ago

@thewayofknowing I guess you have IDE now set up. Can you try this and let me know whether it works or not?

bohrium272 commented 8 years ago

I tried to look into this. I used the app Internal Broadcasts Monitor (https://play.google.com/store/apps/details?id=lt.andro.broadcastlogger) on a Nexus 6P running Android 6.0.1. This app lists all the broadcasts emitted by the OS in real time. Upon removing and inserting the SIM repeatedly, I didn't find any specific broadcast related to that event. Could there be any other way ?

thewayofknowing commented 8 years ago

@nikolamilosevic86 I've tried it in Android Studio as well, there isn't any intent for SIM_STATE_CHANGED. They probably removed it in a previous release. The solution for the current releases involves checking SIM ID/number after boot, which is exactly what we've implemented.

nikolamilosevic86 commented 8 years ago

Than I guess I will close this issue. If you think there are some solution, feel free to reopen it later.