Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d60a19b1 authored by Haibo Huang's avatar Haibo Huang
Browse files

Writes cpu variant information to dev/

This change adds a command to init.rc to write cpu variant information to a file under dev/

Test: sync to device and make sure corresponding files are created.
Change-Id: Ibf90967f13f72af925c82ff79bd973ef4cdc4068
parent 8995970c
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -269,6 +269,12 @@ on init
    # that they can be chown'd to system:system later on boot
    # that they can be chown'd to system:system later on boot
    write /sys/class/leds/vibrator/trigger "transient"
    write /sys/class/leds/vibrator/trigger "transient"


    # This is used by Bionic to select optimized routines.
    write /dev/cpu_variant:${ro.bionic.arch} ${ro.bionic.cpu_variant}
    chmod 0444 /dev/cpu_variant:${ro.bionic.arch}
    write /dev/cpu_variant:${ro.bionic.2nd_arch} ${ro.bionic.2nd_cpu_variant}
    chmod 0444 /dev/cpu_variant:${ro.bionic.2nd_arch}

    # Setup APEX mount point and its security context
    # Setup APEX mount point and its security context
    mount tmpfs tmpfs /apex nodev noexec nosuid
    mount tmpfs tmpfs /apex nodev noexec nosuid
    chmod 0755 /apex
    chmod 0755 /apex