diff --git a/src/Tizen/Avalonia.Tizen/Platform/Permissions.cs b/src/Tizen/Avalonia.Tizen/Platform/Permissions.cs index b6c46d77741..5a540d93170 100644 --- a/src/Tizen/Avalonia.Tizen/Platform/Permissions.cs +++ b/src/Tizen/Avalonia.Tizen/Platform/Permissions.cs @@ -64,6 +64,12 @@ public static void EnsureDeclared(params Privilege[] requiredPrivileges) public static Task RequestPrivilegeAsync(params Privilege[] requiredPrivileges) => CheckPrivilegeAsync(requiredPrivileges, true); private static async Task CheckPrivilegeAsync(Privilege[] requiredPrivileges, bool ask) { + var ret = global::Tizen.System.Information.TryGetValue("http://tizen.org/feature/profile", out string profile); + if (!ret || (ret && (!profile.Equals("mobile") || !profile.Equals("wearable")))) + { + return true; + } + if (requiredPrivileges == null || !requiredPrivileges.Any()) return true;