상세 컨텐츠

본문 제목

android ics bluetooth profile add

임베디드/android

by 무C 2013. 8. 16. 11:56

본문

android\frameworks\base\core\jni

android_server_BluetoothHidService.cpp <- 추가


android\frameworks\base\core\jni\Android.mk

android_server_BluetoothHidService.cpp \


android\frameworks\base\core\jni\android_server_BluetoothEventLoop.cpp


// bluetooth hid profile add moo

extern DBusHandlerResult hid_event_filter(DBusMessage *msg, JNIEnv *env);


// bluetooth hid profile add moo

hid_event_filter(msg, env);


android\frameworks\base\core\jni\AndroidRuntime.cpp


extern int register_android_server_BluetoothHidService(JNIEnv* env);


REG_JNI(register_android_server_BluetoothHidService),



android\frameworks\base\core\java\android\bluetooth

BluetoothHid.java <- 추가

IBluetoothHid.aidl


android\frameworks\base\core\java\android\bluetooth\BluetoothUuid.java

    public static final ParcelUuid[] RESERVED_UUIDS = {

        AudioSink, AudioSource, AdvAudioDist, HSP, Handsfree, AvrcpController, AvrcpTarget,

        ObexObjectPush, PANU, NAP, Hid};



android\frameworks\base\core\java\android\server

BluetoothHidService.java <- 추가


android\frameworks\base\core\java\android\server\BluetoothEventLoop.java

import android.os.SystemProperties;



android\frameworks\base\services\java\com\android\server\SystemServer.java

import android.server.BluetoothHidService;

        BluetoothHidService bluetoothHid = null;

bluetoothHid = new BluetoothHidService(context, bluetooth);

                ServiceManager.addService(BluetoothHidService.BLUETOOTH_HID_SERVICE,

                                          bluetoothHid);


    private synchronized void onBluetoothEnable() {

String devices = mBluetoothService.getProperty("Devices", true);    <-추가


                            new ParcelUuid[] {BluetoothUuid.Hid})) {



android\frameworks\base\Android.mk

core/java/android/bluetooth/IBluetoothHid.aidl \


참조 http://processors.wiki.ti.com/index.php/Android-Adding_Bluetooth_Profile

반응형

'임베디드 > android' 카테고리의 다른 글

우분투 12에 JDK 1.6 설치  (0) 2013.10.15
jdk 1.6 다운로드 주소  (0) 2013.07.12
repo 젤리빈 다운 주소..  (0) 2013.07.10

관련글 더보기

댓글 영역