init: set build_tags to release-keys

• Few special apps also care about this alongside safetynet.
  For example: Microsoft Teams and some banking apps consider
               device as rooted and refuse to work.
• Considering the comment section at [1], this change is done.

Reference:
[1] - https://gerrit.aospa.co/c/AOSPA/android_build/+/20784

Change-Id: I7d838b03ea3b53806124532c772e5c8a650648da
This commit is contained in:
Omkar Chandorkar 2021-05-27 15:42:25 +00:00 committed by Adithya R
parent e66afbcccc
commit 0655b6e120
1 changed files with 1 additions and 2 deletions

View File

@ -1361,12 +1361,11 @@ static void ProcessBootconfig() {
}
static void SetSafetyNetProps() {
InitPropertySet("ro.boot.flash.locked", "1");
InitPropertySet("ro.boot.vbmeta.device_state", "locked");
InitPropertySet("ro.boot.verifiedbootstate", "green");
InitPropertySet("ro.boot.veritymode", "enforcing");
InitPropertySet("ro.build.tags", "release-keys");
}
void PropertyInit() {