Benjamin-Loison / termux-api

Termux add-on app which exposes device functionality as API to command line programs.
https://f-droid.org/en/packages/com.termux.api/
0 stars 0 forks source link

`termux-{notification,location,volume,dialog,clipboard-{set,get}}` are sometimes slow #1

Open Benjamin-Loison opened 8 months ago

Benjamin-Loison commented 8 months ago

Food/issues/20 https://gitlab.com/Benjamin_Loison/tracker notably script graphical shortcuts on a relative phone Improve_websites_thanks_to_open_source/issues/143 ~/bens_folder/reminders/geoReminders/add-geo-reminder.py

Maybe also termux-sms-list and termux-contact-list, cf https://github.com/Benjamin-Loison/android_packages_apps_Dialer/issues/1.

termux-notification-remove TAG works without notification access but its slowness is an actual issue here, as the purpose is to directly clean the phone notifications.

Should get a logcat to investigate this issue. Should record such a logcat in case it is slow, not to introduce a bias.

+12

Problem description

Steps to reproduce

Expected behavior

Additional information

Benjamin-Loison commented 4 months ago

Maybe related to termux-api/issues/552.

Benjamin-Loison commented 3 months ago

Do not seem to have this issue on Waydroid.

Benjamin-Loison commented 3 months ago

Killing all apps and reboot seems to solve the issue.

Benjamin-Loison commented 3 months ago

May be related to termux-app/blob/2f40df91e54662190befe3b981595209944348e8/README.md?plain=1#L20.

agnostic-apollo/Android-Docs/blob/f89b5a310ce21a9aa97245f5ca0ccd5d1e46bcc4/en/docs/apps/processes/phantom-cached-and-empty-processes.md#how-to-check-max-phantom-processes-that-are-allowed-to-run

On my Fairphone 4:

adb shell "/system/bin/dumpsys activity settings | grep max_phantom_processes"ocesses"
  max_phantom_processes=32
adb shell "/system/bin/device_config get activity_manager max_phantom_processes"
null

Android Settings > System > Developer options > Disable child process restrictions is toggled currently.

getprop persist.sys.fflag.override.settings_enable_monitor_phantom_procs
false

Does not seem to help the loop mentioned in termux-api-package/issues/10#issuecomment-2078091050.

Benjamin-Loison commented 2 months ago

Do we have the same issue on Xiaomi Mi A3? I was having this delay on this device this time it seems.

Benjamin-Loison commented 2 months ago

Would help tracker/blob/a26db22215541913b9780ae9b6aadfe2c33b8a58/track.py#L12-L13.

Benjamin-Loison commented 1 month ago

May be blocking for notifyOnBnpUpdate.py as it requires 2FA and I am trying to make it work on Termux.