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

termux-notification-channel hangs #195

Closed
0Jumpero opened this issue Nov 19, 2024 · 9 comments
Closed

termux-notification-channel hangs #195

0Jumpero opened this issue Nov 19, 2024 · 9 comments

Comments

@0Jumpero
Copy link

Problem description
When trying to create custom notification channel the command hangs on execution.

Steps to reproduce
termux-notification-channel 0 custom

Expected behavior
After running the command a new notification channel is created.

Additional information
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=21519
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:

sources.list

deb https://repository.su/termux/termux-main/ stable main
Updatable packages:
libsqlite/stable 3.47.0 aarch64 [upgradable from: 3.46.1]
lsof/stable 4.99.4 aarch64 [upgradable from: 4.99.3]
termux-tools version:
1.44.3
Android version:
15
Kernel build information:
Linux localhost 5.10.209-android13-4-00011-g17e85e80b432-ab12324538 #1 SMP PREEMPT Mon Sep 2 13:25:00 UTC 2024 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 6 Pro
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.api versionCode:51
com.termux.boot versionCode:1000

@jamesdeluk
Copy link

Not sure if it's connected but termux-notification doesn't work for me at all. Also on a Google Pixel 6, but the A.

@Bajahaw
Copy link

Bajahaw commented Feb 7, 2025

just confirming ..

any solutions? workarounds?

@0Jumpero
Copy link
Author

@Bajahaw Unfortunately, none that I found

@Biswa96
Copy link
Member

Biswa96 commented Feb 12, 2025

I can not reproduce the issue in my setup. Please make sure all packages are up-to-date using apt update; apt upgrade command.

@0Jumpero
Copy link
Author

I have everything up to date. I guess it's a platform or setup issue.

@Biswa96
Copy link
Member

Biswa96 commented Feb 18, 2025

Could you provide any logs from logcat related to this issue?

@0Jumpero
Copy link
Author

Is that ok?

02-18 21:44:48.332 29950 29950 W bash : type=1400 audit(0.0:89120): avc: granted { execute } for name="termux-notification-channel" dev="dm-57" ino=787550 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:44:48.332 29950 29950 W bash : type=1400 audit(0.0:89121): avc: granted { execute } for name="termux-notification-channel" dev="dm-57" ino=787550 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:44:48.332 29950 29950 W bash : type=1400 audit(0.0:89122): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/termux-notification-channel" dev="dm-57" ino=787550 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:44:48.332 29950 29950 W bash : type=1400 audit(0.0:89123): avc: granted { execute } for name="bash" dev="dm-57" ino=644933 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:44:48.332 29950 29950 W termux-notifica: type=1400 audit(0.0:89124): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/bash" dev="dm-57" ino=644933 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:44:48.464 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:48.464 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:48.464 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:48.465 29953 29953 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 10386 <<<<<< 02-18 21:44:48.465 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:48.468 29953 29953 I app_process: MMAP_TRYLOCK is supported in uffd errno:2 addr:0x780701d000 size:4096 02-18 21:44:48.469 29953 29953 I AndroidRuntime: Using default boot image 02-18 21:44:48.469 29953 29953 I AndroidRuntime: Leaving lock profiling enabled 02-18 21:44:48.469 29953 29953 W libc : Access denied finding property "odsign.verification.success" 02-18 21:44:48.469 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:48.472 29953 29953 W app_process: ART APEX data files are untrusted. 02-18 21:44:48.472 29953 29953 I app_process: Using CollectorTypeCMC GC. 02-18 21:44:48.472 29953 29953 E app_process: Error reading named image component header for /system/framework/boot.art, error: Image header from "/system/framework/arm64/boot.art" is invalid 02-18 21:44:48.472 29953 29953 E app_process: Could not create image space with image file '/system/framework/boot.art!/apex/com.android.art/etc/boot-image.prof!/system/etc/boot-image.prof:/system/framework/boot-framework-adservices.art'. Attempting to fall back to imageless running. Error was: Image header from "/system/framework/arm64/boot.art" is invalid 02-18 21:44:48.472 29953 29953 W app_process: Bump pointer space is not aligned to 2048KB. This can lead to longer stop-the-world pauses for compaction 02-18 21:44:48.811 29953 29953 D nativeloader: InitDefaultPublicLibraries for_preload=1: libandroid.so:libaaudio.so:libamidi.so:libbinder_ndk.so:libc.so:libcamera2ndk.so:libdl.so:libEGL.so:libGLESv1_CM.so:libGLESv2.so:libGLESv3.so:libicu.so:libicui18n.so:libicuuc.so:libjnigraphics.so:liblog.so:libmediandk.so:libm.so:libnativehelper.so:libnativewindow.so:libOpenMAXAL.so:libOpenSLES.so:libRS.so:libstdc++.so:libsync.so:libvulkan.so:libwebviewchromium_plat_support.so:libz.so 02-18 21:44:48.827 29953 29953 D nativeloader: Load libicu_jni.so using APEX ns com_android_art for caller /apex/com.android.art/javalib/core-oj.jar: ok 02-18 21:44:48.827 29953 29953 D app_process: u_setTimeZoneFilesDirectory("/apex/com.android.tzdata/etc/tz/versioned/8/icu") succeeded. 02-18 21:44:48.827 29953 29953 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt75l.dat 02-18 21:44:48.828 29953 29953 D nativeloader: Load libjavacore.so using APEX ns com_android_art for caller /apex/com.android.art/javalib/core-oj.jar: ok 02-18 21:44:48.829 29953 29953 D nativeloader: Load libopenjdk.so using APEX ns com_android_art for caller /apex/com.android.art/javalib/core-oj.jar: ok 02-18 21:44:48.878 29953 29953 W ziparchive: Unable to open '/data/data/com.termux/files/usr/libexec/termux-am/am.dm': No such file or directory 02-18 21:44:49.274 29953 29953 W libc : Access denied finding property "ro.product.name_for_attestation" 02-18 21:44:49.275 29953 29953 W libc : Access denied finding property "ro.product.device_for_attestation" 02-18 21:44:49.275 29953 29953 W libc : Access denied finding property "ro.product.manufacturer_for_attestation" 02-18 21:44:49.275 29953 29953 W libc : Access denied finding property "ro.product.brand_for_attestation" 02-18 21:44:49.276 29953 29953 W libc : Access denied finding property "ro.product.model_for_attestation" 02-18 21:44:49.308 29953 29953 W libc : Access denied finding property "ro.debuggable" 02-18 21:44:49.628 29953 29953 D nativeloader: Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok 02-18 21:44:49.631 29953 29953 D AndroidRuntime: Calling main entry com.termux.termuxam.Am 02-18 21:44:49.686 29953 29953 I app_process: System.exit called, status: 0 02-18 21:44:49.686 29953 29953 I AndroidRuntime: VM exiting with result code 0. 02-18 21:44:49.692 10213 10213 E termux-api: Unrecognized 'api_method' extra: 'NotificationChannel' 02-18 21:45:00.776 29973 29973 W bash : type=1400 audit(0.0:89166): avc: granted { execute } for name="logcat" dev="dm-57" ino=286011 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:45:00.776 29973 29973 W bash : type=1400 audit(0.0:89167): avc: granted { execute } for name="logcat" dev="dm-57" ino=286011 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:45:00.776 29973 29973 W bash : type=1400 audit(0.0:89168): avc: granted { execute_no_trans } for path="/data/data/com.termux/files/usr/bin/logcat" dev="dm-57" ino=286011 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:45:00.776 29973 29973 W bash : type=1400 audit(0.0:89169): avc: granted { execute } for name="dash" dev="dm-57" ino=778503 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api 02-18 21:45:00.780 29973 29973 W logcat : type=1400 audit(0.0:89170): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="dm-57" ino=778503 scontext=u:r:untrusted_app_27:s0:c130,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c130,c257,c512,c768 tclass=file app=com.termux.api

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Feb 18, 2025

Unrecognized 'api_method' extra: 'NotificationChannel'

NotificationChannel api added in termux/termux-api@75a5ffe3 is not available in 0.51.1, use latest github action build.

https://github.com/termux/termux-api/actions/runs/12967965793

@agnostic-apollo agnostic-apollo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2025
@0Jumpero
Copy link
Author

Oh so that's what that was. Thanks

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

No branches or pull requests

5 participants