Skip to content

Commit

Permalink
borealis: skip board token check
Browse files Browse the repository at this point in the history
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.
16 changes: 16 additions & 0 deletions chromium-patches/skip-borealis-board-check.patch
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.

0 comments on commit ba168c9

Please sign in to comment.