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

Add missing permissions leading to crash on startup #4

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

ShootingKing-AM
Copy link
Member

for.eg.

04:24:28.502  3683-3683  [ALVR NATIVE-RUST]      pid-3683                             E  acquiring wifi lock failed with error Type:JavaException
04:24:28.503  3683-3683  lient.cardboar          pid-3683                             A  thread.cc:2361] No pending exception expected: java.lang.SecurityException: Neither user 10371 nor current process has android.permission.WAKE_LOCK.
	 thread.cc:2361] (Throwable with no stack trace)
	 thread.cc:2361] Caused by: android.os.RemoteException: Remote stack trace:
	 thread.cc:2361] 	at android.app.ContextImpl.enforce(ContextImpl.java:2209)
	 thread.cc:2361] 	at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2237)
	 thread.cc:2361] 	at android.content.ContextWrapper.enforceCallingOrSelfPermission(ContextWrapper.java:907)
	 thread.cc:2361] 	at com.android.server.wifi.WifiServiceImpl.acquireWifiLock(WifiServiceImpl.java:3920)
	 thread.cc:2361] 	at android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:1044)
	 thread.cc:2361] 
	 thread.cc:2361] (Throwable with no stack trace)
	 thread.cc:2361] 
04:24:28.508  3683-3707  [ALVR NATIVE-RUST]      pid-3683                             E  What happened:
	 panicked at 'called `Result::unwrap()` on an `Err` value: JavaException', alvr\client_core\src\platform\android.rs:157:10
	 
	 Backtrace:
		0: <unknown>
		1: <unknown>
		2: <unknown>
		3: <unknown>
		4: <unknown>
		5: <unknown>
		6: <unknown>
		7: <unknown>
		8: <unknown>
		9: <unknown>
	   10: <unknown>
	   11: <unknown>
	   12: <unknown>
	   13: <unknown>
	   14: <unknown>
	   15: <unknown>

@zmerp
Copy link
Member

zmerp commented Apr 12, 2023

Thanks!

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