v0.52.0
v0.52.0 - 2025-05-22 10:50
Commit history: v0.51.0...v0.52.0
Changelog
Fixed
-
Bump
termux-sharedtoda3a0ac4e2. Related commit termux/termux-app@4de0caac. Related commit termux/termux-app@da3a0ac4. Related commit 28bc8c85. (a3a231e6) -
JobSchedulerAPI: Fix
ResultReturner.returnData()being called multiple times for different printing since 51a02f4 and 61262f7 throwingConnection refusedexceptions for calls after the first one instead of printing, and also refactor actions out to functions and change action output format.The
ResultReturner.returnData()will be called once for each action.The schedule job action will not print all pending jobs at end and only the pending job that was scheduled if successful. Users should use
termux-job-scheduler -pto get all pending jobs.The
termux-job-scheduler --paction will printNo jobs foundinstead ofNo pending jobsif no pending job exists.The
termux-job-scheduler --cancel-allaction will now print all jobs to be cancelled, orNo jobs foundfound.The job description will use
4spaces instead of a tab after the path.(
6fbf61aa) -
Fix
termux-notification --iconnot working for release builds as icon drawables were being removed by resource shrinker possibly related to 6ef2618.Use standard Android API to get resource id for drawable icon instead of using reflection into drawable class. Additionally use
String.format()so that resource shrinker does not remove icons used byNotificationAPIfor release builds.Closes #483.
(
1639e73f) -
Fix
termux-notificationactions not updating or conflicting between notifications due to same request code being used for thePendingIntentof all actions and also specifyPendingIntent.FLAG_IMMUTABLEto prevent any modification.(
7c1759a3) -
BatteryStatusAPI: Output double value instead of string for temperature field with value rounded up to 1 decimal place. (
97b41002) -
Manually add stack trace of caller function that called
ResultReturner.returnData()to exception messages as exceptions thrown insideRunnablelambda thread will not include it by default. (922f3585) -
Fix disabling obfuscation added in 6ef2618 caused due to wrong proguard file being used.
This caused Termux classes like
ReportInfoto be obfuscated making stacktraces harder to read.Related commit termux/termux-app@da3a0ac4.
(
28bc8c85) -
Explicitly specify
PendingIntent.FLAG_MUTABLEflag forPendingIntentpassed toNfcAdapter.enableForegroundDispatch(). (5040a66f) -
Check if
NfcAdapteris available and notnullinNfcActivity.onResume()in addition toonCreate()before calling its methods otherwise would trigger aNullPointerException. (4ba140dd) -
Fix
termux-nfc -t xresulting in error notification being shown as method was not returned from after sending error resulting inResultReturner.returnData()being called twice. (c986fb09)