1
0
mirror of https://github.com/danog/termux-api.git synced 2024-12-04 02:07:48 +01:00
Commit Graph

205 Commits

Author SHA1 Message Date
Alessandro Caputo
443fc75dc6 Bump version to 0.41 2020-02-15 18:44:01 +01:00
AbdullahM0hamed
6eaff65ced Update Permissions to allow installing/uninstalling of apps
This permission should be used along with: https://github.com/termux/termux-api-package/pull/94 to provide the ability to install/uninstall apps.

Tested on Galaxy J701F running android 8.1.0.
2020-02-09 19:57:22 +01:00
AbdullahM0hamed
00eeb0948a Add ability to have commas as characters within items
I propose that the ability to have escaped commas in items.

This would be useful in certain situations, such as when dealing with titles (some titles contain commas), and this edit would allow the user to escape commas in comma-separated lists, by passing: `-v 'item 1, item 1\, part 2` or "item 1, item 1\\, part 2"` as an argument to termux-dialog.
2020-01-26 16:57:44 +01:00
Ben Moran
51e6a4b14a NotificationAPI - remove notification on receiving non-ongoing Direct Reply 2020-01-12 20:30:02 +01:00
Ben Moran
4e49c391f6 NotificationAPI - Add support for Direct Reply actions 2020-01-12 20:30:02 +01:00
Ben Moran
47dc9d94a2 NotificationAPI - migrate to NotificationCompat 2020-01-12 20:30:02 +01:00
pim
dfbfb178ca JobSchedulerApi: Support persisted jobs, fixes #316 2020-01-04 10:57:13 +01:00
Leonid Plyushch
0eee610566
bump minimal sdk version to 24
We no longer update Android 5 branch of Termux packages.

Since future versions of Termux:API will eventually be
out of sync with corresponding package in Android 5
repositories, we need to prevent installation of newer
versions of add-on on devices with Android OS lower
than 7.0.
2020-01-02 00:57:18 +02:00
CarsonThompson
5a437e5149 termux-sensor: change sensor name matching behavior
so that when two sensors named "Sensor Uncalibrated" and "Sensor" exist, using `-s Sensor` correctly selects the latter.

Fixes #295
2019-10-25 23:58:59 +02:00
Leonid Plyushch
f47e9fe595
CI: development builds are now signed with publically-shared key
This commit adds keystore which is shared with community. People freely can
use it for creating own Termux app and plugin builds. However, builds signed
with such keystore cannot be proven as official.

Signed-off-by: Leonid Plyushch <leonid.plyushch@gmail.com>
2019-10-07 14:45:48 +03:00
Alessandro Caputo
608fb81d06 Bump version to 0.38 2019-10-06 16:44:17 +02:00
Boundary Effect
8294e2d58f Add a USB API compatible with libusb 2019-10-06 10:23:29 +02:00
Leonid Plyushch
01c11c7b34
use BatteryManager to obtain the current
Fix compilation error.
2019-10-04 23:54:07 +03:00
Wetitpig
e7b7309a8d Battery Current in μA (#293) 2019-09-24 19:12:55 +03:00
d75295d902 Fix fingerprint APIs on android 9 and switch to android X (#283) 2019-09-24 18:45:28 +03:00
Fredrik Fornwall
0a910cf58f Bump version to 0.37
Fixes an F-Droid build error:

Git checkout of 'v0.${versionCode}' failed
detail begin

error: pathspec 'v0.${versionCode}' did not match any file(s) known to git.
detail end
2019-09-11 19:47:05 +02:00
Alessandro Caputo
66ac3cd40d Bump version to 0.36 2019-08-25 21:38:46 +02:00
Alessandro Caputo
ffa002d85f NotificationAPI: set default alertOnce to false
Because the default should be false, and in termux-api-package the
--alert-once flag can be used to set it to true.

Thanks to AgentConDier for spotting this.

Fixes termux/termux-api-package#83
2019-08-25 20:39:33 +02:00
Alessandro Caputo
3acb5d449e Set intent flags when asking for permissions
Fixes #285 and #286
2019-08-25 10:50:05 +02:00
Alessandro Caputo
4dc5a210e0 Bump version to 0.35 2019-08-14 07:47:55 +02:00
Fredrik Fornwall
62dbc0f7b9 DRY in gradle app version specifier 2019-08-13 23:08:38 +02:00
Fredrik Fornwall
5fb683df97 Check Android version before accessing method
Also rename "vertical accuracy" to "vertical_accuracy" for consistency
with other JSON fields.
2019-08-13 22:57:02 +02:00
Fredrik Fornwall
2efe77fd67 Minor formatting 2019-08-13 22:56:49 +02:00
Fredrik Fornwall
93ee860589 Fix minor Android Studio warning 2019-08-13 22:55:58 +02:00
Alessandro Caputo
3a3bf2671d NotificationAPI: show timestamp
Since Android N, the notification's timestamp (set with setWhen) is not
shown by default. This commit ensures that it is shown.

fixes #265
2019-08-12 22:35:58 +02:00
Alessandro Caputo
7088105f55 LocationAPI: add vertical accuracy
fixes termux/termux-api#281
2019-08-12 22:10:26 +02:00
Fredrik Fornwall
f2895a13b7 Bump version to 0.34 2019-08-07 23:26:53 +02:00
xalexalex
53e6855923 Provide a default for --network (= "any")
fixes #276
2019-08-07 22:29:46 +02:00
Fredrik Fornwall
9ccc137c04 Bump version to 0.33 2019-05-30 01:30:12 +02:00
Ben Moran
61262f7510 Show pending job state at end of command, state if no pending jobs 2019-05-30 00:43:46 +02:00
Ben Moran
51a02f4fd8 Support cancel, cancelAll and pending in JobScheduler 2019-05-30 00:43:46 +02:00
Ben Moran
dce672f671 Better JobInfo formatting 2019-05-30 00:43:46 +02:00
Tom Yan
e2d0176514 fix termux/termux-app#995 on the java side 2019-05-30 00:42:52 +02:00
Fredrik Fornwall
b871f04beb Add a versionName gradle task 2019-05-29 23:30:23 +02:00
Fredrik Fornwall
1d5a3fe813 Bump version to 0.32 2019-03-20 00:09:30 +01:00
Fredrik Fornwall
de44896a01 Remove call log and SMS permissions
These are no longer permitted by Google:
https://play.google.com/about/privacy-security-deception/permissions/
2019-03-20 00:08:32 +01:00
Fredrik Fornwall
b1fdd3b483 Bump version to 0.31 2019-02-05 23:17:01 +01:00
Fredrik Fornwall
1cdedb72a6 Enable java 8 2019-02-05 23:05:53 +01:00
Fredrik Fornwall
10b60b14df Fix some Android Studio warnings 2019-02-05 22:57:39 +01:00
Fredrik Fornwall
cdb18598b2 Never throw Exception from BroadcastReceiver 2019-02-05 22:57:12 +01:00
Fredrik Fornwall
7099047d3d Cleanup imports 2019-02-05 22:54:28 +01:00
Nenad Ilic
8ae61a3e33 Revert the Dialog Activity to FLAG_ACTIVITY_NEW_TASK
The fix relates to issue #228
2019-02-05 22:52:06 +01:00
Fredrik Fornwall
7631220fc1 Bump version to 0.30 2019-01-25 02:43:24 +01:00
饺子w
3cf36400e2 add brightness mode (#234) 2019-01-25 01:08:40 +01:00
tomty89
3bfb11fe0f MicRecoderAPI: a few enhancements (#248)
* MicRecorderAPI: allow duration limit to be disabled with zero or negative

* MicRecorderAPI: avoid unnecessary MediaRecorder parameter in RecorderCommandHandler.handle()

* MicRecorderAPI: allow encoder and format to be set by user

All supported encoders can be set with their names. Unless a format
is set explicitly with its corresponding integer, a suitable format
would be chosen automatically for the chosen encoder.

* MicRecorderAPI: allow AudioSource to be set by user

Just in case, so it can only be set with the source's corresponding
integer.

* MicRecorderAPI: allow bit rate, sampling rate and number of channels to be set by user

* MicRecorderAPI: a couple of fixes

Have year before month and day in the default file name for better
sorting. Also fix the extension name in it for automatic format
selection. As we want the file to have extension name by default,
we have to pick a default format/encoder. AAC is chosen because it
is probably the most compatible one among different platforms.

* MicRecorderAPI: replace all getAbsoluteFile() with getAbsolutePath()

None of them were used in places where it should be a File.

* MicRecorderAPI: properly report unlimited MaxDuration

* MicRecorderAPI: make sure the recorder is released when not used

* MicRecorderAPI: remove aac_eld/he_aac/vorbis support

They are at least problematic on my phone. They either fail to work
or crash the API app. Sometimes the crash is even unrecoverable.
2019-01-25 01:07:53 +01:00
Fredrik Fornwall
8b33bba7dc Bump version to 0.29 2019-01-10 23:59:20 +01:00
Fredrik Fornwall
7cbf86407b Use vector icon 2019-01-10 23:58:06 +01:00
Fredrik Fornwall
515ada5a6a Update android design support library 2019-01-10 23:57:58 +01:00
Ben Moran
d3e9f14d23 Add JobSchedulerAPI (#235) 2019-01-03 02:06:19 +01:00
Fredrik Fornwall
7462684498 Bump version to 0.28 2018-09-27 21:29:50 +02:00