Monday, January 27, 2014

Debug kernel oops crash dump

#gdb zimage
#disassemble 0x55667\\pc aaddr
Take pc offset from log add to listed starting address
#list *0x556688 \\pc address

Shows line of crash


scenario 2:
if you have a crash & you know the function name & offset

eg:
PC: /usr/sbin/test(update+0xdf) [0xa1b0]

to identify the line number of crash execute below command

# gdb testexe  
# list *update+0xdf

Note : testexe builded with debug symbols

Kernel platform device driver registration

Kernel commandline update

How to stop all android services

#stop
#start

Othet way..remove executable permission of zygote

#chmod 666 app_process

Starting android application from adb shell

#am start -n package.name/.activityname

Getting input & sensor events android shell

#getevent <input device>

Port forwarding windows to android mobile

adb forward tcp:5555 tcp:5555
Host to device