-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdevice.mk
763 lines (648 loc) · 27.8 KB
/
device.mk
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
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
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
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
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
#
# Copyright (C) 2016 The CyanogenMod 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.
#
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Boot animation
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
# AAPT CONFIG
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# Display
PRODUCT_PACKAGES += \
disable_configstore \
android.hardware.graphics.allocator@2.0-impl \
android.hardware.graphics.allocator@2.0-service \
android.hardware.graphics.mapper@2.0-impl-2.1 \
android.hardware.graphics.composer@2.1-service \
android.hardware.memtrack@1.0-impl \
android.hardware.memtrack@1.0-service \
gralloc.msm8916 \
hwcomposer.msm8916 \
libtinyxml \
memtrack.msm8916
# RenderScript HAL
PRODUCT_PACKAGES += \
android.hardware.renderscript@1.0-impl
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \
ro.surface_flinger.use_color_management=false \
ro.surface_flinger.has_HDR_display=false \
ro.surface_flinger.has_wide_color_display=false \
ro.surface_flinger.enable_layer_caching=false \
ro.surface_flinger.start_graphics_allocator_service=true \
ro.surface_flinger.use_context_priority=true \
ro.surface_flinger.clear_slots_with_set_layer_buffer=true \
debug.sf.enable_planner_prediction=false \
debug.sf.disable_client_composition_cache=1 \
debug.sf.early_phase_offset_ns=1500000 \
debug.sf.early_app_phase_offset_ns=1500000 \
debug.sf.early_gl_phase_offset_ns=3000000 \
debug.sf.early_gl_app_phase_offset_ns=15000000 \
ro.surface_flinger.set_idle_timer_ms=80 \
ro.surface_flinger.set_touch_timer_ms=200 \
ro.surface_flinger.set_display_power_timer_ms=1000 \
ro.surface_flinger.vsync_event_phase_offset_ns=1000000 \
ro.surface_flinger.vsync_sf_event_phase_offset_ns=1000000 \
ro.surface_flinger.support_kernel_idle_timer=true \
debug.mdpcomp.idletime=600 \
persist.hwc.mdpcomp.enable=true \
persist.hwc.ptor.enable=true \
debug.enable.sglscale=1 \
debug.sf.hw=0 \
debug.egl.hw=0 \
debug.sf.disable_backpressure=1 \
debug.sf.enable_gl_backpressure=1 \
debug.sf.auto_latch_unsignaled=0 \
debug.sf.latch_unsignaled=0 \
debug.sf.recomputecrop=0 \
debug.cpurend.vsync=false \
debug.sf.layer_caching_active_layer_timeout_ms=1000 \
ro.config.avoid_gfx_accel=true \
DEVICE_PROVISIONED=1 \
ro.com.android.mobiledata=false \
dev.pm.dyn_samplingrate=1 \
persist.timed.enable=true \
ro.hardware.egl=adreno \
ro.surface_flinger.supports_background_blur=false \
persist.sys.sf.color_saturation=1.0 \
persist.sys.sf.disable_blurs=true \
debug.renderengine.backend=gles \
debug.hwui.renderer=opengl \
ro.hwui.render_ahead=20 \
ro.config.night_mode_on_battery_saver=false
# Disable surfaceflinger prime_shader cache to improve post boot memory.
PRODUCT_PROPERTY_OVERRIDES += service.sf.prime_shader_cache=0
# Screen density
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=280 \
persist.graphics.vulkan.disable=true
# Disable buffer age
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.use_buffer_age=false
# Enable support of one-handed mode
PRODUCT_PROPERTY_OVERRIDES += \
ro.support_one_handed_mode=true
# Realtime policy for UI threads
PRODUCT_PROPERTY_OVERRIDES += sys.use_fifo_ui=1
# LMKD configs
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.per_app_memcg=false \
ro.lmk.psi_complete_stall_ms=200 \
ro.lmk.psi_partial_stall_ms=150 \
ro.lmk.swap_free_low_percentage=35 \
ro.lmk.thrashing_limit_critical=20 \
ro.lmk.stall_limit_critical=30 \
ro.lmk.kill_timeout_ms=100 \
ro.lmk.filecache_min_kb=153600 \
ro.lmk.kill_heaviest_task=true
# Avoid thrashing to prevent freezes.
# LMKD will not be tolerant to thrashing.
# This will impact multitasking and cached apps.
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.thrashing_limit=0
# Bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0 \
android.hardware.bluetooth.audio@2.0-impl \
audio.bluetooth.default
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \
android.hardware.drm@1.0-service-lazy \
android.hardware.drm@1.4-service-lazy.clearkey
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196608
# Audio
PRODUCT_PACKAGES += \
audio.primary.msm8916 \
audio.r_submix.default \
audio.usb.default \
audio.usbv2.default \
tinyplay \
tinypcminfo \
tinymix \
libaudio-resampler \
libqcomvisualizer \
libqcomvoiceprocessing \
libqcompostprocbundle \
android.hardware.audio@7.1-impl \
android.hardware.audio.service \
android.hardware.audio.effect@7.0-impl
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd_skuh.xml \
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_qrd_skui.xml \
$(LOCAL_PATH)/audio/mixer_paths_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_mtp.xml \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/hearing_aid_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/enginedefault/config/example/phone/audio_policy_engine_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_engine_configuration.xml \
frameworks/av/services/audiopolicy/enginedefault/config/example/phone/audio_policy_engine_default_stream_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_engine_default_stream_volumes.xml \
frameworks/av/services/audiopolicy/enginedefault/config/example/phone/audio_policy_engine_product_strategies.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_engine_product_strategies.xml \
frameworks/av/services/audiopolicy/enginedefault/config/example/phone/audio_policy_engine_stream_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_engine_stream_volumes.xml
# Audio package for Go
$(call inherit-product, frameworks/base/data/sounds/AudioPackageGo.mk)
# SoC
PRODUCT_PROPERTY_OVERRIDES += \
ro.soc.manufacturer=Qualcomm \
ro.soc.model=MSM8916
# Public Libraries
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
# Cgroup and task_profiles for freezer on cgroups v1
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/cgroups.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.audio.sdk.fluencetype=none \
persist.vendor.audio.fluence.voicecall=true \
persist.vendor.audio.fluence.voicerec=true \
persist.vendor.audio.fluence.speaker=false \
vendor.audio.offload_wakelock=false
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
audio.deep_buffer.media=true \
audio.offload.min.duration.secs=30 \
audio.offload.video=true \
ro.af.client_heap_size_kbyte=7168 \
ro.audio.flinger_standbytime_ms=300 \
vendor.voice.path.for.pcm.voip=true \
vendor.audio.av.streaming.offload.enable=true \
vendor.audio.offload.buffer.size.kb=64 \
ro.config.vc_call_vol_steps=7 \
ro.config.media_vol_steps=25 \
persist.bluetooth.bluetooth_audio_hal.disabled=false \
ro.bluetooth.a2dp_offload.supported=false \
persist.bluetooth.a2dp_offload.disabled=true \
ro.vendor.bluetooth.lazyhal=true \
vendor.audio.offload.gapless.enabled=true \
bluetooth.device.class_of_device=90,2,12 \
bluetooth.profile.a2dp.source.enabled=true \
bluetooth.profile.asha.central.enabled=false \
bluetooth.profile.avrcp.target.enabled=true \
bluetooth.profile.bas.client.enabled=true \
bluetooth.profile.gatt.enabled=true \
bluetooth.profile.hfp.ag.enabled=true \
bluetooth.profile.hid.device.enabled=true \
bluetooth.profile.hid.host.enabled=true \
bluetooth.profile.map.server.enabled=true \
bluetooth.profile.opp.enabled=true \
bluetooth.profile.pan.nap.enabled=true \
bluetooth.profile.pan.panu.enabled=true \
bluetooth.profile.pbap.server.enabled=true \
bluetooth.profile.sap.server.enabled=true \
bluetooth.le.disable_apcf_extended_features=1
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
# Camera
PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.5-service \
camera.device@1.0-impl \
camera.msm8916 \
camera.legacy.msm8916 \
libmm-qcamera \
Aperture
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.cpp.duplication=false \
persist.camera.hal.debug.mask=0 \
persist.camera.feature.cac=1 \
persist.camera.no-display=1 \
persist.camera.hal3on1.use_limited_level=1 \
persist.camera.hal3on1.use_memfd=0 \
persist.camera.hal3on1.use_hwcomposer=1 \
persist.camera.hal3on1.use_sysfs_torch=1
# FastCharge
PRODUCT_PACKAGES += \
vendor.lineage.fastcharge@1.0-service.usb
# Screen Recorder
PRODUCT_PACKAGES += \
Recorder
# Repainter integration
PRODUCT_PACKAGES += \
RepainterServicePriv
# Seamless transfer
PRODUCT_PROPERTY_OVERRIDES += \
sys.fflag.override.settings_seamless_transfer=true
# System
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.binary_xml=false
# First stage init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.ramdisk.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
# Charger
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.charger.enable_suspend=true
# Charger images
PRODUCT_PACKAGES += charger_res_images
# GPS
PRODUCT_PACKAGES += \
libandroid_net \
libcurl \
libsensorndkbridge \
xtra_daemon_toggler.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps/apdr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/apdr.conf \
$(LOCAL_PATH)/configs/gps/flp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/flp.conf \
$(LOCAL_PATH)/configs/gps/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf \
$(LOCAL_PATH)/configs/gps/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \
$(LOCAL_PATH)/configs/gps/izat_xtra.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat_xtra.conf \
$(LOCAL_PATH)/configs/gps/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf \
$(LOCAL_PATH)/configs/gps/sap.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sap.conf \
$(LOCAL_PATH)/configs/gps/xtwifi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/xtwifi.conf
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
# Enforced RRO targets
PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
$(LOCAL_PATH)/overlay-lineage/lineage-sdk
# Overlay for Gboard
PRODUCT_PACKAGES += \
GboardOverlay
# Overlay for Google Messages
PRODUCT_PACKAGES += \
MessagesGoOverlay
# Trebuchet overlay
PRODUCT_PACKAGES += \
TrebuchetGoOverlay
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.bluetooth.disableabsvol=true \
vendor.qcom.bluetooth.soc=pronto \
ro.bluetooth.dun=true \
ro.bluetooth.hfp.ver=1.7 \
ro.bluetooth.sap=true \
vendor.bluetooth.soc=pronto \
ro.qualcomm.bt.hci_transport=pronto \
bluetooth.core.le.vendor_capabilities.enabled=false
# Incremental FS
PRODUCT_PROPERTY_OVERRIDES += \
ro.incremental.enable=1
# Keymaster HAL
PRODUCT_PACKAGES += \
android.hardware.keymaster@4.1-service \
android.hardware.gatekeeper@1.0-service.software
# Google Assistant
PRODUCT_PROPERTY_OVERRIDES += \
ro.opa.eligible_device=true
# Init scripts
PRODUCT_PACKAGES += \
fstab.qcom \
init.target.rc \
init.qcom.rc \
init.qcom.power.rc \
init.qcom.ssr.rc \
init.qcom.usb.rc \
init.recovery.qcom.rc \
ueventd.qcom.rc
# For config.fs
PRODUCT_PACKAGES += \
fs_config_files
# Media
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
# Media
PRODUCT_PACKAGES += \
libmm-omxcore \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libOmxVidcCommon \
libstagefrighthw \
android.hardware.cas@1.2-service-lazy
# Media config
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
$(LOCAL_PATH)/configs/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
$(LOCAL_PATH)/configs/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml
# Disable media transcoding
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.fuse.transcode_user_control=true \
persist.sys.fuse.transcode_enabled=false
PRODUCT_PACKAGES += \
android.hardware.power-service-qti \
android.hardware.power.stats@1.0-service.mock
# Music player
PRODUCT_PACKAGES += \
Twelve \
AudioFX
# Perf
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so
# IRSC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.data.qmi.adb_logmask=0 \
persist.radio.apm_sim_not_pwdn=1 \
persist.radio.add_power_save=1 \
ro.telephony.call_ring.multiple=false \
ro.telephony.iwlan_operation_mode=legacy
# HIDL
PRODUCT_PACKAGES += \
android.hidl.base@1.0 \
android.hidl.manager@1.0 \
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
debug.fdsan=0
# Binder
PRODUCT_PACKAGES += \
libhwbinder \
libhidltransport \
libjson \
vndservicemanager
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
android.hardware.health@2.1-service
# Lineage Health
PRODUCT_PACKAGES += \
vendor.lineage.health-service.default
# Vibrator
PRODUCT_PACKAGES += \
android.hardware.vibrator@1.1-service.msm8916
# RIL
PRODUCT_PACKAGES += \
librmnetctl \
libxml2
# Net
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
PRODUCT_PACKAGES += \
android.hardware.radio.config@1.0-service
# Configuring device during boot
PRODUCT_PACKAGES += \
set_baseband.sh \
set_tasks.sh \
set_zram.sh \
init.post_boot.sh \
target_config.sh
# msm_irqbalance
PRODUCT_PACKAGES += \
msm_irqbalance
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=1 \
debug.stagefright.omx_default_rank=0 \
vendor.mediacodec.binder.size=4 \
media.stagefright.thumbnail.prefer_hw_codecs=true \
vidc.enc.narrow.searchrange=1 \
ro.media.maxmem=268435456
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl\
$(LOCAL_PATH)/keylayout/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl
# Disable oem unlock
PRODUCT_PROPERTY_OVERRIDES += \
ro.oem_unlock_supported=0
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.direct.interface=p2p0
# WiFi HAL
PRODUCT_PACKAGES += \
android.hardware.wifi@1.0-service-lazy
# Wifi
PRODUCT_PACKAGES += \
wcnss_service \
hostapd \
wpa_supplicant \
wpa_supplicant.conf \
libwpa_client \
wpa_cli \
WifiOverlay \
TetheringConfigOverlay \
iw
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_cfg.dat \
$(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin \
$(LOCAL_PATH)/wifi/WCNSS_wlan_dictionary.dat:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_wlan_dictionary.dat
# WFD
PRODUCT_PROPERTY_OVERRIDES += \
persist.debug.wfd.enable=1 \
persist.sys.wfd.virtual=0
# TimeKeep
PRODUCT_PACKAGES += \
timekeep \
TimeKeep
# USB HAL
PRODUCT_PACKAGES += \
android.hardware.usb@1.3-service.basic
# Optimize
PRODUCT_DEX_PREOPT_GENERATE_DM_FILES := true
DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES := div
# To leverage the P feature "Full Stack Integrity: expand verified boot to cover privapps" Android will
# uncompress priv-apps for system APKs. Unfortunately this causes ~90MB increase system ROM size.
# For Go devices, you may disable this feature to save space.
DONT_UNCOMPRESS_PRIV_APPS_DEXS := true
# Animation
TARGET_BOOT_ANIMATION_RES := 720
TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
# Strip debug
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.zygotemaxfailedboots=5 \
dalvik.vm.foreground-heap-growth-multiplier=2.0 \
dalvik.vm.dex2oat-flags=--no-watch-dog \
dalvik.vm.dex2oat-swap=false \
dalvik.vm.boot-dex2oat-threads=4 \
dalvik.vm.boot-dex2oat-cpu-set=0,1,2,3 \
dalvik.vm.dex2oat-threads=2 \
dalvik.vm.dex2oat-cpu-set=2,3 \
ro.vendor.qti.am.reschedule_service=true \
persist.sys.dalvik.vm.lib.2=libart.so \
dalvik.vm.systemservercompilerfilter=speed-profile
# Improve scrolling
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.scrollingcache=0 \
ro.min.fling_velocity=160 \
ro.max.fling_velocity=20000
# IO Cgroups
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.iocgrp.config=1
# Zygote
PRODUCT_PROPERTY_OVERRIDES += \
zygote.critical_window.minute=10
# Inherit 512M Android Go defaults.
$(call inherit-product, build/make/target/product/go_defaults_512.mk)
# Setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Memory optimizations
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.max_starting_bg=8 \
ro.am.no_kill_cached_processes_until_boot_completed=false \
ro.am.no_kill_cached_processes_post_boot_completed_duration_millis=0 \
ro.hw_timeout_multiplier=6
# Dexopt
PRODUCT_PROPERTY_OVERRIDES += \
pm.dexopt.install=speed-profile \
pm.dexopt.bg-dexopt=speed-profile \
pm.dexopt.first-boot=verify \
pm.dexopt.boot-after-ota=verify \
pm.dexopt.boot=verify
# Boot
PRODUCT_PROPERTY_OVERRIDES += \
sys.vendor.shutdown.waittime=500 \
ro.build.shutdown_timeout=0
# Battery
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.small_battery=true
# TextClassifier
PRODUCT_COPY_FILES += \
external/libtextclassifier/native/models/textclassifier.ru.model:$(TARGET_COPY_OUT_SYSTEM)/etc/textclassifier/textclassifier.ru.model \
external/libtextclassifier/native/models/textclassifier.fr.model:$(TARGET_COPY_OUT_SYSTEM)/etc/textclassifier/textclassifier.fr.model \
external/libtextclassifier/native/models/textclassifier.pl.model:$(TARGET_COPY_OUT_SYSTEM)/etc/textclassifier/textclassifier.pl.model
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
persist.data.qmi.adb_logmask=0 \
ro.telephony.call_ring.multiple=false \
ro.use_data_netmgrd=true \
persist.radio.multisim.config=dsds \
persist.radio.ecc_hard_count=1 \
vendor.rild.libpath=/vendor/lib/libril-qc-qmi-1.so \
ro.telephony.default_network=9,1 \
ro.telephony.use_old_mnc_mcc_format=true \
persist.vendor.radio.add_power_save=1 \
persist.sys.fflag.override.settings_network_and_internet_v2=true \
persist.data.netmgrd.qos.enable=true \
fw.max_users=3
# RIL
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/data/netmgr_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/netmgr_config.xml \
$(LOCAL_PATH)/configs/data/qmi_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/qmi_config.xml \
$(LOCAL_PATH)/configs/data/dsi_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/dsi_config.xml
# Seccomp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
$(LOCAL_PATH)/seccomp/mediaswcodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy \
$(LOCAL_PATH)/seccomp/gnss@2.0-base.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/gnss@2.0-base.policy \
$(LOCAL_PATH)/seccomp/gnss@2.0-xtwifi-client.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/gnss@2.0-xtwifi-client.policy
# Thermal HAL
PRODUCT_PACKAGES += \
android.hardware.thermal@2.0-service.msm8916
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal_info_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
$(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf
PRODUCT_PROPERTY_OVERRIDES += \
vendor.thermal.config=thermal_info_config.json
# Sensors
PRODUCT_PACKAGES += \
calmodule.cfg \
android.hardware.sensors@1.0-impl.msm8916 \
android.hardware.sensors@1.0-service.msm8916 \
sensors.msm8916
# Sensors
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sensors/_hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/_hals.conf
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay@2.0-service-sysfs
# Touch
PRODUCT_PACKAGES += \
vendor.lineage.touch@1.0-service.a6010
# AOSP filesystems
PRODUCT_PACKAGES += \
fsck.exfat \
fsck.ntfs \
mke2fs \
mkfs.exfat \
mkfs.ntfs \
mount.ntfs
# Updater properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.recovery_update=false
# USB ID
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.usb.id.midi=90BA \
ro.usb.id.midi_adb=90BB \
ro.usb.id.mtp=2281 \
ro.usb.id.mtp_adb=2282 \
ro.usb.id.ptp=2284 \
ro.usb.id.ptp_adb=2283 \
ro.usb.id.ums=2286 \
ro.usb.id.ums_adb=2285 \
ro.usb.vid=2970
# The target has no boot jars to check
SKIP_BOOT_JARS_CHECK := true
# Since ($SRC_TARGET)/product/generic.mk is included instead of full_base.mk the device config also need to
# pick up the default Android Platform product locale list
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
# Override build/make/target/product/emulated_storage.mk to disable casefold
PRODUCT_QUOTA_PROJID := 1
PRODUCT_FS_CASEFOLD := 0
PRODUCT_VENDOR_PROPERTIES += \
external_storage.projid.enabled=1 \
external_storage.casefold.enabled=0 \
external_storage.sdcardfs.enabled=0
# APN(s)
PRODUCT_COPY_FILES += vendor/lineage/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml