d2: Add custom releasetools for loading correct ril bits

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: set gsm.current.phone-type based on bootloader

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: declare correct char variable to be used for switch

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: Add asserts for our devices

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: TARGET_UNIFIED_DEVICE

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
init_d2: use strstr to match bootloader

* And set rild.libargs once

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: set ro.telephony.default_cdma_sub for cdma variants

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: correct is_substring check in releasetools.py

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
d2: relocate init_d2.c to init/

Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>