From 733ca0d6fd49886acbb657d472ff695066625371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:34:51 +0100 Subject: [PATCH 01/58] Update vendorsetup.sh --- vendorsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendorsetup.sh b/vendorsetup.sh index 0ef23c3..25a982a 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -21,5 +21,5 @@ # function: add_lunch_combo generic-eng #dd_lunch_combo full_mb526-eng -add_lunch_combo cm_f70n-userdebug +add_lunch_combo omni_f70n-userdebug From 9be9b0cd3f36c3c5ab32b5cc24d70dcb6ab1ac54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:36:04 +0100 Subject: [PATCH 02/58] Update system.prop --- system.prop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system.prop b/system.prop index 28f37c0..c8bd6b2 100644 --- a/system.prop +++ b/system.prop @@ -10,7 +10,7 @@ persist.radio.proc_nw_scan=0 ril.subscription.types=NV,RUIM DEVICE_PROVISIONED=1 telephony.lteOnCdmaDevice=0 -ro.telephony.default_network=0 +ro.telephony.default_network=9 ro.ril.enable.amr.wideband=1 ro.lge.proximity.delay=25 ro.telephony.call_ring.delay=0 @@ -51,6 +51,7 @@ persist.service.crash.enable=0 ro.config.vc_call_vol_steps=6 persist.data.sbp.update=0 ro.lge.proximity.delay=25 +qemu.hw.mainkeys=0 # ART dalvik.vm.dex2oat-flags=--no-watch-dog From 7cd27189fb143f2a490b3cb5d2de536438be535b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:40:07 +0100 Subject: [PATCH 03/58] Update setup-makefiles.sh --- setup-makefiles.sh | 55 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 11 deletions(-) diff --git a/setup-makefiles.sh b/setup-makefiles.sh index d763eee..0e7034e 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -63,14 +63,17 @@ DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/$DEVICE/overlay # Apps PRODUCT_PACKAGES += \\ com.qualcomm.location \\ - QuickBoot \\ qcrilmsgtunnel \\ - shutdownlistener + shutdownlistener \\ + webview \\ + QuickBoot PRODUCT_PACKAGES += \\ libtime_genoff \\ - libTimeService \\ - TimeService + libwebviewchromium \\ + liblisten \\ + libHevcSwDecoder \\ + libmm-abl PRODUCT_PACKAGES += \\ libscale \\ @@ -158,6 +161,16 @@ LOCAL_MODULE_CLASS := APPS LOCAL_CERTIFICATE := platform include \$(BUILD_PREBUILT) +include \$(CLEAR_VARS) +LOCAL_MODULE := webview +LOCAL_MODULE_OWNER := $VENDOR +LOCAL_SRC_FILES := proprietary/app/webview/webview.apk +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := \$(COMMON_ANDROID_PACKAGE_SUFFIX) +LOCAL_MODULE_CLASS := APPS +LOCAL_CERTIFICATE := platform +include \$(BUILD_PREBUILT) + include \$(CLEAR_VARS) LOCAL_MODULE := QuickBoot LOCAL_MODULE_OWNER := $VENDOR @@ -179,19 +192,39 @@ LOCAL_MODULE_CLASS := SHARED_LIBRARIES include \$(BUILD_PREBUILT) include \$(CLEAR_VARS) -LOCAL_MODULE := TimeService +LOCAL_MODULE := libwebviewchromium LOCAL_MODULE_OWNER := $VENDOR -LOCAL_SRC_FILES := proprietary/app/TimeService/TimeService.apk +LOCAL_SRC_FILES := proprietary/lib/libwebviewchromium.so +LOCAL_MODULE_PATH := \$(TARGET_OUT_SHARED_LIBRARIES) LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_SUFFIX := \$(COMMON_ANDROID_PACKAGE_SUFFIX) -LOCAL_MODULE_CLASS := APPS -LOCAL_CERTIFICATE := platform +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := libHevcSwDecoder +LOCAL_MODULE_OWNER := $VENDOR +LOCAL_SRC_FILES := proprietary/vendor/lib/libHevcSwDecoder.so +LOCAL_MODULE_PATH := \$(TARGET_OUT_VENDOR_SHARED_LIBRARIES) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES +include \$(BUILD_PREBUILT) + +include \$(CLEAR_VARS) +LOCAL_MODULE := liblisten +LOCAL_MODULE_OWNER := $VENDOR +LOCAL_SRC_FILES := proprietary/vendor/lib/liblisten.so +LOCAL_MODULE_PATH := \$(TARGET_OUT_VENDOR_SHARED_LIBRARIES) +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_SUFFIX := .so +LOCAL_MODULE_CLASS := SHARED_LIBRARIES include \$(BUILD_PREBUILT) include \$(CLEAR_VARS) -LOCAL_MODULE := libTimeService +LOCAL_MODULE := libmm-abl LOCAL_MODULE_OWNER := $VENDOR -LOCAL_SRC_FILES := proprietary/vendor/lib/libTimeService.so +LOCAL_SRC_FILES := proprietary/vendor/lib/libmm-abl.so LOCAL_MODULE_PATH := \$(TARGET_OUT_VENDOR_SHARED_LIBRARIES) LOCAL_MODULE_TAGS := optional LOCAL_MODULE_SUFFIX := .so From 8926bbb63ee9350fd56463405ff56df1eea67bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:41:56 +0100 Subject: [PATCH 04/58] Update releasetools.py --- releasetools.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/releasetools.py b/releasetools.py index 5818b9c..28fcb0f 100644 --- a/releasetools.py +++ b/releasetools.py @@ -16,16 +16,11 @@ import os TARGET_DIR = os.getenv('OUT') -def InstallEnd_SetSpecificDeviceConfigs(self): + +def FullOTA_InstallEnd(self): self.output_zip.write(os.path.join(TARGET_DIR, "fixup.sh"), "fixup.sh") self.script.AppendExtra('package_extract_file("fixup.sh", "/tmp/fixup.sh");') self.script.AppendExtra('set_metadata("/tmp/fixup.sh", "uid", 0, "gid", 0, "mode", 0755);') self.script.Mount("/system") self.script.AppendExtra('run_program("/tmp/fixup.sh");') - -def FullOTA_InstallEnd(self): - InstallEnd_SetSpecificDeviceConfigs(self) - -def IncrementalOTA_InstallEnd(self): - InstallEnd_SetSpecificDeviceConfigs(self) - + self.script.Unmount("/system"); From 19322a72665613a9161864b4153d03dd67f13de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:44:21 +0100 Subject: [PATCH 05/58] Update proprietary-blobs.txt --- proprietary-blobs.txt | 252 ++++++++++++++++++++---------------------- 1 file changed, 119 insertions(+), 133 deletions(-) diff --git a/proprietary-blobs.txt b/proprietary-blobs.txt index 9094513..d704787 100644 --- a/proprietary-blobs.txt +++ b/proprietary-blobs.txt @@ -1,17 +1,16 @@ -# Time services -bin/time_daemon +# Keystore +etc/firmware/keymaster/keymaster.b00 +etc/firmware/keymaster/keymaster.b02 +etc/firmware/keymaster/keymaster.mdt +etc/firmware/keymaster/keymaster.b01 +etc/firmware/keymaster/keymaster.b03 + +# Firmwares etc/firmware/leia_pfp_470.fw etc/firmware/leia_pm4_470.fw etc/firmware/a225p5_pm4.fw -# Keystore firmware -vendor/firmware/keymaster/keymaster.b00 -vendor/firmware/keymaster/keymaster.b02 -vendor/firmware/keymaster/keymaster.mdt -vendor/firmware/keymaster/keymaster.b01 -vendor/firmware/keymaster/keymaster.b03 - # Venus (media) firmware etc/firmware/venus.b01 etc/firmware/venus.b03 @@ -20,6 +19,7 @@ etc/firmware/venus.b00 etc/firmware/venus.b02 etc/firmware/venus.b04 etc/firmware/venus.mdt + # Graphics firmware etc/firmware/a225_pm4.fw etc/firmware/a300_pm4.fw @@ -27,38 +27,45 @@ etc/firmware/a330_pm4.fw etc/firmware/a225_pfp.fw etc/firmware/a300_pfp.fw etc/firmware/a330_pfp.fw + # Camera firmware etc/firmware/cpp_firmware_v1_1_6.fw etc/firmware/cpp_firmware_v1_1_1.fw etc/firmware/cpp_firmware_v1_2_0.fw +etc/firmware/cpp_firmware_v1_2_1.fw + # NFC Firmware etc/firmware/Signedrompatch_v20.bin etc/firmware/Signedrompatch_v21.bin etc/firmware/Signedrompatch_v24.bin etc/firmware/Signedrompatch_v30.bin etc/firmware/nfc_test.bin +etc/firmware/libpn547_fw.so # Audio -etc/ACDB/Bluetooth_cal.acdb -etc/ACDB/General_cal.acdb -etc/ACDB/Global_cal.acdb -etc/ACDB/Handset_cal.acdb -etc/ACDB/Hdmi_cal.acdb -etc/ACDB/Headset_cal.acdb -etc/ACDB/Speaker_cal.acdb -etc/ACDB/workspaceFile.qwsp +etc/acdbdata/Bluetooth_cal.acdb +etc/acdbdata/General_cal.acdb +etc/acdbdata/Global_cal.acdb +etc/acdbdata/Handset_cal.acdb +etc/acdbdata/Hdmi_cal.acdb +etc/acdbdata/Headset_cal.acdb +etc/acdbdata/Speaker_cal.acdb +etc/acdbdata/workspaceFile.qwsp + vendor/lib/libadiertac.so vendor/lib/libacdbrtac.so vendor/lib/libaudcal.so vendor/lib/libaudioalsa.so -vendor/lib/libacdbmapper.so +-vendor/lib/libacdbmapper.so vendor/lib/libacdbloader.so +vendor/lib/soundfx/libqcbassboost.so +vendor/lib/soundfx/libqcreverb.so +vendor/lib/soundfx/libqcvirt.so bin/fm_qsoc_patches # Listen service vendor/lib/liblistenhardware.so vendor/lib/liblistenjni.so -vendor/lib/liblisten.so vendor/lib/liblistensoundmodel.so # Ril @@ -86,7 +93,7 @@ vendor/lib/libcneapiclient.so vendor/lib/libperipheral_client.so vendor/lib/libsystem_health_mon.so vendor/lib/libxml.so -lib/libmdmdetect.so +vendor/lib/libmdmdetect.so bin/qmuxd bin/rmt_storage bin/netmgrd @@ -115,9 +122,22 @@ vendor/lib/libCB.so vendor/lib/libC2D2.so vendor/lib/libbccQTI.so -# Media -vendor/lib/libWVStreamControlAPI_L3.so +# DRM +bin/qseecomd +etc/permissions/com.google.widevine.software.drm.xml +framework/com.google.widevine.software.drm.jar +lib/libdrmdecrypt.so +vendor/lib/libQSEEComAPI.so +vendor/lib/libdrmdiag.so +vendor/lib/libdrmfs.so +vendor/lib/libdrmtime.so +vendor/lib/librpmb.so +vendor/lib/libssd.so +vendor/lib/libwvdrm_L3.so vendor/lib/libwvm.so +vendor/lib/libWVStreamControlAPI_L3.so +vendor/lib/drm/libdrmwvmplugin.so +vendor/lib/mediadrm/libwvdrmengine.so # Bluetooth bin/bdaddr_loader @@ -130,141 +150,101 @@ lib/liblgftmitem.so # Camera bin/mm-qcamera-daemon lib/hw/camera.msm8226.so -lib/libchromatix_hi543_common.so -lib/libchromatix_hi543_default_video.so -lib/libchromatix_hi543_preview.so -lib/libchromatix_hi543_snapshot.so -lib/libchromatix_imx111_common.so -lib/libchromatix_imx111_default_video.so -lib/libchromatix_imx111_preview.so -lib/libchromatix_imx111_snapshot.so -lib/libchromatix_imx119_common.so -lib/libchromatix_imx119_default_video.so -lib/libchromatix_imx119_preview.so lib/libchromatix_imx179_common.so lib/libchromatix_imx179_default_video.so lib/libchromatix_imx179_preview.so lib/libchromatix_imx179_snapshot.so -lib/libchromatix_imx219_common.so -lib/libchromatix_imx219_default_video.so -lib/libchromatix_imx219_preview.so -lib/libchromatix_imx219_snapshot.so -lib/libmmcamera_hi707.so -lib/libmmcamera_hi543.so -lib/libmmcamera_imx111.so -lib/libmmcamera_imx119.so +lib/libHDR.so lib/libmmcamera_imx179.so -lib/libmmcamera_imx219.so lib/libmmcamera_interface.so lib/libmorpho_image_stab31.so lib/libmorpho_memory_allocator.so lib/libmorpho_panorama_gp.so -lib/libmorpho_panorama_wa_viewer.so +lib/libmorpho_noise_reduction.so lib/libmmjpeg_interface.so lib/libmm-qcamera.so vendor/lib/liboemcamera.so -vendor/lib/libmmcamera2_stats_modules.so -vendor/lib/libmmcamera2_stats_algorithm.so +vendor/lib/libmmjpeg.so +vendor/lib/libjpegdhw.so +vendor/lib/libjpegehw.so +vendor/lib/libqomx_jpegdec.so +vendor/lib/libqomx_jpegenc.so +vendor/lib/libmmqjpeg_codec.so +vendor/lib/libchromatix_imx119_common.so +vendor/lib/libchromatix_imx119_default_video.so +vendor/lib/libchromatix_imx119_preview.so + +vendor/lib/libmmcamera2_c2d_module.so +vendor/lib/libmmcamera2_cpp_module.so +vendor/lib/libmmcamera2_frame_algorithm.so vendor/lib/libmmcamera2_iface_modules.so +vendor/lib/libmmcamera2_imglib_modules.so vendor/lib/libmmcamera2_isp_modules.so -vendor/lib/libmmcamera2_sensor_modules.so +vendor/lib/libmmcamera2_is.so vendor/lib/libmmcamera2_pproc_modules.so -vendor/lib/libmmcamera2_cpp_module.so -vendor/lib/libmmcamera2_c2d_module.so -vendor/lib/libmmcamera2_imglib_modules.so -vendor/lib/libmmcamera2_wnr_module.so +vendor/lib/libmmcamera2_sensor_modules.so +vendor/lib/libmmcamera2_stats_algorithm.so +vendor/lib/libmmcamera2_stats_modules.so vendor/lib/libmmcamera2_vpe_module.so -vendor/lib/libmmcamera_imglib.so +vendor/lib/libmmcamera2_wnr_module.so vendor/lib/libmmcamera_faceproc.so vendor/lib/libmmcamera_hdr_gb_lib.so vendor/lib/libmmcamera_hdr_lib.so -vendor/lib/libmmcamera_wavelet_lib.so +vendor/lib/libmmcamera_imglib.so +vendor/lib/libmmcamera_imx119.so +vendor/lib/libmmcamera_imx179_eeprom.so vendor/lib/libmmcamera_tintless_algo.so vendor/lib/libmmcamera_tintless_bg_pca_algo.so -vendor/lib/libmmcamera_hi351.so -vendor/lib/libmmcamera_hi543_eeprom.so -vendor/lib/libmmcamera_imx111_eeprom.so -vendor/lib/libmmcamera_imx179_eeprom.so -vendor/lib/libmmcamera_imx219_eeprom.so -vendor/lib/libmmcamera_mt9m114.so vendor/lib/libmmcamera_tuning.so -vendor/lib/libmmjpeg.so -vendor/lib/libjpegdhw.so -vendor/lib/libjpegehw.so -vendor/lib/libqomx_jpegdec.so -vendor/lib/libqomx_jpegenc.so -vendor/lib/libmmqjpeg_codec.so -vendor/lib/libmm-hdcpmgr.so -lib/libmm-omxcore.so -lib/libmorpho_noise_reduction.so -vendor/lib/libHevcSwDecoder.so -vendor/lib/libI420colorconvert.so -vendor/lib/libactuator_dw9714.so +vendor/lib/libmmcamera_wavelet_lib.so + vendor/lib/libactuator_dw9714_camcorder.so vendor/lib/libactuator_dw9714_camera.so -vendor/lib/libactuator_dw9714_imx091.so vendor/lib/libactuator_dw9714_imx091_camcorder.so vendor/lib/libactuator_dw9714_imx091_camera.so -vendor/lib/libactuator_dw9714_imx219_475t.so +vendor/lib/libactuator_dw9714_imx091.so vendor/lib/libactuator_dw9714_imx219_475t_camcorder.so vendor/lib/libactuator_dw9714_imx219_475t_camera.so -vendor/lib/libactuator_dw9716.so +vendor/lib/libactuator_dw9714_imx219_475t.so +vendor/lib/libactuator_dw9714.so vendor/lib/libactuator_dw9716_camcorder.so vendor/lib/libactuator_dw9716_camera.so -vendor/lib/libactuator_dw9718.so +vendor/lib/libactuator_dw9716.so vendor/lib/libactuator_dw9718_camcorder.so vendor/lib/libactuator_dw9718_camera.so -vendor/lib/libactuator_dw9718_imx179.so vendor/lib/libactuator_dw9718_imx179_camcorder.so vendor/lib/libactuator_dw9718_imx179_camera.so -vendor/lib/libactuator_dw9718_imx219_495t.so +vendor/lib/libactuator_dw9718_imx179.so vendor/lib/libactuator_dw9718_imx219_495t_camcorder.so vendor/lib/libactuator_dw9718_imx219_495t_camera.so -vendor/lib/libactuator_dw9718_ov8858.so +vendor/lib/libactuator_dw9718_imx219_495t.so vendor/lib/libactuator_dw9718_ov8858_camcorder.so vendor/lib/libactuator_dw9718_ov8858_camera.so -vendor/lib/libactuator_iu074.so +vendor/lib/libactuator_dw9718_ov8858.so +vendor/lib/libactuator_dw9718.so vendor/lib/libactuator_iu074_camcorder.so vendor/lib/libactuator_iu074_camera.so -vendor/lib/libactuator_ov12830.so +vendor/lib/libactuator_iu074.so vendor/lib/libactuator_ov12830_camcorder.so vendor/lib/libactuator_ov12830_camera.so -vendor/lib/libactuator_ov8825.so +vendor/lib/libactuator_ov12830.so vendor/lib/libactuator_ov8825_camcorder.so vendor/lib/libactuator_ov8825_camera.so -vendor/lib/libactuator_rohm_bu64243gwz.so +vendor/lib/libactuator_ov8825.so vendor/lib/libactuator_rohm_bu64243gwz_camcorder.so vendor/lib/libactuator_rohm_bu64243gwz_camera.so -vendor/lib/libchromatix_hi544_common.so -vendor/lib/libchromatix_hi544_default_video.so -vendor/lib/libchromatix_hi544_preview.so -vendor/lib/libchromatix_hi544_snapshot.so -vendor/lib/libchromatix_imx111_common.so -vendor/lib/libchromatix_imx111_default_video.so -vendor/lib/libchromatix_imx111_preview.so -vendor/lib/libchromatix_imx111_snapshot.so -vendor/lib/libchromatix_imx119_common.so -vendor/lib/libchromatix_imx119_default_video.so -vendor/lib/libchromatix_imx119_preview.so -vendor/lib/libchromatix_imx219_common.so -vendor/lib/libchromatix_imx219_default_video.so -vendor/lib/libchromatix_imx219_preview.so -vendor/lib/libchromatix_imx219_snapshot.so -vendor/lib/libmmcamera2_frame_algorithm.so -vendor/lib/libmmcamera2_is.so -vendor/lib/libmmcamera_hi543.so -vendor/lib/libmmcamera_hi544.so -vendor/lib/libmmcamera_hi544_eeprom.so -vendor/lib/libmmcamera_hi707.so -vendor/lib/libmmcamera_imx111.so -vendor/lib/libmmcamera_imx119.so -vendor/lib/libmmcamera_imx219.so - +vendor/lib/libactuator_rohm_bu64243gwz.so # Media lib/libqomx_core.so lib/libdashplayer.so -vendor/lib/libmmipstreamaal.so +vendor/lib/libmmosal.so +vendor/lib/libmmparser.so +vendor/lib/libmm-color-convertor.so +vendor/lib/libI420colorconvert.so +vendor/lib/libDivxDrm.so +vendor/lib/libExtendedExtractor.so +vendor/lib/libSHIMDivxDrm.so vendor/lib/libOmxAacDec.so vendor/lib/libOmxAmrwbplusDec.so vendor/lib/libOmxEvrcDec.so @@ -287,19 +267,35 @@ vendor/lib/libthermalioctl.so vendor/lib/libthermalclient.so # GPS +bin/loc_launcher +bin/location-mq +bin/lowi-server +bin/quipc_igsn +bin/quipc_main +bin/xtwifi-client +bin/xtwifi-inet-agent etc/permissions/com.qualcomm.location.xml lib/libloc_api_v02.so lib/libloc_ds_api.so +vendor/bin/slim_ap_daemon +vendor/lib/hw/flp.default.so +vendor/lib/libalarmservice_jni.so +vendor/lib/libasn1crt.so +vendor/lib/libasn1crtx.so +vendor/lib/libasn1cper.so vendor/lib/libgeofence.so vendor/lib/libizat_core.so vendor/lib/liblbs_core.so vendor/lib/liblocationservice.so vendor/lib/liblowi_client.so vendor/lib/libquipc_os_api.so +vendor/lib/libxtadapter.so vendor/lib/libquipc_os_api.so vendor/lib/libquipc_ulp_adapter.so +vendor/lib/libwifiscanner.so +vendor/lib/libxtwifi_ulp_adaptor.so +vendor/lib/libxtwifi_zpp_adaptor.so vendor/lib/libulp2.so -vendor/lib/libalarmservice_jni.so # Sensors @@ -307,19 +303,20 @@ vendor/lib/hw/sensors.msm8226.so vendor/lib/libsensor1.so vendor/lib/libsensor_reg.so bin/sensors.qcom -vendor/lib/libbmc050.so vendor/lib/libsensor_test.so vendor/lib/libsensor_thresh.so vendor/lib/libsensor_user_cal.so +# just in case +vendor/lib/libsensor_lge_cal.so # Perf bin/mpdecision # Other -vendor/firmware/libpn547_fw.so -vendor/lib/libQSEEComAPI.so --bin/irsc_util +lib/libwebviewchromium_loader.so +lib/libwebviewchromium_plat_support.so bin/mm-pp-daemon +vendor/lib/libdisp-aba.so vendor/lib/libmm-abl-oem.so vendor/lib/libmm-abl.so -bin/ptt_socket_app @@ -331,26 +328,15 @@ vendor/lib/lib-rtpcore.so vendor/lib/lib-rtpdaemoninterface.so vendor/lib/lib-rtpcommon.so vendor/lib/lib-dplmedia.so +framework/qcnvitems.jar +framework/qcrilhook.jar # IRDA -bin/irrcServer -lib/libirrc.so -lib/libirrcClient.so -lib/libirrcJni.so -lib/liblgewg.so --app/LGQRemote.apk --app/QuicksetSDK.apk --media/audio/ui/IR_normal.ogg - -# We need it? - --bin/port-bridge --bin/riva_ramdump --bin/imsdatadaemon --bin/imsqmidaemon --bin/bnrd --bin/ssr_diag --vendor/lib/hw/flp.default.so --vendor/lib/libdisp-aba.so --vendor/lib/libcneapiclient.so --lib/libcnefeatureconfig.so +#bin/irrcServer +#lib/libirrc.so +#lib/libirrcClient.so +#lib/libirrcJni.so +#lib/liblgewg.so +#app/LGQRemote.apk +#app/QuicksetSDK.apk +#media/audio/ui/IR_normal.ogg From 8bc42402e7ca10054edbedd5e88d682f32a5b203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:47:48 +0100 Subject: [PATCH 06/58] Create omni.dependencies --- omni.dependencies | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 omni.dependencies diff --git a/omni.dependencies b/omni.dependencies new file mode 100644 index 0000000..d214cd9 --- /dev/null +++ b/omni.dependencies @@ -0,0 +1,21 @@ + +[ + { + "remote": "omnirom", + "repository": "android_device_qcom_common", + "target_path": "device/qcom/common", + "revision": "android-5.1" + }, + { + "remote": "omnirom", + "repository": "android_hardware_qcom_fm", + "target_path": "hardware/qcom/fm", + "revision": "android-5.1" + }, + { + "remote": "omnirom", + "repository": "android_device_qcom_sepolicy", + "target_path": "device/qcom/sepolicy", + "revision": "android-5.1" + } +] From 7c992b76631f023515bf80ffb557229109aca6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:50:05 +0100 Subject: [PATCH 07/58] Create omni_f70n.mk --- omni_f70n.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 omni_f70n.mk diff --git a/omni_f70n.mk b/omni_f70n.mk new file mode 100644 index 0000000..a995a96 --- /dev/null +++ b/omni_f70n.mk @@ -0,0 +1,22 @@ +# Inherit APNs list +$(call inherit-product, vendor/omni/config/gsm.mk) +# Inherit from our custom product configuration +$(call inherit-product, vendor/omni/config/common.mk) +# Inherit from hardware-specific part of the product configuration +$(call inherit-product, device/lge/g2m/full_f70n.mk) + +# Boot animation +TARGET_SCREEN_WIDTH := 480 +TARGET_SCREEN_HEIGHT := 800 + +# Release name +PRODUCT_RELEASE_NAME := LG F70 +PRODUCT_NAME := omni_f70n +PRODUCT_MANUFACTURER := lge +PRODUCT_MODEL := F70 + +# Kernel inline build +TARGET_KERNEL_SOURCE := kernel/lge/msm8x26 +TARGET_KERNEL_CONFIG := f70n_cm_defconfig +TARGET_VARIANT_CONFIG := f70n_cm_defconfig +TARGET_SELINUX_CONFIG := f70n_cm_defconfig From 2ba5a3b6488cf1cc93d49cdc06cc6097f1468316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 16:57:28 +0100 Subject: [PATCH 08/58] Update device_f70n.mk --- device_f70n.mk | 45 ++++++++++++++++++--------------------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/device_f70n.mk b/device_f70n.mk index da0197a..ab0447a 100644 --- a/device_f70n.mk +++ b/device_f70n.mk @@ -1,4 +1,4 @@ -# + # Copyright (C) 2013 The CyanogenMod Project # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +14,7 @@ # limitations under the License. # -$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) +#$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) @@ -66,8 +66,7 @@ PRODUCT_COPY_FILES += \ device/lge/f70n/prebuilt/etc/mixer_paths.xml:system/etc/mixer_paths.xml \ device/lge/f70n/prebuilt/etc/thermal-engine-8226.conf:system/etc/thermal-engine-8226.conf \ device/lge/f70n/prebuilt/usr/idc/touch_dev.idc:system/usr/idc/touch_dev.idc \ - device/lge/f70n/prebuilt/usr/keylayout/Generic-D4x5.kl:system/usr/keylayout/Generic-D4x5.kl \ - device/lge/f70n/prebuilt/usr/keylayout/Generic-D410.kl:system/usr/keylayout/Generic-D410.kl \ + device/lge/f70n/prebuilt/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \ device/lge/f70n/prebuilt/etc/init.zetaw.bt.sh:system/etc/init.zetaw.bt.sh \ device/lge/f70n/prebuilt/etc/msap.conf:system/etc/msap.conf \ device/lge/f70n/prebuilt/etc/clatd.conf:system/etc/clatd.conf \ @@ -88,10 +87,9 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/lge/f70n/rootdir/fstab.f70n:root/fstab.f70n \ device/lge/f70n/rootdir/init.f70n.rc:root/init.f70n.rc \ - device/lge/f70n/rootdir/init.f70n.rc:root/init.f70n.rc \ + device/lge/f70n/rootdir/init.baseband.sh:root/init.baseband.sh \ device/lge/f70n/rootdir/init.f70n.usb.rc:root/init.f70n.usb.rc \ - device/lge/f70n/rootdir/ueventd.f70n.rc:root/ueventd.f70n.rc \ - device/lge/f70n/rootdir/init.baseband.sh:root/init.baseband.sh + device/lge/f70n/rootdir/ueventd.f70n.rc:root/ueventd.f70n.rc # OTA PRODUCT_COPY_FILES += \ @@ -150,10 +148,6 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ com.cyanogenmod.keyhandler -# Keystore -#PRODUCT_PACKAGES += \ -# keystore.msm8226 - # Crda PRODUCT_PACKAGES += \ crda \ @@ -277,6 +271,11 @@ PRODUCT_PACKAGES += \ hostapd_default.conf \ libnetcmdiface +# Sony timekeep +PRODUCT_PACKAGES += \ + timekeep \ + TimeKeep + # Bluetooth PRODUCT_PROPERTY_OVERRIDES += \ qcom.bt.le_dev_pwr_class=1 \ @@ -306,13 +305,13 @@ PRODUCT_PROPERTY_OVERRIDES += \ mm.enable.smoothstreaming=true PRODUCT_PROPERTY_OVERRIDES += \ - persist.audio.calfile0=/etc/Bluetooth_cal.acdb \ - persist.audio.calfile1=/etc/General_cal.acdb \ - persist.audio.calfile2=/etc/Global_cal.acdb \ - persist.audio.calfile3=/etc/Handset_cal.acdb \ - persist.audio.calfile4=/etc/Hdmi_cal.acdb \ - persist.audio.calfile5=/etc/Headset_cal.acdb \ - persist.audio.calfile6=/etc/Speaker_cal.acdb + persist.audio.calfile0=/etc/acdbdata/Bluetooth_cal.acdb \ + persist.audio.calfile1=/etc/acdbdata/General_cal.acdb \ + persist.audio.calfile2=/etc/acdbdata/Global_cal.acdb \ + persist.audio.calfile3=/etc/acdbdata/Handset_cal.acdb \ + persist.audio.calfile4=/etc/acdbdata/Hdmi_cal.acdb \ + persist.audio.calfile5=/etc/acdbdata/Headset_cal.acdb \ + persist.audio.calfile6=/etc/acdbdata/Speaker_cal.acdb PRODUCT_PROPERTY_OVERRIDES += \ persist.audio.fluence.voicecall=true \ @@ -326,10 +325,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \ use.voice.path.for.pcm.voip=true -# IO Scheduler -PRODUCT_PROPERTY_OVERRIDES += \ - sys.io.scheduler=bfq - # Radio and Telephony PRODUCT_PROPERTY_OVERRIDES += \ ro.use_data_netmgrd=true \ @@ -360,12 +355,8 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.ksm.default=1 -# CmUpdater -PRODUCT_PROPERTY_OVERRIDES += \ - cm.updater.uri=http://api.quarx.cm-for.us/api - # Screen density -PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_CONFIG := normal hdpi PRODUCT_AAPT_PREF_CONFIG := hdpi $(call inherit-product, vendor/lge/f70n/f70n-vendor.mk) From fc2a4236a708cabbecaf96e99a1d658689e3a773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 17:03:35 +0100 Subject: [PATCH 09/58] Update BoardConfig.mk --- BoardConfig.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index d416d98..3886baa 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -26,7 +26,7 @@ TARGET_NO_BOOTLOADER := true USE_HOST_LEX := yes PRODUCT_PREBUILT_WEBVIEWCHROMIUM := yes -TARGET_SPECIFIC_HEADER_PATH := device/lge/f70n/include +TARGET_SPECIFIC_HEADER_PATH += device/lge/f70n/include # Releasetools TARGET_RELEASETOOLS_EXTENSIONS := device/lge/f70n @@ -180,5 +180,5 @@ include device/qcom/sepolicy/sepolicy.mk BOARD_SEPOLICY_DIRS += \ device/lge/f70n/sepolicy -# BOARD_SEPOLICY_UNION += \ -# timekeep.te +BOARD_SEPOLICY_UNION += \ + timekeep.te From 3495c240cabde7b005099a0924a623236e05ebfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 17:04:38 +0100 Subject: [PATCH 10/58] Update AndroidProducts.mk --- AndroidProducts.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index cca3d7b..4372f2d 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -1,2 +1,3 @@ PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/full_f70n.mk + $(LOCAL_DIR)/full_f70n.mk \ + $(LOCAL_DIR)/omni_f70n.mk From 627b2f08c6234883febfa1d9cf909407b5820a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 17:06:21 +0100 Subject: [PATCH 11/58] Update Android.mk --- Android.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Android.mk b/Android.mk index a79dba1..6fdde97 100644 --- a/Android.mk +++ b/Android.mk @@ -19,4 +19,11 @@ LOCAL_PATH := $(call my-dir) include $(call all-makefiles-under,$(LOCAL_PATH)) +include $(CLEAR_VARS) + +# Symlink chromium library +$(shell mkdir -p $(TARGET_OUT)/app/webview/lib/arm; \ + ln -s /system/lib/libwebviewchromium.so \ + $(TARGET_OUT)/app/webview/lib/arm/libwebviewchromium.so) + endif From cffd07f04e760ec01fc87ea4e9da2ab9be7d5370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 17:07:34 +0100 Subject: [PATCH 12/58] Update VibratorHW.java --- cmhw/org/cyanogenmod/hardware/VibratorHW.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmhw/org/cyanogenmod/hardware/VibratorHW.java b/cmhw/org/cyanogenmod/hardware/VibratorHW.java index 84bbe1d..1204d1e 100644 --- a/cmhw/org/cyanogenmod/hardware/VibratorHW.java +++ b/cmhw/org/cyanogenmod/hardware/VibratorHW.java @@ -22,7 +22,7 @@ public class VibratorHW { - private static String AMP_PATH = "/sys/devices/virtual/timed_output/vibrator/vtg_level"; + private static String AMP_PATH = "/sys/devices/platform/tspdrv/nforce_timed"; public static boolean isSupported() { File file = new File(AMP_PATH); From 847859f89f050558cf1c2ca28411fa1c0dd88b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 18:30:34 +0100 Subject: [PATCH 13/58] Update lights.c --- liblight/lights.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblight/lights.c b/liblight/lights.c index 633f0ff..583100a 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -141,7 +141,7 @@ struct hw_module_t HAL_MODULE_INFO_SYM = { .version_major = 1, .version_minor = 0, .id = LIGHTS_HARDWARE_MODULE_ID, - .name = "LG L90 lights Module", + .name = "MSM8226 lights Module", .author = "Quarx, Google", .methods = &lights_module_methods, }; From 1593b6955df8d7306abe0f01e76a0db95623317b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 18:31:03 +0100 Subject: [PATCH 14/58] Update Android.mk From f86bd1c2244fcb0829cc7c4a21924d4f7d011cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 20 Dec 2015 19:17:23 +0100 Subject: [PATCH 15/58] Update Android.mk From 6b5eea5de39d1df2e8f486b9135ba1437cfc95b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 16:28:22 +0100 Subject: [PATCH 16/58] Update BoardConfig.mk --- BoardConfig.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 3886baa..de98a13 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -162,7 +162,11 @@ BOARD_SUPPRESS_EMMC_WIPE := true RECOVERY_SDCARD_ON_DATA := true HAVE_SELINUX := true BOARD_HAS_NO_MISC_PARTITION := true -TARGET_RECOVERY_QCOM_RTC_FIX := true + +#TW_NEVER_UNMOUNT_SYSTEM := true + +TW_NO_REBOOT_BOOTLOADER := true + +TW_CUSTOM_POWER_BUTTON := 116 + +#TWRP_EVENT_LOGGING := true + TARGET_RECOVERY_QCOM_RTC_FIX := true # Enable Minikin text layout engine (will be the default soon) USE_MINIKIN := true From 3469d2f9a77c87e920298aa854241ca913531b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:00:08 +0100 Subject: [PATCH 17/58] Update bdroid_buildcfg.h --- bluetooth/bdroid_buildcfg.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index cc934ab..1914b35 100644 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -18,9 +18,11 @@ #ifndef _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H -#define BTM_DEF_LOCAL_NAME "LF F70" -#define BTA_DISABLE_DELAY 1000 /* in milliseconds */ -#define BLUETOOTH_QCOM_SW TRUE -#define BLUETOOTH_QCOM_LE_INTL_SCAN TRUE -#define BTC_INCLUDED TRUE +#define BTM_DEF_LOCAL_NAME "LG F70N" +#define BLUETOOTH_QTI_SW TRUE +// Disables read remote device feature +#define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE +#define MAX_L2CAP_CHANNELS 16 +// skips conn update at conn completion +#define BTA_BLE_SKIP_CONN_UPD FALSE #endif From 8104c0cd812e6bc1254656b441cd19f5979eb19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:06:28 +0100 Subject: [PATCH 18/58] add d315 --- init/init_f70n.c | 55 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/init/init_f70n.c b/init/init_f70n.c index b33fda8..caf5fe6 100644 --- a/init/init_f70n.c +++ b/init/init_f70n.c @@ -1,6 +1,5 @@ /* Copyright (c) 2014, The Linux Foundation. All rights reserved. - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -13,7 +12,6 @@ * Neither the name of The Linux Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT @@ -66,7 +64,6 @@ int check_cmdline(char param[]) { return 0; } - void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char serial[PROP_VALUE_MAX]; @@ -77,9 +74,51 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar UNUSED(msm_ver); UNUSED(board_type); - property_set("ro.product.device", "f70n"); - property_set("ro.product.model", "LG-D315"); - property_set("ro.nfc.port", "I2C"); - property_set("persist.radio.multisim.config", ""); - property_set("telephony.lteOnCdmaDevice", "1"); + property_get("ro.boot.serialno", serial); + if (strncmp(serial, "LGD618", 6) == 0) { + /* D618 */ + property_set("ro.product.device", "g2mds"); + property_set("ro.product.model", "LG-D618"); + property_set("ro.build.description", "g2mds_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); + property_set("ro.build.fingerprint", "lge/g2mds_global_com/g2mds:5.1.1/LMY48Y/151391007575d:user/release-keys"); + property_set("persist.radio.multisim.config", "dsds"); + property_set("ro.telephony.hidelte", "1"); + } else if (strncmp(serial, "LGD610", 6) == 0) { + /* D610 */ + property_set("ro.product.model", "LG-D610"); + property_set("ro.product.device", "g2mss"); + property_set("ro.build.description", "g2mss_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); + property_set("ro.build.fingerprint", "lge/g2mss_global_com/g2mss:5.1.1/LMY48Y/151391007575d:user/release-keys"); + property_set("persist.radio.multisim.config", ""); + property_set("ro.telephony.hidelte", "1"); + } else if (strncmp(serial, "LGD620", 6) == 0) { + /* D620 */ + property_set("ro.product.model", "LG-D620"); + property_set("ro.product.device", "g2m"); + property_set("ro.nfc.port", "I2C"); + property_set("ro.build.description", "g2m_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); + property_set("ro.build.fingerprint", "lge/g2m_global_com/g2m:5.1.1/LMY48Y/151391007575d:user/release-keys"); + property_set("persist.radio.multisim.config", ""); + property_set("ro.telephony.hidelte", "0"); + + } else if (strncmp(serial, "LGD620", 6) == 0) { + /* D315 */ + property_set("ro.product.model", "LG-D315"); + property_set("ro.product.device", "f70n"); + property_set("ro.nfc.port", "I2C"); + property_set("ro.build.description", "f70n_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); + property_set("ro.build.fingerprint", "lge/f70n_global_com/g2m:5.1.1/LMY48Y/151391007575d:user/release-keys"); + property_set("persist.radio.multisim.config", ""); + property_set("ro.telephony.hidelte", "0"); + + } else { + /* XXX */ + property_set("ro.product.device", "g2m"); + property_set("ro.product.model", "Please write your model name to nikich340@gmail.com"); + property_set("persist.radio.multisim.config", ""); + property_set("ro.telephony.hidelte", "0"); + } + property_get("ro.product.device", device); + strlcpy(devicename, device, sizeof(devicename)); + ERROR("Found hardware id: %s setting build properties for %s device\n", serial, devicename); } From edb17243bda385a5ad4c9ad6cac37457aa8e92cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:07:03 +0100 Subject: [PATCH 19/58] add D315 --- init/init_f70n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init_f70n.c b/init/init_f70n.c index caf5fe6..4cd8515 100644 --- a/init/init_f70n.c +++ b/init/init_f70n.c @@ -101,7 +101,7 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar property_set("persist.radio.multisim.config", ""); property_set("ro.telephony.hidelte", "0"); - } else if (strncmp(serial, "LGD620", 6) == 0) { + } else if (strncmp(serial, "LGD315", 6) == 0) { /* D315 */ property_set("ro.product.model", "LG-D315"); property_set("ro.product.device", "f70n"); From a23837ea0d6b3dfe026d939992f7d2e5a8e7a376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:08:50 +0100 Subject: [PATCH 20/58] Remove d6xx --- init/init_f70n.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/init/init_f70n.c b/init/init_f70n.c index 4cd8515..75fc351 100644 --- a/init/init_f70n.c +++ b/init/init_f70n.c @@ -75,33 +75,7 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar UNUSED(board_type); property_get("ro.boot.serialno", serial); - if (strncmp(serial, "LGD618", 6) == 0) { - /* D618 */ - property_set("ro.product.device", "g2mds"); - property_set("ro.product.model", "LG-D618"); - property_set("ro.build.description", "g2mds_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); - property_set("ro.build.fingerprint", "lge/g2mds_global_com/g2mds:5.1.1/LMY48Y/151391007575d:user/release-keys"); - property_set("persist.radio.multisim.config", "dsds"); - property_set("ro.telephony.hidelte", "1"); - } else if (strncmp(serial, "LGD610", 6) == 0) { - /* D610 */ - property_set("ro.product.model", "LG-D610"); - property_set("ro.product.device", "g2mss"); - property_set("ro.build.description", "g2mss_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); - property_set("ro.build.fingerprint", "lge/g2mss_global_com/g2mss:5.1.1/LMY48Y/151391007575d:user/release-keys"); - property_set("persist.radio.multisim.config", ""); - property_set("ro.telephony.hidelte", "1"); - } else if (strncmp(serial, "LGD620", 6) == 0) { - /* D620 */ - property_set("ro.product.model", "LG-D620"); - property_set("ro.product.device", "g2m"); - property_set("ro.nfc.port", "I2C"); - property_set("ro.build.description", "g2m_global_com-user 5.1.1 LMY48Y 151391007575d release-keys"); - property_set("ro.build.fingerprint", "lge/g2m_global_com/g2m:5.1.1/LMY48Y/151391007575d:user/release-keys"); - property_set("persist.radio.multisim.config", ""); - property_set("ro.telephony.hidelte", "0"); - - } else if (strncmp(serial, "LGD315", 6) == 0) { + if (strncmp(serial, "LGD315", 6) == 0) { /* D315 */ property_set("ro.product.model", "LG-D315"); property_set("ro.product.device", "f70n"); From f165298347a243dd654cf63988915dfee2dbb0ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:19:15 +0100 Subject: [PATCH 21/58] Update and rename egl.cfg to fixup.sh --- prebuilt/egl.cfg | 2 -- prebuilt/fixup.sh | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 prebuilt/egl.cfg create mode 100644 prebuilt/fixup.sh diff --git a/prebuilt/egl.cfg b/prebuilt/egl.cfg deleted file mode 100644 index 2a11ba2..0000000 --- a/prebuilt/egl.cfg +++ /dev/null @@ -1,2 +0,0 @@ -0 0 android -0 1 adreno diff --git a/prebuilt/fixup.sh b/prebuilt/fixup.sh new file mode 100644 index 0000000..96edd01 --- /dev/null +++ b/prebuilt/fixup.sh @@ -0,0 +1,10 @@ +#!/sbin/sh + +model=`cat /proc/cmdline | sed 's/.*model.name=\([^ ]*\).*/\1/'` + +if [ "$model" = "LG-D315" ] ; then + rm /system/etc/permissions/android.hardware.nfc.xml + rm /system/etc/permissions/android.hardware.nfc.hce.xml + rm /system/lib/hw/nfc_nci.pn54x.default.so + rm -rf /system/app/NfcNci +fi From 41d928b21a9efb29ba5f0dd203879bea4e693804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:21:40 +0100 Subject: [PATCH 22/58] Update touch_dev.idc --- prebuilt/usr/idc/touch_dev.idc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prebuilt/usr/idc/touch_dev.idc b/prebuilt/usr/idc/touch_dev.idc index 8814439..c2d1969 100644 --- a/prebuilt/usr/idc/touch_dev.idc +++ b/prebuilt/usr/idc/touch_dev.idc @@ -25,6 +25,7 @@ touch.orientationAware = 1 # Gesture Mode Parameters touch.gestureMode = spots + # Size touch.size.calibration = geometric touch.size.scale = 1 @@ -42,3 +43,4 @@ touch.pressure.scale = 0.004 touch.orientation.calibration = none touch.distance.calibration = none touch.distance.scale = 1 +keyboard.layout = gpio-keys From 067a378491784ee778cafa30ede7d971389d0e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:22:42 +0100 Subject: [PATCH 23/58] Delete Vendor_0079_Product_0011.kl --- .../usr/keylayout/Vendor_0079_Product_0011.kl | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_0079_Product_0011.kl diff --git a/prebuilt/usr/keylayout/Vendor_0079_Product_0011.kl b/prebuilt/usr/keylayout/Vendor_0079_Product_0011.kl deleted file mode 100644 index 2ae2a01..0000000 --- a/prebuilt/usr/keylayout/Vendor_0079_Product_0011.kl +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Classic NES Controller - -key 289 BUTTON_A -key 290 BUTTON_B -key 297 BUTTON_START -key 296 BUTTON_SELECT - -axis 0x00 HAT_X -axis 0x01 HAT_Y From 1ced7916a052be9df1c070145faa8c7fff1e80e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:01 +0100 Subject: [PATCH 24/58] Delete AVRCP.kl --- prebuilt/usr/keylayout/AVRCP.kl | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 prebuilt/usr/keylayout/AVRCP.kl diff --git a/prebuilt/usr/keylayout/AVRCP.kl b/prebuilt/usr/keylayout/AVRCP.kl deleted file mode 100644 index 736b43c..0000000 --- a/prebuilt/usr/keylayout/AVRCP.kl +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (C) 2010 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Key layout used for Bluetooth AVRCP support. - -key 200 MEDIA_PLAY WAKE -key 201 MEDIA_PAUSE WAKE -key 166 MEDIA_STOP WAKE -key 163 MEDIA_NEXT WAKE -key 165 MEDIA_PREVIOUS WAKE -key 168 MEDIA_REWIND WAKE -key 208 MEDIA_FAST_FORWARD WAKE From 284589fb16ab33ac88044759c0103d00ac0b0cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:07 +0100 Subject: [PATCH 25/58] Delete Vendor_045e_Product_028e.kl --- .../usr/keylayout/Vendor_045e_Product_028e.kl | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_045e_Product_028e.kl diff --git a/prebuilt/usr/keylayout/Vendor_045e_Product_028e.kl b/prebuilt/usr/keylayout/Vendor_045e_Product_028e.kl deleted file mode 100644 index 301601a..0000000 --- a/prebuilt/usr/keylayout/Vendor_045e_Product_028e.kl +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (C) 2011 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# XBox 360 USB Controller -# - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 314 BACK -key 315 BUTTON_START -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -# Left and right stick. -# The reported value for flat is 128 out of a range from -32767 to 32768, which is absurd. -# This confuses applications that rely on the flat value because the joystick actually -# settles in a flat range of +/- 4096 or so. -axis 0x00 X flat 4096 -axis 0x01 Y flat 4096 -axis 0x03 Z flat 4096 -axis 0x04 RZ flat 4096 - -# Triggers. -axis 0x02 LTRIGGER -axis 0x05 RTRIGGER - -# Hat. -axis 0x10 HAT_X -axis 0x11 HAT_Y From 002eb7e44a761caf498fc6d302b1732fc5341014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:13 +0100 Subject: [PATCH 26/58] Delete Vendor_046d_Product_c216.kl --- .../usr/keylayout/Vendor_046d_Product_c216.kl | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c216.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c216.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c216.kl deleted file mode 100644 index 6743323..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c216.kl +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (C) 2011 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Logitech Dual Action Controller -# - -key 0x120 BUTTON_A -key 0x123 BUTTON_B -key 0x121 BUTTON_X -key 0x122 BUTTON_Y -key 0x124 BUTTON_L1 -key 0x125 BUTTON_R1 -key 0x126 BUTTON_L2 -key 0x127 BUTTON_R2 -key 0x128 BUTTON_SELECT -key 0x129 BUTTON_START -key 0x12a BUTTON_THUMBL -key 0x12b BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x02 Z -axis 0x05 RZ -axis 0x10 HAT_X -axis 0x11 HAT_Y From 38ad3c4e2073eb2fbf5d14df6254aef56abaf01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:20 +0100 Subject: [PATCH 27/58] Delete Vendor_046d_Product_c219.kl --- .../usr/keylayout/Vendor_046d_Product_c219.kl | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c219.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c219.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c219.kl deleted file mode 100644 index 2fa964c..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c219.kl +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Logitech Logitech Cordless RumblePad 2 - -key 305 BUTTON_A -key 306 BUTTON_B -key 304 BUTTON_X -key 307 BUTTON_Y -key 308 BUTTON_L1 -key 309 BUTTON_R1 -key 310 BUTTON_L2 -key 311 BUTTON_R2 -key 313 BUTTON_START -key 312 BACK -key 314 BUTTON_THUMBL -key 315 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x02 Z -axis 0x05 RZ -axis 0x10 HAT_X -axis 0x11 HAT_Y From 17a67d793b869057b3a6a1871b664e84191bca35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:24 +0100 Subject: [PATCH 28/58] Delete Vendor_046d_Product_c21f.kl --- .../usr/keylayout/Vendor_046d_Product_c21f.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c21f.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c21f.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c21f.kl deleted file mode 100644 index a9ba378..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c21f.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Logitech Wireless Gamepad F710 - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From 6f4146d0e27e082da7bf19fc35842235d11fc9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:30 +0100 Subject: [PATCH 29/58] Delete Vendor_046d_Product_c294.kl --- .../usr/keylayout/Vendor_046d_Product_c294.kl | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c294.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c294.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c294.kl deleted file mode 100644 index 5492f49..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c294.kl +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (C) 2011 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Logitech G25 Racing Wheel (in Compatibility Mode) -# - -# 4 way buttons above hat -key 0x121 BUTTON_A -key 0x123 BUTTON_B -key 0x120 BUTTON_X -key 0x122 BUTTON_Y - -# Row of buttons under hat -key 0x12b BUTTON_1 -key 0x128 BUTTON_2 -key 0x129 BUTTON_3 -key 0x12a BUTTON_4 - -# Gear shift positions -# 0x12a top-left gear (aliased as BUTTON_4) -# 0x12b bottom-left gear (aliased as BUTTON_1) - -# Buttons on wheel -key 0x127 BUTTON_L1 -key 0x126 BUTTON_R1 - -# Toggles under wheel -key 0x125 BUTTON_L2 -key 0x124 BUTTON_R2 - -# Hat -axis 0x10 HAT_X -axis 0x11 HAT_Y - -# Steering Wheel -axis 0x00 WHEEL - -# Accelerator / Brake -# 00..7e : accelerator -# 80..ff : brake -axis 0x01 split 0x7f GAS BRAKE From f5e8022effcfcf26c538e09aa7e502bb6699720c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:36 +0100 Subject: [PATCH 30/58] Delete Vendor_046d_Product_c299.kl --- .../usr/keylayout/Vendor_046d_Product_c299.kl | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c299.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c299.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c299.kl deleted file mode 100644 index d42963d..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c299.kl +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (C) 2011 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Logitech G25 Racing Wheel (in Native Mode) -# - -# 4 way buttons above hat -key 0x121 BUTTON_A -key 0x123 BUTTON_B -key 0x120 BUTTON_X -key 0x122 BUTTON_Y - -# Row of buttons under hat -key 0x12b BUTTON_1 -key 0x128 BUTTON_2 -key 0x129 BUTTON_3 -key 0x12a BUTTON_4 - -# Gear shift positions -key 0x12c BUTTON_5 -key 0x12d BUTTON_6 -key 0x12e BUTTON_7 -key 0x12f BUTTON_8 -key 0x2d0 BUTTON_9 -key 0x2d1 BUTTON_10 -key 0x2d2 BUTTON_11 - -# Buttons on wheel -key 0x127 BUTTON_L1 -key 0x126 BUTTON_R1 - -# Toggles under wheel -key 0x125 BUTTON_L2 -key 0x124 BUTTON_R2 - -# Hat -axis 0x10 HAT_X -axis 0x11 HAT_Y - -# Steering Wheel -axis 0x00 WHEEL - -# Clutch -axis 0x01 invert GENERIC_1 - -# Accelerator -axis 0x02 invert GAS - -# Brake -axis 0x05 invert BRAKE From 475662d9fc5aea6677694a12e05e3861e35bc6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:44 +0100 Subject: [PATCH 31/58] Delete Vendor_046d_Product_c532.kl --- .../usr/keylayout/Vendor_046d_Product_c532.kl | 133 ------------------ 1 file changed, 133 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_046d_Product_c532.kl diff --git a/prebuilt/usr/keylayout/Vendor_046d_Product_c532.kl b/prebuilt/usr/keylayout/Vendor_046d_Product_c532.kl deleted file mode 100644 index 741c2e1..0000000 --- a/prebuilt/usr/keylayout/Vendor_046d_Product_c532.kl +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright (C) 2010 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Logitech Revue Wireless keyboard -# -# Notes: -# - The GRAVE key is emulated by the keyboard. -# ALT + LEFT_BRACKET produces GRAVE. -# ALT + RIGHT_BRACKET produces SHIFT + GRAVE. -# - FORWARD_DEL is produced by fn + BACKSPACE -# - PAGE_UP / PAGE_DOWN is produced by fn + CHANNEL_UP / CHANNEL_DOWN -# - The AVR / STB / TV power and input buttons seem to be non-functional -# as well as several of the other fn buttons and the PIP button? - -key 1 ESCAPE -key 2 1 -key 3 2 -key 4 3 -key 5 4 -key 6 5 -key 7 6 -key 8 7 -key 9 8 -key 10 9 -key 11 0 -key 12 MINUS -key 13 EQUALS -key 14 DEL -key 15 TAB -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Y -key 22 U -key 23 I -key 24 O -key 25 P -key 26 LEFT_BRACKET -key 27 RIGHT_BRACKET -key 28 ENTER -key 29 CTRL_LEFT -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -key 39 SEMICOLON -key 40 APOSTROPHE -key 41 GRAVE -key 42 SHIFT_LEFT -key 43 BACKSLASH -key 44 Z -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -key 53 SLASH -key 54 SHIFT_RIGHT -key 56 ALT_RIGHT -key 57 SPACE -key 58 CAPS_LOCK -key 59 F1 -key 60 F2 -key 61 F3 -key 62 F4 -key 63 F5 -key 64 F6 -key 65 F7 -key 66 F8 -key 67 F9 -key 68 F10 -key 87 F11 -key 88 F12 -key 96 DPAD_CENTER -key 97 CTRL_RIGHT -key 102 MOVE_HOME -key 103 DPAD_UP -key 104 PAGE_UP -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 107 MOVE_END -key 108 DPAD_DOWN -key 109 PAGE_DOWN -key 110 NUMPAD_ENTER -key 111 FORWARD_DEL -key 113 VOLUME_MUTE -key 114 VOLUME_DOWN -key 115 VOLUME_UP -key 119 MEDIA_PAUSE -key 125 SEARCH -key 127 MENU -key 156 BOOKMARK -key 158 BACK -key 163 MEDIA_NEXT -key 165 MEDIA_PREVIOUS -key 166 MEDIA_STOP -key 167 MEDIA_RECORD -key 168 MEDIA_REWIND -key 172 HOME -key 207 MEDIA_PLAY -key 208 MEDIA_FAST_FORWARD -# key 288 left mouse button -# key 289 right mouse button (fn + button) -key 362 GUIDE -key 366 DVR -key 377 TV -key 402 CHANNEL_UP -key 403 CHANNEL_DOWN -key 418 ZOOM_IN -key 419 ZOOM_OUT - From d4817aaf2409e9f6b946ff4fef5b6234abbd1f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:24:58 +0100 Subject: [PATCH 32/58] Delete Vendor_054c_Product_0268.kl --- .../usr/keylayout/Vendor_054c_Product_0268.kl | 76 ------------------- 1 file changed, 76 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_054c_Product_0268.kl diff --git a/prebuilt/usr/keylayout/Vendor_054c_Product_0268.kl b/prebuilt/usr/keylayout/Vendor_054c_Product_0268.kl deleted file mode 100644 index 7c60137..0000000 --- a/prebuilt/usr/keylayout/Vendor_054c_Product_0268.kl +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright (C) 2011 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Sony Playstation(R)3 Controller -# - -key 0x124 DPAD_UP -key 0x125 DPAD_RIGHT -key 0x126 DPAD_DOWN -key 0x127 DPAD_LEFT - -key 0x120 BUTTON_SELECT -key 0x123 BUTTON_START -key 0x12e BUTTON_A -key 0x12d BUTTON_B -key 0x12f BUTTON_X -key 0x12c BUTTON_Y -key 0x12a BUTTON_L1 -key 0x12b BUTTON_R1 -key 0x128 BUTTON_L2 -key 0x129 BUTTON_R2 -key 0x121 BUTTON_THUMBL -key 0x122 BUTTON_THUMBR - -# PS key -key 0x2d0 HOME - -# Left Analog Stick -axis 0x00 X -axis 0x01 Y - -# Right Analog Stick -axis 0x02 Z -axis 0x05 RZ - -# DPAD -# axis 0x2c -HAT_Y -# axis 0x2d +HAT_X -# axis 0x2e +HAT_Y -# axis 0x2f -HAT_X - -# L2 trigger -axis 0x30 LTRIGGER - -# R2 trigger -axis 0x31 RTRIGGER - -# L1 trigger -# axis 0x32 - -# R1 trigger -# axis 0x33 - -# Triangle -# axis 0x34 - -# Circle -# axis 0x35 - -# Cross -# axis 0x36 - -# Square -# axis 0x37 From 38f1c1053c2721eb5d095d5ff720aa0251cb4357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:03 +0100 Subject: [PATCH 33/58] Delete Vendor_0583_Product_2060.kl --- .../usr/keylayout/Vendor_0583_Product_2060.kl | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_0583_Product_2060.kl diff --git a/prebuilt/usr/keylayout/Vendor_0583_Product_2060.kl b/prebuilt/usr/keylayout/Vendor_0583_Product_2060.kl deleted file mode 100644 index 92c8a14..0000000 --- a/prebuilt/usr/keylayout/Vendor_0583_Product_2060.kl +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# ION GO PAD - -key 288 BUTTON_A -key 289 BUTTON_B -key 290 BUTTON_X -key 291 BUTTON_Y -key 294 BUTTON_L1 -key 295 BUTTON_R1 -key 292 BUTTON_L2 -key 293 BUTTON_R2 - -axis 0x00 HAT_X -axis 0x01 HAT_Y From 6c035ea4d68a7770150d123896a921d6f431be2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:09 +0100 Subject: [PATCH 34/58] Delete Vendor_05ac_Product_0239.kl --- .../usr/keylayout/Vendor_05ac_Product_0239.kl | 119 ------------------ 1 file changed, 119 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_05ac_Product_0239.kl diff --git a/prebuilt/usr/keylayout/Vendor_05ac_Product_0239.kl b/prebuilt/usr/keylayout/Vendor_05ac_Product_0239.kl deleted file mode 100644 index b0c358e..0000000 --- a/prebuilt/usr/keylayout/Vendor_05ac_Product_0239.kl +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright (C) 2010 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Apple Wireless Keyboard -# -# Notes: -# - Keys such as PAGE_UP and FORWARD_DEL are produced using the -# function key. -# - Special function keys for brightness control, etc. are not -# implemented here. - -key 1 ESCAPE -key 2 1 -key 3 2 -key 4 3 -key 5 4 -key 6 5 -key 7 6 -key 8 7 -key 9 8 -key 10 9 -key 11 0 -key 12 MINUS -key 13 EQUALS -key 14 DEL -key 15 TAB -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Y -key 22 U -key 23 I -key 24 O -key 25 P -key 26 LEFT_BRACKET -key 27 RIGHT_BRACKET -key 28 ENTER -key 29 CTRL_LEFT -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -key 39 SEMICOLON -key 40 APOSTROPHE -key 41 GRAVE -key 42 SHIFT_LEFT -key 43 BACKSLASH -key 44 Z -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -key 53 SLASH -key 54 SHIFT_RIGHT -key 56 ALT_LEFT -key 57 SPACE -key 58 CAPS_LOCK -key 59 F1 -key 60 F2 -key 61 F3 -key 62 F4 -key 63 F5 -key 64 F6 -key 65 F7 -key 66 F8 -key 67 F9 -key 68 F10 -key 87 F11 -key 88 F12 -key 100 ALT_RIGHT -key 102 MOVE_HOME -key 103 DPAD_UP -key 104 PAGE_UP -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 107 MOVE_END -key 108 DPAD_DOWN -key 109 PAGE_DOWN -key 110 NUMPAD_ENTER -key 111 FORWARD_DEL -key 113 VOLUME_MUTE -key 114 VOLUME_DOWN -key 115 VOLUME_UP -key 120 APP_SWITCH -key 125 META_LEFT -key 126 META_RIGHT -key 161 MEDIA_EJECT -key 163 MEDIA_NEXT -key 164 MEDIA_PLAY_PAUSE -key 165 MEDIA_PREVIOUS -# key 204 show gadgets -key 224 BRIGHTNESS_DOWN -key 225 BRIGHTNESS_UP -# key 229 blank special function on F5 -# key 230 blank special function on F6 -key 464 FUNCTION From bac61c5b125e7721e10b209b36e176bfee1a432d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:14 +0100 Subject: [PATCH 35/58] Delete Vendor_1038_Product_1412.kl --- .../usr/keylayout/Vendor_1038_Product_1412.kl | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1038_Product_1412.kl diff --git a/prebuilt/usr/keylayout/Vendor_1038_Product_1412.kl b/prebuilt/usr/keylayout/Vendor_1038_Product_1412.kl deleted file mode 100644 index 551b0bd..0000000 --- a/prebuilt/usr/keylayout/Vendor_1038_Product_1412.kl +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Steelseries Free - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 316 BUTTON_SELECT - -axis 0x00 X -axis 0x01 Y -axis 0x02 Z -axis 0x05 RZ -axis 0x10 HAT_X -axis 0x11 HAT_Y From e93d6289f5f10a3e293501f3629a20ce9fdea219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:18 +0100 Subject: [PATCH 36/58] Delete Vendor_12bd_Product_d015.kl --- .../usr/keylayout/Vendor_12bd_Product_d015.kl | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_12bd_Product_d015.kl diff --git a/prebuilt/usr/keylayout/Vendor_12bd_Product_d015.kl b/prebuilt/usr/keylayout/Vendor_12bd_Product_d015.kl deleted file mode 100644 index 557d62f..0000000 --- a/prebuilt/usr/keylayout/Vendor_12bd_Product_d015.kl +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Hitgaming SNES Retro - -key 306 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 304 BUTTON_Y -key 308 BUTTON_L1 -key 309 BUTTON_R1 -key 313 BUTTON_START -key 312 BUTTON_SELECT - -axis 0x00 HAT_X -axis 0x01 HAT_Y From 329570469684ec7a8687955adae35ce33d251a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:24 +0100 Subject: [PATCH 37/58] Delete Vendor_1689_Product_fd00.kl --- .../usr/keylayout/Vendor_1689_Product_fd00.kl | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1689_Product_fd00.kl diff --git a/prebuilt/usr/keylayout/Vendor_1689_Product_fd00.kl b/prebuilt/usr/keylayout/Vendor_1689_Product_fd00.kl deleted file mode 100644 index 8407b13..0000000 --- a/prebuilt/usr/keylayout/Vendor_1689_Product_fd00.kl +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Razer Onza Tournament Edition - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR -key 706 DPAD_UP -key 705 DPAD_RIGHT -key 707 DPAD_DOWN -key 704 DPAD_LEFT - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER From 149bdbb2624c0bb2f487172420b94fe5c551a3d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:31 +0100 Subject: [PATCH 38/58] Delete Vendor_1689_Product_fd01.kl --- .../usr/keylayout/Vendor_1689_Product_fd01.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1689_Product_fd01.kl diff --git a/prebuilt/usr/keylayout/Vendor_1689_Product_fd01.kl b/prebuilt/usr/keylayout/Vendor_1689_Product_fd01.kl deleted file mode 100644 index cacc075..0000000 --- a/prebuilt/usr/keylayout/Vendor_1689_Product_fd01.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Razer Xbox 360 Gamepad - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From ed4bb000f914ddfbdd6a2b8486b93aa1991418bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:36 +0100 Subject: [PATCH 39/58] Delete Vendor_1689_Product_fe00.kl --- .../usr/keylayout/Vendor_1689_Product_fe00.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1689_Product_fe00.kl diff --git a/prebuilt/usr/keylayout/Vendor_1689_Product_fe00.kl b/prebuilt/usr/keylayout/Vendor_1689_Product_fe00.kl deleted file mode 100644 index 467173f..0000000 --- a/prebuilt/usr/keylayout/Vendor_1689_Product_fe00.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Razer Sabertooth Elite - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From c502150f8060180234624281c8c4cdbfbfb9e398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:40 +0100 Subject: [PATCH 40/58] Delete Vendor_1bad_Product_f016.kl --- .../usr/keylayout/Vendor_1bad_Product_f016.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1bad_Product_f016.kl diff --git a/prebuilt/usr/keylayout/Vendor_1bad_Product_f016.kl b/prebuilt/usr/keylayout/Vendor_1bad_Product_f016.kl deleted file mode 100644 index 00f8559..0000000 --- a/prebuilt/usr/keylayout/Vendor_1bad_Product_f016.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Madcatz Gamepad - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From d5a142d4b87d68e1904d5520a2168802c8c86615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:25:46 +0100 Subject: [PATCH 41/58] Delete Vendor_1bad_Product_f023.kl --- .../usr/keylayout/Vendor_1bad_Product_f023.kl | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1bad_Product_f023.kl diff --git a/prebuilt/usr/keylayout/Vendor_1bad_Product_f023.kl b/prebuilt/usr/keylayout/Vendor_1bad_Product_f023.kl deleted file mode 100644 index 175a523..0000000 --- a/prebuilt/usr/keylayout/Vendor_1bad_Product_f023.kl +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Mad Catz MLG GamePad for Xbox 360 - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From 96a45efe6cc539de9e78c8127c69a75ca45be7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:03 +0100 Subject: [PATCH 42/58] Delete Vendor_1bad_Product_f027.kl --- .../usr/keylayout/Vendor_1bad_Product_f027.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1bad_Product_f027.kl diff --git a/prebuilt/usr/keylayout/Vendor_1bad_Product_f027.kl b/prebuilt/usr/keylayout/Vendor_1bad_Product_f027.kl deleted file mode 100644 index 216e3da..0000000 --- a/prebuilt/usr/keylayout/Vendor_1bad_Product_f027.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# MadCatz FPS Pro - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From b269bde7242d3302415c79895af470e78618c598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:08 +0100 Subject: [PATCH 43/58] Delete Vendor_1bad_Product_f036.kl --- .../usr/keylayout/Vendor_1bad_Product_f036.kl | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1bad_Product_f036.kl diff --git a/prebuilt/usr/keylayout/Vendor_1bad_Product_f036.kl b/prebuilt/usr/keylayout/Vendor_1bad_Product_f036.kl deleted file mode 100644 index f27de1c..0000000 --- a/prebuilt/usr/keylayout/Vendor_1bad_Product_f036.kl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# MadCatz Generic XBox Controller - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BACK -key 316 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From 602a1e3fd9555c0f7b5faf73387ef83cd402a5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:16 +0100 Subject: [PATCH 44/58] Delete Vendor_1d79_Product_0009.kl --- .../usr/keylayout/Vendor_1d79_Product_0009.kl | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_1d79_Product_0009.kl diff --git a/prebuilt/usr/keylayout/Vendor_1d79_Product_0009.kl b/prebuilt/usr/keylayout/Vendor_1d79_Product_0009.kl deleted file mode 100644 index a3d5bbd..0000000 --- a/prebuilt/usr/keylayout/Vendor_1d79_Product_0009.kl +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Nyko Playpad / Playpad Pro - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 158 BACK -key 172 HOME -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR -key 103 DPAD_UP -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 108 DPAD_DOWN - -axis 0x00 X -axis 0x01 Y -axis 0x02 Z -axis 0x05 RZ -axis 0x09 RTRIGGER -axis 0x0a LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From 754d63682b0a126b2fe8a8308c32110034168865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:23 +0100 Subject: [PATCH 45/58] Delete Vendor_22b8_Product_093d.kl --- .../usr/keylayout/Vendor_22b8_Product_093d.kl | 105 ------------------ 1 file changed, 105 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_22b8_Product_093d.kl diff --git a/prebuilt/usr/keylayout/Vendor_22b8_Product_093d.kl b/prebuilt/usr/keylayout/Vendor_22b8_Product_093d.kl deleted file mode 100644 index 2749c5b..0000000 --- a/prebuilt/usr/keylayout/Vendor_22b8_Product_093d.kl +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright (C) 2010 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Motorola Bluetooth Wireless Keyboard. -# - -key 1 BACK -key 2 1 -key 3 2 -key 4 3 -key 5 4 -key 6 5 -key 7 6 -key 8 7 -key 9 8 -key 10 9 -key 11 0 -key 12 MINUS -key 13 EQUALS -key 14 DEL -key 15 TAB -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Y -key 22 U -key 23 I -key 24 O -key 25 P -key 26 LEFT_BRACKET -key 27 RIGHT_BRACKET -key 28 ENTER -key 29 CTRL_LEFT -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -key 39 SEMICOLON -key 40 APOSTROPHE -key 41 GRAVE -key 42 SHIFT_LEFT -key 43 BACKSLASH -key 44 Z -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -key 53 SLASH -key 54 SHIFT_RIGHT -key 56 ALT_LEFT -key 57 SPACE -key 58 CAPS_LOCK -key 59 F1 -key 60 F2 -key 61 F3 -key 62 F4 -key 63 F5 -key 64 F6 -key 65 F7 -key 66 F8 -key 67 F9 -key 68 F10 -key 87 F11 -key 88 F12 -key 97 CTRL_RIGHT -key 102 HOME -key 103 DPAD_UP -key 105 DPAD_LEFT -key 106 DPAD_RIGHT -key 107 MOVE_END -key 108 DPAD_DOWN -key 111 FORWARD_DEL -key 113 VOLUME_MUTE -key 114 VOLUME_DOWN -key 115 VOLUME_UP -key 125 MENU -key 127 SEARCH -key 163 MEDIA_NEXT -key 164 MEDIA_PLAY_PAUSE -key 165 MEDIA_PREVIOUS -key 166 MEDIA_STOP -# key 226 tbd reserved key From 7a478ce6cd58bde3d18ef9dd083ef8ba805e4ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:28 +0100 Subject: [PATCH 46/58] Delete Vendor_2378_Product_100a.kl --- .../usr/keylayout/Vendor_2378_Product_100a.kl | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 prebuilt/usr/keylayout/Vendor_2378_Product_100a.kl diff --git a/prebuilt/usr/keylayout/Vendor_2378_Product_100a.kl b/prebuilt/usr/keylayout/Vendor_2378_Product_100a.kl deleted file mode 100644 index d9cd171..0000000 --- a/prebuilt/usr/keylayout/Vendor_2378_Product_100a.kl +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2013 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# OnLive, Inc. OnLive Wireless Controller - -key 304 BUTTON_A -key 305 BUTTON_B -key 307 BUTTON_X -key 308 BUTTON_Y -key 310 BUTTON_L1 -key 311 BUTTON_R1 -key 315 BUTTON_START -key 314 BUTTON_SELECT -key 317 BUTTON_THUMBL -key 318 BUTTON_THUMBR - -axis 0x00 X -axis 0x01 Y -axis 0x03 Z -axis 0x04 RZ -axis 0x05 RTRIGGER -axis 0x02 LTRIGGER -axis 0x10 HAT_X -axis 0x11 HAT_Y From 06a62e0a655b735a86fc0df2515036076a2124c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:34 +0100 Subject: [PATCH 47/58] Delete gpio-keys.kl --- prebuilt/usr/keylayout/gpio-keys.kl | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 prebuilt/usr/keylayout/gpio-keys.kl diff --git a/prebuilt/usr/keylayout/gpio-keys.kl b/prebuilt/usr/keylayout/gpio-keys.kl deleted file mode 100644 index 0d20eb7..0000000 --- a/prebuilt/usr/keylayout/gpio-keys.kl +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2012, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - -key 115 VOLUME_UP WAKE_DROPPED -key 114 VOLUME_DOWN WAKE -key 102 HOME VIRTUAL -key 250 INFO - -key 158 BACK VIRTUAL -key 172 MENU VIRTUAL From 484b0586804d7d24ebd6e46ff842f1f05ef9e8d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:40 +0100 Subject: [PATCH 48/58] Delete gpio-keys_d410.kl --- prebuilt/usr/keylayout/gpio-keys_d410.kl | 35 ------------------------ 1 file changed, 35 deletions(-) delete mode 100644 prebuilt/usr/keylayout/gpio-keys_d410.kl diff --git a/prebuilt/usr/keylayout/gpio-keys_d410.kl b/prebuilt/usr/keylayout/gpio-keys_d410.kl deleted file mode 100644 index 0cb57a5..0000000 --- a/prebuilt/usr/keylayout/gpio-keys_d410.kl +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2012, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - -key 115 VOLUME_UP WAKE_DROPPED -key 114 VOLUME_DOWN WAKE -key 102 HOME WAKE -key 250 INFO - -key 158 BACK VIRTUAL -key 172 HOME VIRTUAL -key 139 MENU VIRTUAL -key 249 CHANNEL_UP VIRTUAL From 7d405113f89b0e7e247fdf62eda84870e852d151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:45 +0100 Subject: [PATCH 49/58] Delete gpio-keys_d415.kl --- prebuilt/usr/keylayout/gpio-keys_d415.kl | 33 ------------------------ 1 file changed, 33 deletions(-) delete mode 100644 prebuilt/usr/keylayout/gpio-keys_d415.kl diff --git a/prebuilt/usr/keylayout/gpio-keys_d415.kl b/prebuilt/usr/keylayout/gpio-keys_d415.kl deleted file mode 100644 index 633eda6..0000000 --- a/prebuilt/usr/keylayout/gpio-keys_d415.kl +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2012, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - -key 115 VOLUME_UP WAKE_DROPPED -key 114 VOLUME_DOWN WAKE -key 102 HOME WAKE -key 250 INFO - -key 158 BACK VIRTUAL -key 172 MENU VIRTUAL From 4447907ca6bae084045837bf57b43aa840ad4ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:51 +0100 Subject: [PATCH 50/58] Delete gpio-keys_d620.kl --- prebuilt/usr/keylayout/gpio-keys_d620.kl | 33 ------------------------ 1 file changed, 33 deletions(-) delete mode 100644 prebuilt/usr/keylayout/gpio-keys_d620.kl diff --git a/prebuilt/usr/keylayout/gpio-keys_d620.kl b/prebuilt/usr/keylayout/gpio-keys_d620.kl deleted file mode 100644 index 0d20eb7..0000000 --- a/prebuilt/usr/keylayout/gpio-keys_d620.kl +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2012, The Linux Foundation. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. -# * Neither the name of The Linux Foundation nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN - -key 115 VOLUME_UP WAKE_DROPPED -key 114 VOLUME_DOWN WAKE -key 102 HOME VIRTUAL -key 250 INFO - -key 158 BACK VIRTUAL -key 172 MENU VIRTUAL From 8ef888d6fc40462076075281290b9710abc2fcf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:26:57 +0100 Subject: [PATCH 51/58] Delete qwerty.kl --- prebuilt/usr/keylayout/qwerty.kl | 112 ------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 prebuilt/usr/keylayout/qwerty.kl diff --git a/prebuilt/usr/keylayout/qwerty.kl b/prebuilt/usr/keylayout/qwerty.kl deleted file mode 100644 index f1caacd..0000000 --- a/prebuilt/usr/keylayout/qwerty.kl +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright (C) 2010 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# -# Emulator keyboard layout #1. -# -# This file is no longer used as the platform's default keyboard layout. -# Refer to Generic.kl instead. -# - -key 399 GRAVE -key 2 1 -key 3 2 -key 4 3 -key 5 4 -key 6 5 -key 7 6 -key 8 7 -key 9 8 -key 10 9 -key 11 0 -key 158 BACK WAKE_DROPPED -key 230 SOFT_RIGHT WAKE -key 60 SOFT_RIGHT WAKE -key 107 ENDCALL WAKE_DROPPED -key 62 ENDCALL WAKE_DROPPED -key 229 MENU WAKE_DROPPED -key 139 MENU WAKE_DROPPED -key 59 MENU WAKE_DROPPED -key 127 SEARCH WAKE_DROPPED -key 217 SEARCH WAKE_DROPPED -key 228 POUND -key 227 STAR -key 231 CALL WAKE_DROPPED -key 61 CALL WAKE_DROPPED -key 232 DPAD_CENTER WAKE_DROPPED -key 108 DPAD_DOWN WAKE_DROPPED -key 103 DPAD_UP WAKE_DROPPED -key 102 HOME WAKE -key 105 DPAD_LEFT WAKE_DROPPED -key 106 DPAD_RIGHT WAKE_DROPPED -key 115 VOLUME_UP WAKE -key 114 VOLUME_DOWN WAKE -key 116 POWER WAKE -key 212 CAMERA - -key 16 Q -key 17 W -key 18 E -key 19 R -key 20 T -key 21 Y -key 22 U -key 23 I -key 24 O -key 25 P -key 26 LEFT_BRACKET -key 27 RIGHT_BRACKET -key 43 BACKSLASH - -key 30 A -key 31 S -key 32 D -key 33 F -key 34 G -key 35 H -key 36 J -key 37 K -key 38 L -key 39 SEMICOLON -key 40 APOSTROPHE -key 14 DEL - -key 44 Z -key 45 X -key 46 C -key 47 V -key 48 B -key 49 N -key 50 M -key 51 COMMA -key 52 PERIOD -key 53 SLASH -key 28 ENTER - -key 56 ALT_LEFT -key 100 ALT_RIGHT -key 42 SHIFT_LEFT -key 54 SHIFT_RIGHT -key 15 TAB -key 57 SPACE -key 150 EXPLORER -key 155 ENVELOPE - -key 12 MINUS -key 13 EQUALS -key 215 AT - -# On an AT keyboard: ESC, F10 -key 1 BACK WAKE_DROPPED -key 68 MENU WAKE_DROPPED From f2d365f7f03962a7889829b9a8a197bfe5518532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:28:08 +0100 Subject: [PATCH 52/58] Update Generic.kl --- prebuilt/usr/keylayout/Generic.kl | 36 +++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/prebuilt/usr/keylayout/Generic.kl b/prebuilt/usr/keylayout/Generic.kl index 1413319..162c347 100644 --- a/prebuilt/usr/keylayout/Generic.kl +++ b/prebuilt/usr/keylayout/Generic.kl @@ -121,7 +121,7 @@ key 98 NUMPAD_DIVIDE key 99 SYSRQ key 100 ALT_RIGHT # key 101 "KEY_LINEFEED" -key 102 MOVE_HOME +key 102 HOME key 103 DPAD_UP key 104 PAGE_UP key 105 DPAD_LEFT @@ -135,7 +135,7 @@ key 111 FORWARD_DEL key 113 VOLUME_MUTE key 114 VOLUME_DOWN key 115 VOLUME_UP -key 116 POWER WAKE +key 116 POWER key 117 NUMPAD_EQUALS # key 118 "KEY_KPPLUSMINUS" key 119 BREAK @@ -146,7 +146,7 @@ key 123 EISU key 124 YEN key 125 META_LEFT key 126 META_RIGHT -key 127 MENU WAKE_DROPPED +key 127 MENU key 128 MEDIA_STOP # key 129 "KEY_AGAIN" # key 130 "KEY_PROPS" @@ -158,11 +158,11 @@ key 128 MEDIA_STOP # key 136 "KEY_FIND" # key 137 "KEY_CUT" # key 138 "KEY_HELP" -key 139 MENU WAKE_DROPPED +key 139 MENU key 140 CALCULATOR # key 141 "KEY_SETUP" -key 142 POWER WAKE -key 143 POWER WAKE +key 142 SLEEP +key 143 WAKEUP # key 144 "KEY_FILE" # key 145 "KEY_SENDFILE" # key 146 "KEY_DELETEFILE" @@ -171,13 +171,13 @@ key 143 POWER WAKE # key 149 "KEY_PROG2" key 150 EXPLORER # key 151 "KEY_MSDOS" -key 152 POWER WAKE +key 152 POWER # key 153 "KEY_DIRECTION" # key 154 "KEY_CYCLEWINDOWS" key 155 ENVELOPE key 156 BOOKMARK # key 157 "KEY_COMPUTER" -key 158 BACK WAKE_DROPPED +key 158 BACK VIRTUAL key 159 FORWARD key 160 MEDIA_CLOSE key 161 MEDIA_EJECT @@ -191,7 +191,7 @@ key 168 MEDIA_REWIND key 169 CALL # key 170 "KEY_ISO" key 171 MUSIC -key 172 HOME +key 172 MENU VIRTUAL # key 173 "KEY_REFRESH" # key 174 "KEY_EXIT" # key 175 "KEY_MOVE" @@ -247,6 +247,8 @@ key 224 BRIGHTNESS_DOWN key 225 BRIGHTNESS_UP key 226 HEADSETHOOK +key 250 INFO + key 256 BUTTON_1 key 257 BUTTON_2 key 258 BUTTON_3 @@ -404,6 +406,9 @@ key 484 B FUNCTION # key 503 KEY_BRL_DOT7 # key 504 KEY_BRL_DOT8 +key 580 APP_SWITCH +key 582 VOICE_ASSIST + # Keys defined by HID usages key usage 0x0c006F BRIGHTNESS_UP key usage 0x0c0070 BRIGHTNESS_DOWN @@ -423,3 +428,16 @@ axis 0x09 GAS axis 0x0a BRAKE axis 0x10 HAT_X axis 0x11 HAT_Y + +# LEDs +led 0x00 NUM_LOCK +led 0x01 CAPS_LOCK +led 0x02 SCROLL_LOCK +led 0x03 COMPOSE +led 0x04 KANA +led 0x05 SLEEP +led 0x06 SUSPEND +led 0x07 MUTE +led 0x08 MISC +led 0x09 MAIL +led 0x0a CHARGING From 944dadc4897d34ed692785c9eeb47d7c9efceb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:47:15 +0100 Subject: [PATCH 53/58] Update init.f70n.rc --- rootdir/init.f70n.rc | 139 +++++++++++++++++++++++-------------------- 1 file changed, 74 insertions(+), 65 deletions(-) diff --git a/rootdir/init.f70n.rc b/rootdir/init.f70n.rc index 0b39493..47068f5 100755 --- a/rootdir/init.f70n.rc +++ b/rootdir/init.f70n.rc @@ -26,29 +26,19 @@ # import init.f70n.usb.rc + +on early-init + export LD_PRELOAD "/system/lib/libboringssl-compat.so" + on init - mkdir /mnt/shell/emulated 0700 shell shell - mkdir /storage/emulated 0555 root root - mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw - mkdir /storage/sdcard1 0775 system system - - export EXTERNAL_STORAGE /storage/emulated/legacy - export EMULATED_STORAGE_SOURCE /mnt/shell/emulated - export EMULATED_STORAGE_TARGET /storage/emulated - export SECONDARY_STORAGE /storage/sdcard1 - - # for backwards compatibility - symlink /storage/emulated/legacy /sdcard - symlink /storage/emulated/legacy /mnt/sdcard - symlink /storage/emulated/legacy /storage/sdcard0 - symlink /mnt/shell/emulated/0 /storage/emulated/legacy + + # Support legacy paths + symlink /sdcard /mnt/sdcard + symlink /sdcard /storage/sdcard0 # NFC fix symlink /dev/pn547 /dev/pn544 - # We use our own ril-daemon service definition, see mmi-ril-daemon - stop ril-daemon - on post-fs chmod 664 /sys/devices/virtual/input/lge_touch/touch_gesture chown system system /sys/devices/virtual/input/lge_touch/touch_gesture @@ -60,6 +50,8 @@ on post-fs chown system system /sys/devices/virtual/input/lge_touch/lpwg_data chmod 664 /sys/devices/virtual/input/lge_touch/lpwg_notify chown system system /sys/devices/virtual/input/lge_touch/lpwg_notify + chmod 664 /sys/devices/virtual/input/lge_touch/dt2w_enable + chown system system /sys/devices/virtual/input/lge_touch/dt2w_enable chmod 664 /sys/devices/virtual/input/lge_touch/incoming_call chown system system /sys/devices/virtual/input/lge_touch/incoming_call chmod 664 /sys/devices/virtual/input/lge_touch/lockscreen @@ -91,6 +83,9 @@ on boot chmod 2770 /dev/socket/qmux_bluetooth mkdir /dev/socket/qmux_gps 0770 gps gps chmod 2770 /dev/socket/qmux_gps + + #Create NETMGR daemon socket area + mkdir /dev/socket/netmgr 0750 radio radio # Subsytem Restart #adsp @@ -302,27 +297,24 @@ on post-fs-data mkdir /data/system 0775 system system #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant + # Create /data/time folder for time-services + mkdir /data/time/ 0700 system system + #Create directories for wiper services mkdir /data/wpstiles/ 0755 shell mkdir /data/wiper 0755 gps qcom_oncrpc - #Create directories for gpsone_daemon services - mkdir /data/misc/gpsone_d 0770 system gps - - #Create directories for QuIPS - mkdir /data/misc/quipc 0770 gps system - #Create directories for Location services mkdir /data/misc/location 0770 gps gps mkdir /data/misc/location/mq 0770 gps gps mkdir /data/misc/location/xtwifi 0770 gps gps + mkdir /data/misc/location/gpsone_d 0770 system gps + mkdir /data/misc/location/quipc 0770 gps gps + mkdir /data/misc/location/gsiff 0770 gps gps #Create directory for hostapd mkdir /data/hostapd 0770 system wifi - # Create /data/time folder for time-services - mkdir /data/time/ 0700 system system - mkdir /data/audio/ 0770 media audio # Enable the setgid bit on the directory chmod 2770 /data/audio @@ -335,17 +327,6 @@ on post-fs-data on property:init.svc.wpa_supplicant=stopped stop dhcpcd -service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated - class late_start - -service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 - class late_start - disabled - -service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usbdisk /storage/usbdisk - class late_start - disabled - service lg-baseband /system/bin/sh /init.baseband.sh class late_start user root @@ -480,24 +461,38 @@ on property:ro.data.large_tcp_window_size=true # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) write /proc/sys/net/ipv4/tcp_adv_win_scale 2 -on property:persist.radio.multisim.config=dsds - stop ril-daemon - start mmi-ril-daemon - start ril-daemon2 +service_redefine ril-daemon /system/bin/rild + class main + socket rild stream 660 root radio + socket rild-debug stream 660 radio system + socket cutback stream 660 media radio + user root + group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag -service ril-daemon2 /system/bin/rild -c 2 +service ril-daemon1 /system/bin/rild -c 2 class main socket rild2 stream 660 root radio socket rild-debug2 stream 660 radio system user root + group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag disabled - group radio cache inet misc audio sdcard_r sdcard_rw diag qcom_diag log net_raw + +service rild1-wrapper /system/bin/sh /system/etc/init.qcom.ril.sh + class late_start + user root + group root + oneshot on property:ro.bootmode=chargerlogo class_reset main class_reset late_start class_start charger +service loc_launcher /system/bin/loc_launcher + #loc_launcher will start as root and set its uid to gps + class late_start + group gps qcom_oncrpc inet net_raw qcom_diag net_admin wifi + service qseecomd /system/bin/qseecomd class late_start user root @@ -509,12 +504,12 @@ service bdaddr_loader /system/bin/bdaddr_loader disabled oneshot -service irrcServer /system/bin/irrcServer - class main - user media - group media - onrestart restart irrcServer - disabled +#service irrcServer /system/bin/irrcServer +# class main +# user media +# group media +# onrestart restart irrcServer +# disabled service qcamerasvr /system/bin/mm-qcamera-daemon class late_start @@ -529,17 +524,21 @@ on property:init.svc.servicemanager=restarting service time_daemon /system/bin/time_daemon class late_start user root - group root + group roo service mpdecision /system/bin/mpdecision --avg_comp class main user root group system -service thermal-engine /system/bin/thermal-engine + +service thermal-engine /system/vendor/bin/thermal-engine class main user root group root + socket thermal-send-client stream 0666 system system + socket thermal-recv-client stream 0660 system system + socket thermal-recv-passive-client stream 0666 system system service charger /sbin/healthd -c class charger @@ -556,20 +555,11 @@ service wcnss-service /system/bin/wcnss_service group system wifi oneshot -service mmi-ril-daemon /system/bin/rild - class main - socket rild stream 660 root radio - socket rild-debug stream 660 radio system - socket cutback stream 660 media radio - user root - group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag - service config_bluetooth /system/bin/sh /system/etc/init.zetaw.bt.sh "onboot" class core user root oneshot - # Charger on charger wait /dev/block/platform/msm_sdcc.1/by-name/system @@ -613,7 +603,6 @@ on property:init.svc.bootanim=running # Switch to performance mode while booting setprop sys.perf.profile 2 - on property:sys.boot_completed=1 write /sys/module/lpm_levels/enable_low_power/l2 4 write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 @@ -636,17 +625,37 @@ on property:sys.boot_completed=1 write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 - chown root system /sys/devices/system/cpu/cpu1/online chown root system /sys/devices/system/cpu/cpu2/online chown root system /sys/devices/system/cpu/cpu3/online chmod 0664 /sys/devices/system/cpu/cpu1/online chmod 0664 /sys/devices/system/cpu/cpu2/online chmod 0664 /sys/devices/system/cpu/cpu3/online - start mpdecision + +service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh + class late_start + user system + group system + disabled + oneshot + +###### This is for CAF ######## +# Configure IO scheduler +on property:sys.io.scheduler=* + write /sys/block/mmcblk0/queue/scheduler ${sys.io.scheduler} + +on property:persist.sys.io.scheduler=* + setprop sys.io.scheduler ${persist.sys.io.scheduler} + +# Set slice_idle to 0 for CFQ +on property:sys.io.scheduler=cfq + write /sys/block/mmcblk0/queue/iosched/slice_idle 0 + +# Set slice_idle to 0 for BFQ +on property:sys.io.scheduler=bfq + write /sys/block/mmcblk0/queue/iosched/slice_idle 0 From 6fb0c2d24168a93ebbabdd429a7238da8b66ee46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Mon, 21 Dec 2015 21:49:41 +0100 Subject: [PATCH 54/58] Update init.f70n.rc --- rootdir/init.f70n.rc | 177 ++++++++++++++++++++++++------------------- 1 file changed, 98 insertions(+), 79 deletions(-) diff --git a/rootdir/init.f70n.rc b/rootdir/init.f70n.rc index 47068f5..9cd7997 100755 --- a/rootdir/init.f70n.rc +++ b/rootdir/init.f70n.rc @@ -24,21 +24,33 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # - -import init.f70n.usb.rc - -on early-init - export LD_PRELOAD "/system/lib/libboringssl-compat.so" +import init.f70n.usb.rc on init - - # Support legacy paths - symlink /sdcard /mnt/sdcard - symlink /sdcard /storage/sdcard0 + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw + mkdir /storage/sdcard1 0775 system system + + export EXTERNAL_STORAGE /storage/emulated/legacy + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + export SECONDARY_STORAGE /storage/sdcard1 + + # for backwards compatibility + symlink /storage/emulated/legacy /sdcard + symlink /storage/emulated/legacy /mnt/sdcard + symlink /storage/emulated/legacy /storage/sdcard0 + symlink /mnt/shell/emulated/0 /storage/emulated/legacy + symlink /storage/sdcard1 /mnt/external_sd + symlink /storage/sdcard1 /external_sd # NFC fix symlink /dev/pn547 /dev/pn544 + # We use our own ril-daemon service definition, see mmi-ril-daemon + stop ril-daemon + on post-fs chmod 664 /sys/devices/virtual/input/lge_touch/touch_gesture chown system system /sys/devices/virtual/input/lge_touch/touch_gesture @@ -50,8 +62,6 @@ on post-fs chown system system /sys/devices/virtual/input/lge_touch/lpwg_data chmod 664 /sys/devices/virtual/input/lge_touch/lpwg_notify chown system system /sys/devices/virtual/input/lge_touch/lpwg_notify - chmod 664 /sys/devices/virtual/input/lge_touch/dt2w_enable - chown system system /sys/devices/virtual/input/lge_touch/dt2w_enable chmod 664 /sys/devices/virtual/input/lge_touch/incoming_call chown system system /sys/devices/virtual/input/lge_touch/incoming_call chmod 664 /sys/devices/virtual/input/lge_touch/lockscreen @@ -83,9 +93,6 @@ on boot chmod 2770 /dev/socket/qmux_bluetooth mkdir /dev/socket/qmux_gps 0770 gps gps chmod 2770 /dev/socket/qmux_gps - - #Create NETMGR daemon socket area - mkdir /dev/socket/netmgr 0750 radio radio # Subsytem Restart #adsp @@ -107,10 +114,6 @@ on boot mkdir /persist/sensors chmod 775 /persist/sensors - # For setting tcp delayed ack - chown system system /sys/kernel/ipv4/tcp_delack_seg - chown system system /sys/kernel/ipv4/tcp_use_userconfig - # Define TCP buffer sizes for various networks # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 @@ -198,7 +201,6 @@ on fs mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 on post-fs-data - # we will remap this as /mnt/sdcard with the sdcard fuse tool mkdir /data/media 0770 media_rw media_rw chown media_rw media_rw /data/media @@ -237,12 +239,6 @@ on post-fs-data # We chown/chmod /persist again so because mount is run as root + defaults chown system system /persist chmod 0771 /persist - # fix sensor daenon - mkdir /persist/sensors 0775 system root - write /persist/sensors/sensors_settings 1 - chmod 0644 /persist/sensors/sensors_settings - chown system root /persist/sensors/sensors_settings - chmod 0664 /sys/devices/platform/msm_sdcc.1/polling chmod 0664 /sys/devices/platform/msm_sdcc.2/polling chmod 0664 /sys/devices/platform/msm_sdcc.3/polling @@ -297,9 +293,6 @@ on post-fs-data mkdir /data/system 0775 system system #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant - # Create /data/time folder for time-services - mkdir /data/time/ 0700 system system - #Create directories for wiper services mkdir /data/wpstiles/ 0755 shell mkdir /data/wiper 0755 gps qcom_oncrpc @@ -324,9 +317,26 @@ on post-fs-data #Create a folder for SRS to be able to create a usercfg file mkdir /data/data/media 0770 media media + # Create file to enable sensors on boot + mkdir /persist/sensors 0775 system root + write /persist/sensors/sensors_settings 1 + chmod 0644 /persist/sensors/sensors_settings + chown system root /persist/sensors/sensors_settings + on property:init.svc.wpa_supplicant=stopped stop dhcpcd +service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated + class late_start + +service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 + class late_start + disabled + +service fuse_usbdisk /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/usbdisk /storage/usbdisk + class late_start + disabled + service lg-baseband /system/bin/sh /init.baseband.sh class late_start user root @@ -461,27 +471,17 @@ on property:ro.data.large_tcp_window_size=true # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) write /proc/sys/net/ipv4/tcp_adv_win_scale 2 -service_redefine ril-daemon /system/bin/rild - class main - socket rild stream 660 root radio - socket rild-debug stream 660 radio system - socket cutback stream 660 media radio - user root - group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag +on property:persist.radio.multisim.config=dsds + stop ril-daemon + start ril-daemon2 -service ril-daemon1 /system/bin/rild -c 2 +service ril-daemon2 /system/bin/rild -c 2 class main socket rild2 stream 660 root radio socket rild-debug2 stream 660 radio system user root - group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag disabled - -service rild1-wrapper /system/bin/sh /system/etc/init.qcom.ril.sh - class late_start - user root - group root - oneshot + group radio cache inet misc audio sdcard_r sdcard_rw diag qcom_diag log net_raw on property:ro.bootmode=chargerlogo class_reset main @@ -493,8 +493,9 @@ service loc_launcher /system/bin/loc_launcher class late_start group gps qcom_oncrpc inet net_raw qcom_diag net_admin wifi + service qseecomd /system/bin/qseecomd - class late_start + class core user root group root @@ -504,13 +505,6 @@ service bdaddr_loader /system/bin/bdaddr_loader disabled oneshot -#service irrcServer /system/bin/irrcServer -# class main -# user media -# group media -# onrestart restart irrcServer -# disabled - service qcamerasvr /system/bin/mm-qcamera-daemon class late_start user camera @@ -521,27 +515,26 @@ on property:init.svc.media=restarting on property:init.svc.servicemanager=restarting restart qcamerasvr -service time_daemon /system/bin/time_daemon - class late_start - user root - group roo +service timekeep /system/bin/timekeep restore + class late_start + user root + group root + oneshot + seclabel u:r:timekeep:s0 service mpdecision /system/bin/mpdecision --avg_comp class main user root group system - -service thermal-engine /system/vendor/bin/thermal-engine +service thermal-engine /system/bin/thermal-engine class main user root group root - socket thermal-send-client stream 0666 system system - socket thermal-recv-client stream 0660 system system - socket thermal-recv-passive-client stream 0666 system system service charger /sbin/healthd -c class charger + critical seclabel u:r:healthd:s0 service adsprpcd /system/bin/adsprpcd @@ -555,6 +548,14 @@ service wcnss-service /system/bin/wcnss_service group system wifi oneshot +service mmi-ril-daemon /system/bin/rild + class main + socket rild stream 660 root radio + socket rild-debug stream 660 radio system + socket cutback stream 660 media radio + user root + group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag + service config_bluetooth /system/bin/sh /system/etc/init.zetaw.bt.sh "onboot" class core user root @@ -566,6 +567,8 @@ on charger mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 start rmt_storage +# Setup kernel configurations on boot + write /sys/module/lpm_levels/enable_low_power/l2 1 write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 @@ -602,8 +605,11 @@ on charger on property:init.svc.bootanim=running # Switch to performance mode while booting setprop sys.perf.profile 2 + # Switch to NOOP while booting + write /sys/block/mmcblk0/queue/scheduler noop on property:sys.boot_completed=1 + write /sys/block/mmcblk0/queue/scheduler fiops write /sys/module/lpm_levels/enable_low_power/l2 4 write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 @@ -625,37 +631,50 @@ on property:sys.boot_completed=1 write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 + chown root system /sys/devices/system/cpu/cpu1/online chown root system /sys/devices/system/cpu/cpu2/online chown root system /sys/devices/system/cpu/cpu3/online chmod 0664 /sys/devices/system/cpu/cpu1/online chmod 0664 /sys/devices/system/cpu/cpu2/online chmod 0664 /sys/devices/system/cpu/cpu3/online - start mpdecision -service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh - class late_start - user system - group system - disabled - oneshot + # -L.E.K.- parameters + # GPU + write /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/devfreq/governor "msm-adreno-tz" + write /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate 1 + write /sys/module/simple_gpu_algorithm/parameters/simple_ramp_threshold 3000 + write /sys/module/simple_gpu_algorithm/parameters/simple_laziness 4 + + # HOTPLUG (Intelli_plug) + stop mpdecision + write /sys/module/intelli_plug/parameters/intelli_plug_active 1 + write /sys/module/intelli_plug/parameters/nr_run_profile_sel 0 + write /sys/module/intelli_plug/parameters/nr_run_hysteresis 5 + write /sys/module/intelli_plug/parameters/cpu_nr_run_threshold 250 + write /sys/module/intelli_plug/parameters/screen_off_max 384000 + + # I/O Sheduler + write /sys/block/mmcblk0/queue/read_ahead_kb 512 + write /sys/block/mmcblk1/queue/read_ahead_kb 512 + + # Low Memory Killer (Light) + write /sys/module/lowmemorykiller/parameters/minfree "1024,2048,2560,4096,6144,8192" -###### This is for CAF ######## -# Configure IO scheduler -on property:sys.io.scheduler=* - write /sys/block/mmcblk0/queue/scheduler ${sys.io.scheduler} + # Entropy + write /proc/sys/kernel/random/read_wakeup_threshold 256 + write /proc/sys/kernel/random/write_wakeup_threshold 512 -on property:persist.sys.io.scheduler=* - setprop sys.io.scheduler ${persist.sys.io.scheduler} + # Vibration (75%) + write /sys/devices/platform/tspdrv/nforce_timed 95 -# Set slice_idle to 0 for CFQ -on property:sys.io.scheduler=cfq - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 + # FSync + write /sys/kernel/dyn_fsync/Dyn_fsync_active 1 -# Set slice_idle to 0 for BFQ -on property:sys.io.scheduler=bfq - write /sys/block/mmcblk0/queue/iosched/slice_idle 0 + # Power suspend mode (Hybrid) + write /sys/kernel/power_suspend/power_suspend_mode 3 From 6b5a8b8c2e702b038ab3ecf449c31ff1fa144587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Tue, 22 Dec 2015 15:05:20 +0100 Subject: [PATCH 55/58] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e515336 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# android_device_lg_f70n From 69737675b4692b86c587f2042e497b534821a83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 10 Apr 2016 12:23:54 +0200 Subject: [PATCH 56/58] Changes for twrp --- liblight/{Android.mk => .Android.mk} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename liblight/{Android.mk => .Android.mk} (100%) diff --git a/liblight/Android.mk b/liblight/.Android.mk similarity index 100% rename from liblight/Android.mk rename to liblight/.Android.mk From 7be3f0add37f4ea3409428fb43241ed80e1dfb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 10 Apr 2016 12:24:09 +0200 Subject: [PATCH 57/58] Changes for twrp --- liblight/{lights.c => .lights.c} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename liblight/{lights.c => .lights.c} (100%) diff --git a/liblight/lights.c b/liblight/.lights.c similarity index 100% rename from liblight/lights.c rename to liblight/.lights.c From 837bf2895dbd056dcd0b8e9286713b45d9a5bb4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wangryn?= Date: Sun, 10 Apr 2016 12:24:22 +0200 Subject: [PATCH 58/58] Rename NOTICE to .NOTICE --- liblight/{NOTICE => .NOTICE} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename liblight/{NOTICE => .NOTICE} (100%) diff --git a/liblight/NOTICE b/liblight/.NOTICE similarity index 100% rename from liblight/NOTICE rename to liblight/.NOTICE