agnostic-apollo
dbf84773d4
Fix potential null exceptions
2021-03-10 02:33:45 +05:00
agnostic-apollo
324a69f7fa
Move terminal input related classed to com.termux.app.input package
2021-03-10 02:32:33 +05:00
agnostic-apollo
14c49867f7
Define TermuxConstants
class to store all shared constants of Termux app and its plugins
...
This commit removes almost all hardcoded paths in Termux app and moves the references to the `TermuxConstants` class.
The `TermuxConstants` class should be imported by other termux plugin apps instead of copying and defining their own constants. The 3rd party apps can also import it for interacting with termux apps. App and sub class specific constants are defined in their own nested classes to keep them segregated from each other and for better readability.
2021-03-08 15:09:22 +05:00
agnostic-apollo
395759cc0a
Restore keyboard input into terminal view when toggling extra-keys slider input with VOL_UP+q
...
Check #1420 for details.
2021-03-06 18:27:57 +05:00
agnostic-apollo
93a5bf8d29
Request android.permission.REQUEST_INSTALL_PACKAGES permission
...
This will allow users to access `Android/obb` on android 11 after explicitly granting Termux the permission by going to Termux `App Info` in Android `Settings` -> `Advance` -> `Install unknown apps`.
https://medium.com/androiddevelopers/android-11-storage-faq-78cefea52b7c
2021-03-02 16:48:15 +05:00
agnostic-apollo
356a442c6f
Request android.permission.DUMP permission
...
This will allow users to run `dumpsys` command after running `adb shell pm grant com.termux android.permission.DUMP`.
https://developer.android.com/studio/command-line/dumpsys
2021-03-01 12:40:04 +05:00
agnostic-apollo
5a96075025
Update RunCommandService documentation
2021-02-27 13:23:37 +05:00
agnostic-apollo
85b2c44ac7
Fix current working directory default value
...
This commit fixes the issue when `cwd` is empty and is passed to `Runtime.getRuntime().exec(progArray, env, new File(cwd));`, it raises the `No such file or directory` exceptions when targeting sdk `29`.
2021-02-27 13:22:09 +05:00
agnostic-apollo
108e4cb391
Fix workdir logic in RunCommandService
...
This commit fixes the workdir logic to not send `EXTRA_CURRENT_WORKING_DIRECTORY` extra to `TermuxService` if workdir is empty, since that will raise `No such file or directory` exceptions if `cwd` is empty when targeting sdk `29`.
2021-02-27 13:14:13 +05:00
agnostic-apollo
80858bab6b
Fix path expansion in RunCommandService
...
This commit fixes `getExpandedTermuxPath()` (previously `parsePath()`) not expanding path if exactly `$PREFIX` is passed and addition of extra trailing slashes in some cases.
2021-02-27 13:10:57 +05:00
agnostic-apollo
00194ebb90
Add logcat errors in RunCommandService
...
This commit adds `logcat` errors if an invalid intent action is passed or if `allow-external-apps` is not set to `true` while sending an intent to `RunCommandService`, so that users can detect issues.
2021-02-27 13:07:07 +05:00
agnostic-apollo
f50d15d353
Fix "Duplicate finish request for ActivityRecord" errors
2021-02-26 17:09:04 +05:00
Vincent Deville
a4381b7827
ExtraKeysView: SpecialButtons use Button instead of ToggleButton
2021-02-03 23:26:08 +02:00
Vincent Deville
866da75fa9
ExtraKeysView: Use Set instead of List for special buttons keys
2021-02-03 23:26:08 +02:00
Vincent Deville
2b6e9ade07
ExtraKeysView: Handle multiple and popup SpecialButtons
2021-02-03 23:26:08 +02:00
Leonid Pliushch
e03858f065
export app version in environment variable
2021-02-03 22:39:13 +02:00
Leonid Pliushch
01929397cf
TermuxPreferences: get rid of unnecessary switch()'es
2021-02-03 20:27:13 +02:00
Leonid Pliushch
496da3f877
introduce a property for configuring default working directory
...
Issue https://github.com/termux/termux-app/issues/1192 .
2021-02-03 20:22:38 +02:00
Leonid Pliushch
6e2a2ed946
documents provider: fix application icon reference
2021-02-03 15:56:38 +02:00
Leonid Pliushch
7be1fe5555
icon: add regular png icon for compatibility with some launchers
...
See https://github.com/termux/termux-app/issues/991 .
Adaptive icon will continue to be automatically used if supported.
2021-02-03 15:49:03 +02:00
David Kramer
096dedffb1
Remove height offset workarounds / config
...
* Use WindowInsetsListener to get nav bar height and use that
instead for calculating adjusted height for extra keys view
2021-02-02 01:31:50 +02:00
David Kramer
b5d491a54c
Implement full screen and add FullScreenWorkAround to fix ExtraKeysView
...
not displaying properly and inconsistently between various devices
2021-02-02 01:31:50 +02:00
Henrik Grimler
831aa69da8
Merge pull request #726 from dkramer95/OpenBroadcast
...
Sends broadcast on app open to notify addon termux receivers
2021-01-06 13:48:15 +01:00
Leonid Pliushch
9228982632
remove restrictions from viewable file types
...
Fixes https://github.com/termux/termux-app/issues/1872 and
similar issues.
2021-01-06 14:28:28 +02:00
Lucy Phipps
538a1d5cdf
F-Droid URL for Termux:Styling
2021-01-01 23:48:34 +02:00
Henrik Grimler
b895cbbb1e
app: set importantForAutofill="no" for extra keys input field
...
Fixes warning "extra_keys_right.xml:2: Missing autofillHints attribute".
2021-01-01 18:13:37 +01:00
Kevin LeBlanc
d267843e36
Don't exclude hidden files from document provider ( #1220 )
...
Credit to @johnmellor for requesting the document provider in the
first place via #79 , mentioning this limitation in a comment on
that issue, and creating a commit like this one to address it.
2020-12-29 13:42:36 +02:00
Lucy Phipps
4066c5df42
don't add $PREFIX/bin/applets to $PATH
...
busybox doesn't use that folder anymore, and is deprecated anyway
2020-11-24 23:16:17 +02:00
Leonid Pliushch
3a8f53a54c
add permission WRITE_SECURE_SETTINGS
...
https://github.com/termux/termux-api/issues/211
2020-11-17 20:07:33 +02:00
Leonid Pliushch
2f04a6186b
add READ_LOGS permission
...
* https://github.com/termux/termux-app/issues/873
* https://github.com/termux/termux-app/issues/1821
2020-11-17 20:03:10 +02:00
Fabian Henneke
8c80efb904
Add an "Autofill password" context menu action
2020-10-02 10:21:34 +02:00
agnostic-apollo
7063a3a9da
Add @override annotation to onStartCommand() function of RunCommandService.
2020-09-18 22:25:05 +05:00
agnostic-apollo
6e02b99ff6
Update RunCommandService docs.
2020-09-18 22:22:35 +05:00
agnostic-apollo
9aae665bfc
Fix issue where termux session does not come to foreground automatically in android >= 10 unless user manually clicks termux notification for "RUN_COMMAND" intents and "Termux:Tasker" plugin actions that have background mode "false" because of new restrictions of starting activities from background. This is done by adding "android.permission.SYSTEM_ALERT_WINDOW" permission in AndroidManifest.xml so that the user may optionally grant "Draw Over Apps" permission to termux to fix the issue.
2020-09-18 22:21:58 +05:00
agnostic-apollo
52ce6cc94b
Add support for "$PREFIX/" and "~/" prefix in "RUN_COMMAND" intent extras for paths.
2020-09-18 22:21:31 +05:00
agnostic-apollo
f91168eff4
Fix issue where termux crashes occasionally in android >= 8 because "startForeground()" function is not being called before running "startForegroundService()" in RunCommandService.
2020-09-18 22:20:23 +05:00
Leonid Pliushch
db2f50c76e
extra keys: use TextUtils.join instead of String.join
...
String.join() is available only on Android API 26+ but our current
minimal is 24.
See https://github.com/termux/termux-app/issues/1670 .
2020-08-14 15:08:32 +03:00
Leonid Pliushch
784affe39c
linter: fix wakelock log tag
...
See https://github.com/termux/termux-app/issues/1670 .
2020-08-14 15:03:51 +03:00
Leonid Pliushch
b486d29d23
fix RUN_COMMAND permission description
...
See https://github.com/termux/termux-app/issues/1713 .
2020-08-14 14:50:34 +03:00
Agnostic Apollo
b2ff0e4051
Changed static string "EXTRA_EXECUTE_IN_BACKGROUND" access to public
2020-07-30 21:39:41 +03:00
Agnostic Apollo
9e7029b76a
Receive "RUN_COMMAND_ARGUMENTS" extra for "RUN_COMMAND_ACTION" intent
...
as a string array extra instead of a string extra since TermuxService expects it that way.
Added "RUN_COMMAND_BACKGROUND" boolean extra so that Termux session can be started in background
when running a command.
Updated usage docs.
Check #1029 for details.
2020-07-30 21:39:41 +03:00
Egor Zhdanov
51370799c7
update notification icon
2020-07-14 12:36:56 +03:00
Felix C. Stegerman
930029b5d2
export COLORTERM=truecolor
2020-06-22 02:07:20 +03:00
Leonid Pliushch
33def928cf
add DEX2OATBOOTCLASSPATH environment variable
2020-06-19 22:25:51 +03:00
Leonid Pliushch
fc04a93990
get rid of Android 5 legacy stuff
...
We don't need LD_LIBRARY_PATH as of Android 7.0.
2020-06-19 22:18:28 +03:00
Leonid Pliushch
8d302aa9fe
fix am on Android R
2020-06-19 22:18:21 +03:00
Leonid Pliushch
6cf742460c
extra keys: make popup & pressed button no longer transparent
...
Fixes visual issue when popup overlaps text of upper row.
2020-06-09 22:54:57 +03:00
Leonid Pliushch
2c5534e2c1
RunCommandService: update information about usage
2020-06-09 16:07:42 +03:00
Leonid Pliushch
5b32540635
minor refactoring: RunCommand => RunCommandService
2020-06-09 15:48:56 +03:00
Leonid Pliushch
db3ff7b24a
Provide a service for executing commands by third-party applications
...
Re-implementation of https://github.com/termux/termux-app/pull/1029 .
If Termux has property "allow-external-apps" set to "true", a third-party
program will be able to send intents for executing custom commands
within Termux environment.
Third-party program must declare permission "com.termux.permission.RUN_COMMAND".
2020-06-09 15:36:08 +03:00