본문 바로가기

root

rootfs rootfs 란? linux kernel 을 build 할때 가장 최 상의에 위치할 filesystem 의 폴더 경로를 ramdisk로 만들고 미리 package 화 한 binary /bin/dev/etc/lib/proc/root... 더보기
Android uid 위치 (linux에서의 /etc/passwd 대신) /android/system/core/include/private/android_filesystem_config.h 45#define AID_ROOT 0 /* traditional unix root user */ 46 47#define AID_SYSTEM 1000 /* system server */ 48 49#define AID_RADIO 1001 /* telephony subsystem, RIL */ 50#define AID_BLUETOOTH 1002 /* bluetooth subsystem */ 51#define AID_GRAPHICS 1003 /* graphics devices */ 52#define AID_INPUT 1004 /* input devices */ 53#define AID_AUDIO .. 더보기
root 계산 함수 만들기 원문 : http://blog.daum.net/_blog/BlogTypeView.do?blogid=0Xrxs&articleno=41 #include double SQRT(double, double);void main() { double input, x, result; while(1) { scanf("%lf", &input); scanf("%lf", &x); result = SQRT(input, x); printf("제곱근은? : %lf \n", result); } } double SQRT(double input, double x) { for(int i=0; i 더보기
adb shell 기본 접속 권한 root 에서 shell 로 변경 방법 원본 : http://stackoverflow.com/questions/15336215/how-to-restart-adb-from-root-to-user-mode ~$ adb shell id uid=2000(shell) gid=2000(shell) ~$ adb root restarting adbd as root ~$ adb shell id uid=0(root) gid=0(root) ~$ adb shell 'setprop service.adb.root 0; setprop ctl.restart adbd' ~$ adb shell id uid=2000(shell) gid=2000(shell) 더보기
Linux Network proxy setting 방법 Ubuntu 환경에서는 windows 와 다르게 proxy setting 을 여러곳에 각각 해 주어야 하는 번거로움이 있다.크게 3가지 인데 아래에 정리해본다 참고 : http://xmodulo.com/how-to-set-up-proxy-auto-config-on-ubuntu-desktop.html 그래픽 UI 의 setting menu 에서 아래와 같이 설정한다. you have created this PAC file, go to "System Settings" -> "Network" -> "Proxy Settings", and choose "Automatic" method in network proxy. Then type "file://.. 더보기