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

[Bug]: After updating packages /system/bin/su becomes inaccessible #31

@BlueGradientHorizon

Description

@BlueGradientHorizon

Problem description

I suppose some package was updated recently and after installing it you no longer can run /system/bin/su if you actually have root access.

/data/data/com.termux/files/usr/bin/su: 9: exec: /system/bin/su: not found

What steps will reproduce the bug?

  1. Clean install Termux.
  2. Give access to root for Termux app in root manager app.
  3. Try running su. It should work.
  4. apt update && apt upgrade -y
  5. Try running su again. You'll get an error described earlier.

I'm able to reproduce this behavior on at least 2 android devices:

  • POCO F5, HyperOS 1.0.6.0 (A14), KernelSU 11928, example of termux-info output is taken from this device
  • POCO X3 Pro, crDroid 11.2 (A15), KernelSU Next 12431

What is the expected behavior?

Well, to be able to run su.

System information

Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~GT6slWfoyyilphUADmGhuQ==/com.termux-gPZ4By-GU4a0qcDmJ_4PyQ==/base.apk
TERMUX_APP__APK_RELEASE=F_DROID
TERMUX_APP__APP_VERSION_CODE=1020
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.1
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=false
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=12448
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.1
TERMUX__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c71,c257,c512,c768
TERMUX__SE_INFO=default:targetSdkVersion=28:complete
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c71,c257,c512,c768
TERMUX__UID=10327
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://repository.su/termux/termux-main/ stable main
# x11-repo (sources.list.d/x11.list)
deb https://repository.su/termux/termux-x11/ x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
14
Kernel build information:
Linux localhost 5.10.198-android12-9-00085-g226a9632f13d-ab11136126 termux/termux-packages#1 SMP PREEMPT Wed Nov 22 14:16:37 UTC 2023 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
23049PCD8G
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.x11 versionCode:15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions