포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 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

Android 2.3 GingerBread Multimedia Framework 분석 - 1 [26]

[안드로이드 책] Input관련 간단자료 및 PhoneWindowManager 연동 file [2]

[Android 분석 및 포팅] Binder의 동작원리 - #2 IPC/RPC file

Android Initialization Process

OpenGL ES와 Android [3]

[참고] Android wifi howto - 아직 테스트는 다 못했습니다. file [10]

Android용 root filesystem으로 cramfs 구성 할 때의 주의사항 [7]

Android에서의 Linux Network 환경 설정 방법 [1]

S3C6410 target으로의 Android porting에 대하여(1) [3]

[번역] Android Camera Framework 번역 file [7]

Android make옵션 [3]

  • 2009-07-16
  • 조회 수 19464

Android 2.x AudioFlinger와 HAL의 연결 구조 분석 [2]

Android Debug Bridge(ADB) 사용 가이드

Android audioflinger 분석자료 입니다. file [11]

android를 6410에 포팅하면서... [7]

PV와 Android [5]

[번역] Android Opencore Multimedia Framework 번역본 file [7]

Android 윈도우에서 git로 소스 받기.. [3]

  • 2009-07-14
  • 조회 수 17021

Android 부팅 및 초기화 절차

Android OpenCore 모임추진 ? [8]

사용자 로그인