[Tweak] Gionee M6 TWRP recovery porting
[Tweak] Gionee M6 TWRP recovery porting
(21-01-2021, 02:29 PM)Detective_Khalifah I recently made a ROM dump and rooted a Gionee M6 device -- https://www.hovatek.com/forum/thread-37769.html. As routine, everyone who actually gets to this stage wants to make some, if not a lot of tweaks; custom recovery & ROM are one of those.
As the device comes with Android 6, and has an encrypted /data partition, the usually simple porting and installing of TWRP recovery doesn't work out as one'd find in earlier versions.
When I booted into the recovery, touch worked. But not so operational when flashed - touch doesn't work. [NOTE: I used fastboot method]
How do I make TWRP recovery that works compatibly with my device?
(22-01-2021, 12:09 PM)X3non replace twrp's existing fstab filess with those @ https://www.androidfilehost.com/?fid=172...6145720239OK
...
(22-01-2021, 12:09 PM)X3non ... you can try the touch fix by @SachinBorkar @ https://www.hovatek.com/forum/thread-27132.htmlI feared you'd say that. Will give it a go, see if I can win, this time.
(22-01-2021, 12:30 PM)Detective_Khalifah(22-01-2021, 12:09 PM)X3non ... you can try the touch fix by @SachinBorkar @ https://www.hovatek.com/forum/thread-27132.htmlI feared you'd say that. Will give it a go, see if I can win, this time.
(23-01-2021, 01:50 PM)Detective_Khalifah(23-01-2021, 01:15 PM)X3non go through step 1 to 13 againI'm sure recovery.img-zImage has "1F 8B", and extracted file doesn't. But I'll check again - just to be sure.
if yours is using gzip then the first two hex must be 1F 8B and not 10 00
(25-01-2021, 02:28 AM)Detective_Khalifah ...
For the two extracted kernel images I compared::
Offset (h) 0 of Gionee M6: 10 00 00 14 00 00 00 00 00 00 08 00 00 00 00 00
Offset (h) 0 of Coolpad Mega 3: 10 00 00 14 00 00 00 00 00 00 08 00 00 00 00 00 00
Both extracted kernels are contained in uncompressed gz archive that starts with "1F 8B"
(26-01-2021, 04:12 PM)X3non(25-01-2021, 02:28 AM)Detective_Khalifah ...
For the two extracted kernel images I compared::
Offset (h) 0 of Gionee M6: 10 00 00 14 00 00 00 00 00 00 08 00 00 00 00 00
Offset (h) 0 of Coolpad Mega 3: 10 00 00 14 00 00 00 00 00 00 08 00 00 00 00 00 00
Both extracted kernels are contained in uncompressed gz archive that starts with "1F 8B"
i see the mistake now, you are looking at the extracted kernel (it seems the guide is not clear enough at points 40 & 41)
you are to use the values from the uncompressed gz archive i.e the one starting 1F 8B. it'll give the necessary info you need to recompress the patched kernel to match the compression of the original file
(26-01-2021, 08:24 PM)Detective_Khalifah Yeah. In that regard, what'll be my argument to gzip?
Offset (h): 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000 1F 8B 08 00 00 00 00 00 02 03 EC 5B 0B 70 54 55