termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

termux-battery-status hangs on Android 8.1

Open d9ichen opened this issue 4 years ago • 0 comments

termux-battery-status hangs on

  • F-Droid Version: 1.14
  • Termux Version: 0.118.0
  • Termux:Api Version: 0.50.1
  • Android Version: 8.1.0
  • Device Model: Meizu 16th

  • termux-info
~ $ termux-info
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.mentality.rip/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.26.0
Android version:
8.1.0
Kernel build information:
Linux localhost 4.9.65-perf+ #1 SMP PREEMPT Wed May 19 01:57:32 CST 2021 aarch64 Android
Device manufacturer:
Meizu
Device model:
16th

~ $ cat /sys/class/power_supply/battery/capacity
61
~ $ termux-battery-status
^C
~ $
  • logcat
~ $ logcat
--------- beginning of main
08-15 11:39:20.437 15779 15779 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:39:20.664 15779 15779 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:43:28.077 16681 16681 I find    : type=1400 audit(0.0:1195): avc: denied { read } for name="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:43:28.077 16681 16681 I find    : type=1400 audit(0.0:1196): avc: denied { open } for path="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:43:29.752 16768 16768 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:43:29.985 16768 16768 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:43:32.824 16789 16789 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:43:33.056 16789 16789 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:43:35.557 14633 14633 I bash    : type=1400 audit(0.0:1200): avc: denied { ioctl } for path="/dev/pts/1" dev="devpts" ino=4 ioctlcmd=0x540a scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=1
08-15 11:43:41.767 16853 16853 I find    : type=1400 audit(0.0:1201): avc: denied { read } for name="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:43:41.767 16853 16853 I find    : type=1400 audit(0.0:1202): avc: denied { open } for path="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:43:43.430 16912 16912 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:43:43.664 16912 16912 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:43:46.516 16926 16926 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:43:46.751 16926 16926 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:44:55.255 16971 16971 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:44:55.499 16971 16971 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:45:25.854 16981 16981 I /data/data/com.termux/files/usr/bin/sshd: Accepted password for ai from 192.168.31.102 port 59282 ssh2
08-15 11:47:24.297 16982 16982 I bash    : type=1400 audit(0.0:1209): avc: denied { ioctl } for path="/dev/pts/3" dev="devpts" ino=6 ioctlcmd=0x540a scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=1
08-15 11:49:09.616 16982 16982 I bash    : type=1400 audit(0.0:1211): avc: denied { ioctl } for path="/dev/pts/3" dev="devpts" ino=6 ioctlcmd=0x540a scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=1
08-15 11:49:29.254 17103 17103 I find    : type=1400 audit(0.0:1212): avc: denied { read } for name="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:49:29.264 17103 17103 I find    : type=1400 audit(0.0:1213): avc: denied { open } for path="/" dev="rootfs" ino=2 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1
08-15 11:52:45.531 16982 16982 I bash    : type=1400 audit(0.0:1219): avc: denied { ioctl } for path="/dev/pts/3" dev="devpts" ino=6 ioctlcmd=0x540a scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=1
08-15 11:57:06.345 13950 13950 I /data/data/com.termux/files/usr/bin/sshd: Received disconnect from 192.168.31.102 port 52410:11: disconnected by user
08-15 11:57:06.346 13950 13950 I /data/data/com.termux/files/usr/bin/sshd: Disconnected from user ai 192.168.31.102 port 52410
08-15 11:57:21.599 17435 17435 I /data/data/com.termux/files/usr/bin/sshd: Accepted password for ai from 192.168.31.102 port 62321 ssh2
08-15 11:57:25.516 14632 14632 I /data/data/com.termux/files/usr/bin/sshd: Received disconnect from 192.168.31.102 port 53605:11: disconnected by user
08-15 11:57:25.517 14632 14632 I /data/data/com.termux/files/usr/bin/sshd: Disconnected from user ai 192.168.31.102 port 53605
08-15 11:58:06.685 17445 17445 I /data/data/com.termux/files/usr/bin/sshd: Accepted password for ai from 192.168.31.102 port 62545 ssh2
08-15 11:58:22.617 17455 17455 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:58:22.857 17455 17455 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 11:58:45.815 16981 16981 I /data/data/com.termux/files/usr/bin/sshd: Received disconnect from 192.168.31.102 port 59282:11: disconnected by user
08-15 11:58:45.816 16981 16981 I /data/data/com.termux/files/usr/bin/sshd: Disconnected from user ai 192.168.31.102 port 59282
08-15 11:58:49.332 17436 17436 I bash    : type=1400 audit(0.0:1224): avc: denied { ioctl } for path="/dev/pts/2" dev="devpts" ino=5 ioctlcmd=0x540a scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:untrusted_app_devpts:s0:c512,c768 tclass=chr_file permissive=1
08-15 11:59:39.487 17473 17473 W ADebug  : Failed to get property persist.sys.media.traces
08-15 11:59:39.813 17473 17473 I /system/bin/app_process: The ClassLoaderContext is a special shared library.
08-15 12:07:26.120 17486 17486 W ADebug  : Failed to get property persist.sys.media.traces
08-15 12:07:26.461 17486 17486 I /system/bin/app_process: The ClassLoaderContext is a special shared library.

08-15 12:08:50.301 17508 17508 I cat     : type=1400 audit(0.0:1234): avc: denied { read } for name="capacity" dev="sysfs" ino=58165 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_battery_supply:s0 tclass=file permissive=1
08-15 12:08:50.301 17508 17508 I cat     : type=1400 audit(0.0:1235): avc: denied { open } for path="/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pmi8998@2:qcom,qpnp-smb2/power_supply/battery/capacity" dev="sysfs" ino=58165 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_battery_supply:s0 tclass=file permissive=1
08-15 12:09:37.786 17520 17520 W ADebug  : Failed to get property persist.sys.media.traces
08-15 12:09:41.115 17520 17520 I /system/bin/app_process: The ClassLoaderContext is a special shared library.

d9ichen avatar Aug 15 '22 04:08 d9ichen