Commit graph

817 commits

Author SHA1 Message Date
LuK1337
43cb0d69bf Revert "config: Disable remote keyguard animation until it's fixed"
Fixed upstream.

This reverts commit 9c4fd99fb8.

Change-Id: I531ac182091a133fd7e5a693f97e1e883853b0a0
2022-07-03 22:00:43 +02:00
Alexander Koskovich
a78681c09c
kernel: Move TARGET_KERNEL_ADDITIONAL_FLAGS to kernel task
* Currently, because DTC_EXT make flag is in the
   kernel task the only way to override it is to
   have TARGET_KERNEL_ADDITIONAL_FLAGS come after.

Change-Id: If62ed979581dc07eafd4628ce2b2d799388d3704
2022-06-24 14:23:06 +03:00
Alexander Koskovich
d807db71bc
lineage: config: Don't pass CFLAGS_MODULE="-fno-pic" if using LLVM
* Seemingly not an issue for kernels compiled with
   LLVM, tested with kernel versions 4.4 -> 5.4.

Change-Id: I00adee2e10e99a540099b5e1a6a1ab9be0b99050
2022-06-24 14:23:05 +03:00
Alexander Koskovich
09a874fe75
kernel: Use LLVM's substitutes for GNU binutils if possible
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I06884fb774b6548aad68942f1ce659384521c62a
2022-06-24 14:23:05 +03:00
Danny Trunk
20bf195599 soong: Add TARGET_USES_EGL_DISPLAY_ARRAY conditional
This soong variable is used to conditionally revert a commit [1]
which causes random camera crashes on tama devices

[1] a9550f3fe9

Change-Id: I749c7029f8f2b6d6d95b066aed4929c33e3c75e7
2022-06-16 17:04:56 +02:00
Bruno Martins
c93bdd63c8 partner_gms: Stop relying on exported vars for ATV and Automotive targets
Flag PRODUCT_IS_ATV must be set for all ATV targets,
so Automotive targets can follow and adopt PRODUCT_IS_AUTO as well.
No need to export WITH_GMS_TV or WITH_GMS_CAR anymore.

Change-Id: I7f35e7fa731f7cee239aff03c99b83975abbb56e
2022-06-10 11:10:55 +02:00
Sebastiano Barezzi
f224255cd9 soong: Drop TARGET_USES_QTI_CAMERA_DEVICE
* qcom-camera topic hasn't been ported to 19.1

Change-Id: Ifb053d215527d602109bbb451d96ec80cf028548
2022-05-19 16:05:23 +02:00
Bharath
b5da8d5da2 msm8953: Split msm8953 from UM_3_18_FAMILY [2/2]
msm8953 has updated HAL projects. Make use of them.

This can be made use of by setting `TARGET_ENFORCES_QSSI`
to true.

Change-Id: Ib7ababd52470913c915f1da3d6b726eff2f38410
2022-05-02 16:38:15 +02:00
LuK1337
bb993175c1 Revert "config: Drop 2-button navigation support on tablets"
This reverts commit 755d713ebe.

Change-Id: I6f676df2b9b7f18d2461ddb05fa141a8c49cc5f8
2022-05-01 18:59:55 +02:00
LuK1337
9c4fd99fb8 config: Disable remote keyguard animation until it's fixed
Fixes slow post biometric auth screen wakeup.

Change-Id: I8f4824220f14a6fe93e792d15bcaf12fdf2c0ddf
2022-04-17 18:16:31 +02:00
Arian
03503fee70 qcom: Drop unused media flags for UM 5.4 family
These variables are not used in media HAL anymore since sm8350

Change-Id: Iaa65fbd38ae79f24a24dc030e1eea5af83b8bdf3
2022-04-15 16:03:16 +02:00
Michael Bestas
ae5f929573 config: Include vendor/crowdin overlays
Include translations for languages not available in AOSP.

This used to be split to each repository but it required forking AOSP
repositories just to add translations. Including them via overlay
avoids forking and makes the translations more portable, they can even
be used on pure AOSP builds.

Make them built in to avoid RRO issues.

Change-Id: Icc4c7b3a583c3d8a139a4a9a856dfca57952e131
2022-04-05 23:20:45 +02:00
Nolen Johnson
363eeb5517 partner_gms: Support makefile variants for GMS variants
* TV needs minimal as well.

Change-Id: I8ef44f9c92974cf97f93bbb34026c3812ca9ff51
2022-04-01 10:17:40 +01:00
Aaron Kling
a99b767d1e Fix nvidia enhancements soong conversion
Change-Id: Icc79f1f349de2bc4b213dd241ea59d69ca13a39b
2022-03-25 06:10:50 +01:00
LuK1337
ec10ed10f8 soong: Add TARGET_TRUST_USB_CONTROL_{PATH,ENABLE,DISABLE}
Change-Id: Ib245114588fd14c83069e4365f9ca3e9e9536ba9
2022-03-24 14:46:34 +01:00
Cosmin Tanislav
176ba0e774 lineage: framework_manifest: declare support for IHighTouchPollingRate
Change-Id: Id14ec4df916028747023277982e897c2015a496c
2022-03-21 17:26:40 +01:00
Alexander Koskovich
c6b93b4b4e lineage: config: Set default values for UDFPS in display HAL
Change-Id: I4308facd2f1f9e56b1a922c6e7aa610a7cf56919
2022-03-18 19:36:32 +01:00
Michael Bestas
cfc974fe4f config: Remove PRODUCT_VERSION_MINOR from LINEAGE_DISPLAY_VERSION
Change-Id: Ie133131ee936eee32751298f959ff4c26a1bc09f
2022-03-14 17:19:28 +01:00
Michael Bestas
30744444c4 config: Remove custom LINEAGE_EXTRAVERSION logic
This isn't used in official builds. TARGET_UNOFFICIAL_BUILD_ID
is enough for people that make unofficial builds.

Change-Id: Ib6d1acb4ab8d7401ea0577f439e8288aed3f9bbb
2022-03-14 17:19:28 +01:00
Michael Bestas
14a3b4ddd0 config: Remove custom LINEAGE_DISPLAY_VERSION logic for !testkey
This isn't used on official builds and it doesn't make sense
to keep complicated custom logic for display version.

Change-Id: I3928d6e9dc932589868542e916ebd659265d6c54
2022-03-14 17:19:28 +01:00
Michael Bestas
726cf9855a config: Remove PRODUCT_VERSION_DEVICE_SPECIFIC
Change-Id: I995f5ab326a6afc04509b9c2829b8b69d5a318d7
2022-03-14 17:19:28 +01:00
Michael Bestas
9b81c29acc config: Make use of LINEAGE_VERSION_APPEND_TIME_OF_DAY consistent
Change-Id: I9cd0aaa205663e44614e07318ca66c3e0aba7c8e
2022-03-14 17:19:28 +01:00
Michael Bestas
1667b61789 config: Move version setup to version.mk
Change-Id: I24f6dd25d0986863f6f9cc116c5ae9cdf15be292
2022-03-14 17:19:28 +01:00
Michael Bestas
a6ba1d16f1 config: Remove TARGET_VENDOR_RELEASE_BUILD_ID
Change-Id: I5007d6e4991f911a8fdaaa07a7f263bd28af9c57
2022-03-14 17:19:28 +01:00
Michael Bestas
82ba06fc90 config: Remove LINEAGE_VERSION_MAINTENANCE
Change-Id: I6b6f00601be5166a1f8f31a39e3b4f58c4fc4ca9
2022-03-14 17:19:28 +01:00
Nolen Johnson
180be0af6b LineageOS 19.1
Change-Id: I52d4109d4e1bacdbc08a5e640dfcdfdd8d319bf3
2022-03-14 17:19:28 +01:00
Bruno Martins
755d713ebe config: Drop 2-button navigation support on tablets
It's completely broken as of Android 12L. Make it available only
on devices that inherit from full_phone configs.

Change-Id: I1b5d39e09b6223c78c4afb7b4480c654d848c36b
2022-03-14 16:35:36 +01:00
Alexander Koskovich
4fef411428
lineage: overlay: Move Trebuchet overlay to seperate RRO package.
* RRO is not auto generating.

Change-Id: Ia69895291f4cfc4f911b7993ccb82eef8b02170d
2022-03-12 17:01:42 -07:00
Alexander Koskovich
c453599164
lineage: overlay: Exclude backup transport overlays from RRO.
* These need to reference Settings resources that they
   don't have access to.

Change-Id: I6e055b141f71f33848cf006679ae65dff43f9d03
2022-03-12 17:01:42 -07:00
Alexander Koskovich
7561a9b7a6
Revert "lineage: Exclude all lineage overlays from RRO"
* Now that PRODUCT_PACKAGE_OVERLAYS is used instead it's fine
   for Lineage overlays to be in RROs, they won't end up on
   /vendor.

This reverts commit e4868ccb6b.

Change-Id: I26cb53f6b773821cbb08e4eb309f88d736a31609
2022-03-12 17:01:41 -07:00
Tim Zimmermann
e15a636303 config: Include androidx.window.extensions in tablet builds
This enables 2-pane layout in Settings for Android 12L.

Change-Id: I57af5b876c2c33897bf4047a70c10750785a3c76
2022-03-13 00:00:31 +01:00
Bruno Martins
157a2a7173 config: Create makefiles for tablets with telephony support
So far, tablets with telephony have been inheriting from
common_full_phone.mk, but that's not really proper because
such makefile now enables one-handed mode support
(setting prop ro.support_one_handed_mode to true).

Fix this by creating new makefiles that can be used also
to include more tablet-specific configs moving forward.

Change-Id: I90c22badb17911ef5e873299d986204718300e6c
2022-03-11 13:45:51 +01:00
Alexander Koskovich
6d88852d2e lineage: config: Make LLVM kernel compile the default
* GCC was deprecated awhile ago, the large majority
   of devices should now be using this. Clang should
   be opt out as opposed to opt in.

Change-Id: Ie388aff8eca189663f2f615f7d059e47eaf2dce3
2022-03-10 11:06:43 +01:00
Bruno Martins
d5cdc09793 config: device_framework_matrix: Remove inscreen and power HAL entries
These don't exist anymore.

Change-Id: If7e3a7719cba03c6df0510e2bdbfb080da1f1880
2022-03-08 15:21:13 +00:00
LuK1337
c753856076 config: partner_gms: Make default partner_gms makefile optional
Not everyone using WITH_GMS=true uses partner_gms.

Change-Id: Ic0aa3bf8164ecdba54e954b742bc71cdc688fd1c
2022-02-10 22:28:27 +01:00
Nolen Johnson
9ed5773c65 config: partner_gms: Introduce Android Automotive GMS
Change-Id: I1040d9b02c6c783fc2393f5600698ed01b0a74ab
2022-02-10 11:26:15 -05:00
Nolen Johnson
4f291af9a3 config: partner_gms: Make mainline modules entirely opt-in
* Except for Android TV, which requires them to boot.
* Most people on mobile and car builds won't want mainline
  modules, as they may conflict with LineageOS features.

Change-Id: I9b4db3e6a109b834963a4ddacacc855dc55c258c
2022-02-10 11:26:15 -05:00
Alexander Martinz
2d473bc876 config: partner_gms: Remove hardcoded variant list
Instead of hardcoding the GMS variant, allow to set the makefiles
which should be included for WITH_GMS builds.

For example:
  Project FI
    - WITH_GMS_FI := true
    + GMS_MAKEFILE := fi.mk

  Go devices
    - WITH_GMS_GO := true
    + GMS_MAKEFILE := gms_go.mk
    + MAINLINE_MODULES_MAKEFILE := mainline_modules_low_ram.mk

  Mainline modules without updatable apex
    + MAINLINE_MODULES_MAKEFILE := mainline_modules_flatten_apex.mk

As you expect GMS to be configured the way you specified them, this
change also causes the build to error out, if a makefile can not be
included.

This excludes mainline modules to allow including GMS without using
mainline modules.

Change-Id: I0ab61449ed7cc60e72bf519f91c29712055f8a74
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2022-02-10 11:26:14 -05:00
Bruno Martins
2759a5b50e Rename init.lineage-system.rc and move to /system_ext
Change-Id: Ife4f9467b6aa2d656a2df34cc9df5dafef304348
2022-02-08 13:09:39 +01:00
Luca Stefani
6b1163254d
Remove LineageAudioService
Change-Id: I3260a60a733927b47f3b5f5192254dc692ec33eb
2022-01-31 00:45:17 +02:00
Bruno Martins
3bf5b914cb config: Delete perf permission
Change-Id: I465b8d99215f2deb8e84b686f6837a5eac9669dd
2022-01-30 22:34:25 +01:00
Alexander Koskovich
cf387d4080 lineage: Pick up mainline modules as well.
Change-Id: I1877329d7a1fc9697a63c08af0466daf155f8cba
2022-01-27 22:01:48 +01:00
Michael Bestas
ee5797e4b3
config: Build Android 11 icon shapes again
Google removed them from frameworks/base, we relocated them
to packages/overlays/Lineage

Change-Id: I90395d8fd8e17d5f8ff2a5159aadb56f9674f2f9
2022-01-27 20:14:14 +02:00
Michael Bestas
87ebf0f3c4
config: Build font overlays again
Change-Id: Ibf6ea9645bbe352a430636c10c3e6e91ac79b99c
2022-01-27 20:14:14 +02:00
TH779
264dd95bc1 Revert "vendor: Add vendor.lineage.biometrics.fingerprint.inscreen permission"
* Udfps doesn't need this anymore.

This reverts commit 276e7770bf.

Signed-off-by: TH779 <i@779.moe>
Change-Id: Ie26895d2c32b6544334efd46bb5ca73455ed99cb
2022-01-26 22:56:32 +01:00
TheScarastic
af717a279c soong: Rename fod to udfps
* now flag is changed to TARGET_SURFACEFLINGER_UDFPS_LIB from TARGET_SURFACEFLINGER_FOD_LIB

Change-Id: I499b31d00a053b865ceaa3b34a9762f980bbf14e
2022-01-26 22:56:32 +01:00
LuK1337
a585122d85 lineage: Add vendor/qcom/opensource/commonsys/display to soong ns
Change-Id: Ic9f5fb64a3cd7cfdd38c5caf38ee6e94ef9c8c73
2022-01-26 21:28:39 +01:00
Pig
ffb9554ff0 lineage: Add vendor/qcom/opensource/commonsys/system/bt/main to soong ns
Add one more product soong namespace to reflect S(QSSI 12) changes

Change-Id: I84580b04fd34bad35435753f917694a4dd1cc3b9
2022-01-23 23:43:14 +01:00
Alessandro Astone
174ee28d0f Revert "Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage""
The fix was correct...

This reverts commit 168fd231b6.

Change-Id: If550fd44f32b801553b8ac23cb2a91d3f29df557
2022-01-06 16:41:05 +01:00
Arian
faeef6de96
qcom: Add new vendor display repository to soong namespaces for qssi supported platforms
Change-Id: Id9fe3a5393bc579564259c9e0699a6534fb896b5
2021-12-06 16:48:42 +01:00
Michael Bestas
5f32a3c161 Remove backup services whitelist
* This should live in google apps package

Change-Id: Ie5272b5420c418199a5cac4c930234ef38662f6d
2021-11-30 16:39:39 +05:30
Michael Bestas
933aa91e52
Exclude some files from artifact path requirements
Change-Id: Id5ef2a44c0cd3b76e3285c26826031f773b7a95f
2021-11-28 23:53:14 +02:00
Michael Bestas
d046b3664c
Revert "busybox: add libsepol to product packages"
* No longer needed

This reverts commit ac602b4c28.

Change-Id: Ibfa6e0ea121417352e076068c08cd3f0dabc96e8
2021-11-28 23:53:13 +02:00
Michael Bestas
1ceba67a92
config: Move keylayout to /product
Change-Id: I973f509505e289a093236665fcaefa307c05da40
2021-11-28 23:53:13 +02:00
Michael Bestas
09ef796bb7
config: Move permissions & sysconfig to /product
Change-Id: Ie2733b03b72fa01f89d2c978e978a13329ded814
2021-11-28 23:53:12 +02:00
Michael Bestas
1f0d9c1341
Reorganize init scripts
* Add init prefix
* Improve naming
* Move to system_ext

Change-Id: Ic6cc600feca48e9f9b83e023a16daed25b5a7de8
2021-11-28 23:53:11 +02:00
Han Wang
c52b5a0883
Remove fake wget
* Toybox supports it now, and there is no real need for
   this tool.

Change-Id: I6f3f8e10f148ffc9626cd150ea21275096d2daed
2021-11-14 20:20:53 +02:00
Timi Rautamäki
af7ada466c gms: fail build if exported option doesn't exist
Change-Id: I403f8141d2d13ce2ec60fc0abb301aa39a0cdfc6
2021-11-04 05:48:03 +02:00
LuK1337
3786aa43a0 kernel: Add 32-bit GCC to PATH for vdso32
Change-Id: Ifff495069ab33d9b1346971a21f380f0c23ebf48
2021-10-27 00:26:52 +02:00
Arian
127800a6b3
config: Enable support of one-handed mode for phone targets
Change-Id: Iab7de339e449d396d19783cfc254d540b600a33a
2021-10-15 15:10:10 +02:00
Michael Bestas
8c26f9b069
Remove color font and icon overlays
These are not used anymore with the new theming

Change-Id: Iacb086f9dacc36fca5c9a9dedcbd2b2ba4f86e6e
2021-10-12 17:52:14 +03:00
Michael Bestas
f911e89edb
config: Drop obsolete filesystem tools
* NTFS tools are not included since 18.1
* mke2fs is built by default

Change-Id: Ie977aa01f56cf9a3eebbf1133f5e7c9571b98345
2021-10-12 17:52:13 +03:00
Michael Bestas
b563016fa7
config: Remove TWRP config
* This hasn't been supported for years.

Change-Id: I7f0f48d3ef5f7119a096ffb2e646db40a4509f6f
2021-10-12 17:52:13 +03:00
Luca Stefani
1dc01b6e1d
config: Don't build Terminal
* AOSP deprecated it
* Aside accessing internal storage it doesn't have much, if any, usage

Change-Id: Ideaf730e5e1ff17245a6853e74ac75db2f61d3de
2021-10-12 17:52:13 +03:00
Michael Bestas
ec1dc171c4
config: Remove Email apps
Change-Id: Iab9b6c38b4a118db57efb890c9069efe06632987
2021-10-12 17:52:12 +03:00
Michael Bestas
e843a047cd Lineage 19.0
Change-Id: I406a755d475de4ca7f92f58164282c7a07a06743
2021-10-07 19:57:15 +02:00
Arian
aca64b083a config: Update clang version to clang-r416183b1
* That's the default clang version on android-12.0.0_r1

Change-Id: I528d9a6aa497f7c9a0f53b0e778d0eeefaac0e9d
2021-10-07 11:43:23 +02:00
Michael Bestas
a445f2a977
config: Cleanup additional gralloc bits
Change-Id: I4ba1638513c4e5c92ee9756bfbfe8a5ff93d04cd
2021-09-16 19:28:15 +03:00
LibXZR
d5b4b59b64 kernel: Fix vdso32 building for 4.19+ kernels
This flag has been renamed in 4.19 kernels
https://android.googlesource.com/kernel/common/+/refs/heads/android-4.19-stable/arch/arm64/kernel/vdso32/Makefile#13

Change-Id: I92db29aa124da7c9fc63454d9443373bdc2e16e7
2021-08-23 18:05:25 +02:00
Alexander Koskovich
38f389130b lineage: config: DEVICE_PACKAGE_OVERLAYS -> PRODUCT_PACKAGE_OVERLAYS
* DEVICE_PACKAGE_OVERLAYS corresponds to overlays that
   are device specific, these are not so they should
   belong in platform.

Change-Id: I8684e10a370ba1b9f0a725c0f199d167a98d1668
2021-08-22 19:04:34 +02:00
programminghoch10
f88090b17a charger: add lineage charger
Add a new charger as a possible replacement for the AOSP charger.

Co-Authored-By: Tim Zimmermann <tim@linux4.de>
Change-Id: Icdf7ad770bb353f082759b76fd4e58910e8d72e3
2021-08-05 19:58:50 +02:00
LuK1337
9887e1f751 lineage: Don't enforce inclusion of common compatibility matrix
* Let people include it if they choose to.
* Avoids issues where people who previously didn't need
  compatibility matrix's are hitting checkvintf errors.

* Fixes breakage in: 78870c267f

Change-Id: I33bc1e67e7f9eb9a01930113535800a8e4f539fd
2021-08-02 22:51:49 +02:00
Alexander Koskovich
78870c267f lineage: Add framework compatibility matrix for Lineage HALs.
* Cover all possible Lineage HALs here instead of covering
   them in the device specific manifests.

Change-Id: Id7f7d6eb1f14190a061537cebfabd339af9b1620
2021-08-02 15:54:28 +02:00
Tom Pratt
de83dffc34 Add generic targets for automotive
Makefiles combining core lineage and automotive packages.
Can be included by devices to turn them into Automotive builds.
Emulator targets demonstrate using these makefiles and form a basis for Automotive GSIs.
Change-Id: Ib5d35dfe4de8c459e4e14a7ba6f0b0e682e0d912
2021-07-23 17:57:27 +02:00
Sebastiano Barezzi
4ccc17d333 soong: Add TARGET_CAMERA_BOOTTIME_TIMESTAMP conditional
Change-Id: Ic48acda208fc9990fc5c9159ad06518d48f21477
2021-07-19 11:24:57 +02:00
Nolen Johnson
a3fc194a83 lineage: partner_gms: Correctly guard ATV GMS
* Needs to be an env-var, or when Android.mk is read in partner_gms
  we runinto issues with the var not being set yet.

Change-Id: Ia90f9a6c97ebf406a0f3c1848286300cace2c2c9
2021-07-12 17:13:47 -04:00
Sebastiano Barezzi
c86a1a8128 kernel: Add TARGET_FORCE_PREBUILT_KERNEL flag
* TARGET_FORCE_PREBUILT_KERNEL should be useful when you don't have ready kernel sources (OEM releasing broken sources or releasing them lately)
* It lets you use kernel sources for userspace generated headers (generated_kernel_headers) while keeping using prebuilt kernel
* Keep in mind that generated kernel headers may not align with the ABI of kernel you're including
* This commit also partially revert commit a836d79, where TARGET_KERNEL_SOURCE would have been unset if TARGET_PREBUILT_KERNEL was defined (we already check in kernel.mk if kernel sources are present anyway)

Change-Id: I84acae890dabb5b9dbd48143ad58f6420c0cef75
2021-06-24 11:50:07 +02:00
Bruno Martins
e741d463e9 Revert "soong: Add TARGET_QTI_USB_SUPPORTS_{AUDIO,DEBUG}_ACCESSORY flags"
This reverts commit ba8e075ed4.
It is no longer necessary.

Change-Id: I5d9656ffb686e939f006d5fb1effaba835f93ed2
2021-06-14 14:48:36 +01:00
Bruno Martins
b735fac86f common: Remove extra tools already shipped by default
Change-Id: Iaec2ccdc14b517eb72f1f44c9c75c9290ada74ea
2021-06-10 17:03:21 +02:00
Luca Stefani
263073057d config: Remove exfat tools
* They are now part of Android core

Change-Id: I588d5d72919aa4e8675a0586d583640419d137e9
2021-06-10 16:02:09 +01:00
Han Wang
5c084cbbff config: Actually disable strict mode for non eng builds
Change-Id: If64c42111c75908f2c590199b5cfb45266af93c4
2021-06-05 11:13:36 +02:00
Sam Mortimer
21e586ae9b Disable extra StrictMode features on all non-engineering builds
Change-Id: Ib052fba60e12497f79913c8030f59af40b6bc32f
2021-06-05 10:39:05 +02:00
JamieHoSzeYui
902f4474ba qcom: add lahaina platform
lahaina = Snapdragon 888

Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
Change-Id: Iaad90031451a9d1d3c8cbe8b61c1cf19717df4ee
2021-05-31 22:51:36 +02:00
Gegham Zakaryan
4fe28bcfb9 config: Add globalactions service permissions
The service won't start without this.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I377a45aceb76d0a94504ef799f9c33782185ca1f
2021-05-23 15:17:35 +02:00
LuK1337
ba8e075ed4 soong: Add TARGET_QTI_USB_SUPPORTS_{AUDIO,DEBUG}_ACCESSORY flags
Change-Id: I18a93fa12bf3d911919a80996d41d52714ee42bf
2021-04-10 18:53:40 +02:00
Luca Stefani
271ba02664 sensitive_pn: Run XML lint against the schema
Change-Id: I083bd5834f5dd69bdbb5955e9f0e1f8dba760fe5
2021-03-26 11:02:13 +01:00
Alessandro Astone
ade98959e0 config: Set screen size defaults globally
* Makes defaults available to other places than just bootanimation

Change-Id: I6865bdd08e7f3d9370ce8578691f52204d57fde7
2021-03-12 14:08:55 +01:00
Nolen Johnson
7c428141bc soong: Add TARGET_LEGACY_HW_DISK_ENCRYPTION conditional
Change-Id: I2c67fe632d415353273839493a86cdd75bd93b23
2021-02-22 20:28:23 +01:00
TheMalachite
ec016fd19b qcom: Add bengal platform
Signed-off-by: TheMalachite <eliasgheeraert@gmail.com>
Change-Id: Ia9f602a1d6f109554c6462eaa02214c43b9295dd
2021-02-02 16:47:05 +01:00
Han Wang
c3710badd7 config: Remove persist.sys.dun.override again
* It was removed in 2019, but somehow commit 8926990
   brought it back again.

Change-Id: I973c03f7eed87c46973b42fd7bda04ed1ad27935
2021-01-16 15:03:00 +01:00
Alessandro Astone
2552c634da lineage: More checks for copying AB backuptool scripts
Pixels tree have moved AB_OTA_PARTITIONS to BoardConfig.mk,
which is unavailable when parsing config/common.mk
In order to still copy AB backuptool scripts for them, check for
AB_OTA_POSTINSTALL_CONFIG too which still lives in device.mk

Change-Id: I871e2595bc4f083db6491de0d9574bae2794e654
2021-01-13 19:34:15 +01:00
Alessandro Astone
9f160e6e5f lineage: Commonize display_intf_headers for QSSI supported platforms
Change-Id: I7224c10295c4123222d81b92f7829502e3cc2d61
2021-01-07 11:21:54 +01:00
Adrian DC
d8ad094a4a audio: Add missing Effect_Tick.ogg effect sound used by the UI
* Test: Press the 'Messaging' button from 'Contacts'
 * Detailed in frameworks/base/data/sounds/README.txt

Change-Id: Ia83852f5d92279e9c3ba83f81b2fed3a9a70e0e9
2021-01-05 20:02:43 +01:00
Ethan Chen
64b5b1cacd partner_gms: Simplify if/else if logic
Change-Id: Ib5e3dc3741c6784cb47bd0f66150df8a499aaf92
2021-01-04 19:13:33 +01:00
Adrian DC
790ab1de65 config: Handle TARGET_EXCLUDES_AUDIOFX in the products definitions
Change-Id: Iaa99a7d89bb516a788180c3be24fa514c6a7b907
2021-01-01 21:21:57 +01:00
Michael Bestas
3aa50f85cf config: Add dataservices to PRODUCT_SOONG_NAMESPACES if needed
The mk files in vendor/qcom/opensource/dataservices were
converted to bp, so this is needed to avoid duplicate module
build errors on devices that use a different dataservices lib.

Change-Id: Ic5c1ad77342c045253cfd093c76706862ed6fd0e
2020-12-31 18:20:23 +01:00
Pig
f85f7e802b config: Setup soong namespaces for TARGET_USE_QTI_BT_STACK
To opt-in for QTI BT addons, enable TARGET_USE_QTI_BT_STACK in BoardConfig.mk

Reference: [https://github.com/LineageOS/android_vendor_qcom_opensource_bluetooth-commonsys-intf/blob/lineage-18.0/bt-system-opensource-product.mk]

Change-Id: I6bf3e1dda6fe5dc66f6fafdb32a1daecb9616c84
2020-12-26 19:16:08 +01:00
Danny Lin
969ba44991 config: Build simple DeviceConfig provisioning service
We need a simple service to provision DeviceConfig for setting various
config defaults, like enabling permission hub, without modifying the
AOSP source code directly. Build our custom service to do the
provisioning from resource overlay values instead.

Change-Id: Id2910d799b503c339f56e7f92a5e5f3ba93a5296
2020-12-18 16:29:16 +02:00
Han Wang
4562fe4ef4 prebuilt: Remove content-types.properties
* This is now moved to fw/b and should be overriden in 
   vendor.mime.types.

Change-Id: I0546763be34567816b6e87f2a721f1445c83eaf8
2020-12-16 15:13:28 +01:00
Danny Lin
7a31b36bb0 config: Build QuickAccessWallet plugin for SystemUI
This plugin that provides the wallet (cards and passes) integration in
the power menu is now open-source, so let's build it.

Change-Id: I5df8a09c8f91805df538bc7ddad6d326f5d9b13e
2020-12-15 22:20:53 +01:00
Jan Altensen
2855e94574 soong: add TARGET_HAS_MEMFD_BACKPORT conditional
Change-Id: I71b3a86c96bfe53e93e99c071bc8f3a8c56c77b7
2020-12-14 10:28:31 +01:00
Bruno Martins
e1df13eb4a Lineage 18.1 is here for Xmas
Change-Id: Ic7bd96c188eb97c53cf245f79c85cc0e0d14a094
2020-12-12 03:26:14 +01:00
Arne Coucheron
ca94a9791c soong: Add flag for disabling postrender cleanup
Some legacy devices experiences bad lag unless this is disabled.

Disable it with:
TARGET_DISABLE_POSTRENDER_CLEANUP := true

Change-Id: I2b40dc4cbcab06fb293d1f407321af2fae846a51
2020-12-03 20:09:54 +01:00
Bruno Martins
bcf6cd5787 partner_gms: Add support for Android Go GMS
Change-Id: I5d98283606ca213327b72969a2a3e3d256b30d05
2020-12-03 19:06:26 +01:00
Bruno Martins
f64ce2840c lineage: Add Android Go specific configs
Trebuchet is also available as a Go version, so modify the existing
configs to allow it to be shipped in Android Go enabled devices.

Change-Id: I29f203b3fa19bc955976ee6c3da4142a4ab325bf
2020-12-03 19:06:26 +01:00
Bruno Martins
1f0f73d5e2 common_mobile: Don't forcibly ship optional AOSP packages
This was added in commit 8926990 for no apparent reason. Let's not
forcibly include these packages in every build, because most phones
already inherit from AOSP's full_base_telephony.mk anyway.

Change-Id: Ib7986b7f7edd58a7043c793e6ba566d3dcf5a2a6
2020-12-03 15:49:26 +01:00
Michael Bestas
3db3630f4c config: Remove non-existent/deprecated packages
Change-Id: I40dcbdd7767695ae28caf692f0c51553f710069c
2020-11-26 00:56:51 +02:00
Aaron Kling
cf8d90fd92 atv: Remove AppDrawer
TvLauncher now displays all apps regardless of tv intent. So this
has become useless.

Change-Id: I835fe9fbfb50994ffab0718a6303474da2f77c4a
2020-11-23 20:40:58 +01:00
Michael Bestas
3cf43fe2e6 config: Build Seedvault
Change-Id: If858ce8bc3167b95cb5206be77f23cb8632f763b
2020-11-03 01:18:09 +01:00
Michael Bestas
d3040f2cd2 config: Build IconShapeSquareOverlay
* It exists in AOSP since 10 but was simply disabled

Change-Id: I9608d3ca2c798fbe3ebf94503955570be40a7142
2020-11-03 01:18:02 +01:00
Michael Bestas
f16c3829f6 config: Remove LockClock build target
Change-Id: I18720e8914103573cab9f391c7b175cbbff9971e
2020-11-03 01:18:02 +01:00
Han Wang
0b4e410703 config: Remove weather related targets
Change-Id: Ie4af798cb6d36229d1e47a435c8d848d3f5fc422
2020-11-01 12:36:41 +01:00
LuK1337
beb10414d2 lineage: Add data-ipa-cfg-mgr to soong namespace in BoardConfigQcom
Before:
  $ breakfast capricorn && m ipacm
  FAILED: ninja: unknown target 'ipacm', did you mean 'lpadd'?

After:
  $ breakfast capricorn && m ipacm
  * happily compiles *

Change-Id: Ib68978d4f287dcdea45fc21382af05b1890caca4
2020-11-01 11:29:01 +01:00
Aayush Gupta
8f652be8ff lineage: Drop lineage charger
- Been broken since a while. I don't see any devices using it as well.
  Most devices have explicitly set it to false instead.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I178ecd5213bc0c99f97cbbd9c41fd648598edd77
2020-10-22 12:56:57 +02:00
DarkJoker360
a461d3228d config: Build NavigationBarMode2ButtonOverlay
This got removed from PRODUCT_PACKAGES in frameworks/base, but it seems
like it still exists.

Change-Id: I8fe80c9c5a386ae1877f7c117ddc76ff366304a3
2020-10-19 21:21:16 +02:00
Bruno Martins
0ca690066f soong: Set a default for TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS
Devices not setting BOARD_USES_QCOM_HARDWARE to true fail to build
in case a default is not set.

Change-Id: I6643aa08244a5c476a45336485362dd7876fc90c
2020-10-17 11:27:15 +02:00
Pig
a98d12f8e3 soong: Add lineage soong config variables
Ref: https://android.googlesource.com/platform/build/soong/+/refs/tags/android-11.0.0_r4#soong-config-variables

Change-Id: Icaf35b65b63d4245c92e39ce628bb8d6ffd0d4bb
2020-10-16 14:47:33 +01:00
LuK1337
80b922cb08 soong: Add SOONG_CONFIG_DATASERVICES_USES_PRE_UPLINK_FEATURES_NETMGRD
* See: https://android.googlesource.com/platform/build/soong/+/refs/tags/android-11.0.0_r4#soong-config-variables

Change-Id: I332dcd289d9617938738d1959daee106439de5c6
2020-10-14 18:41:15 +02:00
Alessandro Astone
d11ff7c5ab kernel: Add prebuilt m4 to build environment
* android-11 removed M4 from the Allowed list, and provided a
   prebuilt binary in prebuilts/build-tools

Change-Id: I83d033ecd35a0e2318210e47309fcc010843347f
2020-09-24 16:21:42 +02:00
LuK1337
a413b6ee55 kernel: Use Clang as HOST_{CC,CXX}
GCC was deprecated upstream, so switch to Clang.

Change-Id: I8a6c9d6b763db0055189d83f9037ccb0c50a23ea
2020-09-24 11:59:52 +01:00
dianlujitao
2c62140d3d kernel: Use nproc from prebuilts
Change-Id: I1d7a33dac57cbba9ce1a92f81d74709146e92968
2020-09-24 11:58:50 +01:00
Bruno Martins
c3ad8b5c54 lineage: Use $(HOST_PREBUILT_TAG) where possible
Change-Id: If211d23ce72b3404368cd723cbb9ea801e61802c
2020-09-24 11:56:08 +01:00
dianlujitao
b492f3f8cd config: Don't append extra $ to TOOLS_PATH_OVERRIDE
This fixes build system error:

  internal error: panic in GenerateBuildActions for module "generated_kernel_includes"
  error parsing Command param: invalid character after '$' at byte offset 579

Change-Id: I3f788ff61fc101b7682d5c64d0e9aa2aba48c49b
2020-09-15 13:13:58 +02:00
Jan Altensen
dd29a4766a Lineage 18.0
Change-Id: Icda4887efd1a965530213f82fbbf8ae908843b05
2020-09-13 19:45:42 +02:00
LuK1337
2baeb4fb8b kernel: Use CPATH for including host headers
* Fixes build on distros where CAP_LAST_CAP @ /usr/include/linux/capability.h
  doesn't match target device kernel src.

Change-Id: Iafdf9694fd165c83b22bd95df95e940ecceb0fdd
2020-09-02 19:44:54 +02:00
Luca Stefani
fe00ea90c9 kernel: Rework how DTB/DTBO are built
* Remove the separate dtbo.mk task and merge it
  in kernel.mk
* Merge in-kernel and separated DTBO image generation

Change-Id: I2cae84095cbd3d68abbe1899a9cae34c8a1e5fc9
2020-08-22 20:26:13 +02:00
Michael Bestas
b901116d5e Remove deprecated backup overlay
* This lives in a different package now and it is
  included in framework-sysconfig.xml

Change-Id: I0ec218b2cb91476efe62ad4a9578ac850b5f22ef
2020-07-12 19:50:10 +03:00
LuK1337
b82776e2a4 qcom: Add UM 4.19 platforms
Change-Id: Ida4861b95b0b9748ef3848674b7121010126dd3d
2020-06-25 20:17:38 +02:00
TheHitMan7
eb18aa6af9 qcom: Add atoll platform
Signed-off-by: TheHitMan7 <krtik.vrma@gmail.com>
Change-Id: Idc74d064620649e7423a2fee076da8bd43e1cbd3
2020-06-25 20:16:52 +02:00
LuK1337
87467210f3 config: Move default alarm/notification/ringtone sound props to /product
* Allows us to override /vendor properties.

Change-Id: Iea344d347d8f10094f04cfb4a0bf1d4352fb667b
2020-06-24 17:14:59 +02:00
Nolen Johnson
af32ee6d3f partner_gms: Support TV GMS
Change-Id: I16c1f4a868c119b54da3e41c2e5b7e6bf7e0a53e
2020-06-01 14:51:49 +02:00
dianlujitao
a24144faf2 kernel: Add bison and flex to build environment
* Required since Linux 4.16

Change-Id: I107ea1b097d72a7b5251273c8c7e33ad6585b59c
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-05-29 17:31:10 +02:00
Jesse Chan
3e7d232483 Implement hide gestural navigation hint bar [5/5]
Change-Id: I4a41117892eb275cc696907e4756fd52c85ede03
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-05-27 16:09:20 +02:00
LuK1337
deb21830ac config: Build Etar
Change-Id: I5cc6e50a8fbc3b0f86793292330edcd33b6d9c48
2020-05-25 23:45:30 +02:00
Andrew Hexen
8d08a5f96c BoardConfigQcom: Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES
By setting QCOM_SOONG_NAMESPACE in device.mk
This will allow a device to specify a device specific branch within
hardware/qcom-caf/ or the device tree.

Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: I39693a0fb9665129f0810590d389c4cb06cdf8d7
2020-05-15 01:42:01 +02:00
LuK1337
2057f50e48 config: Install {Lato,Rubik} fonts and their overlay packages
Change-Id: I3fe93982095722d22e726baf9561a6bde31f5bf1
2020-05-14 01:05:45 +01:00
Michael Bestas
b838db5dec config: Move permission xml to apps
Move required permissions to the respective apps.
This allows people to use a lot of our apps outside lineage
without extra changes.

Change-Id: I840a9edeae38e94ff6592c4817fcea6f5e4a7e8f
2020-05-10 23:49:59 +02:00
Michael Bestas
2d5bb63ff4 config: Remove unused Recorder privapp permissions
Change-Id: I560fe385f1fb93c4f1f3a4d44f970e8770c2b1c5
2020-05-10 23:40:04 +02:00
Michael Bestas
561146fdfe Revert "Add rules for non platform apps that use hidden APIs"
* No longer needed

This reverts commit dab1569b81.

Change-Id: Iea17996d735e49181a2537ae0cbc4f8e5af457f9
2020-05-10 23:40:04 +02:00
Michael Bestas
35b7e5386b config: Don't copy weather permission xml
* It's not brought up

Change-Id: I4abcee632552f8de39a4a7db4c77bca148a82f29
2020-05-10 23:40:04 +02:00
Pranav Vashi
c8bd3fe4de privapp-permissions: Update PREVENT_POWER_KEY permission for Camera
* Required after: https://review.lineageos.org/q/topic:%22power_key_prevent_cts%22+(status:open%20OR%20status:merged)

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Change-Id: I6797fd38ac3da9fa70fc42cef1cf626aa48030a8
2020-04-28 04:36:09 +05:30
Aaron Kling
807dae4567 atv: Build LeanbackIME
Change-Id: I8942916c4e63be11fc2b1d9aed756e4c9887498a
2020-04-23 14:50:32 -05:00
Aaron Kling
8926990865 Split mobile and tv configs
There are a lot of apps installed by default that are unusable with
a controller. This splits the mobile related settings out of common
into a common_mobile config and adds common_tv.

Note: The EXCLUDE_AUDIOFX flag was removed from the tv configs
because the new config path no longer builds it.

Change-Id: I67db32750fca91725d703243f2bcee8bcd9b82cd
2020-04-22 02:18:15 +02:00
Luca Stefani
b3bd728021 Allow A/B OTA downgrades on debuggable builds
Change-Id: I361c6d71f7b4316cf023ad0b36fdc488e37d6176
2020-03-31 21:56:10 +02:00
Han Wang
7ed20624d3 Revert "lineage: configs: Flatten APEX(s) on official builds"
* No longer needed, and is incomplete.

This reverts commit 1474aeb3c3.

Change-Id: Iec1cf525651eb215fc9844b4340d57eb802aeeec
2020-03-15 12:05:39 +01:00
Luca Stefani
0e38790e20 Always build adb_root
Change-Id: I1b08d51fd52d599c7bd37cc5195b50b60835240b
2020-03-14 00:13:45 +01:00
shagbag913
e754d88c2a aosp_audio: copy our own old AOSP alarm variants
* "Old" appended to metadata title to prevent duplicate alarm sound
   names in picker

Change-Id: I695a3760b8ae13c5cf959104dfb8b2336c6b0125
2020-03-12 19:22:26 +01:00
Arne Coucheron
c83b8dae35 Build Email
AOSP removed building it in r31.

Change-Id: I32a459b7bae52cea56a7e08e2c2cacbb8fbf8506
2020-03-09 00:08:32 +01:00
Nolen Johnson
1474aeb3c3 lineage: configs: Flatten APEX(s) on official builds
* APEX is useless to average Lineage user, as we aren't
  licensed to ship the GMS APEX's, nor would we want to,
  as we want to keep compatibility with non-GMS use-cases.

* Additionally, APEX's should each be signed with their
  own unique key, and number of them can vary per-device,
  which makes signing them in a standard way on infrastructure
  quite complex.

* Though this flag is default, we need to disable it
  explicitly to make sure any maintainers who set up the
  configurations for APEX images won't change needs of
  infrastructure. This will allow people who want to build
  locally to use full APEX(s).

Change-Id: I7f2eb52593eeca1b3761a7a163ce9079995870c6
2020-03-05 07:45:48 +01:00
Wang Han
e43d699cfe backuptool: Remove backup blacklist/whitelist
Change-Id: Ia89e6fa4c31377a429e0dfa912d0b61393696009
2020-03-03 16:12:08 +01:00
Bruno Martins
8560cdd635 config: Add Trebuchet to PRODUCT_DEXPREOPT_SPEED_APPS
Change-Id: I437cc1af399c82e38128d9a183d49bc86c891915
2020-02-14 18:21:14 +01:00
razorloves
7c9c674bc1 config: Dexpreopt speed compile SystemUI instead of SystemUIGoogle
Change-Id: I3331f8e65898f8696953b2602b9ad963f7e4313d
2020-02-14 18:21:14 +01:00
Wei Wang
058e5fd23b config: Add SysUI to PRODUCT_DEXPREOPT_SPEED_APPS
Test: Build
Change-Id: I088938462b389e1ebe783997f773dc5946345666
2020-02-14 18:21:14 +01:00
LuK1337
4827e3ba36 default-permissions: Don't grant custom permission by default
* We can survive without granting this permission
  out of box, also fixes Exchange-less boot up
  exception.

D AndroidRuntime: Shutting down VM
E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E AndroidRuntime: java.lang.IllegalArgumentException: Unknown permission: com.android.email.permission.READ_ATTACHMENT
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:2103)
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:121)
E AndroidRuntime: 	at com.android.server.pm.permission.PermissionManagerService$PermissionManagerServiceInternalImpl.grantRuntimePermission(PermissionManagerService.java:3032)
E AndroidRuntime: 	at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5800)
E AndroidRuntime: 	at android.app.ApplicationPackageManager.grantRuntimePermission(ApplicationPackageManager.java:684)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantRuntimePermissions(DefaultPermissionGrantPolicy.java:1217)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantDefaultPermissionExceptions(DefaultPermissionGrantPolicy.java:1381)
E AndroidRuntime: 	at com.android.server.pm.permission.DefaultPermissionGrantPolicy.grantDefaultPermissions(DefaultPermissionGrantPolicy.java:297)
E AndroidRuntime: 	at com.android.server.pm.PackageManagerService.systemReady(PackageManagerService.java:21731)
E AndroidRuntime: 	at com.android.server.SystemServer.startOtherServices(SystemServer.java:2037)
E AndroidRuntime: 	at com.android.server.SystemServer.run(SystemServer.java:529)
E AndroidRuntime: 	at com.android.server.SystemServer.main(SystemServer.java:356)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:908)

Change-Id: If2caad2b004820b10b7095a4bb4307d0f065c723
2020-02-02 23:31:04 +01:00
Arne Coucheron
95b8fa97ba default-permissions: Grant default permissions to com.android.exchange
Change-Id: I9dfcecde0e662b9e481696b661e16ac7e131a75c
2020-01-27 19:49:27 +01:00
Michael Bestas
42020e23f5 Lineage 17.1
Change-Id: Iaf3b75e49677b616a19431da8087c338ee7eb8da
2020-01-03 02:03:00 +02:00
Han Wang
95c4105280 config: Remove unnecessary persist.sys.dun.override
Change-Id: I2f82e283a66992fe9e108d399eb7e9d135b54387
2019-12-08 16:08:59 +01:00
Han Wang
2838e8ae3b config: Mark more gralloc bits as valid
* Mimic the behavior of https://source.codeaurora.org/quic/la/platform/frameworks/native/commit/?h=LA.UM.8.6.r1-01900-89xx.0&id=002db77e0d84893d498f5a9544ec7941158c71e8.

Change-Id: Id87564acde3d05f10a266c580f6931d444c91b9e
2019-12-01 12:59:12 +01:00
Bruno Martins
315e2450f3 Revert "vendor: add style api"
Styles API was nuked from the SDK.

This reverts commit 6cf7640e96.

Change-Id: I99405c493b57045c5c7c6331ab64fad49d160840
2019-11-22 17:18:47 +01:00
Bruno Martins
ff7657bc0b Revert "privapp-permissions: Whitelist CHANGE_OVERLAY_PACKAGES permission"
Permission no longer required because Styles handling was
removed from LineageParts. ThemePicker is our best friend now.

This reverts commit a7b0cf7ec3.

Change-Id: I003cd2281de9f7edbd81a15e0c1b1258e537ccb3
2019-11-22 17:18:47 +01:00
Luca Stefani
31264cddfe Build Lineage Themes stub package
Change-Id: Ia481611d50a805235d132deeb8cee434d5743752
2019-11-22 17:18:47 +01:00
Luca Stefani
406b4dc897 Build ThemePicker
Change-Id: I6c2acaa6b33ad8937e481d2e9675a5b1eecd23cc
2019-11-22 17:18:47 +01:00
LuK1337
cca50fea7a privapp-permissions: Grant START_ACTIVITIES_FROM_BACKGROUND perm to Snap
Change-Id: I3e36efbbd0c3c049cb18abe6e931372ade6e7f53
2019-11-12 11:07:25 +01:00
Luca Stefani
06b93c0738 Build adb_root
Change-Id: I646b9db5543b47f777b443f601e9c2c6fa7ef08b
2019-11-08 12:13:55 +01:00
Bruno Martins
5c9d6c40e3 Revert "vendor: Add qcom platform type to soongs vars"
These vars are no longer useful as of Q because it looks like CAF dropped
their surfaceflinger extensions (ExtSurfaceFlinger).

This reverts commit 97cb87c809.

Change-Id: I09701f6a47830a30486f35052b4ea7ab15a9660b
2019-11-05 11:42:21 +01:00
Arne Coucheron
70143a64fc vendor: Add messaging app to power whitelist
* The messaging app is notorious for late notifications
  of messages. Whitelist it so it can be active during doze.

Change-Id: I932c89b27d76c114be67eaed62a3c021c219ca3a
2019-10-30 20:41:59 +01:00
LuK1337
4f0ad57275 common: Bring back Android Beam
* While this feature is deprecated all code
  for it is still alive ^.^

Change-Id: I36fac374e43ceddab1438255654bb541937041ff
2019-10-29 19:18:23 +01:00
Dan Pasanen
3e7435c42b lineage: use AB_OTA_PARTITIONS flag for including backuptool_ab
* Newer pixel devices get AB_OTA_UPDATER enabled from
  build/make/target/board/BoardConfigMainlineCommon.mk which
  is not included in time for this check.

Change-Id: I1679709b7178398ffaa62ad14a6d042ff377fd5a
2019-10-29 15:06:34 +01:00
Michael Bestas
57dcffc43f privapp-permissions: Allow Gallery2 to use android.permission.MODIFY_AUDIO_ROUTING
Change-Id: I8c838e63473c908eacd649e5249f346a1c37d4ba
2019-10-23 01:34:01 +02:00
Luca Stefani
243b877ea4 Kill sysinit
Change-Id: Ia8d46d794ff829f3fc39ff48d57fdb6f9c03262d
2019-10-23 01:29:31 +02:00
LuK1337
defae4ab66 common: Add nano to PRODUCT_PACKAGES
* Since `LOCAL_MODULE_TAGS := debug` is no more
  we need to add it to build manually.

Change-Id: I82378f13be30aa71766561bd0e8f04183363a52d
2019-10-18 16:49:23 +02:00
Bruno Martins
3bf932e2e0 common: Clean up debug packages
As of Q, micro_bench is dead. The rest are already part
of PRODUCT_PACKAGES_DEBUG in the main base_system.mk.

Change-Id: Idc91e572e83d227652802bbc8da71238596d28ea
2019-10-15 23:06:04 +02:00
Rashed Abdel-Tawab
e3c319a271
kernel: Move our dtb.img logic here
Our build/make changes break incremenetal builds with prebuilt dtb dir
(see discussion here: https://android-review.googlesource.com/c/platform/build/+/1134337/1/core/Makefile )

Instead of using the AOSP recipe, just define our own and use it by not defining
BOARD_PREBUILT_DTBIMAGE_DIR

Change-Id: If579b1670db447557b6f76ca79ecec22661c4080
2019-10-07 14:46:06 -04:00
Rashed Abdel-Tawab
2c247d80d0 kernel: Build dtb.img from compiled dtbs
Change-Id: If419d090740c005357fbd1665f78296d106b4509
2019-10-05 05:32:14 +02:00
LuK1337
9d8578bb13 kernel: Switch back to host openssl entirely
* OpenSSL cannot be statically linked because of
  getaddrinfo and gethostbyname calls.
* Also according to soong it's whitelisted:
  33f9529962/ui/build/paths/config.go (L98)

Change-Id: I1718bd98e7ac30d31de38c2cd3bc3e51b7100ce4
2019-10-01 22:42:34 +02:00
Rashed Abdel-Tawab
06539d4267 kernel: Add OpenSSL libs to LD_LIBRARY_PATH
Change-Id: If266f5f7bf0f2853ea54601023a894935d350754
2019-09-28 00:22:02 +02:00
Luca Stefani
24ada062ab lineage: Disable vendor restrictions
Change-Id: I9bd368f04605df469f02b26dae47e587bccc2e52
2019-09-27 15:35:44 +02:00
Michael Bestas
8a5dec51c2 build: Remove TARGET_CRYPTFS_HW_PATH
* Not used since 16.0 where vold/cryptfs_hw switched to bp

Change-Id: I649402d9a3b94df8810d577147e09a51833192a0
2019-09-27 15:38:44 +03:00
Rashed Abdel-Tawab
84948089b6 build: Move to new qcom HAL directory layout
All CAF forked HALs now reside in hardware/qcom-caf/

Change-Id: I9f84cebf021418c0b402bc3186f37643e63afb24
2019-09-25 21:03:29 +03:00
Rashed Abdel-Tawab
168fd231b6 Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage"
This reverts commit 13f4c837fe.

Reason for revert: reeet. I broke stuff.

Change-Id: If8518aaa409d9afeaf20c689405fd21900fa5e74
2019-09-24 17:22:39 +02:00
Simon Shields
13f4c837fe kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage
Previously, this would be a full compile prefix
(e.g. prebuilts/gcc/.../bin/aarch64-linux-gnu-). Since we're adding
this to PATH, it only needs to be prebuilts/gcc/.../bin.

Also remove the extra /bin/ added by kernel.mk.

Change-Id: If2490729128c0243c61de646f6c8e19a15c8dc1c
2019-09-24 17:19:45 +02:00
Rashed Abdel-Tawab
812efbcbb9
lineage: Move perl base modules to common prebuilts dir
Change-Id: I88df0825c26aaebfa9329cf15eb93d8e2bf728e1
2019-09-23 16:59:39 -07:00
Han Wang
ed76afdfd3 config: Restore org.lineageos.hardware.xml
* Though there is no LineageHW anymore, don't forget
   LineageHardwareService in our sdk depends on it to start.

Change-Id: I8befe1a75b66f54d9ffd7b88871c187a21b08497
2019-09-21 17:31:43 +02:00
Luca Stefani
f012c7e744 Remove duplicated priv-app permission
* In Q SystemUI is already whitelisted for this

Change-Id: I2c5b65dc0decfcdc22bebd14cd23c9e730994c34
2019-09-19 21:39:16 +02:00
Bruno Martins
d47d062016 BoardConfigQcom: Fix setting UM4.9 and UM4.14 specific flags
Calling is-board-platform-in-list from this makefile was not
returning the desirable output, thus resulting in a failure
to meet the conditions for the UM4.9 and UM4.14 family platforms.

Due to the fact that this makefile is included in a very early
stage in the build process, the QCOM macros are not defined.
Simply use standard macros like in rest of the makefile.

Change-Id: Iad889882f94167f1bc1761ddd549dac9dcdee3ba
2019-09-19 18:33:00 +02:00
Rashed Abdel-Tawab
9c57748956
lineage: Move openssl to generic 1.1.1 directory and correct darwin path
Change-Id: I2c1ad1054027d5fbf91421342c3c0d3e7972b1a3
2019-09-18 10:36:25 -07:00
Michael Bestas
b68958a862 config: Remove lineagehw from sdk PRODUCT_PACKAGES
Change-Id: Ib52cae9820f0c77e1481bcbfe1ecea24c18d7e98
2019-09-17 21:32:33 +03:00
Michael Bestas
f4032b8823 config: Replace 'system' with '$(TARGET_COPY_OUT_SYSTEM)'
Change-Id: Id1ebab8f12cb8536f0244706200b91958d90821e
2019-09-17 21:32:25 +03:00
Han Wang
89521b1d7a config: Split priv-app permission whitelist
* As there are some apps in /product now, do the following
   whitelist changes.

Change-Id: I4314c5dc8266ea7bb805399a92ab05f2ef49b920
2019-09-17 21:31:29 +03:00
Michael Bestas
85fdce3325 lineage: Cleanup PRODUCT_PACKAGES
* Reorganize
* Remove no longer used Development package
* Remove LiveWallpaperPicker/PhotoTable which are included in full_base.mk

Change-Id: I56f9f586f27172e7336699dbe57f7a43d7ef8722
2019-09-14 11:21:40 +08:00
Michael Bestas
c379eac6c5 lineage: Remove unused ro.build.selinux
* This was used to show selinux status in Settings

Change-Id: I93332d3a325d303d6f0fff370e5fc983050ce64d
2019-09-13 20:55:04 +03:00
Michael Bestas
24ecfd641c lineage: Remove boosted ringtones
* No longer used by any device and fw/base part is missing

Revert "Update boosted audio files 2/2"

This reverts commit 103c64a964.

Revert "Add volume boosted ringtones (1/2)"

This reverts commit a1c783fb28.

Change-Id: I384f44d515e2bcc237662184de0830836ba95b09
2019-09-13 17:52:19 +03:00
Rashed Abdel-Tawab
509e07e083
lineage: Move audio files to product
Change-Id: Ie58c8643a8e0f9a83eb76a66eb840c02a58042a6
2019-09-13 07:42:34 -07:00
Rashed Abdel-Tawab
c648519530 kernel: Add GCC toolchains to the path
Tools like `as` only exist in the GCC toolchain, so we need that

Change-Id: I025d0d9bdf6eda94a538d2d6ddafbecc8830f471
2019-09-13 08:27:49 +02:00
Luca Stefani
70207cd54d
kernel: Fix nproc number
kati wrapper is forcing this to 2 for some reason. Hack around it.

Change-Id: Ie056f3e43645515f3c5922e0fbf79a0b5ecf7856
2019-09-09 12:21:36 -07:00
Rashed Abdel-Tawab
ba5ea35eb6
kernel: Use absolute path for kernel O= argument
The kernel make command is executed in the build root. Without absolute
out paths, kernel out start with "out/" meaning it would be created in
the kernel source. Add BUILD_ROOT to the argument to ensure it's always
made in the actual out/ dir.

Change-Id: I425134a893d4d5c9f31efccaf75e153b5462b76c
2019-09-09 12:21:35 -07:00
Rashed Abdel-Tawab
493ad4b8a5
kernel: Set kernel toolchain roots for aarch64, arm, and x86
The GCC toolchains are no longer added to the path by default, so
we need to hardcode the full paths for these. Also set variables
for every arch, and then set the toolchain to the arch specific var.
This is so we can set the ARM32 cross compile flag for vDSO32
enabled kernels.

Change-Id: I7e099a26a17f4a3cc9be6232a26c671e8fcfbdef
2019-09-09 12:20:43 -07:00
dianlujitao
bd16a8e3a4
kernel: Use linux-android- toolchains to build kernel on aarch64 and x86
* -androidkernel ones became symlinks to -android ones long time ago, use
   -android executables directly to simplify the logic on these platforms.
 * Keep arm on -androidkernel because it doesn't boot for some reason.

Change-Id: I97dd93121fc0e805a965e3f8b84466dd7bd686c0
2019-09-09 12:20:43 -07:00
Rashed Abdel-Tawab
dfc3d1830d
kernel: Use prebuilt binaries
perl, lz4c, and a bunch of other binaries are not allowed anymore.
So we need to provide our own.

Change-Id: Idbc88b76247b3dda7c5d52e5eed2d548c33f6f2d
2019-09-09 12:19:44 -07:00
Rashed Abdel-Tawab
d7e24e397b
kernel: Link against prebuilt openssl
Using preinstalled system headers and libraries is no longer allowed.
So we're gonna make our own prebuilts/openssl so we can build kernels.

Change-Id: Ic5bc3b14c37b3bca352932c6f19a592377dbaf27
2019-09-08 13:41:36 -07:00