github termux/termux-widget v0.14.0

2 days ago

v0.14.0 - 2025-01-16

Commit history: v0.13.0...v0.14.0

Changelog

Added

  • Add dynamic shortcuts. Implemented by @fabian-thomas and @agnostic-apollo in #80. (6253df51, bf224475)

  • Add support for shared day/night theming based on night-mode termux.properties value. (397359b9)

  • Add SystemEventReceiver that receives the ACTION_BOOT_COMPLETED and ACTION_MY_PACKAGE_REPLACED intents to refresh widgets. This should help fix issues on any potential devices that fail to send the AppWidgetManager.ACTION_APPWIDGET_UPDATE intent that is normally sent by Android to the app for it to refresh its widgets, but do send other intents on boot or app updates and don't kill the app after app updates. (d480a8ae)

  • Refresh all widgets when main activity starts instead of having to press the Refresh Widgets button manually. (aed127d7)

  • Add support for refreshing all widgets in in-app button and passing 0 in am broadcast -n com.termux.widget/.TermuxWidgetProvider -a com.termux.widget.ACTION_REFRESH_WIDGET --ei appWidgetId <id> broadcast. This also allows a way to fix occasional non-responsive widgets after app updates if ACTION_APPWIDGET_UPDATE was not sent/received by Termux:Widget app. (497c1cfb)

  • Add monochrome icon. Implemented by @daywalk3r666 in #99 (72fff0f5)

  • Add workflow_dispatch and cron schedule for "00:15 on 1st of every 2nd month" to github_action_build workflow triggers. (222cab3a)

  • ! Change sha256sums filename to checksums-sha256.txt that is generated for APKs built and uploaded to GitHub releases/actions with GitHub actions and log checksum file contents. This is done so that the checksums gets stored internally in GitHub action logs as well and if APK/checksum files attached to GitHub releases are modified manually by someone, this can be detected, at least until logs expire. (fa85579c)

 

 

Changed

  • Rename TermuxWidgetActivity to TermuxWidgetMainActivity. The TermuxWidgetLauncherActivity activity alias has been added for TermuxWidgetMainActivity. This will allow disabling the launcher activity, but still allow the main activity to be launched from Termux app (by running am start com.termux.widget/com.termux.widget.activities.TermuxWidgetMainActivity) or from widget title in future. The launcher activity will also now be allowed to be enabled again without having to reinstall the app with the Enable Launcher Icon button in the main activity if its currently disabled. (639483ad, d4cfdb2c)

  • Refactor TermuxCreateShortcutActivity to move shortcut functions to ShortcutFile and change shortcut path behaviour.

    The ShortcutFile will now store the path instead of the file object.

    This commit will also now pass absolute path of shortcuts when creating intents for shortcuts and widgets instead of canonical path. This will allow path expansion to be done during execution instead of at creation and if underlying symlink destination changes, new destination will be executed. There will still be a security check during execution to check if shortcut is under allowed directories. The shortcut label will now also be generated from absolute path instead of canonical path as mentioned in #59.

    Co-authored-by: Fabian Thomas fabian@fabianthomas.de.
    Co-authored-by: agnostic-apollo agnosticapollo@gmail.com.

    (b67203aa)

  • Change the word reload to refresh when refreshing widgets to be consistent. (a19b8edd)

  • ! Add -app suffix to app name and add version name in APKs generated. (96c5d1e4)

  • ! Use dot . as tags separator instead of dash - for github release source and debug build type in the apk version tag. This is done to be consistent with semver build metadata tags. For example github-debug will now be github.debug. (07cef6c3)

  • ! Rename app/build.gradle environmental variables to TERMUX_WIDGET_APP__BUILD__ scope instead of TERMUX_WIDGET_.

    • Renamed TERMUX_WIDGET_APP_VERSION_NAME to TERMUX_WIDGET_APP__BUILD__APP_VERSION_NAME.
    • Renamed TERMUX_WIDGET_APK_VERSION_TAG to TERMUX_WIDGET_APP__BUILD__APK_VERSION_TAG.

    (a1b0b196, a5708419)

  • Remove termux-emulator JNI libs from APK. (750f981e)

  • Update suggested permissions for .shortcuts/icons. Implemented by @SuspectTyrannosaurus in #69. (a5e1f43b)

 

 

Fixed

  • Show Open Termux:Widget app to refresh widget message instead of No files in ~/.shortcuts/ message when initial layout of widget is being shown so that it is not confused with shortcuts directory being empty.

    In this stuck state which may happen after app updates or if app process gets killed without being restarted by Android, the widgets must be refreshed by starting the Termux:Widget app or with the refresh button in the main activity.

    If the widget was successfully refreshed/updated and shortcuts directory was empty, only then the No files in ~/.shortcuts/ message will be shown.

    (de8c1a63)

  • Fix issue where app main activity will be brought to front if it existed in recent apps stack and a shortcut was run from launcher. (03c9cb77)

  • Remove replacement of '-' to ' ' in file names. (ad155a6c)

 

Check Installation for more info on termux-widget_<version>+github-debug.apk files attached.

Don't miss a new termux-widget release

NewReleases is sending notifications on new releases.