Commit Graph

195 Commits

Author SHA1 Message Date
Denis Barbaron
51b86a87ef fix bug on taking control of a device: set a lock for exclusive access (#650)
* fix bug on taking control of a device: set a lock for exclusive access

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update the locking function

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2023-04-03 20:05:49 +02:00
Joowon Moon
0c74b53a94 fix #592 Fix marketName issue (#593)
Signed-off-by: Joowon Moon <jsjs401@daum.net>
2022-09-30 13:29:54 +02:00
Denis Barbaron
878171ec24 fix deprecated warnings on Buffer class (#580)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2022-09-16 16:07:49 +02:00
Karol Wrótniak
e60bcee3fc Revert "Fix adbkit API invocations (#524)" (#528)
This reverts commit 6f09708304.
2022-05-12 10:08:47 +02:00
Karol Wrótniak
6f09708304 Fix adbkit API invocations (#524)
Update Adbkit to 3.2.3
2022-05-05 18:43:22 +02:00
Oğuzhan Yiğit
481f220992 stf: Device name related updates (#516)
* stf: Upstream android-device-list library to cover newer devices
* 1.2.1 version is nearly 2.5 years old so it does not cover latest android devices thus creates un-friendly device names, fixes it
* no breaking API/ABI changes
* to the latest 1.2.7 version https://github.com/pbakondy/android-device-list/blob/master/package.json#L3

Signed-off-by: sirmordred <oguzhan97yigit@gmail.com>

* stf: Allow users to override device names
* it allows to users to change device names by setting ro.stf.product.device attribute via: e.g adb shell setprop ro.stf.product.device Samsung Galaxy S9
* Not all time android-device-list library is updated, even if it is updated, it does not cover all devices
* Users must have a way to override device name so they can change it as they want (alternative is: overriding ro.product.device attribute but changing that attribute may cause some unexpected system errors because it is used by android os in device as well)
* Preserve current behavior: if stf could not find ro.stf.product.device attribute, it falls to base implementation

Signed-off-by: sirmordred <oguzhan97yigit@gmail.com>

* stf: Changed prefix of custom device name property
* some properties starts with prefixes like "ro" are not allowed to change in some phones, use "debug" instead
for more info: https://stackoverflow.com/questions/66877858/android-setprop-failed-to-set-property

Signed-off-by: sirmordred <oguzhan97yigit@gmail.com>

Co-authored-by: Karol Wrótniak <karol.wrotniak@droidsonroids.pl>
2022-04-27 19:38:39 +02:00
Denis Barbaron
6b2f434acb upgrade node to latest version v17.9.0 (#500)
* upgrade node to latest version v17.9.0

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>

* remove useless comments in karma configuration file

Signed-off-by: Denis Barbaron <denis.barbaron@orange.com>
2022-04-12 17:03:43 +02:00
Crepieux Pierre
4a8787891d Fix code style
Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-06-01 09:46:35 +02:00
Crepieux Pierre
bb1c20d1f7 Introduce support for new VM based minicap to support Android 12
This commit introduce a new option to use a new minicap
implementation by specifying --screen-grabber or the env
variable SCREEN_GRABBER. The current native minicap is the default
and is refered as 'minicap-bin'. The new minicap which is packaged
in an apk is usable with 'minicap-apk' and will be used as a
fallback.
At the moment, this apk is expected to be included in
minicap-prebuilt node package at this location
minicap-prebuilt/prebuilt/noarch/minicap.apk.

STFService.apk has also been updated to take into account Android 12

Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
2021-05-31 18:00:28 +02:00
Karol Wrótniak
53acc928f5 Revert all adbkit upgrades (#207) 2021-03-10 19:22:32 +01:00
Karol Wrótniak
f21140acf7 Fix adb invocations in devutil (#200) 2021-03-10 13:22:03 +01:00
nghiaviminh
6b38be2b14 Fix AAB installation fails when /tmp is on different mountpoint than storage-temp save directory (#139)
Signed-off-by: nghia.viminh <nghia.viminh@gameloft.com>
2020-10-26 09:52:45 +01:00
nghiaviminh
841b092d25 Add .aab installation support (#103)
* Add .aab installation support

Signed-off-by: nghia.viminh <nghia.viminh@gameloft.com>
2020-09-28 11:29:58 +02:00
Karol Wrótniak
86bc95e72a Add namespace to npm dependencies (#28) 2020-07-05 12:31:15 +02:00
Denis barbaron
d9ea4ab85e Add support of device market name property in group feature 2020-01-24 16:18:28 +01:00
Denis barbaron
1dd9f45f06 Merge branch 'master' into group-feature 2020-01-24 10:47:35 +01:00
Karol Wrótniak
96312dd453 Merge remote-tracking branch 'upstream/master' into market_name 2019-09-19 23:47:12 +02: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
Denis barbaron
7f5dc4c152 add groups feature 2019-06-12 10:29:07 +02:00
Karol Wrótniak
3d3d1f67b4 Add market name to device properties. 2019-05-03 22:00:55 +02:00
aokhotin
4ef05e91bb zmq ZMQ_IPV6 option set 2018-09-10 22:02:06 +03: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
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
3fc9b5b5e9 Merge pull request #779 from DroidsOnRoids/opengles
Add OpenGL ES version to device properties.
2018-03-23 22:43:21 +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
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
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
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