• Nick Kralevich's avatar
    Make DEFAULT_SYSTEM_DEV_CERTIFICATE available in keys.conf · c3c9052b
    Nick Kralevich authored
    In 9af6f1bd, the -d option
    was dropped from insertkeys.py. This was done to allow an
    Android distribution to replace the default version of
    keys.conf distributed in external/sepolicy/keys.conf. keys.conf
    was modified to reference the publicly known test keys in
    build/target/product/security.
    
    Unfortunately, this broke Google's build of Android. Instead
    of incorporating our keys directory, we were using the
    default AOSP keys. As a result, apps were getting assigned
    to the wrong SELinux domain. (see "Steps to reproduce" below)
    
    This change continues to allow others to replace keys.conf,
    but makes DEFAULT_SYSTEM_DEV_CERTIFICATE available as an
    environment variable in case the customized version wants to
    make reference to it. This change also modifies the stock
    version of keys.conf to use DEFAULT_SYSTEM_DEV_CERTIFICATE,
    which should be appropriate for most Android distributions.
    It doesn't make any sense to force each O...
    c3c9052b
keys.conf 851 Bytes