포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

hello android :)
안드로이드 서비스 bin/lib 제작의 예

#] su -
passwd: a

안드로이드 TOP 디렉토리로 이동
#] cd /root/origen_dual-ics

1. 프로젝트 디렉토리 생성
#] mkdir -p external/helloandroid

2. 안드로이드 Makefile 작성
#] gedit external/helloandroid/Android.mk

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
helloandroid.c
LOCAL_MODULE := helloandroid
LOCAL_MODULE_TAGS := eng # lunch insingal_origen-eng
LOCAL_C_INCLUDES := frameworks/base/include \
system/core/include
#LOCAL_CFLAGS := -G
include $(BUILD_EXECUTABLE)


3. 프로젝트 소스 작성
#] gedit external/helloandroid/helloandroid.c

#include <stdio.h>

char * krrr_func(){
printf("Krrrrrrrrrrrr ..... :-) \n");
return "chlrbgh0";
}

int main()
{
printf("Hello, Android!!\n");
printf("Hello %s!!\n", krrr_func());
return 0;
}


4. 빌드 환경 설정 compile
-> 안드로이드 TOPDIR로 이동
#] cd /root/origen_dual-ics
#] source origen_envsetup.sh

#] cd external/helloandroid
#] mm

-> out/target/product/origen/system/bin/helloandroid 확인

5. 실행
안드로이드 TOP 디렉토리로 이동
#] cd /root/origen_dual-ics
#] adb remount
#] adb push ./out/target/product/origen/system/bin/helloandroid /system/bin/.
#] adb shell
#  helloandroid


List of Articles
번호 제목 글쓴이 날짜 조회 수sort
84 Android 2.3 GingerBread Multimedia Framework 분석 - 1 [26] 고도리 2011-05-23 56118
83 [안드로이드 책] Input관련 간단자료 및 PhoneWindowManager 연동 file [2] 고도리 2011-08-02 52496
82 [Android 분석 및 포팅] Binder의 동작원리 - #2 IPC/RPC file 고도리 2011-06-30 40886
81 Android Initialization Process 최종환 2009-04-09 24638
80 OpenGL ES와 Android [3] 이제현 2009-04-18 22839
79 [참고] Android wifi howto - 아직 테스트는 다 못했습니다. file [10] 고도리 2009-09-22 21723
78 Android용 root filesystem으로 cramfs 구성 할 때의 주의사항 [7] 김영문 2009-04-09 21375
77 Android에서의 Linux Network 환경 설정 방법 [1] 김재훈 2009-04-21 20515
76 S3C6410 target으로의 Android porting에 대하여(1) [3] 고현철 2009-04-23 20133
75 [번역] Android Camera Framework 번역 file [7] 고도리 2009-09-10 19665
74 Android make옵션 [3] 2009-07-16 19464
73 Android 2.x AudioFlinger와 HAL의 연결 구조 분석 [2] JhoonKim 2010-04-08 19343
72 Android Debug Bridge(ADB) 사용 가이드 김재훈 2009-04-09 18864
71 Android audioflinger 분석자료 입니다. file [11] 고현철 2009-07-30 18819
70 android를 6410에 포팅하면서... [7] 전병환 2009-04-10 18227
69 PV와 Android [5] 이제현 2009-04-19 18163
68 [번역] Android Opencore Multimedia Framework 번역본 file [7] 고도리 2009-08-25 17636
67 Android 윈도우에서 git로 소스 받기.. [3] 2009-07-14 17021
66 Android 부팅 및 초기화 절차 김재훈 2009-04-09 17000
65 Android OpenCore 모임추진 ? [8] 장석원 2009-08-07 16001

사용자 로그인