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

Simple android native executable

Android native app core dump using gdb

#gdb <executable>  <coredump file>
#bt \\backtrace

Eclipse ndk gnu make build

Android gdb

How upstart works

Kernel command line init
Upstart exe configured

Upstart parses event.d rcS run levels scripts

Send start event to rcS file registerd for start event.

chain reaction happens after each runlevels and event generation.

Events sent using mini d-dbus implemented in the upstart

Android bluetoot connection

Sample application