Skip to content

Instantly share code, notes, and snippets.

@dinosec
Created November 7, 2020 09:44
Show Gist options
  • Save dinosec/7a53d4ae9c8a0021cd9ede010ed00512 to your computer and use it in GitHub Desktop.
Save dinosec/7a53d4ae9c8a0021cd9ede010ed00512 to your computer and use it in GitHub Desktop.
How to obtain the mobile device Android version from a Frida JS script
// How to obtain the mobile device Android version from a Frida JS script:
//
// (c) 2020 DinoSec (www.dinosec.com)
Java.perform(function () {
var version = androidVersion();
console.log("Android version: " + version);
function androidVersion() {
return Java.androidVersion;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment