It’s a gray area…
Turn off / on / unlock screen seems to require some device administrator permissions.
Google Play policies became very strict with these and even remove apps from Store.
Several apps removed such functions to avoid problems, so need very careful search.