Skip to content

Commit

Permalink
fruity: Add os.build and hardware to system parameters (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Ole André Vadla Ravnås <[email protected]>
Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
3 people authored Jul 5, 2024
1 parent 2bf45ec commit ea6307d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fruity/fruity-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,15 @@ namespace Frida {
os["id"] = "ios";
os["name"] = properties.get_string ("ProductName");
os["version"] = properties.get_string ("ProductVersion");
os["build"] = properties.get_string ("BuildVersion");
parameters["os"] = os;

var hardware = new HashTable<string, Variant> (str_hash, str_equal);
hardware["product"] = properties.get_string ("ProductType");
hardware["platform"] = properties.get_string ("HardwarePlatform");
hardware["model"] = properties.get_string ("HardwareModel");
parameters["hardware"] = hardware;

parameters["platform"] = "darwin";

parameters["arch"] = properties.get_string ("CPUArchitecture").has_prefix ("arm64") ? "arm64" : "arm";
Expand Down

0 comments on commit ea6307d

Please sign in to comment.