[script][v500] Convert loki kernel to bumped (permissive) kernel in recovery topic

SOCIALIZE IT ⇨


Currently, all official CyanogenMod ROMs use loki tool to install the kernel on the LG G Pad 8.3 v500. Unfortunately, using loki tool causes a benign "secure boot error message" upon startup.

Here are some scripts that can be flashed in the recovery to convert a loki kernel to a bumped (permissive) kernel. The kernel will remain permissive until a new ROM or kernel is flashed again.

When making a kernel permissive, the following commands will be appended to the kernel boot command line:


Code:


androidboot.selinux=permissive selinux=0


Note: Only apply these scripts one time when setting the kernel to permissive mode or the command line above will be appended twice.

Instructions:
1) Flash ROM or your favorite kernel
2) Flash one of the scripts below, depending on what you want.

1) Convert a loki kernel to a bumped kernel
v500-loki-kernel-to-bumped-kernel-signed.zip

2) Convert a loki kernel to a bumped permissive kernel (turns off selinux)
v500-loki-kernel-to-bumped-permissive-kernel-signed.zip

3) Convert an already bumped kernel to a permissive bumped kernel (turns off selinux)
v500-bumped-kernel-to-bumped-permissive-kernel-signed.zip

Thanks to
@Skin1980
for the bash bump code.
Thanks to
@aicjofs
for the script base.




xda-developers


0 commentaires:

Enregistrer un commentaire