camera: allow opening from lockscreen
- Commit
dc7e8017c3455ff26ad346b4078afb20776c43ac- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-16 17:54 UTC (4 months ago)
- Parents
ae0f510
Diff
camera/src/main/AndroidManifest.xml
diff --git a/camera/src/main/AndroidManifest.xml b/camera/src/main/AndroidManifest.xmlindex d2607eaa33..7a8806b25d 100644--- a/camera/src/main/AndroidManifest.xml+++ b/camera/src/main/AndroidManifest.xml@@ -25,6 +25,8 @@ android:name=".MainActivity" android:exported="true" android:screenOrientation="portrait"+ android:showWhenLocked="true"+ android:turnScreenOn="true" android:theme="@style/Theme.General"> <intent-filter> <action android:name="android.intent.action.MAIN" />@@ -34,6 +36,17 @@ <action android:name="android.media.action.IMAGE_CAPTURE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter>+ <!-- Quick-launch (power double-press) and lockscreen camera shortcut. The SECURE+ variant is what GrapheneOS/stock fire from the lockscreen; showWhenLocked lets+ it display over the keyguard. -->+ <intent-filter>+ <action android:name="android.media.action.STILL_IMAGE_CAMERA" />+ <category android:name="android.intent.category.DEFAULT" />+ </intent-filter>+ <intent-filter>+ <action android:name="android.media.action.STILL_IMAGE_CAMERA_SECURE" />+ <category android:name="android.intent.category.DEFAULT" />+ </intent-filter> <intent-filter> <action android:name="android.media.action.VIDEO_CAPTURE" /> <category android:name="android.intent.category.DEFAULT" />