Commit Graph

450 Commits

Author SHA1 Message Date
LuK1337
40ab94de5f privapp-permissions: Regenerate permissions list
* Regenerated using development/tools/privapp_permissions/privapp_permissions.py

Change-Id: I9f49e92dbf92dc545dee782124d45db1e70df471
2019-06-25 23:54:57 +02:00
Ethan Chen
b7b49cc07d build: Use ifeq/else ifeq/else construction in board config
* Instead of nesting ifeq/else/ifeq/else/endif/endif construction, make
  allows the more readable ifeq/else ifeq/else/endif construction. Use it
  instead.

Change-Id: Ifd2635929799db593e04a13827f05c97e95487e4
2019-06-25 23:13:21 +02:00
Michael Bestas
fcc1e1967a Whitelist permissions for AOSP FM radio app
* Sort the file while we are at it.

Change-Id: I8dec9ece1c1523dcb77421b6912bbef91efb1485
2019-06-25 21:41:08 +02:00
Nolen Johnson
76cdd01250 lineage: partner_gms: Add minimal configuration flag
Change-Id: I245138b19448a193f8cbd12d5d26db295a4f4cdd
2019-06-18 21:37:21 +02:00
Rashed Abdel-Tawab
8613ea0ac1 kernel: Set correct kernel compiler prefixes for aarch64 clang
These configuration options are set based on the Google configurations
located in kernels
(ex. https://github.com/LineageOS/android_kernel_google_wahoo/blob/lineage-16.0/build.config)

This is composed of 2 parts:

Revert "kernel: Correct CROSS_COMPILE_ARM32 toolchain"

This reverts commit c77bb3a5ba.
This breaks builds when building with upstream commit
ad15006cc78459d059af56729c4d9bed7c7fd860. That commit fixes LD being
used from outside the path, however androidkernel toolchains don't
have elfedit. Google specifically doesn't use androidkernel, so we
need to follow them on this.

Set CROSS_COMPILE_PREFIX to aarch64-linux-android- for clang builds

Upstream commit ad15006cc78459d059af56729c4d9bed7c7fd860 makes the
kernel build system use GCC toolchains for elfedit, so we have to
actually use a real GCC toolchain, not the androidkernel one.

Change-Id: I79ac4ac47d3ba6c2abbc5ce40e56ed5c707295b4
2019-06-16 06:27:43 +02:00
Rashed Abdel-Tawab
60fe93525a lineage: Rework DTBO image generation
Currently we handle the DTBO images from start to finish, including
AVB footers, and just drop them in $(PRODUCT_OUT)/dtbo.img when done.
While this works for the most part, we are limited in what we can do
with the DTBO images. For example non-A/B device recovery images must
have a copy of the DTBO image appended to recovery (see AOSP docs:
https://source.android.com/devices/bootloader/recovery-image ). This
means that we need to pass the pre-AVB dtbo image into
BOARD_PREBUILT_DTBOIMAGE in order to let the AOSP build system handle it.

This commit reworks the way the DTBO images are built, placing them at
$(PRODUCT_OUT)/dtbo-pre.img instead and setting BOARD_PREBUILT_DTBOIMAGE
to that path so the AOSP build system can pick the images up and sign
them and append to recovery (for applicable devices).

Change-Id: I8819d7cd92ba298de67dbc7f6b321917ba8524f1
2019-06-06 07:17:27 +02:00
Joey
515f8e0a18 Build our wallpapers app
Change-Id: I02c8548ca4ac156846da1e4a0839240978b90e57
Signed-off-by: Joey <joey@lineageos.org>
2019-05-31 15:51:35 +02:00
Rashed Abdel-Tawab
fc5a8fa0ad lineage: Build Fi GMS product if WITH_GMS_FI is defined
Change-Id: Ia141fec1168e21726718cf11da83bb5ca0f68a56
2019-05-23 02:41:38 +02:00
blunden
6b5af98a3b Actually include legacy privapp whitelist
Change-Id: I11f4d524a628f3fddb3a6a0c6fe645922123fc89
2019-05-19 12:51:39 +02:00
blunden
f972f5ea63 Whitelist permissions under legacy package names
The lack of these whitelisted permissions causes a bootloop
when upgrading from earlier OS versions on devices that enforce
the whitelist.

Change-Id: I76b8fad5f0c49a7d008d19e7a116b5f19c75f739
2019-05-19 02:32:48 +02:00
Michael Bestas
f8b28f1364 config: Include old AOSP alarms/notifications/ringtones
Change-Id: I8546d20098a0d117c5349dbeb73cfe1e72030990
2019-04-12 02:08:21 +03:00
razorloves
26d738bac6 config: Remove duplicate keyguard.no_require_sim prop
Added here:
https://github.com/LineageOS/android_build/blob/lineage-16.0/target/product/full_base_telephony.mk

Change-Id: If94b53efa9612bec8ef296a9d6df86add3b0f7c1
2019-03-14 10:22:53 +01:00
Ethan Chen
995aff2a45 kernel: Add more threads to kernel build process
Change-Id: I9c90de7820308542c7bb15605df519976dd04e0b
2019-03-09 13:41:19 -08:00
theimpulson
7484149d3c vendor/lineage: Drop obsolete TW_EXCLUDE_SUPERSU flag
* Reference commits:
* https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/31609/
* https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/31745/

Change-Id: I7efbdc3ebee29095b36612660e065b6d7c603a93
2019-02-24 18:37:40 +01:00
Bruno Martins
9717ee7b80 qcom: Mark some gralloc bits as valid
* Add GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits for all
   the platforms and GRALLOC_USAGE_PRIVATE_10BIT_TP only for the
   UM 4.9-based platforms. Both are defined in the respective
   display HALs (in gralloc/gralloc_priv.h) being the latter
   only available for sdm845.

 * This results in the same as applying https://goo.gl/SR7sFY,
   but it's preferable since it makes use of our own method of
   extending the valid gralloc 1.0 usage bits (see commit 59009f8).
   TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS is extended here on
   purpose and as a bitwise OR of all the values in order not to
   clear what might have been set in the device trees.

Change-Id: I5536f341e75088cc72ac369065011388f0a6d3f1
2019-02-05 11:29:04 +01:00
razorloves
c832b57f5f privapp-permissions: Remove org.lineageos.trebuchet permissions
Trebuchet package name is now 'com.android.launcher3'.

Change-Id: I8a3f7b3f375069cc7a8d61a98dd51940fce84c0c
2019-01-29 13:19:05 -06:00
razorloves
54c01074ea privapp-permissions: Add new launcher3 permissions
Ref: cf019f2a73

Change-Id: If582910de52920a136dce2e2765825fda9e68a02
2019-01-29 06:39:55 -06:00
Han Wang
bf74b7f3d7 config: Add Deskclock to power whitelist
* Seems sometimes alarm cannot ring because of doze.

Change-Id: I3a35d2f02de365ea1d3a99ea75e0db9905d482a3
2019-01-11 08:35:05 +01:00
dianlujitao
9b4b5fa403 Remove deprecated ro.device.cache_dir
Change-Id: Ib8253a7b15b09283130d1f9d6ea649bd9e70aaf7
2019-01-09 17:47:02 +01:00
Luca Stefani
b206454557 Don't explicitly build uneeded packages
* libemoji doesn't exist
* libprotobuf-cpp-full is always built and part of VNDK
* librsjni is always built by renderscript

Change-Id: I379aa405f937d54fc7ab1fb7a120683e91f2bbac
2019-01-09 13:01:53 +01:00
Luca Stefani
c4d11905d7 Disable art debug and enable minimize debug info
Change-Id: I12b65c532201bf31f12cfb1d62c4a8bbe2204e2f
2019-01-09 13:01:53 +01:00
Rashed Abdel-Tawab
0d2fa55f2f lineage: Dynamically add custom APNs
For Example new devices need the new Sprint APNs, so add a new board flag for
them to set that will make the build system add the new APNs to
the APN config XML. If the flag is not set, continue to use the
old APNs.
To add or replace APNs, the custom_apns.py script has been
added. If CUSTOM_APNS_FILE is defined, custom_apns.py
is run and generates a new version of apns-conf.xml.

Change-Id: I7ff12a4342de2a7663b2b66fd627244214a8dc71
2018-12-13 07:25:18 +01:00
Artem Borisov
e0ca332693 vendor/lineage: Build TrebuchetQuickStep
We want all the fancy P features here.

Change-Id: I08342b8919f2df48aefa4b46410c9cb5d685565c
2018-11-16 19:47:17 +01:00
Bruno Martins
a7b0cf7ec3 privapp-permissions: Whitelist CHANGE_OVERLAY_PACKAGES permission
* LineageParts now uses AOSP permission CHANGE_OVERLAY_PACKAGES for styles

Change-Id: Iedf4c5165f2512879bcea7d5d28abe2ff20ca0a5
2018-11-14 12:17:29 +01:00
Christopher N. Hesse
e4a40881b6 common: Allow custom vendor to override properties
Test case: override ro.adb.secure in vendor/extra/product.mk
Before this patch, the override would not affect the resulting
property.

Change-Id: I0deb8a6865030b09ed6ba0ede1658319ca033e67
2018-11-07 22:40:46 +01:00
Rashed Abdel-Tawab
9fa7e80692 lineage: Dynamically generate kernel headers using lineage generator
Add a soong vendor plugin for kernel config variables so we can use
these in go.

Change-Id: Id31f2be8fcc5aba2d965dbe815edaaf1d28279c6
2018-10-20 21:50:38 +02:00
Rashed Abdel-Tawab
a836d79629 lineage: Move some kernel definitions to BoardConfigKernel
Kernel source settings should always come at BoardConfig population
time so things that use the variable later don't end up pointing to
an empty or wrong variable.

The following is also squashed in:

Author: Christopher N. Hesse <raymanfx@gmail.com>
Date:   Fri Aug 10 00:23:54 2018 +0200
    tasks: kernel: Honor prebuilt kernel flag
    For devices that want to use a prebuilt kernel, TARGET_KERNEL_SOURCE
    would still be set to TARGET_AUTO_KDIR, meaning the build system would
    still try to build the kernel if TARGET_AUTO_KDIR was present.
    Setting TARGET_PREBUILT_KERNEL indicates this is not wanted, so don't
    attempt to do it.
    Change-Id: Ic79b3ac1b9c946fd258ada43dce2b08bb74ea0d9

Change-Id: If046b86ff0d18c76898e90295be873a8379f678a
2018-10-20 21:50:38 +02:00
codeworkx
d51aef27d5 lineage: disable adb auth on eng build
We have to set ro.adb.secure to 0 on eng builds to get access.

Change-Id: Ie128f78c52c2f46b0a26d57eeed6a186aa7d9b67
2018-09-14 14:35:14 +02:00
Rashed Abdel-Tawab
a94cf0c781 qcom: Declare PRODUCT_SOONG_NAMESPACES for HALs
HALs are starting to move to blueprint files, which means that pathmap
ifeqs no longer work. This results in modules with the same name in
different platform HAL directories. Since these modules aren't used or
linked anywhere outside the HAL directories and a device's device.mk,
we can safely use a soong namespace to isolate the different HAL
directories' blueprints. This defines the PRODUCT_SOONG_NAMESPACES
make flag so make knows which namespace to look in as well.

Change-Id: I549e6da863465d79b12c7453aa169d5d963afa52
2018-09-03 22:30:59 +01:00
Rashed Abdel-Tawab
b8ac142535 lineage: Move QC board variables earlier
These variables are usually set in a device's BoardConfig, setting them
in qcom_target is at the very end of the "configuration process" which
results in them being unavailable to plenty of other configuration
"things" (ex. soong namespaces or soong config). Move them to right
after a device's BoardConfig has been found and loaded.

Change-Id: Iddd731202d22ed3f8eb010197ce20d3c75a1f40a
2018-09-03 22:30:59 +01:00
Luca Stefani
dab1569b81 Add rules for non platform apps that use hidden APIs
Change-Id: I483f00cc0735f47665c5cb61ed0a187fb4e7d655
2018-08-30 20:51:09 +02:00
LuK1337
040b292b8d privapp-permissions: Add FlipFlap permissions
Change-Id: I6be90c2558c439d3994f6438690d7b3d84069ef6
2018-08-28 02:14:34 +02:00
Ethan Chen
53f62b407b config: Use standard inherit-product-if-exists for vendor/extra
* prepend-product-if-exists was developed specifically to handle some
  special cases where Cyanogen Inc configuration ordering needed to be
  handled ahead of the standard inclusion order.

Change-Id: Ia3e041fb9e3c84d0763d18e4a401121bc210b976
2018-08-27 09:51:45 +01:00
Rashed Abdel-Tawab
e4868ccb6b lineage: Exclude all lineage overlays from RRO
None of this is device specific and therefore needs to be excluded from
RRO overlay packages

Change-Id: I24d882b783a8d7c9e494298e2c26c8ef689a515a
2018-08-16 14:27:42 +01:00
Bruno Martins
8d3ac29f24 config/common: Clean up debug packages
* Include all debug packages via PRODUCT_PACKAGES_DEBUG.

 * Remove oprofiled and sqlite3 from the list, because the former
   no longer exists and the latter is already part of
   build/target/product/core_base.mk. Also remove gdbserver, since
   it's already built by default.

Change-Id: Icde54061cd5a85d381b756364287344c3d216957
(cherry picked from commit e4d54e65cef919a77d51cce721eb741d2e512688)
2018-08-16 14:27:40 +01:00
Rashed Abdel-Tawab
6326caafb8 Lineage 16.0
Change-Id: Id892a06aac619efaef9c76aea8ced19af49672a6
2018-08-10 19:37:27 +01:00
chrmhoffmann
1813f415ab lineage: Allow background broadcast for CAMERA_BUTTON
This enables launch of camera app (snap) when pressing the camera button.

Change-Id: I76fd622031f628b20212e8c7a6239b49fd121a2e
2018-08-05 14:38:33 +02:00
Michael Bestas
95621f3c73 Revert "ota: Validate any installed data's signature against our own"
* otasigcheck doesn't work on encrypted devices and makes
  the zip installation fail since oreo.
* The build part of this was never ported to oreo.

This reverts commit aff5e54c4e.

Change-Id: I411f33c1db64844091c1692ef4706ae541925d4f
2018-08-04 17:46:35 +03:00
LuK1337
03a83c3b9a vendor: Copy org.lineageos.settings permission
Change-Id: Ia662f7789f77bb9b1abe1198db97a5b1767cd3e6
2018-07-31 21:49:17 +02:00
Aaron Kling
6674179a47 ATV: Build LineageCustomizer
Change-Id: I1a9e18516441dd513378bc5332b181b4e059e19b
2018-07-29 01:47:48 +02:00
Bruno Martins
db4aa05e62 config/common: Organize filesystems tools
* Along with it, remove tune2fs as the tool is already part of
   build/target/product/core_minimal.mk. Despite Google did quite
   a big cleanup in master branch, it's still built by default.

Change-Id: I4cf1178c2f99eda5a45de4ba79705093de5cd9bf
2018-07-26 08:50:34 +02:00
Bruno Martins
344f31cc2e config/common: Remove BluetoothExt from PRODUCT_PACKAGES
* This package seems to be deprecated and it's no longer synced.

Change-Id: I903d7000593a68149ea9cd24d545ccc6fa399de4
2018-07-24 23:48:22 +02:00
Bruno Martins
cac57c8547 privapp-permissions: Add new Dialer permissions
* Required for call recording

Change-Id: Ie35e872b54feb1d4dca7cee144a1e3ace16439e2
2018-07-18 15:25:06 +01:00
Demon Singur
e6c0c259fe vendor: build black style
Change-Id: I35026f9c19b5fca2402b7dc937e789aa9e997bb6
Signed-off-by: Joey <joey@lineageos.org>
2018-07-05 21:15:37 +02:00
Bruno Martins
e68dd977e4 vendor: fix ro.adb.secure for vendor-building devices
* This ensures the prop is set correctly for devices
  that build a vendor image by placing the prop in
  /system/etc/prop.default, rather than /vendor/default.prop
  so it'll be in a prop file that is run for mangle_default_prop
  in build/make/tools/post_process_props.py, therby
  setting persist.sys.usb.config correctly to "none".

Change-Id: I4027541cf1eae9dd967636efe35de9578922b725
2018-06-26 06:25:09 +02:00
Dan Pasanen
4a049b563c vendor: add custom backuptools and postinstall script for A/B OTAs
* A/B OTA devices wont run backuptools in recovery (because they don't
  go in to recovery to do an OTA). In these cases let's use a modified
  version to backup/restore from within android upon postinstall.

* Add backuptool_postinstall.sh which will be run prior to the normal
  postinstall script in order to backup/restore via addon.d scripts.

* This needs to be done in such a manner because we need /postinstall
  mounted rw instead of the ro with context= options which are used for
  the normal postinstall (dexopt) script.

Change-Id: I51511870634dd1ec5388adafddb446f95cc5a950
2018-06-22 16:09:56 +02:00
Joey
579241a761 vendor: introduce Trust interface
Change-Id: I1af2e4caab08b6b77db56e1be62247e55cd5a270
Signed-off-by: Joey <joey@lineageos.org>
2018-06-03 21:59:17 +02:00
Ethan Chen
70c217a5b8 build: Clean up makefile inclusions
* Include MTK/QCOM rules directly from the build/core/config.mk hook.
* Place main.mk hook and main_version.mk into build/core with the rest
  of the make system hooks.

Change-Id: Iad2f808f3e3eefbd2be2ca5facb907ff31babbb7
2018-05-30 21:50:44 +02:00
Adrian DC
3d92f57ca0 lineage: Isolate LineageOS versions properties for build.prop
* Our properties were supposed to go to /system/etc/prop.default
    after the following commit:
    "lineage: Move to Google's method of defining system default props"
    Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b

 * However if BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED is not true,
    only /default.prop will retain the properties contents of
    ADDITIONAL_DEFAULT_PROPERTIES and PRODUCT_SYSTEM_DEFAULT_PROPERTIES,
    and none of our versioning identification was held in the system

 * Enabling BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED globally would
    break all properties on devices that handle partitions usually
    at the device level rather than the kernel due to mounting races

 * Create a new main_version.mk file to isolate LineageOS properties
    that define the system's versions identifications, and use the
    ADDITIONAL_BUILD_PROPERTIES internal build variable to include
    from build/make through a common vendor main.mk entrypoint

Change-Id: I0060141c097b3d14c3710eee1e0caf7110634967
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-05-18 20:38:33 +02:00
Bruno Martins
be7db53a33 lineage: Remove FFmpeg plugin remnants
* Support hasn't been brought up in Oreo

Change-Id: Ie74dd232d4c45d73c4f6d1a9a03faa065106f85e
2018-05-09 00:31:32 +02:00