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

Won't open without microphone permission #804

Open
zakrzk opened this issue Jul 6, 2022 · 1 comment
Open

Won't open without microphone permission #804

zakrzk opened this issue Jul 6, 2022 · 1 comment

Comments

@zakrzk
Copy link

zakrzk commented Jul 6, 2022

Operating System Version:
Android TV

Popcorn Time Version:
0.3.5

Download date:
6th July 2022

Download url:
https://github.com/popcorn-official/popcorn-android/releases/download/v0.3.5/tv-arm-release-0.3.5.apk

Expected Behaviour

Application opens when I click "Deny" on microphone access permission request pop-up.

Actual Behaviour

Nothing happens. The app won't start.

Steps to reproduce the behaviour

  1. Delete the app
  2. Install the app
  3. When you open it for the first time, an Android pop-up shows up: Popcorn Time requests microphone access
  4. Click deny
@kiriles90 kiriles90 changed the title App won't open without giving microphone permission Won't open without giving microphone permission Jul 14, 2022
@kiriles90 kiriles90 added the bug label Jul 14, 2022
@superbonaci
Copy link

I've tried tv-arm-release-0.3.6.apk on a regular phone (Android) and does work, the app opens only if you enable permission to access the Microphone:
Allow Popcorn Time to record audio?

This is the adb logcat with the Microphone permission set to "Don't allow":

 1415 12174 I ActivityTaskManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.google.android.permissioncontroller cmp=com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity (has extras)} from uid 10251
 1415  2083 D CoreBackPreview: Window{23f1385 u0 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@5a31a0b, mPriority=0}
21668 21668 V GrantPermissionsViewModel: Permission grant result requestId=7431655291803560672 callingUid=10251 callingPackage=pct.droid.tv permission=android.permission.RECORD_AUDIO isImplicit=false result=2
 1415  1658 I ActivityTaskManager: Displayed com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity: +150ms
 1415 12178 D CoreBackPreview: Window{23f1385 u0 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}: Setting back callback null
 1415  3903 W InputManager-JNI: Input channel object '23f1385 com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity (client)' was disposed without first being removed with the input manager!

You must close or stop the app for the permission to take effect. So for example if you have mic allowed and you don't allow it from app settings, the app will continue working and switching to foreground unless you quit it.

If you open the app with the permission disabled it will return to background (not quit).

Try re-enabling the mic permissions from command line, for me worked. No idea if you can do this on Android TV:

adb shell 'pm grant pct.droid.tv android.permission.RECORD_AUDIO'

@kiriles90 kiriles90 changed the title Won't open without giving microphone permission Won't open without microphone permission Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants