Loading config/board.mk 0 → 100644 +63 −0 Original line number Diff line number Diff line # MTK Hardware BOARD_HAS_MTK_HARDWARE := true # Display USE_OPENGL_RENDERER := true TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true BOARD_EGL_CFG := vendor/mad/prebuilt/etc/egl.cfg # Boot animation TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true # Audio USE_XML_AUDIO_POLICY_CONF := 1 # Wifi WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_mt66xx BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_mt66xx WIFI_DRIVER_FW_PATH_PARAM := "/dev/wmtWifi" WIFI_DRIVER_FW_PATH_STA := STA WIFI_DRIVER_FW_PATH_AP := AP WIFI_DRIVER_FW_PATH_P2P := P2P # Bluetooth BOARD_HAVE_BLUETOOTH := true # Recovery RECOVERY_VARIANT := twrp # TWRP ifeq ($(RECOVERY_VARIANT), twrp) TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\" TW_NO_REBOOT_BOOTLOADER := true TW_THEME := portrait_hdpi TW_CUSTOM_CPU_TEMP_PATH := /sys/devices/virtual/thermal/thermal_zone1/temp TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true RECOVERY_GRAPHICS_USE_LINELENGTH := true TW_MAX_BRIGHTNESS := 255 BOARD_SUPPRESS_SECURE_ERASE := true TW_INCLUDE_CRYPTO := true TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness TW_MAX_BRIGHTNESS := 255 TW_NO_USB_STORAGE := true BOARD_USE_FRAMEBUFFER_ALPHA_CHANNEL := true TARGET_DISABLE_TRIPLE_BUFFERING := false TW_USE_TOOLBOX := true else # CWM BOARD_RECOVERY_SWIPE := true BOARD_SUPPRESS_EMMC_WIPE := true BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" endif # SELinux BOARD_SEPOLICY_DIRS := \ vendor/mad/sepolicy No newline at end of file config/common.mk +58 −7 Original line number Diff line number Diff line # Bootanimation # Common overlays DEVICE_PACKAGE_OVERLAYS += vendor/mad/overlay # GPS PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/bootanimation/bootanimation.zip:system/media/bootanimation.zip vendor/mad/prebuilt/etc/agps_profiles_conf2.xml:system/etc/agps_profiles_conf2.xml # Packages # Gello PRODUCT_PACKAGES += \ Gello # Snap PRODUCT_PACKAGES += \ Snap # FMRadio PRODUCT_PACKAGES += \ libfmjni \ FMRadio # Filesystem management tools PRODUCT_PACKAGES += \ e2fsck \ fsck.f2fs \ mkfs.f2fs \ make_ext4fs # exFAT PRODUCT_PACKAGES += \ mount.exfat \ fsck.exfat \ mkfs.exfat # NTFS PRODUCT_PACKAGES += \ fsck.ntfs \ mkfs.ntfs \ mount.ntfs # USB PRODUCT_PACKAGES += \ com.android.future.usb.accessory # Sensor Calibration PRODUCT_PACKAGES += \ libem_sensor_jni # Bootanimation PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/bootanimation/bootanimation.zip:system/media/bootanimation.zip PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 # include other configs include vendor/mad/config/permissions.mk include vendor/mad/config/media.mk include vendor/mad/config/wifi.mk include vendor/mad/config/telephony.mk No newline at end of file config/media.mk 0 → 100644 +22 −0 Original line number Diff line number Diff line # Audio PRODUCT_PACKAGES += \ audio_policy.default \ audio.r_submix.default \ audio.a2dp.default \ audio.usb.default \ libtinyalsa \ libtinycompress \ libtinymix \ libtinyxml PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml # Codecs PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml No newline at end of file config/permissions.mk 0 → 100644 +27 −0 Original line number Diff line number Diff line # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \ frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \ frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml No newline at end of file config/telephony.mk 0 → 100644 +10 −0 Original line number Diff line number Diff line # Configs PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \ vendor/mad/prebuilt/etc/ecc_list.xml:system/etc/ecc_list.xml \ vendor/mad/prebuilt/etc/spn-conf.xml:system/etc/spn-conf.xml # Messaging PRODUCT_PACKAGES += \ messaging \ Stk No newline at end of file Loading
config/board.mk 0 → 100644 +63 −0 Original line number Diff line number Diff line # MTK Hardware BOARD_HAS_MTK_HARDWARE := true # Display USE_OPENGL_RENDERER := true TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK := true BOARD_EGL_CFG := vendor/mad/prebuilt/etc/egl.cfg # Boot animation TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true # Audio USE_XML_AUDIO_POLICY_CONF := 1 # Wifi WPA_SUPPLICANT_VERSION := VER_0_8_X BOARD_HOSTAPD_DRIVER := NL80211 BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_mt66xx BOARD_WPA_SUPPLICANT_DRIVER := NL80211 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_mt66xx WIFI_DRIVER_FW_PATH_PARAM := "/dev/wmtWifi" WIFI_DRIVER_FW_PATH_STA := STA WIFI_DRIVER_FW_PATH_AP := AP WIFI_DRIVER_FW_PATH_P2P := P2P # Bluetooth BOARD_HAVE_BLUETOOTH := true # Recovery RECOVERY_VARIANT := twrp # TWRP ifeq ($(RECOVERY_VARIANT), twrp) TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file TARGET_RECOVERY_LCD_BACKLIGHT_PATH := \"/sys/class/leds/lcd-backlight/brightness\" TW_NO_REBOOT_BOOTLOADER := true TW_THEME := portrait_hdpi TW_CUSTOM_CPU_TEMP_PATH := /sys/devices/virtual/thermal/thermal_zone1/temp TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true RECOVERY_GRAPHICS_USE_LINELENGTH := true TW_MAX_BRIGHTNESS := 255 BOARD_SUPPRESS_SECURE_ERASE := true TW_INCLUDE_CRYPTO := true TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness TW_MAX_BRIGHTNESS := 255 TW_NO_USB_STORAGE := true BOARD_USE_FRAMEBUFFER_ALPHA_CHANNEL := true TARGET_DISABLE_TRIPLE_BUFFERING := false TW_USE_TOOLBOX := true else # CWM BOARD_RECOVERY_SWIPE := true BOARD_SUPPRESS_EMMC_WIPE := true BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" TARGET_RECOVERY_PIXEL_FORMAT := "RGBA_8888" endif # SELinux BOARD_SEPOLICY_DIRS := \ vendor/mad/sepolicy No newline at end of file
config/common.mk +58 −7 Original line number Diff line number Diff line # Bootanimation # Common overlays DEVICE_PACKAGE_OVERLAYS += vendor/mad/overlay # GPS PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/bootanimation/bootanimation.zip:system/media/bootanimation.zip vendor/mad/prebuilt/etc/agps_profiles_conf2.xml:system/etc/agps_profiles_conf2.xml # Packages # Gello PRODUCT_PACKAGES += \ Gello # Snap PRODUCT_PACKAGES += \ Snap # FMRadio PRODUCT_PACKAGES += \ libfmjni \ FMRadio # Filesystem management tools PRODUCT_PACKAGES += \ e2fsck \ fsck.f2fs \ mkfs.f2fs \ make_ext4fs # exFAT PRODUCT_PACKAGES += \ mount.exfat \ fsck.exfat \ mkfs.exfat # NTFS PRODUCT_PACKAGES += \ fsck.ntfs \ mkfs.ntfs \ mount.ntfs # USB PRODUCT_PACKAGES += \ com.android.future.usb.accessory # Sensor Calibration PRODUCT_PACKAGES += \ libem_sensor_jni # Bootanimation PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/bootanimation/bootanimation.zip:system/media/bootanimation.zip PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 # include other configs include vendor/mad/config/permissions.mk include vendor/mad/config/media.mk include vendor/mad/config/wifi.mk include vendor/mad/config/telephony.mk No newline at end of file
config/media.mk 0 → 100644 +22 −0 Original line number Diff line number Diff line # Audio PRODUCT_PACKAGES += \ audio_policy.default \ audio.r_submix.default \ audio.a2dp.default \ audio.usb.default \ libtinyalsa \ libtinycompress \ libtinymix \ libtinyxml PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/system/etc/audio_policy_volumes.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/system/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/system/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/system/etc/usb_audio_policy_configuration.xml # Codecs PRODUCT_COPY_FILES += \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml No newline at end of file
config/permissions.mk 0 → 100644 +27 −0 Original line number Diff line number Diff line # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \ frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \ frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml No newline at end of file
config/telephony.mk 0 → 100644 +10 −0 Original line number Diff line number Diff line # Configs PRODUCT_COPY_FILES += \ vendor/mad/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \ vendor/mad/prebuilt/etc/ecc_list.xml:system/etc/ecc_list.xml \ vendor/mad/prebuilt/etc/spn-conf.xml:system/etc/spn-conf.xml # Messaging PRODUCT_PACKAGES += \ messaging \ Stk No newline at end of file