Enable spoof_build_vars on initial install to pass by default (#24)

* Enable spoof_build_vars on initial install to pass by default

* Update default spoof_build_vars fingerprint
This commit is contained in:
Chris Renshaw
2024-07-25 04:08:02 -03:00
committed by GitHub
parent 0a52c2b4a0
commit db72d6d3e9
3 changed files with 17 additions and 16 deletions

View File

@@ -257,16 +257,16 @@ static void companion_handler(int fd) {
constexpr auto kDefaultSpoofConfig =
R"EOF(MANUFACTURER=Google
MODEL=Pixel
FINGERPRINT=google/sailfish/sailfish:8.1.0/OPM1.171019.011/4448085:user/release-keys
FINGERPRINT=google/sailfish/sailfish:10/QPP3.190404.015/5505587:user/release-keys
BRAND=google
PRODUCT=sailfish
DEVICE=sailfish
RELEASE=8.1.0
ID=OPM1.171019.011
INCREMENTAL=4448085
RELEASE=10
ID=QPP3.190404.015
INCREMENTAL=5505587
TYPE=user
TAGS=release-keys
SECURITY_PATCH=2017-12-05
SECURITY_PATCH=2019-05-05
)EOF"sv;
struct stat st{};
int enabled = stat(kSpoofConfigFile.data(), &st) == 0;

View File

@@ -93,6 +93,7 @@ CONFIG_DIR=/data/adb/tricky_store
if [ ! -d "$CONFIG_DIR" ]; then
ui_print "- Creating configuration directory"
mkdir -p "$CONFIG_DIR"
[ ! -f "$CONFIG_DIR/spoof_build_vars" ] && touch "$CONFIG_DIR/spoof_build_vars"
fi
if [ ! -f "$CONFIG_DIR/keybox.xml" ]; then
ui_print "- Adding default software keybox"