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 15 6 7 8 918 Next
xerxes
xerxes
xerxes
Senior Member
8,355
28-03-2019, 04:12 PM
#61



It gives me looks like on the screenshot below, how to find the required lines easily? can I search using terminal emulator?
This post was last modified: 28-03-2019, 04:12 PM by xerxes.
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
28-03-2019, 05:47 PM
#62
(28-03-2019, 04:12 PM)Mikesew It gives me looks like on the screenshot below, how to find the required lines easily? can I search using terminal emulator?
Please explain as much as possible.
What you did ?
What did that ?

Sent from my Titanium Vista 4G using Tapatalk
xerxes
xerxes
xerxes
Senior Member
8,355
28-03-2019, 05:51 PM
#63
What I mean is I used Terminal emulator to see my touch driver according to your guide, but when I clock enter it ahows so many lines, so how to easily fount the line qhere thw touch driver version found.[Image: 935dce4b0152c2d4f7dafe1531cba78d.jpg]

Sent from my TECNO CX Air using Tapatalk
X3non
X3non
X3non
Recognized Contributor
22,062
28-03-2019, 05:58 PM
#64
(28-03-2019, 05:51 PM)Mikesew What I mean is I used Terminal emulator to see my touch driver according to your guide, but when I clock enter it ahows so many lines, so how to easily fount the line qhere thw touch driver version found

Sent from my TECNO CX Air using Tapatalk

read this post properly @ https://www.hovatek.com/forum/thread-271...#pid164296
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
28-03-2019, 06:18 PM
#65



During hex view of your kernel I found your driver it is

goodix gt1x
This post was last modified: 28-03-2019, 06:20 PM by SachinBorkar.
SachinBorkar
SachinBorkar
SachinBorkar
Senior Member
218
28-03-2019, 06:28 PM
#66
@X3non please help me to deassamble the kernel.

Processor architecture is :

ARM v8a (AArch64)

Is it possible for IDA to decompile or decode it.

OR

can I try manually patch the kernel via hex editor ( by trying manually to decode section of touch driver )

Sent from my Titanium Vista 4G using Tapatalk
X3non
X3non
X3non
Recognized Contributor
22,062
29-03-2019, 12:29 PM
#67
(28-03-2019, 06:28 PM)SachinBorkar @X3non please help me to deassamble the kernel.
Processor architecture is :
ARM v8a (AArch64)
Is it possible for IDA to decompile or decode it.
OR
can I try manually patch the kernel via hex editor ( by trying manually to decode section of touch driver )

Sent from my Titanium Vista 4G using Tapatalk

@mikesew needs to attaches his symbl.txt file
i think he's kernel should be 'ARM little endian' > 0xFFFFFFC000080000 as start address but without symbls then there's nothing to proceed further with

about patching the kernel manually, this might be possible. one could try something like this
since it seems in assembly language "CMP R0, #2" translate to "02 00 50 E3" in hex (seems to be a constant at least in the kernels i've check just comprises yours & mine which isn't much)
one could try modifying all "02 00 50 E3" found within the uncompressed kernel and test them one after the other till one eventually works.


it'll boring and tedious work cause there'll surely be about 100s of those found, so it means 100 times changing the values > compressing to gz > repacking the recovery > flashing the recovery to the phone.
maybe someone who badly needs touch working could try but definitely not me though

BTW see https://www.hovatek.com/forum/thread-27200.html ; success on a second device with patched kernel and touch working.
This post was last modified: 29-03-2019, 03:45 PM by X3non.
X3non
X3non
X3non
Recognized Contributor
22,062
29-03-2019, 03:20 PM
#68
Finding the start address of GZ is pretty easy using the file signature (magic number) but the end address is a little bit more difficult and requires a trial and error approach. When trying to find the end of compressed kernel, there are two likely errors you might run into. This post is aimed to help provide fix these errors. I'm using boot.img-zImage from tecno CXair as an example here but it's applicable to others as well

Two possible errors encountered while trying to decompress kernel using 7zip
  • There are some data after the end of the payload data
  • Unexpected end of data


How to fix 7zip kernel decompression error messages


  1. Open the file using HXD
  2. As usual, we'll search for the hex-value "6D 65 64 69 61 74 65 6B 2C 4D 54" , remember this is not the end address of GZipped kernel but it's the closest point we'll use in order to get the real end address

    [Image: How-to-fix-7zip-kernel-decompression-err...ages-3.jpg]

  3. Now we'll start selecting / highlighting and cutting items from this point (you can paste into a new file so as not to misplace what you cut), save the file and try extracting using 7zip
  4. If you get the error message "There are some data after the end of the payload data", then it means you still need to remove more values from the end of the file

    [Image: How-to-fix-7zip-kernel-decompression-err...ages-1.jpg]

  5. But if you get the error message "Unexpected end of data", then it means you've removed more than you should have. Simply undo and try to remove less than what you removed previously

    [Image: How-to-fix-7zip-kernel-decompression-err...ages-2.jpg]

This post was last modified: 29-03-2019, 03:27 PM by X3non.
X3non
X3non
X3non
Recognized Contributor
22,062
29-03-2019, 03:37 PM
#69
How to check Android OS / Kernel Bit Type
  • Download Antutu Benchmark apk from playstore
  • Launch Antutu
  • Click "My Device"
  • Look under "Android" and you'll find the OS Bit type

[Image: How-to-check-Android-OS-Kernel-Bit-Type.png]
This post was last modified: 29-03-2019, 04:10 PM by X3non.
X3non
X3non
X3non
Recognized Contributor
22,062
29-03-2019, 04:08 PM
#70



first post has been updated with a few new infos!!
Pages (18): Previous 15 6 7 8 918 Next
Users browsing this thread:
 3 Guest(s)
Users browsing this thread:
 3 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram