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

Various fixes and cleanups #26

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

Closed
wants to merge 8 commits into from
Closed

Conversation

fornwall
Copy link
Member

No description provided.

agnostic-apollo and others added 8 commits November 30, 2023 03:07
…in/linker*` to bypass android app data file exec restriction if using `targetSdkVersion` `>= 28` on Android `>= 10`

- See the README file for a description for who `system_linker_exec` works.
- If `TERMUX_EXEC_OPTOUT` environment variable is set, then do not intercept `execve()` at all to fix shebang issues or use `system_linker_exec`.
- If `TERMUX_EXEC_DEBUG` environment variable is set, then log debug info for `termux-exec`.
- Use `TERMUX__PREFIX` environment variable to extract termux rootfs directory path that's used to generate termux bin path to replace `/bin` and `/usr/bin` path in shebang of scripts instead of using hardcoded `TERMUX_BASE_DIR` build variable.
- Since when executing with linker, the `/proc/self/exe` will be set to linker path, export `TERMUX_EXEC__PROC_SELF_EXE` environment variable with actual path to executable being executed so that packages can be patched to read it instead.
- Added `src/exec-variants.c` to hook the entire `exec()` family of functions, which is required for Android 14. Closes termux/termux-packages#18537, termux/termux-app#3758
@fornwall fornwall closed this Jun 20, 2024
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