Home » Android » How to change the device(Android, iOS) date from the test application?-Exceptionshub

How to change the device(Android, iOS) date from the test application?-Exceptionshub

Posted by: admin February 26, 2020 Leave a comment

Questions:

Scenario:
We have

  1. 3x hardcoded certificates in our sample application.

  2. One device specific certificate that is dynamically generated

  3. 3x Operator specific certificate used for several purpose.

Some certificates are expired from this year.

We need a common solution to identify which certificate is going to expiry. For that we desired to add a common test-cases.

For that test-case,
How to change the device date from the test application?

  • In Android(Q or later version)
  • In iOS
How to&Answers: