Partially copied from https://github.com/LineageOS/android_hardware_oplus/tree/lineage-21/Euicc with slight modifications. License: Apache-2.0