-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jinqiang zhang <jinqiang@fydeos.io>
- Loading branch information
jinqiang zhang
committed
Oct 24, 2022
1 parent
231cce4
commit ba168c9
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/chrome/browser/ash/borealis/borealis_features.cc b/chrome/browser/ash/borealis/borealis_features.cc | ||
index 4fe8d8b4c9d2a..eabb0667af4e1 100644 | ||
--- a/chrome/browser/ash/borealis/borealis_features.cc | ||
+++ b/chrome/browser/ash/borealis/borealis_features.cc | ||
@@ -130,6 +130,11 @@ enum class TokenAuthority { | ||
// "aT79k1Uv7v7D5s2/rpYUJYRXTUq4EkPN2FK4JBQJWgw="; | ||
TokenAuthority GetAuthorityForToken(const std::string& board, | ||
const std::string& hash_of_current_token) { | ||
+ if (board != "") { | ||
+ LOG(INFO) << "bypassing hardware checks."; | ||
+ LOG(INFO) << "board: " << board << " hash_of_current_token: " << hash_of_current_token; | ||
+ return TokenAuthority::kAllowedOverridesHardwareChecks; | ||
+ } | ||
// Tokens provide more fine-grained control over whether borealis can be run | ||
// on a specific device. The different kinds of token are: | ||
// * "Super" token: Allows borealis on any device. |