[Tweak] Gionee M6 TWRP recovery porting
[Tweak] Gionee M6 TWRP recovery porting
(26-01-2021, 08:49 PM)Detective_Khalifah I tried " gzip -n -k -9 "path" " and got an archive which has packed size as 7 580 234
"recovery.img-zImage" has packed size as 7 580 236, so in HxD I tried "Edit > Insert bytes... > [Bytecount -> 1, Hex values -> 00]. Had to do it three times, but I got 7 580 234 (lower), 7 580 235 (lower) at 1st & 2nd attempts, and 7 580 237 (higher) at the third.
(27-01-2021, 05:35 PM)X3non(26-01-2021, 08:49 PM)Detective_Khalifah I tried " gzip -n -k -9 "path" " and got an archive which has packed size as 7 580 234
"recovery.img-zImage" has packed size as 7 580 236, so in HxD I tried "Edit > Insert bytes... > [Bytecount -> 1, Hex values -> 00]. Had to do it three times, but I got 7 580 234 (lower), 7 580 235 (lower) at 1st & 2nd attempts, and 7 580 237 (higher) at the third.
you should only need to add 2 byte count with value 00 and ensure the cursor is at the last offset
(28-01-2021, 10:47 PM)Detective_Khalifah My fault for not explaining everything I tried - which gives 7 580 235. What you explained is my first attempt; I tried other methods like typing 0 -- which always displays "00", trying "Random bytes" when "Hex values" didn't work,...
(29-01-2021, 11:06 AM)X3non i see, have you tried using this particular kernel in twrp and it doesn't boot?
i take it that you changed 1F 08 00 71 to 1F 00 00 71, try changing it to 1F 20 03 D5, then attempt to make the size match
(29-01-2021, 11:06 AM)X3non i see, have you tried using this particular kernel in twrp and it doesn't boot?Eventually repacked and booted - touch was gone; flashed and touch was awake.
...