Jump to content

10 posts in this topic

Recommended Posts

Posted

 

 

 
 
Note: This is for testing. Gcore and watchpoint may work or not work. gdbserver won't work with emulators because they are emulating network that a computer can't access it directly.


I will make a tutorial about compiling GDB for all platforms for peoples who want to try fixing gcore.


Tested on Android 4.4.4 and 5.1.1 and it works


Requirements:

A rooted device

Android 4.x.x-6.x.x (marshmallow is untested)

Terminal app


Downloads:

GDB server by Google (Android NDK 11c March 2016)

Check your device's Kernel architecture before adding gdbserver!

You can check it using GPU-Z and go to "SYSTEM" tab to see your kernel architecture










GDB v7.11 by Google (Android NDK 11c March 2016)





GDB v7.11 by iAndroHacker (target: arm-linux-androideabi)

 (gcore: have "g" packet error)

 (gcore: working but slow to save)

linux-x86_64 (coming)


Other

 (stable)


How to download the file?


pxNkcdC.png

On your Android device, open Xplore, open confuguration and enable root access


MJcz0iS.png

ZYqf5JN.png

Copy the file gdbserver to /system/bin


sL1ldTS.png

Open the Terminal app, input:

Code (Text):
su
and hit enter. input


Code (Text):
dumpsys meminfo
and hit enter to show all the processes.


SePQSGm.png

pick one of the process you want to attach and input


Code (Text):
gdbserver :<port> --attach <pid>
Replacing <pid> with the PID number and <port> with the port number. you can put any ports from range 0-65536 but make sure that the port you input is not in use


NXI0xN1.png

Hit enter and the gdbserver will attach the process and listen to the port


NcSdbzm.png

Open Wi-Fi settings and check your local IP


nxzLk8n.png

On Linux/Mac OS X, open the "gdb" file


On Windows, open the "gdb.exe" file


input:


Code (Text):
target remote 192.168.1.25:1234
to connect to your device


6vvIhkq.png

That's all. Now you can use GDB remotely


GYd5zzU.png

Credit:

iAndroHacker
 

 

 

Posted

You have to connect it remotely to as it wont support some so for that type in tcp tcp: port port(port number)

And then target remote ip address:port

And this will work on 2 or 3 devices like nexus 9 and nexus 8 with exception of watchpoints like you can only use breakpoints not all and maybe it supports any other devices to make it support to other devices like note 3 you will have to convert it with adb and forward the port .

Posted

You have to connect it remotely to as it wont support some so for that type in tcp tcp: port port(port number)

And then target remote ip address:port

And this will work on 2 or 3 devices like nexus 9 and nexus 8 with exception of watchpoints like you can only use breakpoints not all and maybe it supports any other devices to make it support to other devices like note 3 you will have to convert it with adb and forward the port .

 

I am gonna add it tommrow saw it in the comments u know what i mean in a... .

Posted

I am gonna add it tommrow saw it in the comments u know what i mean in a... .

Thats all i know ik some more about breakpoints with it like how to support it with other devices using gcore and dumping lib file of the game then removing syscall from it ik you got shocked but there is syscall in android also removing it will support all the breakpoints so.. cannot say more here.

And do u have the permission to share iAndroidhacker tuts or i shall asko him bout that?

Posted

Thats all i know ik some more about breakpoints with it like how to support it with other devices using gcore and dumping lib file of the game then removing syscall from it ik you got shocked but there is syscall in android also removing it will support all the breakpoints so.. cannot say more here.And do u have the permission to share iAndroidhacker tuts or i shall asko him bout that?

I do

Guest
This topic is now closed to further replies.
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines