Skip to content
Snippets Groups Projects
  • Andreas Gampe's avatar
    eb717421
    Sepolicy: Add otapreopt_slot · eb717421
    Andreas Gampe authored
    The new A/B OTA artifact naming scheme includes the target slot so
    that the system is robust with respect to unexpected reboots. This
    complicates the renaming code after reboot, so it is moved from the
    zygote into a simple script (otapreopt_slot) that is hooked into
    the startup sequence in init.
    
    Give the script the subset of the rights that the zygote had so that
    it can move the artifacts from /data/ota into /data/dalvik-cache.
    Relabeling will be done in the init rc component, so relabeling
    rights can be completely removed.
    
    Bug: 25612095
    Bug: 28069686
    Change-Id: Iad56dc3d78ac759f4f2cce65633cdaf1cab7631b
    eb717421
    History
    Sepolicy: Add otapreopt_slot
    Andreas Gampe authored
    The new A/B OTA artifact naming scheme includes the target slot so
    that the system is robust with respect to unexpected reboots. This
    complicates the renaming code after reboot, so it is moved from the
    zygote into a simple script (otapreopt_slot) that is hooked into
    the startup sequence in init.
    
    Give the script the subset of the rights that the zygote had so that
    it can move the artifacts from /data/ota into /data/dalvik-cache.
    Relabeling will be done in the init rc component, so relabeling
    rights can be completely removed.
    
    Bug: 25612095
    Bug: 28069686
    Change-Id: Iad56dc3d78ac759f4f2cce65633cdaf1cab7631b