I wonder if you can bypass this behavior by rooting the device?
[1]: https://blog.jeroenhd.nl/article/android-7-nougat-and-certif...
[2]: https://android-developers.googleblog.com/2016/07/changes-to...
[1]: https://blog.jeroenhd.nl/article/android-7-nougat-and-certif...
[2]: https://android-developers.googleblog.com/2016/07/changes-to...