Skip to content

[MOB-10001] Remove Media Projection from Android #281

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 6 commits into from
Nov 24, 2022

Conversation

TheBuggedYRN
Copy link
Contributor

@TheBuggedYRN TheBuggedYRN commented Oct 26, 2022

Description of the change

When invoking Instabug on Android, a "scary" dialog appears, asking for permission to record screen. This was due to the way we captured screenshots on Android, using Media Projection, since other alternatives didn't work with Flutter.

This PR aims at providing an alternative approach for Media Projection, using FlutterRenderer to capture screenshots. This implicitly fixes Repro Steps on Android as well.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Issue links go here

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests

Code review

  • This pull request has a descriptive title and information useful to a reviewer
  • Issue from task tracker has a link to this pull request

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Merging #281 (e5f328d) into release/11.5.0 (eff1554) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           release/11.5.0     #281   +/-   ##
===============================================
  Coverage           81.16%   81.16%           
===============================================
  Files                  17       17           
  Lines                 377      377           
===============================================
  Hits                  306      306           
  Misses                 71       71           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@TheBuggedYRN TheBuggedYRN changed the base branch from master to refactor/pigeon October 26, 2022 14:09
Base automatically changed from refactor/pigeon to master November 1, 2022 11:58
@TheBuggedYRN TheBuggedYRN force-pushed the feat/remove-mp-android branch from e6cebe6 to 66a2b2a Compare November 1, 2022 12:41
@TheBuggedYRN TheBuggedYRN force-pushed the feat/remove-mp-android branch from 66a2b2a to bf44ef1 Compare November 23, 2022 14:54
@TheBuggedYRN TheBuggedYRN changed the base branch from master to release/11.5.0 November 24, 2022 12:31
@TheBuggedYRN TheBuggedYRN marked this pull request as ready for review November 24, 2022 12:55
@DavidMina96 DavidMina96 merged commit 8e69188 into release/11.5.0 Nov 24, 2022
@DavidMina96 DavidMina96 deleted the feat/remove-mp-android branch November 24, 2022 13:11
TheBuggedYRN added a commit that referenced this pull request Nov 24, 2022
When invoking Instabug on Android, a "scary" dialog appears, asking for
permission to record screen. This was due to the way we captured
screenshots on Android, using Media Projection, since other
alternatives didn't work with Flutter.

This PR aims at providing an alternative approach for Media Projection,
using FlutterRenderer to capture screenshots. This implicitly fixes
Repro Steps on Android as well.
HeshamMegid pushed a commit that referenced this pull request Nov 24, 2022
When invoking Instabug on Android, a "scary" dialog appears, asking for
permission to record screen. This was due to the way we captured
screenshots on Android, using Media Projection, since other
alternatives didn't work with Flutter.

This PR aims at providing an alternative approach for Media Projection,
using FlutterRenderer to capture screenshots. This implicitly fixes
Repro Steps on Android as well.
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.

Is there a way to avoid the scary screen-recording disclaimer on Android until after the user selects from menu?
2 participants