Commit Graph

1223 Commits

Author SHA1 Message Date
Jack Palevich
3055d26ca9 Use material design style launcher icon.
Courtesy Nathanel Titane.
2015-03-22 10:40:20 -07:00
Jack Palevich
fd70d93a7e Update Russian localization
courtesy Timofey Lisunov.
2015-03-22 10:19:00 -07:00
Jack Palevich
d3bce69271 Use ptsname_r instead of ptsname
This avoids a warning when compiling.
2015-03-22 09:54:34 -07:00
Jack Palevich
77aabc2277 Fix compiler warning.
NULL is not an integer in C++. Use 0.
2015-03-22 08:59:26 -07:00
Jack Palevich
df30b34905 Update Android Studio project files 2015-03-22 08:52:12 -07:00
Jack Palevich
c96848a15b Ignore .iml files
These are generated by Android Studio.
2015-03-22 08:50:49 -07:00
Jack Palevich
4b9c8d8647 Don't track IML files in the project history.
These are automatically generated by Android Studio.
2015-03-22 08:49:23 -07:00
Jack Palevich
c45393cc12 Close non-standard file descriptors when execing.
Fixes issue #399.
2015-03-22 08:47:03 -07:00
Jack Palevich
6cd994870d Merge branch 'Alexander---upstream-merge' 2015-03-22 08:04:26 -07:00
Jack Palevich
31a218bd3f Merge branch 'upstream-merge' of github.com:Alexander--/Android-Terminal-Emulator into Alexander---upstream-merge 2015-03-22 07:58:29 -07:00
Alexander Rvachev
01369b17fc Do not use multi-catch for reflection-related exceptions — it somehow compiles into
closest common parent, which is a ReflectiveOperationException, not supported on old
Android versions.
2015-03-16 11:38:33 +10:00
Jack Palevich
15255f81e3 Merge branch 'upstream-merge' of github.com:Alexander--/Android-Terminal-Emulator into Alexander---upstream-merge 2015-03-15 17:01:04 -07:00
Alexander Rvachev
001ff7911a Fixed issues with new methods, not supported in API v4 (getLocalizedMessage is
worthless anyway)
2015-03-16 09:35:10 +10:00
Alexander Rvachev
13a90130e1 Move reusable application launching routines to separate library. Export AIDL interface
to use ATE from other apps. Open /dev/ptmx and use ParcelFileDescriptors in Java. Changed
minnimal API version to 4, because IntentSender.
2015-03-16 08:29:41 +10:00
Jack Palevich
19afb414fd Android Studio modified these files when I ran it. 2015-03-15 11:44:04 -07:00
Jack Palevich
0be07642d3 Put TextIcon.java in correct package. 2015-03-15 11:36:56 -07:00
Jack Palevich
b6d741d34e Merge pull request #392 from FrankWestlake/patch-1
Update ColorValue.java
2015-03-15 11:21:13 -07:00
Jack Palevich
d50ae0fd4d Merge pull request #391 from FrankWestlake/master
Update TextIcon.java
2015-03-15 11:20:53 -07:00
Frank P. Westlake
687bafe644 Update TextIcon.java
Alterations necessary to create  a multi-line image from text containing linefeeds.
2015-03-05 06:51:48 -08:00
Frank P. Westlake
7cee3cf47e Update ColorValue.java
Change the EditText from single-line to multi-lene.
2015-03-05 06:34:44 -08:00
Jack Palevich
9066e1fc30 Update Android Studio files 2015-02-14 12:08:12 -08:00
Jack Palevich
7fab51f8ac Suppress lint errors 2015-02-14 12:01:29 -08:00
Jack Palevich
0ba64a82b1 Intents sample doesn't need to include emulator library or ndk. 2015-02-14 11:56:22 -08:00
Jack Palevich
b3aa642c78 Move sources to correct place for gradle build. 2015-02-14 11:51:03 -08:00
Jack Palevich
4e427de552 Move examples to samples 2015-02-14 11:46:31 -08:00
Jack Palevich
305973fa11 Make Telnet sample actually work (at least for remote telnet.) 2015-02-14 11:44:03 -08:00
Jack Palevich
e8ba1d630c Rename widget to telnet 2015-02-14 11:28:52 -08:00
Jack Palevich
723e5f2491 Tweak samples slightly 2015-02-14 11:21:24 -08:00
Jack Palevich
2877ebd7ce Build widget sample using gradle. (Drop support for original Google TV.) 2015-02-14 10:24:49 -08:00
Jack Palevich
5930d674a2 Add pathbroadcasts to gradle build 2015-02-14 10:09:49 -08:00
Jack Palevich
ef61e1e3b5 Merge branch 'master' of github.com:jackpal/Android-Terminal-Emulator 2015-02-14 10:02:25 -08:00
Jack Palevich
76b86bec47 Make Intents example build with gradle. 2015-02-14 10:02:18 -08:00
Jack Palevich
abc725407a Add comments, avoid multiple invocations of android command. 2015-02-10 21:51:18 -08:00
Jack Palevich
1cae94e259 Add install-sdk-packages script to help with configuration. 2015-02-10 21:46:43 -08:00
Jack Palevich
5bc0d40f94 Fix typo in build commands. 2015-02-10 21:44:05 -08:00
Jack Palevich
904f808f07 Bring back examples. (Examples don't build with gradel yet.) 2015-02-10 20:38:33 -08:00
Jack Palevich
063a61c152 Merge branch 'master' of github.com:jackpal/Android-Terminal-Emulator 2015-02-10 20:31:27 -08:00
Jack Palevich
656d3dbc40 Add iml files.
These are generated by Android Studio, and JetBrains recommends checking them
in.
2015-02-10 20:30:14 -08:00
Jack Palevich
64b5c584c7 Merge pull request #377 from steven676/for-upstream
Shortcut improvements
2015-01-31 19:36:11 -08:00
Steven Luo
e605b3168f RemoteInterface: stop the service if no sessions are running on finish
If TEA is started via a call to a remote interface that subsequently
fails (an invalid shortcut, for instance), the terminal foreground
service is left running despite no terminal sessions being open.  Fix
this by detecting this case in finish() and stopping the service.
2015-01-31 06:18:57 -08:00
Steven Luo
87d0bbe3c5 Shortcut encryption improvements
* Install PRNG workarounds before generating keys or encrypting
* Avoid repeated regex pattern compiles when splitting strings on
  separators
* Add utility functions for Base64-coding with "our" settings
* Address review comments:
  - Handle errors in decoding decrypted output to String
  - Log more errors
* Improve comments
2015-01-31 06:18:49 -08:00
Steven Luo
24a3dcd9ad PRNGFixes: Android 1.5 compatibility 2015-01-30 04:11:46 -08:00
Steven Luo
38f520fd38 Provide workarounds for weaknesses in SecureRandom before Android 4.4
SecureRandom implementations shipped in Android before 4.4 suffer from
some notable weaknesses resulting in poor-quality entropy [1] [2].
While some vendors will have patched their systems, we cannot count on
patches being available or installed (sigh); instead, ship the
workarounds provided by Google in [3] (a new CSPRNG implementation that
reads from /dev/urandom, and proper seeding of the OpenSSL PRNG on
initialization).

[1] Against the Apache Harmony-derived SecureRandom in Android 4.1 and
earlier: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-7372
[2] Against Android 4.2 and 4.3's OpenSSL-derived PRNG:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-7373
[3] http://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
2015-01-30 04:11:32 -08:00
Jack Palevich
4ff373b9b0 Increment version number to v1.0.65 2015-01-28 05:52:28 -08:00
Jack Palevich
155eaa19a7 Add increment-version-number to the release process. 2015-01-28 05:51:08 -08:00
Jack Palevich
023f81f8ac Add command-line-tool to increment version number. 2015-01-28 05:47:38 -08:00
Steven Luo
742264fae4 Encrypt shortcut intents
As it turns out, the terminal shortcut feature was relying on the
explicit component intent security hole closed in 5112961... ("Split
RUN_SCRIPT handling out into its own activity").

Intents that come from shortcuts will be seen as coming from the
launcher, so using a permission to protect shortcut intents is a
non-starter (we cannot expect launchers to add arbitrary permissions to
their manifests).  Reverting the change to intent handling isn't a
particularly palatable option, since it leaks privileges and exposes
user data to any other apps running on the device.

Instead, we add a new RUN_SHORTCUT intent (and RunShortcut activity to
handle it) which requires shortcuts to be encrypted and authenticated
using randomly-generated keys known only to us.  This ensures that only
shortcuts that the user has created can be run, and that the contents of
those shortcuts (i.e. the commands that are being run) cannot be
discovered by someone examining stored shortcuts or intent traffic on
the system.  (It is possible for an attacker who captures a sent intent
to replay that intent, repeating the command; the utility of this to an
attacker is dubious, since he cannot control, or even discover, what
command he's triggering.)

Existing user shortcuts must be recreated.  This is unavoidable, given
that existing shortcuts are hard-coded to use the RUN_SCRIPT intent via
RemoteInterface, which is something that we can no longer support.
2015-01-28 04:44:24 -08:00
Jack Palevich
5b6c18fed2 Fix spelling mistake. 2015-01-25 17:33:24 -08:00
Jack Palevich
1673427c0f Updated gh-pages instructions 2015-01-25 10:42:04 -08:00
Jack Palevich
49119c11d5 Update version number to 1.0.64 2015-01-25 10:13:43 -08:00