Android Tablets Forum banner
1 - 2 of 2 Posts

·
Registered
Joined
·
6 Posts
Discussion Starter · #2 ·
Spending too much time on this Bullpieceofcrap kernel. I want to modify the Hub_Probe.

I already got the data out only need to compile this piece of worthless shit.

#include <linux/module.h>
//#include <linux/config.h>
#include <linux/init.h>
#include <linux/device.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
#include <linux/usb.h>

#include <linux/usbdevice_fs.h>
#include <linux/skbuff.h>

static int __init mymodule_init(void)
{
void *ptr;
unsigned char *byte;

ptr=(void *)0xc06c8db0;
byte=(unsigned char*)ptr;

printk("Loading HUB access mod\n");

if( *(byte+0)==0x06 && *(byte+1)==0x00 && *(byte+2)==0x00 && *(byte+3)==0x0A ) // BEQ loc_c06c92e4
{
printk("HUB access mod applying patch..\n");
*(byte+3)=0x1a; // change in BNE loc_c06c92e4
}
else
{
printk("HUBaccess mod addres check failed [%02x %02x %02x %02x]\n",
*(byte+0),
*(byte+1),
*(byte+2),
*(byte+3)
);
}

return 0;
}

static void __exit mymodule_exit(void)
{
printk ("Unloading my module.\n");
return;
}

module_init(mymodule_init);
module_exit(mymodule_exit);

MODULE_LICENSE("GPL");
 
1 - 2 of 2 Posts
Top