[Nexus 5X Android Development] Geofferey:
NEXUS 5X Superboot​

WARNING: I am not responsible for anything that happens as a result of flashing these modified boot images.

This kernel is based on MTC20K (Marshmellow) & NBD90W (Nougat) stock builds. It features several mods added by me & continues the work of others. Consider it my lil experiment for now.

Features:

System verification disabled

Force encrypt /data disabled

System mode root on boot

Init.d support

Chainfire modified sepolicy

Insecure ADB Version

Allows su binary update

More to come?

Coming Soon:

LostAndroid

Chainfire Liveboot

Device Admin Restore

One click install

Changes made:

ramdisk/sepolicy: replaced using:

supolicy --save outfile /sdcard/sepolicy
(outputted from rooted N5X in system mode)

ramdisk/fstab.bullhead: changed "forceencrypt" to "encryptable" and removed verification

/dev/block/platform/soc.0/f9824900.sdhci/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,[COLOR="green"]encryptable[/COLOR]=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata

/dev/block/platform/soc.0/f9824900.sdhci/by-name/system /system ext4 ro,barrier=1 wait[COLOR="red"][STRIKE],verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata[/STRIKE] [/COLOR]
/dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor /vendor ext4 ro,barrier=1 wait[COLOR="red"][STRIKE],verify=/dev/block/platform/soc.0/f9824900.sdhci/by-name/metadata[/STRIKE][/COLOR]

ramdisk/init.rc: added services daemonsu, superboot, init.d

##Superboot MOD added by:
##Geofferey@XDA

service superboot /system/bin/sh /superboot.sh
class main
user root
group root
oneshot

service daemonsu /sbin/daemonsu --auto-daemon
class late_start
user root
group root
oneshot

on property:ro.daemonsu.persist=1
start daemonsu

on property:ro.supersu.persist=0
stop daemonsu

## Init.d MOD by Geofferey@XDA
service userinit /sbin/busybox run-parts /system/etc/init.d
class late_start
user root
group root
oneshot

on property:ro.init.d=1
start userinit

on property:ro.init.d=0
stop userinit

ramdisk/superboot.sh

#!/sbin/sh

##SUPERBOOT MOD ADDED BY:
##GEOFFEREY@XDA

mount /system
mount /data
mount -o rw,remount /system
mount -o rw,remount /system /system
mount -o rw,remount /
mount -o rw,remount / /

if ! -e /system/xbin; then
mkdir /system/xbin
fi

if ! -e /system/daemonsu; then
cat /superboot/su>/system/xbin/daemonsu
cp /superboot/su /system/xbin/daemonsu
fi

if ! -e /system/su; then
cat /superboot/su>/system/xbin/su
cp /superboot/su /system/xbin/su
fi

if ! -e /system/lib64/libsupol.so; then
cat /superboot/libsupol.so /system/lib64/libsupol.so
cp /superboot/libsupol.so /system/lib64/libsupol.so
fi

if ! -e /system/xbin/supolicy; then
cat /superboot/supolicy>/system/xbin/supolicy
cp /superboot/supolicy /sytem/xbin/supolicy
fi

echo 1 > /system/etc/.installed_su_daemon
chmod 6755 /system/xbin/su
chmod 6755 /system/xbin/daemonsu
chmod 644 /system/etc/.installed_su_daemon
chmod 644 /system/lib64/libsupol.so
chmod 755 /system/xbin/supolicy
rm /system/recovery-from-boot.*
sync

mount -o ro,remount /system
mount -o ro,remount /system /system
mount -o ro,remount /
mount -o ro,remount / /

other additions to ramdisk:

ramdisk/sbin/busybox
ramdisk/sbin/daemonsu
ramdisk/sbin/sh

ramdisk/superboot/libsupol.so
ramdisk/superboot/su
ramdisk/superboot/supolicy

HIGH RISK TESTING

NBD90W

Please participate in poll if using this version to let me and the community know if this works as expected. Does it boot, root, init.d work?

Downloads:

NBD90W

MTC20K

All changes made with the help of

Android Image Kitchen

by osm0sis

If you like my work and others, show that love with a thumbs up :D

XDA:DevDB Information

Nexus 5X Superboot Autoroot, Kernel for the LG Nexus 5X

Contributors

Geofferey, c3k, CNBLACK

Kernel Special Features: force encrypt disabled, dm-verity disabled, init.d, superboot

Version Information

Status: Testing

Current Stable Version: MTC20K

Current Beta Version: NBD90W

Created 2016-10-13

Last Updated 2016-10-17