#!/bin/bash

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

### ASB
## Platform

repopick 380220 380255 380661 380664 380667 380666 # Automotive stuff

#repopick 381384 # sabrina 12

wait

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

### Kernels
## AMLogic
# amlogic-4.9-pie - ?
# amlogic-4.9 - ?
# amlogic-5.4 - TO-REBASE

## Exynos
# exynos9610 - TO-REBASE

## Pixels
# wahoo - TO-REBASE
# b4s4 - DONE
# msm-4.14 - DONE
# msm-5.10-gki - DONE

## QCOM
# aura - DONE
# cheryl - DONE
# moto-msm8998 - TO-REBASE
# moto-sdm632 - TO-REBASE
# nokia-sdm660 - TO-REBASE
# nubia-sm8150 - DONE
# m1s1 - DONE
# mata - DONE
# moto-sm7325 - TO-REBASE
# pro1 - DONE
# pro1x - DONE
# moto-sm8250 - DONE

### CLO

#wait

### Platform

#wait

### 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?
## Shipped
## TODO: RGB LED, Screen resolution settings

## b4s4
## Shipped

## cheryl
## Shipped
## TOOD: Screen resolution settings

## h918/h872
## Shipped

## m1s1
## Shipped

## mata
## Shipped

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

## pro1
## Shipped

## troika/kane
## Shipped

## wahoo
## Shipped

wait
