Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix 1.0] Quickfix getOperatingSystem, used to determine instructions in CreateMtlsView #13

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

benjamsf
Copy link
Member

What

Rather temporarily fix a problem that appears to occur with various Android devices, with how /assets/helpers/getOperatingSystem is made to work. The implementation thinks some android flavour devices are "linux."

Also a little typo in QuickstartGuide wintak.

Why

As CreateMtlsView uses this helper to determine which instructions to show the user, this is rather irritating bug.

Changes

Remove the option of determining "a Linux" altogether and make the determination to fallback to Android if that is the case.

What next

Should make this logic not this fragile in the future & probably include CreateMtlsView a feature for the user to change the instruction type themselves.

getOperatingSystem should be done in some other way as this is kind of fragile
@benjamsf benjamsf added the bug Something isn't working label Jan 23, 2024
@benjamsf benjamsf self-assigned this Jan 23, 2024
@benjamsf benjamsf requested a review from rambo January 23, 2024 20:47
@benjamsf
Copy link
Member Author

benjamsf commented Jan 23, 2024

The thing is kind of dumb rn. As of many androids state Linux Android as their user agent, so I need to figure out some other way to determine "Linux" if that is actually feasible anyway. However, due we don't really need linux flavor users right now (as wintak is the only desktop payload software), this would suffice.

Copy link
Contributor

@rambo rambo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rambo rambo merged commit 420dda4 into main Jan 24, 2024
4 checks passed
@rambo rambo deleted the quickfix-device-detection branch January 24, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants