Lock camera after device admin deprecation

Viewed 357

I have an app that uses the Device Admin prev. to disable\enable the camera,

From my understanding this will be deprecated in android 10..

The question is will it still work on android P\Q considering I will still be on

targetSdkVersion 26

or do I need to do something else for it to happen ?

Thanks in advance !

2 Answers

According to documentation

Device admin is marked deprecated for enterprise use through updates to documentation. Existing functionality continues to work for applications targeting the API level 28, though its use is discouraged.

So, targetSdkVersion 26 will work for you. But There may be issue from Play Store side. Not sure if they will check your application and reject.

Related