hello.c

#include <stdio.h>


int main(void)

{

printf("Hello, world\n");

return 0;

}







파일형태 보기




adb devices  명령어로 장치확인


adb shell 으로 원격으로 장치연결


exit로 원격연결 해제


adb push hello_arm /data/local/tmp        //리눅스에있는 파일 adb push를 이용해 전송


adb shell



전송한 파일을 위와 같이 확인할수있다.







파일의 용량이 커진것을 확인할수있으며 아까와는 다르게 

장치와 연결된 터미널에서 실행되는것을 볼수있다.









Posted by 차희빈

차희빈

달력