I'm developing a flashlight app using Camera 2 API. Every thing works fine.
While developing the app I came across quite a few tutorials and even posts from stack-overflow where people have used "android.permission.FLASHLIGHT" permission.
I tried to search official documentation for "android.permission.FLASHLIGHT" (in developer.android.com) but couldn't find any.
I just what to know what is permission is and is it required for turning torch mode on. If yes, why there is no official documentation and why is my app(targets API >=21) working without this permission?
Note: I tested my app in android 5, 6, 7, 8 and it works fine, except in Nokia 6 and Xiaomi redimi note.