Skip to content

Partially remove unused camera-related code #47

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

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

microbit-grace
Copy link
Collaborator

@microbit-grace microbit-grace commented Apr 2, 2024

Only removes enough unused code to not trigger security error for implicit internal intent in pre-launch report.

Error reported by pre-launch report

Your app contains an Implicit Internal Intent vulnerability. Please see this Google Help Center article for details.

com.samsung.microbit.plugin.CameraPlugin.recVideoStart
com.samsung.microbit.plugin.CameraPlugin.takePic
com.samsung.microbit.plugin.CameraPlugin.toggleCamera

To remove security error for implicit internal intent
Comment on lines -160 to -163
private static void recVideoStart() {
Intent intent = new Intent(ACTION_TAKE_VIDEO);
MBApp.getApp().sendBroadcast(intent);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging part that the pre-launch report is unhappy about

Comment on lines -152 to -155
private static void takePic() {
Intent intent = new Intent(ACTION_TAKE_PICTURE);
MBApp.getApp().sendBroadcast(intent);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging part that the pre-launch report is unhappy about

Comment on lines -176 to -179
private static void toggleCamera() {
Intent intent = new Intent(ACTION_TOGGLE_CAMERA);
MBApp.getApp().sendBroadcast(intent);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flagging part that the pre-launch report is unhappy about

@martinwork martinwork merged commit 6b22d01 into from300 Apr 2, 2024
@martinwork
Copy link
Collaborator

Thanks @microbit-grace

@microbit-grace microbit-grace deleted the intent-error branch April 3, 2024 10:21
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

Successfully merging this pull request may close these issues.

2 participants