├── Android.mk ├── AndroidProducts.mk ├── BoardConfig.mk ├── bluetooth └── bdroid_buildcfg.h ├── configs ├── calib.cfg ├── hdrhax ├── media_codecs.xml ├── media_codecs_performance.xml ├── mixer_paths_skuk.xml ├── msm_irqbalance.conf └── thermal-engine.conf ├── device.mk ├── extract-files.sh ├── full_piccolo.mk ├── keylayout ├── Headset.kl └── atmel_mxt_ts_T100_touchscreen.kl ├── lineage.dependencies ├── lineage.mk ├── lineagehw └── src │ └── org │ └── lineageos │ └── hardware │ └── KeyDisabler.java ├── manifest.xml ├── nfc ├── libnfc-brcm-20795a20.conf ├── libnfc-brcm.conf └── nfcee_access.xml ├── overlay └── frameworks │ └── base │ └── core │ └── res │ └── res │ └── xml │ └── power_profile.xml ├── power └── power_ext.c ├── proprietary-files.txt ├── rootdir ├── Android.mk └── etc │ ├── init.atmel_ts.sh │ ├── init.qcom.power.rc │ └── init.target.rc ├── sepolicy ├── file_contexts └── nfc.te ├── setup-makefiles.sh └── system.prop /Android.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # Copyright (C) 2017 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | LOCAL_PATH := $(call my-dir) 19 | 20 | ifeq ($(TARGET_DEVICE),piccolo) 21 | include $(call all-makefiles-under,$(LOCAL_PATH)) 22 | endif 23 | -------------------------------------------------------------------------------- /AndroidProducts.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # Copyright (C) 2017 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | PRODUCT_MAKEFILES := \ 19 | $(LOCAL_DIR)/full_piccolo.mk 20 | -------------------------------------------------------------------------------- /BoardConfig.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # Copyright (C) 2017 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | -include device/bq/msm8916-common/BoardConfigCommon.mk 19 | 20 | DEVICE_PATH := device/bq/piccolo 21 | 22 | # Platform 23 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno405 24 | 25 | # Kernel 26 | TARGET_KERNEL_SOURCE := kernel/bq/msm8939 27 | TARGET_KERNEL_CONFIG := piccolo_defconfig 28 | 29 | # Assert 30 | TARGET_OTA_ASSERT_DEVICE := aquarism5,piccolo,Aquaris_M5 31 | 32 | # Bluetooth 33 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth 34 | 35 | # Lineagehw 36 | BOARD_HARDWARE_CLASS += $(DEVICE_PATH)/lineagehw/src 37 | TARGET_TAP_TO_WAKE_NODE := "/sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/en_gesture" 38 | 39 | # Filesystem 40 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 13013734522 # (BOARD_USERDATAIMAGE_PARTITION_SIZE - 16384 for crypto footer) 41 | 42 | # Power 43 | TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(DEVICE_PATH)/power/power_ext.c 44 | 45 | # Properties 46 | TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop 47 | 48 | # SELinux 49 | BOARD_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy 50 | 51 | # Vendor Interface Manifest 52 | DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml 53 | 54 | # Inherit from the proprietary version 55 | -include vendor/bq/piccolo/BoardConfigVendor.mk 56 | -------------------------------------------------------------------------------- /bluetooth/bdroid_buildcfg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * Copyright (C) 2016 The CyanogenMod Project 4 | * Copyright (C) 2017 The LineageOS Project 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #ifndef _BDROID_BUILDCFG_H 20 | #define _BDROID_BUILDCFG_H 21 | 22 | #define BTM_DEF_LOCAL_NAME "bq Aquaris M5" 23 | 24 | #define PROC_BTWRITE_TIMER_TIMEOUT_MS = 0 25 | 26 | // Disables read remote device feature 27 | #define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE 28 | #define MAX_ACL_CONNECTIONS 7 29 | #define MAX_L2CAP_CHANNELS 16 30 | #define BLE_VND_INCLUDED TRUE 31 | // skips conn update at conn completion 32 | #define BTA_BLE_SKIP_CONN_UPD FALSE 33 | #define BLE_PERIPHERAL_ADV_NAME FALSE 34 | #define BT_CLEAN_TURN_ON_DISABLED 1 35 | #endif 36 | -------------------------------------------------------------------------------- /configs/calib.cfg: -------------------------------------------------------------------------------- 1 | # Assertive Display Calibration Output File Format 2 | # Calibration config file consists of one or more sections. Each section is set 3 | # of parameter values stored on one line each. Number of parameters (hence number 4 | # of lines in each section is fixed. Order in which parameters are specified in 5 | # given section is fixed as well. 6 | # Comments are supported in configuration file to improve readability of 7 | # calibration configuration parameters. Any line begining with '#' is considered 8 | # as comment and will not be processed further. 9 | # Blank lines are allowed and are ignored. They can be used to improve 10 | # readability of assertive display calibration output file. 11 | # Sections: Any line begining with '=' indicates start of new section in 12 | # calibration output file. Sections, parameters which are part of section and 13 | # order in which they will appear in calibration output file is kept outside 14 | # scope of this documentation in order to have flexibility in development of 15 | # assertive display calibration system. This information can be shared between 16 | # APICAL and Qualcomm as part of assertive display bring ups on given platforms. 17 | # There should not be any spaces betweetn '=' and section name. 18 | # Version 1.0 of calibration output format supports following sections: 19 | # version - Contains assertive display calibration output file format version 20 | # init - Contains assertive display parameters which are independent of 21 | # assertive display mode 22 | # config - Contains assertive display parameters which are dependent on specific 23 | # assertive display mode 24 | # Each parameter for assertive display calibration is stored on new line. If 25 | # parameter consists of more than one values (set of values), each value is 26 | # separated by single space (' ') character. In version 1.0 of assertive 27 | # display calibration output file format, all numerical values are in decimal 28 | # unsigned integer format, limited by 32 bits. Range for values or valid value 29 | # for given parameter is outside scope of this documentation. This information 30 | # can be shared between APICAL and Qualcomm as part of assertive display bring 31 | # ups on given platforms. 32 | # Version 1.1 adds two more init parameters (21 in total) to the config file to support the 33 | # newly added power saving feature, Parameters added are alpha and BL_ATT lut 34 | # Version 1.2 adds two more init parameters (23 in total) to the config file to support the 35 | # driver change, Parameters added are ALS_offset and ALS_threshold 36 | # Version 1.3 changes the parameters BL linearity LUT and BL inverse LUT 37 | # from 8 bit to 12 bits. This is done to support the precision increase in the AD Driver 38 | =version 39 | 1.3 40 | # APICAL mode indepent initialization Params 41 | =init 42 | # A 43 | 0 211 414 609 796 975 1148 1315 1475 1630 1779 1922 2061 2195 2325 2451 2572 2690 2804 2915 3022 3126 3227 3325 3420 3513 3603 3691 3776 3859 3940 4019 4095 44 | # B 45 | 255 278 302 326 350 374 398 422 446 470 494 517 541 565 589 613 637 661 684 708 732 755 779 803 826 850 874 897 921 945 968 992 1016 46 | # C 47 | 7 134 48 | # D 49 | 0 50 | # E 51 | 1023 52 | # F 53 | 65 54 | # G 55 | 240 56 | # H 57 | 0 58 | # I 59 | 60 60 | # J 61 | 128 62 | # dither_control 63 | 5 64 | # L 65 | 3 66 | # M 67 | 0 68 | # frame_width 69 | 720 70 | # frame_height 71 | 1280 72 | # P 73 | 0 74 | # Q 75 | 0 76 | # BL_linearity_LUT 77 | 0 16 32 48 64 80 96 112 128 145 161 177 193 209 225 241 257 273 289 305 321 337 353 369 385 401 418 434 450 466 482 498 514 530 546 562 578 594 610 626 642 658 674 691 707 723 739 755 771 787 803 819 835 851 867 883 899 915 931 947 964 980 996 1012 1028 1044 1060 1076 1092 1108 1124 1140 1156 1172 1188 1204 1220 1237 1253 1269 1285 1301 1317 1333 1349 1365 1381 1397 1413 1429 1445 1461 1477 1493 1510 1526 1542 1558 1574 1590 1606 1622 1638 1654 1670 1686 1702 1718 1734 1750 1766 1783 1799 1815 1831 1847 1863 1879 1895 1911 1927 1943 1959 1975 1991 2007 2023 2039 2056 2072 2088 2104 2120 2136 2152 2168 2184 2200 2216 2232 2248 2264 2280 2296 2312 2329 2345 2361 2377 2393 2409 2425 2441 2457 2473 2489 2505 2521 2537 2553 2569 2585 2602 2618 2634 2650 2666 2682 2698 2714 2730 2746 2762 2778 2794 2810 2826 2842 2858 2875 2891 2907 2923 2939 2955 2971 2987 3003 3019 3035 3051 3067 3083 3099 3115 3131 3148 3164 3180 3196 3212 3228 3244 3260 3276 3292 3308 3324 3340 3356 3372 3388 3404 3421 3437 3453 3469 3485 3501 3517 3533 3549 3565 3581 3597 3613 3629 3645 3661 3677 3694 3710 3726 3742 3758 3774 3790 3806 3822 3838 3854 3870 3886 3902 3918 3934 3950 3967 3983 3999 4015 4031 4047 4063 4079 4095 78 | # 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 79 | # BL_linearity_inverse_LUT 80 | 0 16 32 48 64 80 96 112 128 145 161 177 193 209 225 241 257 273 289 305 321 337 353 369 385 401 418 434 450 466 482 498 514 530 546 562 578 594 610 626 642 658 674 691 707 723 739 755 771 787 803 819 835 851 867 883 899 915 931 947 964 980 996 1012 1028 1044 1060 1076 1092 1108 1124 1140 1156 1172 1188 1204 1220 1237 1253 1269 1285 1301 1317 1333 1349 1365 1381 1397 1413 1429 1445 1461 1477 1493 1510 1526 1542 1558 1574 1590 1606 1622 1638 1654 1670 1686 1702 1718 1734 1750 1766 1783 1799 1815 1831 1847 1863 1879 1895 1911 1927 1943 1959 1975 1991 2007 2023 2039 2056 2072 2088 2104 2120 2136 2152 2168 2184 2200 2216 2232 2248 2264 2280 2296 2312 2329 2345 2361 2377 2393 2409 2425 2441 2457 2473 2489 2505 2521 2537 2553 2569 2585 2602 2618 2634 2650 2666 2682 2698 2714 2730 2746 2762 2778 2794 2810 2826 2842 2858 2875 2891 2907 2923 2939 2955 2971 2987 3003 3019 3035 3051 3067 3083 3099 3115 3131 3148 3164 3180 3196 3212 3228 3244 3260 3276 3292 3308 3324 3340 3356 3372 3388 3404 3421 3437 3453 3469 3485 3501 3517 3533 3549 3565 3581 3597 3613 3629 3645 3661 3677 3694 3710 3726 3742 3758 3774 3790 3806 3822 3838 3854 3870 3886 3902 3918 3934 3950 3967 3983 3999 4015 4031 4047 4063 4079 4095 81 | #0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 82 | # power_saving_coeff 83 | 715 84 | # BL_att_LUT 85 | 0 119 233 338 435 523 600 665 717 760 797 834 874 924 981 1046 1117 1195 1281 1375 1479 1597 1729 1876 2037 2213 2410 2634 2884 3158 3452 3766 4095 86 | # al_offset 87 | 100 88 | # al_tolarance 89 | 0.35 90 | #APICAL mode specific configuration 91 | =config 92 | # mode 93 | 1 94 | # R 95 | 0 2048 4096 6144 8192 10240 12288 14336 16384 18432 20480 22528 24576 26624 28672 30720 32768 34815 36863 38911 40959 43007 45055 47103 49151 51199 53247 55295 57343 59391 61439 63487 65535 96 | # back_min 97 | 205 98 | # back_max 99 | 4095 100 | # back_scale 101 | 4095 102 | # ambient_light_min 103 | 14 104 | # S 105 | 1738 6 106 | # calibration_abcd 107 | 40 95 13 0 108 | # T 109 | 160 110 | # U 111 | 5 112 | # V 113 | 128 114 | # M_CC e4fc12c689e7a943eb72f97236215156 115 | -------------------------------------------------------------------------------- /configs/hdrhax: -------------------------------------------------------------------------------- 1 | 2 | # begin build properties 3 | # autogenerated by buildinfo.sh 4 | ro.build.id=OPM2.171019.029.B1 5 | ro.build.display.id=lineage_piccolo-userdebug 8.1.0 OPM2.171019.029.B1 ff0e1faf4e test-keys 6 | ro.build.version.incremental=ff0e1faf4e 7 | ro.build.version.sdk=27 8 | ro.build.version.preview_sdk=0 9 | ro.build.version.codename=REL 10 | ro.build.version.all_codenames=REL 11 | ro.build.version.release=8.1.0 12 | ro.build.version.security_patch=2018-05-05 13 | ro.build.version.base_os= 14 | ro.build.date=Thu May 24 11:49:37 UTC 2018 15 | ro.build.date.utc=1527162577 16 | ro.build.type=userdebug 17 | ro.build.user=jenkins 18 | ro.build.host=buildserver 19 | ro.build.tags=test-keys 20 | ro.build.flavor=lineage_piccolo-userdebug 21 | ro.product.model=Aquaris M5 22 | ro.product.brand=bq 23 | ro.product.name=Aquaris_M5 24 | ro.product.device=Aquaris_M5 25 | # ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete, 26 | # use ro.product.cpu.abilist instead. 27 | ro.product.cpu.abi=armeabi-v7a 28 | ro.product.cpu.abi2=armeabi 29 | ro.product.cpu.abilist=armeabi-v7a,armeabi 30 | ro.product.cpu.abilist32=armeabi-v7a,armeabi 31 | ro.product.cpu.abilist64= 32 | ro.product.manufacturer=bq 33 | ro.product.locale=en-US 34 | ro.wifi.channels= 35 | # ro.build.product is obsolete; use ro.product.device 36 | ro.build.product=Aquaris_M5 37 | # Do not try to parse description, fingerprint, or thumbprint 38 | ro.build.description=piccolo-user 7.1.2 N2G47H 5.1.0_20180205-1243 release-keys 39 | ro.build.fingerprint=bq/Aquaris_M5/Aquaris_M5:7.1.2/N2G47H/1517833600:user/release-keys 40 | ro.build.characteristics=default 41 | ro.lineage.device=piccolo 42 | # end build properties 43 | # 44 | # from device/bq/msm8916-common/system.prop 45 | # 46 | 47 | # Camera 48 | morpho.hdr.enable=1 49 | morpho.hdr.nthreads=8 50 | morpho.hdr.dumpframe=0 51 | morpho.hdr.ghostdsl=4 52 | morpho.hdr.reliablerrt=85 53 | morpho.hdr.ghostrt=60 54 | morpho.hdr.failsoftms=1 55 | morpho.hdr.ghostrsl=6 56 | morpho.hdr.fmcolorcontrast=8 57 | morpho.hdr.fmcolorsaturation=2 58 | morpho.hdr.ev0=0 59 | morpho.hdr.ev1=-9 60 | morpho.hdr.ev2=9 61 | morpho.denoiser.enable=0 62 | morpho.denoiser.nthreads=4 63 | morpho.denoiser.lumanrl=3 64 | morpho.denoiser.chromanrl=3 65 | morpho.denoiser.spikenoise=1 66 | morpho.denoiser.umaskthreshold=0 67 | morpho.denoiser.umaskweight=256 68 | persist.camera.cpp.duplication=false 69 | persist.camera.pip.support=0 70 | 71 | # Display 72 | debug.composition.type=c2d 73 | persist.hwc.mdpcomp.enable=true 74 | debug.mdpcomp.idletime=600 75 | debug.sf.enable_hwc_vds=1 76 | debug.sf.gpu_comp_tiling=1 77 | sys.hwc.gpu_perf_mode=1 78 | debug.enable.sglscale=1 79 | -------------------------------------------------------------------------------- /configs/media_codecs.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 82 | 83 | 99 | 100 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | -------------------------------------------------------------------------------- /configs/media_codecs_performance.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /configs/mixer_paths_skuk.xml: -------------------------------------------------------------------------------- 1 | 2 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 670 | 671 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | 940 | 941 | 942 | 943 | 944 | 945 | 946 | 947 | 948 | 949 | 950 | 951 | 952 | 953 | 954 | 955 | 956 | 957 | 958 | 959 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 969 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 978 | 979 | 980 | 981 | 982 | 983 | 984 | 985 | 986 | 987 | 988 | 989 | 990 | 991 | 992 | 993 | 994 | 995 | 996 | 997 | 998 | 999 | 1000 | 1001 | 1002 | 1003 | 1004 | 1005 | 1006 | 1007 | 1008 | 1009 | 1010 | 1011 | 1012 | 1013 | 1014 | 1015 | 1016 | 1017 | 1018 | 1019 | 1020 | 1021 | 1022 | 1023 | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 | 1031 | 1032 | 1033 | 1034 | 1035 | -------------------------------------------------------------------------------- /configs/msm_irqbalance.conf: -------------------------------------------------------------------------------- 1 | PRIO=0,0,0,0,1,1,1,1 2 | IGNORED_IRQ=20,39,200,203 3 | -------------------------------------------------------------------------------- /configs/thermal-engine.conf: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # BQ - AQUARIS M5 # 3 | ####################################### 4 | # SENSOR : ALIAS 5 | # tsens_tz_sensor9 : cpu4-5-6-7 6 | # tsens_tz_sensor8 : cpu3 7 | # tsens_tz_sensor7 : cpu2 8 | # tsens_tz_sensor6 : cpu1 9 | # tsens_tz_sensor5 : cpu0 10 | # tsens_tz_sensor2 : pop_mem 11 | #debug 12 | #Conf file: /system/etc/thermal-engine.conf 13 | 14 | ####################################### 15 | # SINGLE STEP FREQUENCY REDUCTION # 16 | ####################################### 17 | [SS-POPMEM] 18 | #algo_type ss 19 | sampling 250 20 | sensor pop_mem 21 | device cluster1 22 | set_point 56000 23 | set_point_clr 53000 24 | device_max_limit 960000 25 | time_constant 2 26 | 27 | [SS-CPU4-5-6-7] 28 | #algo_type ss 29 | sampling 50 30 | sensor cpu4-5-6-7 31 | device cluster0 32 | set_point 85000 33 | set_point_clr 55000 34 | time_constant 0 35 | 36 | [SS-CPU3] 37 | #algo_type ss 38 | sampling 50 39 | sensor cpu3 40 | device cluster1 41 | set_point 85000 42 | set_point_clr 55000 43 | time_constant 0 44 | 45 | [SS-CPU2] 46 | #algo_type ss 47 | sampling 50 48 | sensor cpu2 49 | device cluster1 50 | set_point 85000 51 | set_point_clr 55000 52 | time_constant 0 53 | 54 | [SS-CPU1] 55 | #algo_type ss 56 | sampling 50 57 | sensor cpu1 58 | device cluster1 59 | set_point 85000 60 | set_point_clr 55000 61 | time_constant 0 62 | 63 | [SS-CPU0] 64 | #algo_type ss 65 | sampling 50 66 | sensor cpu0 67 | device cluster1 68 | set_point 85000 69 | set_point_clr 55000 70 | time_constant 0 71 | 72 | ####################################### 73 | # CPU HOTPLUG MONITOR # 74 | ####################################### 75 | [CPU1_HOTPLUG_MONITOR] 76 | algo_type monitor 77 | sampling 1000 78 | sensor pop_mem 79 | thresholds 63000 80 | thresholds_clr 56000 81 | actions hotplug_1 82 | action_info 1 83 | 84 | [CPU2_HOTPLUG_MONITOR] 85 | algo_type monitor 86 | sampling 1000 87 | sensor pop_mem 88 | thresholds 60000 89 | thresholds_clr 56000 90 | actions hotplug_2 91 | action_info 1 92 | 93 | [CPU3_HOTPLUG_MONITOR] 94 | #algo_type monitor 95 | sampling 1000 96 | sensor cpu3 97 | thresholds 85000 98 | thresholds_clr 55000 99 | actions hotplug_3 100 | action_info 1 101 | 102 | ####################################### 103 | # CAMERA TEMPERATURE REDUCTION # 104 | ####################################### 105 | [CAMERA_CAMCORDER_MONITOR] 106 | #algo_type monitor 107 | sampling 1000 108 | sensor tsens_tz_sensor1 109 | thresholds 85000 90000 110 | thresholds_clr 80000 85000 111 | actions camera+camcorder camera+camcorder 112 | action_info 1+1 2+2 113 | 114 | ####################################### 115 | # LCD BRIGHTNESS REDUCTION # 116 | ####################################### 117 | #[LCD_management_Monitor] 118 | #algo_type monitor 119 | #sensor tsens_tz_sensor3 120 | #sampling 1000 121 | #thresholds 50000 55000 60000 63000 66000 122 | #thresholds_clr 48000 50000 55000 60000 63000 123 | #actions lcd lcd lcd lcd lcd 124 | #action_info 255 170 150 120 100 125 | 126 | ####################################### 127 | # CHARGING CURRENT REDUCTION # 128 | ####################################### 129 | [CHARGING_MONITOR] 130 | algo_type monitor 131 | sensor pop_mem 132 | sampling 1000 133 | thresholds 61000 68000 134 | thresholds_clr 57000 64000 135 | actions battery battery 136 | action_info 0 1 137 | 138 | ####################################### 139 | # VOLTAGE RESTRICTION # 140 | ####################################### 141 | [VDD_RSTR_MONITOR-TSENS9] 142 | #algo_type monitor 143 | sampling 1000 144 | sensor tsens_tz_sensor9 145 | thresholds 5000 146 | thresholds_clr 10000 147 | actions vdd_restriction 148 | action_info 1 149 | descending 150 | 151 | [VDD_RSTR_MONITOR-TSENS8] 152 | #algo_type monitor 153 | sampling 1000 154 | sensor tsens_tz_sensor8 155 | thresholds 5000 156 | thresholds_clr 10000 157 | actions vdd_restriction 158 | action_info 1 159 | descending 160 | 161 | [VDD_RSTR_MONITOR-TSENS7] 162 | #algo_type monitor 163 | sampling 1000 164 | sensor tsens_tz_sensor7 165 | thresholds 5000 166 | thresholds_clr 10000 167 | actions vdd_restriction 168 | action_info 1 169 | descending 170 | 171 | [VDD_RSTR_MONITOR-TSENS6] 172 | #algo_type monitor 173 | sampling 1000 174 | sensor tsens_tz_sensor6 175 | thresholds 5000 176 | thresholds_clr 10000 177 | actions vdd_restriction 178 | action_info 1 179 | descending 180 | 181 | [VDD_RSTR_MONITOR-TSENS5] 182 | #algo_type monitor 183 | sampling 1000 184 | sensor tsens_tz_sensor5 185 | thresholds 5000 186 | thresholds_clr 10000 187 | actions vdd_restriction 188 | action_info 1 189 | descending 190 | 191 | [VDD_RSTR_MONITOR-TSENS3] 192 | #algo_type monitor 193 | sampling 1000 194 | sensor tsens_tz_sensor3 195 | thresholds 5000 196 | thresholds_clr 10000 197 | actions vdd_restriction 198 | action_info 1 199 | descending 200 | 201 | [VDD_RSTR_MONITOR-TSENS2] 202 | #algo_type monitor 203 | sampling 1000 204 | sensor tsens_tz_sensor2 205 | thresholds 5000 206 | thresholds_clr 10000 207 | actions vdd_restriction 208 | action_info 1 209 | descending 210 | 211 | [VDD_RSTR_MONITOR-TSENS1] 212 | #algo_type monitor 213 | sampling 1000 214 | sensor tsens_tz_sensor1 215 | thresholds 5000 216 | thresholds_clr 10000 217 | actions vdd_restriction 218 | action_info 1 219 | descending 220 | 221 | [VDD_RSTR_MONITOR-TSENS0] 222 | #algo_type monitor 223 | sampling 1000 224 | sensor tsens_tz_sensor0 225 | thresholds 5000 226 | thresholds_clr 10000 227 | actions vdd_restriction 228 | action_info 1 229 | descending -------------------------------------------------------------------------------- /device.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # Copyright (C) 2017 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay 19 | 20 | PRODUCT_AAPT_CONFIG := normal 21 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi 22 | 23 | $(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk) 24 | 25 | # Audio 26 | PRODUCT_COPY_FILES += \ 27 | $(LOCAL_PATH)/configs/mixer_paths_skuk.xml:system/vendor/etc/mixer_paths_skuk.xml 28 | 29 | # Camera 30 | PRODUCT_COPY_FILES += \ 31 | $(LOCAL_PATH)/configs/hdrhax:system/vendor/etc/hdrhax 32 | 33 | # Display 34 | PRODUCT_COPY_FILES += \ 35 | $(LOCAL_PATH)/configs/calib.cfg:system/etc/display/calib.cfg \ 36 | 37 | # IRQ balance 38 | PRODUCT_COPY_FILES += \ 39 | $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf 40 | 41 | # Keylayouts 42 | PRODUCT_COPY_FILES += \ 43 | $(LOCAL_PATH)/keylayout/atmel_mxt_ts_T100_touchscreen.kl:system/vendor/usr/keylayout/atmel_mxt_ts_T100_touchscreen.kl \ 44 | $(LOCAL_PATH)/keylayout/Headset.kl:system/vendor/usr/keylayout/Headset.kl 45 | 46 | # Media 47 | PRODUCT_COPY_FILES += \ 48 | $(LOCAL_PATH)/configs/media_codecs.xml:system/vendor/etc/media_codecs.xml \ 49 | $(LOCAL_PATH)/configs/media_codecs_performance.xml:system/vendor/etc/media_codecs_performance.xml 50 | 51 | # NFC packages 52 | PRODUCT_PACKAGES += \ 53 | NfcNci \ 54 | Tag \ 55 | nfc_nci.bcm2079x.default 56 | 57 | PRODUCT_PACKAGES += \ 58 | android.hardware.nfc@1.0-impl-bcm \ 59 | android.hardware.nfc@1.0-service 60 | 61 | # NFC access control + feature files + configuration 62 | PRODUCT_COPY_FILES += \ 63 | frameworks/native/data/etc/android.hardware.nfc.xml:system/vendor/etc/permissions/android.hardware.nfc.xml \ 64 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/vendor/etc/permissions/android.hardware.nfc.hce.xml \ 65 | $(LOCAL_PATH)/nfc/libnfc-brcm.conf:system/vendor/etc/libnfc-brcm.conf \ 66 | $(LOCAL_PATH)/nfc/libnfc-brcm-20795a20.conf:system/vendor/etc/libnfc-brcm-20795a20.conf \ 67 | $(LOCAL_PATH)/nfc/nfcee_access.xml:system/etc/nfcee_access.xml 68 | 69 | # Permission 70 | PRODUCT_COPY_FILES += \ 71 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/vendor/etc/permissions/android.hardware.opengles.aep.xml 72 | 73 | # Qualcomm 74 | PRODUCT_PROPERTY_OVERRIDES += \ 75 | ro.qcom.ad.calib.data=/data/misc/display/calib.cfg \ 76 | ro.qcom.ad=1 \ 77 | ro.qualcomm.cabl=2 78 | 79 | # Ramdisk 80 | PRODUCT_PACKAGES += \ 81 | init.qcom.power.rc \ 82 | init.target.rc 83 | 84 | # Thermal 85 | PRODUCT_COPY_FILES += \ 86 | $(LOCAL_PATH)/configs/thermal-engine.conf:system/vendor/etc/thermal-engine.conf 87 | 88 | # Touchscreen 89 | PRODUCT_PACKAGES += \ 90 | init.atmel_ts.sh 91 | -------------------------------------------------------------------------------- /extract-files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2016 The CyanogenMod Project 4 | # Copyright (C) 2017 The LineageOS Project 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e 20 | 21 | DEVICE=piccolo 22 | VENDOR=bq 23 | 24 | # Load extract_utils and do some sanity checks 25 | MY_DIR="${BASH_SOURCE%/*}" 26 | if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi 27 | 28 | LINEAGE_ROOT="$MY_DIR"/../../.. 29 | 30 | HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh 31 | if [ ! -f "$HELPER" ]; then 32 | echo "Unable to find helper script at $HELPER" 33 | exit 1 34 | fi 35 | . "$HELPER" 36 | 37 | # Default to sanitizing the vendor folder before extraction 38 | CLEAN_VENDOR=true 39 | 40 | while [ "$1" != "" ]; do 41 | case $1 in 42 | -n | --no-cleanup ) CLEAN_VENDOR=false 43 | ;; 44 | -s | --section ) shift 45 | SECTION=$1 46 | CLEAN_VENDOR=false 47 | ;; 48 | * ) SRC=$1 49 | ;; 50 | esac 51 | shift 52 | done 53 | 54 | if [ -z "$SRC" ]; then 55 | SRC=adb 56 | fi 57 | 58 | # Initialize the helper 59 | setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR" 60 | 61 | extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION" 62 | 63 | "$MY_DIR"/setup-makefiles.sh 64 | -------------------------------------------------------------------------------- /full_piccolo.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 The CyanogenMod Project 3 | # Copyright (C) 2017 The LineageOS Project 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # Inherit from the common Open Source product configuration 19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) 20 | 21 | # Inherit from hardware-specific part of the product configuration 22 | $(call inherit-product, device/bq/msm8916-common/msm8916.mk) 23 | $(call inherit-product, device/bq/piccolo/device.mk) 24 | $(call inherit-product-if-exists, vendor/bq/piccolo/piccolo-vendor.mk) 25 | 26 | # Device identifier. This must come after all inclusions. 27 | PRODUCT_DEVICE := piccolo 28 | PRODUCT_NAME := full_piccolo 29 | PRODUCT_BRAND := bq 30 | PRODUCT_MODEL := Aquaris M5 31 | PRODUCT_MANUFACTURER := bq 32 | -------------------------------------------------------------------------------- /keylayout/Headset.kl: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | 27 | key 261 VOLUME_DOWN 28 | key 258 VOLUME_UP 29 | key 256 HEADSETHOOK 30 | -------------------------------------------------------------------------------- /keylayout/atmel_mxt_ts_T100_touchscreen.kl: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are 5 | # met: 6 | # * Redistributions of source code must retain the above copyright 7 | # notice, this list of conditions and the following disclaimer. 8 | # * Redistributions in binary form must reproduce the above 9 | # copyright notice, this list of conditions and the following 10 | # disclaimer in the documentation and/or other materials provided 11 | # with the distribution. 12 | # * Neither the name of The Linux Foundation nor the names of its 13 | # contributors may be used to endorse or promote products derived 14 | # from this software without specific prior written permission. 15 | # 16 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17 | # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26 | 27 | key 158 BACK VIRTUAL 28 | key 172 HOME VIRTUAL 29 | key 139 APP_SWITCH VIRTUAL 30 | key 217 SEARCH VIRTUAL 31 | key 143 WAKEUP VIRTUAL 32 | 33 | -------------------------------------------------------------------------------- /lineage.dependencies: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "repository": "android_device_bq_msm8916-common", 4 | "target_path": "device/bq/msm8916-common" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /lineage.mk: -------------------------------------------------------------------------------- 1 | # Boot animation 2 | TARGET_SCREEN_HEIGHT := 1920 3 | TARGET_SCREEN_WIDTH := 1080 4 | TARGET_BOOTANIMATION_HALF_RES := true 5 | 6 | # Inherit some common Lineage stuff 7 | $(call inherit-product, vendor/lineage/config/common_full_phone.mk) 8 | 9 | # Inherit device configuration 10 | $(call inherit-product, device/bq/piccolo/full_piccolo.mk) 11 | 12 | PRODUCT_RELEASE_NAME := Aquaris M5 13 | PRODUCT_NAME := lineage_piccolo 14 | 15 | # Set product device & name 16 | PRODUCT_BUILD_PROP_OVERRIDES += \ 17 | TARGET_DEVICE=Aquaris_M5 PRODUCT_NAME=Aquaris_M5 18 | 19 | PRODUCT_BUILD_PROP_OVERRIDES += \ 20 | PRIVATE_BUILD_DESC="piccolo-user 7.1.2 N2G47H 5.1.0_20180205-1243 release-keys" 21 | 22 | BUILD_FINGERPRINT := bq/Aquaris_M5/Aquaris_M5:7.1.2/N2G47H/1517833600:user/release-keys 23 | 24 | PRODUCT_GMS_CLIENTID_BASE := android-bq 25 | 26 | # Vendor security patch level 27 | PRODUCT_PROPERTY_OVERRIDES += \ 28 | ro.lineage.build.vendor_security_patch=2018-01-05 29 | -------------------------------------------------------------------------------- /lineagehw/src/org/lineageos/hardware/KeyDisabler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The CyanogenMod Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package org.lineageos.hardware; 18 | 19 | import org.lineageos.internal.util.FileUtils; 20 | 21 | import java.io.File; 22 | 23 | /* 24 | * Disable capacitive keys 25 | * 26 | * This is intended for use on devices in which the capacitive keys 27 | * can be fully disabled for replacement with a soft navbar. You 28 | * really should not be using this on a device with mechanical or 29 | * otherwise visible-when-inactive keys 30 | */ 31 | 32 | public class KeyDisabler { 33 | 34 | private static String KEY_CONTROL_PATH = "/sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/disable_keys"; 35 | 36 | public static boolean isSupported() { 37 | return FileUtils.isFileWritable(KEY_CONTROL_PATH); 38 | } 39 | 40 | public static boolean isActive() { 41 | if (isSupported()) return Integer.parseInt(FileUtils.readOneLine(KEY_CONTROL_PATH)) == 1; 42 | return false; 43 | } 44 | 45 | public static boolean setActive(boolean state) { 46 | if (isSupported()) return FileUtils.writeLine(KEY_CONTROL_PATH, state ? "1" : "0"); 47 | return false; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | android.hardware.nfc 4 | hwbinder 5 | 1.0 6 | 7 | INfc 8 | default 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /nfc/libnfc-brcm-20795a20.conf: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Firmware patch file 3 | FW_PATCH="/vendor/firmware/BCM20795A2_001.003.025.0005.0050_Generic_I2C_NCD_Unsigned_configdata.ncd" 4 | 5 | ############################################################################### 6 | # Firmware pre-patch file (sent before the above patch file) 7 | #FW_PRE_PATCH="/vendor/firmware/BCM20795A2_001.003.025.0005.0000_Generic_I2C_NCD_Unsigned_configdata.ncd" 8 | 9 | ############################################################################### 10 | # LPTD mode configuration 11 | LPTD_CFG={10:B9:0E:01:00:FF:FF:00:00:8B:13:00:10:00:06:00:00} 12 | 13 | ############################################################################### 14 | # Reverse LPTD mode configuration 15 | REV_LPTD_CFG={03:B9:01:39} 16 | 17 | # AFE3-CLM Add E1 by Lars 18 | NFA_DM_START_UP_CFG={66:80:01:01:E2:04:67:1D:00:12:E3:04:02:00:1D:0F:E4:09:56:22:00:00:00:00:00:00:00:E5:0D:89:59:00:70:56:11:05:04:12:60:0A:00:14:CA:05:00:00:00:00:08:D6:01:00:DD:2D:00:00:20:00:00:00:01:85:00:00:00:00:00:00:55:55:55:55:55:55:55:55:55:55:55:55:55:00:A8:00:02:60:60:77:82:E3:4C:7F:60:60:97:42:E3:8C:0F:E1:02:69:01} 19 | 20 | ############################################################################### 21 | # Pre-Discovery Startup Configuration (256 bytes maximum) 22 | #NFA_DM_PRE_DISCOVERY_CFG={0A:C2:08:03:00:C3:04:40:4B:4C:00} 23 | 24 | ############################################################################### 25 | # Snooze Mode Settings 26 | SNOOZE_MODE_CFG={08:00:00:00:01} 27 | 28 | ############################################################################### 29 | # Choose the presence-check algorithm for type-4 tag. 30 | PRESENCE_CHECK_ALGORITHM=1 31 | 32 | -------------------------------------------------------------------------------- /nfc/libnfc-brcm.conf: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Application options 3 | APPL_TRACE_LEVEL=0xFF 4 | PROTOCOL_TRACE_LEVEL=0xFFFFFFFF 5 | 6 | ############################################################################### 7 | # File used for NFA storage 8 | NFA_STORAGE="/data/nfc" 9 | PRESERVE_STORAGE=1 10 | 11 | ############################################################################### 12 | # Various Delay settings (in ms) used in USERIAL 13 | POWER_ON_DELAY=300 14 | PRE_POWER_OFF_DELAY=10 15 | CE3_PRE_POWER_OFF_DELAY=1500 16 | 17 | ############################################################################### 18 | # Maximum time (ms) to wait for RESET NTF after setting REG_PU to high 19 | NFCC_ENABLE_TIMEOUT=2000 20 | 21 | ############################################################################### 22 | # Startup Vendor Specific Configuration (100 bytes maximum); 23 | # byte[0] TLV total len = 0x5 24 | # byte[1] NCI_MTS_CMD|NCI_GID_PROP = 0x2f 25 | # byte[2] NCI_MSG_FRAME_LOG = 0x9 26 | # byte[3] 2 27 | # byte[4] 0=turn off RF frame logging; 1=turn on 28 | # byte[5] 0=turn off SWP frame logging; 1=turn on 29 | #NFA_DM_START_UP_VSC_CFG={05:2F:09:02:01:01} 30 | 31 | ############################################################################### 32 | # Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h. 33 | NFA_MAX_EE_SUPPORTED=3 34 | 35 | ############################################################################### 36 | # Configure the default NfcA/IsoDep techology and protocol route. Can be 37 | # either a secure element (e.g. 0xF4) or the host (0x00) 38 | DEFAULT_ISODEP_ROUTE=0x00 39 | 40 | ############################################################################### 41 | # Configure the default "off-host" AID route. The default is 0xF4 42 | DEFAULT_OFFHOST_ROUTE=0xF4 43 | 44 | ############################################################################### 45 | # Configure the NFC Extras to open and use a static pipe. If the value is 46 | # not set or set to 0, then the default is use a dynamic pipe based on a 47 | # destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value 48 | # for each UICC (where F3="UICC0" and F4="UICC1") 49 | #NFA_HCI_STATIC_PIPE_ID_F3=0x70 50 | NFA_HCI_STATIC_PIPE_ID_F4=0x71 51 | 52 | ############################################################################### 53 | # Configure CE Listen mask based on SE technologies supported. 54 | CE_ISODEP_LISTEN_MODE=2 55 | 56 | ############################################################################### 57 | # Warm reset command for Oberthur 58 | OBERTHUR_WARM_RESET_COMMAND=0x03 59 | 60 | ############################################################################### 61 | # Exclude some technologies when establishing the listen mask. 62 | UICC_LISTEN_TECH_EXCLUDE_MASK=0x10 63 | 64 | ############################################################################### 65 | # AID for Empty Select command 66 | AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} 67 | 68 | ############################################################################### 69 | # Force tag polling for the specific technology(s). 70 | POLLING_TECH_MASK=0xEF 71 | 72 | ############################################################################### 73 | # When screen is turned off, specify the desired power state of the controller. 74 | SCREEN_OFF_POWER_STATE=3 75 | 76 | ############################################################################### 77 | # transport driver 78 | TRANSPORT_DRIVER="/dev/bcm2079x" 79 | 80 | ############################################################################### 81 | # power control driver 82 | POWER_CONTROL_DRIVER="/dev/bcm2079x" 83 | 84 | ############################################################################### 85 | # Insert a delay in microseconds per byte after a write to NFCC. 86 | NFC_WRITE_DELAY=20 87 | 88 | ############################################################################### 89 | # Insert a delay in milliseconds after NFC_WAKE and before write to NFCC 90 | NFC_WAKE_DELAY=20 91 | 92 | ############################################################################### 93 | # Override the NFC stack's crystal frequency selection algorithm. 94 | XTAL_HARDWARE_ID=0x20795A20 95 | XTAL_FREQUENCY=19200 96 | XTAL_FREQ_INDEX=3 97 | 98 | ############################################################################### 99 | # AID Filtering feature 100 | ENABLE_AID_FILTERING=0 101 | 102 | ############################################################################### 103 | # Select controller support for AID matching 104 | # the default value is 0. 105 | # 0 Exact matching only 106 | # 1 Exact+Prefix matching 107 | # 2 Prefix matching only 108 | AID_MATCHING_MODE=2 109 | 110 | ############################################################################### 111 | # Select transport prefix 112 | # the default value is 0. 113 | # 0 The NFCC does not use a one-byte transport prefix (ie. 20797 and newer) 114 | # 1 The NFCC uses a one-byte transport prefix (ie. 20795 and older) 115 | TRANSPORT_PREFIX=1 116 | 117 | ############################################################################### 118 | # NCI Hal Module name 119 | NCI_HAL_MODULE="nfc_nci.bcm2079x" 120 | -------------------------------------------------------------------------------- /nfc/nfcee_access.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /overlay/frameworks/base/core/res/res/xml/power_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 0 4 | 53 5 | 206 6 | 177 7 | 0.7 8 | 0.9 9 | 45 10 | 138 11 | 46.1 12 | 93.2 13 | 354 14 | 572 15 | 38.4 16 | 149 17 | 300 18 | 19 | 18 20 | 4 21 | 22 | 23 | 200000 24 | 345600 25 | 400000 26 | 533333 27 | 800000 28 | 960000 29 | 1113600 30 | 1344000 31 | 1459200 32 | 33 | 34 | 200000 35 | 249600 36 | 499200 37 | 800000 38 | 998400 39 | 1113600 40 | 41 | 3.45 42 | 16 43 | 44 | 57.5 45 | 71.2 46 | 74.9 47 | 98.9 48 | 127.3 49 | 147.4 50 | 175.5 51 | 254.1 52 | 280.1 53 | 54 | 55 | 18.6 56 | 22.8 57 | 43.5 58 | 68.1 59 | 126.4 60 | 169.5 61 | 62 | 63 | 4 64 | 4 65 | 66 | 3120 67 | 68 | .0138 69 | .1121 70 | .8858 71 | 7.076 72 | 56.59 73 | 74 | -------------------------------------------------------------------------------- /power/power_ext.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2016 The CyanogenMod Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | #define LOG_TAG "PowerHAL_MSM8939_Ext" 23 | #include 24 | 25 | #define BIG_MAX_CPU_PATH "/sys/devices/system/cpu/cpu0/core_ctl/max_cpus" 26 | 27 | static void sysfs_write(char *path, char *s) 28 | { 29 | char buf[80]; 30 | int len; 31 | int fd; 32 | 33 | if ((fd = open(path, O_WRONLY)) < 0) { 34 | strerror_r(errno, buf, sizeof(buf)); 35 | ALOGE("Error opening %s: %s\n", path, buf); 36 | return; 37 | } 38 | 39 | len = write(fd, s, strlen(s)); 40 | if (len < 0) { 41 | strerror_r(errno, buf, sizeof(buf)); 42 | ALOGE("Error writing to %s: %s\n", path, buf); 43 | } 44 | 45 | close(fd); 46 | } 47 | 48 | void cm_power_set_interactive_ext(int on) 49 | { 50 | ALOGD("%sabling big CPU cluster", on ? "En" : "Dis"); 51 | sysfs_write(BIG_MAX_CPU_PATH, on ? "4" : "0"); 52 | } 53 | -------------------------------------------------------------------------------- /proprietary-files.txt: -------------------------------------------------------------------------------- 1 | # ADSP 2 | bin/adsprpcd:vendor/bin/adsprpcd 3 | vendor/lib/libadsprpc.so 4 | vendor/lib/libfastcvopt.so 5 | 6 | # Audio ACBD 7 | etc/acdbdata/QRD/QRD_Bluetooth_cal.acdb 8 | etc/acdbdata/QRD/QRD_General_cal.acdb 9 | etc/acdbdata/QRD/QRD_Global_cal.acdb 10 | etc/acdbdata/QRD/QRD_Handset_cal.acdb 11 | etc/acdbdata/QRD/QRD_Hdmi_cal.acdb 12 | etc/acdbdata/QRD/QRD_Headset_cal.acdb 13 | etc/acdbdata/QRD/QRD_Speaker_cal.acdb 14 | 15 | # Audio libraries 16 | vendor/lib/soundfx/libqcbassboost.so 17 | vendor/lib/soundfx/libqcreverb.so 18 | vendor/lib/soundfx/libqcvirt.so 19 | vendor/lib/libacdb-fts.so 20 | vendor/lib/libacdbloader.so 21 | vendor/lib/libacdbrtac.so 22 | vendor/lib/libadiertac.so 23 | vendor/lib/libaudcal.so 24 | vendor/lib/libFlacSwDec.so 25 | 26 | # Bluetooth 27 | bin/hci_qcomm_init:vendor/bin/hci_qcomm_init 28 | vendor/lib/libbtnv.so 29 | 30 | # Camera 31 | bin/mm-qcamera-daemon:vendor/bin/mm-qcamera-daemon 32 | lib/hw/camera.msm8916.so:vendor/lib/hw/camera.msm8916.so 33 | lib/libarcsoft_beautyshot.so:vendor/lib/libarcsoft_beautyshot.so 34 | lib/libarcsoft_panorama_burstcapture.so:vendor/lib/libarcsoft_panorama_burstcapture.so 35 | lib/libcam.beautyshot.so:vendor/lib/libcam.beautyshot.so 36 | lib/libmmcamera_interface.so:vendor/lib/libmmcamera_interface.so 37 | lib/libmmjpeg_interface.so:vendor/lib/libmmjpeg_interface.so 38 | lib/libmm-qcamera.so:vendor/lib/libmm-qcamera.so 39 | lib/libmpbase.so:vendor/lib/libmpbase.so 40 | lib/libqomx_core.so:vendor/lib/libqomx_core.so 41 | vendor/lib/libjpegdhw.so 42 | vendor/lib/libjpegehw.so 43 | vendor/lib/libmmcamera2_c2d_module.so 44 | vendor/lib/libmmcamera2_cpp_module.so 45 | vendor/lib/libmmcamera2_frame_algorithm.so 46 | vendor/lib/libmmcamera2_iface_modules.so 47 | vendor/lib/libmmcamera2_imglib_modules.so 48 | vendor/lib/libmmcamera2_is.so 49 | vendor/lib/libmmcamera2_isp_modules.so 50 | vendor/lib/libmmcamera2_pproc_modules.so 51 | vendor/lib/libmmcamera2_q3a_core.so 52 | vendor/lib/libmmcamera2_sensor_modules.so 53 | vendor/lib/libmmcamera2_stats_algorithm.so 54 | vendor/lib/libmmcamera2_stats_modules.so 55 | vendor/lib/libmmcamera2_vpe_module.so 56 | vendor/lib/libmmcamera2_wnr_module.so 57 | vendor/lib/libmmcamera_faceproc.so 58 | vendor/lib/libmmcamera_hdr_gb_lib.so 59 | vendor/lib/libmmcamera_hdr_lib.so 60 | vendor/lib/libmmcamera_imx214_f13n05e_eeprom.so 61 | vendor/lib/libmmcamera_imx214_f13n05e.so 62 | vendor/lib/libmmcamera_imx214_olqba15_eeprom.so 63 | vendor/lib/libmmcamera_imx214_olqba15.so 64 | vendor/lib/libmmcamera_s5k5e2_olq5f24_eeprom.so 65 | vendor/lib/libmmcamera_s5k5e2_olq5f24.so 66 | vendor/lib/libmmcamera_imglib.so|b6b65c8d0f3b34bca28b68a5bc0e1b141a03a2ce 67 | vendor/lib/libmmcamera_tintless_algo.so 68 | vendor/lib/libmmcamera_tintless_bg_pca_algo.so 69 | vendor/lib/libmmcamera_wavelet_lib.so 70 | vendor/lib/libmmipl.so 71 | vendor/lib/libmmjpeg.so 72 | vendor/lib/libmmqjpeg_codec.so 73 | vendor/lib/liboemcamera.so 74 | vendor/lib/libqomx_jpegenc.so 75 | vendor/lib/libts_detected_face_hal.so 76 | vendor/lib/libts_face_beautify_hal.so 77 | 78 | # Camera actuator 79 | vendor/lib/libactuator_dw9761b_f13n05e_camcorder.so 80 | vendor/lib/libactuator_dw9761b_f13n05e_camera.so 81 | vendor/lib/libactuator_dw9761b_f13n05e.so 82 | vendor/lib/libactuator_dw9761_ofilm_camcorder.so 83 | vendor/lib/libactuator_dw9761_ofilm_camera.so 84 | vendor/lib/libactuator_dw9761_ofilm.so 85 | 86 | # Camera chromatix 87 | vendor/lib/libchromatix_imx214_f13n05e_common.so 88 | vendor/lib/libchromatix_imx214_f13n05e_hfr_120fps.so 89 | vendor/lib/libchromatix_imx214_f13n05e_hfr_60fps.so 90 | vendor/lib/libchromatix_imx214_f13n05e_hfr_90fps.so 91 | vendor/lib/libchromatix_imx214_f13n05e_liveshot.so 92 | vendor/lib/libchromatix_imx214_f13n05e_preview.so 93 | vendor/lib/libchromatix_imx214_f13n05e_snapshot_hdr.so 94 | vendor/lib/libchromatix_imx214_f13n05e_snapshot.so 95 | vendor/lib/libchromatix_imx214_f13n05e_video_hdr.so 96 | vendor/lib/libchromatix_imx214_f13n05e_video_hd.so 97 | vendor/lib/libchromatix_imx214_f13n05e_video.so 98 | vendor/lib/libchromatix_imx214_olqba15_common.so 99 | vendor/lib/libchromatix_imx214_olqba15_hfr_120fps.so 100 | vendor/lib/libchromatix_imx214_olqba15_hfr_60fps.so 101 | vendor/lib/libchromatix_imx214_olqba15_hfr_90fps.so 102 | vendor/lib/libchromatix_imx214_olqba15_liveshot.so 103 | vendor/lib/libchromatix_imx214_olqba15_preview.so 104 | vendor/lib/libchromatix_imx214_olqba15_snapshot_hdr.so 105 | vendor/lib/libchromatix_imx214_olqba15_snapshot.so 106 | vendor/lib/libchromatix_imx214_olqba15_video_hdr.so 107 | vendor/lib/libchromatix_imx214_olqba15_video_hd.so 108 | vendor/lib/libchromatix_imx214_olqba15_video.so 109 | vendor/lib/libchromatix_s5k5e2_olq5f24_common.so 110 | vendor/lib/libchromatix_s5k5e2_olq5f24_liveshot.so 111 | vendor/lib/libchromatix_s5k5e2_olq5f24_preview.so 112 | vendor/lib/libchromatix_s5k5e2_olq5f24_snapshot.so 113 | vendor/lib/libchromatix_s5k5e2_olq5f24_video_hd.so 114 | vendor/lib/libchromatix_s5k5e2_olq5f24_video.so 115 | 116 | # Camera firmware 117 | etc/firmware/cpp_firmware_v1_1_1.fw:vendor/firmware/cpp_firmware_v1_1_1.fw 118 | etc/firmware/cpp_firmware_v1_1_6.fw:vendor/firmware/cpp_firmware_v1_1_6.fw 119 | etc/firmware/cpp_firmware_v1_2_0.fw:vendor/firmware/cpp_firmware_v1_2_0.fw 120 | etc/firmware/cpp_firmware_v1_4_0.fw:vendor/firmware/cpp_firmware_v1_4_0.fw 121 | 122 | # Color convertor 123 | vendor/lib/libI420colorconvert.so 124 | vendor/lib/libmm-color-convertor.so 125 | 126 | # DRM 127 | bin/qseecomd:vendor/bin/qseecomd 128 | vendor/lib/mediadrm/libwvdrmengine.so|66ba66d047044f92eb0eada1faf6a5799ded90ab 129 | vendor/lib/libdrmfs.so 130 | vendor/lib/libdrmtime.so 131 | vendor/lib/libQSEEComAPI.so 132 | vendor/lib/librpmb.so 133 | vendor/lib/libssd.so 134 | 135 | # GPS 136 | -lib/libloc_api_v02.so:vendor/lib/libloc_api_v02.so 137 | vendor/lib/hw/flp.default.so 138 | vendor/lib/libflp.so 139 | vendor/lib/libgeofence.so 140 | vendor/lib/libizat_core.so 141 | vendor/lib/liblbs_core.so 142 | 143 | # Graphics 144 | vendor/lib/egl/eglsubAndroid.so 145 | vendor/lib/egl/eglSubDriverAndroid.so 146 | vendor/lib/egl/libEGL_adreno.so 147 | vendor/lib/egl/libESXEGL_adreno.so 148 | vendor/lib/egl/libESXGLESv1_CM_adreno.so 149 | vendor/lib/egl/libESXGLESv2_adreno.so 150 | vendor/lib/egl/libGLESv1_CM_adreno.so 151 | vendor/lib/egl/libGLESv2_adreno.so 152 | vendor/lib/egl/libq3dtools_adreno.so 153 | vendor/lib/egl/libQTapGLES.so 154 | vendor/lib/egl/libRBEGL_adreno.so 155 | vendor/lib/egl/libRBGLESv1_CM_adreno.so 156 | vendor/lib/egl/libRBGLESv2_adreno.so 157 | vendor/lib/libadreno_utils.so 158 | vendor/lib/libC2D2.so 159 | vendor/lib/libc2d30-a4xx.so 160 | vendor/lib/libCB.so 161 | vendor/lib/libgsl.so 162 | vendor/lib/libllvm-glnext.so 163 | vendor/lib/libllvm-qcom.so 164 | vendor/lib/libOpenCL.so 165 | vendor/lib/librs_adreno.so 166 | vendor/lib/librs_adreno_sha1.so 167 | vendor/lib/libRSDriver_adreno.so 168 | vendor/lib/libsc-a3xx.so 169 | vendor/lib/libscale.so 170 | 171 | # Graphics firmware 172 | etc/firmware/a420_pfp.fw:vendor/firmware/a420_pfp.fw 173 | etc/firmware/a420_pm4.fw:vendor/firmware/a420_pm4.fw 174 | 175 | # Media 176 | vendor/lib/libOmxAacDec.so 177 | vendor/lib/libOmxEvrcDec.so 178 | vendor/lib/libOmxQcelp13Dec.so 179 | 180 | # Media firmware 181 | etc/firmware/venus.b00:vendor/firmware/venus.b00 182 | etc/firmware/venus.b01:vendor/firmware/venus.b01 183 | etc/firmware/venus.b02:vendor/firmware/venus.b02 184 | etc/firmware/venus.b03:vendor/firmware/venus.b03 185 | etc/firmware/venus.b04:vendor/firmware/venus.b04 186 | etc/firmware/venus.mbn:vendor/firmware/venus.mbn 187 | etc/firmware/venus.mdt:vendor/firmware/venus.mdt 188 | 189 | # NFC 190 | vendor/firmware/BCM20795A2_001.003.025.0005.0050_Generic_I2C_NCD_Unsigned_configdata.ncd 191 | 192 | # Perf 193 | bin/msm_irqbalance:vendor/bin/msm_irqbalance 194 | vendor/bin/perfd 195 | vendor/lib/libqti-perfd-client.so 196 | 197 | # Postprocessing 198 | bin/mm-pp-daemon:vendor/bin/mm-pp-daemon 199 | vendor/lib/libdisp-aba.so 200 | vendor/lib/libmm-abl.so 201 | vendor/lib/libmm-abl-oem.so 202 | vendor/lib/libmm-als.so 203 | vendor/lib/libmm-disp-apis.so 204 | vendor/lib/libmm-qdcm.so 205 | 206 | # QMI 207 | bin/irsc_util:vendor/bin/irsc_util 208 | vendor/lib/libdiag.so 209 | vendor/lib/libdsutils.so 210 | vendor/lib/libidl.so 211 | vendor/lib/libperipheral_client.so 212 | vendor/lib/libqcci_legacy.so 213 | vendor/lib/libqdi.so 214 | vendor/lib/libqdp.so 215 | vendor/lib/libqmi.so 216 | vendor/lib/libqmi_cci.so 217 | vendor/lib/libqmi_client_helper.so 218 | vendor/lib/libqmi_client_qmux.so 219 | vendor/lib/libqmi_common_so.so 220 | vendor/lib/libqmi_csi.so 221 | vendor/lib/libqmi_encdec.so 222 | vendor/lib/libqmiservices.so 223 | 224 | # Radio 225 | bin/netmgrd:vendor/bin/netmgrd|d77099ffd5a90c00d01c724afff1c5af65017810 226 | bin/qmuxd:vendor/bin/qmuxd|6520977546405d9d056c9e9e924668721b2d51b1 227 | bin/radish:vendor/bin/radish 228 | bin/rmt_storage:vendor/bin/rmt_storage 229 | vendor/lib/libcneapiclient.so|bc72c9476b60a12bbb6c4c56038ff3bc8234c178 230 | vendor/lib/libconfigdb.so 231 | vendor/lib/libdsi_netctrl.so|ec582c12b8ba3ecdeb71094e267eff8e2d9d396d 232 | vendor/lib/liblqe.so 233 | vendor/lib/libmdmdetect.so 234 | vendor/lib/libnetmgr.so 235 | vendor/lib/libril-qc-ltedirectdisc.so 236 | vendor/lib/libril-qc-qmi-1.so 237 | vendor/lib/libril-qc-radioconfig.so 238 | vendor/lib/libril-qcril-hook-oem.so 239 | vendor/lib/librilqmiservices.so 240 | vendor/lib/libsettings.so|44b7221b87a62f196b59d6beeaf84641a2ca1997 241 | vendor/lib/libsmemlog.so 242 | vendor/lib/libsystem_health_mon.so 243 | vendor/lib/libxml.so 244 | 245 | # Sensors 246 | bin/sensord:vendor/bin/sensord 247 | lib/hw/sensors.msm8916.so:vendor/lib/hw/sensors.msm8916.so 248 | 249 | # Thermal 250 | vendor/bin/thermal-engine|01f1732dc939b87c681479e6beb3f0ed345fe01b 251 | vendor/lib/libthermalclient.so 252 | vendor/lib/libthermalioctl.so 253 | 254 | # Time services 255 | -app/TimeService/TimeService.apk:vendor/app/TimeService/TimeService.apk 256 | bin/time_daemon:vendor/bin/time_daemon 257 | -vendor/lib/libtime_genoff.so 258 | vendor/lib/libTimeService.so 259 | 260 | # Touchscreen 261 | etc/firmware/A4_15_2.2_AA.raw:vendor/firmware/A4_15_2.2_AA.raw 262 | 263 | # WLAN 264 | bin/wcnss_service:vendor/bin/wcnss_service|83af45e1b3a68fb4dfb38605f4044fd3841858ab 265 | -------------------------------------------------------------------------------- /rootdir/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH:= $(call my-dir) 2 | 3 | # Configuration script 4 | 5 | include $(CLEAR_VARS) 6 | LOCAL_MODULE := init.atmel_ts.sh 7 | LOCAL_MODULE_TAGS := optional eng 8 | LOCAL_MODULE_CLASS := ETC 9 | LOCAL_SRC_FILES := etc/init.atmel_ts.sh 10 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) 11 | include $(BUILD_PREBUILT) 12 | 13 | # Init scripts 14 | 15 | include $(CLEAR_VARS) 16 | LOCAL_MODULE := init.qcom.power.rc 17 | LOCAL_MODULE_TAGS := optional eng 18 | LOCAL_MODULE_CLASS := ETC 19 | LOCAL_SRC_FILES := etc/init.qcom.power.rc 20 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw 21 | include $(BUILD_PREBUILT) 22 | 23 | include $(CLEAR_VARS) 24 | LOCAL_MODULE := init.target.rc 25 | LOCAL_MODULE_TAGS := optional eng 26 | LOCAL_MODULE_CLASS := ETC 27 | LOCAL_SRC_FILES := etc/init.target.rc 28 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw 29 | include $(BUILD_PREBUILT) 30 | -------------------------------------------------------------------------------- /rootdir/etc/init.atmel_ts.sh: -------------------------------------------------------------------------------- 1 | #!/vendor/bin/sh 2 | 3 | sleep 2 4 | 5 | insmod /data/temp/mxt.ko 6 | 7 | cd /sys/bus/i2c/devices/5-004a 8 | 9 | chown root root * 10 | chmod 666 update_cfg 11 | #chmod 666 update_fw 12 | 13 | #format: [family id]_[variant id]_[version]_[build].fw 14 | #format: [family id]_[variant id]_[version]_[build].raw 15 | 16 | #UID for config match 17 | #format: [family id]_[variant id]_[version]_[build].raw.[UID TAG] 18 | echo "2" > t19 19 | 20 | #enable f/w upgrade 21 | #echo "A4_15_2.2_AA.fw" > update_fw 22 | 23 | #update new config 24 | echo "A4_15_2.2_AA.raw" > update_cfg 25 | 26 | #for pid (pid name = 01) 27 | # switch to "A4_15_2.1_AA.raw.01" 28 | 29 | sleep 1 30 | 31 | #enable plugin 32 | # 33 | #format: pl enable [hex] 34 | #[0] : CAL 35 | #[1] : MSC 36 | #[2] : PI 37 | #[3] : CLIP 38 | #[4] : PLUG PAUSE 39 | echo "pl enable 6" > plugin 40 | 41 | #PTC auto tune (should enable MSC above,sleep 5s for tune complete) 42 | #[0] : tune not store 43 | #[1] : tune and store 44 | #[2] : re-tune and not store 45 | #[3] : re-tune and store 46 | #[other value] : report tune status 47 | #echo "msc ptc tune 1" > plugin 48 | #sleep 7 49 | 50 | #set gesture list 51 | #format: ; ;... 52 | #you could run command "cat gesture_list" for current config list 53 | #: bit[0]: enable 54 | # bit[1]: disable, 55 | # bit[3] status (1: excuted) 56 | #echo "LEFT 1;UNLOCK0 1;e 1;" > gesture_list 57 | echo "TAP 1;" > gesture_list 58 | 59 | #enable gesture feature 60 | #echo 1 > en_gesture 61 | 62 | #echo "pl enable 7" > plugin 63 | chmod 440 update_cfg 64 | #chmod 440 update_fw 65 | 66 | -------------------------------------------------------------------------------- /rootdir/etc/init.qcom.power.rc: -------------------------------------------------------------------------------- 1 | on enable-low-power 2 | 3 | write /proc/sys/kernel/sched_boost 1 4 | 5 | write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 10 6 | 7 | # Enable adaptive LMK and set vmpressure_file_min 8 | write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 9 | write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059 10 | 11 | # HMP scheduler settings 12 | write /proc/sys/kernel/sched_window_stats_policy 3 13 | write /proc/sys/kernel/sched_ravg_hist_size 5 14 | 15 | # HMP Task packing settings 16 | write /proc/sys/kernel/sched_small_task 20 17 | write /proc/sys/kernel/sched_mostly_idle_load 30 18 | write /proc/sys/kernel/sched_mostly_idle_nr_run 3 19 | 20 | write /sys/class/devfreq/qcom,mincpubw.65/governor "cpufreq" 21 | write /sys/class/devfreq/qcom,cpubw.64/governor "bw_hwmon" 22 | write /sys/class/devfreq/qcom,cpubw.64/bw_hwmon/io_percent 20 23 | write /sys/class/devfreq/qcom,gpubw.61/governor "bw_hwmon" 24 | write /sys/class/devfreq/qcom,gpubw.61/bw_hwmon/io_percent 40 25 | 26 | # Disable thermal core_control to update interactive gov settings 27 | write /sys/module/msm_thermal/core_control/enabled 0 28 | 29 | # Enable governor for perf cluster 30 | write /sys/devices/system/cpu/cpu0/online 1 31 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive" 32 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay "20000 1113600:50000" 33 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 85 34 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 20000 35 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 1113600 36 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 0 37 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "1 960000:85 1113600:90 1344000:80" 38 | write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 50000 39 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 960000 40 | 41 | # Enable governor for power cluster 42 | write /sys/devices/system/cpu/cpu4/online 1 43 | write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "interactive" 44 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay "25000 800000:50000" 45 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 90 46 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 40000 47 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 998400 48 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy 0 49 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads "1 800000:90" 50 | write /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 40000 51 | write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 800000 52 | 53 | # Enable thermal core_control now 54 | write /sys/module/msm_thermal/core_control/enabled 1 55 | 56 | # Bring all CPUs online 57 | write /sys/devices/system/cpu/cpu1/online 1 58 | write /sys/devices/system/cpu/cpu2/online 1 59 | write /sys/devices/system/cpu/cpu3/online 1 60 | write /sys/devices/system/cpu/cpu5/online 1 61 | write /sys/devices/system/cpu/cpu6/online 1 62 | write /sys/devices/system/cpu/cpu7/online 1 63 | 64 | # Enable low power modes 65 | write /sys/module/lpm_levels/parameters/sleep_disabled 0 66 | 67 | # Enable core control 68 | write /sys/devices/system/cpu/cpu0/core_ctl/min_cpus 2 69 | write /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 4 70 | write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 68 71 | write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 40 72 | write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 100 73 | write /sys/devices/system/cpu/cpu0/core_ctl/task_thres 4 74 | write /sys/devices/system/cpu/cpu0/core_ctl/is_big_cluster 1 75 | write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres 20 76 | write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres 5 77 | write /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms 5000 78 | write /sys/devices/system/cpu/cpu4/core_ctl/not_preferred 1 79 | chown system system /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 80 | 81 | # HMP scheduler (big.Little cluster related) settings 82 | write /proc/sys/kernel/sched_upmigrate 75 83 | write /proc/sys/kernel/sched_downmigrate 60 84 | 85 | rm /data/system/perfd/default_values 86 | start perfd 87 | 88 | on charger 89 | write /sys/module/lpm_levels/parameters/sleep_disabled 0 90 | write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "powersave" 91 | 92 | on property:init.svc.recovery=running 93 | trigger enable-low-power 94 | 95 | on property:dev.bootcomplete=1 96 | trigger enable-low-power 97 | setprop sys.io.scheduler bfq 98 | -------------------------------------------------------------------------------- /rootdir/etc/init.target.rc: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009-2012, 2014, The Linux Foundation. All rights reserved. 2 | # 3 | # Redistribution and use in source and binary forms, with or without 4 | # modification, are permitted provided that the following conditions are met: 5 | # * Redistributions of source code must retain the above copyright 6 | # notice, this list of conditions and the following disclaimer. 7 | # * Redistributions in binary form must reproduce the above copyright 8 | # notice, this list of conditions and the following disclaimer in the 9 | # documentation and/or other materials provided with the distribution. 10 | # * Neither the name of The Linux Foundation nor 11 | # the names of its contributors may be used to endorse or promote 12 | # products derived from this software without specific prior written 13 | # permission. 14 | # 15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 16 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17 | # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 19 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 | # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 | # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 | # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | # 27 | 28 | on fs 29 | write /sys/class/android_usb/android0/iProduct Aquaris_M5 30 | 31 | on post-fs-data 32 | 33 | # Create directory used by display clients 34 | copy /system/etc/display/calib.cfg /data/misc/display/calib.cfg 35 | chown system graphics /data/misc/display/calib.cfg 36 | 37 | # NFC local data and nfcee xml storage 38 | mkdir /data/nfc 0770 nfc nfc 39 | mkdir /data/nfc/param 0770 nfc nfc 40 | chmod 0700 /data/nfc 41 | chmod 0700 /data/nfc/param 42 | chown nfc nfc /data/nfc 43 | chown nfc nfc /data/nfc/param 44 | restorecon_recursive /data/nfc 45 | 46 | chown root root /vendor/bin/init.atmel_ts.sh 47 | chmod 777 /vendor/bin/init.atmel_ts.sh 48 | 49 | # Tap To Wake 50 | chown root system /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/en_gesture 51 | chmod 0660 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/en_gesture 52 | 53 | # Disable Keys 54 | chown root system /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/disable_keys 55 | chmod 0660 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/disable_keys 56 | 57 | service atmel_ts /vendor/bin/sh /vendor/bin/init.atmel_ts.sh 58 | class main 59 | user root 60 | oneshot 61 | 62 | service msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance.conf 63 | class core 64 | user root 65 | group root -------------------------------------------------------------------------------- /sepolicy/file_contexts: -------------------------------------------------------------------------------- 1 | # Lineagehw 2 | /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/en_gesture u:object_r:touchpanel_sysfs:s0 3 | /sys/devices/soc.0/78b9000.i2c/i2c-5/5-004a/disable_keys u:object_r:touchpanel_sysfs:s0 4 | 5 | # NFC 6 | /dev/bcm2079x u:object_r:nfc_device:s0 7 | -------------------------------------------------------------------------------- /sepolicy/nfc.te: -------------------------------------------------------------------------------- 1 | allow nfc nfc_device:chr_file { read write ioctl }; -------------------------------------------------------------------------------- /setup-makefiles.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (C) 2016 The CyanogenMod Project 4 | # Copyright (C) 2017 The LineageOS Project 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | set -e 20 | 21 | DEVICE=piccolo 22 | VENDOR=bq 23 | 24 | INITIAL_COPYRIGHT_YEAR=2016 25 | 26 | # Load extract_utils and do some sanity checks 27 | MY_DIR="${BASH_SOURCE%/*}" 28 | if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi 29 | 30 | LINEAGE_ROOT="$MY_DIR"/../../.. 31 | 32 | HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh 33 | if [ ! -f "$HELPER" ]; then 34 | echo "Unable to find helper script at $HELPER" 35 | exit 1 36 | fi 37 | . "$HELPER" 38 | 39 | # Initialize the helper 40 | setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" 41 | 42 | # Copyright headers and guards 43 | write_headers 44 | 45 | write_makefiles "$MY_DIR"/proprietary-files.txt 46 | 47 | # Finish 48 | write_footers 49 | -------------------------------------------------------------------------------- /system.prop: -------------------------------------------------------------------------------- 1 | # Audio 2 | voice.playback.conc.disabled=true 3 | voice.record.conc.disabled=true 4 | voice.voip.conc.disabled=true 5 | 6 | # Display 7 | ro.sf.lcd_density=480 8 | ro.opengles.version=196610 9 | 10 | # Perfd 11 | ro.min_freq_0=960000 12 | ro.min_freq_4=800000 13 | --------------------------------------------------------------------------------