diff --git a/build/readme.md b/build/readme.md index 78ea2d4..566d016 100644 --- a/build/readme.md +++ b/build/readme.md @@ -76,4 +76,22 @@ The touch enabled but size mismatched kernel was superseded with the stock kerne RESULT -Recovery booted up in twrp successfully and no data decryption issue was encountered. But the touch sensor was disabled and locking twrp screen with power button was the only way of interaction with twrp. \ No newline at end of file +Recovery booted up in twrp successfully and no data decryption issue was encountered. But the touch sensor was disabled and locking twrp screen with power button was the only way of interaction with twrp. + + + +**Build 3** +Installed magisk module "cross compiled binaries" by zackptg5 and installed original gzip v1.10 via terminal command "ccbins". After two reboots, command "gzip -h" demonstrated the flag "-n or --no--name". Recompression of the recovery.img-zImage_hexfix kernel file with command "gzip -n -k -9" resulted in compressed gzip kernel of size 6993326 which is 1 byte less than size of hexnotfix_errorfree gzip kernel. This nuanced size mismatch was fixed by appending 10 lines of eight "00" bytes or 80 bytes at the end of recovery.img-zImage_hexfix kernel which increased the file size from 22040576 to 22040656. This time the recompression created a gzip size of 6993327 bytes matching exactly with hexnotfix_errorfree gzip kernel. +After appending header and footer data the final recovery.img-zImage kernel file reached a size of 7077184 that matched with the stock kernel which had disabled touch. + +RESULT +Supplantation of stock kernel by the new touch sensor hex fixed kernel and repacking before flashing the recovery successfully booted up in twrp with touch sensor enabled. +cache/recovery/last_kmsg last stock kernel log: + +[ 1.735551] -(0)[194:kworker/u8:3][] (enable_irq) from [] (gt1x_irq_enable+0x38/0x50) +[ 1.735606] -(0)[194:kworker/u8:3] r6:c1404948 r5:60000113 r4:c17f9ba0 +[ 1.735660] -(0)[194:kworker/u8:3][] (gt1x_irq_enable) from [] (tpd_i2c_probe+0x1e0/0x2f4) +[ 1.735714] -(0)[194:kworker/u8:3] r5:00000000 r4:c17f9ba0 +[ 1.735756] -(0)[194:kworker/u8:3][] (tpd_i2c_probe) from [] (i2c_device_probe+0x1d8/0x20c) +[ 1.735811] -(0)[194:kworker/u8:3] r8:c092f968 r7:cf748a04 r6:cf748a20 r5:cf748a00 +[ 1.735877] -(0)[194:kworker/u8:3][] (i2c_device_probe) from [] (driver_probe_device+0x318/0x470) \ No newline at end of file diff --git a/final/ramdisk/etc/recovery.fstab b/final/ramdisk/etc/recovery.fstab index 3850325..3fd1a89 100755 --- a/final/ramdisk/etc/recovery.fstab +++ b/final/ramdisk/etc/recovery.fstab @@ -13,7 +13,7 @@ -/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,forceencrypt=/dev/block/platform/bootdevice/by-name/metadata, +/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,encryptable=/dev/block/platform/bootdevice/by-name/metadata, /dev/block/platform/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check @@ -74,3 +74,6 @@ /dev/block/platform/bootdevice/by-name/loader_ext1 /loader_ext1 emmc defaults defaults /dev/block/platform/bootdevice/by-name/loader_ext2 /loader_ext2 emmc defaults defaults + +/dev/block/mmcblk1* /external_sd auto flags=display="External SDcard";storage;wipeingui;removable;backup=0 +/dev/block/sda* /usbotg auto flags=display="USB-OTG";storage;removable;backup=0 diff --git a/final/split_img/recovery.img-kernel b/final/split_img/recovery.img-kernel index 33a953d..15bb289 100755 Binary files a/final/split_img/recovery.img-kernel and b/final/split_img/recovery.img-kernel differ diff --git a/work/ramdisk/etc/recovery123.fstab b/work/ramdisk/etc/recovery123.fstab new file mode 100755 index 0000000..3fd1a89 --- /dev/null +++ b/work/ramdisk/etc/recovery123.fstab @@ -0,0 +1,79 @@ +# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +# 1 "" +# 1 "" +# 1 "/usr/include/stdc-predef.h" 1 3 4 +# 1 "" 2 +# 1 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +# 107 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +/dev/block/platform/bootdevice/by-name/system /system ext4 ro wait,verify,recoveryonly + +/dev/block/platform/bootdevice/by-name/vendor /vendor ext4 ro wait,verify,recoveryonly + + + + + +/dev/block/platform/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,errors=panic wait,check,quota,formattable,resize,encryptable=/dev/block/platform/bootdevice/by-name/metadata, + + +/dev/block/platform/bootdevice/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check + + +/dev/block/platform/bootdevice/by-name/protect1 /vendor/protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable +/dev/block/platform/bootdevice/by-name/protect2 /vendor/protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable +/dev/block/platform/bootdevice/by-name/nvdata /vendor/nvdata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,formattable +/dev/block/platform/bootdevice/by-name/nvcfg /vendor/nvcfg ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,formattable + + + + + +/devices/bootdevice* auto vfat defaults voldmanaged=sdcard0:auto +/devices/platform/externdevice* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata +/devices/platform/mt_usb* auto vfat defaults voldmanaged=usbotg:auto + +/dev/block/platform/bootdevice/by-name/frp /persistent emmc defaults defaults + +/dev/block/platform/bootdevice/by-name/nvram /nvram emmc defaults defaults +/dev/block/platform/bootdevice/by-name/proinfo /proinfo emmc defaults defaults +/dev/block/platform/bootdevice/by-name/lk /bootloader emmc defaults defaults +/dev/block/platform/bootdevice/by-name/lk2 /bootloader2 emmc defaults defaults +/dev/block/platform/bootdevice/by-name/para /misc emmc defaults defaults +/dev/block/platform/bootdevice/by-name/boot /boot emmc defaults defaults +/dev/block/platform/bootdevice/by-name/recovery /recovery emmc defaults defaults +/dev/block/platform/bootdevice/by-name/logo /logo emmc defaults defaults +/dev/block/platform/bootdevice/by-name/expdb /expdb emmc defaults defaults +/dev/block/platform/bootdevice/by-name/seccfg /seccfg emmc defaults defaults + +/dev/block/platform/bootdevice/by-name/tee1 /tee1 emmc defaults defaults +/dev/block/platform/bootdevice/by-name/tee2 /tee2 emmc defaults defaults +# 161 "vendor/mediatek/proprietary/hardware/fstab/mt6739/fstab.in" +/dev/block/platform/bootdevice/by-name/md1img /md1img emmc defaults defaults +/dev/block/platform/bootdevice/by-name/md1dsp /md1dsp emmc defaults defaults +/dev/block/platform/bootdevice/by-name/md1arm7 /md1arm7 emmc defaults defaults +/dev/block/platform/bootdevice/by-name/md3img /md3img emmc defaults defaults + + + + + +/dev/block/platform/bootdevice/by-name/gz1 /gz1 emmc defaults defaults +/dev/block/platform/bootdevice/by-name/gz2 /gz2 emmc defaults defaults + +/dev/block/platform/bootdevice/by-name/spmfw /spmfw emmc defaults defaults + + +/dev/block/platform/bootdevice/by-name/mcupmfw /mcupmfw emmc defaults defaults + +/dev/block/platform/bootdevice/by-name/boot_para /boot_para emmc defaults defaults + +/dev/block/platform/bootdevice/by-name/odmdtbo /odmdtbo emmc defaults defaults + + + + +/dev/block/platform/bootdevice/by-name/loader_ext1 /loader_ext1 emmc defaults defaults +/dev/block/platform/bootdevice/by-name/loader_ext2 /loader_ext2 emmc defaults defaults + +/dev/block/mmcblk1* /external_sd auto flags=display="External SDcard";storage;wipeingui;removable;backup=0 +/dev/block/sda* /usbotg auto flags=display="USB-OTG";storage;removable;backup=0 diff --git a/work/ramdisk/fstab12.enableswap b/work/ramdisk/fstab123.enableswap similarity index 100% rename from work/ramdisk/fstab12.enableswap rename to work/ramdisk/fstab123.enableswap diff --git a/work/ramdisk/prop12.default b/work/ramdisk/prop123.default similarity index 100% rename from work/ramdisk/prop12.default rename to work/ramdisk/prop123.default diff --git a/work/ramdisk/ueventd12.rc b/work/ramdisk/ueventd123.rc similarity index 100% rename from work/ramdisk/ueventd12.rc rename to work/ramdisk/ueventd123.rc diff --git a/work/split_img/recovery012.img-kernel_offset b/work/split_img/recovery0123.img-kernel_offset similarity index 100% rename from work/split_img/recovery012.img-kernel_offset rename to work/split_img/recovery0123.img-kernel_offset diff --git a/work/split_img/recovery12.img-avbtype b/work/split_img/recovery123.img-avbtype similarity index 100% rename from work/split_img/recovery12.img-avbtype rename to work/split_img/recovery123.img-avbtype diff --git a/work/split_img/recovery12.img-base b/work/split_img/recovery123.img-base similarity index 100% rename from work/split_img/recovery12.img-base rename to work/split_img/recovery123.img-base diff --git a/work/split_img/recovery12.img-board b/work/split_img/recovery123.img-board similarity index 100% rename from work/split_img/recovery12.img-board rename to work/split_img/recovery123.img-board diff --git a/work/split_img/recovery12.img-hashtype b/work/split_img/recovery123.img-hashtype similarity index 100% rename from work/split_img/recovery12.img-hashtype rename to work/split_img/recovery123.img-hashtype diff --git a/work/split_img/recovery12.img-header_version b/work/split_img/recovery123.img-header_version similarity index 100% rename from work/split_img/recovery12.img-header_version rename to work/split_img/recovery123.img-header_version diff --git a/work/split_img/recovery12.img-os_patch_level b/work/split_img/recovery123.img-os_patch_level similarity index 100% rename from work/split_img/recovery12.img-os_patch_level rename to work/split_img/recovery123.img-os_patch_level diff --git a/work/split_img/recovery12.img-os_version b/work/split_img/recovery123.img-os_version similarity index 100% rename from work/split_img/recovery12.img-os_version rename to work/split_img/recovery123.img-os_version diff --git a/work/split_img/recovery12.img-pagesize b/work/split_img/recovery123.img-pagesize similarity index 100% rename from work/split_img/recovery12.img-pagesize rename to work/split_img/recovery123.img-pagesize diff --git a/work/split_img/recovery12.img-ramdisk_offset b/work/split_img/recovery123.img-ramdisk_offset similarity index 100% rename from work/split_img/recovery12.img-ramdisk_offset rename to work/split_img/recovery123.img-ramdisk_offset diff --git a/work/split_img/recovery12.img-ramdiskcomp b/work/split_img/recovery123.img-ramdiskcomp similarity index 100% rename from work/split_img/recovery12.img-ramdiskcomp rename to work/split_img/recovery123.img-ramdiskcomp diff --git a/work/split_img/recovery12.img-second_offset b/work/split_img/recovery123.img-second_offset similarity index 100% rename from work/split_img/recovery12.img-second_offset rename to work/split_img/recovery123.img-second_offset diff --git a/work/split_img/recovery12.img-sigtype b/work/split_img/recovery123.img-sigtype similarity index 100% rename from work/split_img/recovery12.img-sigtype rename to work/split_img/recovery123.img-sigtype diff --git a/work/split_img/recovery12.img-tags_offset b/work/split_img/recovery123.img-tags_offset similarity index 100% rename from work/split_img/recovery12.img-tags_offset rename to work/split_img/recovery123.img-tags_offset diff --git a/work/split_img/recovery3.img-kernel b/work/split_img/recovery3.img-kernel new file mode 100755 index 0000000..15bb289 Binary files /dev/null and b/work/split_img/recovery3.img-kernel differ