I use `stf` for a very small installation with just one user and few
devices. `stf local` provides enough functionality and is easy to run:
just one command without the need to configure all internal services
separately. The only missing feature is the ability to provide access
securely over the internet.
I want to use nginx reverse proxy with https and client certificate
authorization, but currently this does not play well with modern
browsers as they refuse to connect to insecure ws:// from secure
https:// context.
This patch just adds the ability to configure various URL patterns to
match the externally accessible address of the installation.
Signed-off-by: Ivan Mironov <mironov.ivan@gmail.com>
* 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>
Some devices (Pixel 4XL) need more time to retrieve PID, in such cases when the retrieval failed - the whole stream is shutting down, therefore, connection with Minicap is lost which leads to constant empty screen on the Web UI.
Signed-off-by: Mark Omarov <mark.omarov.work@gmail.com>
Co-authored-by: Mark Omarov <mark.omarov.work@gmail.com>
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>
* Update browser-icons.js and device-icons.js
Fix new npm name
Signed-off-by: Matt Dann <mdann52@yahoo.co.uk>
* Also update appstore icons
Signed-off-by: Matt Dann <mdann52@yahoo.co.uk>