You could use an extension or code like shown here:
which uses an html file in Media as shown.For a 2.2 emulator, this code returns 2; for an Android tablet 8.1.0 it returns 8 .
The example works and tested on an 2.2 thru Android 8; results might be different on Android 9+AndroidVersion.aia (3.7 KB)
