Skip to content

Instantly share code, notes, and snippets.

@dan-v
dan-v / aosp-11-apv-debugging.md
Last active October 16, 2022 01:19
aosp 11 apv debugging

how to cleanup configs

  • run the very-fancy-cleanup-apv-config-json.sh script for each device against their factory image to cleanup stale entries
  • after build is complete and you saw a bunch of warning overriding messages, grab a list of them using the command below and put this in the vendor-skip-file section of apv config.
device=bonito && gzip -cd out/verbose.log.gz | grep 'overriding' | awk -F"\`" '{print $2}' | cut -f1 -d\' | awk -F"out/target/product/${device}/vendor/" '{printf "\"%s\",\n",$2}'

device specific workarounds

coral/flame

PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS

RUNNING:
```
export PATH="${BUILD_DIR}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/lz4:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/dtc:${PATH}";
export PATH="${BUILD_DIR}/prebuilts/misc/linux-x86/libufdt:${PATH}";
ln --verbose --symbolic ${KEYS_DIR}/${DEVICE}/verity_user.der.x509 ${MARLIN_KERNEL_SOURCE_DIR}/verity_user.der.x509;
cd ${MARLIN_KERNEL_SOURCE_DIR};
echo PATH=$PATH;
@dan-v
dan-v / gist:a366c2cff6ef5a2f7e0022a39b1d5b00
Last active January 12, 2022 06:36
Notes on android-prepare-vendor upgrade for Android 10

Notes

Here are my note so far as I work through trying to update android-prepare-vendor to work with Android 10.

  • Work in progress fork is here right now: https://github.com/RattlesnakeOS/android-prepare-vendor/tree/10.0

  • Using existing oatdump that was built for api-28 as I don't think any repairs are needed (bytecode is not stripped). I just copied same over to api-29 in my forked version of android-prepare-vendor.

  • Android 10 factory images have a much smaller subset of partitions: boot, system, system_other, vendor. Unsure why this is the case, but in fork of android-prepare-vendor I just have no additional partitions set (e.g. []). This will need to be a configurable option to be backwards compatible.

  • There are build.prop differences affecting android-prepare-vendor in android 10. I've commited workarounds for each of these in my fork of android-prepare-vendor:

@dan-v
dan-v / gist:044c1e746b19e480760d52dd7f083cbc
Last active September 2, 2019 11:54
telegraph_claymore.py
#!/usr/bin/env python
import json
import collections
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
CLAYMORE_URL = 'http://localhost:3333/'
ETH_TOTAL = 2
@dan-v
dan-v / keybase.md
Last active September 2, 2019 11:54
keybase.md

Keybase proof

I hereby claim:

  • I am dan-v on github.
  • I am danvittegleo (https://keybase.io/danvittegleo) on keybase.
  • I have a public key whose fingerprint is 7420 3098 13B3 A2A9 AC75 39AF 86E1 0B19 498C F557

To claim this, I am signing this object: