Commit Graph

470 Commits

Author SHA1 Message Date
Rahul Shahare
f1f388ee89
davinci: Set Header version for bootimage
Set Header version to 1 for bootimage and Enable
BOARD_INCLUDE_RECOVERY_DTBO.

Change-Id: I165130b412020a6dee7fb3473766296f21a7cdb7
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
2020-11-28 18:12:01 +01:00
kazerine
ab51fafbdd
davinci: Get rid of megvii dependencies in camera.qcom.so
Change-Id: I97058c320d06819a468ebe38e2704360e9aa91db
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:12:01 +01:00
Bruno Martins
7e2d54a2a7
davinci: List additional native libraries to expose to apps
* Initially based on the list defined by Xiaomi, trimmed to include
   only the vendor libs that are also being shipped by us.

Change-Id: I552dc44a32221d2d3cec48e1c64ed72c470d412e
2020-11-28 18:12:01 +01:00
Andrew Hexen
cee65c43f9
davinci: Move NFC permissions to ODM
* Ensures that NFC is enabled only on global and chinese variants.

Change-Id: I25444aae6644ca391d79282c1c5d588617483ee6
2020-11-28 18:11:31 +01:00
Erfan Abdi
6e3b2395f6
davinci: Disable NFC for indian devices
* Setup davinci sku when device is global or chinese.
* Move the nfc manifest entry to davinci hardware sku
  variant.

Change-Id: I76ac75cd80f85efa6dfa68753602d934a11000a3
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-28 18:10:27 +01:00
Ethan Chen
1c5c53d034
davinci: Remove dead RCS packages
Change-Id: Ie2c03fa11cb08c7ab900d7b666981d592aba19c7
2020-11-23 20:44:38 +01:00
LuK1337
71a981f61c
davinci: Disable uplink features in librmnetctl and build it from source
Change-Id: I2e5f63f3cb688f3d141fa9123f3a6e91b6294157
2020-11-23 20:44:38 +01:00
Arian
991edc2c96
davinci: Update from global stable V12.0.3.0.QFJMIXM
Change-Id: I5af4d9bb9f386707df37a6856805625c75cff7c0
2020-11-23 20:44:38 +01:00
Arian
fea051b9c7
davinci: audio: Drop audiosphere
Change-Id: I3263caea70c4b954e434bcf3498a4fdd7700fbdf
2020-11-23 20:44:38 +01:00
Arian
8ea8838e3e
davinci: Drop misound karaoke
Change-Id: I86c8c8d42050ea16cfe4a473358012c6abb5341a
2020-11-23 20:44:38 +01:00
Arian
27edb262ed
davinci: Drop audioconfigstore
Change-Id: Iadb796a9f6f5187994474ccba7acdc77f51b7e75
2020-11-23 20:44:38 +01:00
Arian
12f436ea0f
davinci: Drop graphite ipc
Change-Id: I544529d834616340d4da98f9af9456cd65b0cb91
2020-11-23 20:44:38 +01:00
Arian
d5591d6d37
davinci: Build audio HAL from source
* Disable ssrec and hdmipassthru since they depend on proprietary headers

Change-Id: I6abf4baf2e03aa9dc4ce52cbe758d976441cc7fc
2020-11-23 20:44:38 +01:00
Arian
dbb6f79eb3
davinci: audio: Merge static mixer_paths overlay into mixer_paths_idp
Change-Id: If09ffda8650e2e8a64c2bcba850038a690d4db63
2020-11-23 20:44:38 +01:00
Bruno Martins
e0dab7b3ec
davinci: audio: Nuke dirac and misoundfx effect
Change-Id: I5672e554a2b2b21fbadfe915b9a89cd2365f3864
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
Angga Satya Putra
c77b652733
davinci: audio: Remove shoebox and hw_acc from audio effects
* libshoebox.so does not exist anymore
* HW_ACCELERATED has been disabled by default as stated in the HAL

E EffectsFactoryConfigLoader: Could not find library in effect directories: libshoebox.so
E EffectsFactoryConfigLoader: Error querying effect 7d1580bd-297f-4683-9239-e475b6d1d69f on lib offload_bundle
E EffectsFactoryConfigLoader: Could not find library shoebox to load effect shoebox
E EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml

Change-Id: I2407c03728930995213f16ec0551e4194fbb7476
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
Michael Bestas
2f4f2b5147
davinci: gps: Lower gps debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2020-11-23 20:44:38 +01:00
dianlujitao
094fe89a3f
davinci: gps: Fix non-ASCII character in gps.conf
Change-Id: Iea9c44c0fbad574cbc077feea3d9f1de83d7d99a
2020-11-23 20:44:38 +01:00
Arian
f88933946c
davinci: Import GPS configs from MIUI V12.0.1.0.QFJMIXM
Change-Id: Id3ec33eeb511081ebf2eb07324b167b3e58c11a2
2020-11-23 20:44:38 +01:00
dianlujitao
bf60c73d8e
davinci: Build GNSS HAL
* Remove unnecessary dependencies on liblbs_core.so
 * Hardcode vendor loc HIDL version to 3.0 to enable vendor HIDL when
   building w/o BSP.

Change-Id: I01f661f1d1e038737801f5a9db88e3388d470f74
2020-11-23 20:44:38 +01:00
Arian
4f4f8cd486
davinci: gps: Clean up
* Get rid of 1.0 and 1.1 hidl
* Get rid of target_specific_features.mk
* Clean up the top Android.mk
* Drop sample configs
* Drop sample target and board config

Change-Id: I7b45b940812a51306db76f6275ea43049fa62335
2020-11-23 20:44:38 +01:00
Arian
848723807d
davinci: gps: Import gnsspps from LA.UM.8.9.r1-03800-sm6150.0
Change-Id: Ib047a59a195cb6ead9438d74403cad7031804e6e
2020-11-23 20:44:37 +01:00
Arian
5230c34f83
davinci: gps: Import from LA.UM.8.9.r1-03800-sm6150.0
Change-Id: Idc1e896796742df928ef244bf003d24e87bfd3d7
2020-11-23 20:44:37 +01:00
Arian
cadbc6c7eb
davinci: Add xtra_root_cert for xtwifi-inet-agent
Change-Id: I17d268efe42a1e87c12122e1a1f9a97d9bb195c3
2020-11-23 20:44:37 +01:00
Wei Wang
2a8a880cdb
davinci: rootdir: Tune zram performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2020-11-23 20:44:37 +01:00
Arian
7ff9df129e
davinci: rootdir: Update zram size from V12.0.1.0.QFJMIXM and tweak swappiness and allocstall threshold
Change-Id: I70a19d48918ad0fc0d7ae7e5919779636fdaa0d4
2020-11-23 20:43:15 +01:00
PIPIPIG233666
86032a20b5
davinci: fod: Add support for Xiaomi's touchfeature
Change-Id: I15a4a3d777d784abe04e88372647fc9abff78626
Signed-off-by: Arian <arian.kulmer@web.de>
2020-10-13 18:25:13 +02:00
Demon000
86826edb8d
davinci: fod: Set nit value on sysfs notification
Change-Id: I78069d10677c6704b0bb080ecf76ecbbfd0b2212
2020-10-13 18:25:13 +02:00
TheScarastic
e83427491a
davinci: fod: Add surfaceflinger extension lib
Change-Id: I51fb56c0a20e3cac83afb46ed6a6e2f967159d18
2020-10-13 18:25:13 +02:00
Demon000
95126a384e
davinci: fod: Switch to in-kernel handling of changes
Change-Id: I242a57b42bb455835bbc0777878a93bca6b986e7
2020-10-13 18:25:13 +02:00
Patrick Tjin
d24f1a797c
davinci: Add nosdcard characteristic to device
Bug: 30895189
Change-Id: Ic2e040dc8d811ca84c910d42f6f7db35526802ff
2020-10-13 18:25:13 +02:00
Michael Bestas
9313cc0a61
davinci: Remove android.hidl.base@1.0 shims
* Patch the 2 remaining blobs that depend on it.
* They already need libhidltransport.so so there's
  no real need for the shims anymore.

Change-Id: I00f185fd4d1d8798893cf82abf9d64fcb68c3301
2020-10-13 18:25:13 +02:00
Arian
f31e4ef583
davinci: Define vendor security patch level
Change-Id: If74e5a645a24cf4312056a07cf662018b1f5a37c
2020-10-13 18:25:13 +02:00
Joey
e551c833be
davinci: Build Trust HAL
Change-Id: I92706987f8d3094cdfb82e71e5331b7efe69e5df
Signed-off-by: Joey <joey@lineageos.org>
2020-10-13 18:25:13 +02:00
Bruno Martins
bcc47bc18f
davinci: Implement SunlightEnhancement LiveDisplay HAL
Change-Id: I17b0215ad78d86989c146291552c5e6e7b6a689d
2020-10-13 18:24:30 +02:00
Arian
5de047f6e9
davinci: Build livedisplay
Change-Id: I6ca5443d061fe4139b0bab07a5ee1ba2a77e8de9
2020-10-10 21:43:31 +02:00
Fabian Leutenegger
d376352a80
davinci: Add assert for davinci & davinciin
Change-Id: Ibd97c7a9a790c9bf757e8cd34eb01fa2f43752b6
2020-10-10 21:43:31 +02:00
Arian
c5bf912891
davinci: init: Use variables for the region specific properties
Change-Id: I67df78d83007f872fd22c9b177e82234ef494523
2020-10-10 21:43:31 +02:00
Arian
3e024ca758
davinci: init: Always set the ro.build props
* ro.build. properties are set at runtime if not set
  already (after libinit runs) in android 10 hence
  ro.build.fingerprint wasn't set since the prop did
  not contain a value while libinit ran.

Change-Id: I213c4c2c730c294c42a5d4db70359e7b49d7947e
2020-10-10 21:43:31 +02:00
LuK1337
68956aa31a
davinci: init: Override everything ^.^
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8b617e57ef5345cb55e697c29a63c036512ed0af
2020-10-10 21:43:31 +02:00
AbhiShek Aggarwal
cce805e116
davinci: Add custom init to set proper variants
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I04f09a14cf41c89b3135c53e3089d5c3e703aae0
2020-10-10 21:43:31 +02:00
Nvertigo
6156c1202c
davinci: sepolicy: Fix OTA auto-flashing with encrypted f2fs.
If userdata is on f2fs and encrypted (stock config for userdata),
  /cache/recovery/block.map is not created due to this denial:

  05-01 13:43:47.512  6538  6538 W uncrypt : type=1400 audit(0.0:10): avc: denied { sys_admin } for capability=21 scontext=u:r:uncrypt:s0 tcontext=u:r:uncrypt:s0 tclass=capability permissive=0

  Without block.map the automatic flashing of the OTA without user
  interaction fails, and the user needs to manually mount data, and
  flash the OTA manually.

Change-Id: I6ecb84e8b730d4c641a8bd8769043dfbfb817b83
2020-10-10 21:43:31 +02:00
Arian
22ecf03acd
davinci: Switch to enforcing
Change-Id: Id959ed770c96e63146b0009c4065b8b1b2d3513c
2020-10-10 21:43:31 +02:00
Arian
28af42ef6e
davinci: sepolicy: Label properties to avoid denials
Change-Id: Id07b6977e6ef19bd2c9d6867e06073c8364c57d3
2020-10-10 21:43:31 +02:00
Michael Bestas
51b7479a3d
davinci: sepolicy: Silence harmless QCOM denials
Change-Id: Iad1e2c0e654a4a46da76a57ece63dc4f35761d50
2020-10-10 21:43:31 +02:00
Arian
c41825b8c2
davinci: sepolicy: Label hwc and hwversion properties
Change-Id: I2c433eb307d63e0ca8fa4e4da664c649cdd0c4c2
2020-10-10 21:43:31 +02:00
Demon000
a4562cf819
davinci: sepolicy: Label property used by ril
Change-Id: I05e3a823cdfbbd995791769ea3774ebd064f6f12
2020-10-10 21:43:31 +02:00
Demon000
50625df1c3
davinci: sepolicy: Label manufacturer prop used by camera hal
Big brained Xiaomi checks if this device is a Xiaomi device before
giving access to auxiliary cameras.

Change-Id: Ife6587148824cd6b68e634ca0b999d4f380b20ce
2020-10-10 21:43:31 +02:00
Arian
f73820a339
davinci: sepolicy: Add motor rules
Change-Id: Ia076f82c816d0ff3ced950fcb1e2982e9ca668ff
2020-10-10 21:43:31 +02:00
Arian
fe196ce3ab
davinci: sepolicy: Allow adsprpcd to read sysfs_graphics
Change-Id: I14787d37700d6bf5d3ec34025ad67a66e5060222
2020-10-10 21:43:31 +02:00