[Android One (First-Generation) Cross-Device Origin] francoismanzo:
Porting to LG L Bello

Hello I'm trying to port this one to LG L Bello (luv80ds).

I've modified a bit the updater-script to suit our needs on this device.

But I'm still not able to boot into CM.

Here there are the two updater-script.

Original One:

assert(getprop("ro.product.device") == "sprout" || getprop("ro.build.product") == "sprout" || getprop("ro.product.device") == "sprout8" || getprop("ro.build.product") == "sprout8" || abort("This package is for device: sprout,sprout8; this device is " + getprop("ro.product.device") + "."););

ifelse(is_mounted("/system"), unmount("/system"));

package_extract_dir("install", "/tmp/install");

set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);

set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "backup");

unmount("/system");

if is_mounted("/data") then

package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

else

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/userdata", "/data", "");

package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

unmount("/data");

endif;

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/platform/mtk-msdc.0/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

show_progress(0.020000, 10);

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "restore");

unmount("/system");

show_progress(0.050000, 5);

package_extract_file("boot.img", "/dev/block/platform/mtk-msdc.0/by-name/boot");

show_progress(0.200000, 10);

Modified one:

assert(getprop("ro.product.device") == "luv80ds" || getprop("ro.build.product") == "luv80ds" || getprop("ro.product.device") == "luv80ds" || getprop("ro.build.product") == "luv80ds" || abort("This package is for device: luv80ds; this device is " + getprop("ro.product.device") + "."););

ifelse(is_mounted("/system"), unmount("/system"));

package_extract_dir("install", "/tmp/install");

set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);

set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/mmcblk0p9", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "backup");

unmount("/system");

if is_mounted("/data") then

package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");

else

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/mmcblk0p11", "/data", "");

package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");

package_extract_file("uboot.img", "/dev/uboot");

package_extract_file("recovery.img", "/dev/recovery");

unmount("/data");

endif;

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/platform/mtk-msdc.0/mmcblk0p9", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");

show_progress(0.020000, 10);

mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/mmcblk0p9", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "restore");

unmount("/system");

show_progress(0.050000, 5);

show_progress(0.200000, 10);

Flashing of this zip over clean official (5.0.2).

I've removed the Otasigcheck run, because of errors over incompatible data.

I've removed boot.img flash too, to stay with the official one. (This phone comes, in my case, with 5.0.2)

Added package extract of uboot to unlock the LG locked boot loader, and added a recovery package extract for TWRP to have even extra access to the phone (maybe after a flash fail).

But no luck.

No TWRP, no booting system, only an LG Security Error while booting into recovery.

Dunno what to try, I'm outta luck.

If somebody will lend an hand it would be appreciated! Thanks!