Skip to content

Python for Android - Executable #8366

Closed Locked Answered by ghost
eakteam asked this question in Q&A
Dec 26, 2021 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

That's because packages aren't standalone. They have dependencies, e.g. libraries such as libc.so, libandroid-support.so and many others. All files must be placed at specific locations which also make packages not relocatable.

Say you have compiled package with prefix /data/data/com.somepackage/files/usr. That means:

  • Package installation root would be /data/data/com.somepackage/files/usr.
  • Data files will be looked at /data/data/com.somepackage/files/usr/share.
  • Libraries will be looked at /data/data/com.somepackage/files/usr/lib.
  • Temporary files will be stored at /data/data/com.somepackage/files/usr/tmp.

But you are placing everything into /data/local/tmp. That would not work at least be…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@eakteam
Comment options

@eakteam
Comment options

@eakteam
Comment options

@Yonle

This comment was marked as off-topic.

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants