Friday, December 1, 2017

Grep searching

If you want to search some specific word on specific file
grep -RHns "whatever you wanna search" . --include="file name"

Monday, October 2, 2017

adb screen Capture

adb shell screencap -p /sdcard/screen.png

Android Application from ADB


how to start apk from ADB
adb shell am start -n com.package.name/com.package.name.ActivityName 

and when you don't know about Activity Name
aapt d xmltree <path to apk> AndroidManifest.xml

or.. simply script

create a file named "adb-run.sh" with these 3 lines:

pkg=$(aapt dump badging $1|awk -F" " '/package/ {print $2}'|awk -F"'" '/name=/ {print $2}')
act=$(aapt dump badging $1|awk -F" " '/launchable-activity/ {print $2}'|awk -F"'" '/name=/ {print $2}')
adb shell am start -n $pkg/$act

Friday, June 9, 2017

how to debug with source file

addr2line -e source_file address_where_we_got_error

ex:
addr2line -e out/target/product/gordon_peak/symbols/vendor/lib64/egl/libGLES_intel9.so 00000000002fb631


Tuesday, June 6, 2017

git format patch

git format patch to take git patch set

git format-patch HEAD~#number of patches you want to create patch files

git format-patch -1 #specific commit id

Thursday, May 25, 2017

커널 프로세서

 printk("The process is \"%s\" (pid %i)\n",
  current->comm, current->pid);

Friday, February 10, 2017

baby monitoring Android App

희원이를 위해서 안드로이드 어플을 하나 만들 생각..

Baby Monitor 하는 어플인데
써버 - 윈도우 (Surface 3)
클라이언트 - 안드로이드 (Nexus 5) 쪽에서 비디오와 사운드를 리얼 타임으로
써버로 보내고 그걸 써버에서 플래이 하는 방식 (WIFI 연결 Both)

만드는 이유 -
일단 현존 하는 안드로이드 베이비 모니터 어플은 안드로이드 - 안드로이드
아니면 아이폰 - 안드로이드 뿐
안드로이드 윈도우는 없음..
안드로이드 - 안드로이드 경우도 리얼 타임 스트리밍은 돈을 받음..

일단 기한은 12일... 희원이 100일 되기 전까지..
양방향 통신이 아니기에 일단 그리 어렵진 않을거 같은데

긋럭 ~~!