Commit Graph

165 Commits

Author SHA1 Message Date
Samuel Carlsson
c2acf534ff Refactor: Moving out methods for clarity. 2016-08-02 21:52:34 +02:00
Samuel Carlsson
ce6f04bdc7 Fixing a race condition in socket server
- This caused the mocked test cases to sometimes hang.
- Was particularly noticeable when running with code coverage.
2016-08-02 20:32:59 +02:00
Samuel Carlsson
72c632001e Refactor: Renaming to InstallOption
Removing plural to keep things clear.
2016-08-01 19:45:50 +02:00
Samuel Carlsson
9b8ba8ff52 Refactor: Using functions/fields instead of classes.
Cleaning up PackageManager.
2016-08-01 19:45:49 +02:00
Arthur
983dedf706 vidstige/jadb#17 adding options for pm install command 2016-07-26 13:06:46 +03:00
Samuel Carlsson
22b6e8e03f Removing getState, which was not working properly.
Tried to fix, by following the documentation found at https://github.com/android/platform_system_core/blob/master/adb/SERVICES.TXT, but to no avail.
2016-07-22 16:06:55 +02:00
Samuel Carlsson
2b71a04b4c Refactor: Cleaning up forceInstall 2016-05-13 21:40:14 +02:00
fashioncj
71388516fe fix whitespace 2016-05-08 14:43:53 +08:00
fashioncj
c52447e098 add forceInstall for application already exist
add a way to remove installed apk

fix issue
2016-05-08 14:38:01 +08:00
fashioncj
639ecdb633 add forceInstall for application already exist
add a way to remove installed apk
2016-05-05 21:36:42 +08:00
Samuel Carlsson
cadf3d4957 Quoting shell arguments with spaces 2016-04-29 15:02:18 +02:00
Samuel Carlsson
07f74cb20a Now possible to launch apps by package name 2016-04-29 10:02:55 +02:00
Samuel Carlsson
a1e55f06d8 Now possible to install packages easily. 2016-04-28 13:51:08 +02:00
Samuel Carlsson
dfb04af94b Adding package manager 2016-04-27 21:56:12 +02:00
Samuel Carlsson
0d60b34e7e Depricating the old executeShell method. 2016-04-27 20:39:14 +02:00
Samuel Carlsson
8cee1088a8 The shell command now returns InputStream. 2016-04-27 20:39:14 +02:00
Samuel Carlsson
6c1835cc11 Automatically tries to launch adb server.
Fixes issue #3.
2016-03-28 21:09:00 +02:00
Samuel Carlsson
68e92d14f4 Filtering out 0x0d, 0x0a sequences from shell commands. Makes screenshotting work again. :-) 2016-03-28 14:01:17 +02:00
Samuel Carlsson
c9a0a59ace Filtering out 0x0d, 0x0a sequences from shell commands. Makes screenshotting work again. :-) 2016-03-28 09:41:53 +02:00
Samuel Carlsson
41872e3bb9 Refactor: Consistent whitespace & brace style 2016-03-20 09:13:59 +01:00
Samuel Carlsson
d716ba0325 Using UnsupportedOperationException instead of weird NotImplementedException 2016-03-15 09:12:43 +01:00
Samuel Carlsson
84950ceadb Refactor: Avoids having stale transport lingering around. 2016-03-02 21:14:32 +01:00
Samuel Carlsson
92506f643d Using streams rather than byte arrays. 2016-03-02 21:06:19 +01:00
Gergő Törcsvári
27bed5a88a fix (codeorg): small code cleanup
fix (test): bugfix
2016-03-02 00:10:05 +01:00
Gergő Törcsvári
722ecc4f8b bytearray shell execution added 2016-02-28 10:54:33 +01:00
Gergő Törcsvári
5ab126ddbe reuseable jadbDevices and the shell command returns a string 2016-02-28 03:04:59 +01:00
Samuel Carlsson
31456f7a36 Refactor: Fixing some code issues found by IntelliJ 2014-07-25 19:51:57 +02:00
Samuel Carlsson
a58587f794 Adding test case for pulling file. 2014-03-26 22:12:29 +01:00
Samuel Carlsson
39ea2d92d6 Adding test for pushing to invalid path. 2014-03-26 21:46:21 +01:00
Samuel Carlsson
ee239467d0 Now actually asserting that non expected pushes are not sent. 2014-03-26 10:07:24 +01:00
Samuel Carlsson
89403cb126 Adding callback for file pushed. 2014-03-25 15:52:32 +01:00
Samuel Carlsson
0e94c45791 Adding mocked unit test for pushing file. 2014-03-25 15:46:54 +01:00
Samuel Carlsson
25745857b7 Refactor: Using exceptions to send errors back to client in mocked server. 2014-03-24 21:06:47 +01:00
Samuel Carlsson
c051da8e7f Fixing a problem where errors during pull where not handled correctly. 2014-03-20 21:31:25 +01:00
Samuel Carlsson
5f54c813cc Adding pull and push methods that take streams rather than local files for more flexibility and easier testing. 2014-03-20 21:23:08 +01:00
Samuel Carlsson
fa74fd88bd Fixing a bug where jadb would hang if no devices where found. 2014-03-20 17:30:21 +01:00
Samuel Carlsson
59cc2e9d1e Refactor: Now expected serial is stated in the test for added clarity. 2014-03-20 17:22:05 +01:00
Samuel Carlsson
aecd17a446 Refactor: Moving server code into Jadb from the test package. 2014-03-20 17:01:56 +01:00
Samuel Carlsson
e26de967bf Refactor: Making RemoteFileRecord package local. 2014-03-20 11:38:50 +01:00
Samuel Carlsson
29c3a3956a Using strong types File and RemoteFile in public arguments where appropriate. 2014-03-20 11:37:04 +01:00
Samuel Carlsson
ac47d49cc7 Refactor: Creating RemoteFile base class to be used as arguments. 2014-03-20 11:33:03 +01:00
Samuel Carlsson
dbe57d0279 Refactor: Fixing warnings 2014-03-20 10:35:08 +01:00
Samuel Carlsson
88faded23d Adding truly mocked test case. 2014-03-20 10:31:13 +01:00
Samuel Carlsson
fef216f3ce Adding support for pulling files from device 2014-03-20 10:10:35 +01:00
Samuel Carlsson
e09b429b86 Refactor: Renaming to JadbDevice. 2014-03-20 09:50:17 +01:00
Samuel Carlsson
15f49dde6a Refactor: Extracting method. 2014-03-19 21:18:03 +01:00
Samuel Carlsson
de0c65d922 Adding support for pushing files to device. 2014-03-19 21:15:40 +01:00
Samuel Carlsson
6b8c330195 Fixing a bug where strings where sometimes not read completely during sync. Removing some IntellJ warnings. 2014-03-19 17:36:53 +01:00
Samuel Carlsson
0bc737adab Made the list method return the files rather than print them on stdout 2014-03-19 17:19:05 +01:00
Samuel Carlsson
d456c1d79a Refactor: Renaming to RemoteFile to better match the java api 2014-03-19 16:56:38 +01:00
Samuel Carlsson
272a29a750 Now possible to list files on device 2014-03-19 10:06:40 +01:00
Samuel Carlsson
4b162f41ad Made it possible to create a android device that connects to any device 2014-03-19 09:41:14 +01:00
Samuel Carlsson
5723a7ce27 The error message is now included in the thrown exception. 2014-03-18 21:33:18 +01:00
Samuel Carlsson
97dc3819cc Method signature for push 2013-07-26 15:34:10 +02:00
Samuel Carlsson
0e02f9d7d8 Allowing clients to specify host & port 2013-07-26 10:24:49 +02:00
Samuel Carlsson
f3031c254b Adding execute shell command 2013-07-26 09:24:03 +02:00
Samuel Carlsson
8e9b82ee74 Using extra socket for listing devices as server closes connection after that command. 2013-07-25 23:36:18 +02:00
Samuel Carlsson
a4a2e1a6af Adding gat state on AndroidDevice 2013-07-25 22:16:44 +02:00
Samuel Carlsson
c0330b5a13 Parsing devices 2013-07-25 21:52:46 +02:00
Samuel Carlsson
831ee1ecbc Refactor: Moving out transport code into its own class. 2013-07-25 21:38:44 +02:00
Samuel Carlsson
2799f05250 Adding get devices method 2013-07-25 21:33:53 +02:00
Samuel Carlsson
87ee4c5d83 Refactor: Renaming to verify response 2013-07-25 21:29:13 +02:00
Samuel Carlsson
c667a0aa41 Verifying result code 2013-07-25 21:25:32 +02:00
Samuel Carlsson
008492e140 Refactor: Moving out a method 2013-07-25 21:21:33 +02:00
Samuel Carlsson
b36ede6770 Adding get host version method. 2013-07-25 21:13:20 +02:00