* feat: Display STF version in Web UI
Adds the STF application version to the main menu in the Web UI.
Changes:
- Modified `lib/units/app/index.js` to read the version from `package.json` and make it available to the frontend via the `GLOBAL_APPSTATE.config.stfVersion` variable.
- Updated `res/app/menu/menu.pug` to display this version in the top navigation bar, near the help icon. The format is "vX.Y.Z".
- Added an E2E test (`res/test/e2e/menu/menu-spec.js`) to verify the presence and correct format of the version string in the UI.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* Update menu-spec.js
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* fix: lint
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* feat: Add application state to root scope and style version text in menu
- Introduced a new run block in `app.js` to attach the application state to the `$rootScope`.
- Added CSS styles for the version text in the menu to enhance its visibility and layout.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
* fix: Correct path to package.json in index.js
Updated the import statement for package.json in lib/units/app/index.js to use the correct relative path, ensuring proper access to the application version information.
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
---------
Signed-off-by: matanbaruch <matan.baruch@unity3d.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* tackle case where old SDK not support BLUETOOTH_CONNECT permission
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* make permissions logic more future proof
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
---------
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* option to cleanup tmp folder during cleanup phase
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* do only one adb command at time to ensure them all are executed
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
* cleanup and fix lint errors
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
---------
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
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>