d9414ffb28
The approach here is to used bdaddr_read.c to read the MAC address (it's in a different format than ro.bt.bdaddr_path accepts) at /efs/imei/bt.txt and write it to /data/bdaddr and set ro.bt.bdaddr_path there. This approach was used with device/lge/thunderg and bdaddr_read.c was adapted from there.
29 lines
839 B
Makefile
29 lines
839 B
Makefile
# Copyright (C) 2010 Ricardo Cerqueira
|
|
# Copyright (C) 2011 Pawit Pornkitprasan
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
|
|
|
LOCAL_SRC_FILES := bdaddr_read.c
|
|
|
|
LOCAL_SHARED_LIBRARIES := libcutils
|
|
|
|
LOCAL_MODULE := bdaddr_read
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|