Commit Graph

220 Commits

Author SHA1 Message Date
Samuel Carlsson
93e5e02192 codecov badge 2017-10-22 19:36:34 +02:00
Samuel Carlsson
36f107da5b codecov with jacoco 2017-10-22 19:30:48 +02:00
Samuel Carlsson
5dfacc8e32 Linking to real android source 2017-10-19 21:27:58 +02:00
Samuel Carlsson
3d168a834f Update README.md 2017-10-19 21:22:55 +02:00
Samuel Carlsson
551d475851 Merge pull request #70 from muhikhsan101/quote-whitespaced-args
Quote Command Arguments with Whitespace
2017-10-19 21:19:29 +02:00
Muhammad Ikhsan
e441c96c85 Check other whitespace characters, e.g. tabs 2017-10-17 16:29:40 +07:00
Muhammad Ikhsan
99555a53f0 Modify testExecuteShellQuotesSpace to test other whitespace characters 2017-10-17 16:29:12 +07:00
Muhammad Ikhsan
b4ccd454a0 Make sure shellExpectations are verified 2017-10-17 16:28:26 +07:00
Muhammad Ikhsan
b4928a40c3 Apply the correct package name 2017-10-17 16:27:34 +07:00
Samuel Carlsson
e6a2ead1b4 Update README.md 2017-10-14 22:07:50 +02:00
Samuel Carlsson
1d350ad1d4 First timer friendly badge 2017-10-14 22:06:27 +02:00
Art
6a229592f5 Merge pull request #68 from ErnyTech/master
Add recovery state supoort
2017-10-12 10:54:43 +03:00
ErnyTech Team
edbf822c65 Update JadbDevice.java
Repair format
2017-10-12 09:49:31 +02:00
ErnyTech Team
1aebcaee1d Add recovery state supoort 2017-10-08 17:08:56 +02:00
Art
4332cd6ab8 Merge pull request #66 from gwpantazes/patch-1
Small grammatical changes in README intro
2017-08-30 00:13:56 +03:00
George Pantazes
68ed3f319f Small grammatical changes in README intro
Fixed one or two grammatical errors in the README intro, as well as tried to further refine the language.
2017-08-29 14:01:35 -07:00
Art
69877b3397 Merge pull request #63 from emanresusername/patch-1
add link to jitpack build bage
2017-06-12 12:40:11 +03:00
Jordan Gwyn
beceeae351 add link to jitpack build 2017-06-10 17:14:42 -07:00
Samuel Carlsson
a65c81343f Merge pull request #62 from bryant1410/master
Fix broken headings in Markdown files
2017-04-17 20:21:33 +02:00
Santiago Castro
71633da0a5 Fix broken Markdown headings 2017-04-16 16:49:54 -03:00
Samuel Carlsson
2775691d70 Merge pull request #60 from tmyroadctfig/master
Allow the location of the ADB binary to be specified for AdbServerLauncher.
2017-03-30 19:47:46 +02:00
Luke Quinane
62ae7cf530 Allow the location of the ADB binary to be specified. 2017-03-30 11:10:51 +11:00
Samuel Carlsson
79ab1aa5ea Merge pull request #59 from SKART1/FT-58-connect-disconnect
Ft 58 connect disconnect
2017-03-20 14:09:22 +01:00
Art
b4fa17abff #58 fixes in tests 2017-03-20 16:03:34 +03:00
Art
4442663889 #58 migration to InetSocketAddress 2017-03-20 15:17:38 +03:00
Art
64544b5bff #58 fixes in spaces and newline at the end of new files. Fixed typo in test 2017-03-20 14:48:09 +03:00
Art
0a12f784ca #58 implemented disconnect command 2017-03-20 13:48:24 +03:00
Art
f6e7da4f1f #58 connect command implemented and it`s test 2017-03-20 13:18:56 +03:00
Art
ebbceb99d5 #58 skeleton implemented 2017-03-17 19:48:13 +03:00
Art
5c1561bf94 #58 .gitignore changes 2017-03-17 19:46:14 +03:00
Raimund Hocke
7830215c53 correct version number for jitpack is v1.0.1 2017-03-13 09:56:27 +01:00
Samuel Carlsson
60cdc182ab Merge pull request #53 from tmyroadctfig/master
Add executeShellRaw() command using adb 'exec'.
2017-03-13 06:08:41 +01:00
Luke Quinane
0d1d326845 Add executeShellRaw() command using adb 'exec'. Code review changes. 2017-03-13 10:22:13 +11:00
Luke Quinane
ccd20658f1 Add executeShellRaw() command using adb 'exec'. 2017-02-02 13:43:03 +11:00
Samuel Carlsson
23d185b015 Merge pull request #52 from nuumio/WinTestFix
Don't use System.out as parameter in executeShell test
2017-01-31 08:43:20 +01:00
Art
2d89d91db1 Merge pull request #51 from nuumio/PropertyManager
Property manager improvements
2017-01-31 00:10:46 +03:00
Jari Hämäläinen
d3ef914b43 Use try-with-resources to close PropertyManager's reader 2017-01-30 20:50:34 +02:00
Jari Hämäläinen
d765e8f97f Don't use System.out as parameter in executeShell test
Using System.out as parameter for executeShell causes test run to
stop in Windows host. Probably because deprecated executeShell
closes the given output stream.

Changed parameter stream in test to ByteArrayOutputStream to allow
tests to run in Windows system. Resulting byte array is then written
to System.out to preserve old behavior.
2017-01-28 18:41:24 +02:00
Jari Hämäläinen
8115621587 Close PropertyManager's reader after parsing 2017-01-28 16:57:30 +02:00
Jari Hämäläinen
a083481f4a PropertyManager's pattern only needs to be compiled once
According to Pattern docs "Instances of this class are immutable and are
safe for use by multiple concurrent threads."
2017-01-28 16:54:51 +02:00
Jari Hämäläinen
206b9c4352 Allow any character except square brackets in property values
PropertyManager failed to get all properties from certain devices
because it allowed only [a-zA-Z0-9_.-] characters in values but
they can contain other characters too. For example in Nexus 9
ro.product.model is "Nexus 9" (has space).

This commit changes allowed characters in property value to contain
anything except square brackets.
2017-01-28 16:53:13 +02:00
Samuel Carlsson
0cb9550b50 Updating README.md regarding unix domain sockets
- Adding short troubleshooting guide instructing users running with adb server version serving via a unix domain socket.
2016-12-20 09:06:44 +01:00
Giemsa
251b3ac970 fix NullPointerException in test 2016-12-12 08:49:30 +01:00
Giemsa
d1af94d257 minor changes to some API 2016-12-12 08:49:30 +01:00
Samuel Carlsson
958e9258d3 Merge pull request #43 from vidstige/release-script
Adding release script
2016-11-10 06:50:02 +01:00
Samuel Carlsson
e9de06dc8c Adding release script 2016-11-10 06:46:57 +01:00
Daniel Friederich
b4f5083d00 Change AdbFilterInputStream.read not to wait for more data
The previous AdbFilterInputStream.read function was always waiting for
buffer to fill, even if this meant to block for a long time. Now it checks
if the next read will block. The one case it still could block, when
reading a 0xd (carriage return) is not expected to occur for interactive
output (at least as the last character of some input).
This removes the need for a separate executeShellRaw method.
2016-11-07 09:42:06 +01:00
Daniel Friederich
f8c9098a7e minor changes to address warnings, etc 2016-11-07 09:42:06 +01:00
Daniel Friederich
22f2442731 Add executeShellRaw method. Avoids buffering issues
The buffering used in executeShell causes issues when using shell:logcat,
the character per character implementation of the InputStream handling in AdbFilterInputStream together with the BufferedInputStream class
cause that the caller only gets result once either the process ends or 8k of output is avilable. The executeShellRaw method bypasses
the custom buffer handling, allowing the caller to receive the output without delay.
Note that the issue is only apparent when using a long running commamd with little output.
2016-11-07 09:42:06 +01:00
Samuel Carlsson
c5197eab01 Using java syntax highliter for code snippets. 2016-10-29 07:07:37 +02:00