#!/bin/bash

set -e;
source "build/envsetup.sh";

### HAX
repopick -t 14-system-as-root -f

## Exynos
# exynos9610 - TO-REBASE

## Pixels
# wahoo - TO-REBASE

## QCOM
# aura - DONE
# cheryl - DONE
# moto-msm8998 - TO-REBASE
# m1s1 - DONE
# mata - DONE

### Personal

## build/make
#changes=(
repopick -f 369796 # Sorry bro: 6 -> 3
#)
#repopick -f -P build/make ${changes[@]}&

## frameworks/base
changes=(
369786 # Alter model name to avoid SafetyNet HW attestation enforcement
369787 # keystore: Block key attestation for SafetyNet
369788 # AttestationHooks: Set shipping level to 32 for devices >=33
369789 # Limit SafetyNet workarounds to unstable GMS process
369790 # gmscompat: Apply the SafetyNet workaround to Play Store aswell
#369791 # gmscompat: Use Nexus 6P fingerprint for CTS/Integrity
#369792 # gmscompat: Make CTS/Play Integrity pass again
#374392 # gmscompat: Use new info
)
repopick -f -P frameworks/base ${changes[@]}&

## vendor/lineage
changes=(
#369794 # lineage: Disable privapp permission enforcement (make it log)
369795 # adb insecure by default
)
repopick -f -P vendor/lineage ${changes[@]}&

### Devices

## aura
#repopick 358627 # aura: Build Lineage Health HAL # 20
#repopick 346036 # 1080P resolution & techpack cleanup - BROKEN 1/4 screen weirdness - talk to Jake?
## TODO: RIL Kang
## TODO: RGB LED, Screen resolution settings

## cheryl
## TODO: RIL Kang
## TOOD: Screen resolution settings

## h918/h872
## TODO: RIL Kang

## m1s1
## TODO: RIL Kang

## mata
## TODO: RIL Kang

## nash/messi/lake_n
## (nash/evert/beckham/payton/lake/messi) TODO: RIL Kang, (messi_vzw) TODO: Fix verity, (chef) TODO: Fix Wi-Fi

## troika/kane
## TODO: RIL Kang

## wahoo
## TODO: RIL Kang

wait
