Commit Graph

779 Commits

Author SHA1 Message Date
Rick van Hattem
d371e733d2 Fix for stdout race condition in stf doctor
Sometimes the process exits before the data is read from stdout. The result is that the `call` method exits before it has it's output.

Example bug: https://github.com/openstf/stf/issues/1091
2019-11-06 12:26:31 +01:00
Simo Kinnunen
f01dd4374a Later Android versions seem to be asking for verification when removing files. 2019-09-11 23:31:08 +09:00
Simo Kinnunen
89f2f7d39b Make sure we try to read as soon as possible. Otherwise we may miss a chunk if timing is off. 2019-09-11 23:30:30 +09:00
Simo Kinnunen
16e64b51ff Merge pull request #770 from neofreko/adb-key-api
Implements addAdbPublicKey API endpoint
2019-07-10 11:44:32 -07:00
aokhotin
4ef05e91bb zmq ZMQ_IPV6 option set 2018-09-10 22:02:06 +03:00
Simo Kinnunen
762b07bc45 Update index.js
Temporarily turn OAuth 2.0 state tokens off due to #931.
2018-08-11 16:33:32 +09:00
Simo Kinnunen
ecd79eff81 Drop sdk.release from minicap.so search path. With Android P its value was "9", which conflicted with the android-9 (SDK 9) folder. 2018-08-09 02:38:03 +09:00
Simo Kinnunen
32c9949bd7 Merge pull request #806 from thinkhy/patch_180204
Use 'ps -lef' instead of 'ps' to list Pids on Android 8.x
2018-07-14 12:02:29 +08:00
Simo Kinnunen
95562b5c35 STFService can now display the identity activity (red screen) automatically if a device gets disconnected from USB (or ADB), which can make maintenance easier. This feature is in beta, please enable it by running adb shell pm grant jp.co.cyberagent.stf android.permission.DUMP on the devices you want to try it on. 2018-07-14 11:59:38 +08:00
Simo Kinnunen
97633327bb Support OAuth2 state tokens. 2018-07-14 11:06:15 +08:00
Aaron Pfeifer
9914798eab Support new connecting and authorizing device states from ADB 2018-07-13 15:12:32 -04:00
song
1dccf60fca detect if 'ps' command output all the processes 2018-04-12 00:28:10 +08:00
song
69e434d08c change 'ps -lef' to 'ps -le 2>/dev/null' to filter weird errors in output 2018-04-06 15:19:18 +08:00
Simo Kinnunen
badb3ed3be Updated STFService.apk to fix an issue on high aspect ratio devices like the Mi Mix 2 where a portion of the screen may not have been visible. Closes #733. 2018-03-25 00:57:54 +09:00
Simo Kinnunen
3032980c78 Merge pull request #778 from 0rzech/saml-callback-url-option
SAML callback URL option
2018-03-23 22:59:37 +09:00
Simo Kinnunen
6f42b9677b Merge pull request #768 from 0rzech/screen-reset-option
Screen reset option
2018-03-23 22:55:17 +09:00
Simo Kinnunen
3fc9b5b5e9 Merge pull request #779 from DroidsOnRoids/opengles
Add OpenGL ES version to device properties.
2018-03-23 22:43:21 +09:00
Simo Kinnunen
4ed5aaacdb Newest version of formidable changes the default maximum file size to 2MB, which is way too low for anything. Make the limit configurable and set to 1GB by default. 2018-03-14 13:45:28 +09:00
Piotr Orzechowski
31f53dc220 Add option to control SAML callback 2018-03-07 11:17:59 +01:00
Piotr Orzechowski
e8db600878 Add option to control screen resetting on device release 2018-03-07 11:15:15 +01:00
Simo Kinnunen
e9d03aeac3 Merge pull request #800 from syncxplus/master
Correct touch service log
2018-03-02 22:29:38 +09:00
song
1d7efd0694 run 'ps' first, then if it doesn't find the target process try 'ps -elf' 2018-02-10 20:23:52 +08:00
song
2bcc7ada21 add space before and after logic operation 2018-02-08 00:01:30 +08:00
song
febac1dc0a improve the solution with one-liner command 'ps -lef||ps' 2018-02-07 23:47:26 +08:00
Simo Kinnunen
31b3205100 TPS650 doesn't have a brand. Fixes #804. 2018-02-04 18:03:44 -08:00
song
963de7fbd0 replace commands['ps'] with commands.ps which is suggested by ESLint 2018-02-04 20:59:59 +08:00
song
b0c8be8685 trivial fix 2018-02-04 20:41:31 +08:00
song
bf1283292e code changes to make ESLint happy 2018-02-04 20:36:38 +08:00
song
fa50c56bb9 Use 'ps -lef' instead of 'ps' to list Pids on Android 8.x 2018-02-04 18:48:28 +08:00
Bo
fb4742cd67 Correct touch service log 2018-01-23 16:09:45 +08:00
Karol Wrótniak
2af554e2a3 Add OpenGL ES version to device properties. 2017-12-18 03:18:19 +01:00
thinkhy
2dac3d1bbd add the column of CPU Platform in device list (#777)
* add the column of CPU Platform in device list

* Update api.js

* Update solo.js

* Update devutil.js

* Update device-column-service.js

* Update device-list-controller.js
2017-12-16 16:50:25 +08:00
Akhmad Fathonih
c4d2d73540 es-lint fixes for comma-style 2017-12-06 13:10:12 +09:00
Akhmad Fathonih
7e98e4f503 eslint autofix 2017-12-05 17:43:56 +09:00
Akhmad Fathonih
56e18dd9c7 eslint fixes 2017-12-05 17:40:48 +09:00
Akhmad Fathonih
524fd566b7 Implement addAdbPublicKey endpoint
Reason: manually approve adb connection from web UI does not scale for test automation. Especially those that are using different adb keys on each session (eg: via container)

This changes also added swagger doc endpoint. Using `stf local` command, it will end up at: `http://localhost:7106/docs/`
2017-12-05 15:12:57 +09:00
Simo Kinnunen
6d8918ea53 Merge pull request #648 from lishuai0214/small-improvements
small improvements
2017-11-05 21:12:53 +09:00
Simo Kinnunen
bac3b5e987 Add a timestamp to log output. Closes #730. 2017-11-05 21:06:53 +09:00
Simo Kinnunen
17c2ce67a2 Slightly modify undefined check to make it match the rest of the codebase. No change in expected usage. 2017-10-12 22:31:07 +09:00
Simo Kinnunen
c55b08fbc2 Merge branch 'ldap_search_filter' of https://github.com/thasegaw/stf into thasegaw-ldap_search_filter 2017-10-12 22:28:16 +09:00
Simo Kinnunen
2351025f6f Allow master volume to be always muted. 2017-09-22 17:08:34 +09:00
Simo Kinnunen
e2a0447def Fix checkExecutable() not working correctly on Windows. 2017-09-06 16:35:47 +09:00
Simo Kinnunen
c922eb92e5 Android 8.0 support. 2017-08-31 03:04:40 +09:00
Vishal Banthia
707482fa3b Update generated swagger.json 2017-07-31 17:25:42 +09:00
lison.li
aad71a80d1 1. Although it's a bit repetitive, I think the independent serial parameter tells the reader that entry contains serial. 2. Just remove useless parameter "url". 2017-07-16 23:49:57 +08:00
Simo Kinnunen
3447c927df Update minitouch for Blackberry PRIV and use minitouch-prebuilt for minitouch binaries instead of bundling them to the vendor dir. 2017-06-16 16:13:45 +09:00
Vishal Banthia
9aaf98ba2a Merge pull request #601 from kwv/fixes-594
Fixes 594 -- Allows default content-type (application/octet-stream) on path based parameter operations
2017-06-14 20:06:16 -07:00
kris
9f3f0b9692 cleaned up per vbanthia's comments. fixed docs to align with implementation 2017-06-14 21:38:09 -05:00
Takashi Hasegawa
8e56ef9d16 revert due to injection 2017-06-15 10:02:23 +09:00
Takashi Hasegawa
89878d070f refactoring 2017-06-15 00:33:00 +09:00