Skip to content
Snippets Groups Projects
  • Andreas Gampe's avatar
    a3a0bb44
    Sepolicy: Add otapreopt_slot · a3a0bb44
    Andreas Gampe authored
    (cherry picked from commit eb717421)
    
    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
    a3a0bb44
    History
    Sepolicy: Add otapreopt_slot
    Andreas Gampe authored
    (cherry picked from commit eb717421)
    
    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