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

[Bug]: Restarting phone and probably putting it on an sdcard cause this error #2238

Closed
Minecrafter11231 opened this issue Aug 23, 2021 · 7 comments
Labels
inactive Issue has had no response from users for a certain time period

Comments

@Minecrafter11231
Copy link

Problem description

Transcript

exec("/data/data/com.termux/files/usr/bin/login"): Permission denied

[Process completed (code 1) - press Enter]

Termux App Info

APP_NAME: Termux
PACKAGE_NAME: com.termux
VERSION_CODE: 114
TARGET_SDK: 28
IS_DEBUG_BUILD: false
SIGNING_CERTIFICATE_SHA256_DIGEST: 228FB2CFE90831C1499EC3CCAF61E96E8E1CE70766B9474672CE427334D41C42

Device Info

Software

OS_VERSION: 4.14.141-20440625
SDK_INT: 29
RELEASE: 10
ID: QP1A.190711.020
DISPLAY: QP1A.190711.020.A013GXXU4AUG5
INCREMENTAL: A013GXXU4AUG5
SECURITY_PATCH: 2021-07-01
IS_DEBUGGABLE: 0
IS_TREBLE_ENABLED: true
TYPE: user
TAGS: release-keys
APK_RELEASE: F-Droid

Steps to reproduce the behavior.

Restart your device open termux and it if it didn't
pop up you probably need to put termux on an sdcard

What is the expected behavior?

i exepct it to open and run fine

System information

Hardware

MANUFACTURER: samsung
BRAND: samsung
MODEL: SM-A013G
PRODUCT: a01corextc
BOARD: k39tv1_bsp_1g_titan
HARDWARE: mt6739
DEVICE: a01core
SUPPORTED_ABIS: armeabi-v7a, armeabi

VERSION_NAME: 0.114

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Aug 23, 2021

Termux must not be installed on sd card.

@ghost
Copy link

ghost commented Aug 23, 2021

Some devices put it on sdcard automatically (not sure, but probably there were reports on this), regardless of AndroidManifest configuration.

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Aug 23, 2021

@Grimler91 said a guy who reported on email confirmed that installing v0.117 on sd card was failing bootstrap installation.

Creating directory file at path "/data/data/com.termux/files/usr-staging/bin" failed.

Android shouldn't allow it to install on sdcard due to installLocation="internalOnly" in AndroidManifest.xml but since it is, likely reason is that termux files dir /data/data/com.termux/files gets changed too or access is lost, although only apk install path should change, not data path. I am not sure of the real reason.

Anyway, 24ea83d (not yet released) should help with finding real reason. If someone wants to test now instead of waiting for next release, uninstall Termux app and ALL plugins installed from F-Droid as per instructions at https://github.com/termux/termux-app#Installation and then install universal debug apk from https://github.com/termux/termux-app/actions/runs/1159500780. Then send the new report generated which will have more info to debug the issue.

@Grimler91
Copy link
Member

@Grimler91 said a guy who reported on email confirmed that installing v0.117 on sd card was failing bootstrap installation.

The person wrote:

I has used Termux on the SD Card but i changed to the internal storage and after it works correctly

Not sure if he had manually selected to install to ext sdcard somehow or if android selected it for him

@creepy-pasta101
Copy link

Not sure if he had manually selected to install to ext sdcard somehow or if android selected it for him

Well.. some vendors like Samsung allow apps to be moved to sdcard regardless of app's manifest...
This option needs to be enabled in developer's options and then the app needs to be moved to sdcard

@ghost
Copy link

ghost commented Aug 23, 2021

Yes, but that's still unclear what is actually the OPs case.

Here is how this option looks like:
Screenshot_20210823-183945_Settings

If enabled, I can move Termux to external SD card freely:
Screenshot_20210823-184022_Settings

Screenshot_20210823-184032_Settings

I have moved it, but it still works because only APK file and .so libraries are being moved. Android moves application by packaging it into a fixed-size encrypted EXT4 image file stored in /storage/XXXX-XXXX/.android_secure. No prefix content is actually being moved.
Screenshot_20210823-184211_Termux

Besides standard application moving functionality, there are other ways which can move data directory as well, like link2sd. They require root and also can lead to whatever issues (ownership + SELinux) when application was reinstalled or something wrong happened on device reboot.

@ghost ghost mentioned this issue Aug 23, 2021
@agnostic-apollo agnostic-apollo added inactive Issue has had no response from users for a certain time period and removed bug report labels Apr 25, 2022
@agnostic-apollo
Copy link
Member

Install v0.118.0+ and post errors if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Issue has had no response from users for a certain time period
Projects
None yet
Development

No branches or pull requests

4 participants