这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@nokotan
Copy link

@nokotan nokotan commented Oct 28, 2020

Original discussion: termux/termux-packages#2217

This PR brings the feature to termux that users can build and run own android app on their devices with following command:

am start -n com.termux/android.app.NativeActivity --es DYLIB_PATH $HOME/libmyapp.so

termux-app/AndroidManifest.xml

Exposes the NativeActivity that loads libnative-entrypoint.so

native-entrypoint/libnative-entrypoint.so

Loads shared library path from Intent "DYLIB_PATH", and try to call "ANativeActivity_onCreate" in specified shared lib.

Others

  • Only tested on my virtual device (Android 11), further compatibility checks are required.
  • I'm quite new to android app developping, so any advices are welcome!

@nokotan
Copy link
Author

nokotan commented Oct 29, 2020

This update will not meet Android 29 SDK requirements.
There is no way that running user compiled shared library under new requirements, resulting to close this PR.

@nokotan nokotan closed this Oct 29, 2020
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.

1 participant