#!/bin/bash

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

### ASB
## Platform
repopick -t T_asb_2024-05

#wait

### Kernels

### CLO

#wait

### Platform

#wait

### Personal

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

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

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

### Devices

## beast
repopick -f 365673 # [DNM] [TMP] HACK: Disable log level from being set
## TODO: BT, UI Glitches, OMX, SE Linux

## floral
## Shipped

wait
