termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.59k stars 3.73k forks source link

[Bug]: termux-usb -l command hangs on android14 #4139

Closed Swenlon closed 1 month ago

Swenlon commented 1 month ago

Problem description

$ pkg show termux-api Package: termux-api Version: 0.58.0-1 Maintainer: @termux Installed-Size: 348 kB Depends: bash, util-linux, termux-am (>= 0.8.0) Homepage: https://wiki.termux.com/wiki/Termux:API Download-Size: 25.0 kB APT-Manual-Installed: yes APT-Sources: https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 Packages Description: Termux API commands (install also the Termux:API app)

$ termux-info Termux Variables: TERMUX_APK_RELEASE=GITHUB TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APP_PID=2121 TERMUX_IS_DEBUGGABLE_BUILD=1 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.1 TERMUX_USER_ID=0 Packages CPU architecture: aarch64 Subscribed repositories:

sources.list

deb https://packages-cf.termux.dev/apt/termux-main/ stable main

sources.list.d/termux-adb.list

deb https://nohaj.github.io termux extras

root-repo (sources.list.d/root.list)

deb https://packages-cf.termux.dev/apt/termux-root/ root stable Updatable packages: All packages up to date termux-tools version: 1.43.4 Android version: 14 Kernel build information: Linux localhost 6.1.90-g0a324995cf0f-v8 #1 SMP PREEMPT Mon Jun 24 16:04:48 UTC 2024 aarch64 Android Device manufacturer: Raspberry Device model: Raspberry Pi 4 LD Variables: LD_LIBRARY_PATH= LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

$ termux-api-start Starting service: Intent { cmp=com.termux.api/.KeepAliveService } Error: Not found; no service started. $ termux-usb -l

logcat|grep -i termux 09-04 09:20:22.699 4093 4093 W bash : type=1400 audit(0.0:10566): avc: granted { execute } for name="termux-api-start" dev="mmcblk0p4" ino=137935 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:22.699 4093 4093 W bash : type=1400 audit(0.0:10567): avc: granted { execute } for name="termux-api-start" dev="mmcblk0p4" ino=137935 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:22.699 4093 4093 W bash : type=1400 audit(0.0:10568): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/termux-api-start" dev="mmcblk0p4" ino=137935 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:22.699 4093 4093 W bash : type=1400 audit(0.0:10569): avc: granted { execute } for name="dash" dev="mmcblk0p4" ino=133599 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:22.703 4093 4093 W termux-api-star: type=1400 audit(0.0:10570): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="mmcblk0p4" ino=133599 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:23.320 4094 4094 W ziparchive: Unable to open '/data/data/com.termux/files/usr/libexec/termux-am/am.dm': No such file or directory 09-04 09:20:23.436 4094 4094 D AndroidRuntime: Calling main entry com.termux.termuxam.Am 09-04 09:20:23.451 722 1737 W ActivityManager: Unable to start service Intent { cmp=com.termux.api/.KeepAliveService } U=0: not found 09-04 09:20:29.211 4109 4109 W bash : type=1400 audit(0.0:10578): avc: granted { execute } for name="termux-usb" dev="mmcblk0p4" ino=137918 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:29.215 4109 4109 W bash : type=1400 audit(0.0:10579): avc: granted { execute } for name="termux-usb" dev="mmcblk0p4" ino=137918 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:29.215 4109 4109 W bash : type=1400 audit(0.0:10580): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/termux-usb" dev="mmcblk0p4" ino=137918 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:29.215 4109 4109 W bash : type=1400 audit(0.0:10581): avc: granted { execute } for name="bash" dev="mmcblk0p4" ino=133965 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:29.215 4109 4109 W termux-usb: type=1400 audit(0.0:10582): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/bash" dev="mmcblk0p4" ino=133965 scontext=u:r:untrusted_app_27:s0:c106,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c106,c256,c512,c768 tclass=file app=com.termux 09-04 09:20:29.847 4111 4111 W ziparchive: Unable to open '/data/data/com.termux/files/usr/libexec/termux-am/am.dm': No such file or directory 09-04 09:20:29.962 4111 4111 D AndroidRuntime: Calling main entry com.termux.termuxam.Am

Steps to reproduce the behavior.

termux-usb -l

What is the expected behavior?

No response

System information

agnostic-apollo commented 1 month ago

Install the Termux:API plugin app.