Tuesday, September 6, 2016

Android OS vs. Android System

Android OS is based on Linux Kernel. It is low level kernel.
Android System is based on Android Platform. It is high level System.


Android System Arcitecture

+- Application Framework
+- Binder IPC Proxies
+- Android System Services (Media Server, System Server)
+- HAL
+- Linux Kernel

Android System controlls hardware with HAL interface. And HAL interface conncted with Linux Kernel. That is Android OS is Linux Kernel (low level kernel), Android System is Android platform.

1. http://forum.xda-developers.com/showpost.php?p=10922010&postcount=3
2. http://android.stackexchange.com/questions/11985/what-is-the-difference-between-the-android-os-and-android-system
3. https://source.android.com/devices/

Wednesday, November 18, 2015

In gvim, how can I set or change font size and type?

If you use vim, copy .vimrc to .gvimrc
1. cp .vimrc .gvimrc
2. open .gvimrc
3. add
 set fgn=Monospace\ Regular\ 12

After executing gvim, you can find changed font type and size.

http://www.troubleshooters.com/linux/vifont.htm

Friday, August 7, 2015

How to capture TCP dump in iPhone?

1. Need a Mac PC.
2. Install Xcode in the Mac
 - check UDID
 - execute rvictl command
3. Run Xcode > Window > Devices
 iPhone > Identifier
4. Run Terminal
 $ rvictl -s

 # start capturing TCP dump
 $ sudo tcpdump -i rvi0 -w trace.pcap

 # stop capturing TCP dump
 $ rvictl -x

* Reference
https://developer.apple.com/library/mac/qa/qa1176/_index.html
http://useyourloaf.com/blog/2012/02/07/remote-packet-capture-for-ios-devices.html

Tuesday, July 21, 2015

Android sleep

1. Wake up
write on /sys/power/state
2. Sleep
write mem /sys/power/state

Why mem?
I think mem means that suspend to RAM (memory).

From the Linux Document
https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-power
and https://www.kernel.org/doc/Documentation/power/states.txt