Preliminary root for ODP1 on 5X and 6P

When linking, please link to this post, not to the download directly.

Service mode

If the boot animation freezes for a second and it reboots, you are most likely hitting the same kernel panic I was during development.

Pixel and Pixel XL

Apps

This is still very much a work in progress. I am releasing it now because I will be away from my development PC for about a week, and I don't think I'll be able to fix any more issues before I leave.- This version works pretty well for me on the 5X and 6P flashed with TWRP.- It does not work on the Pixel or Pixel XL.- PIxel C and Nexus Player have not been tested - please let us all know your results.- I would advise against using this release on any device not mentioned in this post.Both the 5X and 6P suffer from a kernel panic (of yet unknown origin) if SuperSU's daemon loads at early boot. Due to this, on ODP1 exec mode is skipped, and even the service launch is delayed. As a result, su.d scripts are executed too late in the boot process to hijack system services before they launch. While most of you are probably not going to run into that, some might, and it is thus worth noting. (Most seem to think you need some sort of framework rather than a few lines of script for that sort of mod...)This kernel panic may be a kernel issue only Google can solve, or it may be possible to work-around on our end, it is too soon to say.If this keeps being an issue, increasing the startup delay may help as a work-around. Click here for a test version with an extra 15-second delay . I already spent quite a lot of hours trying to trace this kernel panic without result, I don't think I will invest more time in finding the cause unless the problem still exists on ODPThese devices have the new A/B partition layout, and something is going wrong with the code that handles this. This is most likely something I can solve with some more time and effort. This part of the code is just very tricky and time-consuming to debug, as logging isn't operational yet at this stage of booting.Just because an app can gain root access doesn't mean it'll work. While O still seems very similar to Nougat, some things have changed. The syntax of some commands has changed (try 'ps -A' now instead of 'ps' for example). As expected, SELinux rules have been tightened some more, and this always has the chance of breaking some root apps. The point is - just because an app doesn't work doesn't necessarily mean something in SuperSU is broken (it could be, though).