포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 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] mouse right button을 back key 처럼 동작시키는 방법 [1]

[android] hello android application 작성법

DRM(Digital Rights Management) on Android file [1]

[자료] Android build system(안드로이드 빌드 시스템) for ICS file [7]

[추가 업데이트]안드로이드 플랫폼 공부를 시작할 수 있는 실습형 ... [17]

[펌] Android Device driver 정리 - 슬로우부트님 자료 file [3]

[펌] Android Device Driver 정리 문서 및 Stagefright 개념 ... file [5]

odroid7에서 KGDB를 이용한 커널 디버깅 방법 [6]

android boot시 shell script 실행시키기(혹은 binary) [1]

Android 2.3 멀티미디어(Multimedia) framework 구조자료 file [12]

Android Gingerbread Multimedia Framework 분석 - 1 file [7]

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

[안드로이드 포팅 책] 1쇄 binder관련 그림 교체와 수정사항 file

[안드로이드 분석및포팅 교안] 1장 안드로이드 개요 및 구조 file [2]

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

[Android 분석 및 포팅] Binder의 동작원리 - #1 servicemanage... file [7]

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

[안드로이드] screen power save로 들어가는거 막는 부분 [2]

CodeViser 활용 aESOP-C100 보드 Android 디버깅 가이드 file

  • pottery
  • 2010-09-16
  • 조회 수 12840

Android 2.1 source tree 설명 file [20]

사용자 로그인