Commit graph

3122 commits

Author SHA1 Message Date
Adrian DC
41927e4838 soong_config: Add TARGET_HAS_LEGACY_CAMERA_HAL1 variable
* Soong product variable 'has_legacy_camera_hal1'

Change-Id: I10800cba0c431297b5d7aad6e97d57a01232d73e
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2018-04-24 00:17:32 +02:00
razorloves
a9e0134376 apn: Update APNs for MetroPCS
- Add missing ims apn. Without this, pixel and nexus users were not
    able to use ims features.
  - Set the mtu value. This improves data connection reliability.
  - These changes match with pixel's aosp apn.

Change-Id: I170de2c92cc916424c266dc972a6538599640b7c
2018-04-23 19:34:18 +02:00
Michael Bestas
9e6bde5205 envsetup: Fix lineageremote for caf projects
Change-Id: I9d98cef27deea805904f4500c4bc02905da885f4
2018-04-22 03:45:42 +02:00
Dan Pasanen
f7b93ce5a0 lineage-radio: disable ims services on ro.radio.noril
Change-Id: I598dbaaaead2c9cfd50cd41f3bed193dfe17e147
2018-04-20 05:51:44 +02:00
Nathan Chancellor
ca40331215 build: kernel: Use LLVM_PREBUILTS_VERSION if no version is specified
Some ROMs may want to track Google's master branch, which has Clang 6
and 7 toolchains available, as it gets rid of some hacks in the kernel
source. Unfortunately, with the current default choosing logic, the
latest one would be chosen, which it shouldn't be. Use the variable set
in build/make/core/clang/versions.mk, as that's what was intended.

Change-Id: I607c7f750f62caabee4cdccea67846feb7f632fa
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2018-04-16 20:56:13 +02:00
ReedN
3bcf10a442 Fix Android "Work Profiles" also known as AfW 'Android for Work'
Android for Work (AfW) has 'Work Profiles' that allow separated profiles
to be created so employers can allow employees to have work e-mail on
their phones (for example).

To work properly the 'ManagedProvisioning' module needs to have a proper
set of vendor required apps specified in the
'vendor_required_apps_managed_profile.xml' file.  This is the task of the
OEM so that they can specify which apps will replace stock apps.  This is
the reason why the stock AOSP code is blank.

There is a set of minimum defaults needed as specified in Android documentation:
https://source.android.com/devices/tech/admin/implement#required_apps
(They give an example from a Nexus phone)

With the default set apps correctly specified Google's open source test code
'Test DPC' should be able to complete successfully.

https://github.com/googlesamples/android-testdpc/
(Also available on Google Play:  Example code distributed by
Google to help developers implement)

The changes contained here allow LineageOS to successfully create a
'Work Profile' with 'Test DPC'.

Change-Id: I6b8ccb53149e9070712eac329e44f6c72f812410
(cherry picked from commit ac0cb02076386aff20c0af164845a89308b4dff9)
2018-04-14 20:21:37 +02:00
razorloves
86f03b8f83 apn: Add protocol for fido and rogers
Pixels will only establish a data connection to these carriers using
IPv6, so this fixes the reports of no cellular data and no mms.
Also, this matches with what aosp has.

Change-Id: I07768f817cf6bb4997dd737cc467fb146c959434
2018-04-14 04:27:59 +02:00
Simon Shields
8d96edd816 build: dt_image: support prebuilt DT images
If for whatever reason we need a prebuilt DT image,
it has to end up in target files for the signing slave.
Change BOARD_KERNEL_PREBUILT_DT to hold the path of the
prebuilt DT image, if it's going to be used.

Change-Id: I8042d347d271da5c3963824777d399bbc4229aa9
2018-04-13 22:08:42 +02:00
Simon Shields
9b69c8900b lineage: enable building otatools with generic targets
Change-Id: I4bbd32378e159084f8e5dfb852749f77feb31788
2018-04-12 16:35:08 +02:00
Vladimir Oltean
a48b9fe9b6
write_makefiles: fix paths in BUILD_PREBUILT with destination
* proprietary-files.txt entries such as
   "-app/TimeService/TimeService.apk:priv-app/TimeService/TimeService.apk" should
   generate a "LOCAL_SRC_FILES := proprietary/priv-app/TimeService/TimeService.apk"
   in the Makefile definition.
 * However, currently, the prefix_match function is being called on the whole
   PRODUCT_PACKAGES_LIST entry (whole line, including ":"), and therefore,
   TimeService.apk would be included in the APPS list instead of PRIV_APPS.
 * Furthermore, because of the incorrect prefix_match, the generated
   LOCAL_SRC_FILES is "proprietary/app/priv-app/TimeService/TimeService.apk",
   which breaks the build because there is no file at that wrong path.
 * The fix is to make the extract function match up with write_product_packages
   by applying the target_file function on all BUILD_PREBUILT source files.

Change-Id: Ib4859b8854db0f2142bb3f28cce8dd25f7141732
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
2018-04-09 12:55:31 -07:00
Gabriele M
af970b695c repopick: Allow to pick changes by URL
Change-Id: I460c987cc03c4f6ff03ecab1bc39e52cec413c13
2018-04-05 17:34:16 +02:00
Gabriele M
88c0e5d1af repopick: Actually print the patchset number
We are printing the change number twice...

Change-Id: I4f63766d4162f5d016badad662842badd6da3588
2018-04-05 17:34:15 +02:00
Gabriele M
de9e0ae0a5 repopick: Ignore the trailing slash in change numbers
Trailing slashes cause 'patchset' to be an empty string, which
cannot be converted to an int. If we have a trailing slash, ignore
it and pick the current patchset.

Change-Id: Ifad60b7f6ff3dcfd9dd80b2e93b1f909aa360666
2018-04-05 17:34:15 +02:00
Gabriele M
5b610aede3 repopick: Try to keep the changes sorted
Sort the changes according to their parent first and then according
to their number.

Change-Id: Iebdb8789728b2ccd528e19437e162129eb27973c
2018-04-05 17:34:14 +02:00
Giuseppe Barillari
d96e292164 lineage: Camera2 priv-app permissions whitelist
Change-Id: I5247f0640a2b842a9930f0f7a1d1a794751f100f
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
2018-04-05 05:12:11 +00:00
Abhisek Devkota
63fb87ba47 vendor: More priv-app whitelist updates
Output of https://source.android.com/devices/tech/config/perms-whitelist

Change-Id: I68ec610cf99399016fe1482730791c9b5e8ae1f5
2018-04-05 05:12:00 +00:00
Paul Keith
a23592c7e9 Revert "LOSCoins"
This reverts commit c9c7968e59.

Change-Id: I20259fea456b415e5136e241e47e08df1a3b0fb5
2018-04-02 00:45:00 +00:00
Joey
c9c7968e59 LOSCoins
Change-Id: I433740f2e3102eeb06b471e80ca6539971a05613
Signed-off-by: Joey <joey@lineageos.org>
2018-04-01 07:42:00 +00:00
Joe Maples
9be579f8d7 extract_utils: Use vdexExtractor for extracting oreo classes.dex
vdexExtractor is a tool made by anestisb that is written in C++
with code taken directly from art. However, anestisb has also added
a quicken decompiler to oatdump that was merged upstream, so we only
need vdexExtractor for 8.1 and 8.0.

Change-Id: Ic2cf2dc627a1ad2fa4d500d02d9eac8b8a9577b5
Signed-off-by: Joe Maples <joe@frap129.org>
2018-03-30 20:46:07 +00:00
Alexander Kaindl
fb7b1fd92a apn: Add APN for spusu MVNO
Change-Id: I3772b955f758083986d8d2862cf3ec32609c19a1
2018-03-29 18:28:19 +00:00
Joey
7091a4ff7a Make Cyan[...] great again!
Change-Id: Iac2b7ccc5a3a26a36d5651923011064b3363b156
Signed-off-by: Joey <joey@lineageos.org>
2018-03-29 08:27:23 +00:00
nicknitewolf
0bb793eb38 envsetup: Update default path for SDCLANG 4.0
Change-Id: Ia5eebb977a1f90c94557d27386d2b6d907ac4483
2018-03-27 17:09:52 +00:00
Anshuman Dani
b72f8c924e Always use my_installed_module_stem instead of my_built_module_stem
This will prevent link errors in case my_installed_module_stem is different
from my_built_module_stem.

Change-Id: Ic72571637ea404c92128b9cd5a28e82a36bc0033
2018-03-27 17:09:52 +00:00
Pengxuan Zheng
7f5d4e1050 Add support for using the secondary SDLLVM toolchain
If LOCAL_SDCLANG_2 is set to true, the secondary SDLLVM toolchain
(SDCLANG_PATH_2) will be used instead.

Change-Id: Icb7492562aeaa3c584edcbced8fe1e98776774bd
2018-03-27 17:09:52 +00:00
Mandeep Singh Grang
dc8df22add Rules to enable LTO for Adreno GFX driver.
This patch controls rules when LTO is enabled for Adreno GFX driver.

Change-Id: I45bd163889ffd3e0237d5451adaca0fc411b14f8
2018-03-27 17:09:52 +00:00
Rashed Abdel-Tawab
31eec2059a soong: Add TARGET_USES_QTI_CAMERA_DEVICE
Change-Id: I925b137edeed9fa11bbe566002147b444328c661
2018-03-24 18:33:48 +00:00
Simon Shields
6f68de1a32 lineage: add generic lineage targets
These are used for building addonsu.

Change-Id: If6def9729328ea2ce1e977fd7b9ff42cfc2f6dda
2018-03-23 23:44:07 +00:00
Michael Bestas
1fb7662466 lineage: Set TARGET_CRYPTFS_HW_PATH if HW crypto is enabled
* So TWRP can use it

Change-Id: Ibc1d9d943d6d4e4e5248f623cd06782335f8ae98
2018-03-21 21:06:12 +00:00
razorloves
e02d5d5fcc lineage: update our priv-app permissions whitelist
Add android.permission.MODIFY_DAY_NIGHT_MODE for com.android.systemui.
Introduced in styles api change.

Change-Id: Ic864da8eb01faa270bae22cabaddcb9458c8a6c6
2018-03-20 00:07:57 +00:00
Joey
3c8afe4b70 vendor: bump for LineageSDK API 9
Change-Id: I9ddb1c359bd0eaf03f150986e0b26bdcb81d481a
Signed-off-by: Joey <joey@lineageos.org>
2018-03-11 14:16:21 +00:00
Joey
19d4fb0438 lineage: fix sdk documentation generation
Change-Id: I800a8bca5667bccd7761ed56f25376574a267891
Signed-off-by: Joey <joey@lineageos.org>
2018-03-09 16:18:35 +01:00
Tobias Tefke
85f2e6de75 Update DocumentsUI overlay for Oreo
The DocumentsUI overlay needs to be updated:

  * the DocumentsUI package moved from
    frameworks/base/packages/DocumentsUI
    to packages/apps/DocumentsUI

  * the tag "productivity_device" in res/values/config.xml
    has been renamed to "show_documents_root"

Change-Id: Id9028e5b92a98ac1f9fdb34cb5a0222be70d8596
2018-03-09 14:36:40 +00:00
Sam Mortimer
3d517dc2e9 lineage: Enable wifi wakeup config option
Enables the setting to have wifi turn on automatically
when you're near high quality saved networks.

Change-Id: Id61c3f5c655322e54c015f55b6f389b835c27fe5
2018-03-07 17:56:56 +00:00
Tom Marshall
e08b021eea lineage: Add awk
Change-Id: Ib7facb2328dc843b85f177a4b071129ea7d2bde8
2018-03-07 05:35:33 +00:00
Ethan Chen
3a0f2fb0e0 qcom_target: Move RIL path mapping to core/config.mk
* hardware/ril is a required project for any build.
  Move the path mapping logic to core/config.mk so
  any build has access to the correct default mapping.

Change-Id: Ia52919d7877ddc91f8a4a988fd0858d14837fc4c
2018-03-07 00:23:23 +00:00
Ethan Chen
87b787abd9 pathmap: remove duplicate include-path-for
* include-path-for is already part of build/core/pathmap.mk

Change-Id: I3133265559b4d4b5cc6c32b49f430422e55b34ac
2018-03-06 16:51:07 +00:00
Joey
6cf7640e96 vendor: add style api
Change-Id: I52455cbf827aa5708e1eee6c8469d267979eddc8
Signed-off-by: Joey <joey@lineageos.org>
2018-03-05 13:33:32 +00:00
Bruno Martins
1022cc7c50 backuptool: Take into account new location for system default props
* System default props defined using PRODUCT_SYSTEM_DEFAULT_PROPERTIES
   are stored into /system/etc/prop.default, so that's the location where
   ro.lineage.version prop needs to be checked now. Although, fallback
   to the old location to allow sucessful upgrades.

Change-Id: I62046447876c2198a0c4f88a4f36f4723d417617
2018-03-03 00:46:45 +00:00
Rashed Abdel-Tawab
b6fb3e159a lineage: Move to Google's method of defining system default props
PRODUCT_SYSTEM_DEFAULT_PROPERTIES can now be used to define system default
properties which should be installed in system partition.

Those props are stored in /system/etc/prop.default.

Change-Id: I6cb0e28a7599b010b389cc541015a37010a00f4b
2018-03-03 00:46:27 +00:00
LuK1337
56030be8a5 lineage: Don't error out when screen size isn't set
* Generic AOSP devices don't set it and we don't really
  want to fork them just to set the bootanimation size.

Change-Id: I684454ae07348ee29c832f86f56bcfbd4f627b4d
2018-03-01 06:52:37 +00:00
Michael Bestas
a3f97c75bf extract_utils: Fix vendor framework makefile generation
* Fix copy-pasta

Change-Id: I9b2f61702985cb59af34ad146fd61bedba043f81
2018-02-27 22:32:50 +02:00
Joey
a91985580d vendor: update default wallpaper
Source: http://unsplash.com

Change-Id: I5c8c90efe51a5beb606a712cb4f2c8b14553e50c
Signed-off-by: Joey <joey@lineageos.org>
2018-02-26 13:03:13 +00:00
Ethan Chen
5bc3c8426b extract-utils: Use LOCAL_VENDOR_FILE instead of LOCAL_PROPRIETARY_FILE
* Oreo expects VNDK compatible files to be listed as LOCAL_VENDOR_FILE,
  not LOCAL_PROPRIETARY_FILE.

Change-Id: Ia2384c4f3ab3a99b79df52c796c53dc25a0f4a88
2018-02-26 02:17:37 +00:00
Jaap Jan Meijer
1fdbf7ad8b Don't enable ANDROID_BINDER_IPC_32BIT for mixed userspace/kernel
TARGET_USES_64_BIT_BINDER should be used for the userspace binder now.

Change-Id: I5cede00e7667969e394d06169dff54659900d90f
2018-02-24 20:52:30 -06:00
Michael Bestas
57c0e7ad52 Bump LINEAGE_PLATFORM_SDK_VERSION to 8
Change-Id: If78b28d3c018c7cd58b30e48efe631adbd70dd40
2018-02-24 18:54:24 +00:00
Paul Keith
08004d8cc8 lineage: Unconditionally ship exFAT tools
* We no longer need to build the mount.exfat tool because
   only kernel implementations will be supported from now on.

Change-Id: Ic7e1354e6ead6a96a9d6021de8dac4cfdabcbbce
2018-02-24 14:39:55 +00:00
Dan Pasanen
f65a6dfd63 kernel: fix ccache variable sanitation for clang builds
* When using "?=", expansion doesn't happen right away, so the ccache
  variable is sanitized before KERNEL_CC gets expanded and no ccache
  is ever used for clang builds.

* With ":=", expansion happens immediately. So let's manually check
  if KERNEL_CC is already set somewhere else to determine whether or
  not we should set it ourselves using ":=".

Change-Id: I8a61767606a4f3d4c6ba88c68b10fd2e11783406
2018-02-19 04:20:53 +00:00
Adrian DC
ae509e410c lineage: Sort soong variables and configurations
Change-Id: I4a191f8ce61123e30f780f8e39411a7723fb6197
2018-02-18 20:59:12 +00:00
Aaron Kling
30768b82c1 ATV: Ship AppDrawer
Also remove TvSettings from here since its included in atv_base

Change-Id: I2d97e90e234dc9b7868dad3b063c0420211dacdc
2018-02-18 17:38:45 +00:00
Luca Stefani
6b47332546 bootanimation: Error if screen width or height aren't set
Change-Id: Ic102e49d39a12116e9a0b25accf0ef81520c495f
2018-02-18 11:39:01 +00:00