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

Platform.operatingSystemVersion returns uname output on Android #36625

Laogeodritt opened this Issue Apr 15, 2019 · 0 comments


None yet
3 participants
Copy link

Laogeodritt commented Apr 15, 2019

Hi all,

(Unsure of the structure of dart+flutter and whether this is a dart SDK issue or an issue of the implementation in flutter; I did a quick search flutter-side for operatingSystemVersion and _operatingSystemVersion and didn't find anything, so I'm assuming the Dart SDK implements this. Please redirect me if needed.)

On Android using Flutter, Platform.operatingSystemVersion outputs the uname info containing Linux kernel information. It would be more intuitive to Android users/developers for this value to be the Android OS version, and the documentation doesn't make it fully clear what to expect from this property to me.

For example, on an Android 6.0.1 device:

  • Expected value: "6.0.1"
  • Actual output: "Linux 3.18.20-perf+ #1 SMP PREEMPT Tue Jul 5 20:55:09 CST 2016".

(Alternatively, if this is the desired behaviour, then I would suggest that the documentation needs to be clearer on what to expect from operatingSystemVersion, and that some way of obtaining the OS version rather than kernel version should be available.)

Version information

  • Target OS: Android 6.0.1
  • Flutter 1.2.1
  • Dart VM 2.1.0
  • Development/build on Linux x64

Related information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.