"Intent Based Camera" does not need android.permission.CAMERA, because the camera is used by external Camera application.
Guess, you included a library Camera or Camera2 to your project. Did you mix "intent based camera" with camera / camera2 samples ?