Commit 64364a7f authored by Adam Lawson's avatar Adam Lawson
Browse files

nicky: Use runtime switching to unify devices

Add init script to overlay the device specific blobs based on props. Thanks to @Blaster4385 for the idea and reference.
parent bc4dad9d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -87,3 +87,10 @@ sh_binary {
    src: "init.qcom.sh",
    vendor: true,
}

prebuilt_etc {
    name: "init_overlayfs.rc",
    src: "init_overlayfs.rc",
    sub_dir: "init",
    vendor: true,
}
 No newline at end of file

init/init_overlayfs.rc

0 → 100644
+3 −0
Original line number Diff line number Diff line
on post-fs-data && property:ro.boot.prj_version=18621 
    mount overlay overlay /vendor/lib lowerdir=/vendor/18621/lib:/vendor/lib
    mount overlay overlay /vendor/lib64 lowerdir=/vendor/18621/lib64:/vendor/lib64
 No newline at end of file