jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
283 stars 240 forks source link

Android select the phone as in the field I marked, the sdk throws a fatal exception. #208

Closed mfurkancelik closed 1 year ago

mfurkancelik commented 1 year ago

When I select the phone as in the field I marked, the sdk throws a fatal exception. I added the WAKE_LOCK permission it states in the error but it still gives the same error. As below:

FATAL EXCEPTION: main Process: com.demo.demo, PID: 2544 java.lang.SecurityException: Neither user 10560 nor current process has android.permission.WAKE_LOCK. at android.os.Parcel.createExceptionOrNull(Parcel.java:2376) at android.os.Parcel.createException(Parcel.java:2360) at android.os.Parcel.readException(Parcel.java:2343) at android.os.Parcel.readException(Parcel.java:2285) at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:900) at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:2419) at android.os.PowerManager$WakeLock.acquire(PowerManager.java:2385) at org.jitsi.meet.sdk.ProximityModule$1.run(ProximityModule.java:99) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:7876) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) Caused by: android.os.RemoteException: Remote stack trace: at android.app.ContextImpl.enforce(ContextImpl.java:2028) at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2056) at com.android.server.power.PowerManagerService$BinderService.acquireWakeLock(PowerManagerService.java:4894) at android.os.IPowerManager$Stub.onTransact(IPowerManager.java:421) at com.android.server.power.MiuiPowerManagerServiceStub.onTransact(MiuiPowerManagerServiceStub.java:350)

saghul commented 1 year ago

When I select the phone as in the field I marked,

Not sure I understand this. Can you please provide more details?