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

Access native library - P/Invoke #1056

Closed
bruno-garcia opened this issue Oct 5, 2019 · 4 comments
Closed

Access native library - P/Invoke #1056

bruno-garcia opened this issue Oct 5, 2019 · 4 comments

Comments

@bruno-garcia
Copy link

I'm attempting to load a native library without success.
Just trying to access a system library, say: File.OpenRead("/system/lib/libc.so") segfaults. I can't enumerate files on /or/lib` so I'm assuming the app is sandboxed but Is there a way (even if permission is required) to load a system image?

@myroot
Copy link
Contributor

myroot commented Oct 6, 2019

What is your test envirement?

@myroot
Copy link
Contributor

myroot commented Oct 6, 2019

  1. some devices does not allow native invokation
  2. path is wrong
    /usr/lib/libc.so.6 it may be correct

@bruno-garcia
Copy link
Author

bruno-garcia commented Oct 6, 2019

@myroot thanks for you reply.

I've tried on a Tizen 4 Wearable emulator. I was not able to deploy any apps to my Galaxy Watch Active.
Is it possible to enumerate the system images? Ideally from a C#?
Is the answer different for different Tizen 4 wearables? Like it's possible on Gear but not on Active?

@bruno-garcia
Copy link
Author

I was able to enumerate the files under /usr/lib. Thanks @myroot

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

2 participants