Error starting camera on GrapheneOS: "Unable to find explicit activity class"
jonfre opened this issue · 0 comments
Describe the bug
An error occures when starting the camera on GrapheneOS:
Unable to find explicit activity class {app.grapheneos.camera/app.grapheneos.camera.ui.activities.CaptureActivity}
(see stack trace below)
The only installed camera app is the default GrapheneOS Camera version 60.
In com.bald.uriah.baldphone.views.home.HomePage1#getCameraIntent setComponent is used with the package and class name: "app.grapheneos.camera", "app.grapheneos.camera.ui.activities.CaptureActivity", which seems correct. Removing this and only use
return new Intent("android.media.action.IMAGE_CAPTURE");
works.
Does setComponent (for explicit activity) have to be used?
The GrapheneOS Camera of course has the IMAGE_CAPTURE action.
Tried the same app on another phone with LineageOS and it works. Maybe the problem is due to some security feature (or bug) in GrapheneOS.
To Reproduce
Steps to reproduce the behavior:
- Use GrapheneOS.
- Start BaldPhone.
- On the main menu, click the camera icon.
- Error message: "An error has occured!"
Expected behavior
The camera app should start.
Phone(please complete the following information, it can be found in the settings under Technical Information):
- API Level: 33
- BaldPhone Version 14.0
Additional context
Stack trace:
2023-03-27 21:37:35.289 18319-18319 HomeScreenActivity com.bald.uriah.baldphone E Unable to find explicit activity class {app.grapheneos.camera/app.grapheneos.camera.ui.activities.CaptureActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>?
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W android.content.ActivityNotFoundException: Unable to find explicit activity class {app.grapheneos.camera/app.grapheneos.camera.ui.activities.CaptureActivity}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>?
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2208)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Instrumentation.execStartActivity(Instrumentation.java:1845)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Activity.startActivityForResult(Activity.java:5553)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:676)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Activity.startActivityForResult(Activity.java:5472)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:663)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Activity.startActivity(Activity.java:6009)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at com.bald.uriah.baldphone.activities.HomeScreenActivity.startActivity(HomeScreenActivity.java:426)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at android.app.Activity.startActivity(Activity.java:5976)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at com.bald.uriah.baldphone.views.home.HomePage1.lambda$genOnClickListeners$7$HomePage1(HomePage1.java:222)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at com.bald.uriah.baldphone.views.home.-$$Lambda$HomePage1$ZCBRbqhTH87LgsvWFzPw5DXBtec.onClick(Unknown Source:2)
2023-03-27 21:37:35.290 18319-18319 System.err com.bald.uriah.baldphone W at com.bald.uriah.baldphone.views.BaldFrameLayoutButton.onClick(BaldFrameLayoutButton.java:139)