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

PermissionDenied on android (API >= 30) #21

Open
flapili opened this issue Feb 10, 2023 · 0 comments
Open

PermissionDenied on android (API >= 30) #21

flapili opened this issue Feb 10, 2023 · 0 comments

Comments

@flapili
Copy link

flapili commented Feb 10, 2023

Hi, I have an issue with building an mobile app (using tauri) which get local ip

logs:

I/RustStdoutStderr: thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', src/lib.rs:86:43
I/RustStdoutStderr: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
W/tokio-runtime-w: type=1400 audit(0.0:38): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c159,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c159,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=foobar

I'll try to use https://developer.android.com/reference/java/net/NetworkInterface with jni then if it's succesfull I'll try to implement properly and submit a PR :)

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

No branches or pull requests

1 participant