Hovatek Forum DEVELOPMENT Android [Development] [SOLUTION] to fix touch not working on TWRP / Philz due to kernel disabled touch
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[Development] [SOLUTION] to fix touch not working on TWRP / Philz due to kernel disabled touch

[Development] [SOLUTION] to fix touch not working on TWRP / Philz due to kernel disabled touch

Pages (18): Previous 17 8 9 10 1118 Next
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
30-03-2019, 05:10 PM
#81



(30-03-2019, 04:02 PM)X3non
(29-03-2019, 08:40 PM)SachinBorkar Is it true that gz have always end with value "00" ?
Or
Its my myth ?

Sent from my Titanium Vista 4G using Tapatalk

i've never known file types to have magic number endings
also i dont think it's documented anywhere that gz always ends with 00, so one cant say for sure


BTW do you have a 64 bit phone you're using to test?
if yes, try using IDA x64, this probably requires python x64 too
load the kernel > ARM little endian > 0xFFFFFFC000080000 > click Edit > Segments > edit segment... >
combination : public
segment bitness: 64 bit

see if ida is able to loads the segments sections then you load the idc script and symbls

I haven't 64bit phone.

No IDA cannot able to do it in "Techno CX air" case

We can able to force IDA but it may show wrong codes.


I use Hopper instead its showing right values.
This post was last modified: 30-03-2019, 05:12 PM by SachinBorkar.
xerxes
xerxes
xerxes
Senior Member
8,355
31-03-2019, 03:07 PM
#82
Below there is the link for the symbol.txt file for TECNO Camon CX Air

https://www.mediafire.com/download/llqjsaabi34jbgx

Sent from my TECNO CX Air using Tapatalk
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
31-03-2019, 03:47 PM
#83
(31-03-2019, 03:07 PM)Mikesew Below there is the link for the symbol.txt file for TECNO Camon CX Air

https://www.mediafire.com/download/llqjsaabi34jbgx

Sent from my TECNO CX Air using Tapatalk
Try this and tell me

https://mega.nz/#!GaZTHCgQ!hb-TVVDAO9ObN...nKGqAXVMGs


// Remember the link is valid for three day to download //

Sent from my Titanium Vista 4G using Tapatalk
This post was last modified: 31-03-2019, 07:18 PM by SachinBorkar.
xerxes
xerxes
xerxes
Senior Member
8,355
31-03-2019, 05:58 PM
#84
Yes, The Touch are working on my recovery

Thanks all of you who are participated on working the touch to work on my phone TECNO CX Air specially for @SachinBorkar on Hovatek forum.


Thanks a lot......Thanks!

Sent from my TECNO CX Air using Tapatalk
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
31-03-2019, 06:02 PM
#85



Decompiling a 64 bit kernel is a little bit different from 32 bit. This is a quick guide to help 64 bit users, much of the work is to be done using the main guide @ https://www.hovatek.com/forum/thread-27132.html

  1. This is an original Kernel of Tecno CX Air using the Aarch64 (64 bit) i'm using as an example

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-1.png]

  2. Right Click on file >> 7-zip >> Open Archive >>

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-2.png]

  3. Remove the extra data at the end of the kernel ; see this post

  4. Recheck the packed size again ; Right Click on file >> 7-zip >> Open Archive >>

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-3.png]

  5. Extract it using 7-zip and open the extracted file using IDA x64

  6. In IDA, fill as shown in screenshot below then click OK

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-4.png]

  7. Fill again then click OK

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-5.png]

  8. Right click the yellow highlighted section >> jump the addres >> input your driver loading address here (the address you must have gotten using ADB or from symbl.txt file). In my case it is "FFFFFFC0006F3668"

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-6.png]

  9. If IDA displays the contents without decoding it (it'll look something like the screenshot below with very few details) then do the next step if not then skip

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-7.png]

  10. Click Edit > Segments > edit segment... > Select the values below then click OK (If a window pops up saying everything will lost click OK to proceed)
    Code:

    combination : public
    segment bitness : 64 bit

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-8.png]

  11. Load the script and symbl.txt >> then see instruction
    Code:

    BL    get_boot_mode
    CMP   W0, #2

    [Image: how-to-patch-kernel-to-enable-touch-in-t...-bit-9.png]

  12. Go to HEX View (copy out about two lines of hex values starting from CMP... you will need this when searching)
    Code:

    1F 08 00 71 00 0A 00 54  00 00 00 90 A1 1F 40 F9 63 31 00 B0 E2 03 13 2A  00 70 2E 91 63 54 25 91

  13. Search in HXD Editor using the values you copied from IDA's hex view

    [Image: how-to-patch-kernel-to-enable-touch-in-t...bit-10.png]

  14. In HXD editor, replace "1F 08 00 71" with "1F 00 00 71"

    [Image: how-to-patch-kernel-to-enable-touch-in-t...bit-11.png]


    Note :
    * While packing/compressing kernel the packed size was reduced by 200-300 bytes with compared to original file after removed payload data. ( In case of Tecno CX Air )

    * To obtain the original packed size, I added  300 bytes of random data with some "00"s to the end of patched-uncompressed kernel and repack it until it matches the original file size

    * Recovery won't boot until packed size match with original gz file after removed payload.


  15. Save the file and follow step no. 41 on main guide here @ https://www.hovatek.com/forum/thread-27132.html
This post was last modified: 13-05-2020, 02:53 PM by X3non.
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
31-03-2019, 06:05 PM
#86
(31-03-2019, 05:58 PM)Mikesew Yes, The Touch are working on my recovery

Thanks all of you who are participated on working the touch to work on my phone TECNO CX Air specially for @SachinBorkar on Hovatek forum.


Thanks a lot......Thanks!

Sent from my TECNO CX Air using Tapatalk
I will post soon how I patched your kernel


Give Spacial thanks to @X3non .


// Also say sorry for your bad behavior

//which you did here @ https://www.hovatek.com/forum/showthread...#pid164003

Sent from my Titanium Vista 4G using Tapatalk
This post was last modified: 31-03-2019, 06:14 PM by SachinBorkar.
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
31-03-2019, 06:17 PM
#87
(31-03-2019, 05:58 PM)Mikesew Yes, The Touch are working on my recovery

Thanks all of you who are participated on working the touch to work on my phone TECNO CX Air specially for @SachinBorkar on Hovatek forum.


Thanks a lot......Thanks!

Sent from my TECNO CX Air using Tapatalk
Also upload screenshots of twrp.

Sent from my Titanium Vista 4G using Tapatalk
xerxes
xerxes
xerxes
Senior Member
8,355
31-03-2019, 06:59 PM
#88
Here is my TWRP Screenshoot.

Which is pitch black custom recovery project TWRP.

Ported from QMobile E2 Noir to TECNO CX Air.[Image: 31d5407bfce18ae4afba3a4bcd215356.jpg][Image: 38f22eb64f4900a2ece833ab786308ad.jpg][Image: 05ade15c7098e2c34066854acb7786fc.jpg][Image: 234e0c112d693d01b779755e1d4a5130.jpg][Image: da95bc2ed26699b3d638b5fc6c53c064.jpg][Image: f4cb0b7a81c66527cd2facac2b47df6b.jpg][Image: ab65582132b00197659837ffb74c955a.jpg][Image: cb7297c0d7521898d60e35bf5be0cbc5.jpg][Image: 403d63a5930968df43a4c48d3b320335.jpg][Image: 8fdf8d777ac7718feb401d98e5f3346a.jpg][Image: 0c3723e739eca31b58b201eca8c8f563.jpg][Image: 25af0afa8933736582bba33c578c174a.jpg][Image: af98e7fbedddc72cb43079d5c481fde7.jpg][Image: bfcb9cb4c257b7e2018caadc88ca2e73.jpg][Image: d5e9fbbad46cbb0e23c84fbc5030a087.jpg][Image: a5c0eda0021e29cee11f04d5a2085b4e.jpg]

Sent from my TECNO CX Air using Tapatalk
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
31-03-2019, 07:04 PM
#89
(31-03-2019, 06:59 PM)Mikesew Here is my TWRP Screenshoot.

Which is pitch black custom recovery project TWRP.

Ported from QMobile E2 Noir to TECNO CX Air.[Image: 31d5407bfce18ae4afba3a4bcd215356.jpg][Image: 38f22eb64f4900a2ece833ab786308ad.jpg][Image: 05ade15c7098e2c34066854acb7786fc.jpg][Image: 234e0c112d693d01b779755e1d4a5130.jpg][Image: da95bc2ed26699b3d638b5fc6c53c064.jpg][Image: f4cb0b7a81c66527cd2facac2b47df6b.jpg][Image: ab65582132b00197659837ffb74c955a.jpg][Image: cb7297c0d7521898d60e35bf5be0cbc5.jpg][Image: 403d63a5930968df43a4c48d3b320335.jpg][Image: 8fdf8d777ac7718feb401d98e5f3346a.jpg][Image: 0c3723e739eca31b58b201eca8c8f563.jpg][Image: 25af0afa8933736582bba33c578c174a.jpg][Image: af98e7fbedddc72cb43079d5c481fde7.jpg][Image: bfcb9cb4c257b7e2018caadc88ca2e73.jpg][Image: d5e9fbbad46cbb0e23c84fbc5030a087.jpg][Image: a5c0eda0021e29cee11f04d5a2085b4e.jpg]

Sent from my TECNO CX Air using Tapatalk

Thanks !
This post was last modified: 31-03-2019, 09:14 PM by SachinBorkar.
xerxes
xerxes
xerxes
Senior Member
8,355
31-03-2019, 07:09 PM
#90



Ok

Sent from my TECNO CX Air using Tapatalk
Pages (18): Previous 17 8 9 10 1118 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram