Modifications of vendor image on Android 10 - alternative idea



  • Further to my earlier question https://android.stackexchange.com/questions/241657/modifications-of-vendor-image-on-android-10 and according to the " https://source.android.com/devices/architecture/kernel/mounting-partitions-early " article, I'm looking the correct way to implement my new idea:

    1. Skipping the mounting in the startup of vendor in fstab - Its easy to erase the record in fstab related to /vendor partition
    2. Doing alternative mount from provided custom vendor image - It's require to know where to inject the mount command

    Anyone have an idea ? Thanks,



  • Just create Magisk https://topjohnwu.github.io/Magisk/guides.html#magisk-modules and place your .ko kernel modules in

    /data/adb/modules/my-first-module/system/vendor/lib/modules/example.ko
    

    and create script
    /data/adb/modules/my-first-module/service.sh

    #!/system/bin/sh
    insmod /vendor/lib/modules/example.ko
    

    No need to modify /vendor partition




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2