Wednesday, February 16, 2011

some useful commands

little endian to big endian or vice-versa


temp = ( ( ((temp) & 0x000000FF) << 24) | (((temp) & 0x0000FF00) << 8 ) | (((temp) & 0x00FF0000)>>8) |(((temp)&0xFF000000)>>24));


Mount or unmount
mount -o remount rw /system 


Grep command
grep "" -rni --include=*.{java,} *


adb reboot download


logcat -f /dev/kmsg &