├── Android.mk ├── AndroidProducts.mk ├── BoardConfig.mk ├── CleanSpec.mk ├── WCNSS_cfg.dat ├── WCNSS_qcom_cfg.ini ├── WCNSS_qcom_wlan_nv.bin ├── aosp_mako.mk ├── apns-full-conf.xml ├── apq8064-tabla-snd-card_Button_Jack.kcm ├── apq8064-tabla-snd-card_Button_Jack.kl ├── audio_effects.conf ├── audio_policy.conf ├── bdAddrLoader ├── Android.mk ├── NOTICE └── addrloader.c ├── bluetooth └── bdroid_buildcfg.h ├── board-info.txt ├── camera ├── Android.mk ├── CleanSpec.mk ├── MODULE_LICENSE_BSD ├── Makefile.am ├── QCamera │ ├── Android.mk │ ├── HAL │ │ ├── Android.mk │ │ ├── core │ │ │ ├── Android.mk │ │ │ ├── inc │ │ │ │ ├── QCameraHAL.h │ │ │ │ ├── QCameraHWI.h │ │ │ │ ├── QCameraHWI_Mem.h │ │ │ │ └── QCameraStream.h │ │ │ └── src │ │ │ │ ├── QCameraHAL.cpp │ │ │ │ ├── QCameraHWI.cpp │ │ │ │ ├── QCameraHWI_Mem.cpp │ │ │ │ ├── QCameraHWI_Parm.cpp │ │ │ │ ├── QCameraHWI_Preview.cpp │ │ │ │ ├── QCameraHWI_Record.cpp │ │ │ │ ├── QCameraHWI_Still.cpp │ │ │ │ └── QCameraStream.cpp │ │ ├── test │ │ │ └── Android.mk │ │ └── wrapper │ │ │ ├── QualcommCamera.cpp │ │ │ └── QualcommCamera.h │ └── stack │ │ ├── Android.mk │ │ ├── common │ │ └── cam_list.h │ │ ├── mm-camera-interface │ │ ├── Android.mk │ │ ├── inc │ │ │ ├── mm_camera.h │ │ │ ├── mm_camera_dbg.h │ │ │ ├── mm_camera_interface.h │ │ │ └── mm_camera_sock.h │ │ └── src │ │ │ ├── mm_camera.c │ │ │ ├── mm_camera_channel.c │ │ │ ├── mm_camera_data.c │ │ │ ├── mm_camera_helper.c │ │ │ ├── mm_camera_interface.c │ │ │ ├── mm_camera_sock.c │ │ │ ├── mm_camera_stream.c │ │ │ └── mm_camera_thread.c │ │ ├── mm-camera-test │ │ ├── Android.mk │ │ ├── inc │ │ │ ├── mm_qcamera_app.h │ │ │ ├── mm_qcamera_display_dimensions.h │ │ │ ├── mm_qcamera_main_menu.h │ │ │ └── mm_qcamera_unit_test.h │ │ └── src │ │ │ ├── mm_qcamera_app.c │ │ │ ├── mm_qcamera_display.c │ │ │ ├── mm_qcamera_dual_test.c │ │ │ ├── mm_qcamera_main_menu.c │ │ │ ├── mm_qcamera_preview.c │ │ │ ├── mm_qcamera_rdi.c │ │ │ ├── mm_qcamera_snapshot.c │ │ │ ├── mm_qcamera_unit_test.c │ │ │ └── mm_qcamera_video.c │ │ └── mm-jpeg-interface │ │ ├── Android.mk │ │ ├── inc │ │ ├── mm_jpeg.h │ │ ├── mm_jpeg_dbg.h │ │ └── mm_jpeg_interface.h │ │ └── src │ │ ├── mm_jpeg.c │ │ ├── mm_jpeg_interface.c │ │ └── mm_jpeg_queue.c ├── QCameraHAL.cpp ├── QCameraHAL.h ├── QCameraHWI.cpp ├── QCameraHWI.h ├── QCameraHWI_Display.cpp ├── QCameraHWI_Display.h ├── QCameraHWI_Mem.cpp ├── QCameraHWI_Mem.h ├── QCameraHWI_Parm.cpp ├── QCameraHWI_Preview.cpp ├── QCameraHWI_Preview_7x27A.cpp ├── QCameraHWI_Record.cpp ├── QCameraHWI_Record_7x27A.cpp ├── QCameraHWI_Still.cpp ├── QCameraParameters.cpp ├── QCameraParameters.h ├── QCameraStream.cpp ├── QCameraStream.h ├── QCamera_Intf.h ├── QualcommCamera.cpp ├── QualcommCamera.h ├── QualcommCamera2.cpp ├── QualcommCamera2.h ├── QualcommCameraHardware.cpp ├── QualcommCameraHardware.h ├── configure.ac ├── hdr │ └── include │ │ ├── morpho_api.h │ │ ├── morpho_easy_hdr.h │ │ ├── morpho_easy_hdr_ext.h │ │ ├── morpho_error.h │ │ ├── morpho_get_image_size.h │ │ ├── morpho_hdr_checker.h │ │ ├── morpho_image_data.h │ │ ├── morpho_image_data_ex.h │ │ ├── morpho_motion_data.h │ │ ├── morpho_noise_reduction.h │ │ ├── morpho_noise_reduction_ext.h │ │ └── morpho_rect_int.h ├── inc │ ├── omx_debug.h │ ├── omx_jpeg_common.h │ └── omx_jpeg_ext.h └── mm-camera-interface │ ├── Android.mk │ ├── mm_camera.c │ ├── mm_camera.h │ ├── mm_camera_channel.c │ ├── mm_camera_dbg.h │ ├── mm_camera_helper.c │ ├── mm_camera_interface2.c │ ├── mm_camera_interface2.h │ ├── mm_camera_notify.c │ ├── mm_camera_poll_thread.c │ ├── mm_camera_sock.c │ ├── mm_camera_sock.h │ ├── mm_camera_stream.c │ ├── mm_jpeg_encoder.c │ ├── mm_jpeg_encoder.h │ ├── mm_omx_jpeg_encoder.c │ └── mm_omx_jpeg_encoder.h ├── charger_touch ├── Android.mk ├── NOTICE └── charger_touch.c ├── conn_init ├── Android.mk ├── NOTICE ├── conn_init.c ├── wfc_util_common.c ├── wfc_util_common.h ├── wfc_util_fctrl.c ├── wfc_util_fctrl.h ├── wfc_util_log.h ├── wfc_util_main.c ├── wfc_util_qcom.c └── wfc_util_qcom.h ├── device.mk ├── dumpstate ├── Android.mk ├── NOTICE └── dumpstate.c ├── egl.cfg ├── factory-images └── generate-factory-images-package.sh ├── fstab.mako ├── full_mako.mk ├── gps.conf ├── hs_detect.kcm ├── hs_detect.kl ├── init.mako.bt.sh ├── init.mako.rc ├── init.mako.usb.rc ├── init.mako.wifi.sh ├── kernel ├── keypad_8064.kcm ├── keypad_8064.kl ├── liblight ├── Android.mk ├── NOTICE └── lights.c ├── media_codecs.xml ├── media_profiles.xml ├── mixer_paths.xml ├── nfc └── libnfc-brcm.conf ├── omni.dependencies ├── omni_mako.mk ├── overlay ├── frameworks │ └── base │ │ ├── core │ │ └── res │ │ │ └── res │ │ │ ├── values-af │ │ │ └── config.xml │ │ │ ├── values-am │ │ │ └── config.xml │ │ │ ├── values-ar │ │ │ └── config.xml │ │ │ ├── values-az-rAZ │ │ │ └── config.xml │ │ │ ├── values-bg │ │ │ └── config.xml │ │ │ ├── values-bn-rBD │ │ │ └── config.xml │ │ │ ├── values-ca │ │ │ └── config.xml │ │ │ ├── values-cs │ │ │ └── config.xml │ │ │ ├── values-da │ │ │ └── config.xml │ │ │ ├── values-de │ │ │ └── config.xml │ │ │ ├── values-el │ │ │ └── config.xml │ │ │ ├── values-en-rGB │ │ │ └── config.xml │ │ │ ├── values-en-rIN │ │ │ └── config.xml │ │ │ ├── values-es-rUS │ │ │ └── config.xml │ │ │ ├── values-es │ │ │ └── config.xml │ │ │ ├── values-et-rEE │ │ │ └── config.xml │ │ │ ├── values-eu-rES │ │ │ └── config.xml │ │ │ ├── values-fa │ │ │ └── config.xml │ │ │ ├── values-fi │ │ │ └── config.xml │ │ │ ├── values-fr-rCA │ │ │ └── config.xml │ │ │ ├── values-fr │ │ │ └── config.xml │ │ │ ├── values-gl-rES │ │ │ └── config.xml │ │ │ ├── values-hi │ │ │ └── config.xml │ │ │ ├── values-hr │ │ │ └── config.xml │ │ │ ├── values-hu │ │ │ └── config.xml │ │ │ ├── values-hy-rAM │ │ │ └── config.xml │ │ │ ├── values-in │ │ │ └── config.xml │ │ │ ├── values-is-rIS │ │ │ └── config.xml │ │ │ ├── values-it │ │ │ └── config.xml │ │ │ ├── values-iw │ │ │ └── config.xml │ │ │ ├── values-ja │ │ │ └── config.xml │ │ │ ├── values-ka-rGE │ │ │ └── config.xml │ │ │ ├── values-kk-rKZ │ │ │ └── config.xml │ │ │ ├── values-km-rKH │ │ │ └── config.xml │ │ │ ├── values-kn-rIN │ │ │ └── config.xml │ │ │ ├── values-ko │ │ │ └── config.xml │ │ │ ├── values-ky-rKG │ │ │ └── config.xml │ │ │ ├── values-lo-rLA │ │ │ └── config.xml │ │ │ ├── values-lt │ │ │ └── config.xml │ │ │ ├── values-lv │ │ │ └── config.xml │ │ │ ├── values-mcc530-mnc05 │ │ │ └── config.xml │ │ │ ├── values-mk-rMK │ │ │ └── config.xml │ │ │ ├── values-ml-rIN │ │ │ └── config.xml │ │ │ ├── values-mn-rMN │ │ │ └── config.xml │ │ │ ├── values-mr-rIN │ │ │ └── config.xml │ │ │ ├── values-ms-rMY │ │ │ └── config.xml │ │ │ ├── values-my-rMM │ │ │ └── config.xml │ │ │ ├── values-nb │ │ │ └── config.xml │ │ │ ├── values-ne-rNP │ │ │ └── config.xml │ │ │ ├── values-nl │ │ │ └── config.xml │ │ │ ├── values-pl │ │ │ └── config.xml │ │ │ ├── values-pt-rPT │ │ │ └── config.xml │ │ │ ├── values-pt │ │ │ └── config.xml │ │ │ ├── values-ro │ │ │ └── config.xml │ │ │ ├── values-ru │ │ │ └── config.xml │ │ │ ├── values-si-rLK │ │ │ └── config.xml │ │ │ ├── values-sk │ │ │ └── config.xml │ │ │ ├── values-sl │ │ │ └── config.xml │ │ │ ├── values-sr │ │ │ └── config.xml │ │ │ ├── values-sv │ │ │ └── config.xml │ │ │ ├── values-sw │ │ │ └── config.xml │ │ │ ├── values-ta-rIN │ │ │ └── config.xml │ │ │ ├── values-te-rIN │ │ │ └── config.xml │ │ │ ├── values-th │ │ │ └── config.xml │ │ │ ├── values-tl │ │ │ └── config.xml │ │ │ ├── values-tr │ │ │ └── config.xml │ │ │ ├── values-uk │ │ │ └── config.xml │ │ │ ├── values-ur-rPK │ │ │ └── config.xml │ │ │ ├── values-uz-rUZ │ │ │ └── config.xml │ │ │ ├── values-vi │ │ │ └── config.xml │ │ │ ├── values-zh-rCN │ │ │ └── config.xml │ │ │ ├── values-zh-rHK │ │ │ └── config.xml │ │ │ ├── values-zh-rTW │ │ │ └── config.xml │ │ │ ├── values-zu │ │ │ └── config.xml │ │ │ ├── values │ │ │ └── config.xml │ │ │ └── xml │ │ │ ├── power_profile.xml │ │ │ └── storage_list.xml │ │ └── packages │ │ ├── SettingsProvider │ │ └── res │ │ │ └── values │ │ │ └── defaults.xml │ │ └── SystemUI │ │ └── res │ │ └── values │ │ └── config.xml └── packages │ ├── apps │ ├── Mms │ │ └── res │ │ │ ├── xml-mcc302-mnc220 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc270 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc290 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc370 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc490 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc500 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc610 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc302-mnc720 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc026 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc090 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc170 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc260 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc380 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc410 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc490 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc560 │ │ │ └── mms_config.xml │ │ │ ├── xml-mcc310-mnc680 │ │ │ └── mms_config.xml │ │ │ └── xml │ │ │ └── mms_config.xml │ ├── OmniGears │ │ └── res │ │ │ └── values │ │ │ └── config.xml │ ├── OmniTorch │ │ └── res │ │ │ └── values │ │ │ └── config.xml │ ├── Phone │ └── Settings │ │ └── res │ │ └── values │ │ └── bools.xml │ └── services │ ├── Telecomm │ └── res │ │ └── values │ │ └── config.xml │ └── Telephony │ └── res │ └── values │ └── config.xml ├── p2p_supplicant_overlay.conf ├── pmic8xxx_pwrkey.kcm ├── pmic8xxx_pwrkey.kl ├── power ├── Android.mk └── power_mako.c ├── proprietary-blobs.txt ├── recovery └── root │ ├── sbin │ └── libQSEEComAPI.so │ └── vendor │ ├── firmware │ └── keymaster │ │ ├── keymaster.b00 │ │ ├── keymaster.b01 │ │ ├── keymaster.b02 │ │ ├── keymaster.b03 │ │ └── keymaster.mdt │ └── lib │ └── hw │ └── keystore.msm8960.so ├── releasetools.py ├── self-extractors ├── Android.mk ├── PART1 ├── PART2 ├── PART3 ├── PROLOGUE ├── broadcom │ ├── COPYRIGHT │ ├── LICENSE │ └── staging │ │ ├── BoardConfigPartial.mk │ │ └── device-partial.mk ├── extract-lists.txt ├── files-by-owner.sh ├── generate-packages.sh ├── lge │ ├── COPYRIGHT │ ├── LICENSE │ └── staging │ │ ├── BoardConfigPartial.mk │ │ └── device-partial.mk ├── qcom │ ├── COPYRIGHT │ ├── LICENSE │ └── staging │ │ ├── BoardConfigPartial.mk │ │ ├── device-partial.mk │ │ └── proprietary │ │ └── Android.mk └── root │ ├── BoardConfigVendor.mk │ └── device-vendor.mk ├── sepolicy ├── bluetooth_loader.te ├── bridge.te ├── camera.te ├── conn_init.te ├── device.te ├── domain.te ├── file.te ├── file_contexts ├── hostapd.te ├── kickstart.te ├── mediaserver.te ├── mpdecision.te ├── netmgrd.te ├── property.te ├── property_contexts ├── qmux.te ├── rild.te ├── rmt.te ├── sensors.te ├── surfaceflinger.te ├── system_server.te ├── te_macros ├── tee.te ├── thermald.te └── ueventd.te ├── thermald-mako.conf ├── touch_dev.idc ├── twrp.fstab ├── ueventd.mako.rc ├── vendor_owner_info.txt ├── vendorsetup.sh └── wpa_supplicant_overlay.conf /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # This contains the module build definitions for the hardware-specific 18 | # components for this device. 19 | # 20 | # As much as possible, those components should be built unconditionally, 21 | # with device-specific names to avoid collisions, to avoid device-specific 22 | # bitrot and build breakages. Building a component unconditionally does 23 | # *not* include it on all devices, so it is safe even with hardware-specific 24 | # components. 25 | 26 | ifneq ($(filter mako occam,$(TARGET_DEVICE)),) 27 | 28 | LOCAL_PATH := $(call my-dir) 29 | 30 | include $(CLEAR_VARS) 31 | LOCAL_MODULE := wpa_supplicant_overlay.conf 32 | LOCAL_MODULE_TAGS := optional 33 | LOCAL_MODULE_CLASS := ETC 34 | LOCAL_SRC_FILES := $(LOCAL_MODULE) 35 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi 36 | include $(BUILD_PREBUILT) 37 | 38 | include $(CLEAR_VARS) 39 | LOCAL_MODULE := p2p_supplicant_overlay.conf 40 | LOCAL_MODULE_TAGS := optional 41 | LOCAL_MODULE_CLASS := ETC 42 | LOCAL_SRC_FILES := $(LOCAL_MODULE) 43 | LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi 44 | include $(BUILD_PREBUILT) 45 | 46 | endif 47 | 48 | include $(call first-makefiles-under,$(LOCAL_PATH)) 49 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | PRODUCT_MAKEFILES := \ 18 | $(LOCAL_DIR)/aosp_mako.mk \ 19 | $(LOCAL_DIR)/omni_mako.mk 20 | -------------------------------------------------------------------------------- /WCNSS_cfg.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/WCNSS_cfg.dat -------------------------------------------------------------------------------- /WCNSS_qcom_wlan_nv.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/WCNSS_qcom_wlan_nv.bin -------------------------------------------------------------------------------- /aosp_mako.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2013 The Android Open-Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | $(call inherit-product, device/lge/mako/full_mako.mk) 17 | 18 | PRODUCT_NAME := aosp_mako 19 | -------------------------------------------------------------------------------- /apq8064-tabla-snd-card_Button_Jack.kcm: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | type SPECIAL_FUNCTION 16 | -------------------------------------------------------------------------------- /apq8064-tabla-snd-card_Button_Jack.kl: -------------------------------------------------------------------------------- 1 | key 256 HEADSETHOOK 2 | -------------------------------------------------------------------------------- /bdAddrLoader/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | ifneq ($(filter mako occam,$(TARGET_DEVICE)),) 18 | 19 | LOCAL_PATH:= $(call my-dir) 20 | 21 | include $(CLEAR_VARS) 22 | LOCAL_SRC_FILES := addrloader.c 23 | LOCAL_C_INCLUDES := \ 24 | $(LOCAL_PATH) \ 25 | $(TARGET_OUT_HEADERS)/common/inc 26 | LOCAL_SHARED_LIBRARIES := libcutils liblog 27 | LOCAL_MODULE_TAGS := optional 28 | LOCAL_MODULE_OWNER := lge 29 | LOCAL_MODULE := bdAddrLoader 30 | include $(BUILD_EXECUTABLE) 31 | 32 | endif 33 | -------------------------------------------------------------------------------- /bluetooth/bdroid_buildcfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef _BDROID_BUILDCFG_H 18 | #define _BDROID_BUILDCFG_H 19 | 20 | #define BTM_DEF_LOCAL_NAME "Nexus 4" 21 | #define BTA_DISABLE_DELAY 1000 /* in milliseconds */ 22 | #define BTA_HOST_INTERLEAVE_SEARCH TRUE 23 | #define BTA_SKIP_BLE_READ_REMOTE_FEAT TRUE 24 | #endif 25 | -------------------------------------------------------------------------------- /board-info.txt: -------------------------------------------------------------------------------- 1 | require board=mako 2 | -------------------------------------------------------------------------------- /camera/CleanSpec.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2007 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | # If you don't need to do a full clean build but would like to touch 17 | # a file or delete some intermediate files, add a clean step to the end 18 | # of the list. These steps will only be run once, if they haven't been 19 | # run before. 20 | # 21 | # E.g.: 22 | # $(call add-clean-step, touch -c external/sqlite/sqlite3.h) 23 | # $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) 24 | # 25 | # Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with 26 | # files that are missing or have been moved. 27 | # 28 | # Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. 29 | # Use $(OUT_DIR) to refer to the "out" directory. 30 | # 31 | # If you need to re-do something that's already mentioned, just copy 32 | # the command and add it to the bottom of the list. E.g., if a change 33 | # that you made last week required touching a file and a change you 34 | # made today requires touching the same file, just copy the old 35 | # touch step and add it to the end of the list. 36 | # 37 | # ************************************************ 38 | # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST 39 | # ************************************************ 40 | 41 | # For example: 42 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) 43 | #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) 44 | #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) 45 | #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) 46 | 47 | $(call add-clean-step, find $(OUT_DIR) -name "camera.msm8960*" -print0 | xargs -0 rm -rf) 48 | -------------------------------------------------------------------------------- /camera/MODULE_LICENSE_BSD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/MODULE_LICENSE_BSD -------------------------------------------------------------------------------- /camera/Makefile.am: -------------------------------------------------------------------------------- 1 | ACLOCAL_AMFLAGS = -I m4 2 | 3 | #libcamera.so 4 | lib_LTLIBRARIES = libcamera.la 5 | 6 | libcamera_la_CFLAGS := $(DEBUG_CFLAGS) 7 | libcamera_la_CFLAGS += -DAMSS_VERSION=$(AMSS_VERSION) 8 | libcamera_la_CFLAGS += -DMSM_CAMERA_GCC 9 | libcamera_la_CFLAGS += -DLINUX_ENABLED 10 | libcamera_la_CFLAGS += -Dstrlcpy=g_strlcpy 11 | libcamera_la_CFLAGS += -fPIC 12 | 13 | LOCAL_CFLAGS:= -DDLOPEN_LIBMMCAMERA=1 14 | 15 | libcamera_la_CFLAGS += -DHW_ENCODE 16 | 17 | if MSM7X27A 18 | libcamera_la_CFLAGS+= -DNUM_PREVIEW_BUFFERS=6 19 | libcamera_la_CFLAGS+= -DVFE_7X27A 20 | else 21 | libcamera_la_CFLAGS+= -DNUM_PREVIEW_BUFFERS=4 22 | endif 23 | 24 | # To Choose neon/C routines for YV12 conversion 25 | libcamera_la_CFLAGS+= -DUSE_NEON_CONVERSION 26 | # Uncomment below line to enable smooth zoom 27 | #libcamera_la_CFLAGS+= -DCAMERA_SMOOTH_ZOOM 28 | 29 | libcamera_la_SOURCES := mm_camera.c 30 | libcamera_la_SOURCES += mm_camera_channel.c 31 | libcamera_la_SOURCES += mm_camera_helper.c 32 | libcamera_la_SOURCES += mm_camera_interface2.c 33 | libcamera_la_SOURCES += mm_camera_notify.c 34 | libcamera_la_SOURCES += mm_camera_poll_thread.c 35 | libcamera_la_SOURCES += mm_camera_sock.c 36 | libcamera_la_SOURCES += mm_camera_stream.c 37 | 38 | if BUILD_JPEG 39 | libcamera_la_SOURCES += mm_jpeg_encoder.c 40 | libcamera_la_SOURCES += mm_omx_jpeg_encoder.c 41 | endif 42 | 43 | if BUILD_UNIFIED_CODE 44 | if MSM8960 45 | libcamera_la_SOURCES += QCameraHAL.cpp 46 | libcamera_la_SOURCES += QCameraHWI_Parm.cpp 47 | libcamera_la_SOURCES += QCameraHWI.cpp 48 | libcamera_la_SOURCES += QCameraHWI_Preview.cpp 49 | libcamera_la_SOURCES += QCameraHWI_Record.cpp 50 | libcamera_la_SOURCES += QCameraHWI_Still.cpp 51 | libcamera_la_SOURCES += QCameraHWI_Mem.cpp 52 | libcamera_la_SOURCES += QCameraHWI_Display.cpp 53 | libcamera_la_SOURCES += QCameraStream.cpp 54 | libcamera_la_SOURCES += QualcommCamera2.cpp 55 | elif MSM7X27A 56 | libcamera_la_SOURCES += QCameraHAL.cpp 57 | libcamera_la_SOURCES += QCameraHWI_Parm.cpp 58 | libcamera_la_SOURCES += QCameraHWI.cpp 59 | libcamera_la_SOURCES += QCameraHWI_Preview_7x27A.cpp 60 | libcamera_la_SOURCES += QCameraHWI_Record_7x27A.cpp 61 | libcamera_la_SOURCES += QCameraHWI_Still.cpp 62 | libcamera_la_SOURCES += QCameraHWI_Mem.cpp 63 | libcamera_la_SOURCES += QCameraHWI_Display.cpp 64 | libcamera_la_SOURCES += QCameraStream.cpp 65 | libcamera_la_SOURCES += QualcommCamera2.cpp 66 | endif 67 | endif 68 | 69 | libcamera_la_LDFLAGS := $(DEBUG_LDFLAGS) 70 | libcamera_la_LDFLAGS += -shared 71 | libcamera_la_LIBADD = -ldl 72 | 73 | dirs := 74 | SUBDIRS = $(dirs) 75 | 76 | -------------------------------------------------------------------------------- /camera/QCamera/Android.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(TARGET_ARCH),arm) 2 | include $(call all-subdir-makefiles) 3 | endif 4 | -------------------------------------------------------------------------------- /camera/QCamera/HAL/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | #include $(LOCAL_PATH)/core/Android.mk 3 | #include $(LOCAL_PATH)/test/Android.mk 4 | -------------------------------------------------------------------------------- /camera/QCamera/HAL/core/inc/QCameraHAL.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2011 The Linux Foundation. All rights reserved. 3 | ** 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); 5 | ** you may not use this file except in compliance with the License. 6 | ** You may obtain a copy of the License at 7 | ** 8 | ** http://www.apache.org/licenses/LICENSE-2.0 9 | ** 10 | ** Unless required by applicable law or agreed to in writing, software 11 | ** distributed under the License is distributed on an "AS IS" BASIS, 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ** See the License for the specific language governing permissions and 14 | ** limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_HARDWARE_QCAMERA_HAL_H 18 | #define ANDROID_HARDWARE_QCAMERA_HAL_H 19 | 20 | 21 | #include "QCameraHWI.h" 22 | 23 | extern "C" { 24 | #include 25 | } 26 | namespace android { 27 | 28 | /* HAL should return NULL if it fails to open camera hardware. */ 29 | extern "C" void * 30 | QCameraHAL_openCameraHardware(int cameraId, int mode); 31 | extern "C" int HAL_getNumberOfCameras(); 32 | extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo); 33 | 34 | }; // namespace android 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /camera/QCamera/HAL/test/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /camera/QCamera/stack/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | include $(LOCAL_PATH)/mm-camera-interface/Android.mk 3 | include $(LOCAL_PATH)/mm-camera-test/Android.mk 4 | #include $(LOCAL_PATH)/mm-jpeg-interface/Android.mk 5 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-interface/Android.mk: -------------------------------------------------------------------------------- 1 | #ifeq ($(call is-board-platform,msm8960),true) 2 | OLD_LOCAL_PATH := $(LOCAL_PATH) 3 | LOCAL_PATH := $(call my-dir) 4 | USE_BIONIC_HEADER:=true 5 | 6 | include $(CLEAR_VARS) 7 | 8 | MM_CAM_FILES := \ 9 | src/mm_camera_interface.c \ 10 | src/mm_camera_stream.c \ 11 | src/mm_camera_channel.c \ 12 | src/mm_camera.c \ 13 | src/mm_camera_thread.c \ 14 | src/mm_camera_data.c \ 15 | src/mm_camera_sock.c \ 16 | src/mm_camera_helper.c 17 | 18 | LOCAL_CFLAGS += -D_ANDROID_ 19 | LOCAL_COPY_HEADERS_TO := mm-camera-interface_badger 20 | LOCAL_COPY_HEADERS := inc/mm_camera_interface.h 21 | 22 | LOCAL_C_INCLUDES := \ 23 | $(LOCAL_PATH)/inc \ 24 | $(LOCAL_PATH)/../common \ 25 | $(LOCAL_PATH)/../../../ 26 | 27 | ifneq ($(strip $(USE_BIONIC_HEADER)),true) 28 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 29 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media 30 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 31 | endif 32 | 33 | LOCAL_C_INCLUDES+= hardware/qcom/media/mm-core/inc 34 | LOCAL_CFLAGS += -include bionic/libc/include/sys/socket.h 35 | LOCAL_CFLAGS += -include bionic/libc/include/sys/un.h 36 | 37 | LOCAL_SRC_FILES := $(MM_CAM_FILES) 38 | 39 | LOCAL_MODULE := libmmcamera_interface 40 | LOCAL_PRELINK_MODULE := false 41 | LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 42 | LOCAL_MODULE_TAGS := optional 43 | 44 | include $(BUILD_SHARED_LIBRARY) 45 | 46 | LOCAL_PATH := $(OLD_LOCAL_PATH) 47 | #endif 48 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-interface/inc/mm_camera_interface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/QCamera/stack/mm-camera-interface/inc/mm_camera_interface.h -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-interface/inc/mm_camera_sock.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer in the documentation and/or other materials provided 12 | with the distribution. 13 | * Neither the name of The Linux Foundation nor the names of its 14 | contributors may be used to endorse or promote products derived 15 | from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 18 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 21 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #ifndef __MM_CAMERA_SOCKET_H__ 31 | #define __MM_CAMERA_SOCKET_H__ 32 | 33 | #include 34 | 35 | typedef enum { 36 | MM_CAMERA_SOCK_TYPE_UDP, 37 | MM_CAMERA_SOCK_TYPE_TCP, 38 | } mm_camera_sock_type_t; 39 | 40 | int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type); 41 | 42 | int mm_camera_socket_sendmsg( 43 | int fd, 44 | void *msg, 45 | uint32_t buf_size, 46 | int sendfd); 47 | 48 | int mm_camera_socket_recvmsg( 49 | int fd, 50 | void *msg, 51 | uint32_t buf_size, 52 | int *rcvdfd); 53 | 54 | void mm_camera_socket_close(int fd); 55 | 56 | #endif /*__MM_CAMERA_SOCKET_H__*/ 57 | 58 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-interface/src/mm_camera_interface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/QCamera/stack/mm-camera-interface/src/mm_camera_interface.c -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-test/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:=$(call my-dir) 2 | USE_BIONIC_HEADER:=true 3 | include $(CLEAR_VARS) 4 | 5 | ifeq ($(call is-board-platform,msm8960),true) 6 | LOCAL_CFLAGS:= \ 7 | -DAMSS_VERSION=$(AMSS_VERSION) \ 8 | $(mmcamera_debug_defines) \ 9 | $(mmcamera_debug_cflags) \ 10 | $(USE_SERVER_TREE) \ 11 | 12 | ifneq ($(strip $(USE_BIONIC_HEADER)),true) 13 | LOCAL_CFLAGS += -include $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/linux/ion.h 14 | endif 15 | 16 | ifeq ($(strip $(TARGET_USES_ION)),true) 17 | LOCAL_CFLAGS += -DUSE_ION 18 | endif 19 | 20 | LOCAL_CFLAGS += -D_ANDROID_ 21 | 22 | LOCAL_SRC_FILES:= \ 23 | src/mm_qcamera_main_menu.c \ 24 | src/mm_qcamera_display.c \ 25 | src/mm_qcamera_app.c \ 26 | src/mm_qcamera_snapshot.c \ 27 | src/mm_qcamera_video.c \ 28 | src/mm_qcamera_preview.c \ 29 | src/mm_qcamera_rdi.c \ 30 | src/mm_qcamera_unit_test.c \ 31 | src/mm_qcamera_dual_test.c 32 | 33 | LOCAL_C_INCLUDES:=$(LOCAL_PATH)/inc 34 | LOCAL_C_INCLUDES+= \ 35 | $(TARGET_OUT_INTERMEDIATES)/include/mm-camera-interface_badger \ 36 | $(LOCAL_PATH)/../mm-camera-interface/inc \ 37 | $(LOCAL_PATH)/../common \ 38 | $(LOCAL_PATH)/../../../ \ 39 | $(LOCAL_PATH)/../../../inc 40 | 41 | ifneq ($(strip $(USE_BIONIC_HEADER)),true) 42 | LOCAL_C_INCLUDES+= $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media 43 | LOCAL_C_INCLUDES+= $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 44 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 45 | endif 46 | 47 | ifeq ($(call is-board-platform,msm8960),true) 48 | LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_CP_MM_HEAP_ID 49 | else 50 | LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_CAMERA_HEAP_ID 51 | endif 52 | 53 | LOCAL_SHARED_LIBRARIES:= \ 54 | libcutils liblog libdl 55 | 56 | LOCAL_MODULE:= mm-qcamera-app-badger 57 | 58 | LOCAL_MODULE_TAGS := optional 59 | 60 | include $(BUILD_EXECUTABLE) 61 | endif 62 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-test/inc/mm_qcamera_display_dimensions.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer in the documentation and/or other materials provided 12 | with the distribution. 13 | * Neither the name of The Linux Foundation nor the names of its 14 | contributors may be used to endorse or promote products derived 15 | from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 18 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 21 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | 31 | #ifndef __MM_QCAMERA_DISPLAY_DIMENSIONS__ 32 | #define __MM_QCAMERA_DISPLAY_DIMENSIONS__ 33 | 34 | #define PREVIEW_WIDTH 800 35 | #define PREVIEW_HEIGHT 480 36 | #define DISPLAY_WIDTH 800 37 | #define DISPLAY_HEIGHT 480 38 | #define THUMBNAIL_WIDTH 192 39 | #define THUMBNAIL_HEIGHT 144 40 | #define PICTURE_WIDTH 1280 41 | #define PICTURE_HEIGHT 960 42 | 43 | #endif /* __MM_QCAMERA_DISPLAY_DIMENSIONS__ */ 44 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-camera-test/inc/mm_qcamera_unit_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer in the documentation and/or other materials provided 12 | with the distribution. 13 | * Neither the name of The Linux Foundation nor the names of its 14 | contributors may be used to endorse or promote products derived 15 | from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 18 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 21 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #ifndef __MM_QCAMERA_APP_UNIT_TEST_H__ 31 | #define __MM_QCAMERA_APP_UNIT_TEST_H__ 32 | 33 | #include "mm_qcamera_main_menu.h" 34 | #include "mm_camera_interface.h" 35 | #include "mm_qcamera_app.h" 36 | 37 | typedef int (*mm_app_test_t) (mm_camera_app_t *cam_apps); 38 | typedef struct { 39 | mm_app_test_t f; 40 | int r; 41 | } mm_app_tc_t; 42 | 43 | #endif 44 | 45 | /* __MM_QCAMERA_APP_UNIT_TEST_H__ */ 46 | -------------------------------------------------------------------------------- /camera/QCamera/stack/mm-jpeg-interface/Android.mk: -------------------------------------------------------------------------------- 1 | OLD_LOCAL_PATH := $(LOCAL_PATH) 2 | LOCAL_PATH := $(call my-dir) 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_CFLAGS+= -D_ANDROID_ 6 | LOCAL_COPY_HEADERS_TO := mm-camera-interface 7 | LOCAL_COPY_HEADERS = inc/mm_jpeg_interface.h 8 | 9 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include 10 | LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include/media 11 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 12 | 13 | LOCAL_C_INCLUDES += \ 14 | $(LOCAL_PATH)/inc \ 15 | $(LOCAL_PATH)/../common \ 16 | $(LOCAL_PATH)/../../../ \ 17 | $(LOCAL_PATH)/../../../inc \ 18 | 19 | LOCAL_SRC_FILES := \ 20 | src/mm_jpeg_queue.c \ 21 | src/mm_jpeg.c \ 22 | src/mm_jpeg_interface.c 23 | 24 | LOCAL_MODULE := libmmjpeg_interface 25 | LOCAL_PRELINK_MODULE := false 26 | LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 27 | LOCAL_MODULE_TAGS := optional 28 | 29 | include $(BUILD_SHARED_LIBRARY) 30 | 31 | LOCAL_PATH := $(OLD_LOCAL_PATH) 32 | -------------------------------------------------------------------------------- /camera/QCameraHAL.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2011 The Linux Foundation. All rights reserved. 3 | ** 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); 5 | ** you may not use this file except in compliance with the License. 6 | ** You may obtain a copy of the License at 7 | ** 8 | ** http://www.apache.org/licenses/LICENSE-2.0 9 | ** 10 | ** Unless required by applicable law or agreed to in writing, software 11 | ** distributed under the License is distributed on an "AS IS" BASIS, 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ** See the License for the specific language governing permissions and 14 | ** limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_HARDWARE_QCAMERA_HAL_H 18 | #define ANDROID_HARDWARE_QCAMERA_HAL_H 19 | 20 | 21 | #include "QCameraHWI.h" 22 | 23 | extern "C" { 24 | #include 25 | } 26 | namespace android { 27 | 28 | /* HAL should return NULL if it fails to open camera hardware. */ 29 | extern "C" void * 30 | QCameraHAL_openCameraHardware(int cameraId, int mode); 31 | extern "C" int HAL_getNumberOfCameras(); 32 | extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo); 33 | 34 | }; // namespace android 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /camera/QCameraHWI_Display.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2011 The Linux Foundation. All rights reserved. 3 | ** 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); 5 | ** you may not use this file except in compliance with the License. 6 | ** You may obtain a copy of the License at 7 | ** 8 | ** http://www.apache.org/licenses/LICENSE-2.0 9 | ** 10 | ** Unless required by applicable law or agreed to in writing, software 11 | ** distributed under the License is distributed on an "AS IS" BASIS, 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ** See the License for the specific language governing permissions and 14 | ** limitations under the License. 15 | */ 16 | 17 | /*#error uncomment this for compiler test!*/ 18 | 19 | #define ALOG_NDEBUG 0 20 | #define ALOG_NIDEBUG 0 21 | #define LOG_TAG "QCameraHWI_Display" 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | #include "QCameraHAL.h" 28 | #include "QCameraHWI.h" 29 | #include "QCameraHWI_Display.h" 30 | 31 | 32 | namespace android { 33 | 34 | int QCameraDisplay_Overlay::Display_prepare_buffers() 35 | { 36 | return 0; 37 | } 38 | 39 | 40 | int QCameraDisplay_Overlay::Display_set_crop() 41 | { 42 | return 0; 43 | } 44 | 45 | 46 | int QCameraDisplay_Overlay::Display_set_geometry() 47 | { 48 | return 0; 49 | } 50 | 51 | 52 | void QCameraDisplay_Overlay::Display_enqueue() 53 | { 54 | return ; 55 | } 56 | 57 | 58 | 59 | void QCameraDisplay_Overlay::Display_dequeue() 60 | { 61 | return ; 62 | } 63 | 64 | 65 | void QCameraDisplay_Overlay::Display_release_buffers() 66 | { 67 | return ; 68 | } 69 | 70 | QCameraDisplay::~QCameraDisplay(){} 71 | 72 | QCameraDisplay_Overlay::~QCameraDisplay_Overlay() 73 | { 74 | return ; 75 | } 76 | }; // namespace android 77 | -------------------------------------------------------------------------------- /camera/QCameraHWI_Display.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Copyright (c) 2011, The Linux Foundation. All rights reserved. 3 | ** 4 | ** Licensed under the Apache License, Version 2.0 (the "License"); 5 | ** you may not use this file except in compliance with the License. 6 | ** You may obtain a copy of the License at 7 | ** 8 | ** http://www.apache.org/licenses/LICENSE-2.0 9 | ** 10 | ** Unless required by applicable law or agreed to in writing, software 11 | ** distributed under the License is distributed on an "AS IS" BASIS, 12 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | ** See the License for the specific language governing permissions and 14 | ** limitations under the License. 15 | */ 16 | 17 | #ifndef ANDROID_HARDWARE_QCAMERAHWI_DISPLAY_H 18 | #define ANDROID_HARDWARE_QCAMERAHWI_DISPLAY_H 19 | 20 | 21 | #include 22 | 23 | #include 24 | #include 25 | #include 26 | #include "QCamera_Intf.h" 27 | extern "C" { 28 | #include 29 | } 30 | 31 | namespace android { 32 | 33 | /*=============================== 34 | Base Display Class 35 | ================================*/ 36 | 37 | class QCameraDisplay { 38 | 39 | public: 40 | virtual int Display_prepare_buffers() = 0; 41 | virtual int Display_set_crop( ) = 0; 42 | virtual int Display_set_geometry( ) =0; 43 | virtual void Display_enqueue( ) = 0; 44 | virtual void Display_dequeue( ) = 0; 45 | virtual void Display_release_buffers( ) =0; 46 | virtual ~QCameraDisplay( ); 47 | }; 48 | 49 | /*================================ 50 | Overlay Derivative 51 | ==================================*/ 52 | class QCameraDisplay_Overlay: public QCameraDisplay { 53 | 54 | public: 55 | int Display_prepare_buffers(); 56 | int Display_set_crop( ); 57 | int Display_set_geometry( ); 58 | void Display_enqueue( ); 59 | void Display_dequeue( ); 60 | void Display_release_buffers( ); 61 | virtual ~QCameraDisplay_Overlay( ); 62 | 63 | 64 | }; 65 | 66 | 67 | }; // namespace android 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /camera/configure.ac: -------------------------------------------------------------------------------- 1 | AC_PREREQ(2.61) 2 | 3 | AC_INIT([camera-hal],1.0.0) 4 | 5 | AM_INIT_AUTOMAKE([-Werror -Wall gnu foreign]) 6 | 7 | AM_MAINTAINER_MODE 8 | 9 | AC_CONFIG_HEADER([configure.h]) 10 | AC_CONFIG_MACRO_DIR([m4]) 11 | 12 | # Checks for programs. 13 | AM_PROG_AS 14 | AC_PROG_CC 15 | AC_PROG_CXX 16 | AM_PROG_CC_C_O 17 | AC_PROG_LIBTOOL 18 | AC_PROG_AWK 19 | AC_PROG_CPP 20 | AC_PROG_INSTALL 21 | AC_PROG_LN_S 22 | AC_PROG_MAKE_SET 23 | 24 | # Checks for typedefs, structures, and compiler characteristics. 25 | AC_TYPE_SIZE_T 26 | AC_TYPE_SSIZE_T 27 | AC_TYPE_UINT16_T 28 | AC_TYPE_UINT32_T 29 | AC_TYPE_UINT64_T 30 | AC_TYPE_UINT8_T 31 | 32 | AC_CHECK_TOOL(OBJCOPY, objcopy, false) 33 | 34 | COMPILE_CAMERA=yes 35 | AMSS_VERSION= 36 | VFE_VERS= 37 | MSM_VERSION= 38 | DEBUG_CPPFLAGS= 39 | DEBUG_CFLAGS= 40 | DEBUG_LDFLAGS= 41 | 42 | AC_ARG_ENABLE([target], 43 | [AS_HELP_STRING([--enable-target=TARGET],[target to build for])], 44 | [], 45 | [enable_target=none] 46 | ) 47 | 48 | if test "x$enable_target" = "xmsm7627a"; then 49 | MSM_VERSION=7x27A 50 | BUILD_UNIFIED_CODE=false 51 | BUILD_JPEG=false 52 | elif test "x$enable_target" = "xmsm8960"; then 53 | MSM_VERSION=8960 54 | BUILD_UNIFIED_CODE=false 55 | BUILD_JPEG=true 56 | else 57 | MSM_VERSION= 58 | BUILD_UNIFIED_CODE=false 59 | BUILD_JPEG=false 60 | fi 61 | 62 | AC_ARG_ENABLE([debug], 63 | [AS_HELP_STRING([--enable-debug],[Build with debug flags and options])], 64 | [DEBUG=$enableval], 65 | [DEBUG=no] 66 | ) 67 | if test "x$DEBUG" = "xyes"; then 68 | DEBUG_CPPFLAGS="${DEBUG_CPPFLAGS} -DLOG_DEBUG -DLOG_TAG=\"CameraService\"" 69 | DEBUG_CFLAGS="${DEBUG_CFLAGS} -DLOG_DEBUG -DLOG_TAG=\"CameraService\" -g -O0" 70 | fi 71 | 72 | AC_SUBST([MSM_VERSION]) 73 | AM_CONDITIONAL([MSM7X27A], [test "x$MSM_VERSION" = "x7x27A"]) 74 | AM_CONDITIONAL([MSM8960], [test "x$MSM_VERSION" = "x8960"]) 75 | AM_CONDITIONAL([BUILD_UNIFIED_CODE], [test "x$BUILD_UNIFIED_CODE" = "xtrue"]) 76 | AM_CONDITIONAL([BUILD_JPEG], [test "x$BUILD_JPEG" = "xtrue"]) 77 | 78 | AC_OUTPUT([ \ 79 | Makefile 80 | ]) 81 | 82 | -------------------------------------------------------------------------------- /camera/hdr/include/morpho_api.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_api.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_easy_hdr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_easy_hdr.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_easy_hdr_ext.h: -------------------------------------------------------------------------------- 1 | #ifndef MORPHO_EASY_HDR_EXT_H 2 | #define MORPHO_EASY_HDR_EXT_H 3 | 4 | #include "morpho_easy_hdr.h" 5 | /* 6 | return == 0 : OK 7 | return != 0 : NG (Please print the return value to check Error types) 8 | */ 9 | MORPHO_API(int) 10 | LINK_mm_camera_HDR( 11 | unsigned char* yuvInput01, 12 | unsigned char* yuvInput02, 13 | unsigned char* yuvInput03, 14 | unsigned char* pHDROutImage, 15 | int width, 16 | int height, 17 | int indoor); 18 | 19 | #endif //MORPHO_EASY_HDR_EXT_H 20 | -------------------------------------------------------------------------------- /camera/hdr/include/morpho_error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_error.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_get_image_size.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_get_image_size.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_hdr_checker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_hdr_checker.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_image_data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_image_data.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_image_data_ex.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file morpho_image_data_ex.h 3 | * @brief 画像データの構造体定義 4 | * @version 1.0.0 5 | * @date 2010-03-30 6 | * 7 | * Copyright (C) 2010-2011 Morpho, Inc. 8 | */ 9 | 10 | #ifndef MORPHO_IMAGE_DATA_EX_H 11 | #define MORPHO_IMAGE_DATA_EX_H 12 | 13 | #include "morpho_image_data.h" 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | typedef struct{ 20 | int y; 21 | int u; 22 | int v; 23 | } morpho_ImageYuvPlanarPitch; 24 | 25 | typedef struct{ 26 | int y; 27 | int uv; 28 | } morpho_ImageYuvSemiPlanarPitch; 29 | 30 | /** 画像データ. */ 31 | typedef struct { 32 | int width; /**< 幅 */ 33 | int height; /**< 高さ */ 34 | union{ 35 | void *p; /**< 画像データの先頭ポインタ */ 36 | morpho_ImageYuvPlanar planar; 37 | morpho_ImageYuvSemiPlanar semi_planar; 38 | } dat; 39 | union{ 40 | int p; /**< ラインの先頭から次のライン先頭までのバイト数 */ 41 | morpho_ImageYuvPlanarPitch planar; 42 | morpho_ImageYuvSemiPlanarPitch semi_planar; 43 | } pitch; 44 | } morpho_ImageDataEx; 45 | 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* #ifndef MORPHO_IMAGE_DATA_EX_H */ 52 | -------------------------------------------------------------------------------- /camera/hdr/include/morpho_motion_data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_motion_data.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_noise_reduction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_noise_reduction.h -------------------------------------------------------------------------------- /camera/hdr/include/morpho_noise_reduction_ext.h: -------------------------------------------------------------------------------- 1 | #ifndef MORPHO_NR_EXT_H 2 | #define MORPHO_NR_EXT_H 3 | 4 | #include "morpho_noise_reduction.h" 5 | /* 6 | return == 0 : OK 7 | return != 0 : NG (Please print the return value to check Error types) 8 | */ 9 | MORPHO_API(int) 10 | LINK_mm_camera_morpho_noise_reduction( 11 | unsigned char* yuvImage, 12 | int width, 13 | int height, 14 | int y_level, 15 | int c_level); 16 | 17 | #endif //MORPHO_NR_EXT_H 18 | -------------------------------------------------------------------------------- /camera/hdr/include/morpho_rect_int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/hdr/include/morpho_rect_int.h -------------------------------------------------------------------------------- /camera/mm-camera-interface/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | LOCAL_DIR_PATH:= $(call my-dir) 3 | include $(CLEAR_VARS) 4 | 5 | MM_CAM_FILES:= \ 6 | mm_camera_interface2.c \ 7 | mm_camera_stream.c \ 8 | mm_camera_channel.c \ 9 | mm_camera.c \ 10 | mm_camera_poll_thread.c \ 11 | mm_camera_notify.c \ 12 | mm_camera_sock.c \ 13 | mm_camera_helper.c \ 14 | mm_omx_jpeg_encoder.c 15 | 16 | LOCAL_CFLAGS+= -D_ANDROID_ 17 | LOCAL_COPY_HEADERS_TO := mm-camera-interface 18 | LOCAL_COPY_HEADERS += mm_camera_interface2.h 19 | LOCAL_COPY_HEADERS += mm_omx_jpeg_encoder.h 20 | 21 | LOCAL_C_INCLUDES+= $(LOCAL_PATH)/.. 22 | LOCAL_C_INCLUDES+= $(LOCAL_PATH)/../inc 23 | 24 | LOCAL_C_INCLUDES+= hardware/qcom/media/mm-core/inc 25 | LOCAL_CFLAGS += -include bionic/libc/include/sys/socket.h 26 | LOCAL_CFLAGS += -include bionic/libc/include/sys/un.h 27 | 28 | LOCAL_SRC_FILES := $(MM_CAM_FILES) 29 | 30 | LOCAL_MODULE := libmmcamera_interface2 31 | LOCAL_PRELINK_MODULE := false 32 | LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 33 | LOCAL_MODULE_TAGS := optional 34 | 35 | include $(BUILD_SHARED_LIBRARY) 36 | -------------------------------------------------------------------------------- /camera/mm-camera-interface/mm_camera_interface2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/mm-camera-interface/mm_camera_interface2.c -------------------------------------------------------------------------------- /camera/mm-camera-interface/mm_camera_interface2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/camera/mm-camera-interface/mm_camera_interface2.h -------------------------------------------------------------------------------- /camera/mm-camera-interface/mm_camera_sock.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2012, The Linux Foundation. All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following 11 | disclaimer in the documentation and/or other materials provided 12 | with the distribution. 13 | * Neither the name of The Linux Foundation nor the names of its 14 | contributors may be used to endorse or promote products derived 15 | from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 18 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 21 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 24 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 26 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 27 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | #ifndef __MM_CAMERA_SOCKET_H__ 31 | #define __MM_CAMERA_SOCKET_H__ 32 | 33 | #include 34 | 35 | typedef enum { 36 | MM_CAMERA_SOCK_TYPE_UDP, 37 | MM_CAMERA_SOCK_TYPE_TCP, 38 | } mm_camera_sock_type_t; 39 | 40 | int mm_camera_socket_create(int cam_id, mm_camera_sock_type_t sock_type); 41 | 42 | int mm_camera_socket_sendmsg( 43 | int fd, 44 | void *msg, 45 | uint32_t buf_size, 46 | int sendfd); 47 | 48 | int mm_camera_socket_recvmsg( 49 | int fd, 50 | void *msg, 51 | uint32_t buf_size, 52 | int *rcvdfd); 53 | 54 | void mm_camera_socket_close(int fd); 55 | 56 | #endif /*__MM_CAMERA_SOCKET_H__*/ 57 | 58 | -------------------------------------------------------------------------------- /charger_touch/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | ifneq ($(filter mako occam,$(TARGET_DEVICE)),) 18 | 19 | LOCAL_PATH:= $(call my-dir) 20 | 21 | include $(CLEAR_VARS) 22 | LOCAL_SRC_FILES := charger_touch.c 23 | LOCAL_SHARED_LIBRARIES := libcutils liblog libhardware_legacy 24 | LOCAL_MODULE_TAGS := optional 25 | LOCAL_MODULE_PATH := $(TARGET_OUT)/bin 26 | LOCAL_MODULE := charger_touch 27 | LOCAL_MODULE_OWNER := lge 28 | include $(BUILD_EXECUTABLE) 29 | 30 | endif 31 | -------------------------------------------------------------------------------- /conn_init/Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | ifneq ($(filter mako occam,$(TARGET_DEVICE)),) 18 | 19 | LOCAL_PATH:= $(call my-dir) 20 | 21 | include $(CLEAR_VARS) 22 | LOCAL_MODULE := libwfcu 23 | LOCAL_SRC_FILES := wfc_util_fctrl.c \ 24 | wfc_util_common.c 25 | LOCAL_CFLAGS := -Wall \ 26 | -Werror 27 | LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_WIFI_PATCH 28 | ifeq ($(BOARD_HAS_QCOM_WLAN), true) 29 | LOCAL_SRC_FILES += wfc_util_qcom.c 30 | LOCAL_CFLAGS += -DCONFIG_LGE_WLAN_QCOM_PATCH 31 | LOCAL_CFLAGS += -DWLAN_CHIP_VERSION_WCNSS 32 | endif 33 | LOCAL_SHARED_LIBRARIES := libcutils liblog 34 | LOCAL_PRELINK_MODULE := false 35 | LOCAL_MODULE_TAGS := optional 36 | LOCAL_MODULE_OWNER := lge 37 | include $(BUILD_SHARED_LIBRARY) 38 | 39 | include $(CLEAR_VARS) 40 | LOCAL_SRC_FILES := conn_init.c 41 | LOCAL_SHARED_LIBRARIES := libcutils liblog 42 | LOCAL_SHARED_LIBRARIES += libwfcu 43 | LOCAL_CFLAGS += -Wall -Werror 44 | LOCAL_MODULE_TAGS := optional 45 | LOCAL_MODULE_PATH := $(TARGET_OUT)/bin 46 | LOCAL_MODULE := conn_init 47 | LOCAL_MODULE_OWNER := lge 48 | 49 | # Install symlinks with targets unavailable at build time 50 | LOCAL_POST_INSTALL_CMD := \ 51 | mkdir -p $(TARGET_OUT_VENDOR)/firmware/wlan/prima/; \ 52 | ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini; \ 53 | ln -sf /data/misc/wifi/WCNSS_qcom_wlan_nv.bin $(TARGET_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin 54 | 55 | include $(BUILD_EXECUTABLE) 56 | 57 | endif 58 | -------------------------------------------------------------------------------- /conn_init/conn_init.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | #include 17 | #include 18 | #include 19 | 20 | extern int wfc_util_qcom_check_config(unsigned char *nv_mac_addr); 21 | extern void wfc_util_atoh(char *pAsciiString, int szAsciiString, unsigned char *pHexaBuff, int szHexaBuff); 22 | 23 | static int wifi_check_qcom_cfg_files() 24 | { 25 | char macAddress[13]; 26 | char hex[7]; 27 | memset(macAddress, 0, 13); 28 | memset(hex, 0, 7); 29 | 30 | // Read MAC String 31 | FILE *fp = NULL; 32 | int n = 0; 33 | fp = fopen("/persist/wifi/.macaddr", "r"); 34 | if ( fp == NULL ) 35 | { 36 | wfc_util_qcom_check_config((unsigned char *)macAddress); 37 | return 0; 38 | } 39 | else 40 | { 41 | n = fread(macAddress, 12, 1, fp); 42 | fclose(fp); 43 | 44 | // Write MAC String 45 | wfc_util_atoh( macAddress, 12, (unsigned char *)hex, 6); 46 | wfc_util_qcom_check_config((unsigned char *)hex); 47 | } 48 | return 1; 49 | } 50 | 51 | int main(void) 52 | { 53 | wifi_check_qcom_cfg_files(); 54 | 55 | return 0; 56 | } 57 | -------------------------------------------------------------------------------- /conn_init/wfc_util_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __WFC_UTIL_COMMON_H__ 18 | #define __WFC_UTIL_COMMON_H__ 19 | 20 | /* 21 | * wfc_util_htoa 22 | * 23 | * return : void 24 | */ 25 | extern void wfc_util_htoa(unsigned char *pHexaBuff, int szHexaBuff, char *pAsciiStringBuff, int szAsciiStringBuff); 26 | 27 | /* 28 | * wfc_util_atoh 29 | * 30 | * return : void 31 | */ 32 | extern void wfc_util_atoh(char *pAsciiString, int szAsciiString, unsigned char *pHexaBuff, int szHexaBuff); 33 | 34 | /* 35 | * wfc_util_is_random_mac 36 | * 37 | * return : it will return 1 if [mac_add] is same with WFC_UTIL_RANDOM_MAC_HEADER 38 | * or will return 0 if not. 39 | */ 40 | extern int wfc_util_is_random_mac(char *mac_add); 41 | 42 | /* 43 | * wfc_util_random_mac 44 | * 45 | * Create random MAC address 46 | * 47 | * return : void 48 | */ 49 | void wfc_util_random_mac(unsigned char* mac_addr); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /conn_init/wfc_util_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __WFC_UTIL_LOG_H__ 18 | #define __WFC_UTIL_LOG_H__ 19 | 20 | #ifdef ANDROID 21 | #define LOG_TAG "WifiUtil" 22 | #include 23 | 24 | #define wfc_util_log_info(...) ALOGI(__VA_ARGS__) 25 | #define wfc_util_log_error(...) ALOGE(__VA_ARGS__) 26 | #else /* ANDROID */ 27 | #define wfc_util_log_info(...) printf(__VA_ARGS__);printf("\n") 28 | #define wfc_util_log_error(...) printf(__VA_ARGS__);printf("\n") 29 | #endif /* ANDROID */ 30 | 31 | #endif 32 | 33 | -------------------------------------------------------------------------------- /conn_init/wfc_util_qcom.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #ifndef __WFC_UTIL_QCOM_H__ 18 | #define __WFC_UTIL_QCOM_H__ 19 | 20 | #ifdef CONFIG_LGE_WLAN_QCOM_PATCH 21 | /* 22 | * wfc_util_qcom_check_config 23 | * 24 | * check the qcom wlan driver config file 25 | * 26 | * return : it will return 0 if procedure is success 27 | * or will return -1 if not. 28 | */ 29 | extern int wfc_util_qcom_check_config(unsigned char *nv_mac_addr); 30 | 31 | /* 32 | * wfc_util_qcom_reset_mac 33 | * 34 | * reset the mac address of config file 35 | * 36 | * return : void 37 | */ 38 | extern void wfc_util_qcom_reset_mac(void); 39 | 40 | /* 41 | * wfc_util_qcom_ota_enable/disable 42 | * 43 | * enable OTA mode for Wi-Fi related certificiation 44 | * 45 | * return : int (boolean) 46 | */ 47 | extern int wfc_util_qcom_ota_enable(void); 48 | extern int wfc_util_qcom_ota_disable(void); 49 | extern int wfc_util_qcom_checkt_roaming_off(void); 50 | #endif /* CONFIG_LGE_WLAN_QCOM_PATCH */ 51 | #endif 52 | 53 | -------------------------------------------------------------------------------- /dumpstate/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | include $(CLEAR_VARS) 17 | 18 | LOCAL_C_INCLUDES := frameworks/native/cmds/dumpstate 19 | 20 | LOCAL_SRC_FILES := dumpstate.c 21 | 22 | LOCAL_MODULE := libdumpstate.mako 23 | 24 | LOCAL_MODULE_TAGS := optional 25 | 26 | include $(BUILD_STATIC_LIBRARY) 27 | -------------------------------------------------------------------------------- /dumpstate/dumpstate.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | 19 | void dumpstate_board() 20 | { 21 | dump_file("INTERRUPTS", "/proc/interrupts"); 22 | dump_file("Power Management Stats", "/proc/msm_pm_stats"); 23 | run_command("MODEM TOMBSTONES", 5, SU_PATH, "root", "ls", "-l", "/data/tombstones/mdm", NULL); 24 | dump_file("HSIC Control Events", "/sys/kernel/debug/ehci_hsic_msm_dbg/show_ctrl_events"); 25 | dump_file("HSIC Data Events", "/sys/kernel/debug/ehci_hsic_msm_dbg/show_data_events"); 26 | }; 27 | -------------------------------------------------------------------------------- /egl.cfg: -------------------------------------------------------------------------------- 1 | 0 0 android 2 | 0 1 adreno 3 | -------------------------------------------------------------------------------- /factory-images/generate-factory-images-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright 2012 The Android Open Source Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | # start jb-mr1-dev 18 | # 477685 = JOO88 19 | # 521994 = JOP32B 20 | # 526897 = JOP39B 21 | # 527221 = JOP40 22 | # 527662 = JOP40C 23 | # end jb-mr1-dev 24 | # start jb-mr1.1-dev 25 | # 573038 = JDQ39 26 | # end jb-mr1.1-dev 27 | # start jb-mr2-dev 28 | # 683083 = JWR51 29 | # 689345 = JWR58 30 | # 690834 = JWR59 31 | # 704243 = JWR66G 32 | # 709441 = JWR66M 33 | # 711294 = JWR66N 34 | # 737497 = JWR66V 35 | # end jb-mr2-dev 36 | 37 | source ../../../common/clear-factory-images-variables.sh 38 | BUILD=937116 39 | DEVICE=mako 40 | PRODUCT=occam 41 | VERSION=kot49h 42 | SRCPREFIX=signed- 43 | BOOTLOADER=makoz30d 44 | RADIO=m9615a-cefwmazm-2.0.1700.98 45 | source ../../../common/generate-factory-images-common.sh 46 | -------------------------------------------------------------------------------- /fstab.mako: -------------------------------------------------------------------------------- 1 | # Android fstab file. 2 | # 3 | # The filesystem that contains the filesystem checker binary (typically /system) cannot 4 | # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK 5 | 6 | /dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait 7 | /dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check 8 | /dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check,encryptable=/dev/block/platform/msm_sdcc.1/by-name/metadata 9 | /dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc wait 10 | /dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:radio_efs_file:s0 wait 11 | /dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults 12 | /dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults 13 | /dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults 14 | /dev/block/platform/msm_sdcc.1/by-name/modem /radio emmc defaults defaults 15 | /dev/block/platform/msm_sdcc.1/by-name/sbl1 /sbl1 emmc defaults defaults 16 | /dev/block/platform/msm_sdcc.1/by-name/sbl2 /sbl2 emmc defaults defaults 17 | /dev/block/platform/msm_sdcc.1/by-name/sbl3 /sbl3 emmc defaults defaults 18 | /dev/block/platform/msm_sdcc.1/by-name/tz /tz emmc defaults defaults 19 | /dev/block/platform/msm_sdcc.1/by-name/rpm /rpm emmc defaults defaults 20 | /dev/block/platform/msm_sdcc.1/by-name/aboot /aboot emmc defaults defaults 21 | -------------------------------------------------------------------------------- /full_mako.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Sample: This is where we'd set a backup provider if we had one 18 | # $(call inherit-product, device/sample/products/backup_overlay.mk) 19 | 20 | # Live Wallpapers 21 | PRODUCT_PACKAGES += \ 22 | LiveWallpapers \ 23 | LiveWallpapersPicker \ 24 | VisualizationWallpapers 25 | 26 | 27 | # Get the long list of APNs 28 | PRODUCT_COPY_FILES := device/lge/mako/apns-full-conf.xml:system/etc/apns-conf.xml 29 | 30 | # Inherit from the common Open Source product configuration 31 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) 32 | 33 | PRODUCT_NAME := full_mako 34 | PRODUCT_DEVICE := mako 35 | PRODUCT_BRAND := Android 36 | PRODUCT_MODEL := Nexus 4 37 | PRODUCT_MANUFACTURER := LGE 38 | PRODUCT_RESTRICT_VENDOR_FILES := true 39 | 40 | # Inherit from hardware-specific part of the product configuration 41 | $(call inherit-product, device/lge/mako/device.mk) 42 | $(call inherit-product-if-exists, vendor/lge/mako/mako-vendor.mk) 43 | -------------------------------------------------------------------------------- /gps.conf: -------------------------------------------------------------------------------- 1 | # XTRA_SERVER_QUERY (1=on, 0=off) 2 | # If XTRA_SERVER_QUERY is on, the XTRA_SERVERs listed 3 | # below will be ignored, and instead the servers will 4 | # be queried from the modem. 5 | XTRA_SERVER_QUERY=0 6 | # XTRA_SERVERs below are used only if XTRA_SERVER_QUERY 7 | # is off. 8 | XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin 9 | XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin 10 | XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin 11 | 12 | # Error Estimate 13 | # _SET = 1 14 | # _CLEAR = 0 15 | ERR_ESTIMATE=0 16 | 17 | #Test 18 | NTP_SERVER=time.gpsonextra.net 19 | #Asia 20 | # NTP_SERVER=asia.pool.ntp.org 21 | #Europe 22 | # NTP_SERVER=europe.pool.ntp.org 23 | #North America 24 | # NTP_SERVER=north-america.pool.ntp.org 25 | 26 | # DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info 27 | # 4 - Debug, 5 - Verbose 28 | # If DEBUG_LEVEL is commented, Android's logging levels will be used 29 | DEBUG_LEVEL = 2 30 | 31 | # Intermediate position report, 1=enable, 0=disable 32 | INTERMEDIATE_POS=0 33 | 34 | # supl version 1.0 35 | SUPL_VER=0x10000 36 | 37 | # GPS Capabilities bit mask 38 | # SCHEDULING = 0x01 39 | # MSB = 0x02 40 | # MSA = 0x04 41 | # ON_DEMAND_TIME = 0x10 42 | # GEOFENCE = 0x20 43 | # default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE 44 | CAPABILITIES=0x33 45 | 46 | # Accuracy threshold for intermediate positions 47 | # less accurate positions are ignored, 0 for passing all positions 48 | # ACCURACY_THRES=5000 49 | 50 | ################################ 51 | ##### AGPS server settings ##### 52 | ################################ 53 | 54 | # FOR SUPL SUPPORT, set the following 55 | # SUPL_HOST=supl.host.com or IP 56 | # SUPL_PORT=1234 57 | SUPL_HOST=supl.google.com 58 | SUPL_PORT=7275 59 | 60 | # FOR C2K PDE SUPPORT, set the following 61 | # C2K_HOST=c2k.pde.com or IP 62 | # C2K_PORT=1234 63 | 64 | #################################### 65 | # LTE Positioning Profile Settings 66 | #################################### 67 | # 0: Enable RRLP on LTE(Default) 68 | # 1: Enable LPP_User_Plane on LTE 69 | # 2: Enable LPP_Control_Plane 70 | # 3: Enable both LPP_User_Plane and LPP_Control_Plane 71 | LPP_PROFILE = 0 72 | 73 | ################################ 74 | # EXTRA SETTINGS 75 | ################################ 76 | # NMEA provider (1=Modem Processor, 0=Application Processor) 77 | NMEA_PROVIDER=0 78 | 79 | ################################################## 80 | # Select Positioning Protocol on A-GLONASS system 81 | ################################################## 82 | # 0x1: RRC CPlane 83 | # 0x2: RRLP UPlane 84 | # 0x4: LLP Uplane 85 | A_GLONASS_POS_PROTOCOL_SELECT = 0 86 | -------------------------------------------------------------------------------- /hs_detect.kcm: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | type SPECIAL_FUNCTION 16 | -------------------------------------------------------------------------------- /hs_detect.kl: -------------------------------------------------------------------------------- 1 | key 226 HEADSETHOOK 2 | key 116 POWER 3 | key 107 ENDCALL 4 | 5 | -------------------------------------------------------------------------------- /init.mako.bt.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | BLUETOOTH_SLEEP_PATH=/proc/bluetooth/sleep/proto 4 | LOG_TAG="mako-bluetooth" 5 | LOG_NAME="${0}:" 6 | 7 | loge () 8 | { 9 | /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" 10 | } 11 | 12 | logi () 13 | { 14 | /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" 15 | } 16 | 17 | failed () 18 | { 19 | loge "$1: exit code $2" 20 | exit $2 21 | } 22 | 23 | # Note that "hci_qcomm_init -e" prints expressions to set the shell variables 24 | # BTS_DEVICE, BTS_TYPE, BTS_BAUD, and BTS_ADDRESS. 25 | 26 | POWER_CLASS=`getprop qcom.bt.dev_power_class` 27 | TRANSPORT=`getprop ro.qualcomm.bt.hci_transport` 28 | DUTADDR=`getprop net.btdut.address` 29 | 30 | #find the transport type 31 | logi "Transport : $TRANSPORT" 32 | logi "DUTADDR : $DUTADDR" 33 | 34 | #load bd addr 35 | if [$DUTADDR == ""] 36 | then 37 | BDADDR=`/system/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x` 38 | else 39 | BDADDR=`/system/bin/bdAddrLoader -p net.btdut.address -s -x` 40 | fi 41 | 42 | setprop bluetooth.status off 43 | 44 | logi "BDADDR: $BDADDR" 45 | 46 | case $POWER_CLASS in 47 | 1) PWR_CLASS="-p 0" ; 48 | logi "Power Class: 1";; 49 | 2) PWR_CLASS="-p 1" ; 50 | logi "Power Class: 2";; 51 | 3) PWR_CLASS="-p 2" ; 52 | logi "Power Class: CUSTOM";; 53 | *) PWR_CLASS=""; 54 | logi "Power Class: Ignored. Default(1) used (1-CLASS1/2-CLASS2/3-CUSTOM)"; 55 | logi "Power Class: To override, Before turning BT ON; setprop qcom.bt.dev_power_class <1 or 2 or 3>";; 56 | esac 57 | 58 | if [$BDADDR == ""] 59 | then 60 | /system/bin/hci_qcomm_init -e $PWR_CLASS -vv 61 | else 62 | /system/bin/hci_qcomm_init -b $BDADDR -e $PWR_CLASS -vv 63 | fi 64 | 65 | case $? in 66 | 0) logi "Bluetooth QSoC firmware download succeeded, $PWR_CLASS $BDADDR $TRANSPORT";; 67 | *) failed "Bluetooth QSoC firmware download failed" $?; 68 | setprop bluetooth.status off; 69 | exit $?;; 70 | esac 71 | 72 | setprop bluetooth.status on 73 | 74 | logi "start bluetooth smd transport" 75 | 76 | exit 0 77 | -------------------------------------------------------------------------------- /init.mako.wifi.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | # Workaround for conn_init not copying the updated firmware 4 | rm /data/misc/wifi/WCNSS_qcom_cfg.ini 5 | rm /data/misc/wifi/WCNSS_qcom_wlan_nv.bin 6 | 7 | /system/bin/conn_init 8 | 9 | echo 1 > /dev/wcnss_wlan 10 | 11 | -------------------------------------------------------------------------------- /kernel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/kernel -------------------------------------------------------------------------------- /keypad_8064.kcm: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | type SPECIAL_FUNCTION 16 | -------------------------------------------------------------------------------- /keypad_8064.kl: -------------------------------------------------------------------------------- 1 | key 114 VOLUME_DOWN 2 | key 115 VOLUME_UP 3 | -------------------------------------------------------------------------------- /liblight/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2008 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH:= $(call my-dir) 16 | # HAL module implemenation stored in 17 | # hw/..so 18 | include $(CLEAR_VARS) 19 | 20 | LOCAL_SRC_FILES := lights.c 21 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 22 | LOCAL_SHARED_LIBRARIES := liblog \ 23 | libcutils 24 | 25 | LOCAL_MODULE := lights.mako 26 | LOCAL_MODULE_TAGS := optional 27 | 28 | include $(BUILD_SHARED_LIBRARY) 29 | -------------------------------------------------------------------------------- /omni.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | ] 4 | -------------------------------------------------------------------------------- /omni_mako.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | # Sample: This is where we'd set a backup provider if we had one 18 | # $(call inherit-product, device/sample/products/backup_overlay.mk) 19 | 20 | # Inherit from the common Open Source product configuration 21 | $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) 22 | 23 | # Inherit from our custom product configuration 24 | $(call inherit-product, vendor/omni/config/common.mk) 25 | $(call inherit-product, vendor/omni/config/gsm.mk) 26 | 27 | # Inherit from hardware-specific part of the product configuration 28 | $(call inherit-product, device/lge/mako/device.mk) 29 | 30 | PRODUCT_NAME := omni_mako 31 | PRODUCT_DEVICE := mako 32 | PRODUCT_BRAND := google 33 | PRODUCT_MODEL := Nexus 4 34 | PRODUCT_MANUFACTURER := LGE 35 | 36 | # Kernel inline build 37 | #TARGET_KERNEL_CONFIG := mako_defconfig 38 | #TARGET_VARIANT_CONFIG := mako_defconfig 39 | #TARGET_SELINUX_CONFIG := mako_defconfig 40 | 41 | $(call inherit-product-if-exists, vendor/lge/mako/mako-vendor.mk) 42 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-af/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-am/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ar/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-az-rAZ/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-bg/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-bn-rBD/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ca/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-cs/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-da/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-de/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-el/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-en-rGB/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-en-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-es-rUS/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-es/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-et-rEE/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-eu-rES/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-fa/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-fi/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-fr-rCA/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-fr/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-gl-rES/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-hi/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-hr/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-hu/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-hy-rAM/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-in/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-is-rIS/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-it/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-iw/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ja/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ka-rGE/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-kk-rKZ/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/құр/шина/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-km-rKH/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-kn-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ko/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ky-rKG/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-lo-rLA/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-lt/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-lv/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mcc530-mnc05/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 25 | false 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mk-rMK/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ml-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mn-rMN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-mr-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ms-rMY/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-my-rMM/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-nb/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ne-rNP/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-nl/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-pl/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-pt-rPT/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-pt/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ro/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ru/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-si-rLK/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-sk/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-sl/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-sr/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-sv/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-sw/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ta-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-te-rIN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-th/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-tl/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-tr/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-uk/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-ur-rPK/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "‎/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-uz-rUZ/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-vi/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-zh-rCN/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-zh-rHK/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-zh-rTW/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/values-zu/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | "/dev/bus/usb/001" 24 | 25 | 26 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/xml/storage_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 21 | 30000 22 | 23 | true 24 | 25 | 87 26 | 27 | -------------------------------------------------------------------------------- /overlay/frameworks/base/packages/SystemUI/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | 24 | 26 | true 27 | 28 | 29 | 7 30 | 31 | 33 | true 34 | 35 | 36 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc026/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 1048576 22 | 23 | 24 | 1944 25 | 26 | 27 | 2592 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc090/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 614400 22 | 23 | 24 | 1000 25 | 26 | 27 | 1296 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc170/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 1048576 22 | 23 | 24 | 1944 25 | 26 | 27 | 2592 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc260/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 1048576 22 | 23 | 24 | 1944 25 | 26 | 27 | 2592 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc380/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 22 | 23 | 24 | 25 | 26 | 614400 27 | 28 | 29 | 1000 30 | 31 | 32 | 1296 33 | 34 | 35 | Nexus4 36 | 37 | 38 | http://www.google.com/oha/rdf/ua-profile-kila.xml 39 | 40 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc410/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 614400 22 | 23 | 24 | 1000 25 | 26 | 27 | 1296 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc490/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 1048576 22 | 23 | 24 | 1944 25 | 26 | 27 | 2592 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc560/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 614400 22 | 23 | 24 | 1000 25 | 26 | 27 | 1296 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/Mms/res/xml-mcc310-mnc680/mms_config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | 20 | 21 | 614400 22 | 23 | 24 | 1000 25 | 26 | 27 | 1296 28 | 29 | 30 | Nexus4 31 | 32 | 33 | http://www.google.com/oha/rdf/ua-profile-kila.xml 34 | 35 | -------------------------------------------------------------------------------- /overlay/packages/apps/OmniGears/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 21 | true 22 | 23 | -------------------------------------------------------------------------------- /overlay/packages/apps/OmniTorch/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | 22 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /overlay/packages/apps/Phone: -------------------------------------------------------------------------------- 1 | ../services/Telephony -------------------------------------------------------------------------------- /overlay/packages/apps/Settings/res/values/bools.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 19 | false 20 | 21 | 22 | true 23 | 24 | -------------------------------------------------------------------------------- /overlay/packages/services/Telecomm/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 21 | true 22 | 23 | -------------------------------------------------------------------------------- /overlay/packages/services/Telephony/res/values/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 19 | 20 | 23 | true 24 | 25 | -------------------------------------------------------------------------------- /p2p_supplicant_overlay.conf: -------------------------------------------------------------------------------- 1 | disable_scan_offload=1 2 | no_ctrl_interface= -------------------------------------------------------------------------------- /pmic8xxx_pwrkey.kcm: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2010 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | type SPECIAL_FUNCTION 16 | -------------------------------------------------------------------------------- /pmic8xxx_pwrkey.kl: -------------------------------------------------------------------------------- 1 | key 116 POWER 2 | -------------------------------------------------------------------------------- /power/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2014 The Android Open Source Project 2 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | # 15 | 16 | LOCAL_PATH:= $(call my-dir) 17 | 18 | include $(CLEAR_VARS) 19 | LOCAL_MODULE_RELATIVE_PATH := hw 20 | LOCAL_SRC_FILES := power_mako.c 21 | LOCAL_SHARED_LIBRARIES := liblog libcutils 22 | LOCAL_MODULE_TAGS := optional 23 | LOCAL_MODULE := power.mako 24 | include $(BUILD_SHARED_LIBRARY) 25 | -------------------------------------------------------------------------------- /recovery/root/sbin/libQSEEComAPI.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/sbin/libQSEEComAPI.so -------------------------------------------------------------------------------- /recovery/root/vendor/firmware/keymaster/keymaster.b00: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/firmware/keymaster/keymaster.b00 -------------------------------------------------------------------------------- /recovery/root/vendor/firmware/keymaster/keymaster.b01: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/firmware/keymaster/keymaster.b01 -------------------------------------------------------------------------------- /recovery/root/vendor/firmware/keymaster/keymaster.b02: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/firmware/keymaster/keymaster.b02 -------------------------------------------------------------------------------- /recovery/root/vendor/firmware/keymaster/keymaster.b03: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/firmware/keymaster/keymaster.b03 -------------------------------------------------------------------------------- /recovery/root/vendor/firmware/keymaster/keymaster.mdt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/firmware/keymaster/keymaster.mdt -------------------------------------------------------------------------------- /recovery/root/vendor/lib/hw/keystore.msm8960.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/recovery/root/vendor/lib/hw/keystore.msm8960.so -------------------------------------------------------------------------------- /self-extractors/Android.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamWin/android_device_lge_mako/c794791c8780796a87e94f634545d58bc262c330/self-extractors/Android.mk -------------------------------------------------------------------------------- /self-extractors/PART1: -------------------------------------------------------------------------------- 1 | # 2 | # Usage is subject to the enclosed license agreement 3 | 4 | echo 5 | echo The license for this software will now be displayed. 6 | echo You must agree to this license before using this software. 7 | echo 8 | echo -n Press Enter to view the license 9 | read dummy 10 | echo 11 | 12 | more << __EOF__ 13 | -------------------------------------------------------------------------------- /self-extractors/PART2: -------------------------------------------------------------------------------- 1 | __EOF__ 2 | 3 | if test $? != 0 4 | then 5 | echo ERROR: Couldn\'t display license file 1>&2 6 | exit 1 7 | fi 8 | 9 | echo 10 | 11 | echo -n Type \"I ACCEPT\" if you agree to the terms of the license:\ 12 | read typed 13 | 14 | if test "$typed" != I\ ACCEPT 15 | then 16 | echo 17 | echo You didn\'t accept the license. Extraction aborted. 18 | exit 2 19 | fi 20 | 21 | echo 22 | 23 | -------------------------------------------------------------------------------- /self-extractors/PART3: -------------------------------------------------------------------------------- 1 | 2 | if test $? != 0 3 | then 4 | echo 5 | echo ERROR: Couldn\'t extract files. 1>&2 6 | exit 3 7 | else 8 | echo 9 | echo Files extracted successfully. 10 | fi 11 | exit 0 12 | 13 | -------------------------------------------------------------------------------- /self-extractors/PROLOGUE: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | -------------------------------------------------------------------------------- /self-extractors/broadcom/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) Broadcom Corporation 2 | -------------------------------------------------------------------------------- /self-extractors/broadcom/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /self-extractors/broadcom/staging/device-partial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # Broadcom blob(s) necessary for Mako hardware 16 | PRODUCT_COPY_FILES := \ 17 | vendor/broadcom/mako/proprietary/bcm2079x_firmware.ncd:system/vendor/firmware/bcm2079x_firmware.ncd:broadcom \ 18 | vendor/broadcom/mako/proprietary/bcm2079x_pre_firmware.ncd:system/vendor/firmware/bcm2079x_pre_firmware.ncd:broadcom \ 19 | 20 | -------------------------------------------------------------------------------- /self-extractors/lge/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) LG Electronics, Inc. 2 | -------------------------------------------------------------------------------- /self-extractors/lge/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /self-extractors/lge/staging/device-partial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # LGE blob(s) necessary for Mako hardware 16 | PRODUCT_COPY_FILES := \ 17 | vendor/lge/mako/proprietary/libacdbdata.so:system/lib/libacdbdata.so:lge \ 18 | vendor/lge/mako/proprietary/libAKM.so:system/lib/libAKM.so:lge \ 19 | vendor/lge/mako/proprietary/libcamera_fast_af.so:system/lib/libcamera_fast_af.so:lge \ 20 | vendor/lge/mako/proprietary/libmorpho_noise_reduction.so:system/lib/libmorpho_noise_reduction.so:lge \ 21 | vendor/lge/mako/proprietary/keymaster.b00:system/vendor/firmware/keymaster/keymaster.b00:lge \ 22 | vendor/lge/mako/proprietary/keymaster.b01:system/vendor/firmware/keymaster/keymaster.b01:lge \ 23 | vendor/lge/mako/proprietary/keymaster.b02:system/vendor/firmware/keymaster/keymaster.b02:lge \ 24 | vendor/lge/mako/proprietary/keymaster.b03:system/vendor/firmware/keymaster/keymaster.b03:lge \ 25 | vendor/lge/mako/proprietary/keymaster.mdt:system/vendor/firmware/keymaster/keymaster.mdt:lge \ 26 | 27 | -------------------------------------------------------------------------------- /self-extractors/qcom/COPYRIGHT: -------------------------------------------------------------------------------- 1 | # (C) Qualcomm Technologies, Inc. 2 | -------------------------------------------------------------------------------- /self-extractors/qcom/staging/BoardConfigPartial.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | -------------------------------------------------------------------------------- /self-extractors/qcom/staging/proprietary/Android.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_PATH := $(call my-dir) 16 | 17 | ifeq ($(TARGET_DEVICE),mako) 18 | 19 | include $(CLEAR_VARS) 20 | LOCAL_MODULE := libacdbloader 21 | LOCAL_SRC_FILES := libacdbloader.so 22 | LOCAL_MODULE_SUFFIX := .so 23 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES 24 | LOCAL_MODULE_PATH := $(TARGET_OUT)/lib 25 | LOCAL_MODULE_TAGS := optional 26 | LOCAL_MODULE_OWNER := qcom 27 | 28 | # Create symbolic link because user space can access persist directory, 29 | # while kernel ALSA drivers can only access the /system/etc/firmware directory 30 | LOCAL_POST_INSTALL_CMD := \ 31 | mkdir -p $(TARGET_OUT_ETC)/firmware/wcd9310; \ 32 | ln -sf /data/misc/audio/wcd9310_anc.bin \ 33 | $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_anc.bin; \ 34 | ln -sf /data/misc/audio/mbhc.bin \ 35 | $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_mbhc.bin 36 | 37 | include $(BUILD_PREBUILT) 38 | 39 | endif 40 | -------------------------------------------------------------------------------- /self-extractors/root/BoardConfigVendor.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_STEM := mako/BoardConfigPartial.mk 16 | 17 | -include vendor/broadcom/$(LOCAL_STEM) 18 | -include vendor/lge/$(LOCAL_STEM) 19 | -include vendor/qcom/$(LOCAL_STEM) 20 | -------------------------------------------------------------------------------- /self-extractors/root/device-vendor.mk: -------------------------------------------------------------------------------- 1 | # Copyright 2013 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | LOCAL_STEM := mako/device-partial.mk 16 | 17 | $(call inherit-product-if-exists, vendor/broadcom/$(LOCAL_STEM)) 18 | $(call inherit-product-if-exists, vendor/lge/$(LOCAL_STEM)) 19 | $(call inherit-product-if-exists, vendor/qcom/$(LOCAL_STEM)) 20 | -------------------------------------------------------------------------------- /sepolicy/bluetooth_loader.te: -------------------------------------------------------------------------------- 1 | # Bluetooth executables and scripts 2 | type bluetooth_loader, domain; 3 | type bluetooth_loader_exec, exec_type, file_type; 4 | 5 | # Start bdAddrLoader from init 6 | init_daemon_domain(bluetooth_loader) 7 | 8 | # Run init.mako.bt.sh 9 | allow bluetooth_loader shell_exec:file { entrypoint read }; 10 | allow bluetooth_loader bluetooth_loader_exec:file { getattr open execute_no_trans }; 11 | 12 | # init.mako.bt.sh needs /system/bin/log access 13 | allow bluetooth_loader devpts:chr_file rw_file_perms; 14 | 15 | # Run hci_qcomm_init from init.mako.bt.sh 16 | domain_auto_trans(bluetooth_loader, hci_attach_exec, hci_attach) 17 | allow hci_attach bluetooth_loader:fd use; 18 | 19 | # Read mac address from persist partition 20 | allow bluetooth_loader persist_file:dir search; 21 | r_dir_file(bluetooth_loader, persist_bluetooth_file) 22 | 23 | # Talk to init over the property socket 24 | unix_socket_connect(bluetooth_loader, property, init) 25 | # Set persist.service.bdroid.* and bluetooth.* property values 26 | allow bluetooth_loader bluetooth_prop:property_service set; 27 | 28 | # Allow getprop/setprop for init.mako.bt.sh 29 | allow bluetooth_loader system_file:file execute_no_trans; 30 | -------------------------------------------------------------------------------- /sepolicy/bridge.te: -------------------------------------------------------------------------------- 1 | # Bridge Manager (radio process) 2 | type bridge, domain; 3 | type bridge_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(bridge) 7 | 8 | # Uevent for usb connection 9 | allow bridge self:netlink_kobject_uevent_socket { create bind read }; 10 | 11 | # Talk to qmuxd (qmux_radio) 12 | qmux_socket(bridge) 13 | 14 | # Alert the RmNet SMD & SDIO function driver of the correct transport. 15 | # (/sys/class/android_usb/f_rmnet_smd_sdio/transport) 16 | allow bridge sysfs_rmnet:file { open read write getattr }; 17 | -------------------------------------------------------------------------------- /sepolicy/camera.te: -------------------------------------------------------------------------------- 1 | # Qualcomm MSM camera 2 | type camera, domain; 3 | type camera_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(camera) 7 | 8 | allow camera self:process execmem; 9 | 10 | # Interact with other media devices 11 | allow camera camera_device:dir search; 12 | allow camera { video_device camera_device }:chr_file rw_file_perms; 13 | allow camera { surfaceflinger mediaserver }:fd use; 14 | 15 | # Create front and back camera sockets (/data/cam_socket[01]) 16 | type_transition camera system_data_file:sock_file camera_socket "cam_socket0"; 17 | type_transition camera system_data_file:sock_file camera_socket "cam_socket1"; 18 | allow camera camera_socket:sock_file { create unlink }; 19 | allow camera system_data_file:dir w_dir_perms; 20 | allow camera system_data_file:sock_file unlink; 21 | 22 | type_transition camera system_data_file:file camera_data_file "fdAlbum"; 23 | allow camera camera_data_file:file create_file_perms; 24 | 25 | # Connect to sensor socket (/data/app/sensor_ctl_socket) 26 | unix_socket_connect(camera, sensors, sensors) 27 | allow camera sensors_socket:sock_file read; 28 | -------------------------------------------------------------------------------- /sepolicy/conn_init.te: -------------------------------------------------------------------------------- 1 | # wifi connection service 2 | type conn_init, domain; 3 | type conn_init_exec, exec_type, file_type; 4 | 5 | init_daemon_domain(conn_init) 6 | 7 | # Runs init.mako.wifi.sh 8 | allow conn_init shell_exec:file { entrypoint read }; 9 | allow conn_init conn_init_exec:file rx_file_perms; 10 | 11 | # Allow /persist/wifi access 12 | allow conn_init { persist_file persist_wifi_file }:dir search; 13 | allow conn_init persist_wifi_file:file r_file_perms; 14 | 15 | # Allow /data/misc/wifi access for firmware files 16 | allow conn_init wifi_data_file:dir w_dir_perms; 17 | allow conn_init wifi_data_file:file create_file_perms; 18 | 19 | allow conn_init wlan_device:chr_file rw_file_perms; 20 | 21 | # init.mako.wifi.sh runs toolbox 22 | allow conn_init system_file:file execute_no_trans; 23 | -------------------------------------------------------------------------------- /sepolicy/device.te: -------------------------------------------------------------------------------- 1 | type wlan_device, dev_type; 2 | 3 | type diag_device, dev_type; 4 | 5 | # Kickstart device used by QC qcks 6 | type kickstart_device, dev_type; 7 | 8 | # SMD device, used by hci_qcomm_init 9 | type smd_device, dev_type; 10 | 11 | # Radio related block device 12 | type efs_block_device, dev_type; 13 | 14 | # Shared memory logger 15 | type shared_log_device, dev_type; 16 | 17 | type power_control_device, dev_type; 18 | -------------------------------------------------------------------------------- /sepolicy/domain.te: -------------------------------------------------------------------------------- 1 | userdebug_or_eng(` 2 | allow domain diag_device:chr_file rw_file_perms; 3 | ') 4 | -------------------------------------------------------------------------------- /sepolicy/file.te: -------------------------------------------------------------------------------- 1 | # Qualcomm MSM Interface (QMI) socket 2 | type qmuxd_socket, file_type; 3 | type sensors_socket, file_type; 4 | type camera_socket, file_type; 5 | 6 | type sensors_data_file, file_type, data_file_type; 7 | 8 | type kickstart_data_file, file_type, data_file_type; 9 | 10 | type mpdecision_socket, file_type; 11 | 12 | # Default type for anything under /firmware 13 | type radio_efs_file, fs_type, contextmount_type; 14 | 15 | # Persist firmware types 16 | type persist_file, file_type; 17 | type persist_bluetooth_file, file_type; 18 | type persist_drm_file, file_type; 19 | type persist_sensors_file, file_type; 20 | type persist_wifi_file, file_type; 21 | 22 | type sysfs_rmnet, fs_type, sysfs_type; 23 | type sysfs_mpdecision, fs_type, sysfs_type; 24 | -------------------------------------------------------------------------------- /sepolicy/hostapd.te: -------------------------------------------------------------------------------- 1 | # Reading from /persist/wifi/.macaddr 2 | allow hostapd persist_file:dir r_dir_perms; 3 | r_dir_file(hostapd, persist_wifi_file) 4 | -------------------------------------------------------------------------------- /sepolicy/kickstart.te: -------------------------------------------------------------------------------- 1 | # kickstart processes and scripts (system process) 2 | type kickstart, domain; 3 | type kickstart_exec, file_type, exec_type; 4 | 5 | init_daemon_domain(kickstart) 6 | 7 | # Spawn /system/bin/efsks and /system/bin/ks 8 | allow kickstart kickstart_exec:file { open execute_no_trans getattr }; 9 | 10 | # Let qcks access /dev/mdm node (modem driver) 11 | allow kickstart radio_device:chr_file r_file_perms; 12 | 13 | # Access USB host ks bridge drivers 14 | allow kickstart kickstart_device:chr_file rw_file_perms; 15 | 16 | # Read and write to /dev/block/mmcblk0p[89] 17 | allow kickstart efs_block_device:blk_file rw_file_perms; 18 | allow kickstart block_device:dir { getattr write search }; 19 | 20 | # Write contents of block device to kickstart data dir 21 | allow kickstart kickstart_data_file:file create_file_perms; 22 | allow kickstart kickstart_data_file:dir rw_dir_perms; 23 | 24 | # Read radio firmware file(s) 25 | allow kickstart radio_efs_file:dir search; 26 | allow kickstart radio_efs_file:file r_file_perms; 27 | 28 | # Run dd from toolbox on firmware files 29 | allow kickstart shell_exec:file rx_file_perms; 30 | allow kickstart system_file:file execute_no_trans; 31 | 32 | # Wake lock access 33 | wakelock_use(kickstart) 34 | 35 | # Read tombstones 36 | allow kickstart tombstone_data_file:dir r_dir_perms; 37 | allow kickstart tombstone_data_file:file r_file_perms; 38 | 39 | # Investigate denial on system_data_file:dir. 40 | allow kickstart system_data_file:dir { write add_name remove_name }; 41 | auditallow kickstart system_data_file:dir { write add_name remove_name }; 42 | -------------------------------------------------------------------------------- /sepolicy/mediaserver.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) audio sockets to mediaserver 2 | qmux_socket(mediaserver) 3 | 4 | unix_socket_send(mediaserver, camera, camera) 5 | unix_socket_send(mediaserver, mpdecision, mpdecision) 6 | 7 | # Permit mediaserver to create sockets with no specific SELinux class. 8 | # TODO: Investigate the specific type of socket. 9 | allow mediaserver self:socket create_socket_perms; 10 | -------------------------------------------------------------------------------- /sepolicy/mpdecision.te: -------------------------------------------------------------------------------- 1 | # CPU governor (root process) 2 | type mpdecision, domain; 3 | type mpdecision_exec, exec_type, file_type; 4 | 5 | # DAC overrides 6 | allow mpdecision self:capability dac_override; 7 | auditallow mpdecision self:capability dac_override; 8 | 9 | # Started by init 10 | init_daemon_domain(mpdecision) 11 | 12 | # CPU hotplug uevent to manage cores 13 | allow mpdecision self:netlink_kobject_uevent_socket { create setopt bind read }; 14 | allow mpdecision self:capability net_admin; 15 | 16 | # Create under /dev/socket/mpdecision 17 | allow mpdecision mpdecision_socket:dir w_dir_perms; 18 | allow mpdecision mpdecision_socket:sock_file create_file_perms; 19 | 20 | # Also support mpdecision creating the /dev/socket/pb socket 21 | type_transition mpdecision socket_device:sock_file mpdecision_socket; 22 | allow mpdecision self:capability chown; 23 | allow mpdecision socket_device:dir w_dir_perms; 24 | 25 | # By-product of setting owner on sock_file (don't allow) 26 | dontaudit mpdecision self:capability fsetid; 27 | 28 | allow mpdecision sysfs_devices_system_cpu:file rw_file_perms; 29 | allow mpdecision sysfs_mpdecision:dir r_dir_perms; 30 | allow mpdecision sysfs_mpdecision:file rw_file_perms; 31 | 32 | # Some files in /sys/devices/system/cpu may pop in and out of existance, 33 | # defeating our attempt to label them. As a result, they could have the 34 | # sysfs label, not the sysfs_devices_system_cpu label. 35 | # Allow write access for now until we figure out a better solution. 36 | # For example, the following files pop in and out of existance: 37 | # /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq 38 | # /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 39 | allow mpdecision sysfs:file write; 40 | 41 | # This is needed to allow mpdecision to look at system_server's 42 | # /proc/PID/status file. 43 | r_dir_file(mpdecision, system_server) 44 | r_dir_file(mpdecision, mediaserver) 45 | 46 | allow mpdecision self:capability sys_nice; 47 | -------------------------------------------------------------------------------- /sepolicy/netmgrd.te: -------------------------------------------------------------------------------- 1 | # Network utilities (radio process) 2 | type netmgrd, domain; 3 | type netmgrd_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(netmgrd) 7 | 8 | # Starts as (root,radio) changes to (radio,radio) 9 | allow netmgrd self:capability { setuid setgid net_admin net_raw }; 10 | 11 | # Support modprobe?? 12 | dontaudit netmgrd self:capability sys_module; 13 | 14 | allow netmgrd self:udp_socket { create ioctl }; 15 | allow netmgrd self:netlink_socket create_socket_perms; 16 | allow netmgrd self:netlink_route_socket { create_socket_perms nlmsg_read nlmsg_write }; 17 | allow netmgrd self:packet_socket create_socket_perms; 18 | 19 | # set net.rmnet* properties. 20 | unix_socket_connect(netmgrd, property, init) 21 | allow netmgrd radio_prop:property_service set; 22 | auditallow netmgrd radio_prop:property_service set; 23 | allow netmgrd net_radio_prop:property_service set; 24 | 25 | # Talk to qmuxd (qmux_radio) 26 | qmux_socket(netmgrd) 27 | 28 | # Runs commands via sh. 29 | # TODO: Convert to direct exec of /system/bin/ip and any other helpers. 30 | allow netmgrd shell_exec:file rx_file_perms; 31 | 32 | # Runs /system/bin/ip addr flush dev commands. 33 | allow netmgrd system_file:file rx_file_perms; 34 | -------------------------------------------------------------------------------- /sepolicy/property.te: -------------------------------------------------------------------------------- 1 | type ctl_rmt_prop, property_type; 2 | -------------------------------------------------------------------------------- /sepolicy/property_contexts: -------------------------------------------------------------------------------- 1 | ctl.rmt u:object_r:ctl_rmt_prop:s0 2 | -------------------------------------------------------------------------------- /sepolicy/qmux.te: -------------------------------------------------------------------------------- 1 | # Qualcomm Management Interface Multiplexer 2 | type qmux, domain; 3 | type qmux_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(qmux) 7 | 8 | # Create sockets under each /dev/socket/qmux_* directory. 9 | allow qmux qmuxd_socket:dir w_dir_perms; 10 | allow qmux qmuxd_socket:sock_file { create setattr getattr unlink }; 11 | 12 | # /dev/hsicctl* node access 13 | allow qmux radio_device:chr_file rw_file_perms; 14 | 15 | # wake lock access 16 | wakelock_use(qmux) 17 | -------------------------------------------------------------------------------- /sepolicy/rild.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) radio sockets to RILD 2 | qmux_socket(rild) 3 | -------------------------------------------------------------------------------- /sepolicy/rmt.te: -------------------------------------------------------------------------------- 1 | # remote storage process (runs as nobody) 2 | type rmt, domain; 3 | type rmt_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(rmt) 7 | 8 | # Drop (user, group) to (nobody, nobody) 9 | allow rmt self:capability { setuid setgid }; 10 | 11 | # opens and reads /dev/block/mmcblk0 12 | allow rmt root_block_device:blk_file r_file_perms; 13 | allow rmt root_block_device:dir r_dir_perms; 14 | 15 | # Allow shared memory logging access 16 | allow rmt shared_log_device:chr_file rw_file_perms; 17 | 18 | allow rmt self:socket create_socket_perms; 19 | allow rmt cgroup:dir { create add_name }; 20 | 21 | # Wake lock access 22 | wakelock_use(rmt) 23 | 24 | # Access property service to set ctl.rmt_storage 25 | unix_socket_connect(rmt, property, init) 26 | allow rmt ctl_rmt_prop:property_service set; 27 | -------------------------------------------------------------------------------- /sepolicy/sensors.te: -------------------------------------------------------------------------------- 1 | # Integrated qualcomm sensor process 2 | type sensors, domain; 3 | type sensors_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(sensors) 7 | 8 | # Change own perms to (nobody,nobody) 9 | allow sensors self:capability { setuid setgid }; 10 | # Chown /data/misc/sensors/debug/ to nobody 11 | allow sensors self:capability chown; 12 | dontaudit sensors self:capability fsetid; 13 | 14 | # Access /data/misc/sensors/debug and /data/system/sensors/settings 15 | allow sensors self:capability dac_read_search; 16 | dontaudit sensors self:capability dac_override; 17 | 18 | # Create /data/app/sensor_ctl_socket (Might want to change location). 19 | type_transition sensors apk_data_file:sock_file sensors_socket "sensor_ctl_socket"; 20 | allow sensors sensors_socket:sock_file create_file_perms; 21 | # Trying to be restrictive with perms on apk_data_file 22 | allow sensors apk_data_file:dir { add_name write }; 23 | # Socket can be deleted. So might have to keep in order to work. 24 | allow sensors apk_data_file:dir remove_name; 25 | 26 | # Create directories and files under /data/misc/sensors 27 | # and /data/system/sensors. Allow generic r/w file access. 28 | allow sensors sensors_data_file:dir create_dir_perms; 29 | allow sensors sensors_data_file:file create_file_perms; 30 | 31 | # Access sensor nodes (/dev/msm_dsps) 32 | allow sensors sensors_device:chr_file rw_file_perms; 33 | 34 | # Access power management controls 35 | allow sensors power_control_device:chr_file w_file_perms; 36 | 37 | # Access to /persist/sensors 38 | allow sensors persist_file:dir r_dir_perms; 39 | allow sensors persist_sensors_file:dir r_dir_perms; 40 | allow sensors persist_sensors_file:file rw_file_perms; 41 | 42 | # Wake lock access 43 | wakelock_use(sensors) 44 | 45 | allow sensors cgroup:dir { create add_name }; 46 | -------------------------------------------------------------------------------- /sepolicy/surfaceflinger.te: -------------------------------------------------------------------------------- 1 | allow surfaceflinger sysfs:file rw_file_perms; 2 | 3 | # Read from /data/local/tmp 4 | allow surfaceflinger shell_data_file:dir search; 5 | allow surfaceflinger shell_data_file:file { open getattr read }; 6 | allow surfaceflinger shell_data_file:lnk_file read; 7 | -------------------------------------------------------------------------------- /sepolicy/system_server.te: -------------------------------------------------------------------------------- 1 | # Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services 2 | # (e.g., LocationManager) 3 | qmux_socket(system_server) 4 | 5 | # PowerManagerService access to sensors socket 6 | unix_socket_connect(system_server, sensors, sensors) 7 | unix_socket_send(system_server, sensors, sensors) 8 | allow system_server sensors:unix_stream_socket sendto; 9 | allow system_server sensors_socket:sock_file r_file_perms; 10 | 11 | # mpdecision socket access 12 | unix_socket_connect(system_server, mpdecision, mpdecision) 13 | unix_socket_send(system_server, mpdecision, mpdecision) 14 | allow system_server mpdecision:unix_stream_socket sendto; 15 | allow system_server mpdecision_socket:dir search; 16 | 17 | # Read /data/misc/sensors or /data/system/sensors. 18 | allow system_server sensors_data_file:dir r_dir_perms; 19 | allow system_server sensors_data_file:file r_file_perms; 20 | 21 | # Access /dev/mdm 22 | allow system_server radio_device:chr_file r_file_perms; 23 | 24 | allow system_server self:netlink_socket create_socket_perms; 25 | -------------------------------------------------------------------------------- /sepolicy/te_macros: -------------------------------------------------------------------------------- 1 | ##################################### 2 | # qmux_socket(clientdomain) 3 | # Allow client domain to connecto and send 4 | # via a local socket to the qmux domain. 5 | # Also allow the client domain to remove 6 | # its own socket. 7 | define(`qmux_socket', ` 8 | type $1_qmuxd_socket, file_type; 9 | file_type_auto_trans($1, qmuxd_socket, $1_qmuxd_socket) 10 | allow $1 qmuxd_socket:dir remove_name; 11 | unix_socket_connect($1, qmuxd, qmux) 12 | allow qmux $1_qmuxd_socket:sock_file { getattr unlink }; 13 | ') 14 | -------------------------------------------------------------------------------- /sepolicy/tee.te: -------------------------------------------------------------------------------- 1 | # Qualcomm Secure Execution Environment Communicator policy 2 | allow tee self:process execmem; 3 | 4 | # /data/misc/playready labeling 5 | type_transition tee system_data_file:dir drm_data_file; 6 | 7 | # Access /data/misc/playready 8 | allow tee system_data_file:dir ra_dir_perms; 9 | allow tee drm_data_file:dir create_dir_perms; 10 | allow tee drm_data_file:file create_file_perms; 11 | 12 | # Access /persist/{widevine,playready} 13 | allow tee persist_file:dir r_dir_perms; 14 | # Write to drm related pieces of persist partition 15 | allow tee persist_drm_file:dir create_dir_perms; 16 | allow tee persist_drm_file:file create_file_perms; 17 | -------------------------------------------------------------------------------- /sepolicy/thermald.te: -------------------------------------------------------------------------------- 1 | # Temperature sensor daemon (root process) 2 | type thermald, domain; 3 | type thermald_exec, exec_type, file_type; 4 | 5 | # Started by init 6 | init_daemon_domain(thermald) 7 | 8 | # DAC overrides 9 | allow thermald self:capability dac_override; 10 | auditallow thermald self:capability dac_override; 11 | 12 | allow thermald self:socket create_socket_perms; 13 | 14 | # CPU hotplug uevent 15 | allow thermald self:netlink_kobject_uevent_socket { create setopt bind read }; 16 | allow thermald self:capability net_admin; 17 | 18 | # Talk to qmuxd (/dev/socket/qmux_radio) 19 | qmux_socket(thermald) 20 | 21 | # Access shared logger (/dev/smem_log) 22 | allow thermald shared_log_device:chr_file rw_file_perms; 23 | 24 | # Access /sys/devices/system/cpu/ 25 | allow thermald sysfs_devices_system_cpu:file rw_file_perms; 26 | 27 | # Some files in /sys/devices/system/cpu may pop in and out of existance, 28 | # defeating our attempt to label them. As a result, they could have the 29 | # sysfs label, not the sysfs_devices_system_cpu label. 30 | # Allow write access for now until we figure out a better solution. 31 | # For example, the following files pop in and out of existance: 32 | # /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq 33 | # /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 34 | allow thermald sysfs:file write; 35 | 36 | # Connect to mpdecision. 37 | allow thermald mpdecision_socket:dir r_dir_perms; 38 | unix_socket_connect(thermald, mpdecision, mpdecision) 39 | -------------------------------------------------------------------------------- /sepolicy/ueventd.te: -------------------------------------------------------------------------------- 1 | allow ueventd { radio_efs_file wifi_data_file }:dir search; 2 | allow ueventd { radio_efs_file wifi_data_file }:file r_file_perms; 3 | -------------------------------------------------------------------------------- /touch_dev.idc: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2012 The Android Open Source Project 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Input Device Calibration File for the Mako touch screen. 17 | # 18 | 19 | device.internal = 1 20 | 21 | touch.deviceType = touchScreen 22 | touch.orientationAware = 1 23 | 24 | touch.size.calibration = diameter 25 | touch.size.scale = 22.5 26 | touch.size.bias = 0 27 | touch.size.isSummed = 0 28 | 29 | touch.pressure.calibration = amplitude 30 | touch.pressure.scale = 0.0125 31 | 32 | touch.orientation.calibration = none 33 | -------------------------------------------------------------------------------- /twrp.fstab: -------------------------------------------------------------------------------- 1 | /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 2 | /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 3 | /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 4 | /data ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata flags=encryptable=/dev/block/platform/msm_sdcc.1/by-name/metadata 5 | /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 6 | /misc emmc /dev/block/platform/msm_sdcc.1/by-name/misc 7 | 8 | -------------------------------------------------------------------------------- /ueventd.mako.rc: -------------------------------------------------------------------------------- 1 | /dev/smd3 0660 bluetooth net_bt_stack 2 | /dev/smd2 0660 bluetooth net_bt_stack 3 | /dev/uinput 0660 system bluetooth 4 | /dev/ttyHS0 0600 bluetooth bluetooth 5 | /dev/ttyMSM0 0600 bluetooth bluetooth 6 | /dev/genlock 0666 system system 7 | /dev/kgsl 0666 system system 8 | /dev/kgsl-3d0 0666 system system 9 | /dev/ion 0664 system system 10 | /dev/msm_rotator 0664 system system 11 | /dev/msm_vidc_dec 0660 system audio 12 | /dev/msm_vidc_dec_sec 0660 system audio 13 | /dev/msm_vidc_enc 0660 system audio 14 | /dev/msm_acdb 0660 system audio 15 | /dev/msm_rtac 0660 system audio 16 | /dev/smd4 0660 system system 17 | /dev/smd7 0640 radio radio 18 | /dev/smdcntl0 0640 radio radio 19 | /dev/smdcntl1 0640 radio radio 20 | /dev/smdcntl2 0640 radio radio 21 | /dev/smdcntl3 0640 radio radio 22 | /dev/smdcntl4 0640 radio radio 23 | /dev/smdcntl5 0640 radio radio 24 | /dev/smdcntl6 0640 radio radio 25 | /dev/smdcntl7 0640 radio radio 26 | /dev/smuxctl32 0640 radio radio 27 | /dev/rmnet_mux_ctrl 0640 radio radio 28 | /dev/hsicctl0 0640 radio radio 29 | /dev/hsicctl1 0640 radio radio 30 | /dev/hsicctl2 0640 radio radio 31 | /dev/hsicctl3 0640 radio radio 32 | /dev/diag 0660 radio radio 33 | /dev/video* 0660 system camera 34 | /dev/media* 0660 system camera 35 | /dev/v4l-subdev* 0660 system camera 36 | /dev/msm_camera/* 0660 system camera 37 | /dev/gemini* 0660 system camera 38 | /dev/msm_dsps 0660 system system 39 | /dev/bcm2079x-i2c 0660 nfc nfc 40 | /dev/qseecom 0660 system drmrpc 41 | /dev/mdm 0660 system radio 42 | /dev/ttyUSB0 0660 system system 43 | /dev/block/mmcblk0p8 0660 system system 44 | /dev/block/mmcblk0p9 0660 system system 45 | /dev/ks_hsic_bridge 0660 system system 46 | /dev/efs_hsic_bridge 0660 system system 47 | -------------------------------------------------------------------------------- /vendorsetup.sh: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2012 The Android Open Source Project 3 | # 4 | # Licensed under the Apache License, Version 2.0 (the "License"); 5 | # you may not use this file except in compliance with the License. 6 | # You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # 16 | 17 | add_lunch_combo aosp_mako-userdebug 18 | add_lunch_combo omni_mako-userdebug 19 | -------------------------------------------------------------------------------- /wpa_supplicant_overlay.conf: -------------------------------------------------------------------------------- 1 | disable_scan_offload=1 2 | tdls_external_control=1 3 | no_ctrl_interface= --------------------------------------------------------------------------------