[Moto Maxx Android Development] fgl27:
I need hel in making the TWRP update to lollipop.

I have be try many many tings but no success yet, have flush over 7 different recovery that i made none works none boot some black screen some made the boot logo of the device bootloope.

So i will put all my files and config I'm using, so any one can help and point whats is wrong...

I believe that all the files that need to be edit to make this work are:

BoardConfig.mk

device.mk

twrp.fstab

If not tell me what other...

BoardConfig.mk:

In this file the only thing is need to do is to add is the info about # TWRP + include vendor info:

The config that i have be trying for last are:

# TWRP
TW_THEME := portrait_hdpi
TW_INCLUDE_CRYPTO := true
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
TW_SCREEN_BLANK_ON_BOOT := true

-include vendor/motorola/quark/BoardConfigVendor.mk

This two i have not try yet but will:

GET_RECOVERY_QCOM_RTC_FIX := true

TW_INCLUDE_L_CRYPTO := true

This is very complex and not much to search about so any help about that is need, i will try any combination that any one advise to...

device.mk

In this file is need to add info on .rc files and twrp.fstab file.

I edit it like this:

PRODUCT_COPY_FILES += \
device/moto/quark/twrp.fstab:recovery/root/etc/twrp.fstab

PRODUCT_COPY_FILES += \
device/moto/quark/init.quark.rc:root/init.qcom.rc \
device/moto/quark/init.quark.power.rc:root/init.qcom.power.rc \
device/moto/quark/init.quark.usb.rc:root/init.qcom.usb.rc \
device/moto/quark/fstab.qcom:root/fstab.qcom \
device/moto/quark/ueventd.qcom.rc:root/ueventd.qcom.rc

Here a list of all .rc files that exist on the root of the device, running CM12.1 ROM

init.cm.rc

init.environ.rc

init.qcom.power.rc

init.qcom.rc

init.qcom.usb.rc

init.rc

init.recovery.qcom.rc

init.superuser.rc

init.trace.rc

init.usb.rc

init.zygote32.rc

ueventd.qcom.rc

ueventd.rc

If any of this is need to be add or remove let me know...

twrp.fstab

This file is basic a copy of recovery.fstab but the content edit different and + some other "flags"...

This is the one that i have more doubts on how to make work.

My last attempt is like this, but this i have not try to compile using this just edit...

/system ext4 /dev/block/platform/msm_sdcc.1/by-name/system flags=backup=1;canbewiped;wipeingui;display="System"
/data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata flags=backup=1;canbewiped;wipeingui;encryptable=footer;length=-16384;display="data"
/data f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata flags=backup=1;canbewiped;wipeingui;encryptable=footer;length=-16384;display="data"
/cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache flags=backup=1;canbewiped;wipeingui;display="cache"
/firmware ext4 /dev/block/platform/msm_sdcc.1/by-name/modem flags=mounttodecrypt
/boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot flags=backup=1;canbewiped;wipeingui;display="boot"
/persist ext4 /dev/block/platform/msm_sdcc.1/by-name/persist flags=backup=1;display="boot"
/recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery flags=backup=1
/modem emmc /dev/block/platform/msm_sdcc.1/by-name/modem
/logo emmc /dev/block/platform/msm_sdcc.1/by-name/logo
/usbstorage vfat /dev/block/sda1 /dev/block/sda flags=display="USB Storage";storage;removable;wipeingui

i grab all the files of recovery.fstab of quark that i can and put them all in here:

https://github.com/bhb27/fstab-files

so any one can check and tell me what to add...

I put my source in here:

https://github.com/bhb27/motorola/tree/master/quark

all the .rc file in here:

https://github.com/bhb27/rc_quark

and the folder vendor of quark in here:

https://github.com/bhb27/vendor/tree/master/quark

I know this is a lot but is the only organized way to do this...

I will share this here and ask for other to collaborate to see if something works... I will every day continue to try to make this work I not just asking for help and give up, until the help come.... :good: