Skip to content

Instantly share code, notes, and snippets.

@phhusson
Created September 13, 2019 20:43
Show Gist options
  • Select an option

  • Save phhusson/1d1e1212bfda92683842269164705f54 to your computer and use it in GitHub Desktop.

Select an option

Save phhusson/1d1e1212bfda92683842269164705f54 to your computer and use it in GitHub Desktop.
import /system/etc/init/zygote/init.${ro.zygote}.rc
on early-fs
mkdir /mnt/runtime/full 0755 root root
mkdir /mnt/runtime/full/self 0755 root root
mkdir /apex 0777 root root
mount tmpfs tmpfs /apex mode=0755,uid=0,gid=0
restorecon /apex
exec u:r:su:s0 -- /system/bin/apexd --bootstrap
export ANDROID_RUNTIME_ROOT /apex/com.android.runtime
export ANDROID_TZDATA_ROOT /apex/com.android.tzdata
exec u:r:su:s0 -- /system/bin/mv /product /product.old
symlink /system/product /product
on post-fs
exec u:r:su:s0 -- /system/bin/umount -l /product
exec u:r:su:s0 -- /system/bin/rmdir /product
exec u:r:su:s0 -- /system/bin/mv /product /product.old
symlink /system/product /product
on cust_parse_action
exec u:r:su:s0 -- /system/bin/mv /product /product.old
symlink /system/product /product
on fs
exec u:r:su:s0 -- /system/bin/umount -l /product
exec u:r:su:s0 -- /system/bin/rmdir /product
exec u:r:su:s0 -- /system/bin/mv /product /product.old
symlink /system/product /product
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment