glpi-plugin icon indicating copy to clipboard operation
glpi-plugin copied to clipboard

WIP Add SIM card PIN policy

Open DIOHz0r opened this issue 6 years ago • 7 comments

Signed-off-by: Domingo Oropeza [email protected]

Changes description

Add policy to set a PIN code for SIM card

Checklist

Please check if your PR fulfills the following specifications:

  • [x] Tests for the changes have been added
  • [ ] Docs have been added/updated

References

Closes #402 Depends on https://github.com/flyve-mdm/android-mdm-agent/issues/388

DIOHz0r avatar Apr 26 '18 20:04 DIOHz0r

A link to the PR for the agent ?

btry avatar Apr 26 '18 20:04 btry

Is it possible to also create a policy to set the PIN2 ?

btry avatar Apr 29 '18 19:04 btry

Is it possible to also create a policy to set the PIN2 ?

This policy was added on the last commit

DIOHz0r avatar May 02 '18 19:05 DIOHz0r

PR approved, but we need to wait that the agent is ready to handle them. /cc @rafaelje

btry avatar May 03 '18 06:05 btry

This PR will probably need to be rebased to solve a merge conflict introduced by #491 (to merge first to repair the develop branch)

btry avatar May 11 '18 10:05 btry

I've been searching on Android's API documentation for the minimum version for this policies but I haven't found any information. @rafaelje, could you give us any reference?

DIOHz0r avatar May 25 '18 16:05 DIOHz0r

The agent is not ready for this policy, I'm not testing yet but looking the code on the response we can do it sending the PIN information to one intent, so we can do it from API 1 to 27

String ussdCode = "**04*"+oldPin+"*"+newPin+"*"+newPin+"#";
startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussdCode)));

https://stackoverflow.com/questions/25784141/android-set-or-reset-sim-card-pin-code-programmatically

rafaelje avatar May 25 '18 23:05 rafaelje