Commit Graph

50 Commits

Author SHA1 Message Date
Volodymyr Zhdanov
94b6dd902c sm6250-common: Increase reserved space on product and system partitions
* low inodes shouldn't be possible issue anymore
2020-12-03 01:08:38 +02:00
Volodymyr Zhdanov
7479c2b15f sm6250-common: reserve some space for product partition
* so nikgapps can be happy now
2020-12-03 01:08:34 +02:00
Luca Stefani
b10c3c7d83 sm6250-common: Set linker to LLD
Change-Id: Ia165daa55ff707725b0619af12bf3a2e6e79c981
2020-12-03 01:08:27 +02:00
razorloves
b5645dbd80 sm6250-common: Lower reserved space on system partition
Reserving more than 1.5gb sharply decreases free inodes, resulting
in gapps install/restore issues.

Change-Id: I16c0c649b7e06aea6203e34a81d0d0350b80588c
2020-12-03 01:07:23 +02:00
Nick C
45daab797e sm6250-common: add FM 2020-08-25 16:49:31 +03:00
Demon000
2594a4727e sm6250-common: update vendor security patch 2020-08-25 16:49:30 +03:00
Demon000
99ed2b49d1 sm6250-common: build WiFi packages 2020-08-18 14:56:37 +03:00
Demon000
6f531fdd49 sm6250-common: reserve more space on system 2020-08-14 23:35:10 +03:00
Demon000
68259e5706 sm6250-common: set screen density 2020-08-13 18:16:18 +03:00
Cosmin Tanislav
07dd93ff58 sm6250-common: define defconfig name
Change-Id: I5d7462170b510a7766cc92aec3e47b88e0863a1e
2020-08-11 18:16:12 +02:00
Demon000
15bdd26d32 sm6250-common: enable ODM value additions
Checked by qti bluetooth service before registering IBTConfigStore.
2020-07-18 18:24:47 +03:00
PIPIPIG233666
3b446b4447 sm6250-common: Disable UBWC
Change-Id: If28a6bce43640b854a66b51944575a892da6bdbc
2020-07-18 13:27:43 +02:00
Cosmin Tanislav
5e14c379b7 sm6250-common: enable ION usage
Change-Id: I2975e2758bf4c9b939a6f9963559a3f25e0d3821
2020-07-18 13:24:40 +02:00
dianlujitao
14509d9e2f sm6250-common: Switch to QTI bt stack
Change-Id: I47016b066ae800d0071dbad6a1235cbc9db3cf80
2020-07-18 13:15:53 +02:00
Cosmin Tanislav
9d9cb61021 Revert "[DNM] sm6250-common: disable building with qcom hardware"
This reverts commit 31a7722031.
2020-07-18 12:05:11 +02:00
Demon000
81d93fb1b6 sm6250-common: properly include dtb in bootimg 2020-07-18 05:04:32 +03:00
Demon000
319da037d2 sm6250-common: update security patch 2020-07-16 18:20:28 +03:00
Cosmin Tanislav
bd3f1341e1 [DNM] sm6250-common: reserve 100MB on each dynamic partition
Change-Id: I7960bc6a365946924fcae90a61035d13af9ac9c4
2020-07-15 23:03:28 +03:00
Demon000
31a7722031 [DNM] sm6250-common: disable building with qcom hardware
Change-Id: I2d690949a43ee1170f1639827f732b691f792a9e
2020-07-15 23:03:28 +03:00
Demon000
6f175e568e [DNM] sm6250-common: disable audio HAL extension
Change-Id: I01c165a0251623580cd05ece8cc395629e16faf5
2020-07-15 23:03:28 +03:00
Demon000
f4100037a5 [DNM] sm6250-common: permissive selinux 2020-07-15 23:03:28 +03:00
XiNGRZ
28cb6ac7c9 sm6250-common: releasetools: Add dtbo image to the output zip if present
Change-Id: I8bb4da99945eceae3beab77489e6b9e2a47ab972
2020-07-15 23:03:28 +03:00
David Ng
0d171a099e sm6250-common: Add common config.fs AID/fs configuration file
Common config.fs/$TARGET_FS_CONFIG_GEN AID/fs configuration
file for all chipset inheriting from base.mk.

Since legacy device-specific android_filesystem_config.h and
config.fs do not co-exist, temporarily include config.fs only
if legacy file is absent.  Once all legacy, device-specific
files have been deleted, config.fs can be made unconditional.

Change-Id: Ie100d0cd9db808b82d99be7139f0709390c7f3a2
2020-07-15 23:03:28 +03:00
Demon000
e07fbb9738 sm6250-common: init: override dalvik heap config based on total RAM 2020-07-15 23:03:28 +03:00
Demon000
ac373c1520 sm6250-common: define vendor ril service usage
This can be checked by looking for a rild service in system.
If it's missing, then a vendor ril service is being used, in
our case, it is qcrild.

Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2020-07-15 23:03:28 +03:00
Demon000
d6d664d174 sm6250-common: specify recovery fstab 2020-07-15 23:03:28 +03:00
Demon000
45f0b20397 sm6250-common: specify recovery flags 2020-07-15 23:03:28 +03:00
Demon000
77159a9816 sm6250-common: inherit proprietary blobs 2020-07-15 23:03:28 +03:00
Demon000
97aafa1110 sm6250-common: include local sepolicy 2020-07-15 23:03:28 +03:00
Demon000
667f722eae sm6250-common: include qcom sepolicy 2020-07-15 23:03:28 +03:00
Demon000
db8ed7dc9c sm6250-common: create dummy property files 2020-07-15 23:03:28 +03:00
Christian Oder
453a236973 sm6250-common: Build disabled VBMeta image
Partitions that use vbmeta_system can be found by looking at
avb flag in fstab from boot ramdisk.

--flags 2 makes the verification function of avb always return a
positive result.

--set_hashtree_disabled_flag builds the vbmeta images with the
HASHTREE_DISABLED bit set and as a result they don't need to manually
disable dm-verity via e.g. 'adb disable-verity'.

The rest of the configuration is taken from
https://source.android.com/devices/tech/ota/dynamic_partitions/implement#avb-configuration-changes

Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2020-07-15 23:03:28 +03:00
Demon000
ed08feb3fe sm6250-common: define partition rules
Partition sizes can be found by query-ing sysfs.
For example, for super partition.

> ls -la /dev/block/by-name/super
lrwxrwxrwx 1 root root   16 1970-03-23 06:51 super -> /dev/block/sda17
> cat /proc/partitions | grep sda17
 259        1    8388608 sda17

The size needs to be multiplied by the block size used by
/proc/partitions, which is 1024 bytes.

Logical partitions found inside the physical super partition
can be found by looking for entries with the logical flag in the
fstab inside boot ramdisk.
2020-07-15 23:03:28 +03:00
Demon000
c21db8f4da sm6250-common: define security patch level
Can be found by checking the value of ro.vendor.build.security_patch
on stock.
2020-07-06 04:47:59 +03:00
Demon000
1bfd9147f0 sm6250-common: allow duplicate targets
Change-Id: Ied8866cc2d9f76bc2acd77ff07fd72d560ba7c69
2020-07-06 04:47:59 +03:00
Demon000
87a506fee8 sm6250-common: build with qcom hardware
Change-Id: I62a85f2a7d2d1a6c430688f57458bc99c46ce5c5
2020-07-06 04:47:59 +03:00
padarshr
9277c9cf3d sm6250-common: Add device compatibility matrix
Add device compatibility matrix to common project and
targets can point the build variable DEVICE_MATRIX_FILE to
this file to build device compatibility matrix.

Change-Id: If8e75c5ee8de0ef50d6937ffbd6453fb3f5eb648
2020-07-06 04:47:59 +03:00
Demon000
8a113b2d68 sm6250-common: import stock manifest 2020-07-06 04:47:59 +03:00
Demon000
c4e01f6871 sm6250-common: use dexpreopt on linux host and non-eng build 2020-07-06 04:47:59 +03:00
Demon000
24af70e3ba sm6250-common: enable suspend in off-mode charging
This guards usage of libsuspend in off-mode charging.
2020-07-06 04:47:59 +03:00
Demon000
67caa47dff sm6250-common: enable use of QTI camera device
Based on the existance of vendor.qti.hardware.camera.device@1.0.so
on stock.
2020-07-06 04:47:59 +03:00
Bruno Martins
23094912ff sm6250-common: Import BT config header
* Straight from CAF (as per LA.UM.6.3.r4-04300-sdm845.0),
   with BTM_DEF_LOCAL_NAME unset so that ro.product.model
   is used instead.

Change-Id: I20a8460c9d936cc3d94f74e469f8babf1c02bda4
2020-07-06 04:47:59 +03:00
Demon000
a39724cb6f sm6250-common: define audio feature rules used by audio policy 2020-07-06 04:47:59 +03:00
Demon000
c906100e46 sm6250-common: specify rules for audio policy
USE_CUSTOM_AUDIO_POLICY guards out the AOSP audio policy,
while guarding in the CAF audio policy.
USE_XML_AUDIO_POLICY_CONF specifies the use of .xml files
for audio policy.
2020-07-06 04:47:59 +03:00
Demon000
d69d4c2fe8 sm6250-common: remove buildvariant cmdline argument 2020-07-06 04:47:59 +03:00
Demon000
77baa3fc08 sm6250-common: define kernel rules
Extracted from imginfo of mkboot.

TODO: cleanup cmdline arguments
2020-07-06 04:47:59 +03:00
Demon000
a5381b36e1 sm6250-common: define no bootloader rule
This guards out inclusion of bootloader.
2020-07-05 15:51:52 +03:00
Demon000
8b64e910c9 sm6250-common: define board platform rule
Taken from
https://source.codeaurora.org/quic/la/platform/vendor/qcom/atoll/tree/BoardConfig.mk?h=LA.UM.8.9.r1-09500-SM6xx.0#n6

Can be cross-checked with the following prop
ro.board.platform
2020-07-05 15:51:26 +03:00
Demon000
b673c729d3 sm6250-common: define architecture rules
Taken from
https://source.codeaurora.org/quic/la/platform/vendor/qcom/atoll/tree/BoardConfig.mk?h=LA.UM.8.9.r1-09500-SM6xx.0#n11.
2020-07-05 15:37:59 +03:00
Demon000
b9f6f98d99 sm6250-common: specify common path
This path will be used later when including files relative to
this directory.
2020-07-05 15:25:37 +03:00