Commit Graph

163 Commits

Author SHA1 Message Date
song
fa50c56bb9 Use 'ps -lef' instead of 'ps' to list Pids on Android 8.x 2018-02-04 18:48:28 +08: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
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
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
Takashi Hasegawa
0ea54678f0 consider OrFilter 2017-06-14 23:11:51 +09:00
Takashi Hasegawa
8adc6424ca fix variable name 2017-06-14 12:53:55 +09:00
Takashi Hasegawa
9e8a8e4b97 support search filter 2017-06-14 12:51:31 +09:00
thinkhy
3dba33f071 replace "ps comm" with "ps" in the function listPidsByComm
There exists an incompatibility problem as the shell command "ps comm" is invalid in some devices such as Google Pixel.

Below is the output when I issued "ps com" in Pixel:

 1|sailfish:/ $ ps com
 bad pid 'com'
 1|sailfish:/ $ echo $?
 1

So I replaced "ps comm" with "ps" which is workable for all the Android device.
2017-06-11 23:08:47 +08:00
thinkhy
08d9220b58 Create devutil.js 2017-06-11 18:02:31 +08:00
Simo Kinnunen
0b071a1f5c Remove "Device database does not have an entry for device ..." entirely, everyone still thinks it's an error. 2017-05-24 15:02:04 +09:00
Simo Kinnunen
6f1025e8ff Refactor doctor to be more resilient to unexpected errors, which made our life even harder especially on Ubuntu where the RethinkDB version contains more things in it. 2017-04-23 01:17:44 +09:00
Simo Kinnunen
5839867619 Add IMSI to device details. 2017-01-13 13:52:11 +09:00
Simo Kinnunen
5781d42ac2 Remove the now unused cliutil. 2016-12-22 05:38:49 +09:00
Simo Kinnunen
cc736ba0ac Ported CLI from commander to yargs because yargs suits our large CLI better and is easier to develop with. Split commands into separate files since the file was getting annoyingly long. 2016-12-22 05:32:03 +09:00
Marc Bachmann
bac74538c9 chore(package): update uuid to version 3.0.0 2016-11-23 03:21:32 +01:00
Simo Kinnunen
33e4e617bb Update STFService.apk to 1.1.0. Switches to abstract sockets which fixes
adb getting stuck when tethering is being used.
2016-09-03 04:01:07 +09:00
Gunther Brunner
711ab4a8e5 Updated npm dependencies.
ProtobufJS and Bluebird require further work.
2016-08-03 20:08:30 +09:00
Vishal Banthia
b60cb6ef6a Fix eslint errors 2016-07-22 19:40:27 +05:30
Vishal Banthia
a6266931ad Modify APIs from Aysnc -> Sync using timeout 2016-07-22 19:34:22 +05:30
Vishal Banthia
232163d290 add remoteDebugUrl into database so that it is accessible from api 2016-07-22 19:34:22 +05:30
Gunther Brunner
20ec477450 Remove eslint errors. 2016-06-01 23:15:50 +09:00
Gunther Brunner
8cee2497c6 Make crystal clear that not having data for a device is not an error. 2016-06-01 19:29:13 +09:00
Gunther Brunner
e18d78ddef Fix ADB version matching regex. 2016-04-19 17:22:29 +09:00
Gunther Brunner
8fc5f748d2 Add new stf doctor command to check if the versions of external dependencies are correct.
Add a `--devices` option to show a list of USB connected devices and a list of the devices that ADB can see.
2016-01-28 00:05:54 +09:00
Gunther Brunner
7c2bf332e4 Fix for-in loop. 2016-01-19 23:35:45 +09:00
Gunther Brunner
0a9e6080fa Fix last ESLint errors. 2016-01-19 23:27:12 +09:00
Gunther Brunner
434f63b3a9 Fix all lib/ files with ESLint rules with 0 errors. 2016-01-19 20:52:38 +09:00
Gunther Brunner
466af18058 Add eslint task. Needs eslintrc tweaking. 2016-01-14 21:20:54 +09:00
Vishal Banthia
8a342daef9 remove default expiry in jwt token 2015-12-03 02:08:26 +09:00
Vishal Banthia
62413b3780 allow user to create an access token to access stf api from user settings tab. 2015-11-26 02:40:34 +09:00
Simo Kinnunen
8e8f2d17b7 Make ZMQ keepalive options optional, since they're breaking things on
some systems. You should now use the ZMQ_TCP_KEEPALIVE=1 and
ZMQ_TCP_KEEPALIVE_IDLE=<value> environment variables to set them.
2015-10-21 20:13:45 +09:00
Simo Kinnunen
0942ecea7a Fix stf local not accepting multiple serials. Fixes #91. 2015-10-14 01:56:30 +09:00
Simo Kinnunen
b248e96dc2 Output a warning instead of crashing if ZMQ library is too old to
support TCP keepalive options. Fixes #109.
2015-10-14 01:40:30 +09:00
Gunther Brunner
342890e884 Start fixing npm test warnings. 2015-10-13 21:21:32 +09:00
Simo Kinnunen
5216eac5ce Remove unused VNC authentication utilities. 2015-10-13 04:05:07 +09:00
Simo Kinnunen
5b5520b705 VNC authentication works, although there is no UI for adding passwords
yet. Direct database manipulation is required for now.
2015-10-13 04:05:07 +09:00
Vishal Banthia
6c741cbf4b Set TCP_KEEPALIVE socket option to fix tcp_connection problem in
some network. Issue-100
2015-10-09 16:32:02 +09:00
Simo Kinnunen
9d20484dcb Limit VNC size by default. 2015-09-15 04:25:21 +09:00
Simo Kinnunen
dc07777829 Hopefully get rid of FrameProducer._stop() timeouts. Doesn't reproduce locally. 2015-07-15 14:15:05 +09:00
Simo Kinnunen
7ad09d6713 Update jws to 3.0.0. 2015-07-01 17:32:30 +09:00
Simo Kinnunen
374781532f Fix stf generate-fake-device. 2015-06-29 19:25:16 +09:00
Simo Kinnunen
736b6f769e Reaper decides if a device is present or not. Allows devices to "come back to life" if they start beating again. 2015-06-03 18:49:42 +09:00
Simo Kinnunen
9130717e0e The doubly linked list implementation was revealed to be buggy by simple unit tests. Fixed. 2015-06-02 15:35:16 +09:00
Simo Kinnunen
d806d4fe54 EventEmitter constructor was not being called in many places. It did work due to the EventEmitter3 constructor being empty, but we can't rely on that. 2015-06-02 13:26:43 +09:00
Simo Kinnunen
92c18539fc Move ttlset to the common util folder. Could be used by something else too. 2015-06-02 10:39:43 +09:00
Simo Kinnunen
5bb05f52f6 Move some screen utilities to the global util directory so that they can be used for other things too. 2015-04-30 13:41:32 +09:00
Simo Kinnunen
e43ae34d4b Make all zmq endpoints use srv records. 2014-12-17 21:01:20 +09:00