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]: expand/collapse notification-bar using cmd failed #4248

Open
HusniMuhammad opened this issue Nov 9, 2024 · 2 comments
Open

[Bug]: expand/collapse notification-bar using cmd failed #4248

HusniMuhammad opened this issue Nov 9, 2024 · 2 comments

Comments

@HusniMuhammad
Copy link

HusniMuhammad commented Nov 9, 2024

Problem description

Possible Due to this missing permission

https://developer.android.com/reference/android/Manifest.permission#EXPAND_STATUS_BAR

Exception occurred while executing 'expand-notifications':
java.lang.SecurityException: StatusBarManagerService: Neither user 10472 nor current process has android.permission.EXPAND_STATUS_BAR.
        at android.app.ContextImpl.enforce(ContextImpl.java:2018)
        at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2046)
        at com.android.server.statusbar.StatusBarManagerService.enforceExpandStatusBar(StatusBarManagerService.java:1076)
        at com.android.server.statusbar.StatusBarManagerService.expandNotificationsPanel(StatusBarManagerService.java:556)
        at com.android.server.statusbar.StatusBarShellCommand.runExpandNotifications(StatusBarShellCommand.java:113)
        at com.android.server.statusbar.StatusBarShellCommand.onCommand(StatusBarShellCommand.java:54)
        at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
        at android.os.ShellCommand.exec(ShellCommand.java:44)
        at com.android.server.statusbar.StatusBarManagerService.onShellCommand(StatusBarManagerService.java:1446)
        at android.os.Binder.shellCommand(Binder.java:929)
        at android.os.Binder.onTransact(Binder.java:813)
        at com.android.internal.statusbar.IStatusBarService$Stub.onTransact(IStatusBarService.java:1145)
        at android.os.Binder.execTransactInternal(Binder.java:1159)
        at android.os.Binder.execTransact(Binder.java:1123)

Steps to reproduce the behavior.

cmd statusbar expand-notifications

Or

cmd statusbar collapse

What is the expected behavior?

Expansion of notification-bar or closing of notification-bar

System information

System information

Termux Variables:
TERMUX_API_APP__VERSION_NAME=0.50.1
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__AM_SOCKET_SERVER_ENABLED=true
TERMUX_APP__APK_PATH=/data/app/~~LkYORvIv7C6UCW4kjISZRQ==/com.termux-9Wz4ANftMUKJoKDOTRGxCA==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__FILES_DIR=/data/user/0/com.termux/files
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__PACKAGE_MANAGER=apt
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PACKAGE_VARIANT=apt-android-7
TERMUX_APP__PID=29502
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c216,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c216,c257,c512,c768
TERMUX_APP__TARGET_SDK=28
TERMUX_APP__UID=10472
TERMUX_APP__USER_ID=0
TERMUX_APP__VERSION_CODE=118
TERMUX_APP__VERSION_NAME=0.118.0+062c977
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0+062c977
TERMUX__USER_ID=0
Packages CPU architecture:
arm
Subscribed repositories:

sources.list

deb https://packages.termux.dev/apt/termux-main stable main
Updatable packages:
curl/stable 8.11.0 arm [upgradable from: 8.10.1-2]
gpgme/stable 1.24.0 arm [upgradable from: 1.23.2-3]
gpgmepp/stable 1.24.0 arm [upgradable from: 1.23.2-3]
inetutils/stable 2.5 arm [upgradable from: 2.4-2]
libc++/stable 27c arm [upgradable from: 27b]
libcurl/stable 8.11.0 arm [upgradable from: 8.10.1-2]
libexpat/stable 2.6.4 arm [upgradable from: 2.6.3]
libheif/stable 1.19.2 arm [upgradable from: 1.19.1]
libmediainfo/stable 24.11 arm [upgradable from: 24.06-1]
mediainfo/stable 24.11 arm [upgradable from: 24.06-1]
termux-tools version:
1.44.3
Android version:
11
Kernel build information:
Linux localhost 4.14.193+-ab478 #1 SMP PREEMPT Thu May 9 16:42:40 CST 2024 armv8l Android
Device manufacturer:
realme
Device model:
RMX3231
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.widget versionCode:13

@HusniMuhammad HusniMuhammad changed the title [Bug]: expand notification-bar using cmd failed [Bug]: expand/collapse notification-bar using cmd failed Nov 9, 2024
@Balles9
Copy link

Balles9 commented Nov 24, 2024

Gracias
repository-open-graph-template

@HusniMuhammad
Copy link
Author

@Balles9 what is this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants