Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting camera on GrapheneOS: "Unable to find explicit activity class" #1241

Open
jonfre opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@jonfre
Copy link

jonfre commented Mar 27, 2023

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:

  1. Use GrapheneOS.
  2. Start BaldPhone.
  3. On the main menu, click the camera icon.
  4. 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant